From 7af170f88a922ff6c5eb1c3481cee3142b83cfb7 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Sun, 26 Nov 2023 09:17:29 +0000 Subject: [PATCH] v4.21.20 style(theme): modify okaidia/quietlight/solarized selection color. (#609) fd8b344ed0733a7e8c7c35209b2058caf439acfd --- .nojekyll | 0 CONTRIBUTORS.svg | 80 +++ asset-manifest.json | 311 +++++++++ bundle.html | 46 ++ coverage/badges.svg | 20 + coverage/coverage-summary.json | 7 + coverage/lcov-report/base.css | 224 +++++++ coverage/lcov-report/block-navigation.js | 87 +++ coverage/lcov-report/favicon.png | Bin 0 -> 445 bytes coverage/lcov-report/index.html | 131 ++++ coverage/lcov-report/prettify.css | 1 + coverage/lcov-report/prettify.js | 2 + coverage/lcov-report/sort-arrow-sprite.png | Bin 0 -> 138 bytes coverage/lcov-report/sorter.js | 196 ++++++ .../src/getDefaultExtensions.ts.html | 280 ++++++++ coverage/lcov-report/src/index.html | 161 +++++ coverage/lcov-report/src/index.tsx.html | 577 +++++++++++++++++ coverage/lcov-report/src/theme/index.html | 116 ++++ coverage/lcov-report/src/theme/light.ts.html | 121 ++++ .../lcov-report/src/useCodeMirror.ts.html | 601 ++++++++++++++++++ coverage/lcov-report/src/utils.ts.html | 232 +++++++ coverage/lcov.info | 255 ++++++++ favicon.ico | Bin 0 -> 6536 bytes index.html | 1 + static/css/main.020a7543.css | 2 + static/css/main.020a7543.css.map | 1 + static/js/1033.a84451e8.chunk.js | 2 + static/js/1033.a84451e8.chunk.js.map | 1 + static/js/1093.dc32c871.chunk.js | 2 + static/js/1093.dc32c871.chunk.js.map | 1 + static/js/1108.0fdba128.chunk.js | 2 + static/js/1108.0fdba128.chunk.js.map | 1 + static/js/1290.2ee31a34.chunk.js | 2 + static/js/1290.2ee31a34.chunk.js.map | 1 + static/js/1353.e0f62c5f.chunk.js | 2 + static/js/1353.e0f62c5f.chunk.js.map | 1 + static/js/137.6776a3ec.chunk.js | 2 + static/js/137.6776a3ec.chunk.js.map | 1 + static/js/1419.cdedeb95.chunk.js | 2 + static/js/1419.cdedeb95.chunk.js.map | 1 + static/js/1453.e720de64.chunk.js | 2 + static/js/1453.e720de64.chunk.js.map | 1 + static/js/1600.005e0f6f.chunk.js | 2 + static/js/1600.005e0f6f.chunk.js.map | 1 + static/js/1635.a164afbe.chunk.js | 2 + static/js/1635.a164afbe.chunk.js.map | 1 + static/js/1670.d5750e43.chunk.js | 2 + static/js/1670.d5750e43.chunk.js.map | 1 + static/js/1726.079d5ab0.chunk.js | 2 + static/js/1726.079d5ab0.chunk.js.map | 1 + static/js/1771.379febe5.chunk.js | 2 + static/js/1771.379febe5.chunk.js.map | 1 + static/js/1811.3fdc7306.chunk.js | 2 + static/js/1811.3fdc7306.chunk.js.map | 1 + static/js/1876.235e847b.chunk.js | 2 + static/js/1876.235e847b.chunk.js.map | 1 + static/js/1958.7b7388ba.chunk.js | 2 + static/js/1958.7b7388ba.chunk.js.map | 1 + static/js/2007.2b9194e0.chunk.js | 2 + static/js/2007.2b9194e0.chunk.js.map | 1 + static/js/2012.67266c77.chunk.js | 2 + static/js/2012.67266c77.chunk.js.map | 1 + static/js/2211.6156ccdf.chunk.js | 2 + static/js/2211.6156ccdf.chunk.js.map | 1 + static/js/2224.50710b1b.chunk.js | 2 + static/js/2224.50710b1b.chunk.js.map | 1 + static/js/2277.e4afd10b.chunk.js | 2 + static/js/2277.e4afd10b.chunk.js.map | 1 + static/js/2371.a66cb67b.chunk.js | 2 + static/js/2371.a66cb67b.chunk.js.map | 1 + static/js/2424.1dd92a31.chunk.js | 2 + static/js/2424.1dd92a31.chunk.js.map | 1 + static/js/2578.b7d5618a.chunk.js | 2 + static/js/2578.b7d5618a.chunk.js.map | 1 + static/js/2607.c70dda35.chunk.js | 2 + static/js/2607.c70dda35.chunk.js.map | 1 + static/js/2648.c2727c3b.chunk.js | 2 + static/js/2648.c2727c3b.chunk.js.map | 1 + static/js/2753.3b9c2bf8.chunk.js | 2 + static/js/2753.3b9c2bf8.chunk.js.map | 1 + static/js/2771.3dba1fae.chunk.js | 2 + static/js/2771.3dba1fae.chunk.js.map | 1 + static/js/2801.37502b2f.chunk.js | 2 + static/js/2801.37502b2f.chunk.js.map | 1 + static/js/2919.bf1e8c63.chunk.js | 2 + static/js/2919.bf1e8c63.chunk.js.map | 1 + static/js/2942.4c8fdc5c.chunk.js | 2 + static/js/2942.4c8fdc5c.chunk.js.map | 1 + static/js/2980.b2a31f2e.chunk.js | 2 + static/js/2980.b2a31f2e.chunk.js.map | 1 + static/js/3087.a51340c3.chunk.js | 2 + static/js/3087.a51340c3.chunk.js.map | 1 + static/js/310.317979ac.chunk.js | 2 + static/js/310.317979ac.chunk.js.map | 1 + static/js/3175.5a421912.chunk.js | 2 + static/js/3175.5a421912.chunk.js.map | 1 + static/js/3211.837a71c5.chunk.js | 2 + static/js/3211.837a71c5.chunk.js.map | 1 + static/js/3368.a985898c.chunk.js | 2 + static/js/3368.a985898c.chunk.js.map | 1 + static/js/3392.d9fa6ccf.chunk.js | 2 + static/js/3392.d9fa6ccf.chunk.js.map | 1 + static/js/3498.99e1287f.chunk.js | 2 + static/js/3498.99e1287f.chunk.js.map | 1 + static/js/3602.49d39f56.chunk.js | 2 + static/js/3602.49d39f56.chunk.js.map | 1 + static/js/3657.3b5571e1.chunk.js | 2 + static/js/3657.3b5571e1.chunk.js.map | 1 + static/js/3733.1e7c89d9.chunk.js | 2 + static/js/3733.1e7c89d9.chunk.js.map | 1 + static/js/3787.9c9086b0.chunk.js | 2 + static/js/3787.9c9086b0.chunk.js.map | 1 + static/js/3806.6abd52c9.chunk.js | 2 + static/js/3806.6abd52c9.chunk.js.map | 1 + static/js/3834.cd953aa6.chunk.js | 2 + static/js/3834.cd953aa6.chunk.js.map | 1 + static/js/3969.cd399a15.chunk.js | 2 + static/js/3969.cd399a15.chunk.js.map | 1 + static/js/4124.b255733a.chunk.js | 2 + static/js/4124.b255733a.chunk.js.map | 1 + static/js/4136.bc8b9b2e.chunk.js | 2 + static/js/4136.bc8b9b2e.chunk.js.map | 1 + static/js/4150.347f0210.chunk.js | 2 + static/js/4150.347f0210.chunk.js.map | 1 + static/js/4166.0d011077.chunk.js | 2 + static/js/4166.0d011077.chunk.js.map | 1 + static/js/4185.63183fe3.chunk.js | 2 + static/js/4185.63183fe3.chunk.js.map | 1 + static/js/4187.f0bb9f84.chunk.js | 2 + static/js/4187.f0bb9f84.chunk.js.map | 1 + static/js/4199.be21ac51.chunk.js | 2 + static/js/4199.be21ac51.chunk.js.map | 1 + static/js/4272.edbdc9d5.chunk.js | 2 + static/js/4272.edbdc9d5.chunk.js.map | 1 + static/js/428.61b7d948.chunk.js | 2 + static/js/428.61b7d948.chunk.js.map | 1 + static/js/4286.69f182e3.chunk.js | 2 + static/js/4286.69f182e3.chunk.js.map | 1 + static/js/4593.082f3f7d.chunk.js | 2 + static/js/4593.082f3f7d.chunk.js.map | 1 + static/js/4647.16b8ecd5.chunk.js | 2 + static/js/4647.16b8ecd5.chunk.js.map | 1 + static/js/4661.e9bd427f.chunk.js | 2 + static/js/4661.e9bd427f.chunk.js.map | 1 + static/js/4668.e8be69e7.chunk.js | 2 + static/js/4668.e8be69e7.chunk.js.map | 1 + static/js/4695.83f04c50.chunk.js | 2 + static/js/4695.83f04c50.chunk.js.map | 1 + static/js/470.45eb5978.chunk.js | 2 + static/js/470.45eb5978.chunk.js.map | 1 + static/js/4724.48d0a499.chunk.js | 2 + static/js/4724.48d0a499.chunk.js.map | 1 + static/js/4873.66caa08d.chunk.js | 2 + static/js/4873.66caa08d.chunk.js.map | 1 + static/js/4887.9e7e5a35.chunk.js | 2 + static/js/4887.9e7e5a35.chunk.js.map | 1 + static/js/4890.a53b9097.chunk.js | 2 + static/js/4890.a53b9097.chunk.js.map | 1 + static/js/4905.6d0862e7.chunk.js | 2 + static/js/4905.6d0862e7.chunk.js.map | 1 + static/js/5034.edebafa3.chunk.js | 2 + static/js/5034.edebafa3.chunk.js.map | 1 + static/js/5113.5b532d2c.chunk.js | 2 + static/js/5113.5b532d2c.chunk.js.map | 1 + static/js/5123.56c30da5.chunk.js | 2 + static/js/5123.56c30da5.chunk.js.map | 1 + static/js/5164.c6d7b838.chunk.js | 2 + static/js/5164.c6d7b838.chunk.js.map | 1 + static/js/5194.4b48a1f3.chunk.js | 2 + static/js/5194.4b48a1f3.chunk.js.map | 1 + static/js/5520.0993bea7.chunk.js | 2 + static/js/5520.0993bea7.chunk.js.map | 1 + static/js/5541.3900e208.chunk.js | 2 + static/js/5541.3900e208.chunk.js.map | 1 + static/js/5670.b198c74a.chunk.js | 2 + static/js/5670.b198c74a.chunk.js.map | 1 + static/js/5751.835aabf0.chunk.js | 2 + static/js/5751.835aabf0.chunk.js.map | 1 + static/js/5797.2122fc32.chunk.js | 2 + static/js/5797.2122fc32.chunk.js.map | 1 + static/js/5942.a7335211.chunk.js | 2 + static/js/5942.a7335211.chunk.js.map | 1 + static/js/5973.67b07b7e.chunk.js | 2 + static/js/5973.67b07b7e.chunk.js.map | 1 + static/js/602.9cf24290.chunk.js | 2 + static/js/602.9cf24290.chunk.js.map | 1 + static/js/6052.9de5ce94.chunk.js | 2 + static/js/6052.9de5ce94.chunk.js.map | 1 + static/js/6124.db037c9b.chunk.js | 2 + static/js/6124.db037c9b.chunk.js.map | 1 + static/js/6171.21390f86.chunk.js | 2 + static/js/6171.21390f86.chunk.js.map | 1 + static/js/6203.63546a26.chunk.js | 2 + static/js/6203.63546a26.chunk.js.map | 1 + static/js/622.38db8228.chunk.js | 2 + static/js/622.38db8228.chunk.js.map | 1 + static/js/6268.a51576e1.chunk.js | 2 + static/js/6268.a51576e1.chunk.js.map | 1 + static/js/6365.0f90d1bf.chunk.js | 2 + static/js/6365.0f90d1bf.chunk.js.map | 1 + static/js/6401.ca2cc062.chunk.js | 2 + static/js/6401.ca2cc062.chunk.js.map | 1 + static/js/6450.9dac4e30.chunk.js | 2 + static/js/6450.9dac4e30.chunk.js.map | 1 + static/js/6453.418c2d89.chunk.js | 2 + static/js/6453.418c2d89.chunk.js.map | 1 + static/js/6466.701e94f2.chunk.js | 2 + static/js/6466.701e94f2.chunk.js.map | 1 + static/js/6488.90ae7417.chunk.js | 2 + static/js/6488.90ae7417.chunk.js.map | 1 + static/js/6499.72f4cee7.chunk.js | 2 + static/js/6499.72f4cee7.chunk.js.map | 1 + static/js/6565.ae6d65b6.chunk.js | 2 + static/js/6565.ae6d65b6.chunk.js.map | 1 + static/js/6580.288d34ed.chunk.js | 2 + static/js/6580.288d34ed.chunk.js.map | 1 + static/js/6636.8446bab2.chunk.js | 2 + static/js/6636.8446bab2.chunk.js.map | 1 + static/js/6653.e794db69.chunk.js | 2 + static/js/6653.e794db69.chunk.js.map | 1 + static/js/671.be467c24.chunk.js | 2 + static/js/671.be467c24.chunk.js.map | 1 + static/js/6783.108b06d9.chunk.js | 2 + static/js/6783.108b06d9.chunk.js.map | 1 + static/js/6786.8fe6c399.chunk.js | 2 + static/js/6786.8fe6c399.chunk.js.map | 1 + static/js/6787.dbf7d757.chunk.js | 2 + static/js/6787.dbf7d757.chunk.js.map | 1 + static/js/6829.38c49ce8.chunk.js | 2 + static/js/6829.38c49ce8.chunk.js.map | 1 + static/js/6971.e2e1df44.chunk.js | 2 + static/js/6971.e2e1df44.chunk.js.map | 1 + static/js/721.ba78ce56.chunk.js | 2 + static/js/721.ba78ce56.chunk.js.map | 1 + static/js/7310.7796653d.chunk.js | 2 + static/js/7310.7796653d.chunk.js.map | 1 + static/js/7324.13e3ae35.chunk.js | 2 + static/js/7324.13e3ae35.chunk.js.map | 1 + static/js/7486.bbc5938f.chunk.js | 2 + static/js/7486.bbc5938f.chunk.js.map | 1 + static/js/7511.8c4b9d6e.chunk.js | 2 + static/js/7511.8c4b9d6e.chunk.js.map | 1 + static/js/7519.78ed2a4f.chunk.js | 2 + static/js/7519.78ed2a4f.chunk.js.map | 1 + static/js/7610.a19f4802.chunk.js | 2 + static/js/7610.a19f4802.chunk.js.map | 1 + static/js/7626.22adbe4e.chunk.js | 2 + static/js/7626.22adbe4e.chunk.js.map | 1 + static/js/7695.38e2a860.chunk.js | 2 + static/js/7695.38e2a860.chunk.js.map | 1 + static/js/7795.b04c9d94.chunk.js | 2 + static/js/7795.b04c9d94.chunk.js.map | 1 + static/js/7889.e60bd5c8.chunk.js | 2 + static/js/7889.e60bd5c8.chunk.js.map | 1 + static/js/796.6cc83227.chunk.js | 2 + static/js/796.6cc83227.chunk.js.map | 1 + static/js/803.9e7fb16b.chunk.js | 2 + static/js/803.9e7fb16b.chunk.js.map | 1 + static/js/8031.5d1b81ab.chunk.js | 2 + static/js/8031.5d1b81ab.chunk.js.map | 1 + static/js/8152.a5ce9989.chunk.js | 2 + static/js/8152.a5ce9989.chunk.js.map | 1 + static/js/8282.9b2f9e9c.chunk.js | 2 + static/js/8282.9b2f9e9c.chunk.js.map | 1 + static/js/8313.be34f1d0.chunk.js | 2 + static/js/8313.be34f1d0.chunk.js.map | 1 + static/js/8410.d2b9b4be.chunk.js | 2 + static/js/8410.d2b9b4be.chunk.js.map | 1 + static/js/8453.90f560b3.chunk.js | 2 + static/js/8453.90f560b3.chunk.js.map | 1 + static/js/8465.f6dca126.chunk.js | 2 + static/js/8465.f6dca126.chunk.js.map | 1 + static/js/8569.b3febb1e.chunk.js | 2 + static/js/8569.b3febb1e.chunk.js.map | 1 + static/js/8660.7cd7f2ea.chunk.js | 2 + static/js/8660.7cd7f2ea.chunk.js.map | 1 + static/js/877.665d8c43.chunk.js | 2 + static/js/877.665d8c43.chunk.js.map | 1 + static/js/8884.4b6e41ad.chunk.js | 2 + static/js/8884.4b6e41ad.chunk.js.map | 1 + static/js/8942.2280e3f0.chunk.js | 2 + static/js/8942.2280e3f0.chunk.js.map | 1 + static/js/9119.2be421da.chunk.js | 2 + static/js/9119.2be421da.chunk.js.map | 1 + static/js/9200.cc69488a.chunk.js | 2 + static/js/9200.cc69488a.chunk.js.map | 1 + static/js/9242.35547699.chunk.js | 2 + static/js/9242.35547699.chunk.js.map | 1 + static/js/9294.a10b6166.chunk.js | 2 + static/js/9294.a10b6166.chunk.js.map | 1 + static/js/9308.a6875abe.chunk.js | 2 + static/js/9308.a6875abe.chunk.js.map | 1 + static/js/9321.0c335cdb.chunk.js | 2 + static/js/9321.0c335cdb.chunk.js.map | 1 + static/js/9336.a7d3651e.chunk.js | 2 + static/js/9336.a7d3651e.chunk.js.map | 1 + static/js/9347.cc7cf1f1.chunk.js | 2 + static/js/9347.cc7cf1f1.chunk.js.map | 1 + static/js/9365.bf468cf2.chunk.js | 2 + static/js/9365.bf468cf2.chunk.js.map | 1 + static/js/9476.aae1f342.chunk.js | 2 + static/js/9476.aae1f342.chunk.js.map | 1 + static/js/9482.8b46f0cc.chunk.js | 2 + static/js/9482.8b46f0cc.chunk.js.map | 1 + static/js/9547.b3099f3a.chunk.js | 2 + static/js/9547.b3099f3a.chunk.js.map | 1 + static/js/9615.b9a6b231.chunk.js | 2 + static/js/9615.b9a6b231.chunk.js.map | 1 + static/js/9839.3b83817f.chunk.js | 2 + static/js/9839.3b83817f.chunk.js.map | 1 + static/js/9896.d6c0b0f8.chunk.js | 2 + static/js/9896.d6c0b0f8.chunk.js.map | 1 + static/js/9965.f40f92d3.chunk.js | 2 + static/js/9965.f40f92d3.chunk.js.map | 1 + static/js/codemirror-vendor.5529399d.js | 2 + static/js/codemirror-vendor.5529399d.js.map | 1 + static/js/main.17944d41.js | 3 + static/js/main.17944d41.js.LICENSE.txt | 79 +++ static/js/main.17944d41.js.map | 1 + static/js/react-vendor.f9cf9c2c.js | 3 + .../js/react-vendor.f9cf9c2c.js.LICENSE.txt | 29 + static/js/react-vendor.f9cf9c2c.js.map | 1 + static/js/refractor-vendor.5deebe34.js | 2 + static/js/refractor-vendor.5deebe34.js.map | 1 + static/media/index.6709ed71e170ea93199e.cjs | 1 + 325 files changed, 4007 insertions(+) create mode 100644 .nojekyll create mode 100644 CONTRIBUTORS.svg create mode 100644 asset-manifest.json create mode 100644 bundle.html create mode 100644 coverage/badges.svg create mode 100644 coverage/coverage-summary.json create mode 100644 coverage/lcov-report/base.css create mode 100644 coverage/lcov-report/block-navigation.js create mode 100644 coverage/lcov-report/favicon.png create mode 100644 coverage/lcov-report/index.html create mode 100644 coverage/lcov-report/prettify.css create mode 100644 coverage/lcov-report/prettify.js create mode 100644 coverage/lcov-report/sort-arrow-sprite.png create mode 100644 coverage/lcov-report/sorter.js create mode 100644 coverage/lcov-report/src/getDefaultExtensions.ts.html create mode 100644 coverage/lcov-report/src/index.html create mode 100644 coverage/lcov-report/src/index.tsx.html create mode 100644 coverage/lcov-report/src/theme/index.html create mode 100644 coverage/lcov-report/src/theme/light.ts.html create mode 100644 coverage/lcov-report/src/useCodeMirror.ts.html create mode 100644 coverage/lcov-report/src/utils.ts.html create mode 100644 coverage/lcov.info create mode 100644 favicon.ico create mode 100644 index.html create mode 100644 static/css/main.020a7543.css create mode 100644 static/css/main.020a7543.css.map create mode 100644 static/js/1033.a84451e8.chunk.js create mode 100644 static/js/1033.a84451e8.chunk.js.map create mode 100644 static/js/1093.dc32c871.chunk.js create mode 100644 static/js/1093.dc32c871.chunk.js.map create mode 100644 static/js/1108.0fdba128.chunk.js create mode 100644 static/js/1108.0fdba128.chunk.js.map create mode 100644 static/js/1290.2ee31a34.chunk.js create mode 100644 static/js/1290.2ee31a34.chunk.js.map create mode 100644 static/js/1353.e0f62c5f.chunk.js create mode 100644 static/js/1353.e0f62c5f.chunk.js.map create mode 100644 static/js/137.6776a3ec.chunk.js create mode 100644 static/js/137.6776a3ec.chunk.js.map create mode 100644 static/js/1419.cdedeb95.chunk.js create mode 100644 static/js/1419.cdedeb95.chunk.js.map create mode 100644 static/js/1453.e720de64.chunk.js create mode 100644 static/js/1453.e720de64.chunk.js.map create mode 100644 static/js/1600.005e0f6f.chunk.js create mode 100644 static/js/1600.005e0f6f.chunk.js.map create mode 100644 static/js/1635.a164afbe.chunk.js create mode 100644 static/js/1635.a164afbe.chunk.js.map create mode 100644 static/js/1670.d5750e43.chunk.js create mode 100644 static/js/1670.d5750e43.chunk.js.map create mode 100644 static/js/1726.079d5ab0.chunk.js create mode 100644 static/js/1726.079d5ab0.chunk.js.map create mode 100644 static/js/1771.379febe5.chunk.js create mode 100644 static/js/1771.379febe5.chunk.js.map create mode 100644 static/js/1811.3fdc7306.chunk.js create mode 100644 static/js/1811.3fdc7306.chunk.js.map create mode 100644 static/js/1876.235e847b.chunk.js create mode 100644 static/js/1876.235e847b.chunk.js.map create mode 100644 static/js/1958.7b7388ba.chunk.js create mode 100644 static/js/1958.7b7388ba.chunk.js.map create mode 100644 static/js/2007.2b9194e0.chunk.js create mode 100644 static/js/2007.2b9194e0.chunk.js.map create mode 100644 static/js/2012.67266c77.chunk.js create mode 100644 static/js/2012.67266c77.chunk.js.map create mode 100644 static/js/2211.6156ccdf.chunk.js create mode 100644 static/js/2211.6156ccdf.chunk.js.map create mode 100644 static/js/2224.50710b1b.chunk.js create mode 100644 static/js/2224.50710b1b.chunk.js.map create mode 100644 static/js/2277.e4afd10b.chunk.js create mode 100644 static/js/2277.e4afd10b.chunk.js.map create mode 100644 static/js/2371.a66cb67b.chunk.js create mode 100644 static/js/2371.a66cb67b.chunk.js.map create mode 100644 static/js/2424.1dd92a31.chunk.js create mode 100644 static/js/2424.1dd92a31.chunk.js.map create mode 100644 static/js/2578.b7d5618a.chunk.js create mode 100644 static/js/2578.b7d5618a.chunk.js.map create mode 100644 static/js/2607.c70dda35.chunk.js create mode 100644 static/js/2607.c70dda35.chunk.js.map create mode 100644 static/js/2648.c2727c3b.chunk.js create mode 100644 static/js/2648.c2727c3b.chunk.js.map create mode 100644 static/js/2753.3b9c2bf8.chunk.js create mode 100644 static/js/2753.3b9c2bf8.chunk.js.map create mode 100644 static/js/2771.3dba1fae.chunk.js create mode 100644 static/js/2771.3dba1fae.chunk.js.map create mode 100644 static/js/2801.37502b2f.chunk.js create mode 100644 static/js/2801.37502b2f.chunk.js.map create mode 100644 static/js/2919.bf1e8c63.chunk.js create mode 100644 static/js/2919.bf1e8c63.chunk.js.map create mode 100644 static/js/2942.4c8fdc5c.chunk.js create mode 100644 static/js/2942.4c8fdc5c.chunk.js.map create mode 100644 static/js/2980.b2a31f2e.chunk.js create mode 100644 static/js/2980.b2a31f2e.chunk.js.map create mode 100644 static/js/3087.a51340c3.chunk.js create mode 100644 static/js/3087.a51340c3.chunk.js.map create mode 100644 static/js/310.317979ac.chunk.js create mode 100644 static/js/310.317979ac.chunk.js.map create mode 100644 static/js/3175.5a421912.chunk.js create mode 100644 static/js/3175.5a421912.chunk.js.map create mode 100644 static/js/3211.837a71c5.chunk.js create mode 100644 static/js/3211.837a71c5.chunk.js.map create mode 100644 static/js/3368.a985898c.chunk.js create mode 100644 static/js/3368.a985898c.chunk.js.map create mode 100644 static/js/3392.d9fa6ccf.chunk.js create mode 100644 static/js/3392.d9fa6ccf.chunk.js.map create mode 100644 static/js/3498.99e1287f.chunk.js create mode 100644 static/js/3498.99e1287f.chunk.js.map create mode 100644 static/js/3602.49d39f56.chunk.js create mode 100644 static/js/3602.49d39f56.chunk.js.map create mode 100644 static/js/3657.3b5571e1.chunk.js create mode 100644 static/js/3657.3b5571e1.chunk.js.map create mode 100644 static/js/3733.1e7c89d9.chunk.js create mode 100644 static/js/3733.1e7c89d9.chunk.js.map create mode 100644 static/js/3787.9c9086b0.chunk.js create mode 100644 static/js/3787.9c9086b0.chunk.js.map create mode 100644 static/js/3806.6abd52c9.chunk.js create mode 100644 static/js/3806.6abd52c9.chunk.js.map create mode 100644 static/js/3834.cd953aa6.chunk.js create mode 100644 static/js/3834.cd953aa6.chunk.js.map create mode 100644 static/js/3969.cd399a15.chunk.js create mode 100644 static/js/3969.cd399a15.chunk.js.map create mode 100644 static/js/4124.b255733a.chunk.js create mode 100644 static/js/4124.b255733a.chunk.js.map create mode 100644 static/js/4136.bc8b9b2e.chunk.js create mode 100644 static/js/4136.bc8b9b2e.chunk.js.map create mode 100644 static/js/4150.347f0210.chunk.js create mode 100644 static/js/4150.347f0210.chunk.js.map create mode 100644 static/js/4166.0d011077.chunk.js create mode 100644 static/js/4166.0d011077.chunk.js.map create mode 100644 static/js/4185.63183fe3.chunk.js create mode 100644 static/js/4185.63183fe3.chunk.js.map create mode 100644 static/js/4187.f0bb9f84.chunk.js create mode 100644 static/js/4187.f0bb9f84.chunk.js.map create mode 100644 static/js/4199.be21ac51.chunk.js create mode 100644 static/js/4199.be21ac51.chunk.js.map create mode 100644 static/js/4272.edbdc9d5.chunk.js create mode 100644 static/js/4272.edbdc9d5.chunk.js.map create mode 100644 static/js/428.61b7d948.chunk.js create mode 100644 static/js/428.61b7d948.chunk.js.map create mode 100644 static/js/4286.69f182e3.chunk.js create mode 100644 static/js/4286.69f182e3.chunk.js.map create mode 100644 static/js/4593.082f3f7d.chunk.js create mode 100644 static/js/4593.082f3f7d.chunk.js.map create mode 100644 static/js/4647.16b8ecd5.chunk.js create mode 100644 static/js/4647.16b8ecd5.chunk.js.map create mode 100644 static/js/4661.e9bd427f.chunk.js create mode 100644 static/js/4661.e9bd427f.chunk.js.map create mode 100644 static/js/4668.e8be69e7.chunk.js create mode 100644 static/js/4668.e8be69e7.chunk.js.map create mode 100644 static/js/4695.83f04c50.chunk.js create mode 100644 static/js/4695.83f04c50.chunk.js.map create mode 100644 static/js/470.45eb5978.chunk.js create mode 100644 static/js/470.45eb5978.chunk.js.map create mode 100644 static/js/4724.48d0a499.chunk.js create mode 100644 static/js/4724.48d0a499.chunk.js.map create mode 100644 static/js/4873.66caa08d.chunk.js create mode 100644 static/js/4873.66caa08d.chunk.js.map create mode 100644 static/js/4887.9e7e5a35.chunk.js create mode 100644 static/js/4887.9e7e5a35.chunk.js.map create mode 100644 static/js/4890.a53b9097.chunk.js create mode 100644 static/js/4890.a53b9097.chunk.js.map create mode 100644 static/js/4905.6d0862e7.chunk.js create mode 100644 static/js/4905.6d0862e7.chunk.js.map create mode 100644 static/js/5034.edebafa3.chunk.js create mode 100644 static/js/5034.edebafa3.chunk.js.map create mode 100644 static/js/5113.5b532d2c.chunk.js create mode 100644 static/js/5113.5b532d2c.chunk.js.map create mode 100644 static/js/5123.56c30da5.chunk.js create mode 100644 static/js/5123.56c30da5.chunk.js.map create mode 100644 static/js/5164.c6d7b838.chunk.js create mode 100644 static/js/5164.c6d7b838.chunk.js.map create mode 100644 static/js/5194.4b48a1f3.chunk.js create mode 100644 static/js/5194.4b48a1f3.chunk.js.map create mode 100644 static/js/5520.0993bea7.chunk.js create mode 100644 static/js/5520.0993bea7.chunk.js.map create mode 100644 static/js/5541.3900e208.chunk.js create mode 100644 static/js/5541.3900e208.chunk.js.map create mode 100644 static/js/5670.b198c74a.chunk.js create mode 100644 static/js/5670.b198c74a.chunk.js.map create mode 100644 static/js/5751.835aabf0.chunk.js create mode 100644 static/js/5751.835aabf0.chunk.js.map create mode 100644 static/js/5797.2122fc32.chunk.js create mode 100644 static/js/5797.2122fc32.chunk.js.map create mode 100644 static/js/5942.a7335211.chunk.js create mode 100644 static/js/5942.a7335211.chunk.js.map create mode 100644 static/js/5973.67b07b7e.chunk.js create mode 100644 static/js/5973.67b07b7e.chunk.js.map create mode 100644 static/js/602.9cf24290.chunk.js create mode 100644 static/js/602.9cf24290.chunk.js.map create mode 100644 static/js/6052.9de5ce94.chunk.js create mode 100644 static/js/6052.9de5ce94.chunk.js.map create mode 100644 static/js/6124.db037c9b.chunk.js create mode 100644 static/js/6124.db037c9b.chunk.js.map create mode 100644 static/js/6171.21390f86.chunk.js create mode 100644 static/js/6171.21390f86.chunk.js.map create mode 100644 static/js/6203.63546a26.chunk.js create mode 100644 static/js/6203.63546a26.chunk.js.map create mode 100644 static/js/622.38db8228.chunk.js create mode 100644 static/js/622.38db8228.chunk.js.map create mode 100644 static/js/6268.a51576e1.chunk.js create mode 100644 static/js/6268.a51576e1.chunk.js.map create mode 100644 static/js/6365.0f90d1bf.chunk.js create mode 100644 static/js/6365.0f90d1bf.chunk.js.map create mode 100644 static/js/6401.ca2cc062.chunk.js create mode 100644 static/js/6401.ca2cc062.chunk.js.map create mode 100644 static/js/6450.9dac4e30.chunk.js create mode 100644 static/js/6450.9dac4e30.chunk.js.map create mode 100644 static/js/6453.418c2d89.chunk.js create mode 100644 static/js/6453.418c2d89.chunk.js.map create mode 100644 static/js/6466.701e94f2.chunk.js create mode 100644 static/js/6466.701e94f2.chunk.js.map create mode 100644 static/js/6488.90ae7417.chunk.js create mode 100644 static/js/6488.90ae7417.chunk.js.map create mode 100644 static/js/6499.72f4cee7.chunk.js create mode 100644 static/js/6499.72f4cee7.chunk.js.map create mode 100644 static/js/6565.ae6d65b6.chunk.js create mode 100644 static/js/6565.ae6d65b6.chunk.js.map create mode 100644 static/js/6580.288d34ed.chunk.js create mode 100644 static/js/6580.288d34ed.chunk.js.map create mode 100644 static/js/6636.8446bab2.chunk.js create mode 100644 static/js/6636.8446bab2.chunk.js.map create mode 100644 static/js/6653.e794db69.chunk.js create mode 100644 static/js/6653.e794db69.chunk.js.map create mode 100644 static/js/671.be467c24.chunk.js create mode 100644 static/js/671.be467c24.chunk.js.map create mode 100644 static/js/6783.108b06d9.chunk.js create mode 100644 static/js/6783.108b06d9.chunk.js.map create mode 100644 static/js/6786.8fe6c399.chunk.js create mode 100644 static/js/6786.8fe6c399.chunk.js.map create mode 100644 static/js/6787.dbf7d757.chunk.js create mode 100644 static/js/6787.dbf7d757.chunk.js.map create mode 100644 static/js/6829.38c49ce8.chunk.js create mode 100644 static/js/6829.38c49ce8.chunk.js.map create mode 100644 static/js/6971.e2e1df44.chunk.js create mode 100644 static/js/6971.e2e1df44.chunk.js.map create mode 100644 static/js/721.ba78ce56.chunk.js create mode 100644 static/js/721.ba78ce56.chunk.js.map create mode 100644 static/js/7310.7796653d.chunk.js create mode 100644 static/js/7310.7796653d.chunk.js.map create mode 100644 static/js/7324.13e3ae35.chunk.js create mode 100644 static/js/7324.13e3ae35.chunk.js.map create mode 100644 static/js/7486.bbc5938f.chunk.js create mode 100644 static/js/7486.bbc5938f.chunk.js.map create mode 100644 static/js/7511.8c4b9d6e.chunk.js create mode 100644 static/js/7511.8c4b9d6e.chunk.js.map create mode 100644 static/js/7519.78ed2a4f.chunk.js create mode 100644 static/js/7519.78ed2a4f.chunk.js.map create mode 100644 static/js/7610.a19f4802.chunk.js create mode 100644 static/js/7610.a19f4802.chunk.js.map create mode 100644 static/js/7626.22adbe4e.chunk.js create mode 100644 static/js/7626.22adbe4e.chunk.js.map create mode 100644 static/js/7695.38e2a860.chunk.js create mode 100644 static/js/7695.38e2a860.chunk.js.map create mode 100644 static/js/7795.b04c9d94.chunk.js create mode 100644 static/js/7795.b04c9d94.chunk.js.map create mode 100644 static/js/7889.e60bd5c8.chunk.js create mode 100644 static/js/7889.e60bd5c8.chunk.js.map create mode 100644 static/js/796.6cc83227.chunk.js create mode 100644 static/js/796.6cc83227.chunk.js.map create mode 100644 static/js/803.9e7fb16b.chunk.js create mode 100644 static/js/803.9e7fb16b.chunk.js.map create mode 100644 static/js/8031.5d1b81ab.chunk.js create mode 100644 static/js/8031.5d1b81ab.chunk.js.map create mode 100644 static/js/8152.a5ce9989.chunk.js create mode 100644 static/js/8152.a5ce9989.chunk.js.map create mode 100644 static/js/8282.9b2f9e9c.chunk.js create mode 100644 static/js/8282.9b2f9e9c.chunk.js.map create mode 100644 static/js/8313.be34f1d0.chunk.js create mode 100644 static/js/8313.be34f1d0.chunk.js.map create mode 100644 static/js/8410.d2b9b4be.chunk.js create mode 100644 static/js/8410.d2b9b4be.chunk.js.map create mode 100644 static/js/8453.90f560b3.chunk.js create mode 100644 static/js/8453.90f560b3.chunk.js.map create mode 100644 static/js/8465.f6dca126.chunk.js create mode 100644 static/js/8465.f6dca126.chunk.js.map create mode 100644 static/js/8569.b3febb1e.chunk.js create mode 100644 static/js/8569.b3febb1e.chunk.js.map create mode 100644 static/js/8660.7cd7f2ea.chunk.js create mode 100644 static/js/8660.7cd7f2ea.chunk.js.map create mode 100644 static/js/877.665d8c43.chunk.js create mode 100644 static/js/877.665d8c43.chunk.js.map create mode 100644 static/js/8884.4b6e41ad.chunk.js create mode 100644 static/js/8884.4b6e41ad.chunk.js.map create mode 100644 static/js/8942.2280e3f0.chunk.js create mode 100644 static/js/8942.2280e3f0.chunk.js.map create mode 100644 static/js/9119.2be421da.chunk.js create mode 100644 static/js/9119.2be421da.chunk.js.map create mode 100644 static/js/9200.cc69488a.chunk.js create mode 100644 static/js/9200.cc69488a.chunk.js.map create mode 100644 static/js/9242.35547699.chunk.js create mode 100644 static/js/9242.35547699.chunk.js.map create mode 100644 static/js/9294.a10b6166.chunk.js create mode 100644 static/js/9294.a10b6166.chunk.js.map create mode 100644 static/js/9308.a6875abe.chunk.js create mode 100644 static/js/9308.a6875abe.chunk.js.map create mode 100644 static/js/9321.0c335cdb.chunk.js create mode 100644 static/js/9321.0c335cdb.chunk.js.map create mode 100644 static/js/9336.a7d3651e.chunk.js create mode 100644 static/js/9336.a7d3651e.chunk.js.map create mode 100644 static/js/9347.cc7cf1f1.chunk.js create mode 100644 static/js/9347.cc7cf1f1.chunk.js.map create mode 100644 static/js/9365.bf468cf2.chunk.js create mode 100644 static/js/9365.bf468cf2.chunk.js.map create mode 100644 static/js/9476.aae1f342.chunk.js create mode 100644 static/js/9476.aae1f342.chunk.js.map create mode 100644 static/js/9482.8b46f0cc.chunk.js create mode 100644 static/js/9482.8b46f0cc.chunk.js.map create mode 100644 static/js/9547.b3099f3a.chunk.js create mode 100644 static/js/9547.b3099f3a.chunk.js.map create mode 100644 static/js/9615.b9a6b231.chunk.js create mode 100644 static/js/9615.b9a6b231.chunk.js.map create mode 100644 static/js/9839.3b83817f.chunk.js create mode 100644 static/js/9839.3b83817f.chunk.js.map create mode 100644 static/js/9896.d6c0b0f8.chunk.js create mode 100644 static/js/9896.d6c0b0f8.chunk.js.map create mode 100644 static/js/9965.f40f92d3.chunk.js create mode 100644 static/js/9965.f40f92d3.chunk.js.map create mode 100644 static/js/codemirror-vendor.5529399d.js create mode 100644 static/js/codemirror-vendor.5529399d.js.map create mode 100644 static/js/main.17944d41.js create mode 100644 static/js/main.17944d41.js.LICENSE.txt create mode 100644 static/js/main.17944d41.js.map create mode 100644 static/js/react-vendor.f9cf9c2c.js create mode 100644 static/js/react-vendor.f9cf9c2c.js.LICENSE.txt create mode 100644 static/js/react-vendor.f9cf9c2c.js.map create mode 100644 static/js/refractor-vendor.5deebe34.js create mode 100644 static/js/refractor-vendor.5deebe34.js.map create mode 100644 static/media/index.6709ed71e170ea93199e.cjs diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 000000000..e69de29bb diff --git a/CONTRIBUTORS.svg b/CONTRIBUTORS.svg new file mode 100644 index 000000000..adeb01780 --- /dev/null +++ b/CONTRIBUTORS.svg @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/asset-manifest.json b/asset-manifest.json new file mode 100644 index 000000000..acd052634 --- /dev/null +++ b/asset-manifest.json @@ -0,0 +1,311 @@ +{ + "files": { + "main.css": "/react-codemirror/static/css/main.020a7543.css", + "main.js": "/react-codemirror/static/js/main.17944d41.js", + "static/js/9839.3b83817f.chunk.js": "/react-codemirror/static/js/9839.3b83817f.chunk.js", + "static/js/137.6776a3ec.chunk.js": "/react-codemirror/static/js/137.6776a3ec.chunk.js", + "static/js/7519.78ed2a4f.chunk.js": "/react-codemirror/static/js/7519.78ed2a4f.chunk.js", + "static/js/9119.2be421da.chunk.js": "/react-codemirror/static/js/9119.2be421da.chunk.js", + "static/js/2007.2b9194e0.chunk.js": "/react-codemirror/static/js/2007.2b9194e0.chunk.js", + "static/js/7310.7796653d.chunk.js": "/react-codemirror/static/js/7310.7796653d.chunk.js", + "static/js/4647.16b8ecd5.chunk.js": "/react-codemirror/static/js/4647.16b8ecd5.chunk.js", + "static/js/6052.9de5ce94.chunk.js": "/react-codemirror/static/js/6052.9de5ce94.chunk.js", + "static/js/3211.837a71c5.chunk.js": "/react-codemirror/static/js/3211.837a71c5.chunk.js", + "static/js/7486.bbc5938f.chunk.js": "/react-codemirror/static/js/7486.bbc5938f.chunk.js", + "static/js/8942.2280e3f0.chunk.js": "/react-codemirror/static/js/8942.2280e3f0.chunk.js", + "static/js/6786.8fe6c399.chunk.js": "/react-codemirror/static/js/6786.8fe6c399.chunk.js", + "static/js/2919.bf1e8c63.chunk.js": "/react-codemirror/static/js/2919.bf1e8c63.chunk.js", + "static/js/1811.3fdc7306.chunk.js": "/react-codemirror/static/js/1811.3fdc7306.chunk.js", + "static/js/2578.b7d5618a.chunk.js": "/react-codemirror/static/js/2578.b7d5618a.chunk.js", + "static/js/2371.a66cb67b.chunk.js": "/react-codemirror/static/js/2371.a66cb67b.chunk.js", + "static/js/6783.108b06d9.chunk.js": "/react-codemirror/static/js/6783.108b06d9.chunk.js", + "static/js/4136.bc8b9b2e.chunk.js": "/react-codemirror/static/js/4136.bc8b9b2e.chunk.js", + "static/js/1353.e0f62c5f.chunk.js": "/react-codemirror/static/js/1353.e0f62c5f.chunk.js", + "static/js/3175.5a421912.chunk.js": "/react-codemirror/static/js/3175.5a421912.chunk.js", + "static/js/2224.50710b1b.chunk.js": "/react-codemirror/static/js/2224.50710b1b.chunk.js", + "static/js/3806.6abd52c9.chunk.js": "/react-codemirror/static/js/3806.6abd52c9.chunk.js", + "static/js/9482.8b46f0cc.chunk.js": "/react-codemirror/static/js/9482.8b46f0cc.chunk.js", + "static/js/9242.35547699.chunk.js": "/react-codemirror/static/js/9242.35547699.chunk.js", + "static/js/8282.9b2f9e9c.chunk.js": "/react-codemirror/static/js/8282.9b2f9e9c.chunk.js", + "static/js/2648.c2727c3b.chunk.js": "/react-codemirror/static/js/2648.c2727c3b.chunk.js", + "static/js/6499.72f4cee7.chunk.js": "/react-codemirror/static/js/6499.72f4cee7.chunk.js", + "static/js/8313.be34f1d0.chunk.js": "/react-codemirror/static/js/8313.be34f1d0.chunk.js", + "static/js/2277.e4afd10b.chunk.js": "/react-codemirror/static/js/2277.e4afd10b.chunk.js", + "static/js/6829.38c49ce8.chunk.js": "/react-codemirror/static/js/6829.38c49ce8.chunk.js", + "static/js/796.6cc83227.chunk.js": "/react-codemirror/static/js/796.6cc83227.chunk.js", + "static/js/2753.3b9c2bf8.chunk.js": "/react-codemirror/static/js/2753.3b9c2bf8.chunk.js", + "static/js/2012.67266c77.chunk.js": "/react-codemirror/static/js/2012.67266c77.chunk.js", + "static/js/1726.079d5ab0.chunk.js": "/react-codemirror/static/js/1726.079d5ab0.chunk.js", + "static/js/622.38db8228.chunk.js": "/react-codemirror/static/js/622.38db8228.chunk.js", + "static/js/2607.c70dda35.chunk.js": "/react-codemirror/static/js/2607.c70dda35.chunk.js", + "static/js/5113.5b532d2c.chunk.js": "/react-codemirror/static/js/5113.5b532d2c.chunk.js", + "static/js/9615.b9a6b231.chunk.js": "/react-codemirror/static/js/9615.b9a6b231.chunk.js", + "static/js/6171.21390f86.chunk.js": "/react-codemirror/static/js/6171.21390f86.chunk.js", + "static/js/4724.48d0a499.chunk.js": "/react-codemirror/static/js/4724.48d0a499.chunk.js", + "static/js/4873.66caa08d.chunk.js": "/react-codemirror/static/js/4873.66caa08d.chunk.js", + "static/js/5123.56c30da5.chunk.js": "/react-codemirror/static/js/5123.56c30da5.chunk.js", + "static/js/5520.0993bea7.chunk.js": "/react-codemirror/static/js/5520.0993bea7.chunk.js", + "static/js/6565.ae6d65b6.chunk.js": "/react-codemirror/static/js/6565.ae6d65b6.chunk.js", + "static/js/7889.e60bd5c8.chunk.js": "/react-codemirror/static/js/7889.e60bd5c8.chunk.js", + "static/js/1290.2ee31a34.chunk.js": "/react-codemirror/static/js/1290.2ee31a34.chunk.js", + "static/js/6450.9dac4e30.chunk.js": "/react-codemirror/static/js/6450.9dac4e30.chunk.js", + "static/js/9965.f40f92d3.chunk.js": "/react-codemirror/static/js/9965.f40f92d3.chunk.js", + "static/js/4150.347f0210.chunk.js": "/react-codemirror/static/js/4150.347f0210.chunk.js", + "static/js/1771.379febe5.chunk.js": "/react-codemirror/static/js/1771.379febe5.chunk.js", + "static/js/1453.e720de64.chunk.js": "/react-codemirror/static/js/1453.e720de64.chunk.js", + "static/js/2424.1dd92a31.chunk.js": "/react-codemirror/static/js/2424.1dd92a31.chunk.js", + "static/js/3392.d9fa6ccf.chunk.js": "/react-codemirror/static/js/3392.d9fa6ccf.chunk.js", + "static/js/2801.37502b2f.chunk.js": "/react-codemirror/static/js/2801.37502b2f.chunk.js", + "static/js/6653.e794db69.chunk.js": "/react-codemirror/static/js/6653.e794db69.chunk.js", + "static/js/9547.b3099f3a.chunk.js": "/react-codemirror/static/js/9547.b3099f3a.chunk.js", + "static/js/9365.bf468cf2.chunk.js": "/react-codemirror/static/js/9365.bf468cf2.chunk.js", + "static/js/7795.b04c9d94.chunk.js": "/react-codemirror/static/js/7795.b04c9d94.chunk.js", + "static/js/470.45eb5978.chunk.js": "/react-codemirror/static/js/470.45eb5978.chunk.js", + "static/js/803.9e7fb16b.chunk.js": "/react-codemirror/static/js/803.9e7fb16b.chunk.js", + "static/js/8465.f6dca126.chunk.js": "/react-codemirror/static/js/8465.f6dca126.chunk.js", + "static/js/6124.db037c9b.chunk.js": "/react-codemirror/static/js/6124.db037c9b.chunk.js", + "static/js/4286.69f182e3.chunk.js": "/react-codemirror/static/js/4286.69f182e3.chunk.js", + "static/js/5034.edebafa3.chunk.js": "/react-codemirror/static/js/5034.edebafa3.chunk.js", + "static/js/6268.a51576e1.chunk.js": "/react-codemirror/static/js/6268.a51576e1.chunk.js", + "static/js/5164.c6d7b838.chunk.js": "/react-codemirror/static/js/5164.c6d7b838.chunk.js", + "static/js/8410.d2b9b4be.chunk.js": "/react-codemirror/static/js/8410.d2b9b4be.chunk.js", + "static/js/7511.8c4b9d6e.chunk.js": "/react-codemirror/static/js/7511.8c4b9d6e.chunk.js", + "static/js/5541.3900e208.chunk.js": "/react-codemirror/static/js/5541.3900e208.chunk.js", + "static/js/4661.e9bd427f.chunk.js": "/react-codemirror/static/js/4661.e9bd427f.chunk.js", + "static/js/4593.082f3f7d.chunk.js": "/react-codemirror/static/js/4593.082f3f7d.chunk.js", + "static/js/3733.1e7c89d9.chunk.js": "/react-codemirror/static/js/3733.1e7c89d9.chunk.js", + "static/js/4890.a53b9097.chunk.js": "/react-codemirror/static/js/4890.a53b9097.chunk.js", + "static/js/8453.90f560b3.chunk.js": "/react-codemirror/static/js/8453.90f560b3.chunk.js", + "static/js/7626.22adbe4e.chunk.js": "/react-codemirror/static/js/7626.22adbe4e.chunk.js", + "static/js/3498.99e1287f.chunk.js": "/react-codemirror/static/js/3498.99e1287f.chunk.js", + "static/js/6787.dbf7d757.chunk.js": "/react-codemirror/static/js/6787.dbf7d757.chunk.js", + "static/js/1093.dc32c871.chunk.js": "/react-codemirror/static/js/1093.dc32c871.chunk.js", + "static/js/8884.4b6e41ad.chunk.js": "/react-codemirror/static/js/8884.4b6e41ad.chunk.js", + "static/js/4166.0d011077.chunk.js": "/react-codemirror/static/js/4166.0d011077.chunk.js", + "static/js/1958.7b7388ba.chunk.js": "/react-codemirror/static/js/1958.7b7388ba.chunk.js", + "static/js/7610.a19f4802.chunk.js": "/react-codemirror/static/js/7610.a19f4802.chunk.js", + "static/js/671.be467c24.chunk.js": "/react-codemirror/static/js/671.be467c24.chunk.js", + "static/js/8152.a5ce9989.chunk.js": "/react-codemirror/static/js/8152.a5ce9989.chunk.js", + "static/js/3787.9c9086b0.chunk.js": "/react-codemirror/static/js/3787.9c9086b0.chunk.js", + "static/js/1033.a84451e8.chunk.js": "/react-codemirror/static/js/1033.a84451e8.chunk.js", + "static/js/4905.6d0862e7.chunk.js": "/react-codemirror/static/js/4905.6d0862e7.chunk.js", + "static/js/1108.0fdba128.chunk.js": "/react-codemirror/static/js/1108.0fdba128.chunk.js", + "static/js/8660.7cd7f2ea.chunk.js": "/react-codemirror/static/js/8660.7cd7f2ea.chunk.js", + "static/js/7695.38e2a860.chunk.js": "/react-codemirror/static/js/7695.38e2a860.chunk.js", + "static/js/5942.a7335211.chunk.js": "/react-codemirror/static/js/5942.a7335211.chunk.js", + "static/js/3087.a51340c3.chunk.js": "/react-codemirror/static/js/3087.a51340c3.chunk.js", + "static/js/4272.edbdc9d5.chunk.js": "/react-codemirror/static/js/4272.edbdc9d5.chunk.js", + "static/js/6401.ca2cc062.chunk.js": "/react-codemirror/static/js/6401.ca2cc062.chunk.js", + "static/js/9476.aae1f342.chunk.js": "/react-codemirror/static/js/9476.aae1f342.chunk.js", + "static/js/8569.b3febb1e.chunk.js": "/react-codemirror/static/js/8569.b3febb1e.chunk.js", + "static/js/6466.701e94f2.chunk.js": "/react-codemirror/static/js/6466.701e94f2.chunk.js", + "static/js/8031.5d1b81ab.chunk.js": "/react-codemirror/static/js/8031.5d1b81ab.chunk.js", + "static/js/9321.0c335cdb.chunk.js": "/react-codemirror/static/js/9321.0c335cdb.chunk.js", + "static/js/602.9cf24290.chunk.js": "/react-codemirror/static/js/602.9cf24290.chunk.js", + "static/js/428.61b7d948.chunk.js": "/react-codemirror/static/js/428.61b7d948.chunk.js", + "static/js/6580.288d34ed.chunk.js": "/react-codemirror/static/js/6580.288d34ed.chunk.js", + "static/js/9336.a7d3651e.chunk.js": "/react-codemirror/static/js/9336.a7d3651e.chunk.js", + "static/js/1600.005e0f6f.chunk.js": "/react-codemirror/static/js/1600.005e0f6f.chunk.js", + "static/js/3834.cd953aa6.chunk.js": "/react-codemirror/static/js/3834.cd953aa6.chunk.js", + "static/js/4668.e8be69e7.chunk.js": "/react-codemirror/static/js/4668.e8be69e7.chunk.js", + "static/js/4199.be21ac51.chunk.js": "/react-codemirror/static/js/4199.be21ac51.chunk.js", + "static/js/1876.235e847b.chunk.js": "/react-codemirror/static/js/1876.235e847b.chunk.js", + "static/js/3368.a985898c.chunk.js": "/react-codemirror/static/js/3368.a985898c.chunk.js", + "static/js/3969.cd399a15.chunk.js": "/react-codemirror/static/js/3969.cd399a15.chunk.js", + "static/js/6203.63546a26.chunk.js": "/react-codemirror/static/js/6203.63546a26.chunk.js", + "static/js/3602.49d39f56.chunk.js": "/react-codemirror/static/js/3602.49d39f56.chunk.js", + "static/js/6365.0f90d1bf.chunk.js": "/react-codemirror/static/js/6365.0f90d1bf.chunk.js", + "static/js/5194.4b48a1f3.chunk.js": "/react-codemirror/static/js/5194.4b48a1f3.chunk.js", + "static/js/721.ba78ce56.chunk.js": "/react-codemirror/static/js/721.ba78ce56.chunk.js", + "static/js/4695.83f04c50.chunk.js": "/react-codemirror/static/js/4695.83f04c50.chunk.js", + "static/js/1419.cdedeb95.chunk.js": "/react-codemirror/static/js/1419.cdedeb95.chunk.js", + "static/js/9308.a6875abe.chunk.js": "/react-codemirror/static/js/9308.a6875abe.chunk.js", + "static/js/9347.cc7cf1f1.chunk.js": "/react-codemirror/static/js/9347.cc7cf1f1.chunk.js", + "static/js/6488.90ae7417.chunk.js": "/react-codemirror/static/js/6488.90ae7417.chunk.js", + "static/js/877.665d8c43.chunk.js": "/react-codemirror/static/js/877.665d8c43.chunk.js", + "static/js/4887.9e7e5a35.chunk.js": "/react-codemirror/static/js/4887.9e7e5a35.chunk.js", + "static/js/6636.8446bab2.chunk.js": "/react-codemirror/static/js/6636.8446bab2.chunk.js", + "static/js/2980.b2a31f2e.chunk.js": "/react-codemirror/static/js/2980.b2a31f2e.chunk.js", + "static/js/1635.a164afbe.chunk.js": "/react-codemirror/static/js/1635.a164afbe.chunk.js", + "static/js/4187.f0bb9f84.chunk.js": "/react-codemirror/static/js/4187.f0bb9f84.chunk.js", + "static/js/9200.cc69488a.chunk.js": "/react-codemirror/static/js/9200.cc69488a.chunk.js", + "static/js/4124.b255733a.chunk.js": "/react-codemirror/static/js/4124.b255733a.chunk.js", + "static/js/310.317979ac.chunk.js": "/react-codemirror/static/js/310.317979ac.chunk.js", + "static/js/9294.a10b6166.chunk.js": "/react-codemirror/static/js/9294.a10b6166.chunk.js", + "static/js/9896.d6c0b0f8.chunk.js": "/react-codemirror/static/js/9896.d6c0b0f8.chunk.js", + "static/js/7324.13e3ae35.chunk.js": "/react-codemirror/static/js/7324.13e3ae35.chunk.js", + "static/js/2771.3dba1fae.chunk.js": "/react-codemirror/static/js/2771.3dba1fae.chunk.js", + "static/js/2942.4c8fdc5c.chunk.js": "/react-codemirror/static/js/2942.4c8fdc5c.chunk.js", + "static/js/2211.6156ccdf.chunk.js": "/react-codemirror/static/js/2211.6156ccdf.chunk.js", + "static/js/6971.e2e1df44.chunk.js": "/react-codemirror/static/js/6971.e2e1df44.chunk.js", + "static/js/4185.63183fe3.chunk.js": "/react-codemirror/static/js/4185.63183fe3.chunk.js", + "static/js/5797.2122fc32.chunk.js": "/react-codemirror/static/js/5797.2122fc32.chunk.js", + "static/js/6453.418c2d89.chunk.js": "/react-codemirror/static/js/6453.418c2d89.chunk.js", + "static/js/5973.67b07b7e.chunk.js": "/react-codemirror/static/js/5973.67b07b7e.chunk.js", + "static/js/3657.3b5571e1.chunk.js": "/react-codemirror/static/js/3657.3b5571e1.chunk.js", + "static/js/5751.835aabf0.chunk.js": "/react-codemirror/static/js/5751.835aabf0.chunk.js", + "static/js/5670.b198c74a.chunk.js": "/react-codemirror/static/js/5670.b198c74a.chunk.js", + "codemirror-vendor.js": "/react-codemirror/static/js/codemirror-vendor.5529399d.js", + "refractor-vendor.js": "/react-codemirror/static/js/refractor-vendor.5deebe34.js", + "react-vendor.js": "/react-codemirror/static/js/react-vendor.f9cf9c2c.js", + "static/js/1670.d5750e43.chunk.js": "/react-codemirror/static/js/1670.d5750e43.chunk.js", + "index.html": "/react-codemirror/index.html", + "static/media/index.cjs": "/react-codemirror/static/media/index.6709ed71e170ea93199e.cjs", + "main.020a7543.css.map": "/react-codemirror/static/css/main.020a7543.css.map", + "main.17944d41.js.map": "/react-codemirror/static/js/main.17944d41.js.map", + "9839.3b83817f.chunk.js.map": "/react-codemirror/static/js/9839.3b83817f.chunk.js.map", + "137.6776a3ec.chunk.js.map": "/react-codemirror/static/js/137.6776a3ec.chunk.js.map", + "7519.78ed2a4f.chunk.js.map": "/react-codemirror/static/js/7519.78ed2a4f.chunk.js.map", + "9119.2be421da.chunk.js.map": "/react-codemirror/static/js/9119.2be421da.chunk.js.map", + "2007.2b9194e0.chunk.js.map": "/react-codemirror/static/js/2007.2b9194e0.chunk.js.map", + "7310.7796653d.chunk.js.map": "/react-codemirror/static/js/7310.7796653d.chunk.js.map", + "4647.16b8ecd5.chunk.js.map": "/react-codemirror/static/js/4647.16b8ecd5.chunk.js.map", + "6052.9de5ce94.chunk.js.map": "/react-codemirror/static/js/6052.9de5ce94.chunk.js.map", + "3211.837a71c5.chunk.js.map": "/react-codemirror/static/js/3211.837a71c5.chunk.js.map", + "7486.bbc5938f.chunk.js.map": "/react-codemirror/static/js/7486.bbc5938f.chunk.js.map", + "8942.2280e3f0.chunk.js.map": "/react-codemirror/static/js/8942.2280e3f0.chunk.js.map", + "6786.8fe6c399.chunk.js.map": "/react-codemirror/static/js/6786.8fe6c399.chunk.js.map", + "2919.bf1e8c63.chunk.js.map": "/react-codemirror/static/js/2919.bf1e8c63.chunk.js.map", + "1811.3fdc7306.chunk.js.map": "/react-codemirror/static/js/1811.3fdc7306.chunk.js.map", + "2578.b7d5618a.chunk.js.map": "/react-codemirror/static/js/2578.b7d5618a.chunk.js.map", + "2371.a66cb67b.chunk.js.map": "/react-codemirror/static/js/2371.a66cb67b.chunk.js.map", + "6783.108b06d9.chunk.js.map": "/react-codemirror/static/js/6783.108b06d9.chunk.js.map", + "4136.bc8b9b2e.chunk.js.map": "/react-codemirror/static/js/4136.bc8b9b2e.chunk.js.map", + "1353.e0f62c5f.chunk.js.map": "/react-codemirror/static/js/1353.e0f62c5f.chunk.js.map", + "3175.5a421912.chunk.js.map": "/react-codemirror/static/js/3175.5a421912.chunk.js.map", + "2224.50710b1b.chunk.js.map": "/react-codemirror/static/js/2224.50710b1b.chunk.js.map", + "3806.6abd52c9.chunk.js.map": "/react-codemirror/static/js/3806.6abd52c9.chunk.js.map", + "9482.8b46f0cc.chunk.js.map": "/react-codemirror/static/js/9482.8b46f0cc.chunk.js.map", + "9242.35547699.chunk.js.map": "/react-codemirror/static/js/9242.35547699.chunk.js.map", + "8282.9b2f9e9c.chunk.js.map": "/react-codemirror/static/js/8282.9b2f9e9c.chunk.js.map", + "2648.c2727c3b.chunk.js.map": "/react-codemirror/static/js/2648.c2727c3b.chunk.js.map", + "6499.72f4cee7.chunk.js.map": "/react-codemirror/static/js/6499.72f4cee7.chunk.js.map", + "8313.be34f1d0.chunk.js.map": "/react-codemirror/static/js/8313.be34f1d0.chunk.js.map", + "2277.e4afd10b.chunk.js.map": "/react-codemirror/static/js/2277.e4afd10b.chunk.js.map", + "6829.38c49ce8.chunk.js.map": "/react-codemirror/static/js/6829.38c49ce8.chunk.js.map", + "796.6cc83227.chunk.js.map": "/react-codemirror/static/js/796.6cc83227.chunk.js.map", + "2753.3b9c2bf8.chunk.js.map": "/react-codemirror/static/js/2753.3b9c2bf8.chunk.js.map", + "2012.67266c77.chunk.js.map": "/react-codemirror/static/js/2012.67266c77.chunk.js.map", + "1726.079d5ab0.chunk.js.map": "/react-codemirror/static/js/1726.079d5ab0.chunk.js.map", + "622.38db8228.chunk.js.map": "/react-codemirror/static/js/622.38db8228.chunk.js.map", + "2607.c70dda35.chunk.js.map": "/react-codemirror/static/js/2607.c70dda35.chunk.js.map", + "5113.5b532d2c.chunk.js.map": "/react-codemirror/static/js/5113.5b532d2c.chunk.js.map", + "9615.b9a6b231.chunk.js.map": "/react-codemirror/static/js/9615.b9a6b231.chunk.js.map", + "6171.21390f86.chunk.js.map": "/react-codemirror/static/js/6171.21390f86.chunk.js.map", + "4724.48d0a499.chunk.js.map": "/react-codemirror/static/js/4724.48d0a499.chunk.js.map", + "4873.66caa08d.chunk.js.map": "/react-codemirror/static/js/4873.66caa08d.chunk.js.map", + "5123.56c30da5.chunk.js.map": "/react-codemirror/static/js/5123.56c30da5.chunk.js.map", + "5520.0993bea7.chunk.js.map": "/react-codemirror/static/js/5520.0993bea7.chunk.js.map", + "6565.ae6d65b6.chunk.js.map": "/react-codemirror/static/js/6565.ae6d65b6.chunk.js.map", + "7889.e60bd5c8.chunk.js.map": "/react-codemirror/static/js/7889.e60bd5c8.chunk.js.map", + "1290.2ee31a34.chunk.js.map": "/react-codemirror/static/js/1290.2ee31a34.chunk.js.map", + "6450.9dac4e30.chunk.js.map": "/react-codemirror/static/js/6450.9dac4e30.chunk.js.map", + "9965.f40f92d3.chunk.js.map": "/react-codemirror/static/js/9965.f40f92d3.chunk.js.map", + "4150.347f0210.chunk.js.map": "/react-codemirror/static/js/4150.347f0210.chunk.js.map", + "1771.379febe5.chunk.js.map": "/react-codemirror/static/js/1771.379febe5.chunk.js.map", + "1453.e720de64.chunk.js.map": "/react-codemirror/static/js/1453.e720de64.chunk.js.map", + "2424.1dd92a31.chunk.js.map": "/react-codemirror/static/js/2424.1dd92a31.chunk.js.map", + "3392.d9fa6ccf.chunk.js.map": "/react-codemirror/static/js/3392.d9fa6ccf.chunk.js.map", + "2801.37502b2f.chunk.js.map": "/react-codemirror/static/js/2801.37502b2f.chunk.js.map", + "6653.e794db69.chunk.js.map": "/react-codemirror/static/js/6653.e794db69.chunk.js.map", + "9547.b3099f3a.chunk.js.map": "/react-codemirror/static/js/9547.b3099f3a.chunk.js.map", + "9365.bf468cf2.chunk.js.map": "/react-codemirror/static/js/9365.bf468cf2.chunk.js.map", + "7795.b04c9d94.chunk.js.map": "/react-codemirror/static/js/7795.b04c9d94.chunk.js.map", + "470.45eb5978.chunk.js.map": "/react-codemirror/static/js/470.45eb5978.chunk.js.map", + "803.9e7fb16b.chunk.js.map": "/react-codemirror/static/js/803.9e7fb16b.chunk.js.map", + "8465.f6dca126.chunk.js.map": "/react-codemirror/static/js/8465.f6dca126.chunk.js.map", + "6124.db037c9b.chunk.js.map": "/react-codemirror/static/js/6124.db037c9b.chunk.js.map", + "4286.69f182e3.chunk.js.map": "/react-codemirror/static/js/4286.69f182e3.chunk.js.map", + "5034.edebafa3.chunk.js.map": "/react-codemirror/static/js/5034.edebafa3.chunk.js.map", + "6268.a51576e1.chunk.js.map": "/react-codemirror/static/js/6268.a51576e1.chunk.js.map", + "5164.c6d7b838.chunk.js.map": "/react-codemirror/static/js/5164.c6d7b838.chunk.js.map", + "8410.d2b9b4be.chunk.js.map": "/react-codemirror/static/js/8410.d2b9b4be.chunk.js.map", + "7511.8c4b9d6e.chunk.js.map": "/react-codemirror/static/js/7511.8c4b9d6e.chunk.js.map", + "5541.3900e208.chunk.js.map": "/react-codemirror/static/js/5541.3900e208.chunk.js.map", + "4661.e9bd427f.chunk.js.map": "/react-codemirror/static/js/4661.e9bd427f.chunk.js.map", + "4593.082f3f7d.chunk.js.map": "/react-codemirror/static/js/4593.082f3f7d.chunk.js.map", + "3733.1e7c89d9.chunk.js.map": "/react-codemirror/static/js/3733.1e7c89d9.chunk.js.map", + "4890.a53b9097.chunk.js.map": "/react-codemirror/static/js/4890.a53b9097.chunk.js.map", + "8453.90f560b3.chunk.js.map": "/react-codemirror/static/js/8453.90f560b3.chunk.js.map", + "7626.22adbe4e.chunk.js.map": "/react-codemirror/static/js/7626.22adbe4e.chunk.js.map", + "3498.99e1287f.chunk.js.map": "/react-codemirror/static/js/3498.99e1287f.chunk.js.map", + "6787.dbf7d757.chunk.js.map": "/react-codemirror/static/js/6787.dbf7d757.chunk.js.map", + "1093.dc32c871.chunk.js.map": "/react-codemirror/static/js/1093.dc32c871.chunk.js.map", + "8884.4b6e41ad.chunk.js.map": "/react-codemirror/static/js/8884.4b6e41ad.chunk.js.map", + "4166.0d011077.chunk.js.map": "/react-codemirror/static/js/4166.0d011077.chunk.js.map", + "1958.7b7388ba.chunk.js.map": "/react-codemirror/static/js/1958.7b7388ba.chunk.js.map", + "7610.a19f4802.chunk.js.map": "/react-codemirror/static/js/7610.a19f4802.chunk.js.map", + "671.be467c24.chunk.js.map": "/react-codemirror/static/js/671.be467c24.chunk.js.map", + "8152.a5ce9989.chunk.js.map": "/react-codemirror/static/js/8152.a5ce9989.chunk.js.map", + "3787.9c9086b0.chunk.js.map": "/react-codemirror/static/js/3787.9c9086b0.chunk.js.map", + "1033.a84451e8.chunk.js.map": "/react-codemirror/static/js/1033.a84451e8.chunk.js.map", + "4905.6d0862e7.chunk.js.map": "/react-codemirror/static/js/4905.6d0862e7.chunk.js.map", + "1108.0fdba128.chunk.js.map": "/react-codemirror/static/js/1108.0fdba128.chunk.js.map", + "8660.7cd7f2ea.chunk.js.map": "/react-codemirror/static/js/8660.7cd7f2ea.chunk.js.map", + "7695.38e2a860.chunk.js.map": "/react-codemirror/static/js/7695.38e2a860.chunk.js.map", + "5942.a7335211.chunk.js.map": "/react-codemirror/static/js/5942.a7335211.chunk.js.map", + "3087.a51340c3.chunk.js.map": "/react-codemirror/static/js/3087.a51340c3.chunk.js.map", + "4272.edbdc9d5.chunk.js.map": "/react-codemirror/static/js/4272.edbdc9d5.chunk.js.map", + "6401.ca2cc062.chunk.js.map": "/react-codemirror/static/js/6401.ca2cc062.chunk.js.map", + "9476.aae1f342.chunk.js.map": "/react-codemirror/static/js/9476.aae1f342.chunk.js.map", + "8569.b3febb1e.chunk.js.map": "/react-codemirror/static/js/8569.b3febb1e.chunk.js.map", + "6466.701e94f2.chunk.js.map": "/react-codemirror/static/js/6466.701e94f2.chunk.js.map", + "8031.5d1b81ab.chunk.js.map": "/react-codemirror/static/js/8031.5d1b81ab.chunk.js.map", + "9321.0c335cdb.chunk.js.map": "/react-codemirror/static/js/9321.0c335cdb.chunk.js.map", + "602.9cf24290.chunk.js.map": "/react-codemirror/static/js/602.9cf24290.chunk.js.map", + "428.61b7d948.chunk.js.map": "/react-codemirror/static/js/428.61b7d948.chunk.js.map", + "6580.288d34ed.chunk.js.map": "/react-codemirror/static/js/6580.288d34ed.chunk.js.map", + "9336.a7d3651e.chunk.js.map": "/react-codemirror/static/js/9336.a7d3651e.chunk.js.map", + "1600.005e0f6f.chunk.js.map": "/react-codemirror/static/js/1600.005e0f6f.chunk.js.map", + "3834.cd953aa6.chunk.js.map": "/react-codemirror/static/js/3834.cd953aa6.chunk.js.map", + "4668.e8be69e7.chunk.js.map": "/react-codemirror/static/js/4668.e8be69e7.chunk.js.map", + "4199.be21ac51.chunk.js.map": "/react-codemirror/static/js/4199.be21ac51.chunk.js.map", + "1876.235e847b.chunk.js.map": "/react-codemirror/static/js/1876.235e847b.chunk.js.map", + "3368.a985898c.chunk.js.map": "/react-codemirror/static/js/3368.a985898c.chunk.js.map", + "3969.cd399a15.chunk.js.map": "/react-codemirror/static/js/3969.cd399a15.chunk.js.map", + "6203.63546a26.chunk.js.map": "/react-codemirror/static/js/6203.63546a26.chunk.js.map", + "3602.49d39f56.chunk.js.map": "/react-codemirror/static/js/3602.49d39f56.chunk.js.map", + "6365.0f90d1bf.chunk.js.map": "/react-codemirror/static/js/6365.0f90d1bf.chunk.js.map", + "5194.4b48a1f3.chunk.js.map": "/react-codemirror/static/js/5194.4b48a1f3.chunk.js.map", + "721.ba78ce56.chunk.js.map": "/react-codemirror/static/js/721.ba78ce56.chunk.js.map", + "4695.83f04c50.chunk.js.map": "/react-codemirror/static/js/4695.83f04c50.chunk.js.map", + "1419.cdedeb95.chunk.js.map": "/react-codemirror/static/js/1419.cdedeb95.chunk.js.map", + "9308.a6875abe.chunk.js.map": "/react-codemirror/static/js/9308.a6875abe.chunk.js.map", + "9347.cc7cf1f1.chunk.js.map": "/react-codemirror/static/js/9347.cc7cf1f1.chunk.js.map", + "6488.90ae7417.chunk.js.map": "/react-codemirror/static/js/6488.90ae7417.chunk.js.map", + "877.665d8c43.chunk.js.map": "/react-codemirror/static/js/877.665d8c43.chunk.js.map", + "4887.9e7e5a35.chunk.js.map": "/react-codemirror/static/js/4887.9e7e5a35.chunk.js.map", + "6636.8446bab2.chunk.js.map": "/react-codemirror/static/js/6636.8446bab2.chunk.js.map", + "2980.b2a31f2e.chunk.js.map": "/react-codemirror/static/js/2980.b2a31f2e.chunk.js.map", + "1635.a164afbe.chunk.js.map": "/react-codemirror/static/js/1635.a164afbe.chunk.js.map", + "4187.f0bb9f84.chunk.js.map": "/react-codemirror/static/js/4187.f0bb9f84.chunk.js.map", + "9200.cc69488a.chunk.js.map": "/react-codemirror/static/js/9200.cc69488a.chunk.js.map", + "4124.b255733a.chunk.js.map": "/react-codemirror/static/js/4124.b255733a.chunk.js.map", + "310.317979ac.chunk.js.map": "/react-codemirror/static/js/310.317979ac.chunk.js.map", + "9294.a10b6166.chunk.js.map": "/react-codemirror/static/js/9294.a10b6166.chunk.js.map", + "9896.d6c0b0f8.chunk.js.map": "/react-codemirror/static/js/9896.d6c0b0f8.chunk.js.map", + "7324.13e3ae35.chunk.js.map": "/react-codemirror/static/js/7324.13e3ae35.chunk.js.map", + "2771.3dba1fae.chunk.js.map": "/react-codemirror/static/js/2771.3dba1fae.chunk.js.map", + "2942.4c8fdc5c.chunk.js.map": "/react-codemirror/static/js/2942.4c8fdc5c.chunk.js.map", + "2211.6156ccdf.chunk.js.map": "/react-codemirror/static/js/2211.6156ccdf.chunk.js.map", + "6971.e2e1df44.chunk.js.map": "/react-codemirror/static/js/6971.e2e1df44.chunk.js.map", + "4185.63183fe3.chunk.js.map": "/react-codemirror/static/js/4185.63183fe3.chunk.js.map", + "5797.2122fc32.chunk.js.map": "/react-codemirror/static/js/5797.2122fc32.chunk.js.map", + "6453.418c2d89.chunk.js.map": "/react-codemirror/static/js/6453.418c2d89.chunk.js.map", + "5973.67b07b7e.chunk.js.map": "/react-codemirror/static/js/5973.67b07b7e.chunk.js.map", + "3657.3b5571e1.chunk.js.map": "/react-codemirror/static/js/3657.3b5571e1.chunk.js.map", + "5751.835aabf0.chunk.js.map": "/react-codemirror/static/js/5751.835aabf0.chunk.js.map", + "5670.b198c74a.chunk.js.map": "/react-codemirror/static/js/5670.b198c74a.chunk.js.map", + "codemirror-vendor.5529399d.js.map": "/react-codemirror/static/js/codemirror-vendor.5529399d.js.map", + "refractor-vendor.5deebe34.js.map": "/react-codemirror/static/js/refractor-vendor.5deebe34.js.map", + "react-vendor.f9cf9c2c.js.map": "/react-codemirror/static/js/react-vendor.f9cf9c2c.js.map", + "1670.d5750e43.chunk.js.map": "/react-codemirror/static/js/1670.d5750e43.chunk.js.map" + }, + "entrypoints": [ + "static/js/codemirror-vendor.5529399d.js", + "static/js/refractor-vendor.5deebe34.js", + "static/js/react-vendor.f9cf9c2c.js", + "static/css/main.020a7543.css", + "static/js/main.17944d41.js" + ] +} \ No newline at end of file diff --git a/bundle.html b/bundle.html new file mode 100644 index 000000000..816bac138 --- /dev/null +++ b/bundle.html @@ -0,0 +1,46 @@ + + + + + + + + + + + +
+ + + + diff --git a/coverage/badges.svg b/coverage/badges.svg new file mode 100644 index 000000000..fb30bb07f --- /dev/null +++ b/coverage/badges.svg @@ -0,0 +1,20 @@ + + coverage: 89.13% + + + + + + + + + + + + + \ No newline at end of file diff --git a/coverage/coverage-summary.json b/coverage/coverage-summary.json new file mode 100644 index 000000000..650268b31 --- /dev/null +++ b/coverage/coverage-summary.json @@ -0,0 +1,7 @@ +{"total": {"lines":{"total":90,"covered":80,"skipped":0,"pct":88.88},"statements":{"total":92,"covered":82,"skipped":0,"pct":89.13},"functions":{"total":17,"covered":14,"skipped":0,"pct":82.35},"branches":{"total":86,"covered":63,"skipped":0,"pct":73.25},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}} +,"/home/runner/work/react-codemirror/react-codemirror/core/src/getDefaultExtensions.ts": {"lines":{"total":24,"covered":19,"skipped":0,"pct":79.16},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":24,"covered":19,"skipped":0,"pct":79.16},"branches":{"total":23,"covered":10,"skipped":0,"pct":43.47}} +,"/home/runner/work/react-codemirror/react-codemirror/core/src/index.tsx": {"lines":{"total":10,"covered":9,"skipped":0,"pct":90},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":11,"covered":10,"skipped":0,"pct":90.9},"branches":{"total":9,"covered":7,"skipped":0,"pct":77.77}} +,"/home/runner/work/react-codemirror/react-codemirror/core/src/useCodeMirror.ts": {"lines":{"total":51,"covered":50,"skipped":0,"pct":98.03},"functions":{"total":11,"covered":11,"skipped":0,"pct":100},"statements":{"total":52,"covered":51,"skipped":0,"pct":98.07},"branches":{"total":54,"covered":46,"skipped":0,"pct":85.18}} +,"/home/runner/work/react-codemirror/react-codemirror/core/src/utils.ts": {"lines":{"total":4,"covered":1,"skipped":0,"pct":25},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":4,"covered":1,"skipped":0,"pct":25},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} +,"/home/runner/work/react-codemirror/react-codemirror/core/src/theme/light.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}} +} diff --git a/coverage/lcov-report/base.css b/coverage/lcov-report/base.css new file mode 100644 index 000000000..f418035b4 --- /dev/null +++ b/coverage/lcov-report/base.css @@ -0,0 +1,224 @@ +body, html { + margin:0; padding: 0; + height: 100%; +} +body { + font-family: Helvetica Neue, Helvetica, Arial; + font-size: 14px; + color:#333; +} +.small { font-size: 12px; } +*, *:after, *:before { + -webkit-box-sizing:border-box; + -moz-box-sizing:border-box; + box-sizing:border-box; + } +h1 { font-size: 20px; margin: 0;} +h2 { font-size: 14px; } +pre { + font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; + margin: 0; + padding: 0; + -moz-tab-size: 2; + -o-tab-size: 2; + tab-size: 2; +} +a { color:#0074D9; text-decoration:none; } +a:hover { text-decoration:underline; } +.strong { font-weight: bold; } +.space-top1 { padding: 10px 0 0 0; } +.pad2y { padding: 20px 0; } +.pad1y { padding: 10px 0; } +.pad2x { padding: 0 20px; } +.pad2 { padding: 20px; } +.pad1 { padding: 10px; } +.space-left2 { padding-left:55px; } +.space-right2 { padding-right:20px; } +.center { text-align:center; } +.clearfix { display:block; } +.clearfix:after { + content:''; + display:block; + height:0; + clear:both; + visibility:hidden; + } +.fl { float: left; } +@media only screen and (max-width:640px) { + .col3 { width:100%; max-width:100%; } + .hide-mobile { display:none!important; } +} + +.quiet { + color: #7f7f7f; + color: rgba(0,0,0,0.5); +} +.quiet a { opacity: 0.7; } + +.fraction { + font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; + font-size: 10px; + color: #555; + background: #E8E8E8; + padding: 4px 5px; + border-radius: 3px; + vertical-align: middle; +} + +div.path a:link, div.path a:visited { color: #333; } +table.coverage { + border-collapse: collapse; + margin: 10px 0 0 0; + padding: 0; +} + +table.coverage td { + margin: 0; + padding: 0; + vertical-align: top; +} +table.coverage td.line-count { + text-align: right; + padding: 0 5px 0 20px; +} +table.coverage td.line-coverage { + text-align: right; + padding-right: 10px; + min-width:20px; +} + +table.coverage td span.cline-any { + display: inline-block; + padding: 0 5px; + width: 100%; +} +.missing-if-branch { + display: inline-block; + margin-right: 5px; + border-radius: 3px; + position: relative; + padding: 0 4px; + background: #333; + color: yellow; +} + +.skip-if-branch { + display: none; + margin-right: 10px; + position: relative; + padding: 0 4px; + background: #ccc; + color: white; +} +.missing-if-branch .typ, .skip-if-branch .typ { + color: inherit !important; +} +.coverage-summary { + border-collapse: collapse; + width: 100%; +} +.coverage-summary tr { border-bottom: 1px solid #bbb; } +.keyline-all { border: 1px solid #ddd; } +.coverage-summary td, .coverage-summary th { padding: 10px; } +.coverage-summary tbody { border: 1px solid #bbb; } +.coverage-summary td { border-right: 1px solid #bbb; } +.coverage-summary td:last-child { border-right: none; } +.coverage-summary th { + text-align: left; + font-weight: normal; + white-space: nowrap; +} +.coverage-summary th.file { border-right: none !important; } +.coverage-summary th.pct { } +.coverage-summary th.pic, +.coverage-summary th.abs, +.coverage-summary td.pct, +.coverage-summary td.abs { text-align: right; } +.coverage-summary td.file { white-space: nowrap; } +.coverage-summary td.pic { min-width: 120px !important; } +.coverage-summary tfoot td { } + +.coverage-summary .sorter { + height: 10px; + width: 7px; + display: inline-block; + margin-left: 0.5em; + background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; +} +.coverage-summary .sorted .sorter { + background-position: 0 -20px; +} +.coverage-summary .sorted-desc .sorter { + background-position: 0 -10px; +} +.status-line { height: 10px; } +/* yellow */ +.cbranch-no { background: yellow !important; color: #111; } +/* dark red */ +.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } +.low .chart { border:1px solid #C21F39 } +.highlighted, +.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ + background: #C21F39 !important; +} +/* medium red */ +.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } +/* light red */ +.low, .cline-no { background:#FCE1E5 } +/* light green */ +.high, .cline-yes { background:rgb(230,245,208) } +/* medium green */ +.cstat-yes { background:rgb(161,215,106) } +/* dark green */ +.status-line.high, .high .cover-fill { background:rgb(77,146,33) } +.high .chart { border:1px solid rgb(77,146,33) } +/* dark yellow (gold) */ +.status-line.medium, .medium .cover-fill { background: #f9cd0b; } +.medium .chart { border:1px solid #f9cd0b; } +/* light yellow */ +.medium { background: #fff4c2; } + +.cstat-skip { background: #ddd; color: #111; } +.fstat-skip { background: #ddd; color: #111 !important; } +.cbranch-skip { background: #ddd !important; color: #111; } + +span.cline-neutral { background: #eaeaea; } + +.coverage-summary td.empty { + opacity: .5; + padding-top: 4px; + padding-bottom: 4px; + line-height: 1; + color: #888; +} + +.cover-fill, .cover-empty { + display:inline-block; + height: 12px; +} +.chart { + line-height: 0; +} +.cover-empty { + background: white; +} +.cover-full { + border-right: none !important; +} +pre.prettyprint { + border: none !important; + padding: 0 !important; + margin: 0 !important; +} +.com { color: #999 !important; } +.ignore-none { color: #999; font-weight: normal; } + +.wrapper { + min-height: 100%; + height: auto !important; + height: 100%; + margin: 0 auto -48px; +} +.footer, .push { + height: 48px; +} diff --git a/coverage/lcov-report/block-navigation.js b/coverage/lcov-report/block-navigation.js new file mode 100644 index 000000000..cc1213023 --- /dev/null +++ b/coverage/lcov-report/block-navigation.js @@ -0,0 +1,87 @@ +/* eslint-disable */ +var jumpToCode = (function init() { + // Classes of code we would like to highlight in the file view + var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; + + // Elements to highlight in the file listing view + var fileListingElements = ['td.pct.low']; + + // We don't want to select elements that are direct descendants of another match + var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` + + // Selecter that finds elements on the page to which we can jump + var selector = + fileListingElements.join(', ') + + ', ' + + notSelector + + missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` + + // The NodeList of matching elements + var missingCoverageElements = document.querySelectorAll(selector); + + var currentIndex; + + function toggleClass(index) { + missingCoverageElements + .item(currentIndex) + .classList.remove('highlighted'); + missingCoverageElements.item(index).classList.add('highlighted'); + } + + function makeCurrent(index) { + toggleClass(index); + currentIndex = index; + missingCoverageElements.item(index).scrollIntoView({ + behavior: 'smooth', + block: 'center', + inline: 'center' + }); + } + + function goToPrevious() { + var nextIndex = 0; + if (typeof currentIndex !== 'number' || currentIndex === 0) { + nextIndex = missingCoverageElements.length - 1; + } else if (missingCoverageElements.length > 1) { + nextIndex = currentIndex - 1; + } + + makeCurrent(nextIndex); + } + + function goToNext() { + var nextIndex = 0; + + if ( + typeof currentIndex === 'number' && + currentIndex < missingCoverageElements.length - 1 + ) { + nextIndex = currentIndex + 1; + } + + makeCurrent(nextIndex); + } + + return function jump(event) { + if ( + document.getElementById('fileSearch') === document.activeElement && + document.activeElement != null + ) { + // if we're currently focused on the search input, we don't want to navigate + return; + } + + switch (event.which) { + case 78: // n + case 74: // j + goToNext(); + break; + case 66: // b + case 75: // k + case 80: // p + goToPrevious(); + break; + } + }; +})(); +window.addEventListener('keydown', jumpToCode); diff --git a/coverage/lcov-report/favicon.png b/coverage/lcov-report/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..c1525b811a167671e9de1fa78aab9f5c0b61cef7 GIT binary patch literal 445 zcmV;u0Yd(XP))rP{nL}Ln%S7`m{0DjX9TLF* zFCb$4Oi7vyLOydb!7n&^ItCzb-%BoB`=x@N2jll2Nj`kauio%aw_@fe&*}LqlFT43 z8doAAe))z_%=P%v^@JHp3Hjhj^6*Kr_h|g_Gr?ZAa&y>wxHE99Gk>A)2MplWz2xdG zy8VD2J|Uf#EAw*bo5O*PO_}X2Tob{%bUoO2G~T`@%S6qPyc}VkhV}UifBuRk>%5v( z)x7B{I~z*k<7dv#5tC+m{km(D087J4O%+<<;K|qwefb6@GSX45wCK}Sn*> + + + + Code coverage report for All files + + + + + + + + + +
+
+

All files

+
+ +
+ 89.13% + Statements + 82/92 +
+ + +
+ 73.25% + Branches + 63/86 +
+ + +
+ 82.35% + Functions + 14/17 +
+ + +
+ 88.88% + Lines + 80/90 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
src +
+
89.01%81/9173.25%63/8682.35%14/1788.76%79/89
src/theme +
+
100%1/1100%0/0100%0/0100%1/1
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/prettify.css b/coverage/lcov-report/prettify.css new file mode 100644 index 000000000..b317a7cda --- /dev/null +++ b/coverage/lcov-report/prettify.css @@ -0,0 +1 @@ +.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} diff --git a/coverage/lcov-report/prettify.js b/coverage/lcov-report/prettify.js new file mode 100644 index 000000000..b3225238f --- /dev/null +++ b/coverage/lcov-report/prettify.js @@ -0,0 +1,2 @@ +/* eslint-disable */ +window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff --git a/coverage/lcov-report/sort-arrow-sprite.png b/coverage/lcov-report/sort-arrow-sprite.png new file mode 100644 index 0000000000000000000000000000000000000000..6ed68316eb3f65dec9063332d2f69bf3093bbfab GIT binary patch literal 138 zcmeAS@N?(olHy`uVBq!ia0vp^>_9Bd!3HEZxJ@+%Qh}Z>jv*C{$p!i!8j}?a+@3A= zIAGwzjijN=FBi!|L1t?LM;Q;gkwn>2cAy-KV{dn nf0J1DIvEHQu*n~6U}x}qyky7vi4|9XhBJ7&`njxgN@xNA8m%nc literal 0 HcmV?d00001 diff --git a/coverage/lcov-report/sorter.js b/coverage/lcov-report/sorter.js new file mode 100644 index 000000000..2bb296a8c --- /dev/null +++ b/coverage/lcov-report/sorter.js @@ -0,0 +1,196 @@ +/* eslint-disable */ +var addSorting = (function() { + 'use strict'; + var cols, + currentSort = { + index: 0, + desc: false + }; + + // returns the summary table element + function getTable() { + return document.querySelector('.coverage-summary'); + } + // returns the thead element of the summary table + function getTableHeader() { + return getTable().querySelector('thead tr'); + } + // returns the tbody element of the summary table + function getTableBody() { + return getTable().querySelector('tbody'); + } + // returns the th element for nth column + function getNthColumn(n) { + return getTableHeader().querySelectorAll('th')[n]; + } + + function onFilterInput() { + const searchValue = document.getElementById('fileSearch').value; + const rows = document.getElementsByTagName('tbody')[0].children; + for (let i = 0; i < rows.length; i++) { + const row = rows[i]; + if ( + row.textContent + .toLowerCase() + .includes(searchValue.toLowerCase()) + ) { + row.style.display = ''; + } else { + row.style.display = 'none'; + } + } + } + + // loads the search box + function addSearchBox() { + var template = document.getElementById('filterTemplate'); + var templateClone = template.content.cloneNode(true); + templateClone.getElementById('fileSearch').oninput = onFilterInput; + template.parentElement.appendChild(templateClone); + } + + // loads all columns + function loadColumns() { + var colNodes = getTableHeader().querySelectorAll('th'), + colNode, + cols = [], + col, + i; + + for (i = 0; i < colNodes.length; i += 1) { + colNode = colNodes[i]; + col = { + key: colNode.getAttribute('data-col'), + sortable: !colNode.getAttribute('data-nosort'), + type: colNode.getAttribute('data-type') || 'string' + }; + cols.push(col); + if (col.sortable) { + col.defaultDescSort = col.type === 'number'; + colNode.innerHTML = + colNode.innerHTML + ''; + } + } + return cols; + } + // attaches a data attribute to every tr element with an object + // of data values keyed by column name + function loadRowData(tableRow) { + var tableCols = tableRow.querySelectorAll('td'), + colNode, + col, + data = {}, + i, + val; + for (i = 0; i < tableCols.length; i += 1) { + colNode = tableCols[i]; + col = cols[i]; + val = colNode.getAttribute('data-value'); + if (col.type === 'number') { + val = Number(val); + } + data[col.key] = val; + } + return data; + } + // loads all row data + function loadData() { + var rows = getTableBody().querySelectorAll('tr'), + i; + + for (i = 0; i < rows.length; i += 1) { + rows[i].data = loadRowData(rows[i]); + } + } + // sorts the table using the data for the ith column + function sortByIndex(index, desc) { + var key = cols[index].key, + sorter = function(a, b) { + a = a.data[key]; + b = b.data[key]; + return a < b ? -1 : a > b ? 1 : 0; + }, + finalSorter = sorter, + tableBody = document.querySelector('.coverage-summary tbody'), + rowNodes = tableBody.querySelectorAll('tr'), + rows = [], + i; + + if (desc) { + finalSorter = function(a, b) { + return -1 * sorter(a, b); + }; + } + + for (i = 0; i < rowNodes.length; i += 1) { + rows.push(rowNodes[i]); + tableBody.removeChild(rowNodes[i]); + } + + rows.sort(finalSorter); + + for (i = 0; i < rows.length; i += 1) { + tableBody.appendChild(rows[i]); + } + } + // removes sort indicators for current column being sorted + function removeSortIndicators() { + var col = getNthColumn(currentSort.index), + cls = col.className; + + cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); + col.className = cls; + } + // adds sort indicators for current column being sorted + function addSortIndicators() { + getNthColumn(currentSort.index).className += currentSort.desc + ? ' sorted-desc' + : ' sorted'; + } + // adds event listeners for all sorter widgets + function enableUI() { + var i, + el, + ithSorter = function ithSorter(i) { + var col = cols[i]; + + return function() { + var desc = col.defaultDescSort; + + if (currentSort.index === i) { + desc = !currentSort.desc; + } + sortByIndex(i, desc); + removeSortIndicators(); + currentSort.index = i; + currentSort.desc = desc; + addSortIndicators(); + }; + }; + for (i = 0; i < cols.length; i += 1) { + if (cols[i].sortable) { + // add the click event handler on the th so users + // dont have to click on those tiny arrows + el = getNthColumn(i).querySelector('.sorter').parentElement; + if (el.addEventListener) { + el.addEventListener('click', ithSorter(i)); + } else { + el.attachEvent('onclick', ithSorter(i)); + } + } + } + } + // adds sorting functionality to the UI + return function() { + if (!getTable()) { + return; + } + cols = loadColumns(); + loadData(); + addSearchBox(); + addSortIndicators(); + enableUI(); + }; +})(); + +window.addEventListener('load', addSorting); diff --git a/coverage/lcov-report/src/getDefaultExtensions.ts.html b/coverage/lcov-report/src/getDefaultExtensions.ts.html new file mode 100644 index 000000000..501d28b46 --- /dev/null +++ b/coverage/lcov-report/src/getDefaultExtensions.ts.html @@ -0,0 +1,280 @@ + + + + + + Code coverage report for src/getDefaultExtensions.ts + + + + + + + + + +
+
+

All files / src getDefaultExtensions.ts

+
+ +
+ 79.16% + Statements + 19/24 +
+ + +
+ 43.47% + Branches + 10/23 +
+ + +
+ 100% + Functions + 1/1 +
+ + +
+ 79.16% + Lines + 19/24 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +1x +  +  +  +  +  +  +  +31x +31x +31x +31x +  +31x +31x +31x +  +  +  +  +31x +4x +  +31x +  +29x +29x +  +2x +2x +  +  +  +  +  +  +31x +4x +  +31x +  +  +  +31x +  + 
import { Extension } from '@codemirror/state';
+import { indentWithTab } from '@codemirror/commands';
+import { basicSetup, BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup';
+import { EditorView, keymap, placeholder } from '@codemirror/view';
+import { oneDark } from '@codemirror/theme-one-dark';
+import { EditorState } from '@codemirror/state';
+import { defaultLightThemeOption } from './theme/light';
+ 
+export * from '@codemirror/theme-one-dark';
+export * from './theme/light';
+ 
+export interface DefaultExtensionsOptions {
+  indentWithTab?: boolean;
+  basicSetup?: boolean | BasicSetupOptions;
+  placeholder?: string | HTMLElement;
+  theme?: 'light' | 'dark' | 'none' | Extension;
+  readOnly?: boolean;
+  editable?: boolean;
+}
+ 
+export const getDefaultExtensions = (optios: DefaultExtensionsOptions = {}): Extension[] => {
+  const {
+    indentWithTab: defaultIndentWithTab = true,
+    editable = true,
+    readOnly = false,
+    theme = 'light',
+    placeholder: placeholderStr = '',
+    basicSetup: defaultBasicSetup = true,
+  } = optios;
+  const getExtensions: Extension[] = [];
+  Eif (defaultIndentWithTab) {
+    getExtensions.unshift(keymap.of([indentWithTab]));
+  }
+  Eif (defaultBasicSetup) {
+    if (typeof defaultBasicSetup === 'boolean') {
+      getExtensions.unshift(basicSetup());
+    } else E{
+      getExtensions.unshift(basicSetup(defaultBasicSetup));
+    }
+  }
+  if (placeholderStr) {
+    getExtensions.unshift(placeholder(placeholderStr));
+  }
+  switch (theme) {
+    case 'light':
+      getExtensions.push(defaultLightThemeOption);
+      break;
+    case 'dark':
+      getExtensions.push(oneDark);
+      break;
+    case 'none':
+      break;
+    default:
+      getExtensions.push(theme);
+      break;
+  }
+  if (editable === false) {
+    getExtensions.push(EditorView.editable.of(false));
+  }
+  Iif (readOnly) {
+    getExtensions.push(EditorState.readOnly.of(true));
+  }
+ 
+  return [...getExtensions];
+};
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/index.html b/coverage/lcov-report/src/index.html new file mode 100644 index 000000000..0208f9761 --- /dev/null +++ b/coverage/lcov-report/src/index.html @@ -0,0 +1,161 @@ + + + + + + Code coverage report for src + + + + + + + + + +
+
+

All files src

+
+ +
+ 89.01% + Statements + 81/91 +
+ + +
+ 73.25% + Branches + 63/86 +
+ + +
+ 82.35% + Functions + 14/17 +
+ + +
+ 88.76% + Lines + 79/89 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
getDefaultExtensions.ts +
+
79.16%19/2443.47%10/23100%1/179.16%19/24
index.tsx +
+
90.9%10/1177.77%7/9100%2/290%9/10
useCodeMirror.ts +
+
98.07%51/5285.18%46/54100%11/1198.03%50/51
utils.ts +
+
25%1/4100%0/00%0/325%1/4
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/index.tsx.html b/coverage/lcov-report/src/index.tsx.html new file mode 100644 index 000000000..51dfba439 --- /dev/null +++ b/coverage/lcov-report/src/index.tsx.html @@ -0,0 +1,577 @@ + + + + + + Code coverage report for src/index.tsx + + + + + + + + + +
+
+

All files / src index.tsx

+
+ +
+ 90.9% + Statements + 10/11 +
+ + +
+ 77.77% + Branches + 7/9 +
+ + +
+ 100% + Functions + 2/2 +
+ + +
+ 90% + Lines + 9/10 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +1x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +31x +31x +31x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +31x +  +  +  +  +  +  +  +31x +  +  +  +31x +31x +  +  +1x +  +  + 
import React, { useRef, forwardRef, useImperativeHandle } from 'react';
+import { EditorState, EditorStateConfig, Extension, StateField } from '@codemirror/state';
+import { EditorView, ViewUpdate } from '@codemirror/view';
+import { BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup';
+import { useCodeMirror } from './useCodeMirror';
+import { Statistics } from './utils';
+ 
+export * from '@codemirror/view';
+export * from '@codemirror/state';
+ 
+export * from '@uiw/codemirror-extensions-basic-setup';
+export * from './useCodeMirror';
+export * from './getDefaultExtensions';
+export * from './utils';
+ 
+export interface ReactCodeMirrorProps
+  extends Omit<EditorStateConfig, 'doc' | 'extensions'>,
+    Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange' | 'placeholder'> {
+  /** value of the auto created model in the editor. */
+  value?: string;
+  height?: string;
+  minHeight?: string;
+  maxHeight?: string;
+  width?: string;
+  minWidth?: string;
+  maxWidth?: string;
+  /** focus on the editor. */
+  autoFocus?: boolean;
+  /** Enables a placeholder—a piece of example content to show when the editor is empty. */
+  placeholder?: string | HTMLElement;
+  /**
+   * `light` / `dark` / `Extension` Defaults to `light`.
+   * @default light
+   */
+  theme?: 'light' | 'dark' | 'none' | Extension;
+  /**
+   * Whether to optional basicSetup by default
+   * @default true
+   */
+  basicSetup?: boolean | BasicSetupOptions;
+  /**
+   * This disables editing of the editor content by the user.
+   * @default true
+   */
+  editable?: boolean;
+  /**
+   * This disables editing of the editor content by the user.
+   * @default false
+   */
+  readOnly?: boolean;
+  /**
+   * Controls whether pressing the `Tab` key inserts a tab character and indents the text (`true`)
+   * or behaves according to the browser's default behavior (`false`).
+   * @default true
+   */
+  indentWithTab?: boolean;
+  /** Fired whenever a change occurs to the document. */
+  onChange?(value: string, viewUpdate: ViewUpdate): void;
+  /** Some data on the statistics editor. */
+  onStatistics?(data: Statistics): void;
+  /** Fired whenever any state change occurs within the editor, including non-document changes like lint results. */
+  onUpdate?(viewUpdate: ViewUpdate): void;
+  /** The first time the editor executes the event. */
+  onCreateEditor?(view: EditorView, state: EditorState): void;
+  /**
+   * Extension values can be [provided](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions) when creating a state to attach various kinds of configuration and behavior information.
+   * They can either be built-in extension-providing objects,
+   * such as [state fields](https://codemirror.net/6/docs/ref/#state.StateField) or [facet providers](https://codemirror.net/6/docs/ref/#state.Facet.of),
+   * or objects with an extension in its `extension` property. Extensions can be nested in arrays arbitrarily deep—they will be flattened when processed.
+   */
+  extensions?: Extension[];
+  /**
+   * If the view is going to be mounted in a shadow root or document other than the one held by the global variable document (the default), you should pass it here.
+   * Originally from the [config of EditorView](https://codemirror.net/6/docs/ref/#view.EditorView.constructor%5Econfig.root)
+   */
+  root?: ShadowRoot | Document;
+  /**
+   * Create a state from its JSON representation serialized with [toJSON](https://codemirror.net/docs/ref/#state.EditorState.toJSON) function
+   */
+  initialState?: {
+    json: any;
+    fields?: Record<string, StateField<any>>;
+  };
+}
+ 
+export interface ReactCodeMirrorRef {
+  editor?: HTMLDivElement | null;
+  state?: EditorState;
+  view?: EditorView;
+}
+ 
+const ReactCodeMirror = forwardRef<ReactCodeMirrorRef, ReactCodeMirrorProps>((props, ref) => {
+  const {
+    className,
+    value = '',
+    selection,
+    extensions = [],
+    onChange,
+    onStatistics,
+    onCreateEditor,
+    onUpdate,
+    autoFocus,
+    theme = 'light',
+    height,
+    minHeight,
+    maxHeight,
+    width,
+    minWidth,
+    maxWidth,
+    basicSetup,
+    placeholder,
+    indentWithTab,
+    editable,
+    readOnly,
+    root,
+    initialState,
+    ...other
+  } = props;
+  const editor = useRef<HTMLDivElement>(null);
+  const { state, view, container } = useCodeMirror({
+    container: editor.current,
+    root,
+    value,
+    autoFocus,
+    theme,
+    height,
+    minHeight,
+    maxHeight,
+    width,
+    minWidth,
+    maxWidth,
+    basicSetup,
+    placeholder,
+    indentWithTab,
+    editable,
+    readOnly,
+    selection,
+    onChange,
+    onStatistics,
+    onCreateEditor,
+    onUpdate,
+    extensions,
+    initialState,
+  });
+ 
+  useImperativeHandle(ref, () => ({ editor: editor.current, state: state, view: view }), [
+    editor,
+    container,
+    state,
+    view,
+  ]);
+ 
+  // check type of value
+  Iif (typeof value !== 'string') {
+    throw new Error(`value must be typeof string but got ${typeof value}`);
+  }
+ 
+  const defaultClassNames = typeof theme === 'string' ? `cm-theme-${theme}` : 'cm-theme';
+  return <div ref={editor} className={`${defaultClassNames}${className ? ` ${className}` : ''}`} {...other}></div>;
+});
+ 
+ReactCodeMirror.displayName = 'CodeMirror';
+ 
+export default ReactCodeMirror;
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/theme/index.html b/coverage/lcov-report/src/theme/index.html new file mode 100644 index 000000000..3a7316d3e --- /dev/null +++ b/coverage/lcov-report/src/theme/index.html @@ -0,0 +1,116 @@ + + + + + + Code coverage report for src/theme + + + + + + + + + +
+
+

All files src/theme

+
+ +
+ 100% + Statements + 1/1 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 1/1 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
light.ts +
+
100%1/1100%0/0100%0/0100%1/1
+
+
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/theme/light.ts.html b/coverage/lcov-report/src/theme/light.ts.html new file mode 100644 index 000000000..aab817652 --- /dev/null +++ b/coverage/lcov-report/src/theme/light.ts.html @@ -0,0 +1,121 @@ + + + + + + Code coverage report for src/theme/light.ts + + + + + + + + + +
+
+

All files / src/theme light.ts

+
+ +
+ 100% + Statements + 1/1 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 100% + Functions + 0/0 +
+ + +
+ 100% + Lines + 1/1 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13  +  +1x +  +  +  +  +  +  +  +  +  + 
import { EditorView } from '@codemirror/view';
+ 
+export const defaultLightThemeOption = EditorView.theme(
+  {
+    '&': {
+      backgroundColor: '#fff',
+    },
+  },
+  {
+    dark: false,
+  },
+);
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/useCodeMirror.ts.html b/coverage/lcov-report/src/useCodeMirror.ts.html new file mode 100644 index 000000000..6c91b4502 --- /dev/null +++ b/coverage/lcov-report/src/useCodeMirror.ts.html @@ -0,0 +1,601 @@ + + + + + + Code coverage report for src/useCodeMirror.ts + + + + + + + + + +
+
+

All files / src useCodeMirror.ts

+
+ +
+ 98.07% + Statements + 51/52 +
+ + +
+ 85.18% + Branches + 46/54 +
+ + +
+ 100% + Functions + 11/11 +
+ + +
+ 98.03% + Lines + 50/51 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +105 +106 +107 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136 +137 +138 +139 +140 +141 +142 +143 +144 +145 +146 +147 +148 +149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169 +170 +171 +172 +173  +  +  +  +  +  +  +1x +  +  +  +  +  +1x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +31x +31x +31x +31x +31x +  +  +  +  +  +  +  +  +  +  +  +  +31x +11x +  +  +  +  +2x +  +1x +1x +1x +  +11x +  +  +31x +  +  +  +  +  +  +  +  +31x +  +31x +4x +  +31x +  +31x +29x +6x +  +  +  +  +6x +  +  +6x +6x +6x +  +  +  +  +6x +6x +  +  +29x +26x +6x +6x +  +  +  +  +31x +  +31x +15x +12x +6x +6x +  +  +  +  +  +31x +15x +2x +  +  +  +31x +30x +7x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +31x +16x +  +  +16x +16x +1x +  +  +  +  +  +  +31x +  + 
import { useEffect, useState } from 'react';
+import { Annotation, EditorState, StateEffect, type Extension } from '@codemirror/state';
+import { EditorView, ViewUpdate } from '@codemirror/view';
+import { getDefaultExtensions } from './getDefaultExtensions';
+import { getStatistics } from './utils';
+import { ReactCodeMirrorProps } from '.';
+ 
+const External = Annotation.define<boolean>();
+ 
+export interface UseCodeMirror extends ReactCodeMirrorProps {
+  container?: HTMLDivElement | null;
+}
+ 
+const emptyExtensions: Extension[] = [];
+ 
+export function useCodeMirror(props: UseCodeMirror) {
+  const {
+    value,
+    selection,
+    onChange,
+    onStatistics,
+    onCreateEditor,
+    onUpdate,
+    extensions = emptyExtensions,
+    autoFocus,
+    theme = 'light',
+    height = null,
+    minHeight = null,
+    maxHeight = null,
+    width = null,
+    minWidth = null,
+    maxWidth = null,
+    placeholder: placeholderStr = '',
+    editable = true,
+    readOnly = false,
+    indentWithTab: defaultIndentWithTab = true,
+    basicSetup: defaultBasicSetup = true,
+    root,
+    initialState,
+  } = props;
+  const [container, setContainer] = useState<HTMLDivElement>();
+  const [view, setView] = useState<EditorView>();
+  const [state, setState] = useState<EditorState>();
+  const defaultThemeOption = EditorView.theme({
+    '&': {
+      height,
+      minHeight,
+      maxHeight,
+      width,
+      minWidth,
+      maxWidth,
+    },
+    '& .cm-scroller': {
+      height: '100% !important',
+    },
+  });
+  const updateListener = EditorView.updateListener.of((vu: ViewUpdate) => {
+    if (
+      vu.docChanged &&
+      typeof onChange === 'function' &&
+      // Fix echoing of the remote changes:
+      // If transaction is market as remote we don't have to call `onChange` handler again
+      !vu.transactions.some((tr) => tr.annotation(External))
+    ) {
+      const doc = vu.state.doc;
+      const value = doc.toString();
+      onChange(value, vu);
+    }
+    onStatistics && onStatistics(getStatistics(vu));
+  });
+ 
+  const defaultExtensions = getDefaultExtensions({
+    theme,
+    editable,
+    readOnly,
+    placeholder: placeholderStr,
+    indentWithTab: defaultIndentWithTab,
+    basicSetup: defaultBasicSetup,
+  });
+ 
+  let getExtensions = [updateListener, defaultThemeOption, ...defaultExtensions];
+ 
+  if (onUpdate && typeof onUpdate === 'function') {
+    getExtensions.push(EditorView.updateListener.of(onUpdate));
+  }
+  getExtensions = getExtensions.concat(extensions);
+ 
+  useEffect(() => {
+    if (container && !state) {
+      const config = {
+        doc: value,
+        selection,
+        extensions: getExtensions,
+      };
+      const stateCurrent = initialState
+        ? EditorState.fromJSON(initialState.json, config, initialState.fields)
+        : EditorState.create(config);
+      setState(stateCurrent);
+      Eif (!view) {
+        const viewCurrent = new EditorView({
+          state: stateCurrent,
+          parent: container,
+          root,
+        });
+        setView(viewCurrent);
+        onCreateEditor && onCreateEditor(viewCurrent, stateCurrent);
+      }
+    }
+    return () => {
+      if (view) {
+        setState(undefined);
+        setView(undefined);
+      }
+    };
+  }, [container, state]);
+ 
+  useEffect(() => setContainer(props.container!), [props.container]);
+ 
+  useEffect(
+    () => () => {
+      if (view) {
+        view.destroy();
+        setView(undefined);
+      }
+    },
+    [view],
+  );
+ 
+  useEffect(() => {
+    if (autoFocus && view) {
+      view.focus();
+    }
+  }, [autoFocus, view]);
+ 
+  useEffect(() => {
+    if (view) {
+      view.dispatch({ effects: StateEffect.reconfigure.of(getExtensions) });
+    }
+    // eslint-disable-next-line react-hooks/exhaustive-deps
+  }, [
+    theme,
+    extensions,
+    height,
+    minHeight,
+    maxHeight,
+    width,
+    minWidth,
+    maxWidth,
+    placeholderStr,
+    editable,
+    readOnly,
+    defaultIndentWithTab,
+    defaultBasicSetup,
+    onChange,
+    onUpdate,
+  ]);
+ 
+  useEffect(() => {
+    Iif (value === undefined) {
+      return;
+    }
+    const currentValue = view ? view.state.doc.toString() : '';
+    if (view && value !== currentValue) {
+      view.dispatch({
+        changes: { from: 0, to: currentValue.length, insert: value || '' },
+        annotations: [External.of(true)],
+      });
+    }
+  }, [value, view]);
+ 
+  return { state, setState, view, setView, container, setContainer };
+}
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov-report/src/utils.ts.html b/coverage/lcov-report/src/utils.ts.html new file mode 100644 index 000000000..4d0f6ad1b --- /dev/null +++ b/coverage/lcov-report/src/utils.ts.html @@ -0,0 +1,232 @@ + + + + + + Code coverage report for src/utils.ts + + + + + + + + + +
+
+

All files / src utils.ts

+
+ +
+ 25% + Statements + 1/4 +
+ + +
+ 100% + Branches + 0/0 +
+ + +
+ 0% + Functions + 0/3 +
+ + +
+ 25% + Lines + 1/4 +
+ + +
+

+ Press n or j to go to the next uncovered block, b, p or k for the previous block. +

+ +
+
+

+
1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +45 +46 +47 +48 +49 +50  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  +1x +  +  +  +  +  +  +  +  +  +  +  +  +  +  +  + 
import { EditorSelection, SelectionRange, Line } from '@codemirror/state';
+import { ViewUpdate } from '@codemirror/view';
+ 
+export interface Statistics {
+  /** total length of the document */
+  length: number;
+  /** Get the number of lines in the editor. */
+  lineCount: number;
+  /** Get the currently line description around the given position. */
+  line: Line;
+  /** Get the proper [line-break](https://codemirror.net/docs/ref/#state.EditorState^lineSeparator) string for this state. */
+  lineBreak: string;
+  /** Returns true when the editor is [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only. */
+  readOnly: boolean;
+  /** The size (in columns) of a tab in the document, determined by the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet. */
+  tabSize: number;
+  /** Cursor Position */
+  selection: EditorSelection;
+  /** Make sure the selection only has one range. */
+  selectionAsSingle: SelectionRange;
+  /** Retrieves a list of all current selections. */
+  ranges: readonly SelectionRange[];
+  /** Get the currently selected code. */
+  selectionCode: string;
+  /**
+   * The length of the given array should be the same as the number of active selections.
+   * Replaces the content of the selections with the strings in the array.
+   */
+  selections: string[];
+  /** Return true if any text is selected. */
+  selectedText: boolean;
+}
+ 
+export const getStatistics = (view: ViewUpdate): Statistics => {
+  return {
+    line: view.state.doc.lineAt(view.state.selection.main.from),
+    lineCount: view.state.doc.lines,
+    lineBreak: view.state.lineBreak,
+    length: view.state.doc.length,
+    readOnly: view.state.readOnly,
+    tabSize: view.state.tabSize,
+    selection: view.state.selection,
+    selectionAsSingle: view.state.selection.asSingle().main,
+    ranges: view.state.selection.ranges,
+    selectionCode: view.state.sliceDoc(view.state.selection.main.from, view.state.selection.main.to),
+    selections: view.state.selection.ranges.map((r) => view.state.sliceDoc(r.from, r.to)),
+    selectedText: view.state.selection.ranges.some((r) => !r.empty),
+  };
+};
+ 
+ +
+
+ + + + + + + + \ No newline at end of file diff --git a/coverage/lcov.info b/coverage/lcov.info new file mode 100644 index 000000000..f5c988f42 --- /dev/null +++ b/coverage/lcov.info @@ -0,0 +1,255 @@ +TN: +SF:src/getDefaultExtensions.ts +FN:21,(anonymous_0) +FNF:1 +FNH:1 +FNDA:31,(anonymous_0) +DA:21,1 +DA:29,31 +DA:30,31 +DA:31,31 +DA:32,31 +DA:34,31 +DA:35,31 +DA:36,31 +DA:38,0 +DA:41,31 +DA:42,4 +DA:44,31 +DA:46,29 +DA:47,29 +DA:49,2 +DA:50,2 +DA:52,0 +DA:54,0 +DA:55,0 +DA:57,31 +DA:58,4 +DA:60,31 +DA:61,0 +DA:64,31 +LF:24 +LH:19 +BRDA:21,0,0,0 +BRDA:23,1,0,0 +BRDA:24,2,0,0 +BRDA:25,3,0,0 +BRDA:26,4,0,0 +BRDA:27,5,0,0 +BRDA:28,6,0,0 +BRDA:31,7,0,31 +BRDA:31,7,1,0 +BRDA:34,8,0,31 +BRDA:34,8,1,0 +BRDA:35,9,0,31 +BRDA:35,9,1,0 +BRDA:41,10,0,4 +BRDA:41,10,1,27 +BRDA:44,11,0,29 +BRDA:44,11,1,2 +BRDA:44,11,2,0 +BRDA:44,11,3,0 +BRDA:57,12,0,4 +BRDA:57,12,1,27 +BRDA:60,13,0,0 +BRDA:60,13,1,31 +BRF:23 +BRH:10 +end_of_record +TN: +SF:src/index.tsx +FN:92,(anonymous_0) +FN:146,(anonymous_1) +FNF:2 +FNH:2 +FNDA:31,(anonymous_0) +FNDA:4,(anonymous_1) +DA:92,1 +DA:118,31 +DA:119,31 +DA:120,31 +DA:146,31 +DA:154,31 +DA:155,0 +DA:158,31 +DA:159,31 +DA:162,1 +LF:10 +LH:9 +BRDA:95,0,0,14 +BRDA:97,1,0,31 +BRDA:103,2,0,29 +BRDA:154,3,0,0 +BRDA:154,3,1,31 +BRDA:158,4,0,31 +BRDA:158,4,1,0 +BRDA:159,5,0,10 +BRDA:159,5,1,21 +BRF:9 +BRH:7 +end_of_record +TN: +SF:src/useCodeMirror.ts +FN:16,useCodeMirror +FN:57,(anonymous_1) +FN:63,(anonymous_2) +FN:88,(anonymous_3) +FN:109,(anonymous_4) +FN:117,(anonymous_5) +FN:120,(anonymous_6) +FN:120,(anonymous_7) +FN:129,(anonymous_8) +FN:135,(anonymous_9) +FN:158,(anonymous_10) +FNF:11 +FNH:11 +FNDA:31,useCodeMirror +FNDA:11,(anonymous_1) +FNDA:2,(anonymous_2) +FNDA:29,(anonymous_3) +FNDA:26,(anonymous_4) +FNDA:15,(anonymous_5) +FNDA:15,(anonymous_6) +FNDA:12,(anonymous_7) +FNDA:15,(anonymous_8) +FNDA:30,(anonymous_9) +FNDA:16,(anonymous_10) +DA:8,1 +DA:14,1 +DA:40,31 +DA:41,31 +DA:42,31 +DA:43,31 +DA:44,31 +DA:57,31 +DA:58,11 +DA:63,2 +DA:65,1 +DA:66,1 +DA:67,1 +DA:69,11 +DA:72,31 +DA:81,31 +DA:83,31 +DA:84,4 +DA:86,31 +DA:88,31 +DA:89,29 +DA:90,6 +DA:95,6 +DA:98,6 +DA:99,6 +DA:100,6 +DA:105,6 +DA:106,6 +DA:109,29 +DA:110,26 +DA:111,6 +DA:112,6 +DA:117,31 +DA:119,31 +DA:120,15 +DA:121,12 +DA:122,6 +DA:123,6 +DA:129,31 +DA:130,15 +DA:131,2 +DA:135,31 +DA:136,30 +DA:137,7 +DA:158,31 +DA:159,16 +DA:160,0 +DA:162,16 +DA:163,16 +DA:164,1 +DA:171,31 +LF:51 +LH:50 +BRDA:24,0,0,0 +BRDA:26,1,0,0 +BRDA:27,2,0,31 +BRDA:28,3,0,31 +BRDA:29,4,0,31 +BRDA:30,5,0,31 +BRDA:31,6,0,31 +BRDA:32,7,0,31 +BRDA:33,8,0,27 +BRDA:34,9,0,27 +BRDA:35,10,0,31 +BRDA:36,11,0,31 +BRDA:37,12,0,31 +BRDA:58,13,0,1 +BRDA:58,13,1,10 +BRDA:59,14,0,11 +BRDA:59,14,1,2 +BRDA:59,14,2,2 +BRDA:69,15,0,11 +BRDA:69,15,1,0 +BRDA:83,16,0,4 +BRDA:83,16,1,27 +BRDA:83,17,0,31 +BRDA:83,17,1,4 +BRDA:89,18,0,6 +BRDA:89,18,1,23 +BRDA:89,19,0,29 +BRDA:89,19,1,12 +BRDA:95,20,0,0 +BRDA:95,20,1,6 +BRDA:99,21,0,6 +BRDA:99,21,1,0 +BRDA:106,22,0,6 +BRDA:106,22,1,0 +BRDA:110,23,0,6 +BRDA:110,23,1,20 +BRDA:121,24,0,6 +BRDA:121,24,1,6 +BRDA:130,25,0,2 +BRDA:130,25,1,13 +BRDA:130,26,0,15 +BRDA:130,26,1,4 +BRDA:136,27,0,7 +BRDA:136,27,1,23 +BRDA:159,28,0,0 +BRDA:159,28,1,16 +BRDA:162,29,0,7 +BRDA:162,29,1,9 +BRDA:163,30,0,1 +BRDA:163,30,1,15 +BRDA:163,31,0,16 +BRDA:163,31,1,7 +BRDA:165,32,0,1 +BRDA:165,32,1,0 +BRF:54 +BRH:46 +end_of_record +TN: +SF:src/utils.ts +FN:34,(anonymous_0) +FN:46,(anonymous_1) +FN:47,(anonymous_2) +FNF:3 +FNH:0 +FNDA:0,(anonymous_0) +FNDA:0,(anonymous_1) +FNDA:0,(anonymous_2) +DA:34,1 +DA:35,0 +DA:46,0 +DA:47,0 +LF:4 +LH:1 +BRF:0 +BRH:0 +end_of_record +TN: +SF:src/theme/light.ts +FNF:0 +FNH:0 +DA:3,1 +LF:1 +LH:1 +BRF:0 +BRH:0 +end_of_record diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..b37ca26b7720fe0a5bf35cdcbc8b7713b94c5ae4 GIT binary patch literal 6536 zcma)A`EOj+6@K2G#EugH`3D$$Xw$;Z~QgJFxm{m$jTB+N}OR7#~Ma%uGBrK*CZH*-*0`9Xc%kB z2EQHXYfn9V>M%Y}?d)hBg2cE+dNRH-9A#<45bV`663V~puX14A_aIt}>%1imO&!oc zWx@84X!Y~!HRE%&lMCHaS5eVB>RH;X8lLJDbHmbBk-N&ji`tl2MnnYmq9*?i^xCP# zJCn3@>eo7#)9bIBjnvJaZ%d$I5EBnWtjR9RmL1AI5bg-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WPCKF17Zdb7bJ_GDS}75MpTG6#lYN+P9Qd- zX5XCXZ~YlE!2n~z1v$ruzsUvfaTqi7(_0U*Qk!(K3sUh$=Y#=d=UEPM4i7!JP_;l5 z2v>kP4ugR;u?dB5oQ^Z4v;us9UvCg`(=9pE(HBZjOKMWQf# z`&@2%+mAxe55)5-BE*E5BPRZ+x9QxEUIz1_Ft@hL&w*RyK9|W!6z1p#ckNIa2fy)$ zslg9kf%5N{UIVWkDoBOkx>*zP;3o_*5I+D#({*1ATvOzF45QMbx1QQ$Ff#TGW=iTp zWJellw&=ep#aG{b>;y!7M^hN0d!$0gtLT?b z^sQ@uIqC0@@SFl-1V3B`)^z)E%P{`QFQM;!{af%9v3hkP9x2_qEoShW%=`*wzD521 z!fl;React CodeMirror - CodeMirror component for React.
\ No newline at end of file diff --git a/static/css/main.020a7543.css b/static/css/main.020a7543.css new file mode 100644 index 000000000..2f4ee4cd7 --- /dev/null +++ b/static/css/main.020a7543.css @@ -0,0 +1,2 @@ +.code-preview-layout[data-color-mode*=light],[data-color-mode*=light],body[data-color-mode*=light]{--color-canvas-subtle:#f6f8fa;--color-border-muted:#d8dee4}.code-preview-layout[data-color-mode*=dark],[data-color-mode*=dark],body[data-color-mode*=dark]{--color-canvas-subtle:#161b22;--color-border-muted:#21262d}.w-rcpl.w-bordered{border:1px solid var(--color-border-muted)}.w-rcpl.w-bordered>.w-rcpl-toolbar{border-top:1px solid var(--color-border-muted)}.w-rcpl.w-bordered>.w-rcpl-code:not(.w-hidden){border-top:1px dashed var(--color-border-muted)}.w-rcpl{background-color:var(--color-canvas-subtle);border-radius:5px}.w-rcpl-preview:not(:last-child){border-radius:5px 5px 0 0}.w-rcpl-code.w-hidden{height:0;overflow:hidden;padding:0}.w-rcpl-code{border-top-left-radius:0;border-top-right-radius:0;height:auto;overflow:auto;transition:height cubic-bezier(.36,0,.66,-.56)}.w-rcpl-code>*{margin:0!important;padding:0!important}.w-disable-checkered>.w-rcpl-preview{background-image:none}.w-rcpl-preview{background:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='a' width='16' height='16' patternUnits='userSpaceOnUse'%3E%3Cpath fill='rgba(0, 0, 0, 0.06)' d='M0 0h8v8H0zm8 8h8v8H8z'/%3E%3C/pattern%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3C/svg%3E")}.w-rcpl-code,.w-rcpl-preview{padding:15px}.w-rcpl-extra,.w-rcpl-title{align-items:center;display:flex}.w-rcpl-toolbar button svg{display:block;height:18px;opacity:.37;transition:opacity .3s}.w-rcpl-toolbar button svg:hover{opacity:1}.w-rcpl-toolbar button{background-color:transparent;border:0;box-sizing:border-box;color:currentColor;cursor:pointer;display:inline-block;height:inherit;outline:none;padding:3px 4px;position:relative;transition:opacity .2s,background .2s}.w-rcpl-toolbar{display:flex;justify-content:space-between;padding:5px 5px 5px 8px}@media (prefers-color-scheme:dark){.wmde-markdown,.wmde-markdown-var{--color-prettylights-syntax-comment:#8b949e;--color-prettylights-syntax-constant:#79c0ff;--color-prettylights-syntax-entity:#d2a8ff;--color-prettylights-syntax-storage-modifier-import:#c9d1d9;--color-prettylights-syntax-entity-tag:#7ee787;--color-prettylights-syntax-keyword:#ff7b72;--color-prettylights-syntax-string:#a5d6ff;--color-prettylights-syntax-variable:#ffa657;--color-prettylights-syntax-brackethighlighter-unmatched:#f85149;--color-prettylights-syntax-invalid-illegal-text:#f0f6fc;--color-prettylights-syntax-invalid-illegal-bg:#8e1519;--color-prettylights-syntax-carriage-return-text:#f0f6fc;--color-prettylights-syntax-carriage-return-bg:#b62324;--color-prettylights-syntax-string-regexp:#7ee787;--color-prettylights-syntax-markup-list:#f2cc60;--color-prettylights-syntax-markup-heading:#1f6feb;--color-prettylights-syntax-markup-italic:#c9d1d9;--color-prettylights-syntax-markup-bold:#c9d1d9;--color-prettylights-syntax-markup-deleted-text:#ffdcd7;--color-prettylights-syntax-markup-deleted-bg:#67060c;--color-prettylights-syntax-markup-inserted-text:#aff5b4;--color-prettylights-syntax-markup-inserted-bg:#033a16;--color-prettylights-syntax-markup-changed-text:#ffdfb6;--color-prettylights-syntax-markup-changed-bg:#5a1e02;--color-prettylights-syntax-markup-ignored-text:#c9d1d9;--color-prettylights-syntax-markup-ignored-bg:#1158c7;--color-prettylights-syntax-meta-diff-range:#d2a8ff;--color-prettylights-syntax-brackethighlighter-angle:#8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark:#484f58;--color-prettylights-syntax-constant-other-reference-link:#a5d6ff;--color-fg-default:#c9d1d9;--color-fg-muted:#8b949e;--color-fg-subtle:#484f58;--color-canvas-default:#0d1117;--color-canvas-subtle:#161b22;--color-border-default:#30363d;--color-border-muted:#21262d;--color-neutral-muted:hsla(215,8%,47%,.4);--color-accent-fg:#58a6ff;--color-accent-emphasis:#1f6feb;--color-attention-subtle:rgba(187,128,9,.15);--color-danger-fg:#f85149;color-scheme:dark}}@media (prefers-color-scheme:light){.wmde-markdown,.wmde-markdown-var{--color-prettylights-syntax-comment:#6e7781;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-entity:#8250df;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#116329;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#24292f;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#eaeef2;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-brackethighlighter-angle:#57606a;--color-prettylights-syntax-sublimelinter-gutter-mark:#8c959f;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-fg-default:#24292f;--color-fg-muted:#57606a;--color-fg-subtle:#6e7781;--color-canvas-default:#fff;--color-canvas-subtle:#f6f8fa;--color-border-default:#d0d7de;--color-border-muted:#d8dee4;--color-neutral-muted:rgba(175,184,193,.2);--color-accent-fg:#0969da;--color-accent-emphasis:#0969da;--color-attention-subtle:#fff8c5;--color-danger-fg:#cf222e;color-scheme:light}}.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,body[data-color-mode*=dark]{--color-prettylights-syntax-comment:#8b949e;--color-prettylights-syntax-constant:#79c0ff;--color-prettylights-syntax-entity:#d2a8ff;--color-prettylights-syntax-storage-modifier-import:#c9d1d9;--color-prettylights-syntax-entity-tag:#7ee787;--color-prettylights-syntax-keyword:#ff7b72;--color-prettylights-syntax-string:#a5d6ff;--color-prettylights-syntax-variable:#ffa657;--color-prettylights-syntax-brackethighlighter-unmatched:#f85149;--color-prettylights-syntax-invalid-illegal-text:#f0f6fc;--color-prettylights-syntax-invalid-illegal-bg:#8e1519;--color-prettylights-syntax-carriage-return-text:#f0f6fc;--color-prettylights-syntax-carriage-return-bg:#b62324;--color-prettylights-syntax-string-regexp:#7ee787;--color-prettylights-syntax-markup-list:#f2cc60;--color-prettylights-syntax-markup-heading:#1f6feb;--color-prettylights-syntax-markup-italic:#c9d1d9;--color-prettylights-syntax-markup-bold:#c9d1d9;--color-prettylights-syntax-markup-deleted-text:#ffdcd7;--color-prettylights-syntax-markup-deleted-bg:#67060c;--color-prettylights-syntax-markup-inserted-text:#aff5b4;--color-prettylights-syntax-markup-inserted-bg:#033a16;--color-prettylights-syntax-markup-changed-text:#ffdfb6;--color-prettylights-syntax-markup-changed-bg:#5a1e02;--color-prettylights-syntax-markup-ignored-text:#c9d1d9;--color-prettylights-syntax-markup-ignored-bg:#1158c7;--color-prettylights-syntax-meta-diff-range:#d2a8ff;--color-prettylights-syntax-brackethighlighter-angle:#8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark:#484f58;--color-prettylights-syntax-constant-other-reference-link:#a5d6ff;--color-fg-default:#c9d1d9;--color-fg-muted:#8b949e;--color-fg-subtle:#484f58;--color-canvas-default:#0d1117;--color-canvas-subtle:#161b22;--color-border-default:#30363d;--color-border-muted:#21262d;--color-neutral-muted:hsla(215,8%,47%,.4);--color-accent-fg:#58a6ff;--color-accent-emphasis:#1f6feb;--color-attention-subtle:rgba(187,128,9,.15);--color-danger-fg:#f85149;color-scheme:dark}.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,body[data-color-mode*=light]{--color-prettylights-syntax-comment:#6e7781;--color-prettylights-syntax-constant:#0550ae;--color-prettylights-syntax-entity:#8250df;--color-prettylights-syntax-storage-modifier-import:#24292f;--color-prettylights-syntax-entity-tag:#116329;--color-prettylights-syntax-keyword:#cf222e;--color-prettylights-syntax-string:#0a3069;--color-prettylights-syntax-variable:#953800;--color-prettylights-syntax-brackethighlighter-unmatched:#82071e;--color-prettylights-syntax-invalid-illegal-text:#f6f8fa;--color-prettylights-syntax-invalid-illegal-bg:#82071e;--color-prettylights-syntax-carriage-return-text:#f6f8fa;--color-prettylights-syntax-carriage-return-bg:#cf222e;--color-prettylights-syntax-string-regexp:#116329;--color-prettylights-syntax-markup-list:#3b2300;--color-prettylights-syntax-markup-heading:#0550ae;--color-prettylights-syntax-markup-italic:#24292f;--color-prettylights-syntax-markup-bold:#24292f;--color-prettylights-syntax-markup-deleted-text:#82071e;--color-prettylights-syntax-markup-deleted-bg:#ffebe9;--color-prettylights-syntax-markup-inserted-text:#116329;--color-prettylights-syntax-markup-inserted-bg:#dafbe1;--color-prettylights-syntax-markup-changed-text:#953800;--color-prettylights-syntax-markup-changed-bg:#ffd8b5;--color-prettylights-syntax-markup-ignored-text:#eaeef2;--color-prettylights-syntax-markup-ignored-bg:#0550ae;--color-prettylights-syntax-meta-diff-range:#8250df;--color-prettylights-syntax-brackethighlighter-angle:#57606a;--color-prettylights-syntax-sublimelinter-gutter-mark:#8c959f;--color-prettylights-syntax-constant-other-reference-link:#0a3069;--color-fg-default:#24292f;--color-fg-muted:#57606a;--color-fg-subtle:#6e7781;--color-canvas-default:#fff;--color-canvas-subtle:#f6f8fa;--color-border-default:#d0d7de;--color-border-muted:#d8dee4;--color-neutral-muted:rgba(175,184,193,.2);--color-accent-fg:#0969da;--color-accent-emphasis:#0969da;--color-attention-subtle:#fff8c5;--color-danger-fg:#cf222e;color-scheme:light}.wmde-markdown{-webkit-text-size-adjust:100%;word-wrap:break-word;background-color:var(--color-canvas-default);color:var(--color-fg-default);font-family:-apple-system,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji;font-size:16px;line-height:1.5}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{border-bottom:1px solid var(--color-border-muted);font-size:2em;font-weight:600;margin:.67em 0;padding-bottom:.3em}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{background-color:var(--color-canvas-default);border-style:none;box-sizing:content-box;display:inline-block;max-width:100%}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace,monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{background:transparent;background-color:var(--color-border-default);border:0;border-bottom:1px solid var(--color-border-muted);box-sizing:content-box;height:.25em;margin:24px 0;overflow:hidden;padding:0}.wmde-markdown input{font:inherit;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner,.wmde-markdown [type=reset]::-moz-focus-inner,.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button,.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button,.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:after,.wmde-markdown hr:before{content:"";display:table}.wmde-markdown hr:after{clear:both}.wmde-markdown table{border-collapse:collapse;border-spacing:0;display:block;max-width:100%;width:-moz-max-content;width:max-content}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>:not(summary){display:none!important}.wmde-markdown kbd{background-color:var(--color-canvas-subtle);border-bottom-color:var(--color-neutral-muted);border:1px solid var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted);color:var(--color-fg-default);display:inline-block;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;padding:3px 5px;vertical-align:middle}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{font-weight:600;line-height:1.25;margin-bottom:16px;margin-top:24px}.wmde-markdown h2{border-bottom:1px solid var(--color-border-muted);font-size:1.5em;font-weight:600;padding-bottom:.3em}.wmde-markdown h3{font-size:1.25em;font-weight:600}.wmde-markdown h4{font-size:1em;font-weight:600}.wmde-markdown h5{font-size:.875em;font-weight:600}.wmde-markdown h6{color:var(--color-fg-muted);font-size:.85em;font-weight:600}.wmde-markdown p{margin-bottom:10px;margin-top:0}.wmde-markdown blockquote{border-left:.25em solid var(--color-border-default);color:var(--color-fg-muted);margin:0;padding:0 1em}.wmde-markdown ol,.wmde-markdown ul{margin-bottom:0;margin-top:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ol ol ol,.wmde-markdown ol ul ol,.wmde-markdown ul ol ol,.wmde-markdown ul ul ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown code,.wmde-markdown pre,.wmde-markdown tt{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{word-wrap:normal;margin-bottom:0;margin-top:0}.wmde-markdown .octicon{fill:currentColor;display:inline-block;overflow:visible!important;vertical-align:text-bottom}.wmde-markdown ::-moz-placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-inner-spin-button,.wmde-markdown input::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:after,.wmde-markdown:before{content:"";display:table}.wmde-markdown:after{clear:both}.wmde-markdown>:first-child{margin-top:0!important}.wmde-markdown>:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;line-height:1;margin-left:-20px;padding-right:4px}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown blockquote,.wmde-markdown details,.wmde-markdown dl,.wmde-markdown ol,.wmde-markdown p,.wmde-markdown pre,.wmde-markdown table,.wmde-markdown ul{margin-bottom:16px;margin-top:0}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 code,.wmde-markdown h1 tt,.wmde-markdown h2 code,.wmde-markdown h2 tt,.wmde-markdown h3 code,.wmde-markdown h3 tt,.wmde-markdown h4 code,.wmde-markdown h4 tt,.wmde-markdown h5 code,.wmde-markdown h5 tt,.wmde-markdown h6 code,.wmde-markdown h6 tt{font-size:inherit;padding:0 .2em}.wmde-markdown ol.no-list,.wmde-markdown ul.no-list{list-style-type:none;padding:0}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ol ol,.wmde-markdown ol ul,.wmde-markdown ul ol,.wmde-markdown ul ul{margin-bottom:0;margin-top:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{font-size:1em;font-style:italic;font-weight:600;margin-top:16px;padding:0}.wmde-markdown dl dd{margin-bottom:16px;padding:0 16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table td,.wmde-markdown table th{border:1px solid var(--color-border-default);padding:6px 13px}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{background-color:transparent;max-width:none;vertical-align:text-top}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{border:1px solid var(--color-border-default);display:block;float:left;margin:13px 0 0;overflow:hidden;padding:7px;width:auto}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{clear:both;color:var(--color-fg-default);display:block;padding:5px 0 0}.wmde-markdown span.align-center{clear:both;display:block;overflow:hidden}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{clear:both;display:block;overflow:hidden}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{background-color:var(--color-neutral-muted);border-radius:6px;font-size:85%;margin:0;padding:.2em .4em}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{background:transparent;border:0;margin:0;padding:0;white-space:pre;word-break:normal}.wmde-markdown pre{background-color:var(--color-canvas-subtle);border-radius:6px;font-size:85%;line-height:1.45}.wmde-markdown pre code,.wmde-markdown pre tt{word-wrap:normal;background-color:transparent;border:0;display:inline;line-height:inherit;margin:0;max-width:auto;overflow:visible;padding:0}.wmde-markdown pre>code{display:block;overflow:auto;padding:16px}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{font-size:12px;line-height:1;overflow:hidden;padding:5px;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{background:var(--color-canvas-default);border:0;padding:10px 8px 9px;text-align:right}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{background:var(--color-canvas-subtle);border-top:0;font-weight:600}.wmde-markdown .footnotes{border-top:1px solid var(--color-border-default);color:var(--color-fg-muted);font-size:12px}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{border:2px solid var(--color-accent-emphasis);border-radius:6px;bottom:-8px;content:"";left:-24px;pointer-events:none;position:absolute;right:-8px;top:-8px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .contains-task-list input[type=checkbox],.wmde-markdown .task-list-item-checkbox{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{background:var(--color-border-default);border-radius:5px;color:var(--color-fg-defaul);cursor:pointer;display:flex;font-size:12px;padding:6px;position:absolute;right:6px;top:6px;transition:all .3s;visibility:hidden}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre .copied.active,.wmde-markdown pre:hover .copied:active{background:#2e9b33;color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.highlight-line{background-color:var(--color-neutral-muted)}.code-line.line-number:before{color:var(--color-fg-subtle);content:attr(line);display:inline-block;margin-right:16px;text-align:right;white-space:nowrap;width:1rem}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:var(--color-prettylights-syntax-comment)}.token.namespace{opacity:.7}.token.constant,.token.deleted,.token.property,.token.selector,.token.symbol,.token.tag{color:var(--color-prettylights-syntax-entity-tag)}.token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.token.attr-name,.token.boolean,.token.builtin,.token.char,.token.number,.token.operator,.token.property-access,.token.selector .token.class,.token.string{color:var(--color-prettylights-syntax-constant)}.token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.token.variable{color:var(--color-prettylights-syntax-constant)}.language-css .token.string,.style .token.string,.token.atrule,.token.attr-value,.token.class-name,.token.color,.token.entity,.token.function,.token.url{color:var(--color-prettylights-syntax-string)}.token.important,.token.keyword,.token.regex,.token.rule{color:var(--color-prettylights-syntax-keyword)}.token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help} +/*# sourceMappingURL=main.020a7543.css.map*/ \ No newline at end of file diff --git a/static/css/main.020a7543.css.map b/static/css/main.020a7543.css.map new file mode 100644 index 000000000..ef485e5e2 --- /dev/null +++ b/static/css/main.020a7543.css.map @@ -0,0 +1 @@ +{"version":3,"file":"static/css/main.020a7543.css","mappings":"AAAA,mGACE,6BAA8B,CAC9B,4BACF,CACA,gGACE,6BAA8B,CAC9B,4BACF,CAEA,mBACE,0CACF,CACA,mCACE,8CACF,CACA,+CACE,+CACF,CAEA,QAEE,2CAA4C,CAD5C,iBAEF,CACA,iCACE,yBACF,CACA,sBACE,QAAS,CAET,eAAgB,CADhB,SAEF,CACA,aAIE,wBAA2B,CAC3B,yBAA4B,CAH5B,WAAY,CACZ,aAAc,CAFd,8CAKF,CACA,eAEE,kBAAoB,CADpB,mBAEF,CACA,qCACE,qBACF,CACA,gBACE,4TACF,CACA,6BACE,YACF,CACA,4BAEE,kBAAmB,CADnB,YAEF,CACA,2BAEE,aAAc,CACd,WAAY,CAFZ,WAAa,CAGb,sBACF,CACA,iCACE,SACF,CACA,uBAGE,4BAA6B,CAI7B,QAAS,CACT,qBAAsB,CAPtB,kBAAmB,CAQnB,cAAe,CALf,oBAAqB,CACrB,cAAe,CAKf,YAAa,CAJb,eAAgB,CAJhB,iBAAkB,CASlB,qCACF,CACA,gBACE,YAAa,CACb,6BAA8B,CAE9B,uBACF,CClFA,mCACE,kCAGE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c,CADd,iBAAkB,CADlB,iBAGF,CACA,6BACE,YACF,CACA,gKASE,kBAAmB,CADnB,YAEF,CACA,uCACE,YACF,CACA,sCACE,eACF,CACA,4BACE,WACF,CACA,2BACE,WACF,CACA,gMAME,6BAA8B,CAC9B,qBAAsB,CACtB,iBACF,CACA,gMAME,oBACF,CACA,oRAME,kBACF,CACA,wQAaE,iBAAkB,CADlB,cAEF,CACA,oDAGE,oBAAqB,CADrB,SAEF,CACA,4BACE,uBACF,CACA,0BACE,2BACF,CACA,0BACE,2BACF,CACA,kCACE,uBACF,CACA,oFAKE,eAAgB,CADhB,YAEF,CACA,oBACE,eACF,CACA,qBACE,gBACF,CACA,kBACE,SACF,CACA,qBAGE,aAAc,CACd,iBAAkB,CAClB,eAAgB,CAHhB,eAAgB,CADhB,SAKF,CACA,qBAEE,kBAAmB,CADnB,cAEF,CACA,wBACE,eACF,CACA,gDAGE,4CAA6C,CAD7C,gBAEF,CACA,wBACE,4CAA6C,CAC7C,8CACF,CACA,sCACE,2CACF,CACA,yBACE,4BACF,CACA,gCACE,iBACF,CACA,+BACE,kBACF,CACA,sBAGE,4BAA6B,CAF7B,cAAe,CACf,uBAEF,CACA,0BACE,aAAc,CACd,eACF,CACA,+BAOE,4CAA6C,CAN7C,aAAc,CACd,UAAW,CAGX,eAAgB,CAChB,eAAgB,CAFhB,WAAY,CADZ,UAKF,CACA,mCACE,aAAc,CACd,UACF,CACA,oCAGE,UAAW,CACX,6BAA8B,CAH9B,aAAc,CACd,eAGF,CACA,iCAGE,UAAW,CAFX,aAAc,CACd,eAEF,CACA,sCACE,aAAc,CACd,kBAAmB,CACnB,eAAgB,CAChB,iBACF,CACA,0CACE,aAAc,CACd,iBACF,CACA,gCAGE,UAAW,CAFX,aAAc,CACd,eAEF,CACA,qCACE,aAAc,CACd,eAAgB,CAChB,eAAgB,CAChB,gBACF,CACA,yCACE,QAAS,CACT,gBACF,CACA,+BACE,aAAc,CACd,UAAW,CACX,iBAAkB,CAClB,eACF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a,CASb,cAAe,CADf,WAAY,CAPZ,iBAAkB,CAIlB,SAAU,CADV,OAAQ,CAMR,kBAAoB,CAXpB,iBAYF,CACA,yCACE,aACF,CACA,0CACE,YACF,CACA,iCACE,kBACF,CACA,uCACE,sDAAuD,CACvD,iCACF,CACA,0EAEE,kBAAmB,CACnB,iCACF,CACA,yCACE,YACF,CACA,0CACE,aACF,CACA,gBACE,2CACF,CACA,8BAKE,4BAA6B,CAC7B,kBAAmB,CALnB,oBAAqB,CAGrB,iBAAkB,CADlB,gBAAiB,CAIjB,kBAAmB,CALnB,UAMF,CACA,yDAIE,8CACF,CACA,iBACE,UACF,CACA,wFAME,iDACF,CACA,wBACE,+CACF,CACA,2JASE,+CACF,CACA,eACE,0DACF,CACA,0BACE,mEACF,CACA,gBACE,2DACF,CACA,2BACE,oEACF,CACA,gBACE,+CACF,CAOA,yJAKE,6CACF,CACA,yDAIE,8CACF,CACA,aACE,sDACF,CACA,6BAEE,eACF,CACA,cACE,iBACF,CACA,cACE,WACF","sources":["../../node_modules/react-code-preview-layout/esm/styles.css","../../node_modules/@uiw/react-markdown-preview/esm/styles/markdown.css"],"sourcesContent":[".code-preview-layout[data-color-mode*='light'], [data-color-mode*='light'], body[data-color-mode*='light'] {\n --color-canvas-subtle: #f6f8fa;\n --color-border-muted: hsl(210, 18%, 87%);\n}\n.code-preview-layout[data-color-mode*='dark'], [data-color-mode*='dark'], body[data-color-mode*='dark'] {\n --color-canvas-subtle: #161b22;\n --color-border-muted: #21262d;\n}\n\n.w-rcpl.w-bordered {\n border: 1px solid var(--color-border-muted);\n}\n.w-rcpl.w-bordered > .w-rcpl-toolbar {\n border-top: 1px solid var(--color-border-muted);\n}\n.w-rcpl.w-bordered > .w-rcpl-code:not(.w-hidden) {\n border-top: 1px dashed var(--color-border-muted);\n}\n\n.w-rcpl {\n border-radius: 5px;\n background-color: var(--color-canvas-subtle);\n}\n.w-rcpl-preview:not(:last-child) {\n border-radius: 5px 5px 0 0;\n}\n.w-rcpl-code.w-hidden {\n height: 0;\n padding: 0;\n overflow: hidden;\n}\n.w-rcpl-code {\n transition: height cubic-bezier(0.360, 0.000, 0.660, -0.560);;\n height: auto;\n overflow: auto;\n border-top-left-radius: 0px;\n border-top-right-radius: 0px;\n}\n.w-rcpl-code > * {\n padding: 0 !important;\n margin: 0 !important;\n}\n.w-disable-checkered > .w-rcpl-preview {\n background-image: none;\n}\n.w-rcpl-preview {\n background: url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='a' width='16' height='16' patternUnits='userSpaceOnUse'%3E%3Cpath fill='rgba(0, 0, 0, 0.06)' d='M0 0h8v8H0zm8 8h8v8H8z'/%3E%3C/pattern%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3C/svg%3E\")\n}\n.w-rcpl-preview, .w-rcpl-code {\n padding: 15px;\n}\n.w-rcpl-extra, .w-rcpl-title {\n display: flex;\n align-items: center;\n}\n.w-rcpl-toolbar button svg {\n opacity: 0.37;\n display: block;\n height: 18px;\n transition: opacity 0.3s;\n}\n.w-rcpl-toolbar button svg:hover {\n opacity: 1;\n}\n.w-rcpl-toolbar button {\n color: currentColor;\n position: relative;\n background-color: transparent;\n display: inline-block;\n height: inherit;\n padding: 3px 4px;\n border: 0;\n box-sizing: border-box;\n cursor: pointer;\n outline: none;\n transition: opacity .2s, background .2s;\n}\n.w-rcpl-toolbar {\n display: flex;\n justify-content: space-between;\n padding: 5px 5px;\n padding-left: 8px;\n}","@media (prefers-color-scheme: dark) {\n .wmde-markdown,\n .wmde-markdown-var {\n color-scheme: dark;\n --color-prettylights-syntax-comment: #8b949e;\n --color-prettylights-syntax-constant: #79c0ff;\n --color-prettylights-syntax-entity: #d2a8ff;\n --color-prettylights-syntax-storage-modifier-import: #c9d1d9;\n --color-prettylights-syntax-entity-tag: #7ee787;\n --color-prettylights-syntax-keyword: #ff7b72;\n --color-prettylights-syntax-string: #a5d6ff;\n --color-prettylights-syntax-variable: #ffa657;\n --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;\n --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;\n --color-prettylights-syntax-invalid-illegal-bg: #8e1519;\n --color-prettylights-syntax-carriage-return-text: #f0f6fc;\n --color-prettylights-syntax-carriage-return-bg: #b62324;\n --color-prettylights-syntax-string-regexp: #7ee787;\n --color-prettylights-syntax-markup-list: #f2cc60;\n --color-prettylights-syntax-markup-heading: #1f6feb;\n --color-prettylights-syntax-markup-italic: #c9d1d9;\n --color-prettylights-syntax-markup-bold: #c9d1d9;\n --color-prettylights-syntax-markup-deleted-text: #ffdcd7;\n --color-prettylights-syntax-markup-deleted-bg: #67060c;\n --color-prettylights-syntax-markup-inserted-text: #aff5b4;\n --color-prettylights-syntax-markup-inserted-bg: #033a16;\n --color-prettylights-syntax-markup-changed-text: #ffdfb6;\n --color-prettylights-syntax-markup-changed-bg: #5a1e02;\n --color-prettylights-syntax-markup-ignored-text: #c9d1d9;\n --color-prettylights-syntax-markup-ignored-bg: #1158c7;\n --color-prettylights-syntax-meta-diff-range: #d2a8ff;\n --color-prettylights-syntax-brackethighlighter-angle: #8b949e;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;\n --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;\n --color-fg-default: #c9d1d9;\n --color-fg-muted: #8b949e;\n --color-fg-subtle: #484f58;\n --color-canvas-default: #0d1117;\n --color-canvas-subtle: #161b22;\n --color-border-default: #30363d;\n --color-border-muted: #21262d;\n --color-neutral-muted: rgba(110, 118, 129, 0.4);\n --color-accent-fg: #58a6ff;\n --color-accent-emphasis: #1f6feb;\n --color-attention-subtle: rgba(187, 128, 9, 0.15);\n --color-danger-fg: #f85149;\n }\n}\n@media (prefers-color-scheme: light) {\n .wmde-markdown,\n .wmde-markdown-var {\n color-scheme: light;\n --color-prettylights-syntax-comment: #6e7781;\n --color-prettylights-syntax-constant: #0550ae;\n --color-prettylights-syntax-entity: #8250df;\n --color-prettylights-syntax-storage-modifier-import: #24292f;\n --color-prettylights-syntax-entity-tag: #116329;\n --color-prettylights-syntax-keyword: #cf222e;\n --color-prettylights-syntax-string: #0a3069;\n --color-prettylights-syntax-variable: #953800;\n --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;\n --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;\n --color-prettylights-syntax-invalid-illegal-bg: #82071e;\n --color-prettylights-syntax-carriage-return-text: #f6f8fa;\n --color-prettylights-syntax-carriage-return-bg: #cf222e;\n --color-prettylights-syntax-string-regexp: #116329;\n --color-prettylights-syntax-markup-list: #3b2300;\n --color-prettylights-syntax-markup-heading: #0550ae;\n --color-prettylights-syntax-markup-italic: #24292f;\n --color-prettylights-syntax-markup-bold: #24292f;\n --color-prettylights-syntax-markup-deleted-text: #82071e;\n --color-prettylights-syntax-markup-deleted-bg: #ffebe9;\n --color-prettylights-syntax-markup-inserted-text: #116329;\n --color-prettylights-syntax-markup-inserted-bg: #dafbe1;\n --color-prettylights-syntax-markup-changed-text: #953800;\n --color-prettylights-syntax-markup-changed-bg: #ffd8b5;\n --color-prettylights-syntax-markup-ignored-text: #eaeef2;\n --color-prettylights-syntax-markup-ignored-bg: #0550ae;\n --color-prettylights-syntax-meta-diff-range: #8250df;\n --color-prettylights-syntax-brackethighlighter-angle: #57606a;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;\n --color-prettylights-syntax-constant-other-reference-link: #0a3069;\n --color-fg-default: #24292f;\n --color-fg-muted: #57606a;\n --color-fg-subtle: #6e7781;\n --color-canvas-default: #ffffff;\n --color-canvas-subtle: #f6f8fa;\n --color-border-default: #d0d7de;\n --color-border-muted: hsl(210, 18%, 87%);\n --color-neutral-muted: rgba(175, 184, 193, 0.2);\n --color-accent-fg: #0969da;\n --color-accent-emphasis: #0969da;\n --color-attention-subtle: #fff8c5;\n --color-danger-fg: #cf222e;\n }\n}\n[data-color-mode*='dark'] .wmde-markdown,\n[data-color-mode*='dark'] .wmde-markdown-var,\n.wmde-markdown-var[data-color-mode*='dark'],\n.wmde-markdown[data-color-mode*='dark'],\nbody[data-color-mode*='dark'] {\n color-scheme: dark;\n --color-prettylights-syntax-comment: #8b949e;\n --color-prettylights-syntax-constant: #79c0ff;\n --color-prettylights-syntax-entity: #d2a8ff;\n --color-prettylights-syntax-storage-modifier-import: #c9d1d9;\n --color-prettylights-syntax-entity-tag: #7ee787;\n --color-prettylights-syntax-keyword: #ff7b72;\n --color-prettylights-syntax-string: #a5d6ff;\n --color-prettylights-syntax-variable: #ffa657;\n --color-prettylights-syntax-brackethighlighter-unmatched: #f85149;\n --color-prettylights-syntax-invalid-illegal-text: #f0f6fc;\n --color-prettylights-syntax-invalid-illegal-bg: #8e1519;\n --color-prettylights-syntax-carriage-return-text: #f0f6fc;\n --color-prettylights-syntax-carriage-return-bg: #b62324;\n --color-prettylights-syntax-string-regexp: #7ee787;\n --color-prettylights-syntax-markup-list: #f2cc60;\n --color-prettylights-syntax-markup-heading: #1f6feb;\n --color-prettylights-syntax-markup-italic: #c9d1d9;\n --color-prettylights-syntax-markup-bold: #c9d1d9;\n --color-prettylights-syntax-markup-deleted-text: #ffdcd7;\n --color-prettylights-syntax-markup-deleted-bg: #67060c;\n --color-prettylights-syntax-markup-inserted-text: #aff5b4;\n --color-prettylights-syntax-markup-inserted-bg: #033a16;\n --color-prettylights-syntax-markup-changed-text: #ffdfb6;\n --color-prettylights-syntax-markup-changed-bg: #5a1e02;\n --color-prettylights-syntax-markup-ignored-text: #c9d1d9;\n --color-prettylights-syntax-markup-ignored-bg: #1158c7;\n --color-prettylights-syntax-meta-diff-range: #d2a8ff;\n --color-prettylights-syntax-brackethighlighter-angle: #8b949e;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;\n --color-prettylights-syntax-constant-other-reference-link: #a5d6ff;\n --color-fg-default: #c9d1d9;\n --color-fg-muted: #8b949e;\n --color-fg-subtle: #484f58;\n --color-canvas-default: #0d1117;\n --color-canvas-subtle: #161b22;\n --color-border-default: #30363d;\n --color-border-muted: #21262d;\n --color-neutral-muted: rgba(110, 118, 129, 0.4);\n --color-accent-fg: #58a6ff;\n --color-accent-emphasis: #1f6feb;\n --color-attention-subtle: rgba(187, 128, 9, 0.15);\n --color-danger-fg: #f85149;\n}\n[data-color-mode*='light'] .wmde-markdown,\n[data-color-mode*='light'] .wmde-markdown-var,\n.wmde-markdown-var[data-color-mode*='light'],\n.wmde-markdown[data-color-mode*='light'],\nbody[data-color-mode*='light'] {\n color-scheme: light;\n --color-prettylights-syntax-comment: #6e7781;\n --color-prettylights-syntax-constant: #0550ae;\n --color-prettylights-syntax-entity: #8250df;\n --color-prettylights-syntax-storage-modifier-import: #24292f;\n --color-prettylights-syntax-entity-tag: #116329;\n --color-prettylights-syntax-keyword: #cf222e;\n --color-prettylights-syntax-string: #0a3069;\n --color-prettylights-syntax-variable: #953800;\n --color-prettylights-syntax-brackethighlighter-unmatched: #82071e;\n --color-prettylights-syntax-invalid-illegal-text: #f6f8fa;\n --color-prettylights-syntax-invalid-illegal-bg: #82071e;\n --color-prettylights-syntax-carriage-return-text: #f6f8fa;\n --color-prettylights-syntax-carriage-return-bg: #cf222e;\n --color-prettylights-syntax-string-regexp: #116329;\n --color-prettylights-syntax-markup-list: #3b2300;\n --color-prettylights-syntax-markup-heading: #0550ae;\n --color-prettylights-syntax-markup-italic: #24292f;\n --color-prettylights-syntax-markup-bold: #24292f;\n --color-prettylights-syntax-markup-deleted-text: #82071e;\n --color-prettylights-syntax-markup-deleted-bg: #ffebe9;\n --color-prettylights-syntax-markup-inserted-text: #116329;\n --color-prettylights-syntax-markup-inserted-bg: #dafbe1;\n --color-prettylights-syntax-markup-changed-text: #953800;\n --color-prettylights-syntax-markup-changed-bg: #ffd8b5;\n --color-prettylights-syntax-markup-ignored-text: #eaeef2;\n --color-prettylights-syntax-markup-ignored-bg: #0550ae;\n --color-prettylights-syntax-meta-diff-range: #8250df;\n --color-prettylights-syntax-brackethighlighter-angle: #57606a;\n --color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;\n --color-prettylights-syntax-constant-other-reference-link: #0a3069;\n --color-fg-default: #24292f;\n --color-fg-muted: #57606a;\n --color-fg-subtle: #6e7781;\n --color-canvas-default: #ffffff;\n --color-canvas-subtle: #f6f8fa;\n --color-border-default: #d0d7de;\n --color-border-muted: hsl(210, 18%, 87%);\n --color-neutral-muted: rgba(175, 184, 193, 0.2);\n --color-accent-fg: #0969da;\n --color-accent-emphasis: #0969da;\n --color-attention-subtle: #fff8c5;\n --color-danger-fg: #cf222e;\n}\n.wmde-markdown {\n -webkit-text-size-adjust: 100%;\n font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';\n font-size: 16px;\n line-height: 1.5;\n word-wrap: break-word;\n color: var(--color-fg-default);\n background-color: var(--color-canvas-default);\n}\n.wmde-markdown details,\n.wmde-markdown figcaption,\n.wmde-markdown figure {\n display: block;\n}\n.wmde-markdown summary {\n display: list-item;\n}\n.wmde-markdown [hidden] {\n display: none !important;\n}\n.wmde-markdown a {\n background-color: transparent;\n color: var(--color-accent-fg);\n text-decoration: none;\n}\n.wmde-markdown a:active,\n.wmde-markdown a:hover {\n outline-width: 0;\n}\n.wmde-markdown abbr[title] {\n border-bottom: none;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n.wmde-markdown b,\n.wmde-markdown strong {\n font-weight: 600;\n}\n.wmde-markdown dfn {\n font-style: italic;\n}\n.wmde-markdown h1 {\n margin: 0.67em 0;\n font-weight: 600;\n padding-bottom: 0.3em;\n font-size: 2em;\n border-bottom: 1px solid var(--color-border-muted);\n}\n.wmde-markdown mark {\n background-color: var(--color-attention-subtle);\n color: var(--color-text-primary);\n}\n.wmde-markdown small {\n font-size: 90%;\n}\n.wmde-markdown sub,\n.wmde-markdown sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n.wmde-markdown sub {\n bottom: -0.25em;\n}\n.wmde-markdown sup {\n top: -0.5em;\n}\n.wmde-markdown img {\n display: inline-block;\n border-style: none;\n max-width: 100%;\n box-sizing: content-box;\n background-color: var(--color-canvas-default);\n}\n.wmde-markdown code,\n.wmde-markdown kbd,\n.wmde-markdown pre,\n.wmde-markdown samp {\n font-family: monospace, monospace;\n font-size: 1em;\n}\n.wmde-markdown figure {\n margin: 1em 40px;\n}\n.wmde-markdown hr {\n box-sizing: content-box;\n overflow: hidden;\n background: transparent;\n border: 0;\n border-bottom: 1px solid var(--color-border-muted);\n height: 0.25em;\n padding: 0;\n margin: 24px 0;\n background-color: var(--color-border-default);\n}\n.wmde-markdown input {\n font: inherit;\n margin: 0;\n overflow: visible;\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n}\n.wmde-markdown [type='button'],\n.wmde-markdown [type='reset'],\n.wmde-markdown [type='submit'] {\n -webkit-appearance: button;\n}\n.wmde-markdown [type='button']::-moz-focus-inner,\n.wmde-markdown [type='reset']::-moz-focus-inner,\n.wmde-markdown [type='submit']::-moz-focus-inner {\n border-style: none;\n padding: 0;\n}\n.wmde-markdown [type='button']:-moz-focusring,\n.wmde-markdown [type='reset']:-moz-focusring,\n.wmde-markdown [type='submit']:-moz-focusring {\n outline: 1px dotted ButtonText;\n}\n.wmde-markdown [type='checkbox'],\n.wmde-markdown [type='radio'] {\n box-sizing: border-box;\n padding: 0;\n}\n.wmde-markdown [type='number']::-webkit-inner-spin-button,\n.wmde-markdown [type='number']::-webkit-outer-spin-button {\n height: auto;\n}\n.wmde-markdown [type='search'] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n}\n.wmde-markdown [type='search']::-webkit-search-cancel-button,\n.wmde-markdown [type='search']::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n.wmde-markdown ::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n.wmde-markdown ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n}\n.wmde-markdown a:hover {\n text-decoration: underline;\n}\n.wmde-markdown hr::before {\n display: table;\n content: '';\n}\n.wmde-markdown hr::after {\n display: table;\n clear: both;\n content: '';\n}\n.wmde-markdown table {\n border-spacing: 0;\n border-collapse: collapse;\n display: block;\n width: -webkit-max-content;\n width: max-content;\n max-width: 100%;\n}\n.wmde-markdown td,\n.wmde-markdown th {\n padding: 0;\n}\n.wmde-markdown details summary {\n cursor: pointer;\n}\n.wmde-markdown details:not([open]) > *:not(summary) {\n display: none !important;\n}\n.wmde-markdown kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n line-height: 10px;\n color: var(--color-fg-default);\n vertical-align: middle;\n background-color: var(--color-canvas-subtle);\n border: solid 1px var(--color-neutral-muted);\n border-bottom-color: var(--color-neutral-muted);\n border-radius: 6px;\n box-shadow: inset 0 -1px 0 var(--color-neutral-muted);\n}\n.wmde-markdown h1,\n.wmde-markdown h2,\n.wmde-markdown h3,\n.wmde-markdown h4,\n.wmde-markdown h5,\n.wmde-markdown h6 {\n margin-top: 24px;\n margin-bottom: 16px;\n font-weight: 600;\n line-height: 1.25;\n}\n.wmde-markdown td,\n.wmde-markdown th {\n padding: 0;\n}\n.wmde-markdown details summary {\n cursor: pointer;\n}\n.wmde-markdown details:not([open]) > *:not(summary) {\n display: none !important;\n}\n.wmde-markdown kbd {\n display: inline-block;\n padding: 3px 5px;\n font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n line-height: 10px;\n color: var(--color-fg-default);\n vertical-align: middle;\n background-color: var(--color-canvas-subtle);\n border: solid 1px var(--color-neutral-muted);\n border-bottom-color: var(--color-neutral-muted);\n border-radius: 6px;\n box-shadow: inset 0 -1px 0 var(--color-neutral-muted);\n}\n.wmde-markdown h1,\n.wmde-markdown h2,\n.wmde-markdown h3,\n.wmde-markdown h4,\n.wmde-markdown h5,\n.wmde-markdown h6 {\n margin-top: 24px;\n margin-bottom: 16px;\n font-weight: 600;\n line-height: 1.25;\n}\n.wmde-markdown h2 {\n font-weight: 600;\n padding-bottom: 0.3em;\n font-size: 1.5em;\n border-bottom: 1px solid var(--color-border-muted);\n}\n.wmde-markdown h3 {\n font-weight: 600;\n font-size: 1.25em;\n}\n.wmde-markdown h4 {\n font-weight: 600;\n font-size: 1em;\n}\n.wmde-markdown h5 {\n font-weight: 600;\n font-size: 0.875em;\n}\n.wmde-markdown h6 {\n font-weight: 600;\n font-size: 0.85em;\n color: var(--color-fg-muted);\n}\n.wmde-markdown p {\n margin-top: 0;\n margin-bottom: 10px;\n}\n.wmde-markdown blockquote {\n margin: 0;\n padding: 0 1em;\n color: var(--color-fg-muted);\n border-left: 0.25em solid var(--color-border-default);\n}\n.wmde-markdown ul,\n.wmde-markdown ol {\n margin-top: 0;\n margin-bottom: 0;\n padding-left: 2em;\n}\n.wmde-markdown ol ol,\n.wmde-markdown ul ol {\n list-style-type: lower-roman;\n}\n.wmde-markdown ul ul ol,\n.wmde-markdown ul ol ol,\n.wmde-markdown ol ul ol,\n.wmde-markdown ol ol ol {\n list-style-type: lower-alpha;\n}\n.wmde-markdown dd {\n margin-left: 0;\n}\n.wmde-markdown tt,\n.wmde-markdown code {\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n font-size: 12px;\n}\n.wmde-markdown pre {\n margin-top: 0;\n margin-bottom: 0;\n font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;\n font-size: 12px;\n word-wrap: normal;\n}\n.wmde-markdown .octicon {\n display: inline-block;\n overflow: visible !important;\n vertical-align: text-bottom;\n fill: currentColor;\n}\n.wmde-markdown ::placeholder {\n color: var(--color-fg-subtle);\n opacity: 1;\n}\n.wmde-markdown input::-webkit-outer-spin-button,\n.wmde-markdown input::-webkit-inner-spin-button {\n margin: 0;\n -webkit-appearance: none;\n appearance: none;\n}\n.wmde-markdown [data-catalyst] {\n display: block;\n}\n.wmde-markdown::before {\n display: table;\n content: '';\n}\n.wmde-markdown::after {\n display: table;\n clear: both;\n content: '';\n}\n.wmde-markdown > *:first-child {\n margin-top: 0 !important;\n}\n.wmde-markdown > *:last-child {\n margin-bottom: 0 !important;\n}\n.wmde-markdown a:not([href]) {\n color: inherit;\n text-decoration: none;\n}\n.wmde-markdown .absent {\n color: var(--color-danger-fg);\n}\n.wmde-markdown a.anchor {\n float: left;\n padding-right: 4px;\n margin-left: -20px;\n line-height: 1;\n}\n.wmde-markdown .anchor:focus {\n outline: none;\n}\n.wmde-markdown p,\n.wmde-markdown blockquote,\n.wmde-markdown ul,\n.wmde-markdown ol,\n.wmde-markdown dl,\n.wmde-markdown table,\n.wmde-markdown pre,\n.wmde-markdown details {\n margin-top: 0;\n margin-bottom: 16px;\n}\n.wmde-markdown blockquote > :first-child {\n margin-top: 0;\n}\n.wmde-markdown blockquote > :last-child {\n margin-bottom: 0;\n}\n.wmde-markdown sup > a::before {\n content: '[';\n}\n.wmde-markdown sup > a::after {\n content: ']';\n}\n.wmde-markdown h1 .octicon-link,\n.wmde-markdown h2 .octicon-link,\n.wmde-markdown h3 .octicon-link,\n.wmde-markdown h4 .octicon-link,\n.wmde-markdown h5 .octicon-link,\n.wmde-markdown h6 .octicon-link {\n color: var(--color-fg-default);\n vertical-align: middle;\n visibility: hidden;\n}\n.wmde-markdown h1:hover .anchor,\n.wmde-markdown h2:hover .anchor,\n.wmde-markdown h3:hover .anchor,\n.wmde-markdown h4:hover .anchor,\n.wmde-markdown h5:hover .anchor,\n.wmde-markdown h6:hover .anchor {\n text-decoration: none;\n}\n.wmde-markdown h1:hover .anchor .octicon-link,\n.wmde-markdown h2:hover .anchor .octicon-link,\n.wmde-markdown h3:hover .anchor .octicon-link,\n.wmde-markdown h4:hover .anchor .octicon-link,\n.wmde-markdown h5:hover .anchor .octicon-link,\n.wmde-markdown h6:hover .anchor .octicon-link {\n visibility: visible;\n}\n.wmde-markdown h1 tt,\n.wmde-markdown h1 code,\n.wmde-markdown h2 tt,\n.wmde-markdown h2 code,\n.wmde-markdown h3 tt,\n.wmde-markdown h3 code,\n.wmde-markdown h4 tt,\n.wmde-markdown h4 code,\n.wmde-markdown h5 tt,\n.wmde-markdown h5 code,\n.wmde-markdown h6 tt,\n.wmde-markdown h6 code {\n padding: 0 0.2em;\n font-size: inherit;\n}\n.wmde-markdown ul.no-list,\n.wmde-markdown ol.no-list {\n padding: 0;\n list-style-type: none;\n}\n.wmde-markdown ol[type='1'] {\n list-style-type: decimal;\n}\n.wmde-markdown ol[type='a'] {\n list-style-type: lower-alpha;\n}\n.wmde-markdown ol[type='i'] {\n list-style-type: lower-roman;\n}\n.wmde-markdown div > ol:not([type]) {\n list-style-type: decimal;\n}\n.wmde-markdown ul ul,\n.wmde-markdown ul ol,\n.wmde-markdown ol ol,\n.wmde-markdown ol ul {\n margin-top: 0;\n margin-bottom: 0;\n}\n.wmde-markdown li > p {\n margin-top: 16px;\n}\n.wmde-markdown li + li {\n margin-top: 0.25em;\n}\n.wmde-markdown dl {\n padding: 0;\n}\n.wmde-markdown dl dt {\n padding: 0;\n margin-top: 16px;\n font-size: 1em;\n font-style: italic;\n font-weight: 600;\n}\n.wmde-markdown dl dd {\n padding: 0 16px;\n margin-bottom: 16px;\n}\n.wmde-markdown table th {\n font-weight: 600;\n}\n.wmde-markdown table th,\n.wmde-markdown table td {\n padding: 6px 13px;\n border: 1px solid var(--color-border-default);\n}\n.wmde-markdown table tr {\n background-color: var(--color-canvas-default);\n border-top: 1px solid var(--color-border-muted);\n}\n.wmde-markdown table tr:nth-child(2n) {\n background-color: var(--color-canvas-subtle);\n}\n.wmde-markdown table img {\n background-color: transparent;\n}\n.wmde-markdown img[align='right'] {\n padding-left: 20px;\n}\n.wmde-markdown img[align='left'] {\n padding-right: 20px;\n}\n.wmde-markdown .emoji {\n max-width: none;\n vertical-align: text-top;\n background-color: transparent;\n}\n.wmde-markdown span.frame {\n display: block;\n overflow: hidden;\n}\n.wmde-markdown span.frame > span {\n display: block;\n float: left;\n width: auto;\n padding: 7px;\n margin: 13px 0 0;\n overflow: hidden;\n border: 1px solid var(--color-border-default);\n}\n.wmde-markdown span.frame span img {\n display: block;\n float: left;\n}\n.wmde-markdown span.frame span span {\n display: block;\n padding: 5px 0 0;\n clear: both;\n color: var(--color-fg-default);\n}\n.wmde-markdown span.align-center {\n display: block;\n overflow: hidden;\n clear: both;\n}\n.wmde-markdown span.align-center > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: center;\n}\n.wmde-markdown span.align-center span img {\n margin: 0 auto;\n text-align: center;\n}\n.wmde-markdown span.align-right {\n display: block;\n overflow: hidden;\n clear: both;\n}\n.wmde-markdown span.align-right > span {\n display: block;\n margin: 13px 0 0;\n overflow: hidden;\n text-align: right;\n}\n.wmde-markdown span.align-right span img {\n margin: 0;\n text-align: right;\n}\n.wmde-markdown span.float-left {\n display: block;\n float: left;\n margin-right: 13px;\n overflow: hidden;\n}\n.wmde-markdown span.float-left span {\n margin: 13px 0 0;\n}\n.wmde-markdown span.float-right {\n display: block;\n float: right;\n margin-left: 13px;\n overflow: hidden;\n}\n.wmde-markdown span.float-right > span {\n display: block;\n margin: 13px auto 0;\n overflow: hidden;\n text-align: right;\n}\n.wmde-markdown code,\n.wmde-markdown tt {\n padding: 0.2em 0.4em;\n margin: 0;\n font-size: 85%;\n background-color: var(--color-neutral-muted);\n border-radius: 6px;\n}\n.wmde-markdown code br,\n.wmde-markdown tt br {\n display: none;\n}\n.wmde-markdown del code {\n text-decoration: inherit;\n}\n.wmde-markdown pre code {\n font-size: 100%;\n}\n.wmde-markdown pre > code {\n padding: 0;\n margin: 0;\n word-break: normal;\n white-space: pre;\n background: transparent;\n border: 0;\n}\n.wmde-markdown pre {\n font-size: 85%;\n line-height: 1.45;\n background-color: var(--color-canvas-subtle);\n border-radius: 6px;\n}\n.wmde-markdown pre code,\n.wmde-markdown pre tt {\n display: inline;\n max-width: auto;\n padding: 0;\n margin: 0;\n overflow: visible;\n line-height: inherit;\n word-wrap: normal;\n background-color: transparent;\n border: 0;\n}\n.wmde-markdown pre > code {\n padding: 16px;\n overflow: auto;\n display: block;\n}\n.wmde-markdown .csv-data td,\n.wmde-markdown .csv-data th {\n padding: 5px;\n overflow: hidden;\n font-size: 12px;\n line-height: 1;\n text-align: left;\n white-space: nowrap;\n}\n.wmde-markdown .csv-data .blob-num {\n padding: 10px 8px 9px;\n text-align: right;\n background: var(--color-canvas-default);\n border: 0;\n}\n.wmde-markdown .csv-data tr {\n border-top: 0;\n}\n.wmde-markdown .csv-data th {\n font-weight: 600;\n background: var(--color-canvas-subtle);\n border-top: 0;\n}\n.wmde-markdown .footnotes {\n font-size: 12px;\n color: var(--color-fg-muted);\n border-top: 1px solid var(--color-border-default);\n}\n.wmde-markdown .footnotes ol {\n padding-left: 16px;\n}\n.wmde-markdown .footnotes li {\n position: relative;\n}\n.wmde-markdown .footnotes li:target::before {\n position: absolute;\n top: -8px;\n right: -8px;\n bottom: -8px;\n left: -24px;\n pointer-events: none;\n content: '';\n border: 2px solid var(--color-accent-emphasis);\n border-radius: 6px;\n}\n.wmde-markdown .footnotes li:target {\n color: var(--color-fg-default);\n}\n.wmde-markdown .footnotes .data-footnote-backref g-emoji {\n font-family: monospace;\n}\n.wmde-markdown .task-list-item {\n list-style-type: none;\n}\n.wmde-markdown .task-list-item label {\n font-weight: 400;\n}\n.wmde-markdown .task-list-item.enabled label {\n cursor: pointer;\n}\n.wmde-markdown .task-list-item + .wmde-markdown .task-list-item {\n margin-top: 3px;\n}\n.wmde-markdown .task-list-item .handle {\n display: none;\n}\n.wmde-markdown .task-list-item-checkbox,\n.wmde-markdown .contains-task-list input[type='checkbox'] {\n margin: 0 0.2em 0.25em -1.6em;\n vertical-align: middle;\n}\n.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,\n.wmde-markdown .contains-task-list:dir(rtl) input[type='checkbox'] {\n margin: 0 -1.6em 0.25em 0.2em;\n}\n.wmde-markdown ::-webkit-calendar-picker-indicator {\n filter: invert(50%);\n}\n.wmde-markdown pre {\n position: relative;\n}\n.wmde-markdown pre .copied {\n visibility: hidden;\n display: flex;\n position: absolute;\n cursor: pointer;\n color: var(--color-fg-defaul);\n top: 6px;\n right: 6px;\n border-radius: 5px;\n background: var(--color-border-default);\n padding: 6px;\n font-size: 12px;\n transition: all 0.3s;\n}\n.wmde-markdown pre .copied .octicon-copy {\n display: block;\n}\n.wmde-markdown pre .copied .octicon-check {\n display: none;\n}\n.wmde-markdown pre:hover .copied {\n visibility: visible;\n}\n.wmde-markdown pre:hover .copied:hover {\n background: var(--color-prettylights-syntax-entity-tag);\n color: var(--color-canvas-default);\n}\n.wmde-markdown pre:hover .copied:active,\n.wmde-markdown pre .copied.active {\n background: #2e9b33;\n color: var(--color-canvas-default);\n}\n.wmde-markdown pre .active .octicon-copy {\n display: none;\n}\n.wmde-markdown pre .active .octicon-check {\n display: block;\n}\n.highlight-line {\n background-color: var(--color-neutral-muted);\n}\n.code-line.line-number::before {\n display: inline-block;\n width: 1rem;\n text-align: right;\n margin-right: 16px;\n color: var(--color-fg-subtle);\n content: attr(line);\n white-space: nowrap;\n}\n.token.comment,\n.token.prolog,\n.token.doctype,\n.token.cdata {\n color: var(--color-prettylights-syntax-comment);\n}\n.token.namespace {\n opacity: 0.7;\n}\n.token.property,\n.token.tag,\n.token.selector,\n.token.constant,\n.token.symbol,\n.token.deleted {\n color: var(--color-prettylights-syntax-entity-tag);\n}\n.token.maybe-class-name {\n color: var(--color-prettylights-syntax-variable);\n}\n.token.property-access,\n.token.operator,\n.token.boolean,\n.token.number,\n.token.selector .token.class,\n.token.attr-name,\n.token.string,\n.token.char,\n.token.builtin {\n color: var(--color-prettylights-syntax-constant);\n}\n.token.deleted {\n color: var(--color-prettylights-syntax-markup-deleted-text);\n}\n.code-line .token.deleted {\n background-color: var(--color-prettylights-syntax-markup-deleted-bg);\n}\n.token.inserted {\n color: var(--color-prettylights-syntax-markup-inserted-text);\n}\n.code-line .token.inserted {\n background-color: var(--color-prettylights-syntax-markup-inserted-bg);\n}\n.token.variable {\n color: var(--color-prettylights-syntax-constant);\n}\n.token.entity,\n.token.url,\n.language-css .token.string,\n.style .token.string {\n color: var(--color-prettylights-syntax-string);\n}\n.token.color,\n.token.atrule,\n.token.attr-value,\n.token.function,\n.token.class-name {\n color: var(--color-prettylights-syntax-string);\n}\n.token.rule,\n.token.regex,\n.token.important,\n.token.keyword {\n color: var(--color-prettylights-syntax-keyword);\n}\n.token.coord {\n color: var(--color-prettylights-syntax-meta-diff-range);\n}\n.token.important,\n.token.bold {\n font-weight: bold;\n}\n.token.italic {\n font-style: italic;\n}\n.token.entity {\n cursor: help;\n}\n"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1033.a84451e8.chunk.js b/static/js/1033.a84451e8.chunk.js new file mode 100644 index 000000000..d09f2de99 --- /dev/null +++ b/static/js/1033.a84451e8.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1033],{81033:(e,a,r)=>{r.r(a),r.d(a,{default:()=>t});const t="LEX Paid Escrow.\nLEXON: 0.2.12\nCOMMENT: 3.f - an escrow that is controlled by a third party for a fee.\n\u201cPayer\u201d is a person.\n\u201cPayee\u201d is a person.\n\u201cArbiter\u201d is a person.\n\u201cFee\u201d is an amount.\nThe Payer pays an Amount into escrow,\nappoints the Payee,\nappoints the Arbiter,\nand also fixes the Fee.\nCLAUSE: Pay Out.\nThe Arbiter may pay from escrow the Fee to themselves,\nand afterwards pay the remainder of the escrow to the Payee.\nCLAUSE: Pay Back.\nThe Arbiter may pay from escrow the Fee to themselves,\nand afterwards return the remainder of the escrow to the Payer.\n"}}]); +//# sourceMappingURL=1033.a84451e8.chunk.js.map \ No newline at end of file diff --git a/static/js/1033.a84451e8.chunk.js.map b/static/js/1033.a84451e8.chunk.js.map new file mode 100644 index 000000000..23a254907 --- /dev/null +++ b/static/js/1033.a84451e8.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1033.a84451e8.chunk.js","mappings":"yHAAA,qnB","sources":["../../node_modules/code-example/txt/sample.lexon.txt"],"sourcesContent":["export default \"LEX Paid Escrow.\\nLEXON: 0.2.12\\nCOMMENT: 3.f - an escrow that is controlled by a third party for a fee.\\n“Payer” is a person.\\n“Payee” is a person.\\n“Arbiter” is a person.\\n“Fee” is an amount.\\nThe Payer pays an Amount into escrow,\\nappoints the Payee,\\nappoints the Arbiter,\\nand also fixes the Fee.\\nCLAUSE: Pay Out.\\nThe Arbiter may pay from escrow the Fee to themselves,\\nand afterwards pay the remainder of the escrow to the Payee.\\nCLAUSE: Pay Back.\\nThe Arbiter may pay from escrow the Fee to themselves,\\nand afterwards return the remainder of the escrow to the Payer.\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1093.dc32c871.chunk.js b/static/js/1093.dc32c871.chunk.js new file mode 100644 index 000000000..385a6e29a --- /dev/null +++ b/static/js/1093.dc32c871.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1093],{11093:(n,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='# GraphQL Schema Definition Language\n\n"""\nColor value\n"""\nscalar Color\n\n"""\nNode interface\n\n- allows (re)fetch arbitrary entity only by ID\n- allows client side cache normalization\n\nSee [Relay Global Object Identification Specification](https://facebook.github.io/relay/graphql/objectidentification.htm)\n"""\ninterface Node {\n """\n Globally unique identifier,\n typically `${__typename}:${dbId}`\n may be encoded in *base64*\n """\n id: ID!\n}\n\n"""\nA character in the Star Wars Trilogy\n"""\ninterface Character {\n """\n The id of the character.\n """\n id: ID!\n\n """\n The name of the character.\n """\n name: String\n\n """\n The friends of the character, or an empty list if they have none.\n """\n friends: [Character]\n\n """\n Which movies they appear in\n """\n appearsIn: [Episode]\n\n """\n All secrets about their past\n """\n secretBackstory: String\n}\n\n"""\nA mechanical creature in the Star Wars universe.\n"""\ntype Droid implements Character {\n """\n The id of the droid.\n """\n id: ID!\n\n """\n The name of the droid.\n """\n name: String\n\n """\n The friends of the droid, or an empty list if they have none.\n """\n friends: [Character]\n\n """\n Which movies they appear in.\n """\n appearsIn: [Episode]\n\n """\n Construction date and the name of the designer.\n """\n secretBackstory: String\n\n """\n The primary function of the droid.\n """\n primaryFunction: String\n\n """\n Chase color of the droid.\n """\n color: Color\n}\n\n# One of the films in the Star Wars Trilogy\nenum Episode {\n """\n Released in 1977.\n """\n NEWHOPE\n\n """\n Released in 1980.\n """\n EMPIRE\n\n """\n Released in 1983.\n """\n JEDI\n}\n\n"""\nA humanoid creature in the Star Wars universe.\n"""\ntype Human implements Character {\n """\n The id of the human.\n """\n id: ID!\n\n """\n The name of the human.\n """\n name: String\n\n """\n The friends of the human, or an empty list if they have none.\n """\n friends: [Character]\n\n """\n Which movies they appear in.\n """\n appearsIn: [Episode]\n\n """\n The home planet of the human, or null if unknown.\n """\n homePlanet: String\n\n """\n Where are they from and how they came to be who they are.\n """\n secretBackstory: String\n}\n\nenum LengthUnit {\n METER\n FEET\n}\n\ntype Starship {\n id: ID!\n name: String!\n length(unit: LengthUnit = METER): Float\n}\n\nunion SearchResult = Human | Droid | Starship\n\ninput SearchInput {\n name: String\n episode: Episode\n}\n\n"""\nRoot Query\n"""\ntype Query {\n """\n Return the hero by episode.\n """\n hero(\n """\n If omitted, returns the hero of the whole saga. If provided, returns the hero of that particular episode.\n """\n episode: Episode\n ): Character\n\n """\n Return the Human by ID.\n """\n human(\n """\n id of the human\n """\n id: ID!\n ): Human\n\n """\n Return the Droid by ID.\n """\n droid(\n """\n id of the droid\n """\n id: ID!\n ): Droid\n\n """\n Search everything by name\n\n __NOTE__: You should use Relay pagination\n """\n search(search: SearchInput!): [SearchResult]\n @deprecated(reason: "`search` will be replaced.")\n}\n\n"""\nRoot Mutation\n"""\ntype Mutation {\n """\n Save the favorite episode.\n """\n favorite(\n """\n Favorite episode.\n """\n episode: Episode!\n ): Episode\n}\n\n"""\nSubscriptions \u2014 live events\n"""\ntype Subscription {\n """\n Message\n """\n message: String\n}\n\nextend type Query {\n """\n Dummy query for highlighting test\n """\n dummy(\n int: Int = 123\n float: Float = 123.456\n str: String = "Hello World!"\n boolDefaultTrue: Boolean = true\n boolDefaultFalse: Boolean = false\n id: ID\n search: SearchInput = null\n ): Boolean\n}\n\nschema {\n query: Query\n mutation: Mutation\n subscription: Subscription\n}\n\n# GraphQL Query Language\n\nquery dummyQuery($int: Int) {\n dummy(int: $int)\n}\n\nmutation favoriteEpisode($episode: Episode) {\n favorite(episode: $episode)\n}\n'}}]); +//# sourceMappingURL=1093.dc32c871.chunk.js.map \ No newline at end of file diff --git a/static/js/1093.dc32c871.chunk.js.map b/static/js/1093.dc32c871.chunk.js.map new file mode 100644 index 000000000..1cbf95dad --- /dev/null +++ b/static/js/1093.dc32c871.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1093.dc32c871.chunk.js","mappings":"yHAAA,4gI","sources":["../../node_modules/code-example/txt/sample.graphql.txt"],"sourcesContent":["export default \"# GraphQL Schema Definition Language\\n\\n\\\"\\\"\\\"\\nColor value\\n\\\"\\\"\\\"\\nscalar Color\\n\\n\\\"\\\"\\\"\\nNode interface\\n\\n- allows (re)fetch arbitrary entity only by ID\\n- allows client side cache normalization\\n\\nSee [Relay Global Object Identification Specification](https://facebook.github.io/relay/graphql/objectidentification.htm)\\n\\\"\\\"\\\"\\ninterface Node {\\n \\\"\\\"\\\"\\n Globally unique identifier,\\n typically `${__typename}:${dbId}`\\n may be encoded in *base64*\\n \\\"\\\"\\\"\\n id: ID!\\n}\\n\\n\\\"\\\"\\\"\\nA character in the Star Wars Trilogy\\n\\\"\\\"\\\"\\ninterface Character {\\n \\\"\\\"\\\"\\n The id of the character.\\n \\\"\\\"\\\"\\n id: ID!\\n\\n \\\"\\\"\\\"\\n The name of the character.\\n \\\"\\\"\\\"\\n name: String\\n\\n \\\"\\\"\\\"\\n The friends of the character, or an empty list if they have none.\\n \\\"\\\"\\\"\\n friends: [Character]\\n\\n \\\"\\\"\\\"\\n Which movies they appear in\\n \\\"\\\"\\\"\\n appearsIn: [Episode]\\n\\n \\\"\\\"\\\"\\n All secrets about their past\\n \\\"\\\"\\\"\\n secretBackstory: String\\n}\\n\\n\\\"\\\"\\\"\\nA mechanical creature in the Star Wars universe.\\n\\\"\\\"\\\"\\ntype Droid implements Character {\\n \\\"\\\"\\\"\\n The id of the droid.\\n \\\"\\\"\\\"\\n id: ID!\\n\\n \\\"\\\"\\\"\\n The name of the droid.\\n \\\"\\\"\\\"\\n name: String\\n\\n \\\"\\\"\\\"\\n The friends of the droid, or an empty list if they have none.\\n \\\"\\\"\\\"\\n friends: [Character]\\n\\n \\\"\\\"\\\"\\n Which movies they appear in.\\n \\\"\\\"\\\"\\n appearsIn: [Episode]\\n\\n \\\"\\\"\\\"\\n Construction date and the name of the designer.\\n \\\"\\\"\\\"\\n secretBackstory: String\\n\\n \\\"\\\"\\\"\\n The primary function of the droid.\\n \\\"\\\"\\\"\\n primaryFunction: String\\n\\n \\\"\\\"\\\"\\n Chase color of the droid.\\n \\\"\\\"\\\"\\n color: Color\\n}\\n\\n# One of the films in the Star Wars Trilogy\\nenum Episode {\\n \\\"\\\"\\\"\\n Released in 1977.\\n \\\"\\\"\\\"\\n NEWHOPE\\n\\n \\\"\\\"\\\"\\n Released in 1980.\\n \\\"\\\"\\\"\\n EMPIRE\\n\\n \\\"\\\"\\\"\\n Released in 1983.\\n \\\"\\\"\\\"\\n JEDI\\n}\\n\\n\\\"\\\"\\\"\\nA humanoid creature in the Star Wars universe.\\n\\\"\\\"\\\"\\ntype Human implements Character {\\n \\\"\\\"\\\"\\n The id of the human.\\n \\\"\\\"\\\"\\n id: ID!\\n\\n \\\"\\\"\\\"\\n The name of the human.\\n \\\"\\\"\\\"\\n name: String\\n\\n \\\"\\\"\\\"\\n The friends of the human, or an empty list if they have none.\\n \\\"\\\"\\\"\\n friends: [Character]\\n\\n \\\"\\\"\\\"\\n Which movies they appear in.\\n \\\"\\\"\\\"\\n appearsIn: [Episode]\\n\\n \\\"\\\"\\\"\\n The home planet of the human, or null if unknown.\\n \\\"\\\"\\\"\\n homePlanet: String\\n\\n \\\"\\\"\\\"\\n Where are they from and how they came to be who they are.\\n \\\"\\\"\\\"\\n secretBackstory: String\\n}\\n\\nenum LengthUnit {\\n METER\\n FEET\\n}\\n\\ntype Starship {\\n id: ID!\\n name: String!\\n length(unit: LengthUnit = METER): Float\\n}\\n\\nunion SearchResult = Human | Droid | Starship\\n\\ninput SearchInput {\\n name: String\\n episode: Episode\\n}\\n\\n\\\"\\\"\\\"\\nRoot Query\\n\\\"\\\"\\\"\\ntype Query {\\n \\\"\\\"\\\"\\n Return the hero by episode.\\n \\\"\\\"\\\"\\n hero(\\n \\\"\\\"\\\"\\n If omitted, returns the hero of the whole saga. If provided, returns the hero of that particular episode.\\n \\\"\\\"\\\"\\n episode: Episode\\n ): Character\\n\\n \\\"\\\"\\\"\\n Return the Human by ID.\\n \\\"\\\"\\\"\\n human(\\n \\\"\\\"\\\"\\n id of the human\\n \\\"\\\"\\\"\\n id: ID!\\n ): Human\\n\\n \\\"\\\"\\\"\\n Return the Droid by ID.\\n \\\"\\\"\\\"\\n droid(\\n \\\"\\\"\\\"\\n id of the droid\\n \\\"\\\"\\\"\\n id: ID!\\n ): Droid\\n\\n \\\"\\\"\\\"\\n Search everything by name\\n\\n __NOTE__: You should use Relay pagination\\n \\\"\\\"\\\"\\n search(search: SearchInput!): [SearchResult]\\n @deprecated(reason: \\\"`search` will be replaced.\\\")\\n}\\n\\n\\\"\\\"\\\"\\nRoot Mutation\\n\\\"\\\"\\\"\\ntype Mutation {\\n \\\"\\\"\\\"\\n Save the favorite episode.\\n \\\"\\\"\\\"\\n favorite(\\n \\\"\\\"\\\"\\n Favorite episode.\\n \\\"\\\"\\\"\\n episode: Episode!\\n ): Episode\\n}\\n\\n\\\"\\\"\\\"\\nSubscriptions — live events\\n\\\"\\\"\\\"\\ntype Subscription {\\n \\\"\\\"\\\"\\n Message\\n \\\"\\\"\\\"\\n message: String\\n}\\n\\nextend type Query {\\n \\\"\\\"\\\"\\n Dummy query for highlighting test\\n \\\"\\\"\\\"\\n dummy(\\n int: Int = 123\\n float: Float = 123.456\\n str: String = \\\"Hello World!\\\"\\n boolDefaultTrue: Boolean = true\\n boolDefaultFalse: Boolean = false\\n id: ID\\n search: SearchInput = null\\n ): Boolean\\n}\\n\\nschema {\\n query: Query\\n mutation: Mutation\\n subscription: Subscription\\n}\\n\\n# GraphQL Query Language\\n\\nquery dummyQuery($int: Int) {\\n dummy(int: $int)\\n}\\n\\nmutation favoriteEpisode($episode: Episode) {\\n favorite(episode: $episode)\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1108.0fdba128.chunk.js b/static/js/1108.0fdba128.chunk.js new file mode 100644 index 000000000..c903570ab --- /dev/null +++ b/static/js/1108.0fdba128.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1108],{41108:(n,e,i)=>{i.r(e),i.d(e,{default:()=>a});const a='LiveScript\n# Easy listing of implicit objects\ntable1 =\n * id: 1\n name: \'george\'\n * id: 2\n name: \'mike\'\n * id: 3\n name: \'donald\'\n\ntable2 =\n * id: 2\n age: 21\n * id: 1\n age: 20\n * id: 3\n age: 26\n\n# Implicit access, accessignment\nup-case-name = (.name .= to-upper-case!)\n\n# List comprehensions, destructuring, piping\n[{id:id1, name, age} for {id:id1, name} in table1\n for {id:id2, age} in table2\n when id1 is id2]\n|> sort-by (.id) # using \'sort-by\' from prelude.ls\n|> each up-case-name # using \'each\' from prelude.ls\n|> JSON.stringify\n#=>\n#[{"id":1,"name":"GEORGE","age":20},\n# {"id":2,"name":"MIKE", "age":21},\n# {"id":3,"name":"DONALD","age":26}]\n\n# operators as functions, piping\nmap (.age), table2 |> fold1 (+)\n#=> 67 (\'fold1\' and \'map\' from prelude.ls)\n\nr = +...[4 5 6] #=> [+4, +5, +6]\nt = typeof! ...[\\b 5 {}] #=> ["String", "Number", "Object"]\nc = ~...[4, 5] #=> [-5, -6]\n++...player<[strength hp]>\n# also works with -, --, typeof, ! and delete!\ni = new ...[some, classes]\nc = ^^...[copy, these, {}]\ndelete ...list[1, 2, 3]\ndo ...[a, b, c]'}}]); +//# sourceMappingURL=1108.0fdba128.chunk.js.map \ No newline at end of file diff --git a/static/js/1108.0fdba128.chunk.js.map b/static/js/1108.0fdba128.chunk.js.map new file mode 100644 index 000000000..e898fd4a1 --- /dev/null +++ b/static/js/1108.0fdba128.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1108.0fdba128.chunk.js","mappings":"yHAAA,6qC","sources":["../../node_modules/code-example/txt/sample.livescript.txt"],"sourcesContent":["export default \"LiveScript\\n# Easy listing of implicit objects\\ntable1 =\\n * id: 1\\n name: 'george'\\n * id: 2\\n name: 'mike'\\n * id: 3\\n name: 'donald'\\n\\ntable2 =\\n * id: 2\\n age: 21\\n * id: 1\\n age: 20\\n * id: 3\\n age: 26\\n\\n# Implicit access, accessignment\\nup-case-name = (.name .= to-upper-case!)\\n\\n# List comprehensions, destructuring, piping\\n[{id:id1, name, age} for {id:id1, name} in table1\\n for {id:id2, age} in table2\\n when id1 is id2]\\n|> sort-by (.id) # using 'sort-by' from prelude.ls\\n|> each up-case-name # using 'each' from prelude.ls\\n|> JSON.stringify\\n#=>\\n#[{\\\"id\\\":1,\\\"name\\\":\\\"GEORGE\\\",\\\"age\\\":20},\\n# {\\\"id\\\":2,\\\"name\\\":\\\"MIKE\\\", \\\"age\\\":21},\\n# {\\\"id\\\":3,\\\"name\\\":\\\"DONALD\\\",\\\"age\\\":26}]\\n\\n# operators as functions, piping\\nmap (.age), table2 |> fold1 (+)\\n#=> 67 ('fold1' and 'map' from prelude.ls)\\n\\nr = +...[4 5 6] #=> [+4, +5, +6]\\nt = typeof! ...[\\\\b 5 {}] #=> [\\\"String\\\", \\\"Number\\\", \\\"Object\\\"]\\nc = ~...[4, 5] #=> [-5, -6]\\n++...player<[strength hp]>\\n# also works with -, --, typeof, ! and delete!\\ni = new ...[some, classes]\\nc = ^^...[copy, these, {}]\\ndelete ...list[1, 2, 3]\\ndo ...[a, b, c]\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1290.2ee31a34.chunk.js b/static/js/1290.2ee31a34.chunk.js new file mode 100644 index 000000000..de679824b --- /dev/null +++ b/static/js/1290.2ee31a34.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1290],{11290:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});const i={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# White Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-white.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-white)\n\nWhite theme for cm6, generated from [white-theme](https://github.com/xthezealot/white-theme-vscode/tree/master/themes).\n\n\n \"codemirror-theme-white\"\n\n\n\n \"codemirror-theme-white\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-white --save\n```\n\n```jsx\nimport { whiteLight, whiteLightInit, whiteDark, whiteDarkInit } from '@uiw/codemirror-theme-white';\n// Or\nimport { whiteLight, whiteLightInit } from '@uiw/codemirror-theme-white/light';\nimport { whiteDark, whiteDarkInit } from '@uiw/codemirror-theme-white/dark';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsWhiteLight: CreateThemeOptions['settings'];\nexport declare const whiteLightInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const whiteLight: import('@codemirror/state').Extension;\n\nexport declare const defaultSettingsWhiteDark: CreateThemeOptions['settings'];\nexport declare const whiteDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const whiteDark: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { whiteLight, whiteLightInit } from '@uiw/codemirror-theme-white/light';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { whiteDark, whiteDarkInit } from '@uiw/codemirror-theme-white/dark';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [whiteDark, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=1290.2ee31a34.chunk.js.map \ No newline at end of file diff --git a/static/js/1290.2ee31a34.chunk.js.map b/static/js/1290.2ee31a34.chunk.js.map new file mode 100644 index 000000000..0bc55f4fa --- /dev/null +++ b/static/js/1290.2ee31a34.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1290.2ee31a34.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,k8GACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/white/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# White Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-white.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-white)\\n\\nWhite theme for cm6, generated from [white-theme](https://github.com/xthezealot/white-theme-vscode/tree/master/themes).\\n\\n\\n \\\"codemirror-theme-white\\\"\\n\\n\\n\\n \\\"codemirror-theme-white\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-white --save\\n```\\n\\n```jsx\\nimport { whiteLight, whiteLightInit, whiteDark, whiteDarkInit } from '@uiw/codemirror-theme-white';\\n// Or\\nimport { whiteLight, whiteLightInit } from '@uiw/codemirror-theme-white/light';\\nimport { whiteDark, whiteDarkInit } from '@uiw/codemirror-theme-white/dark';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsWhiteLight: CreateThemeOptions['settings'];\\nexport declare const whiteLightInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const whiteLight: import('@codemirror/state').Extension;\\n\\nexport declare const defaultSettingsWhiteDark: CreateThemeOptions['settings'];\\nexport declare const whiteDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const whiteDark: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { whiteLight, whiteLightInit } from '@uiw/codemirror-theme-white/light';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { whiteDark, whiteDarkInit } from '@uiw/codemirror-theme-white/dark';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [whiteDark, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1353.e0f62c5f.chunk.js b/static/js/1353.e0f62c5f.chunk.js new file mode 100644 index 000000000..8d40cff6c --- /dev/null +++ b/static/js/1353.e0f62c5f.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1353],{31353:(e,n,o)=>{o.r(n),o.d(n,{default:()=>t});const t={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Atom One Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-atomone.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-atomone)\n\n\n \"codemirror-theme-atomone\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-atomone --save\n```\n\n```jsx\nimport { tags as t } from '@lezer/highlight';\nimport { atomone, atomoneInit } from '@uiw/codemirror-theme-atomone';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsAtomone: CreateThemeOptions['settings'];\nexport declare const atomoneInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const atomone: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { atomone } from '@uiw/codemirror-theme-atomone';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { atomone } from '@uiw/codemirror-theme-atomone';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [atomone, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=1353.e0f62c5f.chunk.js.map \ No newline at end of file diff --git a/static/js/1353.e0f62c5f.chunk.js.map b/static/js/1353.e0f62c5f.chunk.js.map new file mode 100644 index 000000000..23112dad5 --- /dev/null +++ b/static/js/1353.e0f62c5f.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1353.e0f62c5f.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,qsFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/atomone/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Atom One Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-atomone.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-atomone)\\n\\n\\n \\\"codemirror-theme-atomone\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-atomone --save\\n```\\n\\n```jsx\\nimport { tags as t } from '@lezer/highlight';\\nimport { atomone, atomoneInit } from '@uiw/codemirror-theme-atomone';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsAtomone: CreateThemeOptions['settings'];\\nexport declare const atomoneInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const atomone: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { atomone } from '@uiw/codemirror-theme-atomone';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { atomone } from '@uiw/codemirror-theme-atomone';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [atomone, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/137.6776a3ec.chunk.js b/static/js/137.6776a3ec.chunk.js new file mode 100644 index 000000000..69b71cc78 --- /dev/null +++ b/static/js/137.6776a3ec.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[137],{46089:(e,t,c)=>{c.d(t,{E:()=>u,N:()=>m});var n,h,a=c(50669),i=c(83528),r=c(4801),l=c(20530),d=c(38932),o=c(40878),s=c(18944),g=c(18930),k=c(79584);const p=d.ZP.label(n||(n=(0,a.Z)(["\n user-select: none;\n white-space: nowrap;\n"]))),u=e=>{let{children:t,...c}=e;return(0,k.jsxs)(p,{children:[(0,k.jsx)("input",{type:"checkbox",...c}),(0,k.jsx)("span",{children:t})]})},x=d.ZP.div(h||(h=(0,a.Z)(["\n padding-bottom: 32px;\n"]))),m=()=>{const{theme:e}=(0,o.F)(),[t,c]=(0,i.useState)({}),n=(0,i.useContext)(g.Oy);return(0,k.jsxs)(s.Oq,{children:[(0,k.jsx)(r.default,{value:n.mdstr,theme:e,basicSetup:t,height:"300px !important",style:{margin:"0 0 23px 0"},extensions:[l.RI.markdown()]}),(0,k.jsxs)(x,{children:[(0,k.jsxs)("select",{value:t.tabSize,onChange:e=>c({...t,tabSize:Number(e.target.value||"2")}),children:[(0,k.jsx)("option",{value:2,children:"TabSize: 2"}),(0,k.jsx)("option",{value:4,children:"TabSize: 4"}),(0,k.jsx)("option",{value:6,children:"TabSize: 6"}),(0,k.jsx)("option",{value:8,children:"TabSize: 8"})]}),(0,k.jsx)(u,{checked:!1!==t.lineNumbers,onChange:e=>c({...t,lineNumbers:e.target.checked}),children:"lineNumbers"}),(0,k.jsx)(u,{checked:!1!==t.foldGutter,onChange:e=>c({...t,foldGutter:e.target.checked}),children:"foldGutter"}),(0,k.jsx)(u,{checked:!1!==t.highlightActiveLineGutter,onChange:e=>c({...t,highlightActiveLineGutter:e.target.checked}),children:"highlightActiveLineGutter"}),(0,k.jsx)(u,{checked:!1!==t.highlightSpecialChars,onChange:e=>c({...t,highlightSpecialChars:e.target.checked}),children:"highlightSpecialChars"}),(0,k.jsx)(u,{checked:!1!==t.history,onChange:e=>c({...t,history:e.target.checked}),children:"history"}),(0,k.jsx)(u,{checked:!1!==t.drawSelection,onChange:e=>c({...t,drawSelection:e.target.checked}),children:"drawSelection"}),(0,k.jsx)(u,{checked:!1!==t.dropCursor,onChange:e=>c({...t,dropCursor:e.target.checked}),children:"dropCursor"}),(0,k.jsx)(u,{checked:!1!==t.allowMultipleSelections,onChange:e=>c({...t,allowMultipleSelections:e.target.checked}),children:"allowMultipleSelections"}),(0,k.jsx)(u,{checked:!1!==t.indentOnInput,onChange:e=>c({...t,indentOnInput:e.target.checked}),children:"indentOnInput"}),(0,k.jsx)(u,{checked:!1!==t.syntaxHighlighting,onChange:e=>c({...t,syntaxHighlighting:e.target.checked}),children:"syntaxHighlighting"}),(0,k.jsx)(u,{checked:!1!==t.bracketMatching,onChange:e=>c({...t,bracketMatching:e.target.checked}),children:"bracketMatching"}),(0,k.jsx)(u,{checked:!1!==t.closeBrackets,onChange:e=>c({...t,closeBrackets:e.target.checked}),children:"closeBrackets"}),(0,k.jsx)(u,{checked:!1!==t.autocompletion,onChange:e=>c({...t,autocompletion:e.target.checked}),children:"autocompletion"}),(0,k.jsx)(u,{checked:!1!==t.rectangularSelection,onChange:e=>c({...t,rectangularSelection:e.target.checked}),children:"rectangularSelection"}),(0,k.jsx)(u,{checked:!1!==t.crosshairCursor,onChange:e=>c({...t,crosshairCursor:e.target.checked}),children:"crosshairCursor"}),(0,k.jsx)(u,{checked:!1!==t.highlightActiveLine,onChange:e=>c({...t,highlightActiveLine:e.target.checked}),children:"highlightActiveLine"}),(0,k.jsx)(u,{checked:!1!==t.highlightSelectionMatches,onChange:e=>c({...t,highlightSelectionMatches:e.target.checked}),children:"highlightSelectionMatches"}),(0,k.jsx)(u,{checked:!1!==t.closeBracketsKeymap,onChange:e=>c({...t,closeBracketsKeymap:e.target.checked}),children:"closeBracketsKeymap"}),(0,k.jsx)(u,{checked:!1!==t.defaultKeymap,onChange:e=>c({...t,defaultKeymap:e.target.checked}),children:"defaultKeymap"}),(0,k.jsx)(u,{checked:!1!==t.searchKeymap,onChange:e=>c({...t,searchKeymap:e.target.checked}),children:"searchKeymap"}),(0,k.jsx)(u,{checked:!1!==t.historyKeymap,onChange:e=>c({...t,historyKeymap:e.target.checked}),children:"historyKeymap"}),(0,k.jsx)(u,{checked:!1!==t.foldKeymap,onChange:e=>c({...t,foldKeymap:e.target.checked}),children:"foldKeymap"}),(0,k.jsx)(u,{checked:!1!==t.completionKeymap,onChange:e=>c({...t,completionKeymap:e.target.checked}),children:"completionKeymap"}),(0,k.jsx)(u,{checked:!1!==t.lintKeymap,onChange:e=>c({...t,lintKeymap:e.target.checked}),children:"lintKeymap"})]})]})}},50137:(e,t,c)=>{c.r(t),c.d(t,{Component:()=>i});var n=c(18930),h=c(46089),a=c(79584);const i=()=>(0,a.jsx)(n.MB,{path:()=>c.e(7324).then(c.bind(c,59897)),children:(0,a.jsx)(h.N,{})})},18944:(e,t,c)=>{c.d(t,{Oq:()=>r});var n,h,a=c(50669),i=c(38932);const r=i.ZP.div(n||(n=(0,a.Z)(["\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n"])));i.ZP.div(h||(h=(0,a.Z)(["\n display: flex;\n flex: 1;\n"])))},40878:(e,t,c)=>{c.d(t,{F:()=>h});var n=c(83528);function h(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";const t=document.documentElement.getAttribute("data-color-mode"),[c,h]=(0,n.useState)("dark"===t?"dark":e);return(0,n.useEffect)((()=>{h("dark"===document.documentElement.getAttribute("data-color-mode")?"dark":"light"),document.addEventListener("colorschemechange",(e=>{h(e.detail.colorScheme)}))}),[]),{theme:c,setTheme:h}}}}]); +//# sourceMappingURL=137.6776a3ec.chunk.js.map \ No newline at end of file diff --git a/static/js/137.6776a3ec.chunk.js.map b/static/js/137.6776a3ec.chunk.js.map new file mode 100644 index 000000000..ca659a833 --- /dev/null +++ b/static/js/137.6776a3ec.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/137.6776a3ec.chunk.js","mappings":"6NAQA,MAAMA,EAAQC,EAAAA,GAAOC,MAAKC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wDAKbC,EAETC,IAA6B,IAA5B,SAAEC,KAAaC,GAAOF,EACzB,OACEG,EAAAA,EAAAA,MAACT,EAAK,CAAAO,SAAA,EACJG,EAAAA,EAAAA,KAAA,SAAOC,KAAK,cAAeH,KAC3BE,EAAAA,EAAAA,KAAA,QAAAH,SAAOA,MACD,EAINK,EAAUX,EAAAA,GAAOY,IAAGC,IAAAA,GAAAV,EAAAA,EAAAA,GAAA,mCAIbW,EAAoBA,KAC/B,MAAM,MAAEC,IAAUC,EAAAA,EAAAA,MACXC,EAAYC,IAAiBC,EAAAA,EAAAA,UAA4B,CAAC,GAC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B,qBAAsBC,IAC9CH,EAASG,EAAEC,OAAOC,YAA6C,GAC/D,GACD,IACI,CAAEhE,QAAO2D,WAClB,C","sources":["pages/extensions/basic-setup/example.tsx","pages/extensions/basic-setup/index.tsx","pages/extensions/index.tsx","utils/useTheme.tsx"],"sourcesContent":["import { FC, PropsWithChildren, useContext, useState } from 'react';\nimport CodeMirror, { BasicSetupOptions } from '@uiw/react-codemirror';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport styled from 'styled-components';\nimport { useTheme } from '../../../utils/useTheme';\nimport { PageWarpper } from '..';\nimport { MdContext } from '../../theme/Preview';\n\nconst Label = styled.label`\n user-select: none;\n white-space: nowrap;\n`;\n\nexport const Options: FC<\n PropsWithChildren, HTMLInputElement>>\n> = ({ children, ...props }) => {\n return (\n \n );\n};\n\nconst Warpper = styled.div`\n padding-bottom: 32px;\n`;\n\nexport const BasicSetupExample = () => {\n const { theme } = useTheme();\n const [basicSetup, setBasicSetup] = useState({});\n const mdData = useContext(MdContext);\n return (\n \n \n \n setBasicSetup({ ...basicSetup, tabSize: Number(evn.target.value || '2') })}\n >\n \n \n \n \n \n setBasicSetup({ ...basicSetup, lineNumbers: evn.target.checked })}\n >\n lineNumbers\n \n setBasicSetup({ ...basicSetup, foldGutter: evn.target.checked })}\n >\n foldGutter\n \n setBasicSetup({ ...basicSetup, highlightActiveLineGutter: evn.target.checked })}\n >\n highlightActiveLineGutter\n \n setBasicSetup({ ...basicSetup, highlightSpecialChars: evn.target.checked })}\n >\n highlightSpecialChars\n \n setBasicSetup({ ...basicSetup, history: evn.target.checked })}\n >\n history\n \n setBasicSetup({ ...basicSetup, drawSelection: evn.target.checked })}\n >\n drawSelection\n \n setBasicSetup({ ...basicSetup, dropCursor: evn.target.checked })}\n >\n dropCursor\n \n setBasicSetup({ ...basicSetup, allowMultipleSelections: evn.target.checked })}\n >\n allowMultipleSelections\n \n setBasicSetup({ ...basicSetup, indentOnInput: evn.target.checked })}\n >\n indentOnInput\n \n setBasicSetup({ ...basicSetup, syntaxHighlighting: evn.target.checked })}\n >\n syntaxHighlighting\n \n setBasicSetup({ ...basicSetup, bracketMatching: evn.target.checked })}\n >\n bracketMatching\n \n setBasicSetup({ ...basicSetup, closeBrackets: evn.target.checked })}\n >\n closeBrackets\n \n setBasicSetup({ ...basicSetup, autocompletion: evn.target.checked })}\n >\n autocompletion\n \n setBasicSetup({ ...basicSetup, rectangularSelection: evn.target.checked })}\n >\n rectangularSelection\n \n setBasicSetup({ ...basicSetup, crosshairCursor: evn.target.checked })}\n >\n crosshairCursor\n \n setBasicSetup({ ...basicSetup, highlightActiveLine: evn.target.checked })}\n >\n highlightActiveLine\n \n setBasicSetup({ ...basicSetup, highlightSelectionMatches: evn.target.checked })}\n >\n highlightSelectionMatches\n \n setBasicSetup({ ...basicSetup, closeBracketsKeymap: evn.target.checked })}\n >\n closeBracketsKeymap\n \n setBasicSetup({ ...basicSetup, defaultKeymap: evn.target.checked })}\n >\n defaultKeymap\n \n setBasicSetup({ ...basicSetup, searchKeymap: evn.target.checked })}\n >\n searchKeymap\n \n setBasicSetup({ ...basicSetup, historyKeymap: evn.target.checked })}\n >\n historyKeymap\n \n setBasicSetup({ ...basicSetup, foldKeymap: evn.target.checked })}\n >\n foldKeymap\n \n setBasicSetup({ ...basicSetup, completionKeymap: evn.target.checked })}\n >\n completionKeymap\n \n setBasicSetup({ ...basicSetup, lintKeymap: evn.target.checked })}\n >\n lintKeymap\n \n \n \n );\n};\n","import { Preview } from '../../theme/Preview';\nimport { BasicSetupExample } from './example';\n\nexport const Component = () => {\n return (\n import('@uiw/codemirror-extensions-basic-setup/README.md')}>\n \n \n );\n};\n","import styled from 'styled-components';\n\nexport const PageWarpper = styled.div`\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n`;\n\nexport const Content = styled.div`\n display: flex;\n flex: 1;\n`;\n\nexport const Extensions = () => {};\n","import { useEffect, useState } from 'react';\nimport { ReactCodeMirrorProps } from '@uiw/react-codemirror';\n\nexport function useTheme(name: ReactCodeMirrorProps['theme'] = 'light') {\n const dark = document.documentElement.getAttribute('data-color-mode');\n const [theme, setTheme] = useState(dark === 'dark' ? 'dark' : name);\n useEffect(() => {\n setTheme(document.documentElement.getAttribute('data-color-mode') === 'dark' ? 'dark' : 'light');\n document.addEventListener('colorschemechange', (e) => {\n setTheme(e.detail.colorScheme as ReactCodeMirrorProps['theme']);\n });\n }, []);\n return { theme, setTheme };\n}\n"],"names":["Label","styled","label","_templateObject","_taggedTemplateLiteral","Options","_ref","children","props","_jsxs","_jsx","type","Warpper","div","_templateObject2","BasicSetupExample","theme","useTheme","basicSetup","setBasicSetup","useState","mdData","useContext","MdContext","PageWarpper","CodeMirror","value","mdstr","height","style","margin","extensions","langs","markdown","tabSize","onChange","evn","Number","target","checked","lineNumbers","foldGutter","highlightActiveLineGutter","highlightSpecialChars","history","drawSelection","dropCursor","allowMultipleSelections","indentOnInput","syntaxHighlighting","bracketMatching","closeBrackets","autocompletion","rectangularSelection","crosshairCursor","highlightActiveLine","highlightSelectionMatches","closeBracketsKeymap","defaultKeymap","searchKeymap","historyKeymap","foldKeymap","completionKeymap","lintKeymap","Component","Preview","path","name","arguments","length","undefined","dark","document","documentElement","getAttribute","setTheme","useEffect","addEventListener","e","detail","colorScheme"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1419.cdedeb95.chunk.js b/static/js/1419.cdedeb95.chunk.js new file mode 100644 index 000000000..851fea202 --- /dev/null +++ b/static/js/1419.cdedeb95.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1419],{71419:(e,n,t)=>{t.r(n),t.d(n,{default:()=>o});const o='pragma solidity ^0.4.11;\n\n/// @title Voting with delegation.\ncontract Ballot {\n // This declares a new complex type which will\n // be used for variables later.\n // It will represent a single voter.\n struct Voter {\n uint weight; // weight is accumulated by delegation\n bool voted; // if true, that person already voted\n address delegate; // person delegated to\n uint vote; // index of the voted proposal\n }\n\n // This is a type for a single proposal.\n struct Proposal {\n bytes32 name; // short name (up to 32 bytes)\n uint voteCount; // number of accumulated votes\n }\n\n address public chairperson;\n\n // This declares a state variable that\n // stores a `Voter` struct for each possible address.\n mapping(address => Voter) public voters;\n\n // A dynamically-sized array of `Proposal` structs.\n Proposal[] public proposals;\n\n /// Create a new ballot to choose one of `proposalNames`.\n function Ballot(bytes32[] proposalNames) {\n chairperson = msg.sender;\n voters[chairperson].weight = 1;\n\n // For each of the provided proposal names,\n // create a new proposal object and add it\n // to the end of the array.\n for (uint i = 0; i < proposalNames.length; i++) {\n // `Proposal({...})` creates a temporary\n // Proposal object and `proposals.push(...)`\n // appends it to the end of `proposals`.\n proposals.push(Proposal({\n name: proposalNames[i],\n voteCount: 0\n }));\n }\n }\n\n // Give `voter` the right to vote on this ballot.\n // May only be called by `chairperson`.\n function giveRightToVote(address voter) {\n // If the argument of `require` evaluates to `false`,\n // it terminates and reverts all changes to\n // the state and to Ether balances. It is often\n // a good idea to use this if functions are\n // called incorrectly. But watch out, this\n // will currently also consume all provided gas\n // (this is planned to change in the future).\n require((msg.sender == chairperson) && !voters[voter].voted && (voters[voter].weight == 0));\n voters[voter].weight = 1;\n }\n\n /// Delegate your vote to the voter `to`.\n function delegate(address to) {\n // assigns reference\n Voter sender = voters[msg.sender];\n require(!sender.voted);\n\n // Self-delegation is not allowed.\n require(to != msg.sender);\n\n // Forward the delegation as long as\n // `to` also delegated.\n // In general, such loops are very dangerous,\n // because if they run too long, they might\n // need more gas than is available in a block.\n // In this case, the delegation will not be executed,\n // but in other situations, such loops might\n // cause a contract to get "stuck" completely.\n while (voters[to].delegate != address(0)) {\n to = voters[to].delegate;\n\n // We found a loop in the delegation, not allowed.\n require(to != msg.sender);\n }\n\n // Since `sender` is a reference, this\n // modifies `voters[msg.sender].voted`\n sender.voted = true;\n sender.delegate = to;\n Voter delegate = voters[to];\n if (delegate.voted) {\n // If the delegate already voted,\n // directly add to the number of votes\n proposals[delegate.vote].voteCount += sender.weight;\n } else {\n // If the delegate did not vote yet,\n // add to her weight.\n delegate.weight += sender.weight;\n }\n }\n\n /// Give your vote (including votes delegated to you)\n /// to proposal `proposals[proposal].name`.\n function vote(uint proposal) {\n Voter sender = voters[msg.sender];\n require(!sender.voted);\n sender.voted = true;\n sender.vote = proposal;\n\n // If `proposal` is out of the range of the array,\n // this will throw automatically and revert all\n // changes.\n proposals[proposal].voteCount += sender.weight;\n }\n\n /// @dev Computes the winning proposal taking all\n /// previous votes into account.\n function winningProposal() constant\n returns (uint winningProposal)\n {\n uint winningVoteCount = 0;\n for (uint p = 0; p < proposals.length; p++) {\n if (proposals[p].voteCount > winningVoteCount) {\n winningVoteCount = proposals[p].voteCount;\n winningProposal = p;\n }\n }\n }\n\n // Calls winningProposal() function to get the index\n // of the winner contained in the proposals array and then\n // returns the name of the winner\n function winnerName() constant\n returns (bytes32 winnerName)\n {\n winnerName = proposals[winningProposal()].name;\n }\n}'}}]); +//# sourceMappingURL=1419.cdedeb95.chunk.js.map \ No newline at end of file diff --git a/static/js/1419.cdedeb95.chunk.js.map b/static/js/1419.cdedeb95.chunk.js.map new file mode 100644 index 000000000..771745998 --- /dev/null +++ b/static/js/1419.cdedeb95.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1419.cdedeb95.chunk.js","mappings":"yHAAA,48J","sources":["../../node_modules/code-example/txt/sample.sol.txt"],"sourcesContent":["export default \"pragma solidity ^0.4.11;\\n\\n/// @title Voting with delegation.\\ncontract Ballot {\\n // This declares a new complex type which will\\n // be used for variables later.\\n // It will represent a single voter.\\n struct Voter {\\n uint weight; // weight is accumulated by delegation\\n bool voted; // if true, that person already voted\\n address delegate; // person delegated to\\n uint vote; // index of the voted proposal\\n }\\n\\n // This is a type for a single proposal.\\n struct Proposal {\\n bytes32 name; // short name (up to 32 bytes)\\n uint voteCount; // number of accumulated votes\\n }\\n\\n address public chairperson;\\n\\n // This declares a state variable that\\n // stores a `Voter` struct for each possible address.\\n mapping(address => Voter) public voters;\\n\\n // A dynamically-sized array of `Proposal` structs.\\n Proposal[] public proposals;\\n\\n /// Create a new ballot to choose one of `proposalNames`.\\n function Ballot(bytes32[] proposalNames) {\\n chairperson = msg.sender;\\n voters[chairperson].weight = 1;\\n\\n // For each of the provided proposal names,\\n // create a new proposal object and add it\\n // to the end of the array.\\n for (uint i = 0; i < proposalNames.length; i++) {\\n // `Proposal({...})` creates a temporary\\n // Proposal object and `proposals.push(...)`\\n // appends it to the end of `proposals`.\\n proposals.push(Proposal({\\n name: proposalNames[i],\\n voteCount: 0\\n }));\\n }\\n }\\n\\n // Give `voter` the right to vote on this ballot.\\n // May only be called by `chairperson`.\\n function giveRightToVote(address voter) {\\n // If the argument of `require` evaluates to `false`,\\n // it terminates and reverts all changes to\\n // the state and to Ether balances. It is often\\n // a good idea to use this if functions are\\n // called incorrectly. But watch out, this\\n // will currently also consume all provided gas\\n // (this is planned to change in the future).\\n require((msg.sender == chairperson) && !voters[voter].voted && (voters[voter].weight == 0));\\n voters[voter].weight = 1;\\n }\\n\\n /// Delegate your vote to the voter `to`.\\n function delegate(address to) {\\n // assigns reference\\n Voter sender = voters[msg.sender];\\n require(!sender.voted);\\n\\n // Self-delegation is not allowed.\\n require(to != msg.sender);\\n\\n // Forward the delegation as long as\\n // `to` also delegated.\\n // In general, such loops are very dangerous,\\n // because if they run too long, they might\\n // need more gas than is available in a block.\\n // In this case, the delegation will not be executed,\\n // but in other situations, such loops might\\n // cause a contract to get \\\"stuck\\\" completely.\\n while (voters[to].delegate != address(0)) {\\n to = voters[to].delegate;\\n\\n // We found a loop in the delegation, not allowed.\\n require(to != msg.sender);\\n }\\n\\n // Since `sender` is a reference, this\\n // modifies `voters[msg.sender].voted`\\n sender.voted = true;\\n sender.delegate = to;\\n Voter delegate = voters[to];\\n if (delegate.voted) {\\n // If the delegate already voted,\\n // directly add to the number of votes\\n proposals[delegate.vote].voteCount += sender.weight;\\n } else {\\n // If the delegate did not vote yet,\\n // add to her weight.\\n delegate.weight += sender.weight;\\n }\\n }\\n\\n /// Give your vote (including votes delegated to you)\\n /// to proposal `proposals[proposal].name`.\\n function vote(uint proposal) {\\n Voter sender = voters[msg.sender];\\n require(!sender.voted);\\n sender.voted = true;\\n sender.vote = proposal;\\n\\n // If `proposal` is out of the range of the array,\\n // this will throw automatically and revert all\\n // changes.\\n proposals[proposal].voteCount += sender.weight;\\n }\\n\\n /// @dev Computes the winning proposal taking all\\n /// previous votes into account.\\n function winningProposal() constant\\n returns (uint winningProposal)\\n {\\n uint winningVoteCount = 0;\\n for (uint p = 0; p < proposals.length; p++) {\\n if (proposals[p].voteCount > winningVoteCount) {\\n winningVoteCount = proposals[p].voteCount;\\n winningProposal = p;\\n }\\n }\\n }\\n\\n // Calls winningProposal() function to get the index\\n // of the winner contained in the proposals array and then\\n // returns the name of the winner\\n function winnerName() constant\\n returns (bytes32 winnerName)\\n {\\n winnerName = proposals[winningProposal()].name;\\n }\\n}\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1453.e720de64.chunk.js b/static/js/1453.e720de64.chunk.js new file mode 100644 index 000000000..9d790e7f5 --- /dev/null +++ b/static/js/1453.e720de64.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1453],{21453:(e,n,t)=>{t.r(n),t.d(n,{Component:()=>w});var l=t(4801),o=t(20530),s=t(83528),r=t(79584);function w(){return(0,r.jsx)(s.Fragment,{children:(0,r.jsx)(l.default,{value:"console.log('hello')",theme:"none",height:"400px !important",width:"100%",style:{margin:"0 0 23px 0",flex:1},extensions:[o.RI.markdown()]})})}}}]); +//# sourceMappingURL=1453.e720de64.chunk.js.map \ No newline at end of file diff --git a/static/js/1453.e720de64.chunk.js.map b/static/js/1453.e720de64.chunk.js.map new file mode 100644 index 000000000..6140e03c1 --- /dev/null +++ b/static/js/1453.e720de64.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1453.e720de64.chunk.js","mappings":"0KAOO,SAASA,IACd,OACEC,EAAAA,EAAAA,KAACC,EAAAA,SAAQ,CAAAC,UACPF,EAAAA,EAAAA,KAACG,EAAAA,QAAU,CACTC,MAAK,uBACLC,MAAM,OACNC,OAAO,mBACPC,MAAM,OACNC,MAAO,CAAEC,OAAQ,aAAcC,KAAM,GACrCC,WAAY,CAACC,EAAAA,GAAMC,eAI3B,C","sources":["pages/examples/Example431.tsx"],"sourcesContent":["import CodeMirror from '@uiw/react-codemirror';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport { Fragment } from 'react';\n\n/**\n * https://github.com/uiwjs/react-codemirror/issues/431\n */\nexport function Component() {\n return (\n \n \n \n );\n}\n"],"names":["Component","_jsx","Fragment","children","CodeMirror","value","theme","height","width","style","margin","flex","extensions","langs","markdown"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1600.005e0f6f.chunk.js b/static/js/1600.005e0f6f.chunk.js new file mode 100644 index 000000000..e51f1ee8d --- /dev/null +++ b/static/js/1600.005e0f6f.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1600],{81600:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});const r='syntax = "proto3";\nimport public "other.proto";\n\n/* SearchRequest represents a search query, with pagination options to\n * indicate which results to include in the response. */\n\nmessage SearchRequest {\n required string query = 1;\n optional int32 page_number = 2; // Which page number do we want?\n optional int32 result_per_page = 3; // Number of results to return per page.\n}\n'}}]); +//# sourceMappingURL=1600.005e0f6f.chunk.js.map \ No newline at end of file diff --git a/static/js/1600.005e0f6f.chunk.js.map b/static/js/1600.005e0f6f.chunk.js.map new file mode 100644 index 000000000..0f2a54f5f --- /dev/null +++ b/static/js/1600.005e0f6f.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1600.005e0f6f.chunk.js","mappings":"yHAAA,kZ","sources":["../../node_modules/code-example/txt/sample.proto.txt"],"sourcesContent":["export default \"syntax = \\\"proto3\\\";\\nimport public \\\"other.proto\\\";\\n\\n/* SearchRequest represents a search query, with pagination options to\\n * indicate which results to include in the response. */\\n\\nmessage SearchRequest {\\n required string query = 1;\\n optional int32 page_number = 2; // Which page number do we want?\\n optional int32 result_per_page = 3; // Number of results to return per page.\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1635.a164afbe.chunk.js b/static/js/1635.a164afbe.chunk.js new file mode 100644 index 000000000..cfd4ebe76 --- /dev/null +++ b/static/js/1635.a164afbe.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1635],{31635:(e,l,n)=>{n.r(l),n.d(l,{default:()=>t});const t='\n\n \n \n {% block title %}Welcome!{% endblock %}\n {% block stylesheets %}{% endblock %}\n \n \n {% block body %}{% endblock %}\n {% block javascripts %}{% endblock %}\n \n\n'}}]); +//# sourceMappingURL=1635.a164afbe.chunk.js.map \ No newline at end of file diff --git a/static/js/1635.a164afbe.chunk.js.map b/static/js/1635.a164afbe.chunk.js.map new file mode 100644 index 000000000..62f1d209e --- /dev/null +++ b/static/js/1635.a164afbe.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1635.a164afbe.chunk.js","mappings":"yHAAA,oU","sources":["../../node_modules/code-example/txt/sample.twig.txt"],"sourcesContent":["export default \"\\n\\n \\n \\n {% block title %}Welcome!{% endblock %}\\n {% block stylesheets %}{% endblock %}\\n \\n \\n {% block body %}{% endblock %}\\n {% block javascripts %}{% endblock %}\\n \\n\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1670.d5750e43.chunk.js b/static/js/1670.d5750e43.chunk.js new file mode 100644 index 000000000..13645211b --- /dev/null +++ b/static/js/1670.d5750e43.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1670],{81670:(t,e,o)=>{o.r(e),o.d(e,{abcdef:()=>J,abcdefInit:()=>g,abyss:()=>W,abyssInit:()=>I,androidstudio:()=>H,androidstudioInit:()=>M,atomone:()=>K,atomoneInit:()=>L,aura:()=>G,auraInit:()=>z,bbedit:()=>P,bbeditInit:()=>U,bespin:()=>Q,bespinInit:()=>V,darcula:()=>j,darculaInit:()=>X,defaultSettingsAbcdef:()=>l,defaultSettingsAbyss:()=>C,defaultSettingsAndroidstudio:()=>E,defaultSettingsAtomone:()=>Z,defaultSettingsAura:()=>q,defaultSettingsBbedit:()=>O,defaultSettingsBespin:()=>T,defaultSettingsDarcula:()=>R,defaultSettingsDracula:()=>Y,defaultSettingsDuotoneDark:()=>at,defaultSettingsDuotoneLight:()=>tt,defaultSettingsEclipse:()=>nt,defaultSettingsGithubDark:()=>st,defaultSettingsGithubLight:()=>gt,defaultSettingsGruvboxDark:()=>ft,defaultSettingsGruvboxLight:()=>ht,defaultSettingsKimbie:()=>Lt,defaultSettingsMaterial:()=>zt,defaultSettingsMaterialDark:()=>Gt,defaultSettingsMaterialLight:()=>Vt,defaultSettingsMonokai:()=>ie,defaultSettingsMonokaiDimmed:()=>Ce,defaultSettingsNoctisLilac:()=>Ee,defaultSettingsNord:()=>Ze,defaultSettingsOkaidia:()=>qe,defaultSettingsQuietlight:()=>ro,defaultSettingsRed:()=>Do,defaultSettingsSolarizedDark:()=>Uo,defaultSettingsSolarizedLight:()=>ca,defaultSettingsSublime:()=>Ja,defaultSettingsTokyoNight:()=>da,defaultSettingsTokyoNightDay:()=>Na,defaultSettingsTokyoNightStorm:()=>ua,defaultSettingsTomorrowNightBlue:()=>Ka,defaultSettingsVscodeDark:()=>Ga,defaultSettingsXcodeDark:()=>Qa,defaultSettingsXcodeLight:()=>Pa,dracula:()=>_,draculaInit:()=>$,duotoneDark:()=>pt,duotoneDarkInit:()=>rt,duotoneLight:()=>ot,duotoneLightInit:()=>et,eclipse:()=>lt,eclipseInit:()=>ct,githubDark:()=>mt,githubDarkInit:()=>dt,githubLight:()=>it,githubLightInit:()=>Jt,gruvboxDark:()=>bt,gruvboxDarkInit:()=>ut,gruvboxLight:()=>kt,gruvboxLightInit:()=>Nt,kimbie:()=>qt,kimbieInit:()=>Kt,material:()=>Tt,materialDark:()=>Pt,materialDarkInit:()=>Ut,materialInit:()=>Ot,materialLight:()=>Rt,materialLightInit:()=>Qt,monokai:()=>de,monokaiDimmed:()=>We,monokaiDimmedInit:()=>Ie,monokaiInit:()=>se,noctisLilac:()=>He,noctisLilacInit:()=>Me,nord:()=>Ke,nordInit:()=>Le,okaidia:()=>Ge,okaidiaInit:()=>ze,quietlight:()=>no,quietlightInit:()=>po,red:()=>Ao,redInit:()=>Bo,solarizedDark:()=>To,solarizedDarkInit:()=>Po,solarizedLight:()=>ga,solarizedLightInit:()=>la,sublime:()=>sa,sublimeInit:()=>ia,tokyoNight:()=>fa,tokyoNightDay:()=>ya,tokyoNightDayInit:()=>ka,tokyoNightInit:()=>ma,tokyoNightStorm:()=>ha,tokyoNightStormInit:()=>ba,tomorrowNightBlue:()=>za,tomorrowNightBlueInit:()=>qa,vscodeDark:()=>Ua,vscodeDarkInit:()=>Oa,xcodeDark:()=>Xa,xcodeDarkInit:()=>Ra,xcodeLight:()=>Va,xcodeLightInit:()=>Ta});var a=o(25773),r=o(60994),p=o(50389),n=o(94019),c=t=>{var{theme:e,settings:o={},styles:a=[]}=t,r={".cm-gutters":{}},c={};o.background&&(c.backgroundColor=o.background),o.foreground&&(c.color=o.foreground),(o.background||o.foreground)&&(r["&"]=c),o.fontFamily&&(r["&.cm-editor .cm-scroller"]={fontFamily:o.fontFamily}),o.gutterBackground&&(r[".cm-gutters"].backgroundColor=o.gutterBackground),o.gutterForeground&&(r[".cm-gutters"].color=o.gutterForeground),o.gutterBorder&&(r[".cm-gutters"].borderRightColor=o.gutterBorder),o.caret&&(r[".cm-content"]={caretColor:o.caret},r[".cm-cursor, .cm-dropCursor"]={borderLeftColor:o.caret});var l={};o.gutterActiveForeground&&(l.color=o.gutterActiveForeground),o.lineHighlight&&(r[".cm-activeLine"]={backgroundColor:o.lineHighlight},l.backgroundColor=o.lineHighlight),r[".cm-activeLineGutter"]=l,o.selection&&(r["&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:o.selection+" !important"}),o.selectionMatch&&(r["& .cm-selectionMatch"]={backgroundColor:o.selectionMatch});var g=p.tk.theme(r,{dark:"dark"===e}),J=n.Qf.define(a);return[g,(0,n.nF)(J)]};var l={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#314151"},g=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},l,o),styles:[{tag:r.pJ.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:r.pJ.atom,color:"#77F"},{tag:r.pJ.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:r.pJ.number,color:"violet"},{tag:r.pJ.definition(r.pJ.variableName),color:"#fffabc"},{tag:r.pJ.variableName,color:"#abcdef"},{tag:r.pJ.function(r.pJ.variableName),color:"#fffabc"},{tag:r.pJ.typeName,color:"#FFDD44"},{tag:r.pJ.tagName,color:"#def"},{tag:r.pJ.string,color:"#2b4"},{tag:r.pJ.meta,color:"#C9F"},{tag:r.pJ.bracket,color:"#8a8a8a"},{tag:r.pJ.attributeName,color:"#DDFF00"},{tag:r.pJ.heading,color:"aquamarine",fontWeight:"bold"},{tag:r.pJ.link,color:"blueviolet",fontWeight:"bold"},...p]})},J=g(),i="#000c18",s="#6688cc",d="#770811",m="#770811",f="#ddbb88",u="#082050",b="#225588",h="#2277ff",N="#9966b8",k="#22aa44",y="#f280d0",F="#9966b8",v="#ddbb88",D="#f280d0",B="#384887",A="#6688cc",S="#A22D44",x="#22aa44",w="#225588",C={background:i,foreground:s,caret:f,selection:d,selectionMatch:m,gutterBackground:i,gutterForeground:s,lineHighlight:u},I=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},C,o),styles:[{tag:r.pJ.keyword,color:b},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:h},{tag:[r.pJ.propertyName],color:N},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:k},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:N},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:y},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:h},{tag:[r.pJ.className],color:v},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:D},{tag:[r.pJ.typeName],color:F,fontStyle:F},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:b},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:x},{tag:[r.pJ.meta,r.pJ.comment],color:B},{tag:r.pJ.tagName,color:w},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:A},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:h},{tag:r.pJ.invalid,color:S},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},W=I(),E={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#343739",selectionMatch:"#343739",lineHighlight:"#343739"},M=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},E,o),styles:[{tag:[r.pJ.keyword,r.pJ.deleted,r.pJ.className],color:"#cc7832"},{tag:[r.pJ.number,r.pJ.literal,r.pJ.derefOperator],color:"#6897bb"},{tag:[r.pJ.link,r.pJ.variableName],color:"#629755"},{tag:[r.pJ.comment,r.pJ.quote],color:"grey"},{tag:[r.pJ.meta,r.pJ.documentMeta],color:"#bbb529"},{tag:[r.pJ.string,r.pJ.propertyName,r.pJ.attributeValue],color:"#6a8759"},{tag:[r.pJ.heading,r.pJ.typeName],color:"#ffc66d"},{tag:[r.pJ.attributeName],color:"#a9b7c6"},{tag:[r.pJ.emphasis],fontStyle:"italic"},...p]})},H=M(),Z={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#ffffff30",selectionMatch:"#2B323D",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2B323D"},L=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Z,o),styles:[{tag:[r.pJ.function(r.pJ.variableName),r.pJ.function(r.pJ.propertyName),r.pJ.url,r.pJ.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[r.pJ.tagName,r.pJ.heading],color:"#e06c75"},{tag:r.pJ.comment,color:"#54636D"},{tag:[r.pJ.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[r.pJ.attributeName,r.pJ.number],color:"hsl( 29, 54%, 61%)"},{tag:r.pJ.className,color:"hsl( 39, 67%, 69%)"},{tag:r.pJ.keyword,color:"hsl(286, 60%, 67%)"},{tag:[r.pJ.string,r.pJ.regexp,r.pJ.special(r.pJ.propertyName)],color:"#98c379"},...p]})},K=L(),q={background:"#21202e",foreground:"#edecee",caret:"#a277ff",selection:"#3d375e7f",selectionMatch:"#3d375e7f",gutterBackground:"#21202e",gutterForeground:"#edecee",gutterBorder:"transparent",lineHighlight:"#a394f033"},z=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},q,o),styles:[{tag:r.pJ.keyword,color:"#a277ff"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:"#edecee"},{tag:[r.pJ.propertyName],color:"#ffca85"},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:"#61ffca"},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:"#ffca85"},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:"#61ffca"},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:"#edecee"},{tag:[r.pJ.className],color:"#82e2ff"},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:"#61ffca"},{tag:[r.pJ.typeName],color:"#82e2ff"},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:"#a277ff"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:"#61ffca"},{tag:[r.pJ.meta,r.pJ.comment],color:"#6d6d6d"},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:"#a277ff"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#edecee"},{tag:r.pJ.invalid,color:"#ff6767"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},G=z(),O={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},U=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},O,o),styles:[{tag:[r.pJ.meta,r.pJ.comment],color:"#804000"},{tag:[r.pJ.keyword,r.pJ.strong],color:"#0000FF"},{tag:[r.pJ.number],color:"#FF0080"},{tag:[r.pJ.string],color:"#FF0080"},{tag:[r.pJ.variableName],color:"#006600"},{tag:[r.pJ.escape],color:"#33CC33"},{tag:[r.pJ.tagName],color:"#1C02FF"},{tag:[r.pJ.heading],color:"#0C07FF"},{tag:[r.pJ.quote],color:"#000000"},{tag:[r.pJ.list],color:"#B90690"},{tag:[r.pJ.documentMeta],color:"#888888"},{tag:[r.pJ.function(r.pJ.variableName)],color:"#0000A2"},{tag:[r.pJ.definition(r.pJ.typeName),r.pJ.typeName],color:"#6D79DE"},...p]})},P=U(),T={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#36312e",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"rgba(255, 255, 255, 0.1)"},V=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},T,o),styles:[{tag:[r.pJ.atom,r.pJ.number,r.pJ.link,r.pJ.bool],color:"#9b859d"},{tag:r.pJ.comment,color:"#937121"},{tag:[r.pJ.keyword,r.pJ.tagName],color:"#cf6a4c"},{tag:r.pJ.string,color:"#f9ee98"},{tag:r.pJ.bracket,color:"#9d9b97"},{tag:[r.pJ.variableName],color:"#5ea6ea"},{tag:r.pJ.definition(r.pJ.variableName),color:"#cf7d34"},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.className],color:"#cf7d34"},{tag:[r.pJ.propertyName,r.pJ.attributeName],color:"#54be0d"},...p]})},Q=V(),R={background:"#2B2B2B",foreground:"#f8f8f2",caret:"#FFFFFF",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"rgba(255, 255, 255, 0.1)",gutterForeground:"#999",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},X=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},R,o),styles:[{tag:[r.pJ.atom,r.pJ.number],color:"#bd93f9"},{tag:[r.pJ.comment],color:"#61A151"},{tag:[r.pJ.string],color:"#6A8759"},{tag:[r.pJ.variableName,r.pJ.operator],color:"#A9B7C6"},{tag:[r.pJ.meta,r.pJ.className],color:"#A9B7C6"},{tag:[r.pJ.propertyName],color:"#FFC66D"},{tag:[r.pJ.keyword],color:"#CC7832"},{tag:[r.pJ.tagName],color:"#ff79c6"},{tag:[r.pJ.typeName],color:"#ffb86c"},...p]})},j=X(),Y={background:"#282a36",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"#282a36",gutterForeground:"#6D8A88",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},$=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Y,o),styles:[{tag:r.pJ.comment,color:"#6272a4"},{tag:r.pJ.string,color:"#f1fa8c"},{tag:r.pJ.atom,color:"#bd93f9"},{tag:r.pJ.meta,color:"#f8f8f2"},{tag:[r.pJ.keyword,r.pJ.operator,r.pJ.tagName],color:"#ff79c6"},{tag:[r.pJ.function(r.pJ.propertyName),r.pJ.propertyName],color:"#66d9ef"},{tag:[r.pJ.definition(r.pJ.variableName),r.pJ.function(r.pJ.variableName),r.pJ.className,r.pJ.attributeName],color:"#50fa7b"},{tag:r.pJ.atom,color:"#bd93f9"},...p]})},_=$(),tt={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#EFEFEF"},et=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},tt,o),styles:[{tag:[r.pJ.comment,r.pJ.bracket],color:"#b6ad9a"},{tag:[r.pJ.atom,r.pJ.number,r.pJ.keyword,r.pJ.link,r.pJ.attributeName,r.pJ.quote],color:"#063289"},{tag:[r.pJ.emphasis,r.pJ.heading,r.pJ.tagName,r.pJ.propertyName,r.pJ.variableName],color:"#2d2006"},{tag:[r.pJ.typeName,r.pJ.url,r.pJ.string],color:"#896724"},{tag:[r.pJ.operator,r.pJ.string],color:"#1659df"},{tag:[r.pJ.propertyName],color:"#b29762"},{tag:[r.pJ.unit,r.pJ.punctuation],color:"#063289"},...p]})},ot=et(),at={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"rgba(255, 255, 255, 0.1)",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},rt=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},at,o),styles:[{tag:[r.pJ.comment,r.pJ.bracket],color:"#6c6783"},{tag:[r.pJ.atom,r.pJ.number,r.pJ.keyword,r.pJ.link,r.pJ.attributeName,r.pJ.quote],color:"#ffcc99"},{tag:[r.pJ.emphasis,r.pJ.heading,r.pJ.tagName,r.pJ.propertyName,r.pJ.className,r.pJ.variableName],color:"#eeebff"},{tag:[r.pJ.typeName,r.pJ.url],color:"#7a63ee"},{tag:r.pJ.operator,color:"#ffad5c"},{tag:r.pJ.string,color:"#ffb870"},{tag:[r.pJ.propertyName],color:"#9a86fd"},{tag:[r.pJ.unit,r.pJ.punctuation],color:"#e09142"},...p]})},pt=rt(),nt={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#e8f2ff",gutterBorder:"transparent"},ct=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},nt,o),styles:[{tag:[r.pJ.comment],color:"#3F7F5F"},{tag:[r.pJ.documentMeta],color:"#FF1717"},{tag:r.pJ.keyword,color:"#7F0055",fontWeight:"bold"},{tag:r.pJ.atom,color:"#00f"},{tag:r.pJ.number,color:"#164"},{tag:r.pJ.propertyName,color:"#164"},{tag:[r.pJ.variableName,r.pJ.definition(r.pJ.variableName)],color:"#0000C0"},{tag:r.pJ.function(r.pJ.variableName),color:"#0000C0"},{tag:r.pJ.string,color:"#2A00FF"},{tag:r.pJ.operator,color:"black"},{tag:r.pJ.tagName,color:"#170"},{tag:r.pJ.attributeName,color:"#00c"},{tag:r.pJ.link,color:"#219"},...p]})},lt=ct(),gt={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},Jt=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},gt,o),styles:[{tag:[r.pJ.standard(r.pJ.tagName),r.pJ.tagName],color:"#116329"},{tag:[r.pJ.comment,r.pJ.bracket],color:"#6a737d"},{tag:[r.pJ.className,r.pJ.propertyName],color:"#6f42c1"},{tag:[r.pJ.variableName,r.pJ.attributeName,r.pJ.number,r.pJ.operator],color:"#005cc5"},{tag:[r.pJ.keyword,r.pJ.typeName,r.pJ.typeOperator,r.pJ.typeName],color:"#d73a49"},{tag:[r.pJ.string,r.pJ.meta,r.pJ.regexp],color:"#032f62"},{tag:[r.pJ.name,r.pJ.quote],color:"#22863a"},{tag:[r.pJ.heading],color:"#24292e",fontWeight:"bold"},{tag:[r.pJ.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[r.pJ.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#e36209"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:"#032f62"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},{tag:r.pJ.invalid,color:"#cb2431"},...p]})},it=Jt(),st={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},dt=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},st,o),styles:[{tag:[r.pJ.standard(r.pJ.tagName),r.pJ.tagName],color:"#7ee787"},{tag:[r.pJ.comment,r.pJ.bracket],color:"#8b949e"},{tag:[r.pJ.className,r.pJ.propertyName],color:"#d2a8ff"},{tag:[r.pJ.variableName,r.pJ.attributeName,r.pJ.number,r.pJ.operator],color:"#79c0ff"},{tag:[r.pJ.keyword,r.pJ.typeName,r.pJ.typeOperator,r.pJ.typeName],color:"#ff7b72"},{tag:[r.pJ.string,r.pJ.meta,r.pJ.regexp],color:"#a5d6ff"},{tag:[r.pJ.name,r.pJ.quote],color:"#7ee787"},{tag:[r.pJ.heading],color:"#d2a8ff",fontWeight:"bold"},{tag:[r.pJ.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[r.pJ.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#ffab70"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},{tag:r.pJ.invalid,color:"#f97583"},...p]})},mt=dt(),ft={background:"#282828",foreground:"#ebdbb2",caret:"#ebdbb2",selection:"#bdae93",selectionMatch:"#bdae93",lineHighlight:"#3c3836",gutterBackground:"#282828",gutterForeground:"#7c6f64"},ut=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},ft,o),styles:[{tag:r.pJ.keyword,color:"#fb4934"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.propertyName,r.pJ.macroName],color:"#8ec07c"},{tag:[r.pJ.variableName],color:"#83a598"},{tag:[r.pJ.function(r.pJ.variableName)],color:"#b8bb26",fontStyle:"bold"},{tag:[r.pJ.labelName],color:"#ebdbb2"},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:"#d3869b"},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:"#ebdbb2"},{tag:[r.pJ.brace],color:"#ebdbb2"},{tag:[r.pJ.annotation],color:"#fb4934d"},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:"#d3869b"},{tag:[r.pJ.typeName,r.pJ.className],color:"#fabd2f"},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:"#fb4934"},{tag:[r.pJ.tagName],color:"#8ec07c",fontStyle:"bold"},{tag:[r.pJ.squareBracket],color:"#fe8019"},{tag:[r.pJ.angleBracket],color:"#83a598"},{tag:[r.pJ.attributeName],color:"#8ec07c"},{tag:[r.pJ.regexp],color:"#8ec07c"},{tag:[r.pJ.quote],color:"#928374"},{tag:[r.pJ.string],color:"#ebdbb2"},{tag:r.pJ.link,color:"#a89984",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.special(r.pJ.string)],color:"#d3869b"},{tag:[r.pJ.meta],color:"#fabd2f"},{tag:[r.pJ.comment],color:"#928374",fontStyle:"italic"},{tag:r.pJ.strong,fontWeight:"bold",color:"#fe8019"},{tag:r.pJ.emphasis,fontStyle:"italic",color:"#b8bb26"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},{tag:r.pJ.heading,fontWeight:"bold",color:"#b8bb26"},{tag:[r.pJ.heading1,r.pJ.heading2],fontWeight:"bold",color:"#b8bb26"},{tag:[r.pJ.heading3,r.pJ.heading4],fontWeight:"bold",color:"#fabd2f"},{tag:[r.pJ.heading5,r.pJ.heading6],color:"#fabd2f"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#d3869b"},{tag:[r.pJ.processingInstruction,r.pJ.inserted],color:"#83a598"},{tag:[r.pJ.contentSeparator],color:"#fb4934"},{tag:r.pJ.invalid,color:"#fe8019",borderBottom:"1px dotted #fb4934d"},...p]})},bt=ut(),ht={background:"#fbf1c7",foreground:"#3c3836",caret:"#af3a03",selection:"#ebdbb2",selectionMatch:"#bdae93",lineHighlight:"#ebdbb2",gutterBackground:"#ebdbb2",gutterForeground:"#665c54",gutterBorder:"transparent"},Nt=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},ht,o),styles:[{tag:r.pJ.keyword,color:"#9d0006"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.propertyName,r.pJ.macroName],color:"#427b58"},{tag:[r.pJ.variableName],color:"#076678"},{tag:[r.pJ.function(r.pJ.variableName)],color:"#79740e",fontStyle:"bold"},{tag:[r.pJ.labelName],color:"#3c3836"},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:"#8f3f71"},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:"#3c3836"},{tag:[r.pJ.brace],color:"#3c3836"},{tag:[r.pJ.annotation],color:"#9d0006"},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:"#8f3f71"},{tag:[r.pJ.typeName,r.pJ.className],color:"#b57614"},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:"#9d0006"},{tag:[r.pJ.tagName],color:"#427b58",fontStyle:"bold"},{tag:[r.pJ.squareBracket],color:"#af3a03"},{tag:[r.pJ.angleBracket],color:"#076678"},{tag:[r.pJ.attributeName],color:"#427b58"},{tag:[r.pJ.regexp],color:"#427b58"},{tag:[r.pJ.quote],color:"#928374"},{tag:[r.pJ.string],color:"#3c3836"},{tag:r.pJ.link,color:"#7c6f64",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.special(r.pJ.string)],color:"#8f3f71"},{tag:[r.pJ.meta],color:"#b57614"},{tag:[r.pJ.comment],color:"#928374",fontStyle:"italic"},{tag:r.pJ.strong,fontWeight:"bold",color:"#af3a03"},{tag:r.pJ.emphasis,fontStyle:"italic",color:"#79740e"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},{tag:r.pJ.heading,fontWeight:"bold",color:"#79740e"},{tag:[r.pJ.heading1,r.pJ.heading2],fontWeight:"bold",color:"#79740e"},{tag:[r.pJ.heading3,r.pJ.heading4],fontWeight:"bold",color:"#b57614"},{tag:[r.pJ.heading5,r.pJ.heading6],color:"#b57614"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#8f3f71"},{tag:[r.pJ.processingInstruction,r.pJ.inserted],color:"#076678"},{tag:[r.pJ.contentSeparator],color:"#9d0006"},{tag:r.pJ.invalid,color:"#af3a03",borderBottom:"1px dotted #9d0006"},...p]})},kt=Nt(),yt="#221a0f",Ft="#d3af86",vt="#84613daa",Dt="#98676a",Bt="#dc3958",At="#7e602c",St="#889b4a",xt="#f79a32",wt="#f06431",Ct="#f06431",It="#f79a32",Wt="#a57a4c",Et="#8ab1b0",Mt="#dc3958",Ht="#7e602c",Zt="#dc3958",Lt={background:yt,foreground:Ft,caret:"#d3af86",selection:vt,selectionMatch:vt,gutterBackground:yt,gutterForeground:Ft,lineHighlight:"#5e452b"},Kt=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Lt,o),styles:[{tag:r.pJ.keyword,color:Dt},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:Bt},{tag:[r.pJ.propertyName],color:At},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:St},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:At},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:xt},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:Bt},{tag:[r.pJ.className],color:Ct},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:It},{tag:[r.pJ.typeName],color:wt,fontStyle:wt},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:Dt},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:Ht},{tag:[r.pJ.meta,r.pJ.comment],color:Wt},{tag:r.pJ.tagName,color:Zt},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:Et},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:Bt},{tag:r.pJ.invalid,color:Mt},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},qt=Kt(),zt={background:"#2e3235",foreground:"#bdbdbd",caret:"#a0a4ae",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#2e3235",gutterForeground:"#999",gutterActiveForeground:"#4f5b66",lineHighlight:"#545b61"},Gt=zt,Ot=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},zt,o),styles:[{tag:r.pJ.keyword,color:"#cf6edf"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:"#56c8d8"},{tag:[r.pJ.propertyName],color:"#facf4e"},{tag:[r.pJ.variableName],color:"#bdbdbd"},{tag:[r.pJ.function(r.pJ.variableName)],color:"#56c8d8"},{tag:[r.pJ.labelName],color:"#cf6edf"},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:"#facf4e"},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:"#fa5788"},{tag:[r.pJ.brace],color:"#cf6edf"},{tag:[r.pJ.annotation],color:"#ff5f52"},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:"#ffad42"},{tag:[r.pJ.typeName,r.pJ.className],color:"#ffad42"},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:"#7186f0"},{tag:[r.pJ.tagName],color:"#99d066"},{tag:[r.pJ.squareBracket],color:"#ff5f52"},{tag:[r.pJ.angleBracket],color:"#606f7a"},{tag:[r.pJ.attributeName],color:"#bdbdbd"},{tag:[r.pJ.regexp],color:"#ff5f52"},{tag:[r.pJ.quote],color:"#6abf69"},{tag:[r.pJ.string],color:"#99d066"},{tag:r.pJ.link,color:"#56c8d8",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.special(r.pJ.string)],color:"#facf4e"},{tag:[r.pJ.meta],color:"#707d8b"},{tag:[r.pJ.comment],color:"#707d8b",fontStyle:"italic"},{tag:r.pJ.monospace,color:"#bdbdbd"},{tag:r.pJ.strong,fontWeight:"bold",color:"#ff5f52"},{tag:r.pJ.emphasis,fontStyle:"italic",color:"#99d066"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},{tag:r.pJ.heading,fontWeight:"bold",color:"#facf4e"},{tag:r.pJ.heading1,fontWeight:"bold",color:"#facf4e"},{tag:[r.pJ.heading2,r.pJ.heading3,r.pJ.heading4],fontWeight:"bold",color:"#facf4e"},{tag:[r.pJ.heading5,r.pJ.heading6],color:"#facf4e"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#56c8d8"},{tag:[r.pJ.processingInstruction,r.pJ.inserted],color:"#ff5f52"},{tag:[r.pJ.contentSeparator],color:"#56c8d8"},{tag:r.pJ.invalid,color:"#606f7a",borderBottom:"1px dotted #ff5f52"},...p]})},Ut=Ot,Pt=Ot(),Tt=Ot(),Vt={background:"#FAFAFA",foreground:"#90A4AE",caret:"#272727",selection:"#80CBC440",selectionMatch:"#FAFAFA",gutterBackground:"#FAFAFA",gutterForeground:"#90A4AE",gutterBorder:"transparent",lineHighlight:"#CCD7DA50"},Qt=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Vt,o),styles:[{tag:r.pJ.keyword,color:"#39ADB5"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:"#90A4AE"},{tag:[r.pJ.propertyName],color:"#6182B8"},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:"#91B859"},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:"#6182B8"},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:"#39ADB5"},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:"#90A4AE"},{tag:[r.pJ.className],color:"#E2931D"},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:"#F76D47"},{tag:[r.pJ.typeName],color:"#E2931D",fontStyle:"#E2931D"},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:"#39ADB5"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:"#91B859"},{tag:[r.pJ.meta,r.pJ.comment],color:"#90A4AE"},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:"#39ADB5"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#90A4AE"},{tag:r.pJ.invalid,color:"#E5393570"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},Rt=Qt(),Xt="#272822",jt="#f8f8f2",Yt="#4a4a7680",$t="#F92672",_t="#FD971F",te="#66D9EF",ee="#E6DB74",oe="#AE81FF",ae="#66D9EF",re="#A6E22E",pe="#AE81FF",ne="#88846f",ce="#A6E22E",le="#F44747",ge="#E6DB74",Je="#F92672",ie={background:Xt,foreground:jt,caret:"#f8f8f0",selection:Yt,selectionMatch:Yt,gutterBackground:Xt,gutterForeground:jt,lineHighlight:"#3e3d32"},se=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},ie,o),styles:[{tag:r.pJ.keyword,color:$t},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:_t},{tag:[r.pJ.propertyName],color:te},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:ee},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:te},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:oe},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:_t},{tag:[r.pJ.className],color:re},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:pe},{tag:[r.pJ.typeName],color:ae,fontStyle:ae},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:$t},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:ge},{tag:[r.pJ.meta,r.pJ.comment],color:ne},{tag:r.pJ.tagName,color:Je},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:ce},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:_t},{tag:r.pJ.invalid,color:le},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},de=se(),me="#1e1e1e",fe="#c5c8c6",ue="#4747a180",be="#676867",he="#c7444a",Ne="#9872A2",ke="#D08442",ye="#8080FF",Fe="#9B0000",ve="#CE6700",De="#6089B4",Be="#9A9B99",Ae="#D0B344",Se="#FF0B00",xe="#D08442",we="#6089B4",Ce={background:me,foreground:fe,caret:"#c07020",selection:ue,selectionMatch:ue,gutterBackground:me,gutterForeground:fe,lineHighlight:"#303030"},Ie=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Ce,o),styles:[{tag:r.pJ.keyword,color:be},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:he},{tag:[r.pJ.propertyName],color:Ne},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:ke},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:Ne},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:ye},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:he},{tag:[r.pJ.className],color:ve},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:De},{tag:[r.pJ.typeName],color:Fe,fontStyle:Fe},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:be},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:xe},{tag:[r.pJ.meta,r.pJ.comment],color:Be},{tag:r.pJ.tagName,color:we},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:Ae},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:he},{tag:r.pJ.invalid,color:Se},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},We=Ie(),Ee={background:"#f2f1f8",foreground:"#0c006b",caret:"#5c49e9",selection:"#d5d1f2",selectionMatch:"#d5d1f2",gutterBackground:"#f2f1f8",gutterForeground:"#0c006b70",lineHighlight:"#e1def3"},Me=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Ee,o),styles:[{tag:r.pJ.comment,color:"#9995b7"},{tag:r.pJ.keyword,color:"#ff5792",fontWeight:"bold"},{tag:[r.pJ.definitionKeyword,r.pJ.modifier],color:"#ff5792"},{tag:[r.pJ.className,r.pJ.tagName,r.pJ.definition(r.pJ.typeName)],color:"#0094f0"},{tag:[r.pJ.number,r.pJ.bool,r.pJ.null,r.pJ.special(r.pJ.brace)],color:"#5842ff"},{tag:[r.pJ.definition(r.pJ.propertyName),r.pJ.function(r.pJ.variableName)],color:"#0095a8"},{tag:r.pJ.typeName,color:"#b3694d"},{tag:[r.pJ.propertyName,r.pJ.variableName],color:"#fa8900"},{tag:r.pJ.operator,color:"#ff5792"},{tag:r.pJ.self,color:"#e64100"},{tag:[r.pJ.string,r.pJ.regexp],color:"#00b368"},{tag:[r.pJ.paren,r.pJ.bracket],color:"#0431fa"},{tag:r.pJ.labelName,color:"#00bdd6"},{tag:r.pJ.attributeName,color:"#e64100"},{tag:r.pJ.angleBracket,color:"#9995b7"},...p]})},He=Me(),Ze={background:"#2e3440",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#3b4252",selectionMatch:"#e5e9f0",gutterBackground:"#2e3440",gutterForeground:"#4c566a",gutterActiveForeground:"#d8dee9",lineHighlight:"#4c566a"},Le=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Ze,o),styles:[{tag:r.pJ.keyword,color:"#5e81ac"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.propertyName,r.pJ.macroName],color:"#88c0d0"},{tag:[r.pJ.variableName],color:"#8fbcbb"},{tag:[r.pJ.function(r.pJ.variableName)],color:"#8fbcbb"},{tag:[r.pJ.labelName],color:"#81a1c1"},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:"#5e81ac"},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:"#a3be8c"},{tag:[r.pJ.brace],color:"#8fbcbb"},{tag:[r.pJ.annotation],color:"#d30102"},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:"#b48ead"},{tag:[r.pJ.typeName,r.pJ.className],color:"#ebcb8b"},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:"#a3be8c"},{tag:[r.pJ.tagName],color:"#b48ead"},{tag:[r.pJ.squareBracket],color:"#bf616a"},{tag:[r.pJ.angleBracket],color:"#d08770"},{tag:[r.pJ.attributeName],color:"#ebcb8b"},{tag:[r.pJ.regexp],color:"#5e81ac"},{tag:[r.pJ.quote],color:"#b48ead"},{tag:[r.pJ.string],color:"#a3be8c"},{tag:r.pJ.link,color:"#a3be8c",textDecoration:"underline",textUnderlinePosition:"under"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.special(r.pJ.string)],color:"#8fbcbb"},{tag:[r.pJ.meta],color:"#88c0d0"},{tag:[r.pJ.monospace],color:"#d8dee9",fontStyle:"italic"},{tag:[r.pJ.comment],color:"#4c566a",fontStyle:"italic"},{tag:r.pJ.strong,fontWeight:"bold",color:"#5e81ac"},{tag:r.pJ.emphasis,fontStyle:"italic",color:"#5e81ac"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},{tag:r.pJ.heading,fontWeight:"bold",color:"#5e81ac"},{tag:r.pJ.special(r.pJ.heading1),fontWeight:"bold",color:"#5e81ac"},{tag:r.pJ.heading1,fontWeight:"bold",color:"#5e81ac"},{tag:[r.pJ.heading2,r.pJ.heading3,r.pJ.heading4],fontWeight:"bold",color:"#5e81ac"},{tag:[r.pJ.heading5,r.pJ.heading6],color:"#5e81ac"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#d08770"},{tag:[r.pJ.processingInstruction,r.pJ.inserted],color:"#8fbcbb"},{tag:[r.pJ.contentSeparator],color:"#ebcb8b"},{tag:r.pJ.invalid,color:"#434c5e",borderBottom:"1px dotted #d30102"},...p]})},Ke=Le(),qe={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},ze=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},qe,o),styles:[{tag:[r.pJ.comment,r.pJ.documentMeta],color:"#8292a2"},{tag:[r.pJ.number,r.pJ.bool,r.pJ.null,r.pJ.atom],color:"#ae81ff"},{tag:[r.pJ.attributeValue,r.pJ.className,r.pJ.name],color:"#e6db74"},{tag:[r.pJ.propertyName,r.pJ.attributeName],color:"#a6e22e"},{tag:[r.pJ.variableName],color:"#9effff"},{tag:[r.pJ.squareBracket],color:"#bababa"},{tag:[r.pJ.string,r.pJ.special(r.pJ.brace)],color:"#e6db74"},{tag:[r.pJ.regexp,r.pJ.className,r.pJ.typeName,r.pJ.definition(r.pJ.typeName)],color:"#66d9ef"},{tag:[r.pJ.definition(r.pJ.variableName),r.pJ.definition(r.pJ.propertyName),r.pJ.function(r.pJ.variableName)],color:"#fd971f"},{tag:[r.pJ.keyword,r.pJ.definitionKeyword,r.pJ.modifier,r.pJ.tagName,r.pJ.angleBracket],color:"#f92672"},...p]})},Ge=ze(),Oe="#F5F5F5",Ue="#333333",Pe="#C9D0D9",Te="#4B69C6",Ve="#7A3E9D",Qe="#AA3731",Re="#448C27",Xe="#9C5D27",je="#7A3E9D",Ye="#AA3731",$e="#9C5D27",_e="#AAAAAA",to="#AA3731",eo="#cd3131",oo="#4B69C6",ao="#4B69C6",ro={background:Oe,foreground:Ue,caret:"#54494B",selection:Pe,selectionMatch:Pe,gutterBackground:Oe,gutterForeground:Ue,gutterBorder:"transparent",lineHighlight:"#E4F6D4"},po=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},ro,o),styles:[{tag:r.pJ.keyword,color:Te},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:Ve},{tag:[r.pJ.propertyName],color:Qe},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:Re},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:Qe},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:Xe},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:Ve},{tag:[r.pJ.className],color:Ye},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:$e},{tag:[r.pJ.typeName],color:je,fontStyle:je},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:Te},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:oo},{tag:[r.pJ.meta,r.pJ.comment],color:_e},{tag:r.pJ.tagName,color:ao},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:to},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:Ve},{tag:r.pJ.invalid,color:eo},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},no=po(),co="#390000",lo="#F8F8F8",go="#750000",Jo="#f12727ff",io="#edef7dff",so="#ffb454ff",mo="#edef7dff",fo="#ec0d1e",uo="#9df39fff",bo="#fec758ff",ho="#994646ff",No="#e7c0c0ff",ko="#fec758ff",yo="#ffffffff",Fo="#edef7dff",vo="#aa5507ff",Do={background:co,foreground:lo,caret:"#970000",selection:go,selectionMatch:go,gutterBackground:co,gutterForeground:lo,lineHighlight:"#ff000033"},Bo=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Do,o),styles:[{tag:r.pJ.keyword,color:Jo},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:io},{tag:[r.pJ.propertyName],color:so},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:mo},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:so},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:fo},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:io},{tag:[r.pJ.className],color:bo},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:ho},{tag:[r.pJ.typeName],color:uo,fontStyle:uo},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:Jo},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:Fo},{tag:[r.pJ.meta,r.pJ.comment],color:No},{tag:r.pJ.tagName,color:vo},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:ko},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:io},{tag:r.pJ.invalid,color:yo},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},Ao=Bo(),So="#002B36",xo="#839496",wo="#004454AA",Co="#859900",Io="#268BD2",Wo="#268BD2",Eo="#2AA198",Mo="#CB4B16",Ho="#859900",Zo="#268BD2",Lo="#D33682",Ko="#586E75",qo="#268BD2",zo="#DC322F",Go="#DC322F",Oo="#268BD2",Uo={background:So,foreground:xo,caret:"#D30102",selection:wo,selectionMatch:wo,gutterBackground:So,gutterForeground:xo,gutterBorder:"transparent",lineHighlight:"#073642"},Po=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Uo,o),styles:[{tag:r.pJ.keyword,color:Co},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:Io},{tag:[r.pJ.propertyName],color:Wo},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:Eo},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:Wo},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:Mo},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:Io},{tag:[r.pJ.className],color:Zo},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:Lo},{tag:[r.pJ.typeName],color:Ho,fontStyle:Ho},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:Co},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:Go},{tag:[r.pJ.meta,r.pJ.comment],color:Ko},{tag:r.pJ.tagName,color:Oo},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:qo},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:Io},{tag:r.pJ.invalid,color:zo},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},To=Po(),Vo="#FDF6E3",Qo="#657B83",Ro="#859900",Xo="#268BD2",jo="#268BD2",Yo="#2AA198",$o="#CB4B16",_o="#859900",ta="#268BD2",ea="#D33682",oa="#93A1A1",aa="#268BD2",ra="#DC322F",pa="#DC322F",na="#268BD2",ca={background:Vo,foreground:Qo,caret:"#657B83",selection:"#EEE8D5",selectionMatch:"#EEE8D5",gutterBackground:Vo,gutterForeground:Qo,gutterBorder:"transparent",lineHighlight:"#EEE8D5"},la=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},ca,o),styles:[{tag:r.pJ.keyword,color:Ro},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:Xo},{tag:[r.pJ.propertyName],color:jo},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:Yo},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:jo},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:$o},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:Xo},{tag:[r.pJ.className],color:ta},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:ea},{tag:[r.pJ.typeName],color:_o,fontStyle:_o},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:Ro},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:pa},{tag:[r.pJ.meta,r.pJ.comment],color:oa},{tag:r.pJ.tagName,color:na},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:aa},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:Xo},{tag:r.pJ.invalid,color:ra},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},ga=la(),Ja={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"};function ia(t){var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Ja,o),styles:[{tag:[r.pJ.meta,r.pJ.comment],color:"#A2A9B5"},{tag:[r.pJ.attributeName,r.pJ.keyword],color:"#B78FBA"},{tag:r.pJ.function(r.pJ.variableName),color:"#5AB0B0"},{tag:[r.pJ.string,r.pJ.regexp,r.pJ.attributeValue],color:"#99C592"},{tag:r.pJ.operator,color:"#f47954"},{tag:[r.pJ.tagName,r.pJ.modifier],color:"#E35F63"},{tag:[r.pJ.number,r.pJ.definition(r.pJ.tagName),r.pJ.className,r.pJ.definition(r.pJ.variableName)],color:"#fbac52"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#E35F63"},{tag:r.pJ.variableName,color:"#539ac4"},{tag:[r.pJ.propertyName,r.pJ.typeName],color:"#629ccd"},{tag:r.pJ.propertyName,color:"#36b7b5"},...p]})}var sa=ia(),da={background:"#1a1b26",foreground:"#787c99",caret:"#c0caf5",selection:"#515c7e40",selectionMatch:"#16161e",gutterBackground:"#1a1b26",gutterForeground:"#787c99",gutterBorder:"transparent",lineHighlight:"#1e202e"},ma=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},da,o),styles:[{tag:r.pJ.keyword,color:"#bb9af7"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:"#c0caf5"},{tag:[r.pJ.propertyName],color:"#7aa2f7"},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:"#9ece6a"},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:"#7aa2f7"},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:"#bb9af7"},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:"#c0caf5"},{tag:[r.pJ.className],color:"#c0caf5"},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:"#ff9e64"},{tag:[r.pJ.typeName],color:"#0db9d7"},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:"#bb9af7"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:"#b4f9f8"},{tag:[r.pJ.meta,r.pJ.comment],color:"#444b6a"},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:"#89ddff"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#c0caf5"},{tag:r.pJ.invalid,color:"#ff5370"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},fa=ma(),ua={background:"#24283b",foreground:"#7982a9",caret:"#c0caf5",selection:"#6f7bb630",selectionMatch:"#1f2335",gutterBackground:"#24283b",gutterForeground:"#7982a9",gutterBorder:"transparent",lineHighlight:"#292e42"},ba=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},ua,o),styles:[{tag:r.pJ.keyword,color:"#bb9af7"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:"#c0caf5"},{tag:[r.pJ.propertyName],color:"#7aa2f7"},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:"#9ece6a"},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:"#7aa2f7"},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:"#bb9af7"},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:"#c0caf5"},{tag:[r.pJ.className],color:"#c0caf5"},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:"#ff9e64"},{tag:[r.pJ.typeName],color:"#2ac3de",fontStyle:"#2ac3de"},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:"#bb9af7"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:"#b4f9f8"},{tag:[r.pJ.meta,r.pJ.comment],color:"#565f89"},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:"#89ddff"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#c0caf5"},{tag:r.pJ.invalid,color:"#ff5370"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},ha=ba(),Na={background:"#e1e2e7",foreground:"#3760bf",caret:"#3760bf",selection:"#99a7df",selectionMatch:"#99a7df",gutterBackground:"#e1e2e7",gutterForeground:"#3760bf",gutterBorder:"transparent",lineHighlight:"#5f5faf11"},ka=t=>{var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Na,o),styles:[{tag:r.pJ.keyword,color:"#007197"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:"#3760bf"},{tag:[r.pJ.propertyName],color:"#3760bf"},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:"#587539"},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:"#3760bf"},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:"#3760bf"},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:"#3760bf"},{tag:[r.pJ.className],color:"#3760bf"},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:"#b15c00"},{tag:[r.pJ.typeName],color:"#007197",fontStyle:"#007197"},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:"#007197"},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:"#587539"},{tag:[r.pJ.meta,r.pJ.comment],color:"#848cb5"},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:"#b15c00"},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#3760bf"},{tag:r.pJ.invalid,color:"#f52a65"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},ya=ka(),Fa="#002451",va="#ffffff",Da="#003f8e",Ba="#EBBBFF",Aa="#FFC58F",Sa="#BBDAFF",xa="#D1F1A9",wa="#FFC58F",Ca="#FFEEAD",Ia="#BBDAFF",Wa="#FFC58F",Ea="#7285B7",Ma="#D1F1A9",Ha="#a92049",Za="#D1F1A9",La="#FF9DA4",Ka={background:Fa,foreground:va,caret:"#ffffff",selection:Da,selectionMatch:Da,gutterBackground:Fa,gutterForeground:va,lineHighlight:"#00346e"},qa=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Ka,o),styles:[{tag:r.pJ.keyword,color:Ba},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName],color:Aa},{tag:[r.pJ.propertyName],color:Sa},{tag:[r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted,r.pJ.special(r.pJ.string)],color:xa},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.labelName],color:Sa},{tag:[r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name)],color:wa},{tag:[r.pJ.definition(r.pJ.name),r.pJ.separator],color:Aa},{tag:[r.pJ.className],color:Ia},{tag:[r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.modifier,r.pJ.self,r.pJ.namespace],color:Wa},{tag:[r.pJ.typeName],color:Ca,fontStyle:Ca},{tag:[r.pJ.operator,r.pJ.operatorKeyword],color:Ba},{tag:[r.pJ.url,r.pJ.escape,r.pJ.regexp,r.pJ.link],color:Za},{tag:[r.pJ.meta,r.pJ.comment],color:Ea},{tag:r.pJ.tagName,color:La},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.link,textDecoration:"underline"},{tag:r.pJ.heading,fontWeight:"bold",color:Ma},{tag:[r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:Aa},{tag:r.pJ.invalid,color:Ha},{tag:r.pJ.strikethrough,textDecoration:"line-through"},...p]})},za=qa(),Ga={background:"#1e1e1e",foreground:"#9cdcfe",caret:"#c6c6c6",selection:"#6199ff2f",selectionMatch:"#72a1ff59",lineHighlight:"#ffffff0f",gutterBackground:"#1e1e1e",gutterForeground:"#838383",gutterActiveForeground:"#fff",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace'};function Oa(t){var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Ga,o),styles:[{tag:[r.pJ.keyword,r.pJ.operatorKeyword,r.pJ.modifier,r.pJ.color,r.pJ.constant(r.pJ.name),r.pJ.standard(r.pJ.name),r.pJ.standard(r.pJ.tagName),r.pJ.special(r.pJ.brace),r.pJ.atom,r.pJ.bool,r.pJ.special(r.pJ.variableName)],color:"#569cd6"},{tag:[r.pJ.controlKeyword,r.pJ.moduleKeyword],color:"#c586c0"},{tag:[r.pJ.name,r.pJ.deleted,r.pJ.character,r.pJ.macroName,r.pJ.propertyName,r.pJ.variableName,r.pJ.labelName,r.pJ.definition(r.pJ.name)],color:"#9cdcfe"},{tag:r.pJ.heading,fontWeight:"bold",color:"#9cdcfe"},{tag:[r.pJ.typeName,r.pJ.className,r.pJ.tagName,r.pJ.number,r.pJ.changed,r.pJ.annotation,r.pJ.self,r.pJ.namespace],color:"#4ec9b0"},{tag:[r.pJ.function(r.pJ.variableName),r.pJ.function(r.pJ.propertyName)],color:"#dcdcaa"},{tag:[r.pJ.number],color:"#b5cea8"},{tag:[r.pJ.operator,r.pJ.punctuation,r.pJ.separator,r.pJ.url,r.pJ.escape,r.pJ.regexp],color:"#d4d4d4"},{tag:[r.pJ.regexp],color:"#d16969"},{tag:[r.pJ.special(r.pJ.string),r.pJ.processingInstruction,r.pJ.string,r.pJ.inserted],color:"#ce9178"},{tag:[r.pJ.angleBracket],color:"#808080"},{tag:r.pJ.strong,fontWeight:"bold"},{tag:r.pJ.emphasis,fontStyle:"italic"},{tag:r.pJ.strikethrough,textDecoration:"line-through"},{tag:[r.pJ.meta,r.pJ.comment],color:"#6a9955"},{tag:r.pJ.link,color:"#6a9955",textDecoration:"underline"},{tag:r.pJ.invalid,color:"#ff0000"},...p]})}var Ua=Oa(),Pa={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#EDF4FF"};function Ta(t){var{theme:e="light",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Pa,o),styles:[{tag:[r.pJ.comment,r.pJ.quote],color:"#707F8D"},{tag:[r.pJ.typeName,r.pJ.typeOperator],color:"#aa0d91"},{tag:[r.pJ.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[r.pJ.string,r.pJ.meta],color:"#D23423"},{tag:[r.pJ.name],color:"#032f62"},{tag:[r.pJ.typeName],color:"#522BB2"},{tag:[r.pJ.variableName],color:"#23575C"},{tag:[r.pJ.definition(r.pJ.variableName)],color:"#327A9E"},{tag:[r.pJ.regexp,r.pJ.link],color:"#0e0eff"},...p]})}var Va=Ta(),Qa={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#2F3239"},Ra=t=>{var{theme:e="dark",settings:o={},styles:p=[]}=t||{};return c({theme:e,settings:(0,a.Z)({},Qa,o),styles:[{tag:[r.pJ.comment,r.pJ.quote],color:"#7F8C98"},{tag:[r.pJ.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[r.pJ.string,r.pJ.meta],color:"#FF8170"},{tag:[r.pJ.typeName],color:"#DABAFF"},{tag:[r.pJ.definition(r.pJ.variableName)],color:"#6BDFFF"},{tag:[r.pJ.name],color:"#6BAA9F"},{tag:[r.pJ.variableName],color:"#ACF2E4"},{tag:[r.pJ.regexp,r.pJ.link],color:"#FF8170"},...p]})},Xa=Ra()}}]); +//# sourceMappingURL=1670.d5750e43.chunk.js.map \ No newline at end of file diff --git a/static/js/1670.d5750e43.chunk.js.map b/static/js/1670.d5750e43.chunk.js.map new file mode 100644 index 000000000..eb6be7d5f --- /dev/null +++ b/static/js/1670.d5750e43.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1670.d5750e43.chunk.js","mappings":"wsFAEWA,EAAcC,IACvB,IAAI,MACFC,EAAK,SACLC,EAAW,CAAC,EAAC,OACbC,EAAS,IACPH,EACAI,EAAe,CACjB,cAAe,CAAC,GAEdC,EAAY,CAAC,EACbH,EAASI,aACXD,EAAUE,gBAAkBL,EAASI,YAEnCJ,EAASM,aACXH,EAAUI,MAAQP,EAASM,aA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UACZE,WAAY,UACZO,MAAO,OACPM,UAAW,UACXC,eAAgB,UAChBF,cAAe,WAENsM,GAAgB1L,IACzB,IAAI,MACF/B,EAAQ,OAAM,SACdC,EAAW,CAAC,EAAC,OACbC,EAAS,IACP6B,GAAW,CAAC,EAChB,OAAOjC,EAAY,CACjBE,MAAOA,EACPC,UAAU+B,EAAAA,EAAAA,GAAS,CAAC,EAAGwL,GAA0BvN,GACjDC,OAAQ,CAAC,CACP+B,IAAK,CAACC,EAAAA,GAAEI,QAASJ,EAAAA,GAAEwD,OACnBlF,MAAO,WACN,CACDyB,IAAK,CAACC,EAAAA,GAAEC,SACR3B,MAAO,UACP4B,WAAY,QACX,CACDH,IAAK,CAACC,EAAAA,GAAEY,OAAQZ,EAAAA,GAAEa,MAClBvC,MAAO,WACN,CACDyB,IAAK,CAACC,EAAAA,GAAEU,UACRpC,MAAO,WACN,CACDyB,IAAK,CAACC,EAAAA,GAAEO,WAAWP,EAAAA,GAAEQ,eACrBlC,MAAO,WACN,CACDyB,IAAK,CAACC,EAAAA,GAAEsB,MACRhD,MAAO,WACN,CACDyB,IAAK,CAACC,EAAAA,GAAEQ,cACRlC,MAAO,WACN,CACDyB,IAAK,CAACC,EAAAA,GAAE4C,OAAQ5C,EAAAA,GAAEiB,MAClB3C,MAAO,cACHN,IACN,EAEOwN,GAAYD,I","sources":["../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-themes/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-abcdef/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-abyss/esm/color.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-abyss/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-androidstudio/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-atomone/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-aura/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-bbedit/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-bespin/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-darcula/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-dracula/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-duotone/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-eclipse/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-github/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-gruvbox-dark/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-kimbie/esm/color.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-kimbie/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-material/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-monokai/esm/color.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-monokai/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-monokai-dimmed/esm/color.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-monokai-dimmed/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-noctis-lilac/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-nord/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-okaidia/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-quietlight/esm/color.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-quietlight/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-red/esm/color.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-red/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-solarized/esm/dark-color.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-solarized/esm/dark.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-solarized/esm/light-color.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-solarized/esm/light.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-sublime/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-tokyo-night/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-tokyo-night-storm/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-tokyo-night-day/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/esm/color.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-tomorrow-night-blue/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-vscode/esm/index.js","../node_modules/@uiw/codemirror-themes-all/node_modules/@uiw/codemirror-theme-xcode/esm/index.js"],"sourcesContent":["import { EditorView } from '@codemirror/view';\nimport { HighlightStyle, syntaxHighlighting } from '@codemirror/language';\nexport var createTheme = _ref => {\n var {\n theme,\n settings = {},\n styles = []\n } = _ref;\n var themeOptions = {\n '.cm-gutters': {}\n };\n var baseStyle = {};\n if (settings.background) {\n baseStyle.backgroundColor = settings.background;\n }\n if (settings.foreground) {\n baseStyle.color = settings.foreground;\n }\n if (settings.background || settings.foreground) {\n themeOptions['&'] = baseStyle;\n }\n if (settings.fontFamily) {\n themeOptions['&.cm-editor .cm-scroller'] = {\n fontFamily: settings.fontFamily\n };\n }\n if (settings.gutterBackground) {\n themeOptions['.cm-gutters'].backgroundColor = settings.gutterBackground;\n }\n if (settings.gutterForeground) {\n themeOptions['.cm-gutters'].color = settings.gutterForeground;\n }\n if (settings.gutterBorder) {\n themeOptions['.cm-gutters'].borderRightColor = settings.gutterBorder;\n }\n if (settings.caret) {\n themeOptions['.cm-content'] = {\n caretColor: settings.caret\n };\n themeOptions['.cm-cursor, .cm-dropCursor'] = {\n borderLeftColor: settings.caret\n };\n }\n var activeLineGutterStyle = {};\n if (settings.gutterActiveForeground) {\n activeLineGutterStyle.color = settings.gutterActiveForeground;\n }\n if (settings.lineHighlight) {\n themeOptions['.cm-activeLine'] = {\n backgroundColor: settings.lineHighlight\n };\n activeLineGutterStyle.backgroundColor = settings.lineHighlight;\n }\n themeOptions['.cm-activeLineGutter'] = activeLineGutterStyle;\n if (settings.selection) {\n themeOptions['&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection'] = {\n background: settings.selection + ' !important'\n };\n }\n if (settings.selectionMatch) {\n themeOptions['& .cm-selectionMatch'] = {\n backgroundColor: settings.selectionMatch\n };\n }\n var themeExtension = EditorView.theme(themeOptions, {\n dark: theme === 'dark'\n });\n var highlightStyle = HighlightStyle.define(styles);\n var extension = [themeExtension, syntaxHighlighting(highlightStyle)];\n return extension;\n};\nexport default createTheme;","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name abcdef\n * @author codemirror.net\n * https://codemirror.net/5/theme/abcdef.css\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsAbcdef = {\n background: '#0f0f0f',\n foreground: '#defdef',\n caret: '#00FF00',\n selection: '#515151',\n selectionMatch: '#515151',\n gutterBackground: '#555',\n gutterForeground: '#FFFFFF',\n lineHighlight: '#314151'\n};\nexport var abcdefInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsAbcdef, settings),\n styles: [{\n tag: t.keyword,\n color: 'darkgoldenrod',\n fontWeight: 'bold'\n }, {\n tag: t.atom,\n color: '#77F'\n }, {\n tag: t.comment,\n color: '#7a7b7c',\n fontStyle: 'italic'\n }, {\n tag: t.number,\n color: 'violet'\n }, {\n tag: t.definition(t.variableName),\n color: '#fffabc'\n }, {\n tag: t.variableName,\n color: '#abcdef'\n }, {\n tag: t.function(t.variableName),\n color: '#fffabc'\n }, {\n tag: t.typeName,\n color: '#FFDD44'\n }, {\n tag: t.tagName,\n color: '#def'\n }, {\n tag: t.string,\n color: '#2b4'\n }, {\n tag: t.meta,\n color: '#C9F'\n },\n // { tag: t.qualifier, color: '#FFF700' },\n // { tag: t.builtin, color: '#30aabc' },\n {\n tag: t.bracket,\n color: '#8a8a8a'\n }, {\n tag: t.attributeName,\n color: '#DDFF00'\n }, {\n tag: t.heading,\n color: 'aquamarine',\n fontWeight: 'bold'\n }, {\n tag: t.link,\n color: 'blueviolet',\n fontWeight: 'bold'\n }, ...styles]\n });\n};\nexport var abcdef = abcdefInit();","export var config = {\n background: '#000c18',\n foreground: '#6688cc',\n selection: '#770811',\n selectionMatch: '#770811',\n cursor: '#ddbb88',\n dropdownBackground: '#181f2f',\n activeLine: '#082050',\n matchingBracket: '#082050',\n keyword: '#225588',\n storage: '#225588',\n variable: '#2277ff',\n parameter: '#2277ff',\n function: '#9966b8',\n string: '#22aa44',\n constant: '#f280d0',\n type: '#9966b8',\n class: '#ddbb88',\n number: '#f280d0',\n comment: '#384887',\n heading: '#6688cc',\n invalid: '#A22D44',\n regexp: '#22aa44',\n tag: '#225588'\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { config } from './color';\nexport var defaultSettingsAbyss = {\n background: config.background,\n foreground: config.foreground,\n caret: config.cursor,\n selection: config.selection,\n selectionMatch: config.selectionMatch,\n gutterBackground: config.background,\n gutterForeground: config.foreground,\n lineHighlight: config.activeLine\n};\nexport var abyssInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsAbyss, settings),\n styles: [{\n tag: t.keyword,\n color: config.keyword\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable\n }, {\n tag: [t.propertyName],\n color: config.function\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: config.function\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant\n }, {\n tag: [t.definition(t.name), t.separator],\n color: config.variable\n }, {\n tag: [t.className],\n color: config.class\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number\n }, {\n tag: [t.typeName],\n color: config.type,\n fontStyle: config.type\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: config.keyword\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: config.regexp\n }, {\n tag: [t.meta, t.comment],\n color: config.comment\n }, {\n tag: t.tagName,\n color: config.tag\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: config.heading\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: config.variable\n }, {\n tag: t.invalid,\n color: config.invalid\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var abyss = abyssInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name androidstudio\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsAndroidstudio = {\n background: '#282b2e',\n foreground: '#a9b7c6',\n caret: '#00FF00',\n selection: '#343739',\n selectionMatch: '#343739',\n lineHighlight: '#343739'\n};\nexport var androidstudioInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsAndroidstudio, settings),\n styles: [{\n tag: [t.keyword, t.deleted, t.className],\n color: '#cc7832'\n }, {\n tag: [t.number, t.literal, t.derefOperator],\n color: '#6897bb'\n }, {\n tag: [t.link, t.variableName],\n color: '#629755'\n }, {\n tag: [t.comment, t.quote],\n color: 'grey'\n }, {\n tag: [t.meta, t.documentMeta],\n color: '#bbb529'\n }, {\n tag: [t.string, t.propertyName, t.attributeValue],\n color: '#6a8759'\n }, {\n tag: [t.heading, t.typeName],\n color: '#ffc66d'\n }, {\n tag: [t.attributeName],\n color: '#a9b7c6'\n }, {\n tag: [t.emphasis],\n fontStyle: 'italic'\n }, ...styles]\n });\n};\nexport var androidstudio = androidstudioInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name Atom One\n * Atom One dark syntax theme\n *\n * https://github.com/atom/one-dark-syntax\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsAtomone = {\n background: '#272C35',\n foreground: '#9d9b97',\n caret: '#797977',\n selection: '#ffffff30',\n selectionMatch: '#2B323D',\n gutterBackground: '#272C35',\n gutterForeground: '#465063',\n gutterBorder: 'transparent',\n lineHighlight: '#2B323D'\n};\nexport var atomoneInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsAtomone, settings),\n styles: [{\n tag: [t.function(t.variableName), t.function(t.propertyName), t.url, t.processingInstruction],\n color: 'hsl(207, 82%, 66%)'\n }, {\n tag: [t.tagName, t.heading],\n color: '#e06c75'\n }, {\n tag: t.comment,\n color: '#54636D'\n }, {\n tag: [t.propertyName],\n color: 'hsl(220, 14%, 71%)'\n }, {\n tag: [t.attributeName, t.number],\n color: 'hsl( 29, 54%, 61%)'\n }, {\n tag: t.className,\n color: 'hsl( 39, 67%, 69%)'\n }, {\n tag: t.keyword,\n color: 'hsl(286, 60%, 67%)'\n }, {\n tag: [t.string, t.regexp, t.special(t.propertyName)],\n color: '#98c379'\n }, ...styles]\n });\n};\nexport var atomone = atomoneInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsAura = {\n background: '#21202e',\n foreground: '#edecee',\n caret: '#a277ff',\n selection: '#3d375e7f',\n selectionMatch: '#3d375e7f',\n gutterBackground: '#21202e',\n gutterForeground: '#edecee',\n gutterBorder: 'transparent',\n lineHighlight: '#a394f033'\n};\nexport var auraInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsAura, settings),\n styles: [{\n tag: t.keyword,\n color: '#a277ff'\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: '#edecee'\n }, {\n tag: [t.propertyName],\n color: '#ffca85'\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: '#61ffca'\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: '#ffca85'\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: '#61ffca'\n }, {\n tag: [t.definition(t.name), t.separator],\n color: '#edecee'\n }, {\n tag: [t.className],\n color: '#82e2ff'\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: '#61ffca'\n }, {\n tag: [t.typeName],\n color: '#82e2ff'\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: '#a277ff'\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: '#61ffca'\n }, {\n tag: [t.meta, t.comment],\n color: '#6d6d6d'\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#a277ff'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#edecee'\n }, {\n tag: t.invalid,\n color: '#ff6767'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var aura = auraInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsBbedit = {\n background: '#FFFFFF',\n foreground: '#000000',\n caret: '#FBAC52',\n selection: '#FFD420',\n selectionMatch: '#FFD420',\n gutterBackground: '#f5f5f5',\n gutterForeground: '#4D4D4C',\n gutterBorder: 'transparent',\n lineHighlight: '#00000012'\n};\nexport var bbeditInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsBbedit, settings),\n styles: [{\n tag: [t.meta, t.comment],\n color: '#804000'\n }, {\n tag: [t.keyword, t.strong],\n color: '#0000FF'\n }, {\n tag: [t.number],\n color: '#FF0080'\n }, {\n tag: [t.string],\n color: '#FF0080'\n }, {\n tag: [t.variableName],\n color: '#006600'\n }, {\n tag: [t.escape],\n color: '#33CC33'\n }, {\n tag: [t.tagName],\n color: '#1C02FF'\n }, {\n tag: [t.heading],\n color: '#0C07FF'\n }, {\n tag: [t.quote],\n color: '#000000'\n }, {\n tag: [t.list],\n color: '#B90690'\n }, {\n tag: [t.documentMeta],\n color: '#888888'\n }, {\n tag: [t.function(t.variableName)],\n color: '#0000A2'\n }, {\n tag: [t.definition(t.typeName), t.typeName],\n color: '#6D79DE'\n }, ...styles]\n });\n};\nexport var bbedit = bbeditInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name Bespin\n * @author Mozilla / Jan T. Sott\n *\n * CodeMirror template by Jan T. Sott (https://github.com/idleberg/base16-codemirror)\n * Original Base16 color scheme by Chris Kempson (https://github.com/chriskempson/base16)\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsBespin = {\n background: '#28211c',\n foreground: '#9d9b97',\n caret: '#797977',\n selection: '#36312e',\n selectionMatch: '#4f382b',\n gutterBackground: '#28211c',\n gutterForeground: '#666666',\n lineHighlight: 'rgba(255, 255, 255, 0.1)'\n};\nexport var bespinInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsBespin, settings),\n styles: [{\n tag: [t.atom, t.number, t.link, t.bool],\n color: '#9b859d'\n }, {\n tag: t.comment,\n color: '#937121'\n }, {\n tag: [t.keyword, t.tagName],\n color: '#cf6a4c'\n }, {\n tag: t.string,\n color: '#f9ee98'\n }, {\n tag: t.bracket,\n color: '#9d9b97'\n }, {\n tag: [t.variableName],\n color: '#5ea6ea'\n }, {\n tag: t.definition(t.variableName),\n color: '#cf7d34'\n }, {\n tag: [t.function(t.variableName), t.className],\n color: '#cf7d34'\n }, {\n tag: [t.propertyName, t.attributeName],\n color: '#54be0d'\n }, ...styles]\n });\n};\nexport var bespin = bespinInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name darcula\n * @author darcula\n * Name: IntelliJ IDEA darcula theme\n * From IntelliJ IDEA by JetBrains\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsDarcula = {\n background: '#2B2B2B',\n foreground: '#f8f8f2',\n caret: '#FFFFFF',\n selection: 'rgba(255, 255, 255, 0.1)',\n selectionMatch: 'rgba(255, 255, 255, 0.2)',\n gutterBackground: 'rgba(255, 255, 255, 0.1)',\n gutterForeground: '#999',\n gutterBorder: 'transparent',\n lineHighlight: 'rgba(255, 255, 255, 0.1)'\n};\nexport var darculaInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsDarcula, settings),\n styles: [{\n tag: [t.atom, t.number],\n color: '#bd93f9'\n }, {\n tag: [t.comment],\n color: '#61A151'\n }, {\n tag: [t.string],\n color: '#6A8759'\n }, {\n tag: [t.variableName, t.operator],\n color: '#A9B7C6'\n }, {\n tag: [t.meta, t.className],\n color: '#A9B7C6'\n }, {\n tag: [t.propertyName],\n color: '#FFC66D'\n }, {\n tag: [t.keyword],\n color: '#CC7832'\n }, {\n tag: [t.tagName],\n color: '#ff79c6'\n }, {\n tag: [t.typeName],\n color: '#ffb86c'\n }, ...styles]\n });\n};\nexport var darcula = darculaInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name dracula\n * @author dracula\n * Michael Kaminsky (http://github.com/mkaminsky11)\n * Original dracula color scheme by Zeno Rocha (https://github.com/zenorocha/dracula-theme)\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsDracula = {\n background: '#282a36',\n foreground: '#f8f8f2',\n caret: '#f8f8f0',\n selection: 'rgba(255, 255, 255, 0.1)',\n selectionMatch: 'rgba(255, 255, 255, 0.2)',\n gutterBackground: '#282a36',\n gutterForeground: '#6D8A88',\n gutterBorder: 'transparent',\n lineHighlight: 'rgba(255, 255, 255, 0.1)'\n};\nexport var draculaInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsDracula, settings),\n styles: [{\n tag: t.comment,\n color: '#6272a4'\n }, {\n tag: t.string,\n color: '#f1fa8c'\n }, {\n tag: t.atom,\n color: '#bd93f9'\n }, {\n tag: t.meta,\n color: '#f8f8f2'\n }, {\n tag: [t.keyword, t.operator, t.tagName],\n color: '#ff79c6'\n }, {\n tag: [t.function(t.propertyName), t.propertyName],\n color: '#66d9ef'\n }, {\n tag: [t.definition(t.variableName), t.function(t.variableName), t.className, t.attributeName],\n color: '#50fa7b'\n }, {\n tag: t.atom,\n color: '#bd93f9'\n }, ...styles]\n });\n};\nexport var dracula = draculaInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name duotone\n * @author Bram de Haan\n * by Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes)\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsDuotoneLight = {\n background: '#faf8f5',\n foreground: '#b29762',\n caret: '#93abdc',\n selection: '#e3dcce',\n selectionMatch: '#e3dcce',\n gutterBackground: '#faf8f5',\n gutterForeground: '#cdc4b1',\n gutterBorder: 'transparent',\n lineHighlight: '#EFEFEF'\n};\nexport var duotoneLightInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsDuotoneLight, settings),\n styles: [{\n tag: [t.comment, t.bracket],\n color: '#b6ad9a'\n }, {\n tag: [t.atom, t.number, t.keyword, t.link, t.attributeName, t.quote],\n color: '#063289'\n }, {\n tag: [t.emphasis, t.heading, t.tagName, t.propertyName, t.variableName],\n color: '#2d2006'\n }, {\n tag: [t.typeName, t.url, t.string],\n color: '#896724'\n }, {\n tag: [t.operator, t.string],\n color: '#1659df'\n }, {\n tag: [t.propertyName],\n color: '#b29762'\n }, {\n tag: [t.unit, t.punctuation],\n color: '#063289'\n }, ...styles]\n });\n};\nexport var duotoneLight = duotoneLightInit();\nexport var defaultSettingsDuotoneDark = {\n background: '#2a2734',\n foreground: '#6c6783',\n caret: '#ffad5c',\n selection: 'rgba(255, 255, 255, 0.1)',\n gutterBackground: '#2a2734',\n gutterForeground: '#545167',\n lineHighlight: '#36334280'\n};\nexport var duotoneDarkInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsDuotoneDark, settings),\n styles: [{\n tag: [t.comment, t.bracket],\n color: '#6c6783'\n }, {\n tag: [t.atom, t.number, t.keyword, t.link, t.attributeName, t.quote],\n color: '#ffcc99'\n }, {\n tag: [t.emphasis, t.heading, t.tagName, t.propertyName, t.className, t.variableName],\n color: '#eeebff'\n }, {\n tag: [t.typeName, t.url],\n color: '#7a63ee'\n }, {\n tag: t.operator,\n color: '#ffad5c'\n }, {\n tag: t.string,\n color: '#ffb870'\n }, {\n tag: [t.propertyName],\n color: '#9a86fd'\n }, {\n tag: [t.unit, t.punctuation],\n color: '#e09142'\n }, ...styles]\n });\n};\nexport var duotoneDark = duotoneDarkInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsEclipse = {\n background: '#fff',\n foreground: '#000',\n caret: '#FFFFFF',\n selection: '#d7d4f0',\n selectionMatch: '#d7d4f0',\n gutterBackground: '#f7f7f7',\n gutterForeground: '#999',\n lineHighlight: '#e8f2ff',\n gutterBorder: 'transparent'\n};\nexport var eclipseInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsEclipse, settings),\n styles: [{\n tag: [t.comment],\n color: '#3F7F5F'\n }, {\n tag: [t.documentMeta],\n color: '#FF1717'\n }, {\n tag: t.keyword,\n color: '#7F0055',\n fontWeight: 'bold'\n }, {\n tag: t.atom,\n color: '#00f'\n }, {\n tag: t.number,\n color: '#164'\n }, {\n tag: t.propertyName,\n color: '#164'\n }, {\n tag: [t.variableName, t.definition(t.variableName)],\n color: '#0000C0'\n }, {\n tag: t.function(t.variableName),\n color: '#0000C0'\n }, {\n tag: t.string,\n color: '#2A00FF'\n }, {\n tag: t.operator,\n color: 'black'\n }, {\n tag: t.tagName,\n color: '#170'\n }, {\n tag: t.attributeName,\n color: '#00c'\n }, {\n tag: t.link,\n color: '#219'\n }, ...styles]\n });\n};\nexport var eclipse = eclipseInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name github\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsGithubLight = {\n background: '#fff',\n foreground: '#24292e',\n selection: '#BBDFFF',\n selectionMatch: '#BBDFFF',\n gutterBackground: '#fff',\n gutterForeground: '#6e7781'\n};\nexport var githubLightInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsGithubLight, settings),\n styles: [{\n tag: [t.standard(t.tagName), t.tagName],\n color: '#116329'\n }, {\n tag: [t.comment, t.bracket],\n color: '#6a737d'\n }, {\n tag: [t.className, t.propertyName],\n color: '#6f42c1'\n }, {\n tag: [t.variableName, t.attributeName, t.number, t.operator],\n color: '#005cc5'\n }, {\n tag: [t.keyword, t.typeName, t.typeOperator, t.typeName],\n color: '#d73a49'\n }, {\n tag: [t.string, t.meta, t.regexp],\n color: '#032f62'\n }, {\n tag: [t.name, t.quote],\n color: '#22863a'\n }, {\n tag: [t.heading],\n color: '#24292e',\n fontWeight: 'bold'\n }, {\n tag: [t.emphasis],\n color: '#24292e',\n fontStyle: 'italic'\n }, {\n tag: [t.deleted],\n color: '#b31d28',\n backgroundColor: 'ffeef0'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#e36209'\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: '#032f62'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, {\n tag: t.invalid,\n color: '#cb2431'\n }, ...styles]\n });\n};\nexport var githubLight = githubLightInit();\nexport var defaultSettingsGithubDark = {\n background: '#0d1117',\n foreground: '#c9d1d9',\n caret: '#c9d1d9',\n selection: '#003d73',\n selectionMatch: '#003d73',\n lineHighlight: '#36334280'\n};\nexport var githubDarkInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsGithubDark, settings),\n styles: [{\n tag: [t.standard(t.tagName), t.tagName],\n color: '#7ee787'\n }, {\n tag: [t.comment, t.bracket],\n color: '#8b949e'\n }, {\n tag: [t.className, t.propertyName],\n color: '#d2a8ff'\n }, {\n tag: [t.variableName, t.attributeName, t.number, t.operator],\n color: '#79c0ff'\n }, {\n tag: [t.keyword, t.typeName, t.typeOperator, t.typeName],\n color: '#ff7b72'\n }, {\n tag: [t.string, t.meta, t.regexp],\n color: '#a5d6ff'\n }, {\n tag: [t.name, t.quote],\n color: '#7ee787'\n }, {\n tag: [t.heading],\n color: '#d2a8ff',\n fontWeight: 'bold'\n }, {\n tag: [t.emphasis],\n color: '#d2a8ff',\n fontStyle: 'italic'\n }, {\n tag: [t.deleted],\n color: '#ffdcd7',\n backgroundColor: 'ffeef0'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#ffab70'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, {\n tag: t.invalid,\n color: '#f97583'\n }, ...styles]\n });\n};\nexport var githubDark = githubDarkInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name gruvbox-dark\n * @author morhetz\n * Name: Gruvbox\n * From github.com/codemirror/codemirror5/blob/master/theme/gruvbox-dark.css\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsGruvboxDark = {\n background: '#282828',\n foreground: '#ebdbb2',\n caret: '#ebdbb2',\n selection: '#bdae93',\n selectionMatch: '#bdae93',\n lineHighlight: '#3c3836',\n gutterBackground: '#282828',\n gutterForeground: '#7c6f64'\n};\nexport var gruvboxDarkInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsGruvboxDark, settings),\n styles: [{\n tag: t.keyword,\n color: '#fb4934'\n }, {\n tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName],\n color: '#8ec07c'\n }, {\n tag: [t.variableName],\n color: '#83a598'\n }, {\n tag: [t.function(t.variableName)],\n color: '#b8bb26',\n fontStyle: 'bold'\n }, {\n tag: [t.labelName],\n color: '#ebdbb2'\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: '#d3869b'\n }, {\n tag: [t.definition(t.name), t.separator],\n color: '#ebdbb2'\n }, {\n tag: [t.brace],\n color: '#ebdbb2'\n }, {\n tag: [t.annotation],\n color: '#fb4934d'\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: '#d3869b'\n }, {\n tag: [t.typeName, t.className],\n color: '#fabd2f'\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: '#fb4934'\n }, {\n tag: [t.tagName],\n color: '#8ec07c',\n fontStyle: 'bold'\n }, {\n tag: [t.squareBracket],\n color: '#fe8019'\n }, {\n tag: [t.angleBracket],\n color: '#83a598'\n }, {\n tag: [t.attributeName],\n color: '#8ec07c'\n }, {\n tag: [t.regexp],\n color: '#8ec07c'\n }, {\n tag: [t.quote],\n color: '#928374'\n }, {\n tag: [t.string],\n color: '#ebdbb2'\n }, {\n tag: t.link,\n color: '#a89984',\n textDecoration: 'underline',\n textUnderlinePosition: 'under'\n }, {\n tag: [t.url, t.escape, t.special(t.string)],\n color: '#d3869b'\n }, {\n tag: [t.meta],\n color: '#fabd2f'\n }, {\n tag: [t.comment],\n color: '#928374',\n fontStyle: 'italic'\n }, {\n tag: t.strong,\n fontWeight: 'bold',\n color: '#fe8019'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic',\n color: '#b8bb26'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#b8bb26'\n }, {\n tag: [t.heading1, t.heading2],\n fontWeight: 'bold',\n color: '#b8bb26'\n }, {\n tag: [t.heading3, t.heading4],\n fontWeight: 'bold',\n color: '#fabd2f'\n }, {\n tag: [t.heading5, t.heading6],\n color: '#fabd2f'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#d3869b'\n }, {\n tag: [t.processingInstruction, t.inserted],\n color: '#83a598'\n }, {\n tag: [t.contentSeparator],\n color: '#fb4934'\n }, {\n tag: t.invalid,\n color: '#fe8019',\n borderBottom: \"1px dotted #fb4934d\"\n }, ...styles]\n });\n};\nexport var gruvboxDark = gruvboxDarkInit();\nexport var defaultSettingsGruvboxLight = {\n background: '#fbf1c7',\n foreground: '#3c3836',\n caret: '#af3a03',\n selection: '#ebdbb2',\n selectionMatch: '#bdae93',\n lineHighlight: '#ebdbb2',\n gutterBackground: '#ebdbb2',\n gutterForeground: '#665c54',\n gutterBorder: 'transparent'\n};\nexport var gruvboxLightInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsGruvboxLight, settings),\n styles: [{\n tag: t.keyword,\n color: '#9d0006'\n }, {\n tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName],\n color: '#427b58'\n }, {\n tag: [t.variableName],\n color: '#076678'\n }, {\n tag: [t.function(t.variableName)],\n color: '#79740e',\n fontStyle: 'bold'\n }, {\n tag: [t.labelName],\n color: '#3c3836'\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: '#8f3f71'\n }, {\n tag: [t.definition(t.name), t.separator],\n color: '#3c3836'\n }, {\n tag: [t.brace],\n color: '#3c3836'\n }, {\n tag: [t.annotation],\n color: '#9d0006'\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: '#8f3f71'\n }, {\n tag: [t.typeName, t.className],\n color: '#b57614'\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: '#9d0006'\n }, {\n tag: [t.tagName],\n color: '#427b58',\n fontStyle: 'bold'\n }, {\n tag: [t.squareBracket],\n color: '#af3a03'\n }, {\n tag: [t.angleBracket],\n color: '#076678'\n }, {\n tag: [t.attributeName],\n color: '#427b58'\n }, {\n tag: [t.regexp],\n color: '#427b58'\n }, {\n tag: [t.quote],\n color: '#928374'\n }, {\n tag: [t.string],\n color: '#3c3836'\n }, {\n tag: t.link,\n color: '#7c6f64',\n textDecoration: 'underline',\n textUnderlinePosition: 'under'\n }, {\n tag: [t.url, t.escape, t.special(t.string)],\n color: '#8f3f71'\n }, {\n tag: [t.meta],\n color: '#b57614'\n }, {\n tag: [t.comment],\n color: '#928374',\n fontStyle: 'italic'\n }, {\n tag: t.strong,\n fontWeight: 'bold',\n color: '#af3a03'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic',\n color: '#79740e'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#79740e'\n }, {\n tag: [t.heading1, t.heading2],\n fontWeight: 'bold',\n color: '#79740e'\n }, {\n tag: [t.heading3, t.heading4],\n fontWeight: 'bold',\n color: '#b57614'\n }, {\n tag: [t.heading5, t.heading6],\n color: '#b57614'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#8f3f71'\n }, {\n tag: [t.processingInstruction, t.inserted],\n color: '#076678'\n }, {\n tag: [t.contentSeparator],\n color: '#9d0006'\n }, {\n tag: t.invalid,\n color: '#af3a03',\n borderBottom: \"1px dotted #9d0006\"\n }, ...styles]\n });\n};\nexport var gruvboxLight = gruvboxLightInit();","export var config = {\n background: '#221a0f',\n foreground: '#d3af86',\n selection: '#84613daa',\n selectionMatch: '#84613daa',\n cursor: '#d3af86',\n dropdownBackground: '#51412c',\n activeLine: '#5e452b',\n matchingBracket: '#5e452b',\n keyword: '#98676a',\n storage: '#98676a',\n variable: '#dc3958',\n parameter: '#dc3958',\n function: '#7e602c',\n string: '#889b4a',\n constant: '#f79a32',\n type: '#f06431',\n class: '#f06431',\n number: '#f79a32',\n comment: '#a57a4c',\n heading: '#8ab1b0',\n invalid: '#dc3958',\n regexp: '#7e602c',\n tag: '#dc3958'\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { config } from './color';\nexport var defaultSettingsKimbie = {\n background: config.background,\n foreground: config.foreground,\n caret: config.cursor,\n selection: config.selection,\n selectionMatch: config.selection,\n gutterBackground: config.background,\n gutterForeground: config.foreground,\n lineHighlight: config.activeLine\n};\nexport var kimbieInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsKimbie, settings),\n styles: [{\n tag: t.keyword,\n color: config.keyword\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable\n }, {\n tag: [t.propertyName],\n color: config.function\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: config.function\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant\n }, {\n tag: [t.definition(t.name), t.separator],\n color: config.variable\n }, {\n tag: [t.className],\n color: config.class\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number\n }, {\n tag: [t.typeName],\n color: config.type,\n fontStyle: config.type\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: config.keyword\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: config.regexp\n }, {\n tag: [t.meta, t.comment],\n color: config.comment\n }, {\n tag: t.tagName,\n color: config.tag\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: config.heading\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: config.variable\n }, {\n tag: t.invalid,\n color: config.invalid\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var kimbie = kimbieInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsMaterial = {\n background: '#2e3235',\n foreground: '#bdbdbd',\n caret: '#a0a4ae',\n selection: '#d7d4f0',\n selectionMatch: '#d7d4f0',\n gutterBackground: '#2e3235',\n gutterForeground: '#999',\n gutterActiveForeground: '#4f5b66',\n lineHighlight: '#545b61'\n};\nexport var defaultSettingsMaterialDark = defaultSettingsMaterial;\nexport var materialInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsMaterial, settings),\n styles: [{\n tag: t.keyword,\n color: '#cf6edf'\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: '#56c8d8'\n }, {\n tag: [t.propertyName],\n color: '#facf4e'\n }, {\n tag: [t.variableName],\n color: '#bdbdbd'\n }, {\n tag: [t.function(t.variableName)],\n color: '#56c8d8'\n }, {\n tag: [t.labelName],\n color: '#cf6edf'\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: '#facf4e'\n }, {\n tag: [t.definition(t.name), t.separator],\n color: '#fa5788'\n }, {\n tag: [t.brace],\n color: '#cf6edf'\n }, {\n tag: [t.annotation],\n color: '#ff5f52'\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: '#ffad42'\n }, {\n tag: [t.typeName, t.className],\n color: '#ffad42'\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: '#7186f0'\n }, {\n tag: [t.tagName],\n color: '#99d066'\n }, {\n tag: [t.squareBracket],\n color: '#ff5f52'\n }, {\n tag: [t.angleBracket],\n color: '#606f7a'\n }, {\n tag: [t.attributeName],\n color: '#bdbdbd'\n }, {\n tag: [t.regexp],\n color: '#ff5f52'\n }, {\n tag: [t.quote],\n color: '#6abf69'\n }, {\n tag: [t.string],\n color: '#99d066'\n }, {\n tag: t.link,\n color: '#56c8d8',\n textDecoration: 'underline',\n textUnderlinePosition: 'under'\n }, {\n tag: [t.url, t.escape, t.special(t.string)],\n color: '#facf4e'\n }, {\n tag: [t.meta],\n color: '#707d8b'\n }, {\n tag: [t.comment],\n color: '#707d8b',\n fontStyle: 'italic'\n }, {\n tag: t.monospace,\n color: '#bdbdbd'\n }, {\n tag: t.strong,\n fontWeight: 'bold',\n color: '#ff5f52'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic',\n color: '#99d066'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#facf4e'\n }, {\n tag: t.heading1,\n fontWeight: 'bold',\n color: '#facf4e'\n }, {\n tag: [t.heading2, t.heading3, t.heading4],\n fontWeight: 'bold',\n color: '#facf4e'\n }, {\n tag: [t.heading5, t.heading6],\n color: '#facf4e'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#56c8d8'\n }, {\n tag: [t.processingInstruction, t.inserted],\n color: '#ff5f52'\n }, {\n tag: [t.contentSeparator],\n color: '#56c8d8'\n }, {\n tag: t.invalid,\n color: '#606f7a',\n borderBottom: \"1px dotted #ff5f52\"\n }, ...styles]\n });\n};\nexport var materialDarkInit = materialInit;\nexport var materialDark = materialInit();\nexport var material = materialInit();\nexport var defaultSettingsMaterialLight = {\n background: '#FAFAFA',\n foreground: '#90A4AE',\n caret: '#272727',\n selection: '#80CBC440',\n selectionMatch: '#FAFAFA',\n gutterBackground: '#FAFAFA',\n gutterForeground: '#90A4AE',\n gutterBorder: 'transparent',\n lineHighlight: '#CCD7DA50'\n};\nexport var materialLightInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsMaterialLight, settings),\n styles: [{\n tag: t.keyword,\n color: '#39ADB5'\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: '#90A4AE'\n }, {\n tag: [t.propertyName],\n color: '#6182B8'\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: '#91B859'\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: '#6182B8'\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: '#39ADB5'\n }, {\n tag: [t.definition(t.name), t.separator],\n color: '#90A4AE'\n }, {\n tag: [t.className],\n color: '#E2931D'\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: '#F76D47'\n }, {\n tag: [t.typeName],\n color: '#E2931D',\n fontStyle: '#E2931D'\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: '#39ADB5'\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: '#91B859'\n }, {\n tag: [t.meta, t.comment],\n color: '#90A4AE'\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#39ADB5'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#90A4AE'\n }, {\n tag: t.invalid,\n color: '#E5393570'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var materialLight = materialLightInit();","export var config = {\n background: '#272822',\n foreground: '#f8f8f2',\n selection: '#4a4a7680',\n selectionMatch: '#6a6a9680',\n cursor: '#f8f8f0',\n dropdownBackground: '#414339',\n activeLine: '#3e3d32',\n matchingBracket: '#3e3d32',\n keyword: '#F92672',\n storage: '#F92672',\n variable: '#FD971F',\n parameter: '#FD971F',\n function: '#66D9EF',\n string: '#E6DB74',\n constant: '#AE81FF',\n type: '#66D9EF',\n class: '#A6E22E',\n number: '#AE81FF',\n comment: '#88846f',\n heading: '#A6E22E',\n invalid: '#F44747',\n regexp: '#E6DB74',\n tag: '#F92672'\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { config } from './color';\nexport var defaultSettingsMonokai = {\n background: config.background,\n foreground: config.foreground,\n caret: config.cursor,\n selection: config.selection,\n selectionMatch: config.selection,\n gutterBackground: config.background,\n gutterForeground: config.foreground,\n lineHighlight: config.activeLine\n};\nexport var monokaiInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsMonokai, settings),\n styles: [{\n tag: t.keyword,\n color: config.keyword\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable\n }, {\n tag: [t.propertyName],\n color: config.function\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: config.function\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant\n }, {\n tag: [t.definition(t.name), t.separator],\n color: config.variable\n }, {\n tag: [t.className],\n color: config.class\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number\n }, {\n tag: [t.typeName],\n color: config.type,\n fontStyle: config.type\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: config.keyword\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: config.regexp\n }, {\n tag: [t.meta, t.comment],\n color: config.comment\n }, {\n tag: t.tagName,\n color: config.tag\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: config.heading\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: config.variable\n }, {\n tag: t.invalid,\n color: config.invalid\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var monokai = monokaiInit();","export var config = {\n background: '#1e1e1e',\n foreground: '#c5c8c6',\n selection: '#4747a180',\n selectionMatch: '#6767ce80',\n cursor: '#c07020',\n dropdownBackground: '#525252',\n activeLine: '#303030',\n matchingBracket: '#303030',\n keyword: '#676867',\n storage: '#676867',\n variable: '#c7444a',\n parameter: '#6089B4',\n function: '#9872A2',\n string: '#D08442',\n constant: '#8080FF',\n type: '#9B0000',\n class: '#CE6700',\n number: '#6089B4',\n comment: '#9A9B99',\n heading: '#D0B344',\n invalid: '#FF0B00',\n regexp: '#D08442',\n tag: '#6089B4'\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { config } from './color';\nexport var defaultSettingsMonokaiDimmed = {\n background: config.background,\n foreground: config.foreground,\n caret: config.cursor,\n selection: config.selection,\n selectionMatch: config.selection,\n gutterBackground: config.background,\n gutterForeground: config.foreground,\n lineHighlight: config.activeLine\n};\nexport var monokaiDimmedInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsMonokaiDimmed, settings),\n styles: [{\n tag: t.keyword,\n color: config.keyword\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable\n }, {\n tag: [t.propertyName],\n color: config.function\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: config.function\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant\n }, {\n tag: [t.definition(t.name), t.separator],\n color: config.variable\n }, {\n tag: [t.className],\n color: config.class\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number\n }, {\n tag: [t.typeName],\n color: config.type,\n fontStyle: config.type\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: config.keyword\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: config.regexp\n }, {\n tag: [t.meta, t.comment],\n color: config.comment\n }, {\n tag: t.tagName,\n color: config.tag\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: config.heading\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: config.variable\n }, {\n tag: t.invalid,\n color: config.invalid\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var monokaiDimmed = monokaiDimmedInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsNoctisLilac = {\n background: '#f2f1f8',\n foreground: '#0c006b',\n caret: '#5c49e9',\n selection: '#d5d1f2',\n selectionMatch: '#d5d1f2',\n gutterBackground: '#f2f1f8',\n gutterForeground: '#0c006b70',\n lineHighlight: '#e1def3'\n};\nexport var noctisLilacInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsNoctisLilac, settings),\n styles: [{\n tag: t.comment,\n color: '#9995b7'\n }, {\n tag: t.keyword,\n color: '#ff5792',\n fontWeight: 'bold'\n }, {\n tag: [t.definitionKeyword, t.modifier],\n color: '#ff5792'\n }, {\n tag: [t.className, t.tagName, t.definition(t.typeName)],\n color: '#0094f0'\n }, {\n tag: [t.number, t.bool, t.null, t.special(t.brace)],\n color: '#5842ff'\n }, {\n tag: [t.definition(t.propertyName), t.function(t.variableName)],\n color: '#0095a8'\n }, {\n tag: t.typeName,\n color: '#b3694d'\n }, {\n tag: [t.propertyName, t.variableName],\n color: '#fa8900'\n }, {\n tag: t.operator,\n color: '#ff5792'\n }, {\n tag: t.self,\n color: '#e64100'\n }, {\n tag: [t.string, t.regexp],\n color: '#00b368'\n }, {\n tag: [t.paren, t.bracket],\n color: '#0431fa'\n }, {\n tag: t.labelName,\n color: '#00bdd6'\n }, {\n tag: t.attributeName,\n color: '#e64100'\n }, {\n tag: t.angleBracket,\n color: '#9995b7'\n }, ...styles]\n });\n};\nexport var noctisLilac = noctisLilacInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsNord = {\n background: '#2e3440',\n foreground: '#FFFFFF',\n caret: '#FFFFFF',\n selection: '#3b4252',\n selectionMatch: '#e5e9f0',\n gutterBackground: '#2e3440',\n gutterForeground: '#4c566a',\n gutterActiveForeground: '#d8dee9',\n lineHighlight: '#4c566a'\n};\n\n// Colors from https://www.nordtheme.com/docs/colors-and-palettes\nexport var nordInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsNord, settings),\n styles: [{\n tag: t.keyword,\n color: '#5e81ac'\n }, {\n tag: [t.name, t.deleted, t.character, t.propertyName, t.macroName],\n color: '#88c0d0'\n }, {\n tag: [t.variableName],\n color: '#8fbcbb'\n }, {\n tag: [t.function(t.variableName)],\n color: '#8fbcbb'\n }, {\n tag: [t.labelName],\n color: '#81a1c1'\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: '#5e81ac'\n }, {\n tag: [t.definition(t.name), t.separator],\n color: '#a3be8c'\n }, {\n tag: [t.brace],\n color: '#8fbcbb'\n }, {\n tag: [t.annotation],\n color: '#d30102'\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: '#b48ead'\n }, {\n tag: [t.typeName, t.className],\n color: '#ebcb8b'\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: '#a3be8c'\n }, {\n tag: [t.tagName],\n color: '#b48ead'\n }, {\n tag: [t.squareBracket],\n color: '#bf616a'\n }, {\n tag: [t.angleBracket],\n color: '#d08770'\n }, {\n tag: [t.attributeName],\n color: '#ebcb8b'\n }, {\n tag: [t.regexp],\n color: '#5e81ac'\n }, {\n tag: [t.quote],\n color: '#b48ead'\n }, {\n tag: [t.string],\n color: '#a3be8c'\n }, {\n tag: t.link,\n color: '#a3be8c',\n textDecoration: 'underline',\n textUnderlinePosition: 'under'\n }, {\n tag: [t.url, t.escape, t.special(t.string)],\n color: '#8fbcbb'\n }, {\n tag: [t.meta],\n color: '#88c0d0'\n }, {\n tag: [t.monospace],\n color: '#d8dee9',\n fontStyle: 'italic'\n }, {\n tag: [t.comment],\n color: '#4c566a',\n fontStyle: 'italic'\n }, {\n tag: t.strong,\n fontWeight: 'bold',\n color: '#5e81ac'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic',\n color: '#5e81ac'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#5e81ac'\n }, {\n tag: t.special(t.heading1),\n fontWeight: 'bold',\n color: '#5e81ac'\n }, {\n tag: t.heading1,\n fontWeight: 'bold',\n color: '#5e81ac'\n }, {\n tag: [t.heading2, t.heading3, t.heading4],\n fontWeight: 'bold',\n color: '#5e81ac'\n }, {\n tag: [t.heading5, t.heading6],\n color: '#5e81ac'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#d08770'\n }, {\n tag: [t.processingInstruction, t.inserted],\n color: '#8fbcbb'\n }, {\n tag: [t.contentSeparator],\n color: '#ebcb8b'\n }, {\n tag: t.invalid,\n color: '#434c5e',\n borderBottom: \"1px dotted #d30102\"\n }, ...styles]\n });\n};\nexport var nord = nordInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsOkaidia = {\n background: '#272822',\n foreground: '#FFFFFF',\n caret: '#FFFFFF',\n selection: '#49483E',\n selectionMatch: '#49483E',\n gutterBackground: '#272822',\n gutterForeground: '#FFFFFF70',\n lineHighlight: '#00000059'\n};\nexport var okaidiaInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsOkaidia, settings),\n styles: [{\n tag: [t.comment, t.documentMeta],\n color: '#8292a2'\n }, {\n tag: [t.number, t.bool, t.null, t.atom],\n color: '#ae81ff'\n }, {\n tag: [t.attributeValue, t.className, t.name],\n color: '#e6db74'\n }, {\n tag: [t.propertyName, t.attributeName],\n color: '#a6e22e'\n }, {\n tag: [t.variableName],\n color: '#9effff'\n }, {\n tag: [t.squareBracket],\n color: '#bababa'\n }, {\n tag: [t.string, t.special(t.brace)],\n color: '#e6db74'\n }, {\n tag: [t.regexp, t.className, t.typeName, t.definition(t.typeName)],\n color: '#66d9ef'\n }, {\n tag: [t.definition(t.variableName), t.definition(t.propertyName), t.function(t.variableName)],\n color: '#fd971f'\n },\n // { tag: t.keyword, color: '#f92672' },\n {\n tag: [t.keyword, t.definitionKeyword, t.modifier, t.tagName, t.angleBracket],\n color: '#f92672'\n }, ...styles]\n });\n};\nexport var okaidia = okaidiaInit();","export var config = {\n background: '#F5F5F5',\n foreground: '#333333',\n selection: '#C9D0D9',\n selectionMatch: '#C9D0D9',\n cursor: '#54494B',\n dropdownBackground: '#F5F5F5',\n activeLine: '#E4F6D4',\n matchingBracket: '#E4F6D4',\n keyword: '#4B69C6',\n storage: '#4B69C6',\n variable: '#7A3E9D',\n parameter: '#7A3E9D',\n function: '#AA3731',\n string: '#448C27',\n constant: '#9C5D27',\n type: '#7A3E9D',\n class: '#AA3731',\n number: '#9C5D27',\n comment: '#AAAAAA',\n heading: '#AA3731',\n invalid: '#cd3131',\n regexp: '#4B69C6',\n tag: '#4B69C6'\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { config } from './color';\nexport var defaultSettingsQuietlight = {\n background: config.background,\n foreground: config.foreground,\n caret: config.cursor,\n selection: config.selection,\n selectionMatch: config.selection,\n gutterBackground: config.background,\n gutterForeground: config.foreground,\n gutterBorder: 'transparent',\n lineHighlight: config.activeLine\n};\nexport var quietlightInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsQuietlight, settings),\n styles: [{\n tag: t.keyword,\n color: config.keyword\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable\n }, {\n tag: [t.propertyName],\n color: config.function\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: config.function\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant\n }, {\n tag: [t.definition(t.name), t.separator],\n color: config.variable\n }, {\n tag: [t.className],\n color: config.class\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number\n }, {\n tag: [t.typeName],\n color: config.type,\n fontStyle: config.type\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: config.keyword\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: config.regexp\n }, {\n tag: [t.meta, t.comment],\n color: config.comment\n }, {\n tag: t.tagName,\n color: config.tag\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: config.heading\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: config.variable\n }, {\n tag: t.invalid,\n color: config.invalid\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var quietlight = quietlightInit();","export var config = {\n background: '#390000',\n foreground: '#F8F8F8',\n selection: '#750000',\n selectionMatch: '#750000',\n cursor: '#970000',\n dropdownBackground: '#580000',\n activeLine: '#ff000033',\n matchingBracket: '#ff000033',\n keyword: '#f12727ff',\n storage: '#ff6262ff',\n variable: '#edef7dff',\n parameter: '#edef7dff',\n function: '#ffb454ff',\n string: '#edef7dff',\n constant: '#ec0d1e',\n type: '#9df39fff',\n class: '#fec758ff',\n number: '#994646ff',\n comment: '#e7c0c0ff',\n heading: '#fec758ff',\n invalid: '#ffffffff',\n regexp: '#edef7dff',\n tag: '#aa5507ff'\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { config } from './color';\nexport var defaultSettingsRed = {\n background: config.background,\n foreground: config.foreground,\n caret: config.cursor,\n selection: config.selection,\n selectionMatch: config.selection,\n gutterBackground: config.background,\n gutterForeground: config.foreground,\n lineHighlight: config.activeLine\n};\nexport var redInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsRed, settings),\n styles: [{\n tag: t.keyword,\n color: config.keyword\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: config.variable\n }, {\n tag: [t.propertyName],\n color: config.function\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: config.string\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: config.function\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: config.constant\n }, {\n tag: [t.definition(t.name), t.separator],\n color: config.variable\n }, {\n tag: [t.className],\n color: config.class\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: config.number\n }, {\n tag: [t.typeName],\n color: config.type,\n fontStyle: config.type\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: config.keyword\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: config.regexp\n }, {\n tag: [t.meta, t.comment],\n color: config.comment\n }, {\n tag: t.tagName,\n color: config.tag\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: config.heading\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: config.variable\n }, {\n tag: t.invalid,\n color: config.invalid\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var red = redInit();","export var config = {\n background: '#002B36',\n foreground: '#839496',\n selection: '#004454AA',\n selectionMatch: '#005A6FAA',\n cursor: '#D30102',\n dropdownBackground: '#00212B',\n dropdownBorder: '#2AA19899',\n activeLine: '#073642',\n matchingBracket: '#073642',\n keyword: '#859900',\n storage: '#93A1A1',\n variable: '#268BD2',\n parameter: '#268BD2',\n function: '#268BD2',\n string: '#2AA198',\n constant: '#CB4B16',\n type: '#859900',\n class: '#268BD2',\n number: '#D33682',\n comment: '#586E75',\n heading: '#268BD2',\n invalid: '#DC322F',\n regexp: '#DC322F',\n tag: '#268BD2'\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { config as c } from './dark-color';\nexport var defaultSettingsSolarizedDark = {\n background: c.background,\n foreground: c.foreground,\n caret: c.cursor,\n selection: c.selection,\n selectionMatch: c.selection,\n gutterBackground: c.background,\n gutterForeground: c.foreground,\n gutterBorder: 'transparent',\n lineHighlight: c.activeLine\n};\nexport var solarizedDarkInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsSolarizedDark, settings),\n styles: [{\n tag: t.keyword,\n color: c.keyword\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: c.variable\n }, {\n tag: [t.propertyName],\n color: c.function\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: c.string\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: c.function\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: c.constant\n }, {\n tag: [t.definition(t.name), t.separator],\n color: c.variable\n }, {\n tag: [t.className],\n color: c.class\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: c.number\n }, {\n tag: [t.typeName],\n color: c.type,\n fontStyle: c.type\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: c.keyword\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: c.regexp\n }, {\n tag: [t.meta, t.comment],\n color: c.comment\n }, {\n tag: t.tagName,\n color: c.tag\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: c.heading\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: c.variable\n }, {\n tag: t.invalid,\n color: c.invalid\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var solarizedDark = solarizedDarkInit();","export var config = {\n background: '#FDF6E3',\n foreground: '#657B83',\n selection: '#EEE8D5',\n selectionMatch: '#EEE8D5',\n cursor: '#657B83',\n dropdownBackground: '#EEE8D5',\n dropdownBorder: '#D3AF86',\n activeLine: '#EEE8D5',\n matchingBracket: '#EEE8D5',\n keyword: '#859900',\n storage: '#586E75',\n variable: '#268BD2',\n parameter: '#268BD2',\n function: '#268BD2',\n string: '#2AA198',\n constant: '#CB4B16',\n type: '#859900',\n class: '#268BD2',\n number: '#D33682',\n comment: '#93A1A1',\n heading: '#268BD2',\n invalid: '#DC322F',\n regexp: '#DC322F',\n tag: '#268BD2'\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { config as c } from './light-color';\nexport var defaultSettingsSolarizedLight = {\n background: c.background,\n foreground: c.foreground,\n caret: c.cursor,\n selection: c.selection,\n selectionMatch: c.selectionMatch,\n gutterBackground: c.background,\n gutterForeground: c.foreground,\n gutterBorder: 'transparent',\n lineHighlight: c.activeLine\n};\nexport var solarizedLightInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsSolarizedLight, settings),\n styles: [{\n tag: t.keyword,\n color: c.keyword\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: c.variable\n }, {\n tag: [t.propertyName],\n color: c.function\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: c.string\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: c.function\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: c.constant\n }, {\n tag: [t.definition(t.name), t.separator],\n color: c.variable\n }, {\n tag: [t.className],\n color: c.class\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: c.number\n }, {\n tag: [t.typeName],\n color: c.type,\n fontStyle: c.type\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: c.keyword\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: c.regexp\n }, {\n tag: [t.meta, t.comment],\n color: c.comment\n }, {\n tag: t.tagName,\n color: c.tag\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: c.heading\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: c.variable\n }, {\n tag: t.invalid,\n color: c.invalid\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var solarizedLight = solarizedLightInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsSublime = {\n background: '#303841',\n foreground: '#FFFFFF',\n caret: '#FBAC52',\n selection: '#4C5964',\n selectionMatch: '#3A546E',\n gutterBackground: '#303841',\n gutterForeground: '#FFFFFF70',\n lineHighlight: '#00000059'\n};\nexport function sublimeInit(options) {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsSublime, settings),\n styles: [{\n tag: [t.meta, t.comment],\n color: '#A2A9B5'\n }, {\n tag: [t.attributeName, t.keyword],\n color: '#B78FBA'\n }, {\n tag: t.function(t.variableName),\n color: '#5AB0B0'\n }, {\n tag: [t.string, t.regexp, t.attributeValue],\n color: '#99C592'\n }, {\n tag: t.operator,\n color: '#f47954'\n },\n // { tag: t.moduleKeyword, color: 'red' },\n {\n tag: [t.tagName, t.modifier],\n color: '#E35F63'\n }, {\n tag: [t.number, t.definition(t.tagName), t.className, t.definition(t.variableName)],\n color: '#fbac52'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#E35F63'\n }, {\n tag: t.variableName,\n color: '#539ac4'\n }, {\n tag: [t.propertyName, t.typeName],\n color: '#629ccd'\n }, {\n tag: t.propertyName,\n color: '#36b7b5'\n }, ...styles]\n });\n}\nexport var sublime = sublimeInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsTokyoNight = {\n background: '#1a1b26',\n foreground: '#787c99',\n caret: '#c0caf5',\n selection: '#515c7e40',\n selectionMatch: '#16161e',\n gutterBackground: '#1a1b26',\n gutterForeground: '#787c99',\n gutterBorder: 'transparent',\n lineHighlight: '#1e202e'\n};\nexport var tokyoNightInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsTokyoNight, settings),\n styles: [{\n tag: t.keyword,\n color: '#bb9af7'\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: '#c0caf5'\n }, {\n tag: [t.propertyName],\n color: '#7aa2f7'\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: '#9ece6a'\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: '#7aa2f7'\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: '#bb9af7'\n }, {\n tag: [t.definition(t.name), t.separator],\n color: '#c0caf5'\n }, {\n tag: [t.className],\n color: '#c0caf5'\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: '#ff9e64'\n }, {\n tag: [t.typeName],\n color: '#0db9d7'\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: '#bb9af7'\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: '#b4f9f8'\n }, {\n tag: [t.meta, t.comment],\n color: '#444b6a'\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#89ddff'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#c0caf5'\n }, {\n tag: t.invalid,\n color: '#ff5370'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var tokyoNight = tokyoNightInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsTokyoNightStorm = {\n background: '#24283b',\n foreground: '#7982a9',\n caret: '#c0caf5',\n selection: '#6f7bb630',\n selectionMatch: '#1f2335',\n gutterBackground: '#24283b',\n gutterForeground: '#7982a9',\n gutterBorder: 'transparent',\n lineHighlight: '#292e42'\n};\nexport var tokyoNightStormInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsTokyoNightStorm, settings),\n styles: [{\n tag: t.keyword,\n color: '#bb9af7'\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: '#c0caf5'\n }, {\n tag: [t.propertyName],\n color: '#7aa2f7'\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: '#9ece6a'\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: '#7aa2f7'\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: '#bb9af7'\n }, {\n tag: [t.definition(t.name), t.separator],\n color: '#c0caf5'\n }, {\n tag: [t.className],\n color: '#c0caf5'\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: '#ff9e64'\n }, {\n tag: [t.typeName],\n color: '#2ac3de',\n fontStyle: '#2ac3de'\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: '#bb9af7'\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: '#b4f9f8'\n }, {\n tag: [t.meta, t.comment],\n color: '#565f89'\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#89ddff'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#c0caf5'\n }, {\n tag: t.invalid,\n color: '#ff5370'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var tokyoNightStorm = tokyoNightStormInit();","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsTokyoNightDay = {\n background: '#e1e2e7',\n foreground: '#3760bf',\n caret: '#3760bf',\n selection: '#99a7df',\n selectionMatch: '#99a7df',\n gutterBackground: '#e1e2e7',\n gutterForeground: '#3760bf',\n gutterBorder: 'transparent',\n lineHighlight: '#5f5faf11'\n};\nexport var tokyoNightDayInit = options => {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsTokyoNightDay, settings),\n styles: [{\n tag: t.keyword,\n color: '#007197'\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: '#3760bf'\n }, {\n tag: [t.propertyName],\n color: '#3760bf'\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: '#587539'\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: '#3760bf'\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: '#3760bf'\n }, {\n tag: [t.definition(t.name), t.separator],\n color: '#3760bf'\n }, {\n tag: [t.className],\n color: '#3760bf'\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: '#b15c00'\n }, {\n tag: [t.typeName],\n color: '#007197',\n fontStyle: '#007197'\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: '#007197'\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: '#587539'\n }, {\n tag: [t.meta, t.comment],\n color: '#848cb5'\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#b15c00'\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: '#3760bf'\n }, {\n tag: t.invalid,\n color: '#f52a65'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var tokyoNightDay = tokyoNightDayInit();","export var config = {\n background: '#002451',\n foreground: '#ffffff',\n selection: '#003f8e',\n selectionMatch: '#003f8e',\n cursor: '#ffffff',\n dropdownBackground: '#001733',\n activeLine: '#00346e',\n matchingBracket: '#00346e',\n keyword: '#EBBBFF',\n storage: '#EBBBFF',\n variable: '#FFC58F',\n parameter: '#FFC58F',\n function: '#BBDAFF',\n string: '#D1F1A9',\n constant: '#FFC58F',\n type: '#FFEEAD',\n class: '#BBDAFF',\n number: '#FFC58F',\n comment: '#7285B7',\n heading: '#D1F1A9',\n invalid: '#a92049',\n regexp: '#D1F1A9',\n tag: '#FF9DA4'\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { config as c } from './color';\nexport var defaultSettingsTomorrowNightBlue = {\n background: c.background,\n foreground: c.foreground,\n caret: c.cursor,\n selection: c.selection,\n selectionMatch: c.selection,\n gutterBackground: c.background,\n gutterForeground: c.foreground,\n lineHighlight: c.activeLine\n};\nexport var tomorrowNightBlueInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsTomorrowNightBlue, settings),\n styles: [{\n tag: t.keyword,\n color: c.keyword\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName],\n color: c.variable\n }, {\n tag: [t.propertyName],\n color: c.function\n }, {\n tag: [t.processingInstruction, t.string, t.inserted, t.special(t.string)],\n color: c.string\n }, {\n tag: [t.function(t.variableName), t.labelName],\n color: c.function\n }, {\n tag: [t.color, t.constant(t.name), t.standard(t.name)],\n color: c.constant\n }, {\n tag: [t.definition(t.name), t.separator],\n color: c.variable\n }, {\n tag: [t.className],\n color: c.class\n }, {\n tag: [t.number, t.changed, t.annotation, t.modifier, t.self, t.namespace],\n color: c.number\n }, {\n tag: [t.typeName],\n color: c.type,\n fontStyle: c.type\n }, {\n tag: [t.operator, t.operatorKeyword],\n color: c.keyword\n }, {\n tag: [t.url, t.escape, t.regexp, t.link],\n color: c.regexp\n }, {\n tag: [t.meta, t.comment],\n color: c.comment\n }, {\n tag: t.tagName,\n color: c.tag\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.link,\n textDecoration: 'underline'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: c.heading\n }, {\n tag: [t.atom, t.bool, t.special(t.variableName)],\n color: c.variable\n }, {\n tag: t.invalid,\n color: c.invalid\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, ...styles]\n });\n};\nexport var tomorrowNightBlue = tomorrowNightBlueInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * https://github.com/uiwjs/react-codemirror/issues/409\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsVscodeDark = {\n background: '#1e1e1e',\n foreground: '#9cdcfe',\n caret: '#c6c6c6',\n selection: '#6199ff2f',\n selectionMatch: '#72a1ff59',\n lineHighlight: '#ffffff0f',\n gutterBackground: '#1e1e1e',\n gutterForeground: '#838383',\n gutterActiveForeground: '#fff',\n fontFamily: 'Menlo, Monaco, Consolas, \"Andale Mono\", \"Ubuntu Mono\", \"Courier New\", monospace'\n};\nexport function vscodeDarkInit(options) {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsVscodeDark, settings),\n styles: [{\n tag: [t.keyword, t.operatorKeyword, t.modifier, t.color, t.constant(t.name), t.standard(t.name), t.standard(t.tagName), t.special(t.brace), t.atom, t.bool, t.special(t.variableName)],\n color: '#569cd6'\n }, {\n tag: [t.controlKeyword, t.moduleKeyword],\n color: '#c586c0'\n }, {\n tag: [t.name, t.deleted, t.character, t.macroName, t.propertyName, t.variableName, t.labelName, t.definition(t.name)],\n color: '#9cdcfe'\n }, {\n tag: t.heading,\n fontWeight: 'bold',\n color: '#9cdcfe'\n }, {\n tag: [t.typeName, t.className, t.tagName, t.number, t.changed, t.annotation, t.self, t.namespace],\n color: '#4ec9b0'\n }, {\n tag: [t.function(t.variableName), t.function(t.propertyName)],\n color: '#dcdcaa'\n }, {\n tag: [t.number],\n color: '#b5cea8'\n }, {\n tag: [t.operator, t.punctuation, t.separator, t.url, t.escape, t.regexp],\n color: '#d4d4d4'\n }, {\n tag: [t.regexp],\n color: '#d16969'\n }, {\n tag: [t.special(t.string), t.processingInstruction, t.string, t.inserted],\n color: '#ce9178'\n }, {\n tag: [t.angleBracket],\n color: '#808080'\n }, {\n tag: t.strong,\n fontWeight: 'bold'\n }, {\n tag: t.emphasis,\n fontStyle: 'italic'\n }, {\n tag: t.strikethrough,\n textDecoration: 'line-through'\n }, {\n tag: [t.meta, t.comment],\n color: '#6a9955'\n }, {\n tag: t.link,\n color: '#6a9955',\n textDecoration: 'underline'\n }, {\n tag: t.invalid,\n color: '#ff0000'\n }, ...styles]\n });\n}\nexport var vscodeDark = vscodeDarkInit();","import _extends from \"@babel/runtime/helpers/extends\";\n/**\n * @name Xcode\n */\nimport { tags as t } from '@lezer/highlight';\nimport { createTheme } from '@uiw/codemirror-themes';\nexport var defaultSettingsXcodeLight = {\n background: '#fff',\n foreground: '#3D3D3D',\n selection: '#BBDFFF',\n selectionMatch: '#BBDFFF',\n gutterBackground: '#fff',\n gutterForeground: '#AFAFAF',\n lineHighlight: '#EDF4FF'\n};\nexport function xcodeLightInit(options) {\n var {\n theme = 'light',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsXcodeLight, settings),\n styles: [{\n tag: [t.comment, t.quote],\n color: '#707F8D'\n }, {\n tag: [t.typeName, t.typeOperator],\n color: '#aa0d91'\n }, {\n tag: [t.keyword],\n color: '#aa0d91',\n fontWeight: 'bold'\n }, {\n tag: [t.string, t.meta],\n color: '#D23423'\n }, {\n tag: [t.name],\n color: '#032f62'\n }, {\n tag: [t.typeName],\n color: '#522BB2'\n }, {\n tag: [t.variableName],\n color: '#23575C'\n }, {\n tag: [t.definition(t.variableName)],\n color: '#327A9E'\n }, {\n tag: [t.regexp, t.link],\n color: '#0e0eff'\n }, ...styles]\n });\n}\nexport var xcodeLight = xcodeLightInit();\nexport var defaultSettingsXcodeDark = {\n background: '#292A30',\n foreground: '#CECFD0',\n caret: '#fff',\n selection: '#727377',\n selectionMatch: '#727377',\n lineHighlight: '#2F3239'\n};\nexport var xcodeDarkInit = options => {\n var {\n theme = 'dark',\n settings = {},\n styles = []\n } = options || {};\n return createTheme({\n theme: theme,\n settings: _extends({}, defaultSettingsXcodeDark, settings),\n styles: [{\n tag: [t.comment, t.quote],\n color: '#7F8C98'\n }, {\n tag: [t.keyword],\n color: '#FF7AB2',\n fontWeight: 'bold'\n }, {\n tag: [t.string, t.meta],\n color: '#FF8170'\n }, {\n tag: [t.typeName],\n color: '#DABAFF'\n }, {\n tag: [t.definition(t.variableName)],\n color: '#6BDFFF'\n }, {\n tag: [t.name],\n color: '#6BAA9F'\n }, {\n tag: [t.variableName],\n color: '#ACF2E4'\n }, {\n tag: [t.regexp, t.link],\n color: '#FF8170'\n }, ...styles]\n });\n};\nexport var xcodeDark = xcodeDarkInit();"],"names":["createTheme","_ref","theme","settings","styles","themeOptions","baseStyle","background","backgroundColor","foreground","color","fontFamily","gutterBackground","gutterForeground","gutterBorder","borderRightColor","caret","caretColor","borderLeftColor","activeLineGutterStyle","gutterActiveForeground","lineHighlight","selection","selectionMatch","themeExtension","EditorView","dark","highlightStyle","HighlightStyle","define","syntaxHighlighting","defaultSettingsAbcdef","abcdefInit","options","_extends","tag","t","keyword","fontWeight","atom","comment","fontStyle","number","definition","variableName","function","typeName","tagName","string","meta","bracket","attributeName","heading","link","abcdef","config","defaultSettingsAbyss","abyssInit","name","deleted","character","macroName","propertyName","processingInstruction","inserted","special","labelName","constant","standard","separator","className","changed","annotation","modifier","self","namespace","operator","operatorKeyword","url","escape","regexp","strong","emphasis","textDecoration","bool","invalid","strikethrough","abyss","defaultSettingsAndroidstudio","androidstudioInit","literal","derefOperator","quote","documentMeta","attributeValue","androidstudio","defaultSettingsAtomone","atomoneInit","atomone","defaultSettingsAura","auraInit","aura","defaultSettingsBbedit","bbeditInit","list","bbedit","defaultSettingsBespin","bespinInit","bespin","defaultSettingsDarcula","darculaInit","darcula","defaultSettingsDracula","draculaInit","dracula","defaultSettingsDuotoneLight","duotoneLightInit","unit","punctuation","duotoneLight","defaultSettingsDuotoneDark","duotoneDarkInit","duotoneDark","defaultSettingsEclipse","eclipseInit","eclipse","defaultSettingsGithubLight","githubLightInit","typeOperator","githubLight","defaultSettingsGithubDark","githubDarkInit","githubDark","defaultSettingsGruvboxDark","gruvboxDarkInit","brace","squareBracket","angleBracket","textUnderlinePosition","heading1","heading2","heading3","heading4","heading5","heading6","contentSeparator","borderBottom","gruvboxDark","defaultSettingsGruvboxLight","gruvboxLightInit","gruvboxLight","defaultSettingsKimbie","kimbieInit","kimbie","defaultSettingsMaterial","defaultSettingsMaterialDark","materialInit","monospace","materialDarkInit","materialDark","material","defaultSettingsMaterialLight","materialLightInit","materialLight","defaultSettingsMonokai","monokaiInit","monokai","defaultSettingsMonokaiDimmed","monokaiDimmedInit","monokaiDimmed","defaultSettingsNoctisLilac","noctisLilacInit","definitionKeyword","null","paren","noctisLilac","defaultSettingsNord","nordInit","nord","defaultSettingsOkaidia","okaidiaInit","okaidia","defaultSettingsQuietlight","quietlightInit","quietlight","defaultSettingsRed","redInit","red","defaultSettingsSolarizedDark","c","solarizedDarkInit","solarizedDark","defaultSettingsSolarizedLight","solarizedLightInit","solarizedLight","defaultSettingsSublime","sublimeInit","sublime","defaultSettingsTokyoNight","tokyoNightInit","tokyoNight","defaultSettingsTokyoNightStorm","tokyoNightStormInit","tokyoNightStorm","defaultSettingsTokyoNightDay","tokyoNightDayInit","tokyoNightDay","defaultSettingsTomorrowNightBlue","tomorrowNightBlueInit","tomorrowNightBlue","defaultSettingsVscodeDark","vscodeDarkInit","controlKeyword","moduleKeyword","vscodeDark","defaultSettingsXcodeLight","xcodeLightInit","xcodeLight","defaultSettingsXcodeDark","xcodeDarkInit","xcodeDark"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1726.079d5ab0.chunk.js b/static/js/1726.079d5ab0.chunk.js new file mode 100644 index 000000000..294a6f0d9 --- /dev/null +++ b/static/js/1726.079d5ab0.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1726],{51726:(e,i,n)=>{n.r(i),n.d(i,{default:()=>t});const t={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Kimbie Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-kimbie.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie)\n\nKimbie theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json).\n\n\n \"codemirror-theme-kimbie\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-kimbie --save\n```\n\n```jsx\nimport { kimbie, kimbieInit } from '@uiw/codemirror-theme-kimbie';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\nexport declare const kimbieInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const kimbie: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { kimbie } from '@uiw/codemirror-theme-kimbie';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { kimbie } from '@uiw/codemirror-theme-kimbie';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [kimbie, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=1726.079d5ab0.chunk.js.map \ No newline at end of file diff --git a/static/js/1726.079d5ab0.chunk.js.map b/static/js/1726.079d5ab0.chunk.js.map new file mode 100644 index 000000000..46c705068 --- /dev/null +++ b/static/js/1726.079d5ab0.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1726.079d5ab0.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,muFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/kimbie/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Kimbie Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-kimbie.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie)\\n\\nKimbie theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-kimbie-dark/themes/kimbie-dark-color-theme.json).\\n\\n\\n \\\"codemirror-theme-kimbie\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-kimbie --save\\n```\\n\\n```jsx\\nimport { kimbie, kimbieInit } from '@uiw/codemirror-theme-kimbie';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\\nexport declare const kimbieInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const kimbie: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { kimbie } from '@uiw/codemirror-theme-kimbie';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { kimbie } from '@uiw/codemirror-theme-kimbie';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [kimbie, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1771.379febe5.chunk.js b/static/js/1771.379febe5.chunk.js new file mode 100644 index 000000000..d3f3a31d0 --- /dev/null +++ b/static/js/1771.379febe5.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1771],{21771:(e,s,w)=>{w.r(s),w.d(s,{Component:()=>a});var n=w(18930),t=w(79584);const a=()=>(0,t.jsx)(n.MB,{path:()=>Promise.all([w.e(7474),w.e(5670)]).then(w.bind(w,95670))})}}]); +//# sourceMappingURL=1771.379febe5.chunk.js.map \ No newline at end of file diff --git a/static/js/1771.379febe5.chunk.js.map b/static/js/1771.379febe5.chunk.js.map new file mode 100644 index 000000000..5d56a27ed --- /dev/null +++ b/static/js/1771.379febe5.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1771.379febe5.chunk.js","mappings":"qJAEO,MAAMA,EAAYA,KAChBC,EAAAA,EAAAA,KAACC,EAAAA,GAAO,CAACC,KAAMA,IAAM,0D","sources":["pages/merge/examples/onchange.tsx"],"sourcesContent":["import { Preview } from '../../theme/Preview';\n\nexport const Component = () => {\n return import('./Example.md')} />;\n};\n"],"names":["Component","_jsx","Preview","path"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1811.3fdc7306.chunk.js b/static/js/1811.3fdc7306.chunk.js new file mode 100644 index 000000000..e249cdbbe --- /dev/null +++ b/static/js/1811.3fdc7306.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1811],{51811:(t,e,r)=>{r.r(e),r.d(e,{default:()=>n});const n={components:{},data:{},source:'# Custom Codemirror Themes\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-themes.svg)](https://www.npmjs.com/package/@uiw/codemirror-themes)\n\nThemes for CodeMirror.\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-themes --save\n```\n\n## Usage\n\n```js\nimport { EditorView } from \'@codemirror/view\';\nimport { EditorState } from \'@codemirror/state\';\nimport { createTheme } from \'@uiw/codemirror-themes\';\nimport { javascript } from \'@codemirror/lang-javascript\';\nimport { tags as t } from \'@lezer/highlight\';\n\nconst myTheme = createTheme({\n theme: \'light\',\n settings: {\n background: \'#ffffff\',\n backgroundImage: \'\',\n foreground: \'#75baff\',\n caret: \'#5d00ff\',\n selection: \'#036dd626\',\n selectionMatch: \'#036dd626\',\n lineHighlight: \'#8a91991a\',\n gutterBorder: \'1px solid #ffffff10\',\n gutterBackground: \'#fff\',\n gutterForeground: \'#8a919966\',\n },\n styles: [\n { tag: t.comment, color: \'#787b8099\' },\n { tag: t.variableName, color: \'#0080ff\' },\n { tag: [t.string, t.special(t.brace)], color: \'#5c6166\' },\n { tag: t.number, color: \'#5c6166\' },\n { tag: t.bool, color: \'#5c6166\' },\n { tag: t.null, color: \'#5c6166\' },\n { tag: t.keyword, color: \'#5c6166\' },\n { tag: t.operator, color: \'#5c6166\' },\n { tag: t.className, color: \'#5c6166\' },\n { tag: t.definition(t.typeName), color: \'#5c6166\' },\n { tag: t.typeName, color: \'#5c6166\' },\n { tag: t.angleBracket, color: \'#5c6166\' },\n { tag: t.tagName, color: \'#5c6166\' },\n { tag: t.attributeName, color: \'#5c6166\' },\n ],\n});\n\nconst state = EditorState.create({\n doc: \'my source code\',\n extensions: [myTheme, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector(\'#editor\'),\n state,\n});\n```\n\n```jsx\nimport CodeMirror from \'@uiw/react-codemirror\';\nimport { createTheme } from \'@uiw/codemirror-themes\';\nimport { javascript } from \'@codemirror/lang-javascript\';\nimport { tags as t } from \'@lezer/highlight\';\n\nconst myTheme = createTheme({\n theme: \'light\',\n settings: {\n background: \'#ffffff\',\n backgroundImage: \'\',\n foreground: \'#75baff\',\n caret: \'#5d00ff\',\n selection: \'#036dd626\',\n selectionMatch: \'#036dd626\',\n lineHighlight: \'#8a91991a\',\n gutterBackground: \'#fff\',\n gutterForeground: \'#8a919966\',\n },\n styles: [\n { tag: t.comment, color: \'#787b8099\' },\n { tag: t.variableName, color: \'#0080ff\' },\n { tag: [t.string, t.special(t.brace)], color: \'#5c6166\' },\n { tag: t.number, color: \'#5c6166\' },\n { tag: t.bool, color: \'#5c6166\' },\n { tag: t.null, color: \'#5c6166\' },\n { tag: t.keyword, color: \'#5c6166\' },\n { tag: t.operator, color: \'#5c6166\' },\n { tag: t.className, color: \'#5c6166\' },\n { tag: t.definition(t.typeName), color: \'#5c6166\' },\n { tag: t.typeName, color: \'#5c6166\' },\n { tag: t.angleBracket, color: \'#5c6166\' },\n { tag: t.tagName, color: \'#5c6166\' },\n { tag: t.attributeName, color: \'#5c6166\' },\n ],\n});\n\nfunction App() {\n return (\n {\n console.log(\'value:\', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n## Themes\n\n**abcdef**\n\n\n codemirror-theme-abcdef\n\n\n**android studio**\n\n\n codemirror-theme-androidstudio\n\n\n**atom one**\n\n\n codemirror-theme-androidstudio\n\n\n**aura**\n\n\n codemirror-theme-aura\n\n\n**bbedit**\n\n\n codemirror-theme-bbedit\n\n\n**bespin**\n\n\n codemirror-theme-bespin\n\n\n**darcula**\n\n\n codemirror-theme-darcula\n\n\n**dracula**\n\n\n codemirror-theme-dracula\n\n\n**duotone**\n\n\n codemirror-theme-duotone dark\n\n\n\n codemirror-theme-duotone light\n\n\n**eclipse**\n\n\n codemirror-theme-eclipse\n\n\n**github**\n\n\n codemirror-theme-github dark\n\n\n\n codemirror-theme-github light\n\n\n**gruvbox**\n\n\n codemirror-theme-gruvbox-dark\n\n\n\n codemirror-theme-eclipse\n\n\n**material**\n\n\n codemirror-theme-material\n\n\n\n codemirror-theme-material\n\n\n**noctis-lilac**\n\n\n codemirror-theme-noctis-lilac\n\n\n**nord**\n\n\n codemirror-theme-nord\n\n\n**okaidia**\n\n\n codemirror-theme-okaidia\n\n\n**solarized**\n\n\n codemirror-theme-solarized\n\n\n\n codemirror-theme-solarized\n\n\n**sublime**\n\n\n codemirror-theme-sublime\n\n\n**tokyo-night**\n\n\n codemirror-theme-tokyo-night\n\n\n**tokyo-night-day**\n\n\n codemirror-theme-tokyo-night-day\n\n\n**tokyo-night-storm**\n\n\n codemirror-theme-tokyo-night-storm\n\n\n**vscode**\n\n\n codemirror-theme-vscode dark\n\n\n**xcode**\n\n\n codemirror-theme-xcode dark\n\n\n\n codemirror-theme-xcode light\n\n\n## Props\n\n```ts\nimport { Extension } from \'@codemirror/state\';\nimport { TagStyle } from \'@codemirror/language\';\nexport interface CreateThemeOptions {\n /**\n * Theme inheritance. Determines which styles CodeMirror will apply by default.\n */\n theme: Theme;\n /**\n * Settings to customize the look of the editor, like background, gutter, selection and others.\n */\n settings: Settings;\n /** Syntax highlighting styles. */\n styles: TagStyle[];\n}\ntype Theme = \'light\' | \'dark\';\nexport interface Settings {\n /** Editor background color. */\n background?: string;\n /** Editor background image. */\n backgroundImage?: string;\n /** Default text color. */\n foreground?: string;\n /** Caret color. */\n caret?: string;\n /** Selection background. */\n selection?: string;\n /** Selection match background. */\n selectionMatch?: string;\n /** Background of highlighted lines. */\n lineHighlight?: string;\n /** Gutter background. */\n gutterBackground?: string;\n /** Text color inside gutter. */\n gutterForeground?: string;\n /** Text active color inside gutter. */\n gutterActiveForeground?: string;\n /** Gutter right border color. */\n gutterBorder?: string;\n /** set editor font */\n fontFamily?: string;\n}\nexport declare const createTheme: ({ theme, settings, styles }: CreateThemeOptions) => Extension;\nexport default createTheme;\n```\n\n### Related\n\n- [@uiw/react-textarea-code-editor](https://github.com/uiwjs/react-textarea-code-editor): A simple code editor with syntax highlighting.\n- [@uiw/react-md-editor](https://github.com/uiwjs/react-md-editor): A simple markdown editor with preview, implemented with React.js and TypeScript.\n- [@uiw/react-monacoeditor](https://github.com/jaywcjlove/react-monacoeditor): Monaco Editor component for React.\n- [@uiw/react-markdown-editor](https://github.com/uiwjs/react-markdown-editor): A markdown editor with preview, implemented with React.js and TypeScript.\n- [@uiw/react-markdown-preview](https://github.com/uiwjs/react-markdown-preview): React component preview markdown text in web browser.\n- [Online JSON Viewer](https://github.com/uiwjs/json-viewer) Online JSON Viewer, JSON Beautifier to beautify and tree view of JSON data - It works as JSON Pretty Print to pretty print JSON data.\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n',headings:[],headingsList:[]}}}]); +//# sourceMappingURL=1811.3fdc7306.chunk.js.map \ No newline at end of file diff --git a/static/js/1811.3fdc7306.chunk.js.map b/static/js/1811.3fdc7306.chunk.js.map new file mode 100644 index 000000000..c5714cfb4 --- /dev/null +++ b/static/js/1811.3fdc7306.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1811.3fdc7306.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,+ibACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/theme/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"# Custom Codemirror Themes\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-themes.svg)](https://www.npmjs.com/package/@uiw/codemirror-themes)\\n\\nThemes for CodeMirror.\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-themes --save\\n```\\n\\n## Usage\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { createTheme } from '@uiw/codemirror-themes';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { tags as t } from '@lezer/highlight';\\n\\nconst myTheme = createTheme({\\n theme: 'light',\\n settings: {\\n background: '#ffffff',\\n backgroundImage: '',\\n foreground: '#75baff',\\n caret: '#5d00ff',\\n selection: '#036dd626',\\n selectionMatch: '#036dd626',\\n lineHighlight: '#8a91991a',\\n gutterBorder: '1px solid #ffffff10',\\n gutterBackground: '#fff',\\n gutterForeground: '#8a919966',\\n },\\n styles: [\\n { tag: t.comment, color: '#787b8099' },\\n { tag: t.variableName, color: '#0080ff' },\\n { tag: [t.string, t.special(t.brace)], color: '#5c6166' },\\n { tag: t.number, color: '#5c6166' },\\n { tag: t.bool, color: '#5c6166' },\\n { tag: t.null, color: '#5c6166' },\\n { tag: t.keyword, color: '#5c6166' },\\n { tag: t.operator, color: '#5c6166' },\\n { tag: t.className, color: '#5c6166' },\\n { tag: t.definition(t.typeName), color: '#5c6166' },\\n { tag: t.typeName, color: '#5c6166' },\\n { tag: t.angleBracket, color: '#5c6166' },\\n { tag: t.tagName, color: '#5c6166' },\\n { tag: t.attributeName, color: '#5c6166' },\\n ],\\n});\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [myTheme, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { createTheme } from '@uiw/codemirror-themes';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { tags as t } from '@lezer/highlight';\\n\\nconst myTheme = createTheme({\\n theme: 'light',\\n settings: {\\n background: '#ffffff',\\n backgroundImage: '',\\n foreground: '#75baff',\\n caret: '#5d00ff',\\n selection: '#036dd626',\\n selectionMatch: '#036dd626',\\n lineHighlight: '#8a91991a',\\n gutterBackground: '#fff',\\n gutterForeground: '#8a919966',\\n },\\n styles: [\\n { tag: t.comment, color: '#787b8099' },\\n { tag: t.variableName, color: '#0080ff' },\\n { tag: [t.string, t.special(t.brace)], color: '#5c6166' },\\n { tag: t.number, color: '#5c6166' },\\n { tag: t.bool, color: '#5c6166' },\\n { tag: t.null, color: '#5c6166' },\\n { tag: t.keyword, color: '#5c6166' },\\n { tag: t.operator, color: '#5c6166' },\\n { tag: t.className, color: '#5c6166' },\\n { tag: t.definition(t.typeName), color: '#5c6166' },\\n { tag: t.typeName, color: '#5c6166' },\\n { tag: t.angleBracket, color: '#5c6166' },\\n { tag: t.tagName, color: '#5c6166' },\\n { tag: t.attributeName, color: '#5c6166' },\\n ],\\n});\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n## Themes\\n\\n**abcdef**\\n\\n\\n \\\"codemirror-theme-abcdef\\\"\\n\\n\\n**android studio**\\n\\n\\n \\\"codemirror-theme-androidstudio\\\"\\n\\n\\n**atom one**\\n\\n\\n \\\"codemirror-theme-androidstudio\\\"\\n\\n\\n**aura**\\n\\n\\n \\\"codemirror-theme-aura\\\"\\n\\n\\n**bbedit**\\n\\n\\n \\\"codemirror-theme-bbedit\\\"\\n\\n\\n**bespin**\\n\\n\\n \\\"codemirror-theme-bespin\\\"\\n\\n\\n**darcula**\\n\\n\\n \\\"codemirror-theme-darcula\\\"\\n\\n\\n**dracula**\\n\\n\\n \\\"codemirror-theme-dracula\\\"\\n\\n\\n**duotone**\\n\\n\\n \\\"codemirror-theme-duotone\\n\\n\\n\\n \\\"codemirror-theme-duotone\\n\\n\\n**eclipse**\\n\\n\\n \\\"codemirror-theme-eclipse\\\"\\n\\n\\n**github**\\n\\n\\n \\\"codemirror-theme-github\\n\\n\\n\\n \\\"codemirror-theme-github\\n\\n\\n**gruvbox**\\n\\n\\n \\\"codemirror-theme-gruvbox-dark\\\"\\n\\n\\n\\n \\\"codemirror-theme-eclipse\\\"\\n\\n\\n**material**\\n\\n\\n \\\"codemirror-theme-material\\\"\\n\\n\\n\\n \\\"codemirror-theme-material\\\"\\n\\n\\n**noctis-lilac**\\n\\n\\n \\\"codemirror-theme-noctis-lilac\\\"\\n\\n\\n**nord**\\n\\n\\n \\\"codemirror-theme-nord\\\"\\n\\n\\n**okaidia**\\n\\n\\n \\\"codemirror-theme-okaidia\\\"\\n\\n\\n**solarized**\\n\\n\\n \\\"codemirror-theme-solarized\\\"\\n\\n\\n\\n \\\"codemirror-theme-solarized\\\"\\n\\n\\n**sublime**\\n\\n\\n \\\"codemirror-theme-sublime\\\"\\n\\n\\n**tokyo-night**\\n\\n\\n \\\"codemirror-theme-tokyo-night\\\"\\n\\n\\n**tokyo-night-day**\\n\\n\\n \\\"codemirror-theme-tokyo-night-day\\\"\\n\\n\\n**tokyo-night-storm**\\n\\n\\n \\\"codemirror-theme-tokyo-night-storm\\\"\\n\\n\\n**vscode**\\n\\n\\n \\\"codemirror-theme-vscode\\n\\n\\n**xcode**\\n\\n\\n \\\"codemirror-theme-xcode\\n\\n\\n\\n \\\"codemirror-theme-xcode\\n\\n\\n## Props\\n\\n```ts\\nimport { Extension } from '@codemirror/state';\\nimport { TagStyle } from '@codemirror/language';\\nexport interface CreateThemeOptions {\\n /**\\n * Theme inheritance. Determines which styles CodeMirror will apply by default.\\n */\\n theme: Theme;\\n /**\\n * Settings to customize the look of the editor, like background, gutter, selection and others.\\n */\\n settings: Settings;\\n /** Syntax highlighting styles. */\\n styles: TagStyle[];\\n}\\ntype Theme = 'light' | 'dark';\\nexport interface Settings {\\n /** Editor background color. */\\n background?: string;\\n /** Editor background image. */\\n backgroundImage?: string;\\n /** Default text color. */\\n foreground?: string;\\n /** Caret color. */\\n caret?: string;\\n /** Selection background. */\\n selection?: string;\\n /** Selection match background. */\\n selectionMatch?: string;\\n /** Background of highlighted lines. */\\n lineHighlight?: string;\\n /** Gutter background. */\\n gutterBackground?: string;\\n /** Text color inside gutter. */\\n gutterForeground?: string;\\n /** Text active color inside gutter. */\\n gutterActiveForeground?: string;\\n /** Gutter right border color. */\\n gutterBorder?: string;\\n /** set editor font */\\n fontFamily?: string;\\n}\\nexport declare const createTheme: ({ theme, settings, styles }: CreateThemeOptions) => Extension;\\nexport default createTheme;\\n```\\n\\n### Related\\n\\n- [@uiw/react-textarea-code-editor](https://github.com/uiwjs/react-textarea-code-editor): A simple code editor with syntax highlighting.\\n- [@uiw/react-md-editor](https://github.com/uiwjs/react-md-editor): A simple markdown editor with preview, implemented with React.js and TypeScript.\\n- [@uiw/react-monacoeditor](https://github.com/jaywcjlove/react-monacoeditor): Monaco Editor component for React.\\n- [@uiw/react-markdown-editor](https://github.com/uiwjs/react-markdown-editor): A markdown editor with preview, implemented with React.js and TypeScript.\\n- [@uiw/react-markdown-preview](https://github.com/uiwjs/react-markdown-preview): React component preview markdown text in web browser.\\n- [Online JSON Viewer](https://github.com/uiwjs/json-viewer) Online JSON Viewer, JSON Beautifier to beautify and tree view of JSON data - It works as JSON Pretty Print to pretty print JSON data.\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1876.235e847b.chunk.js b/static/js/1876.235e847b.chunk.js new file mode 100644 index 000000000..71e3eddcf --- /dev/null +++ b/static/js/1876.235e847b.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1876],{91876:(t,e,n)=>{n.r(e),n.d(e,{default:()=>a});const a='@{\n var total = 0;\n var totalMessage = "";\n @* a multiline\n razor comment embedded in csharp *@\n if (IsPost) {\n\n // Retrieve the numbers that the user entered.\n var num1 = Request["text1"];\n var num2 = Request["text2"];\n\n // Convert the entered strings into integers numbers and add.\n total = num1.AsInt() + num2.AsInt();\n totalMessage = "Total = " + total;\n }\n}\n\n\n\n \n Add Numbers\n \n \n\n

Enter two whole numbers and then click Add.

\n
\n

\n \n

\n

\n \n

\n

\n
\n\n @* now we call the totalMessage method \n (a multi line razor comment outside code) *@\n\n

@totalMessage

\n \n

@(totalMessage+"!")

\n \n An email address (with escaped at character): name@@domain.com\n \n\n\n'}}]); +//# sourceMappingURL=1876.235e847b.chunk.js.map \ No newline at end of file diff --git a/static/js/1876.235e847b.chunk.js.map b/static/js/1876.235e847b.chunk.js.map new file mode 100644 index 000000000..215aa6925 --- /dev/null +++ b/static/js/1876.235e847b.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1876.235e847b.chunk.js","mappings":"yHAAA,msC","sources":["../../node_modules/code-example/txt/sample.razor.txt"],"sourcesContent":["export default \"@{\\n var total = 0;\\n var totalMessage = \\\"\\\";\\n @* a multiline\\n razor comment embedded in csharp *@\\n if (IsPost) {\\n\\n // Retrieve the numbers that the user entered.\\n var num1 = Request[\\\"text1\\\"];\\n var num2 = Request[\\\"text2\\\"];\\n\\n // Convert the entered strings into integers numbers and add.\\n total = num1.AsInt() + num2.AsInt();\\n totalMessage = \\\"Total = \\\" + total;\\n }\\n}\\n\\n\\n\\n \\n Add Numbers\\n \\n \\n\\n

Enter two whole numbers and then click Add.

\\n
\\n

\\n \\n

\\n

\\n \\n

\\n

\\n
\\n\\n @* now we call the totalMessage method \\n (a multi line razor comment outside code) *@\\n\\n

@totalMessage

\\n \\n

@(totalMessage+\\\"!\\\")

\\n \\n An email address (with escaped at character): name@@domain.com\\n \\n\\n\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1958.7b7388ba.chunk.js b/static/js/1958.7b7388ba.chunk.js new file mode 100644 index 000000000..e4f9163aa --- /dev/null +++ b/static/js/1958.7b7388ba.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[1958],{71958:(e,n,s)=>{s.r(n),s.d(n,{default:()=>r});const r='# Example of a .gitconfig file\n\n[core]\n repositoryformatversion = 0\n filemode = false\n bare = false\n logallrefupdates = true\n symlinks = false\n ignorecase = true\n hideDotFiles = dotGitOnly\n\n# Defines the master branch\n[branch "master"]\n remote = origin\n merge = refs/heads/master\n'}}]); +//# sourceMappingURL=1958.7b7388ba.chunk.js.map \ No newline at end of file diff --git a/static/js/1958.7b7388ba.chunk.js.map b/static/js/1958.7b7388ba.chunk.js.map new file mode 100644 index 000000000..bf2167317 --- /dev/null +++ b/static/js/1958.7b7388ba.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1958.7b7388ba.chunk.js","mappings":"yHAAA,0T","sources":["../../node_modules/code-example/txt/sample.ini.txt"],"sourcesContent":["export default \"# Example of a .gitconfig file\\n\\n[core]\\n repositoryformatversion = 0\\n filemode = false\\n bare = false\\n logallrefupdates = true\\n symlinks = false\\n ignorecase = true\\n hideDotFiles = dotGitOnly\\n\\n# Defines the master branch\\n[branch \\\"master\\\"]\\n remote = origin\\n merge = refs/heads/master\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2007.2b9194e0.chunk.js b/static/js/2007.2b9194e0.chunk.js new file mode 100644 index 000000000..977f397f9 --- /dev/null +++ b/static/js/2007.2b9194e0.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2007],{2007:(e,t,n)=>{n.r(t),n.d(t,{Component:()=>g,EventsExample:()=>f});var o=n(50669),s=n(50389);function r(e){var{type:t="scroll",events:n}=e;return s.lg.fromClass(class{constructor(e){this.dom=void 0,this.view=void 0,this.view=e,this.dom="dom"===t?e.dom:"content"===t?e.contentDOM:e.scrollDOM,Object.keys(n||{}).forEach((e=>{n&&n[e]&&this.dom&&this.dom.addEventListener(e,n[e])}))}destroy(){Object.keys(n||{}).forEach((e=>{n&&n[e]&&this.dom&&this.dom.removeEventListener(e,n[e])}))}})}function d(e){return r({type:"content",events:e})}var c,a=n(4801),i=n(38932),l=n(83528),m=n(20530),h=n(18930),u=n(40878),v=n(18944),p=n(79584);const x=i.ZP.div(c||(c=(0,o.Z)(["\n padding-bottom: 30px;\n"]))),f=()=>{const[e,t]=(0,l.useState)(0),[n,o]=(0,l.useState)(""),{theme:s}=(0,u.F)(),c=(0,l.useContext)(h.Oy);return(0,p.jsxs)(v.Oq,{children:[(0,p.jsx)(a.default,{value:c.mdstr,theme:s,height:"200px !important",style:{margin:"0 0 23px 0"},extensions:[m.RI.markdown(),(i={scroll:e=>{e.target instanceof HTMLElement&&t(e.target.scrollTop)}},r({type:"scroll",events:i})),d({focus:e=>{o("focus")},blur:e=>{o("blur")}})]}),(0,p.jsxs)(x,{children:[e," ",n]})]});var i},g=()=>(0,p.jsx)(h.MB,{path:()=>n.e(2211).then(n.bind(n,32211)),children:(0,p.jsx)(f,{})})},18944:(e,t,n)=>{n.d(t,{Oq:()=>c});var o,s,r=n(50669),d=n(38932);const c=d.ZP.div(o||(o=(0,r.Z)(["\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n"])));d.ZP.div(s||(s=(0,r.Z)(["\n display: flex;\n flex: 1;\n"])))},40878:(e,t,n)=>{n.d(t,{F:()=>s});var o=n(83528);function s(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";const t=document.documentElement.getAttribute("data-color-mode"),[n,s]=(0,o.useState)("dark"===t?"dark":e);return(0,o.useEffect)((()=>{s("dark"===document.documentElement.getAttribute("data-color-mode")?"dark":"light"),document.addEventListener("colorschemechange",(e=>{s(e.detail.colorScheme)}))}),[]),{theme:n,setTheme:s}}}}]); +//# sourceMappingURL=2007.2b9194e0.chunk.js.map \ No newline at end of file diff --git a/static/js/2007.2b9194e0.chunk.js.map b/static/js/2007.2b9194e0.chunk.js.map new file mode 100644 index 000000000..93198b04a --- /dev/null +++ b/static/js/2007.2b9194e0.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2007.2b9194e0.chunk.js","mappings":"wKACA,SAASA,EAAOC,GACd,IAAI,KACFC,EAAO,SAAQ,OACfF,GACEC,EACJ,OAAOE,EAAAA,GAAWC,UAAU,MAC1BC,WAAAA,CAAYC,GACVC,KAAKC,SAAM,EACXD,KAAKD,UAAO,EACZC,KAAKD,KAAOA,EAEVC,KAAKC,IADM,QAATN,EACSI,EAAKE,IACE,YAATN,EACEI,EAAKG,WAELH,EAAKI,UAElBC,OAAOC,KAAKZ,GAAU,CAAC,GAAGa,SAAQC,IAC5Bd,GAAUA,EAAOc,IAAYP,KAAKC,KACpCD,KAAKC,IAAIO,iBAAiBD,EAASd,EAAOc,GAC5C,GAEJ,CACAE,OAAAA,GACEL,OAAOC,KAAKZ,GAAU,CAAC,GAAGa,SAAQC,IAC5Bd,GAAUA,EAAOc,IAAYP,KAAKC,KACpCD,KAAKC,IAAIS,oBAAoBH,EAASd,EAAOc,GAC/C,GAEJ,GAEJ,CAyBO,SAASI,EAAQjB,GACtB,OAAOD,EAAO,CACZE,KAAM,UACNF,OAAQC,GAEZ,C,6FCrDA,MAAMkB,EAAOC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,mCAIVC,EAAgBA,KAC3B,MAAOC,EAAWC,IAAgBC,EAAAA,EAAAA,UAAS,IACpCC,EAAWC,IAAgBF,EAAAA,EAAAA,UAAS,KACrC,MAAEG,IAAUC,EAAAA,EAAAA,KACZC,GAASC,EAAAA,EAAAA,YAAWC,EAAAA,IAC1B,OACEC,EAAAA,EAAAA,MAACC,EAAAA,GAAW,CAAAC,SAAA,EACVC,EAAAA,EAAAA,KAACC,EAAAA,QAAU,CACTC,MAAOR,EAAOS,MACdX,MAAOA,EACPY,OAAO,mBACPC,MAAO,CAAEC,OAAQ,cACjBC,WAAY,CACVC,EAAAA,GAAMC,YDoBO9C,ECnBC,CACZ+C,OAASC,IACHA,EAAIC,kBAAkBC,aACxBzB,EAAauB,EAAIC,OAAOzB,UAC1B,GDgBLzB,EAAO,CACZE,KAAM,SACNF,OAAQC,KCfFD,EAAe,CACboD,MAAQH,IACNpB,EAAa,QAAQ,EAEvBwB,KAAOJ,IACLpB,EAAa,OAAO,QAK5BM,EAAAA,EAAAA,MAAChB,EAAI,CAAAkB,SAAA,CACFZ,EAAU,IAAEG,QDCd,IAAgB3B,CCCL,EAILqD,EAAYA,KAErBhB,EAAAA,EAAAA,KAACiB,EAAAA,GAAO,CAACC,KAAMA,IAAM,gCAAsDnB,UACzEC,EAAAA,EAAAA,KAACd,EAAa,K,kECpDb,MAAMY,EAAchB,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,4EAMdH,EAAAA,GAAOC,IAAGoC,IAAAA,GAAAlC,EAAAA,EAAAA,GAAA,uC,kDCL1B,SAASQ,IAAyD,IAAhD2B,EAAmCC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,QAC7D,MAAMG,EAAOC,SAASC,gBAAgBC,aAAa,oBAC5CnC,EAAOoC,IAAYvC,EAAAA,EAAAA,UAAiD,SAATmC,EAAkB,OAASJ,GAO7F,OANAS,EAAAA,EAAAA,YAAU,KACRD,EAAsE,SAA7DH,SAASC,gBAAgBC,aAAa,mBAAgC,OAAS,SACxFF,SAAShD,iBAAiB,qBAAsBqD,IAC9CF,EAASE,EAAEC,OAAOC,YAA6C,GAC/D,GACD,IACI,CAAExC,QAAOoC,WAClB,C","sources":["../../extensions/events/esm/index.js","pages/extensions/events/index.tsx","pages/extensions/index.tsx","utils/useTheme.tsx"],"sourcesContent":["import { ViewPlugin } from '@codemirror/view';\nfunction events(opts) {\n var {\n type = 'scroll',\n events\n } = opts;\n return ViewPlugin.fromClass(class {\n constructor(view) {\n this.dom = void 0;\n this.view = void 0;\n this.view = view;\n if (type === 'dom') {\n this.dom = view.dom;\n } else if (type === 'content') {\n this.dom = view.contentDOM;\n } else {\n this.dom = view.scrollDOM;\n }\n Object.keys(events || {}).forEach(keyname => {\n if (events && events[keyname] && this.dom) {\n this.dom.addEventListener(keyname, events[keyname]);\n }\n });\n }\n destroy() {\n Object.keys(events || {}).forEach(keyname => {\n if (events && events[keyname] && this.dom) {\n this.dom.removeEventListener(keyname, events[keyname]);\n }\n });\n }\n });\n}\n/**\n * The DOM element that can be styled to scroll.\n * (Note that it may not have been, so you can't assume this is scrollable.)\n */\nexport function dom(opts) {\n return events({\n type: 'dom',\n events: opts\n });\n}\n/**\n * The DOM element that wraps the entire editor view.\n */\nexport function scroll(opts) {\n return events({\n type: 'scroll',\n events: opts\n });\n}\n/**\n * The editable DOM element holding the editor content.\n * You should not, usually, interact with this content directly though the DOM,\n * since the editor will immediately undo most of the changes you make.\n */\nexport function content(opts) {\n return events({\n type: 'content',\n events: opts\n });\n}","import * as events from '@uiw/codemirror-extensions-events';\nimport CodeMirror from '@uiw/react-codemirror';\nimport styled from 'styled-components';\nimport { useContext, useState } from 'react';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport { Preview, MdContext } from '../../theme/Preview';\nimport { useTheme } from '../../../utils/useTheme';\nimport { PageWarpper } from '..';\n\nconst Info = styled.div`\n padding-bottom: 30px;\n`;\n\nexport const EventsExample = () => {\n const [scrollTop, setScrollTop] = useState(0);\n const [eventType, setEventType] = useState('');\n const { theme } = useTheme();\n const mdData = useContext(MdContext);\n return (\n \n {\n if (evn.target instanceof HTMLElement) {\n setScrollTop(evn.target.scrollTop);\n }\n },\n }),\n events.content({\n focus: (evn) => {\n setEventType('focus');\n },\n blur: (evn) => {\n setEventType('blur');\n },\n }),\n ]}\n />\n \n {scrollTop} {eventType}\n \n \n );\n};\n\nexport const Component = () => {\n return (\n import('@uiw/codemirror-extensions-events/README.md')}>\n \n \n );\n};\n","import styled from 'styled-components';\n\nexport const PageWarpper = styled.div`\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n`;\n\nexport const Content = styled.div`\n display: flex;\n flex: 1;\n`;\n\nexport const Extensions = () => {};\n","import { useEffect, useState } from 'react';\nimport { ReactCodeMirrorProps } from '@uiw/react-codemirror';\n\nexport function useTheme(name: ReactCodeMirrorProps['theme'] = 'light') {\n const dark = document.documentElement.getAttribute('data-color-mode');\n const [theme, setTheme] = useState(dark === 'dark' ? 'dark' : name);\n useEffect(() => {\n setTheme(document.documentElement.getAttribute('data-color-mode') === 'dark' ? 'dark' : 'light');\n document.addEventListener('colorschemechange', (e) => {\n setTheme(e.detail.colorScheme as ReactCodeMirrorProps['theme']);\n });\n }, []);\n return { theme, setTheme };\n}\n"],"names":["events","opts","type","ViewPlugin","fromClass","constructor","view","this","dom","contentDOM","scrollDOM","Object","keys","forEach","keyname","addEventListener","destroy","removeEventListener","content","Info","styled","div","_templateObject","_taggedTemplateLiteral","EventsExample","scrollTop","setScrollTop","useState","eventType","setEventType","theme","useTheme","mdData","useContext","MdContext","_jsxs","PageWarpper","children","_jsx","CodeMirror","value","mdstr","height","style","margin","extensions","langs","markdown","scroll","evn","target","HTMLElement","focus","blur","Component","Preview","path","_templateObject2","name","arguments","length","undefined","dark","document","documentElement","getAttribute","setTheme","useEffect","e","detail","colorScheme"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2012.67266c77.chunk.js b/static/js/2012.67266c77.chunk.js new file mode 100644 index 000000000..2b1919819 --- /dev/null +++ b/static/js/2012.67266c77.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2012],{12012:(e,o,n)=>{n.r(o),n.d(o,{default:()=>i});const i={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# MonokaiDimmed Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-monokai-dimmed.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-monokai-dimmed)\n\nMonokaiDimmed theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json).\n\n\n \"codemirror-theme-monokai-dimmed\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-monokai-dimmed --save\n```\n\n```jsx\nimport { monokaiDimmed, monokaiDimmedInit } from '@uiw/codemirror-theme-monokai-dimmed';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\nexport declare const monokaiDimmedInit: (\n options?: Partial,\n) => import('@codemirror/state').Extension;\nexport declare const monokaiDimmed: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { monokaiDimmed } from '@uiw/codemirror-theme-monokai-dimmed';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { monokaiDimmed } from '@uiw/codemirror-theme-monokai-dimmed';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [monokaiDimmed, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2012.67266c77.chunk.js.map \ No newline at end of file diff --git a/static/js/2012.67266c77.chunk.js.map b/static/js/2012.67266c77.chunk.js.map new file mode 100644 index 000000000..016134a5e --- /dev/null +++ b/static/js/2012.67266c77.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2012.67266c77.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,o4FACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/monokai-dimmed/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# MonokaiDimmed Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-monokai-dimmed.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-monokai-dimmed)\\n\\nMonokaiDimmed theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-monokai-dimmed/themes/dimmed-monokai-color-theme.json).\\n\\n\\n \\\"codemirror-theme-monokai-dimmed\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-monokai-dimmed --save\\n```\\n\\n```jsx\\nimport { monokaiDimmed, monokaiDimmedInit } from '@uiw/codemirror-theme-monokai-dimmed';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\\nexport declare const monokaiDimmedInit: (\\n options?: Partial,\\n) => import('@codemirror/state').Extension;\\nexport declare const monokaiDimmed: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { monokaiDimmed } from '@uiw/codemirror-theme-monokai-dimmed';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { monokaiDimmed } from '@uiw/codemirror-theme-monokai-dimmed';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [monokaiDimmed, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2211.6156ccdf.chunk.js b/static/js/2211.6156ccdf.chunk.js new file mode 100644 index 000000000..c965865c5 --- /dev/null +++ b/static/js/2211.6156ccdf.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2211],{32211:(n,e,t)=>{t.r(e),t.d(e,{default:()=>o});const o={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Events Extensions\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-events.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-events)\n\nEvents Extensions for CodeMirror6.\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-extensions-events --save\n```\n\n```js\nimport * as events from '@uiw/codemirror-extensions-events';\n\nconst extension1 = events.scroll({\n scroll: (evn) => {\n console.log(evn.target.scrollTop);\n },\n});\n\nconst extension2 = events.content({\n focus: (evn) => {\n console.log('focus');\n },\n blur: (evn) => {\n console.log('blur');\n },\n});\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { events } from '@uiw/codemirror-extensions-events';\n\nfunction App() {\n const [scrollTop, setScrollTop] = useState(0);\n\n const eventExt = events.scroll({\n scroll: (evn) => {\n setScrollTop(evn.target.scrollTop);\n },\n });\n\n const eventExt2 = events.content({\n focus: (evn) => {\n console.log('focus');\n },\n blur: (evn) => {\n console.log('blur');\n },\n });\n\n return ;\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { events } from '@uiw/codemirror-extensions-events';\n\nconst eventExt = events.content({\n focus: (evn) => {\n console.log('focus');\n },\n blur: (evn) => {\n console.log('blur');\n },\n});\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [eventExt],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## API\n\n```ts\nimport { ViewPlugin, EditorView } from '@codemirror/view';\nexport declare type Events = Record<\n K,\n (this: HTMLElement, event: HTMLElementEventMap[K]) => void\n>;\n/**\n * The DOM element that can be styled to scroll.\n * (Note that it may not have been, so you can't assume this is scrollable.)\n */\nexport declare function dom(\n opts: Events,\n): ViewPlugin<{\n dom?: HTMLElement | undefined;\n view: EditorView;\n destroy(): void;\n}>;\n/**\n * The DOM element that wraps the entire editor view.\n */\nexport declare function scroll(\n opts: Events,\n): ViewPlugin<{\n dom?: HTMLElement | undefined;\n view: EditorView;\n destroy(): void;\n}>;\n/**\n * The editable DOM element holding the editor content.\n * You should not, usually, interact with this content directly though the DOM,\n * since the editor will immediately undo most of the changes you make.\n */\nexport declare function content(\n opts: Events,\n): ViewPlugin<{\n dom?: HTMLElement | undefined;\n view: EditorView;\n destroy(): void;\n}>;\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2211.6156ccdf.chunk.js.map \ No newline at end of file diff --git a/static/js/2211.6156ccdf.chunk.js.map b/static/js/2211.6156ccdf.chunk.js.map new file mode 100644 index 000000000..7621cc11d --- /dev/null +++ b/static/js/2211.6156ccdf.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2211.6156ccdf.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,igHACRC,SAAS,GACTC,aAAa,G","sources":["../../extensions/events/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Events Extensions\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-events.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-events)\\n\\nEvents Extensions for CodeMirror6.\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-extensions-events --save\\n```\\n\\n```js\\nimport * as events from '@uiw/codemirror-extensions-events';\\n\\nconst extension1 = events.scroll({\\n scroll: (evn) => {\\n console.log(evn.target.scrollTop);\\n },\\n});\\n\\nconst extension2 = events.content({\\n focus: (evn) => {\\n console.log('focus');\\n },\\n blur: (evn) => {\\n console.log('blur');\\n },\\n});\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { events } from '@uiw/codemirror-extensions-events';\\n\\nfunction App() {\\n const [scrollTop, setScrollTop] = useState(0);\\n\\n const eventExt = events.scroll({\\n scroll: (evn) => {\\n setScrollTop(evn.target.scrollTop);\\n },\\n });\\n\\n const eventExt2 = events.content({\\n focus: (evn) => {\\n console.log('focus');\\n },\\n blur: (evn) => {\\n console.log('blur');\\n },\\n });\\n\\n return ;\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { events } from '@uiw/codemirror-extensions-events';\\n\\nconst eventExt = events.content({\\n focus: (evn) => {\\n console.log('focus');\\n },\\n blur: (evn) => {\\n console.log('blur');\\n },\\n});\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [eventExt],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## API\\n\\n```ts\\nimport { ViewPlugin, EditorView } from '@codemirror/view';\\nexport declare type Events = Record<\\n K,\\n (this: HTMLElement, event: HTMLElementEventMap[K]) => void\\n>;\\n/**\\n * The DOM element that can be styled to scroll.\\n * (Note that it may not have been, so you can't assume this is scrollable.)\\n */\\nexport declare function dom(\\n opts: Events,\\n): ViewPlugin<{\\n dom?: HTMLElement | undefined;\\n view: EditorView;\\n destroy(): void;\\n}>;\\n/**\\n * The DOM element that wraps the entire editor view.\\n */\\nexport declare function scroll(\\n opts: Events,\\n): ViewPlugin<{\\n dom?: HTMLElement | undefined;\\n view: EditorView;\\n destroy(): void;\\n}>;\\n/**\\n * The editable DOM element holding the editor content.\\n * You should not, usually, interact with this content directly though the DOM,\\n * since the editor will immediately undo most of the changes you make.\\n */\\nexport declare function content(\\n opts: Events,\\n): ViewPlugin<{\\n dom?: HTMLElement | undefined;\\n view: EditorView;\\n destroy(): void;\\n}>;\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2224.50710b1b.chunk.js b/static/js/2224.50710b1b.chunk.js new file mode 100644 index 000000000..855b909aa --- /dev/null +++ b/static/js/2224.50710b1b.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2224],{12224:(e,t,n)=>{n.r(t),n.d(t,{default:()=>r});const r={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# BBEdit Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-bbedit.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-bbedit)\n\n\n \"codemirror-theme-bbedit\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-bbedit --save\n```\n\n```jsx\nimport { tags as t } from '@lezer/highlight';\nimport { bbedit, bbeditInit } from '@uiw/codemirror-theme-bbedit';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsBbedit: CreateThemeOptions['settings'];\nexport declare const bbeditInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const bbedit: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { bbedit } from '@uiw/codemirror-theme-bbedit';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { bbedit } from '@uiw/codemirror-theme-bbedit';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [bbedit, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2224.50710b1b.chunk.js.map \ No newline at end of file diff --git a/static/js/2224.50710b1b.chunk.js.map b/static/js/2224.50710b1b.chunk.js.map new file mode 100644 index 000000000..6fd4e510f --- /dev/null +++ b/static/js/2224.50710b1b.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2224.50710b1b.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,grFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/bbedit/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# BBEdit Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-bbedit.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-bbedit)\\n\\n\\n \\\"codemirror-theme-bbedit\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-bbedit --save\\n```\\n\\n```jsx\\nimport { tags as t } from '@lezer/highlight';\\nimport { bbedit, bbeditInit } from '@uiw/codemirror-theme-bbedit';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsBbedit: CreateThemeOptions['settings'];\\nexport declare const bbeditInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const bbedit: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { bbedit } from '@uiw/codemirror-theme-bbedit';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { bbedit } from '@uiw/codemirror-theme-bbedit';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [bbedit, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2277.e4afd10b.chunk.js b/static/js/2277.e4afd10b.chunk.js new file mode 100644 index 000000000..ff5da633d --- /dev/null +++ b/static/js/2277.e4afd10b.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2277],{92277:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Github Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-github.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-github)\n\n\n \"codemirror-theme-github\n\n\n\n \"codemirror-theme-github\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-github --save\n```\n\n```jsx\nimport { githubLight, githubLightInit, githubDark, githubDarkInit } from '@uiw/codemirror-theme-github';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsGithubLight: CreateThemeOptions['settings'];\nexport declare const githubLightInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const githubLight: import('@codemirror/state').Extension;\nexport declare const defaultSettingsGithubDark: CreateThemeOptions['settings'];\nexport declare const githubDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const githubDark: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { githubLight, githubDark } from '@uiw/codemirror-theme-github';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { githubLight, githubDark } from '@uiw/codemirror-theme-github';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [githubDark, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2277.e4afd10b.chunk.js.map \ No newline at end of file diff --git a/static/js/2277.e4afd10b.chunk.js.map b/static/js/2277.e4afd10b.chunk.js.map new file mode 100644 index 000000000..df141d86e --- /dev/null +++ b/static/js/2277.e4afd10b.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2277.e4afd10b.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,+rGACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/github/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Github Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-github.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-github)\\n\\n\\n \\\"codemirror-theme-github\\n\\n\\n\\n \\\"codemirror-theme-github\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-github --save\\n```\\n\\n```jsx\\nimport { githubLight, githubLightInit, githubDark, githubDarkInit } from '@uiw/codemirror-theme-github';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsGithubLight: CreateThemeOptions['settings'];\\nexport declare const githubLightInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const githubLight: import('@codemirror/state').Extension;\\nexport declare const defaultSettingsGithubDark: CreateThemeOptions['settings'];\\nexport declare const githubDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const githubDark: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { githubLight, githubDark } from '@uiw/codemirror-theme-github';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { githubLight, githubDark } from '@uiw/codemirror-theme-github';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [githubDark, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2371.a66cb67b.chunk.js b/static/js/2371.a66cb67b.chunk.js new file mode 100644 index 000000000..46febc45c --- /dev/null +++ b/static/js/2371.a66cb67b.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2371],{52371:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});const r={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Abyss Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abyss.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-abyss)\n\nAbyss theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-abyss/themes/abyss-color-theme.json).\n\n\n \"codemirror-theme-abyss\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-abyss --save\n```\n\n```jsx\nimport { abyss, abyssInit } from '@uiw/codemirror-theme-abyss';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\nexport declare const abyssInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const abyss: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { abyss } from '@uiw/codemirror-theme-abyss';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { abyss } from '@uiw/codemirror-theme-abyss';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [abyss, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2371.a66cb67b.chunk.js.map \ No newline at end of file diff --git a/static/js/2371.a66cb67b.chunk.js.map b/static/js/2371.a66cb67b.chunk.js.map new file mode 100644 index 000000000..1e7fe717f --- /dev/null +++ b/static/js/2371.a66cb67b.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2371.a66cb67b.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,msFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/abyss/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Abyss Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abyss.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-abyss)\\n\\nAbyss theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-abyss/themes/abyss-color-theme.json).\\n\\n\\n \\\"codemirror-theme-abyss\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-abyss --save\\n```\\n\\n```jsx\\nimport { abyss, abyssInit } from '@uiw/codemirror-theme-abyss';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\\nexport declare const abyssInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const abyss: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { abyss } from '@uiw/codemirror-theme-abyss';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { abyss } from '@uiw/codemirror-theme-abyss';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [abyss, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2424.1dd92a31.chunk.js b/static/js/2424.1dd92a31.chunk.js new file mode 100644 index 000000000..cf6e72ec3 --- /dev/null +++ b/static/js/2424.1dd92a31.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2424],{82424:(e,n,t)=>{t.r(n),t.d(n,{Component:()=>u});var r=t(50559),o=t(50389),i=t(45224),a=t(55621),s=t(79584);const l=r.default.Original,c=r.default.Modified;let d="one\ntwo\nthree\nfour\nfive";function u(){return(0,s.jsxs)(r.default,{style:{width:540},orientation:"b-a",theme:a.CG,children:[(0,s.jsx)(l,{value:d}),(0,s.jsx)(c,{value:d.replace(/t/g,"T")+"Six",extensions:[o.tk.editable.of(!1),i.yy.readOnly.of(!0)]})]})}},50559:(e,n,t)=>{t.r(n),t.d(n,{default:()=>b});var r=t(25773),o=t(30808),i=t(83528),a=t(4801),s=t(50389),l=t(79584),c={modified:{doc:""},original:{doc:""}},d=(0,i.createContext)(c);function u(e,n){return(0,r.Z)({},e,n,{modified:(0,r.Z)({},e.modified,n.modified),original:(0,r.Z)({},e.original,n.original)})}var h=()=>(0,i.useContext)(d),f=e=>{var{children:n,theme:t}=e,[o,a]=(0,i.useReducer)(u,(0,r.Z)({},c,{theme:t}));return(0,i.useEffect)((()=>a({theme:t})),[t]),(0,l.jsx)(d.Provider,{value:(0,r.Z)({},o,{dispatch:a}),children:n})},g=["extensions","value","selection","onChange"],v=e=>{var{extensions:n=[],value:t,selection:l,onChange:c}=e,d=(0,o.Z)(e,g),{theme:u,dispatch:f}=h(),v=(0,a.getDefaultExtensions)((0,r.Z)({},d,{theme:u})),m=s.tk.updateListener.of((e=>{if(e.docChanged&&"function"===typeof c){var n=e.state.doc.toString();c(n,e)}}));return(0,i.useEffect)((()=>f({original:{doc:t,selection:l,extensions:[m,...v,...n]},originalExtension:{onChange:c,option:d,extension:[n,m]}})),[e]),null};v.displayName="CodeMirrorMerge.Original";var m=["extensions","value","selection","onChange"],x=e=>{var{extensions:n=[],value:t,selection:l,onChange:c}=e,d=(0,o.Z)(e,m),{theme:u,dispatch:f}=h(),g=(0,a.getDefaultExtensions)((0,r.Z)({},d,{theme:u})),v=s.tk.updateListener.of((e=>{if(e.docChanged&&"function"===typeof c){var n=e.state.doc.toString();c(n,e)}}));return(0,i.useEffect)((()=>f({modified:{doc:t,selection:l,extensions:[v,...g,...n]},modifiedExtension:{onChange:c,option:d,extension:[v,n]}})),[e]),null};x.displayName="CodeMirrorMerge.Modified";var p=t(24105),C=["className","children","orientation","revertControls","highlightChanges","gutter","collapseUnchanged","destroyRerender","renderRevertControl"],Z=["modified","modifiedExtension","original","originalExtension","theme","dispatch"],E=i.forwardRef(((e,n)=>{var{className:t,children:s,orientation:c,revertControls:d,highlightChanges:u,gutter:f,collapseUnchanged:g,destroyRerender:v=!0,renderRevertControl:m}=e,x=(0,o.Z)(e,C),E=h(),{modified:w,modifiedExtension:y,original:b,originalExtension:M,theme:R,dispatch:j}=E,k=(0,o.Z)(E,Z),N=(0,i.useRef)(null),D=(0,i.useRef)(),U={orientation:c,revertControls:d,highlightChanges:u,gutter:f,collapseUnchanged:g,renderRevertControl:m};(0,i.useImperativeHandle)(n,(()=>({container:N.current,view:D.current,modified:w,original:b,config:(0,r.Z)({a:b,b:w,parent:N.current},U)})),[N,D,w,b,U]),(0,i.useEffect)((()=>{!D.current&&N.current&&(D.current=new p.QK((0,r.Z)({a:(0,r.Z)({},b,{extensions:[...(null==M?void 0:M.extension)||[],...(0,a.getDefaultExtensions)((0,r.Z)({},null==M?void 0:M.option,{theme:R}))]}),b:(0,r.Z)({},w,{extensions:[...(null==y?void 0:y.extension)||[],...(0,a.getDefaultExtensions)((0,r.Z)({},null==y?void 0:y.option,{theme:R}))]}),parent:N.current},U)))}),[D,N]),(0,i.useEffect)((()=>{if(b&&b.doc&&D.current){var e,n,t=null==(e=D.current)?void 0:e.a.state.doc.toString();if(t!==b.doc)null==(n=D.current)||n.a.dispatch({changes:{from:0,to:t.length,insert:b.doc||""}})}if(w&&w.doc&&D.current){var o,i,s=null==(o=D.current)?void 0:o.b.state.doc.toString();if(s!==w.doc)null==(i=D.current)||i.b.dispatch({changes:{from:0,to:s.length,insert:w.doc||""}})}if(v&&D.current){var l=D.current.a.state.selection.ranges[0].from,c=D.current.b.state.selection.ranges[0].from;D.current.destroy(),D.current=new p.QK((0,r.Z)({a:(0,r.Z)({},b,{extensions:[...(null==M?void 0:M.extension)||[],...(0,a.getDefaultExtensions)((0,r.Z)({},null==M?void 0:M.option,{theme:R}))]}),b:(0,r.Z)({},w,{extensions:[...(null==y?void 0:y.extension)||[],...(0,a.getDefaultExtensions)((0,r.Z)({},null==y?void 0:y.option,{theme:R}))]}),parent:N.current},U)),l&&(D.current.a.focus(),D.current.a.dispatch({selection:{anchor:l,head:l}})),c&&(D.current.b.focus(),D.current.b.dispatch({selection:{anchor:c,head:c}}))}}),[D,R,N.current,b,w,M,y,v]),(0,i.useEffect)((()=>()=>D.current&&D.current.destroy()),[]),(0,i.useEffect)((()=>{if(D.current){var e={};k.orientation!==c&&(e.orientation=c),k.revertControls!==d&&(e.revertControls=d),k.highlightChanges!==u&&(e.highlightChanges=u),k.gutter!==f&&(e.gutter=f),k.collapseUnchanged!==g&&(e.collapseUnchanged=g),k.renderRevertControl!==m&&(e.collapseUnchanged=g),Object.keys(e).length&&j&&D.current&&(D.current.reconfigure((0,r.Z)({},e)),j((0,r.Z)({},e)))}}),[j,D,c,d,u,f,g,m]);return(0,l.jsx)("div",(0,r.Z)({ref:N,className:"cm-merge-theme"+(t?" "+t:"")},x,{children:s}))}));E.displayName="CodeMirrorMerge.Internal";var w=["theme"],y=i.forwardRef(((e,n)=>{var{theme:t}=e,i=(0,o.Z)(e,w);return(0,l.jsx)(f,{theme:t,children:(0,l.jsx)(E,(0,r.Z)({},i,{ref:n}))})}));y.Original=v,y.Modified=x,y.displayName="CodeMirrorMerge";const b=y}}]); +//# sourceMappingURL=2424.1dd92a31.chunk.js.map \ No newline at end of file diff --git a/static/js/2424.1dd92a31.chunk.js.map b/static/js/2424.1dd92a31.chunk.js.map new file mode 100644 index 000000000..faf9a8acd --- /dev/null +++ b/static/js/2424.1dd92a31.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2424.1dd92a31.chunk.js","mappings":"sLAKA,MAAMA,EAAWC,EAAAA,QAAgBD,SAC3BE,EAAWD,EAAAA,QAAgBC,SAIjC,IAAIC,EAAG,8BAMA,SAASC,IACd,OACEC,EAAAA,EAAAA,MAACJ,EAAAA,QAAe,CAACK,MAAO,CAAEC,MAAO,KAAOC,YAAY,MAAMC,MAAOC,EAAAA,GAAcC,SAAA,EAC7EC,EAAAA,EAAAA,KAACZ,EAAQ,CAACa,MAAOV,KACjBS,EAAAA,EAAAA,KAACV,EAAQ,CACPW,MAAOV,EAAIW,QAAQ,KAAM,KAAO,MAChCC,WAAY,CAACC,EAAAA,GAAWC,SAASC,IAAG,GAAQC,EAAAA,GAAYC,SAASF,IAAG,QAI5E,C,qHC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AAAA,EAAAA,GAAS,CACvC6B,IAAKW,EACLV,UAHsB,kBAGeA,EAAY,IAAMA,EAAY,KAClEO,EAAU,CACXvD,SAAUA,IACT,IAEL6C,EAASH,YAAc,2BCpLvB,IAAIhB,EAAY,CAAC,SAmBbpC,EAZkCwD,EAAAA,YAAiB,CAACxB,EAAMyB,KAC5D,IAAI,MACAjD,GACEwB,EACJK,GAAQI,EAAAA,EAAAA,GAA8BT,EAAMI,GAC9C,OAAoBzB,EAAAA,EAAAA,KAAKoB,EAAU,CACjCvB,MAAOA,EACPE,UAAuBC,EAAAA,EAAAA,KAAK4C,GAAU3B,EAAAA,EAAAA,GAAS,CAAC,EAAGS,EAAO,CACxDoB,IAAKA,MAEP,IAGJzD,EAAgBD,SAAWA,EAC3BC,EAAgBC,SAAWA,EAC3BD,EAAgBoD,YAAc,kBAC9B,S","sources":["pages/examples/Example455.tsx","../../merge/esm/store.js","../../merge/esm/Original.js","../../merge/esm/Modified.js","../../merge/esm/Internal.js","../../merge/esm/index.js"],"sourcesContent":["import CodeMirrorMerge from 'react-codemirror-merge';\nimport { EditorView } from 'codemirror';\nimport { EditorState } from '@codemirror/state';\nimport { androidstudio } from '@uiw/codemirror-theme-androidstudio';\n\nconst Original = CodeMirrorMerge.Original;\nconst Modified = CodeMirrorMerge.Modified;\n/**\n * https://github.com/uiwjs/react-codemirror/issues/455\n */\nlet doc = `one\ntwo\nthree\nfour\nfive`;\n\nexport function Component() {\n return (\n \n \n \n \n );\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { createContext, useContext, useEffect, useReducer } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var initialState = {\n modified: {\n doc: ''\n },\n original: {\n doc: ''\n }\n};\nexport var Context = /*#__PURE__*/createContext(initialState);\nexport function reducer(state, action) {\n return _extends({}, state, action, {\n modified: _extends({}, state.modified, action.modified),\n original: _extends({}, state.original, action.original)\n });\n}\nexport var useStore = () => {\n return useContext(Context);\n};\nexport var Provider = _ref => {\n var {\n children,\n theme\n } = _ref;\n var [state, dispatch] = useReducer(reducer, _extends({}, initialState, {\n theme\n }));\n useEffect(() => dispatch({\n theme\n }), [theme]);\n return /*#__PURE__*/_jsx(Context.Provider, {\n value: _extends({}, state, {\n dispatch\n }),\n children: children\n });\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"extensions\", \"value\", \"selection\", \"onChange\"];\nimport { useEffect } from 'react';\nimport { getDefaultExtensions } from '@uiw/react-codemirror';\nimport { EditorView } from '@codemirror/view';\nimport { useStore } from './store';\nexport var Original = props => {\n var {\n extensions = [],\n value,\n selection,\n onChange\n } = props,\n otherOption = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n theme,\n dispatch\n } = useStore();\n var defaultExtensions = getDefaultExtensions(_extends({}, otherOption, {\n theme\n }));\n var updateListener = EditorView.updateListener.of(vu => {\n if (vu.docChanged && typeof onChange === 'function') {\n var doc = vu.state.doc;\n var val = doc.toString();\n onChange(val, vu);\n }\n });\n useEffect(() => dispatch({\n original: {\n doc: value,\n selection: selection,\n extensions: [updateListener, ...defaultExtensions, ...extensions]\n },\n originalExtension: {\n onChange,\n option: otherOption,\n extension: [extensions, updateListener]\n }\n }), [props]);\n return null;\n};\nOriginal.displayName = 'CodeMirrorMerge.Original';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"extensions\", \"value\", \"selection\", \"onChange\"];\nimport { useEffect } from 'react';\nimport { getDefaultExtensions } from '@uiw/react-codemirror';\nimport { EditorView } from '@codemirror/view';\nimport { useStore } from './store';\nexport var Modified = props => {\n var {\n extensions = [],\n value,\n selection,\n onChange\n } = props,\n otherOption = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n theme,\n dispatch\n } = useStore();\n var defaultExtensions = getDefaultExtensions(_extends({}, otherOption, {\n theme\n }));\n var updateListener = EditorView.updateListener.of(vu => {\n if (vu.docChanged && typeof onChange === 'function') {\n var doc = vu.state.doc;\n var val = doc.toString();\n onChange(val, vu);\n }\n });\n useEffect(() => dispatch({\n modified: {\n doc: value,\n selection: selection,\n extensions: [updateListener, ...defaultExtensions, ...extensions]\n },\n modifiedExtension: {\n onChange,\n option: otherOption,\n extension: [updateListener, extensions]\n }\n }), [props]);\n return null;\n};\nModified.displayName = 'CodeMirrorMerge.Modified';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"children\", \"orientation\", \"revertControls\", \"highlightChanges\", \"gutter\", \"collapseUnchanged\", \"destroyRerender\", \"renderRevertControl\"],\n _excluded2 = [\"modified\", \"modifiedExtension\", \"original\", \"originalExtension\", \"theme\", \"dispatch\"];\nimport React, { useEffect, useImperativeHandle, useRef } from 'react';\nimport { getDefaultExtensions } from '@uiw/react-codemirror';\nimport { MergeView } from '@codemirror/merge';\nimport { useStore } from './store';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Internal = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n className,\n children,\n orientation,\n revertControls,\n highlightChanges,\n gutter,\n collapseUnchanged,\n destroyRerender = true,\n renderRevertControl\n } = props,\n elmProps = _objectWithoutPropertiesLoose(props, _excluded);\n var _useStore = useStore(),\n {\n modified,\n modifiedExtension,\n original,\n originalExtension,\n theme,\n dispatch\n } = _useStore,\n otherStore = _objectWithoutPropertiesLoose(_useStore, _excluded2);\n var editor = useRef(null);\n var view = useRef();\n var opts = {\n orientation,\n revertControls,\n highlightChanges,\n gutter,\n collapseUnchanged,\n renderRevertControl\n };\n useImperativeHandle(ref, () => ({\n container: editor.current,\n view: view.current,\n modified,\n original,\n config: _extends({\n a: original,\n b: modified,\n parent: editor.current\n }, opts)\n }), [editor, view, modified, original, opts]);\n useEffect(() => {\n if (!view.current && editor.current) {\n view.current = new MergeView(_extends({\n a: _extends({}, original, {\n extensions: [...((originalExtension == null ? void 0 : originalExtension.extension) || []), ...getDefaultExtensions(_extends({}, originalExtension == null ? void 0 : originalExtension.option, {\n theme\n }))]\n }),\n b: _extends({}, modified, {\n extensions: [...((modifiedExtension == null ? void 0 : modifiedExtension.extension) || []), ...getDefaultExtensions(_extends({}, modifiedExtension == null ? void 0 : modifiedExtension.option, {\n theme\n }))]\n }),\n parent: editor.current\n }, opts));\n }\n }, [view, editor]);\n useEffect(() => {\n if (original && original.doc && view.current) {\n var _view$current;\n var originalDoc = (_view$current = view.current) == null ? void 0 : _view$current.a.state.doc.toString();\n if (originalDoc !== original.doc) {\n var _view$current2;\n (_view$current2 = view.current) == null || _view$current2.a.dispatch({\n changes: {\n from: 0,\n to: originalDoc.length,\n insert: original.doc || ''\n }\n // effects: StateEffect.reconfigure.of([\n // ...(originalExtension?.extension || []),\n // ...getDefaultExtensions({ ...originalExtension?.option, theme }),\n // ])\n });\n }\n }\n\n if (modified && modified.doc && view.current) {\n var _view$current3;\n var modifiedDoc = (_view$current3 = view.current) == null ? void 0 : _view$current3.b.state.doc.toString();\n if (modifiedDoc !== modified.doc) {\n var _view$current4;\n (_view$current4 = view.current) == null || _view$current4.b.dispatch({\n changes: {\n from: 0,\n to: modifiedDoc.length,\n insert: modified.doc || ''\n }\n // effects: StateEffect.reconfigure.of([\n // ...(modifiedExtension?.extension || []),\n // ...getDefaultExtensions({ ...modifiedExtension?.option, theme }),\n // ])\n });\n }\n }\n\n if (destroyRerender && view.current) {\n var originalFrom = view.current.a.state.selection.ranges[0].from;\n var modifiedFrom = view.current.b.state.selection.ranges[0].from;\n view.current.destroy();\n view.current = new MergeView(_extends({\n a: _extends({}, original, {\n extensions: [...((originalExtension == null ? void 0 : originalExtension.extension) || []), ...getDefaultExtensions(_extends({}, originalExtension == null ? void 0 : originalExtension.option, {\n theme\n }))]\n }),\n b: _extends({}, modified, {\n extensions: [...((modifiedExtension == null ? void 0 : modifiedExtension.extension) || []), ...getDefaultExtensions(_extends({}, modifiedExtension == null ? void 0 : modifiedExtension.option, {\n theme\n }))]\n }),\n parent: editor.current\n }, opts));\n if (originalFrom) {\n view.current.a.focus();\n view.current.a.dispatch({\n selection: {\n anchor: originalFrom,\n head: originalFrom\n }\n });\n }\n if (modifiedFrom) {\n view.current.b.focus();\n view.current.b.dispatch({\n selection: {\n anchor: modifiedFrom,\n head: modifiedFrom\n }\n });\n }\n }\n }, [view, theme, editor.current, original, modified, originalExtension, modifiedExtension, destroyRerender]);\n useEffect(() => () => view.current && view.current.destroy(), []);\n useEffect(() => {\n if (view.current) {\n var _opts = {};\n if (otherStore.orientation !== orientation) {\n _opts.orientation = orientation;\n }\n if (otherStore.revertControls !== revertControls) {\n _opts.revertControls = revertControls;\n }\n if (otherStore.highlightChanges !== highlightChanges) {\n _opts.highlightChanges = highlightChanges;\n }\n if (otherStore.gutter !== gutter) {\n _opts.gutter = gutter;\n }\n if (otherStore.collapseUnchanged !== collapseUnchanged) {\n _opts.collapseUnchanged = collapseUnchanged;\n }\n if (otherStore.renderRevertControl !== renderRevertControl) {\n _opts.collapseUnchanged = collapseUnchanged;\n }\n if (Object.keys(_opts).length && dispatch && view.current) {\n view.current.reconfigure(_extends({}, _opts));\n dispatch(_extends({}, _opts));\n }\n }\n }, [dispatch, view, orientation, revertControls, highlightChanges, gutter, collapseUnchanged, renderRevertControl]);\n var defaultClassNames = 'cm-merge-theme';\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: editor,\n className: \"\" + defaultClassNames + (className ? \" \" + className : '')\n }, elmProps, {\n children: children\n }));\n});\nInternal.displayName = 'CodeMirrorMerge.Internal';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"theme\"];\nimport React from 'react';\nimport { Original } from './Original';\nimport { Modified } from './Modified';\nimport { Internal } from './Internal';\nimport { Provider } from './store';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar InternalCodeMirror = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n var {\n theme\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n return /*#__PURE__*/_jsx(Provider, {\n theme: theme,\n children: /*#__PURE__*/_jsx(Internal, _extends({}, props, {\n ref: ref\n }))\n });\n});\nvar CodeMirrorMerge = InternalCodeMirror;\nCodeMirrorMerge.Original = Original;\nCodeMirrorMerge.Modified = Modified;\nCodeMirrorMerge.displayName = 'CodeMirrorMerge';\nexport default CodeMirrorMerge;"],"names":["Original","CodeMirrorMerge","Modified","doc","Component","_jsxs","style","width","orientation","theme","androidstudio","children","_jsx","value","replace","extensions","EditorView","editable","of","EditorState","readOnly","initialState","modified","original","Context","createContext","reducer","state","action","_extends","useStore","useContext","Provider","_ref","dispatch","useReducer","useEffect","_excluded","props","selection","onChange","otherOption","_objectWithoutPropertiesLoose","defaultExtensions","getDefaultExtensions","updateListener","vu","docChanged","val","toString","originalExtension","option","extension","displayName","modifiedExtension","_excluded2","Internal","React","ref","className","revertControls","highlightChanges","gutter","collapseUnchanged","destroyRerender","renderRevertControl","elmProps","_useStore","otherStore","editor","useRef","view","opts","useImperativeHandle","container","current","config","a","b","parent","MergeView","_view$current","_view$current2","originalDoc","changes","from","to","length","insert","_view$current3","_view$current4","modifiedDoc","originalFrom","ranges","modifiedFrom","destroy","focus","anchor","head","_opts","Object","keys","reconfigure"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2578.b7d5618a.chunk.js b/static/js/2578.b7d5618a.chunk.js new file mode 100644 index 000000000..28681df01 --- /dev/null +++ b/static/js/2578.b7d5618a.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2578],{22578:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});const r={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Abcdef Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abcdef.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-abcdef)\n\n\n \"codemirror-theme-abcdef\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-abcdef --save\n```\n\n```jsx\nimport { tags as t } from '@lezer/highlight';\nimport { abcdef, abcdefInit } from '@uiw/codemirror-theme-abcdef';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsAbcdef: CreateThemeOptions['settings'];\nexport declare const abcdefInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const abcdef: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { abcdef } from '@uiw/codemirror-theme-abcdef';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { abcdef } from '@uiw/codemirror-theme-abcdef';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [abcdef, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2578.b7d5618a.chunk.js.map \ No newline at end of file diff --git a/static/js/2578.b7d5618a.chunk.js.map b/static/js/2578.b7d5618a.chunk.js.map new file mode 100644 index 000000000..d8cd34fc6 --- /dev/null +++ b/static/js/2578.b7d5618a.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2578.b7d5618a.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,grFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/abcdef/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Abcdef Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abcdef.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-abcdef)\\n\\n\\n \\\"codemirror-theme-abcdef\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-abcdef --save\\n```\\n\\n```jsx\\nimport { tags as t } from '@lezer/highlight';\\nimport { abcdef, abcdefInit } from '@uiw/codemirror-theme-abcdef';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsAbcdef: CreateThemeOptions['settings'];\\nexport declare const abcdefInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const abcdef: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { abcdef } from '@uiw/codemirror-theme-abcdef';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { abcdef } from '@uiw/codemirror-theme-abcdef';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [abcdef, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2607.c70dda35.chunk.js b/static/js/2607.c70dda35.chunk.js new file mode 100644 index 000000000..5741e6270 --- /dev/null +++ b/static/js/2607.c70dda35.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2607],{12607:(n,e,r)=>{r.r(e),r.d(e,{default:()=>o});const o={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Nord Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-nord.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-nord)\n\nThis package implements the [nord theme](https://www.nordtheme.com/) for the CodeMirror code editor.\n\n\n \"codemirror-theme-nord\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-nord --save\n```\n\n```jsx\nimport { nord, nordInit } from '@uiw/codemirror-theme-nord';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsNord: CreateThemeOptions['settings'];\nexport declare const nordInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const nord: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { nord } from '@uiw/codemirror-theme-nord';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { nord } from '@uiw/codemirror-theme-nord';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [nord, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2607.c70dda35.chunk.js.map \ No newline at end of file diff --git a/static/js/2607.c70dda35.chunk.js.map b/static/js/2607.c70dda35.chunk.js.map new file mode 100644 index 000000000..1542e959f --- /dev/null +++ b/static/js/2607.c70dda35.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2607.c70dda35.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,6nFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/nord/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Nord Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-nord.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-nord)\\n\\nThis package implements the [nord theme](https://www.nordtheme.com/) for the CodeMirror code editor.\\n\\n\\n \\\"codemirror-theme-nord\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-nord --save\\n```\\n\\n```jsx\\nimport { nord, nordInit } from '@uiw/codemirror-theme-nord';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsNord: CreateThemeOptions['settings'];\\nexport declare const nordInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const nord: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { nord } from '@uiw/codemirror-theme-nord';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { nord } from '@uiw/codemirror-theme-nord';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [nord, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2648.c2727c3b.chunk.js b/static/js/2648.c2727c3b.chunk.js new file mode 100644 index 000000000..ddb47856e --- /dev/null +++ b/static/js/2648.c2727c3b.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2648],{42648:(e,r,n)=>{n.r(r),n.d(r,{default:()=>t});const t={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Darcula Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-darcula.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-darcula)\n\n\n \"codemirror-theme-darcula\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-darcula --save\n```\n\n```jsx\nimport { tags as t } from '@lezer/highlight';\nimport { darcula, darculaInit } from '@uiw/codemirror-theme-darcula';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsDarcula: CreateThemeOptions['settings'];\nexport declare const darculaInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const darcula: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { darcula } from '@uiw/codemirror-theme-darcula';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { darcula } from '@uiw/codemirror-theme-darcula';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [darcula, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2648.c2727c3b.chunk.js.map \ No newline at end of file diff --git a/static/js/2648.c2727c3b.chunk.js.map b/static/js/2648.c2727c3b.chunk.js.map new file mode 100644 index 000000000..6698a4716 --- /dev/null +++ b/static/js/2648.c2727c3b.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2648.c2727c3b.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,osFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/darcula/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Darcula Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-darcula.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-darcula)\\n\\n\\n \\\"codemirror-theme-darcula\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-darcula --save\\n```\\n\\n```jsx\\nimport { tags as t } from '@lezer/highlight';\\nimport { darcula, darculaInit } from '@uiw/codemirror-theme-darcula';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsDarcula: CreateThemeOptions['settings'];\\nexport declare const darculaInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const darcula: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { darcula } from '@uiw/codemirror-theme-darcula';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { darcula } from '@uiw/codemirror-theme-darcula';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [darcula, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2753.3b9c2bf8.chunk.js b/static/js/2753.3b9c2bf8.chunk.js new file mode 100644 index 000000000..422692d32 --- /dev/null +++ b/static/js/2753.3b9c2bf8.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2753],{22753:(o,e,n)=>{n.r(e),n.d(e,{default:()=>t});const t={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Monokai Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-monokai.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-monokai)\n\nMonokai theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-monokai/themes/monokai-color-theme.json).\n\n\n \"codemirror-theme-monokai\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-monokai --save\n```\n\n```jsx\nimport { monokai, monokaiInit } from '@uiw/codemirror-theme-monokai';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\nexport declare const monokaiInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const monokai: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { monokai } from '@uiw/codemirror-theme-monokai';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { monokai } from '@uiw/codemirror-theme-monokai';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [monokai, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2753.3b9c2bf8.chunk.js.map \ No newline at end of file diff --git a/static/js/2753.3b9c2bf8.chunk.js.map b/static/js/2753.3b9c2bf8.chunk.js.map new file mode 100644 index 000000000..0f89a91d6 --- /dev/null +++ b/static/js/2753.3b9c2bf8.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2753.3b9c2bf8.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,+uFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/monokai/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Monokai Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-monokai.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-monokai)\\n\\nMonokai theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-monokai/themes/monokai-color-theme.json).\\n\\n\\n \\\"codemirror-theme-monokai\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-monokai --save\\n```\\n\\n```jsx\\nimport { monokai, monokaiInit } from '@uiw/codemirror-theme-monokai';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\\nexport declare const monokaiInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const monokai: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { monokai } from '@uiw/codemirror-theme-monokai';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { monokai } from '@uiw/codemirror-theme-monokai';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [monokai, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2771.3dba1fae.chunk.js b/static/js/2771.3dba1fae.chunk.js new file mode 100644 index 000000000..f3915b2e7 --- /dev/null +++ b/static/js/2771.3dba1fae.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2771],{82771:(o,n,e)=>{e.r(n),e.d(n,{default:()=>r});const r={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Color Extensions\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-color.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-color)\n\nColor Extensions for CodeMirror6.\n\n[![Codemirror Extensions Color](https://user-images.githubusercontent.com/1680273/178143104-26e0564b-bd3e-42cd-a8d4-b40edf9ec44d.png)](https://uiwjs.github.io/react-codemirror/#/extensions/color)\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-extensions-color --save\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { color, colorView, colorTheme } from '@uiw/codemirror-extensions-color';\n\nfunction App() {\n return (\n \n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { color } from '@uiw/codemirror-extensions-color';\n\nconst state = EditorState.create({\n doc: 'body { color: #333; }',\n extensions: [color],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## API\n\n```ts\nimport { ViewPlugin, EditorView, ViewUpdate, DecorationSet } from '@codemirror/view';\nimport { Extension } from '@codemirror/state';\nexport declare enum ColorType {\n rgb = 'RGB',\n hex = 'HEX',\n named = 'NAMED',\n hsl = 'HSL',\n}\nexport interface ColorState {\n from: number;\n to: number;\n alpha: string;\n colorType: ColorType;\n}\nexport declare const colorView: (showPicker?: boolean) => ViewPlugin<{\n decorations: DecorationSet;\n update(update: ViewUpdate): void;\n changePicker(view: EditorView, canBeEdited: boolean): void;\n}>;\nexport declare const colorTheme: Extension;\nexport declare const color: Extension;\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2771.3dba1fae.chunk.js.map \ No newline at end of file diff --git a/static/js/2771.3dba1fae.chunk.js.map b/static/js/2771.3dba1fae.chunk.js.map new file mode 100644 index 000000000..f65c90786 --- /dev/null +++ b/static/js/2771.3dba1fae.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2771.3dba1fae.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,09EACRC,SAAS,GACTC,aAAa,G","sources":["../../extensions/color/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Color Extensions\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-color.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-color)\\n\\nColor Extensions for CodeMirror6.\\n\\n[![Codemirror Extensions Color](https://user-images.githubusercontent.com/1680273/178143104-26e0564b-bd3e-42cd-a8d4-b40edf9ec44d.png)](https://uiwjs.github.io/react-codemirror/#/extensions/color)\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-extensions-color --save\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { color, colorView, colorTheme } from '@uiw/codemirror-extensions-color';\\n\\nfunction App() {\\n return (\\n \\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { color } from '@uiw/codemirror-extensions-color';\\n\\nconst state = EditorState.create({\\n doc: 'body { color: #333; }',\\n extensions: [color],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## API\\n\\n```ts\\nimport { ViewPlugin, EditorView, ViewUpdate, DecorationSet } from '@codemirror/view';\\nimport { Extension } from '@codemirror/state';\\nexport declare enum ColorType {\\n rgb = 'RGB',\\n hex = 'HEX',\\n named = 'NAMED',\\n hsl = 'HSL',\\n}\\nexport interface ColorState {\\n from: number;\\n to: number;\\n alpha: string;\\n colorType: ColorType;\\n}\\nexport declare const colorView: (showPicker?: boolean) => ViewPlugin<{\\n decorations: DecorationSet;\\n update(update: ViewUpdate): void;\\n changePicker(view: EditorView, canBeEdited: boolean): void;\\n}>;\\nexport declare const colorTheme: Extension;\\nexport declare const color: Extension;\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2801.37502b2f.chunk.js b/static/js/2801.37502b2f.chunk.js new file mode 100644 index 000000000..322e81a92 --- /dev/null +++ b/static/js/2801.37502b2f.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2801],{92801:(e,n,s)=>{s.r(n),s.d(n,{Component:()=>c});var t=s(4801),i=s(83528),r=s(50389),d=s(79584);class o extends r.l9{toDOM(){const e=document.createElement("span");return e.className="filler",e}}const l=[(0,r.Eu)(),(0,r.Uw)(),r.lg.define((()=>({decorations:r.p.set([r.p.widget({widget:new o,side:1}).range(34),r.p.mark({class:"wrapper"}).range(60,70),r.p.widget({widget:new o,side:1}).range(67)])})),{decorations:e=>e.decorations}),r.tk.baseTheme({".filler":{display:"inline-block",width:"8px",height:"1em",backgroundColor:"#9c9"},".wrapper":{border:"1px solid #aaa"}})],a="The cursor is before this widget:\n\nThe cursor is after this widget\ndsddfsdfsdfdf\nIs this how it should work?";function c(){let e=(0,i.useRef)(null);return(0,d.jsx)("div",{children:(0,d.jsx)(t.default,{value:a,theme:"none",ref:function(n){!e.current&&null!==n&&void 0!==n&&n.editor&&null!==n&&void 0!==n&&n.state&&null!==n&&void 0!==n&&n.view&&(console.log(n),e.current=n)},height:"400px",width:"100%",style:{margin:"0 0 23px 0",flex:1},extensions:[l]})})}c.displayName="HomePage"}}]); +//# sourceMappingURL=2801.37502b2f.chunk.js.map \ No newline at end of file diff --git a/static/js/2801.37502b2f.chunk.js.map b/static/js/2801.37502b2f.chunk.js.map new file mode 100644 index 000000000..a87695a57 --- /dev/null +++ b/static/js/2801.37502b2f.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2801.37502b2f.chunk.js","mappings":"0KAKA,MAAMA,UAAqBC,EAAAA,GACzBC,KAAAA,GACE,MAAMC,EAAUC,SAASC,cAAc,QAEvC,OADAF,EAAQG,UAAY,SACbH,CACT,EAGF,MAAMI,EAAa,EACjBC,EAAAA,EAAAA,OACAC,EAAAA,EAAAA,MACAC,EAAAA,GAAWC,QACT,KACS,CACLC,YAAaC,EAAAA,EAAWC,IAAI,CAC1BD,EAAAA,EAAWE,OAAO,CAChBA,OAAQ,IAAIf,EACZgB,KAAM,IACLC,MAAM,IAETJ,EAAAA,EAAWK,KAAK,CACdC,MAAO,YACNF,MAAM,GAAI,IAEbJ,EAAAA,EAAWE,OAAO,CAChBA,OAAQ,IAAIf,EACZgB,KAAM,IACLC,MAAM,SAIf,CACEL,YAAcQ,GAAUA,EAAMR,cAGlCS,EAAAA,GAAWC,UAAU,CACnB,UAAW,CACTC,QAAS,eACTC,MAAO,MACPC,OAAQ,MACRC,gBAAiB,QAEnB,WAAY,CACVC,OAAQ,qBAKRC,EAAI,mHAMH,SAASC,IACd,IAAIC,GAAQC,EAAAA,EAAAA,QAAkC,MAQ9C,OACEC,EAAAA,EAAAA,KAAA,OAAAC,UACED,EAAAA,EAAAA,KAACE,EAAAA,QAAU,CACTd,MAAOQ,EACPO,MAAM,OACNC,IAZN,SAAoBC,IACbP,EAAMQ,SAAiB,OAAND,QAAM,IAANA,GAAAA,EAAQA,QAAgB,OAANA,QAAM,IAANA,GAAAA,EAAQE,OAAe,OAANF,QAAM,IAANA,GAAAA,EAAQG,OAE/DC,QAAQC,IAAIL,GACZP,EAAMQ,QAAUD,EAEpB,EAOMZ,OAAO,QACPD,MAAM,OACNmB,MAAO,CAAEC,OAAQ,aAAcC,KAAM,GACrCtC,WAAY,CAACA,MAIrB,CAEAsB,EAAUiB,YAAc,U","sources":["pages/examples/MarkDecoration.tsx"],"sourcesContent":["import CodeMirror, { ReactCodeMirrorRef } from '@uiw/react-codemirror';\nimport { useRef } from 'react';\n\nimport { Decoration, drawSelection, EditorView, lineNumbers, ViewPlugin, WidgetType } from '@codemirror/view';\n\nclass SimpleWidget extends WidgetType {\n toDOM() {\n const element = document.createElement('span');\n element.className = 'filler';\n return element;\n }\n}\n\nconst extensions = [\n lineNumbers(),\n drawSelection(),\n ViewPlugin.define(\n () => {\n return {\n decorations: Decoration.set([\n Decoration.widget({\n widget: new SimpleWidget(),\n side: 1, // is after the cursor\n }).range(34),\n\n Decoration.mark({\n class: 'wrapper',\n }).range(60, 70),\n\n Decoration.widget({\n widget: new SimpleWidget(),\n side: 1, // should be after the cursor\n }).range(67),\n ]),\n };\n },\n {\n decorations: (value) => value.decorations,\n },\n ),\n EditorView.baseTheme({\n '.filler': {\n display: 'inline-block',\n width: '8px',\n height: '1em',\n backgroundColor: '#9c9',\n },\n '.wrapper': {\n border: '1px solid #aaa',\n },\n }),\n];\n\nconst code = `The cursor is before this widget:\n\nThe cursor is after this widget\ndsddfsdfsdfdf\nIs this how it should work?`;\n\nexport function Component() {\n let $edit = useRef(null);\n function refCallack(editor: ReactCodeMirrorRef) {\n if (!$edit.current && editor?.editor && editor?.state && editor?.view) {\n // first time we got ref, similar to useEffect\n console.log(editor); // do something with editor\n $edit.current = editor; // store it\n }\n }\n return (\n
\n \n
\n );\n}\n\nComponent.displayName = 'HomePage';\n"],"names":["SimpleWidget","WidgetType","toDOM","element","document","createElement","className","extensions","lineNumbers","drawSelection","ViewPlugin","define","decorations","Decoration","set","widget","side","range","mark","class","value","EditorView","baseTheme","display","width","height","backgroundColor","border","code","Component","$edit","useRef","_jsx","children","CodeMirror","theme","ref","editor","current","state","view","console","log","style","margin","flex","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2919.bf1e8c63.chunk.js b/static/js/2919.bf1e8c63.chunk.js new file mode 100644 index 000000000..a463a6f0a --- /dev/null +++ b/static/js/2919.bf1e8c63.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2919],{22919:(n,e,t)=>{t.r(e),t.d(e,{Component:()=>k});var r=t(50669),a=t(38932),o=t(80610),i=t(4801),s=t(91135),d=t(20530),l=t(89475),c=t(43454);const p=function(){var n;return null===(n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))||void 0===n?void 0:n.map((n=>n.toLowerCase())).join(",").split(",")},u=function(){var n;return null===(n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g))||void 0===n?void 0:n.map((n=>n.charAt(0).toUpperCase()+n.slice(1))).join(" ")};var m,h,v,g,b=t(79584);const x=a.ZP.div(m||(m=(0,r.Z)(["\n grid-template-columns: repeat(3, minmax(0, 1fr));\n grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));\n gap: 2.5rem;\n display: grid;\n padding: 2.6rem;\n a {\n text-decoration: none;\n }\n"]))),f=a.ZP.div(h||(h=(0,r.Z)(["\n padding: 1rem;\n box-shadow:\n 0 0 #0000,\n 0 0 #0000,\n 0 0 #0000,\n 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n border-radius: 0.5rem;\n border: 1px solid var(--color-neutral-muted);\n background-color: var(--color-canvas-subtle);\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 0.2s;\n &:hover {\n transform: translate(0, -0.25rem) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);\n }\n"]))),Z=a.ZP.div(v||(v=(0,r.Z)(["\n font-weight: 600;\n padding-bottom: 0.68rem;\n"]))),w="import React, { useState } from 'react';\n\n// My favorite component\nconst Counter = () => {\n const [value, setValue] = useState(0);\n return (\n {value}\n );\n};",j=a.ZP.div(g||(g=(0,r.Z)(["\n border-radius: 0.375rem;\n overflow: hidden;\n position: relative;\n &::before {\n content: '';\n display: block;\n height: 100%;\n background: transparent;\n width: 100%;\n position: absolute;\n z-index: 1;\n }\n"])));function k(){return(0,b.jsx)(l.i,{children:(0,b.jsx)(x,{children:Object.keys(c.f).map(((n,e)=>{const t=(p(n)||[]).join("-").replace(/-light$/,"/light").replace(/-dark$/,"/dark"),r=c.f[n];return(0,b.jsx)(o.rU,{to:"/theme/data/".concat(t),children:(0,b.jsxs)(f,{children:[(0,b.jsx)(Z,{children:u(n)}),(0,b.jsx)(j,{children:(0,b.jsx)(i.default,{theme:r,value:w,height:"185px !important",extensions:[s.$_,d.RI.jsx()]})})]})},e)}))})})}}}]); +//# sourceMappingURL=2919.bf1e8c63.chunk.js.map \ No newline at end of file diff --git a/static/js/2919.bf1e8c63.chunk.js.map b/static/js/2919.bf1e8c63.chunk.js.map new file mode 100644 index 000000000..d1d15293a --- /dev/null +++ b/static/js/2919.bf1e8c63.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2919.bf1e8c63.chunk.js","mappings":"sNAAO,MAAMA,EAAc,eAAAC,EAAiB,OAEoC,QAFpCA,GAALC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAErCG,MAAM,6EAAqE,IAAAJ,OAAA,EAD9EA,EAEIK,KAAKC,GAAMA,EAAEC,gBACdC,KAAK,KACLC,MAAM,IAAK,EAEHC,EAAc,eAAAC,EAAiB,OAEoC,QAFpCA,GAALV,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,IAErCG,MAAM,6EAAqE,IAAAO,OAAA,EAD9EA,EAEIN,KAAKC,GAAMA,EAAEM,OAAO,GAAGC,cAAgBP,EAAEQ,MAAM,KAChDN,KAAK,IAAK,E,uBCFf,MAAMO,EAAgBC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,6NAW1BC,EAAYJ,EAAAA,GAAOC,IAAGI,IAAAA,GAAAF,EAAAA,EAAAA,GAAA,+dAkBtBG,EAAQN,EAAAA,GAAOC,IAAGM,IAAAA,GAAAJ,EAAAA,EAAAA,GAAA,2DAKlBK,EAAU,0LAUVC,EAAaT,EAAAA,GAAOC,IAAGS,IAAAA,GAAAP,EAAAA,EAAAA,GAAA,0PAetB,SAASQ,IACd,OACEC,EAAAA,EAAAA,KAACC,EAAAA,EAAO,CAAAC,UACNF,EAAAA,EAAAA,KAACb,EAAa,CAAAe,SACXC,OAAOC,KAAKC,EAAAA,GAAW5B,KAAI,CAAC6B,EAAMC,KACjC,MAAMC,GAAYrC,EAAYmC,IAAS,IACpC1B,KAAK,KACL6B,QAAQ,UAAW,UACnBA,QAAQ,SAAU,SACfC,EAAiBL,EAAAA,EAAUC,GACjC,OACEN,EAAAA,EAAAA,KAACW,EAAAA,GAAI,CAAWC,GAAE,eAAAC,OAAiBL,GAAWN,UAC5CY,EAAAA,EAAAA,MAACtB,EAAS,CAAAU,SAAA,EACRF,EAAAA,EAAAA,KAACN,EAAK,CAAAQ,SAAEpB,EAAYwB,MACpBN,EAAAA,EAAAA,KAACH,EAAU,CAAAK,UACTF,EAAAA,EAAAA,KAACe,EAAAA,QAAU,CACTC,MAAON,EACPO,MAAOrB,EACPsB,OAAO,mBACPC,WAAY,CAACC,EAAAA,GAAOC,EAAAA,GAAMC,eARvBf,EAYJ,OAMnB,C","sources":["utils/utils.ts","pages/theme/home/index.tsx"],"sourcesContent":["export const toSnakeCase = (str: string = '') =>\n str\n .match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)\n ?.map((x) => x.toLowerCase())\n .join(',')\n .split(',');\n\nexport const toTitleCase = (str: string = '') =>\n str\n .match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)\n ?.map((x) => x.charAt(0).toUpperCase() + x.slice(1))\n .join(' ');\n\nexport const toCamelCase = (str: string = '') => {\n const s =\n str\n .match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)\n ?.map((x) => x.slice(0, 1).toUpperCase() + x.slice(1).toLowerCase())\n .join('') || '';\n return s.slice(0, 1).toLowerCase() + s.slice(1);\n};\n","import styled from 'styled-components';\nimport { Link } from 'react-router-dom';\nimport CodeMirror from '@uiw/react-codemirror';\nimport { color } from '@uiw/codemirror-extensions-color';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport { Warpper } from '../../../components/Warpper';\nimport { themeData } from '../themes/Datas';\nimport { toSnakeCase, toTitleCase } from '../../../utils/utils';\n\nconst ThemesWarpper = styled.div`\n grid-template-columns: repeat(3, minmax(0, 1fr));\n grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));\n gap: 2.5rem;\n display: grid;\n padding: 2.6rem;\n a {\n text-decoration: none;\n }\n`;\n\nconst ThemeCard = styled.div`\n padding: 1rem;\n box-shadow:\n 0 0 #0000,\n 0 0 #0000,\n 0 0 #0000,\n 0 1px 2px 0 rgba(0, 0, 0, 0.05);\n border-radius: 0.5rem;\n border: 1px solid var(--color-neutral-muted);\n background-color: var(--color-canvas-subtle);\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 0.2s;\n &:hover {\n transform: translate(0, -0.25rem) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1);\n }\n`;\n\nconst Title = styled.div`\n font-weight: 600;\n padding-bottom: 0.68rem;\n`;\n\nconst codeString = `import React, { useState } from 'react';\n\n// My favorite component\nconst Counter = () => {\n const [value, setValue] = useState(0);\n return (\n {value}\n );\n};`;\n\nconst CodeEditor = styled.div`\n border-radius: 0.375rem;\n overflow: hidden;\n position: relative;\n &::before {\n content: '';\n display: block;\n height: 100%;\n background: transparent;\n width: 100%;\n position: absolute;\n z-index: 1;\n }\n`;\n\nexport function Component() {\n return (\n \n \n {Object.keys(themeData).map((name, idx) => {\n const linkName = (toSnakeCase(name) || [])\n .join('-')\n .replace(/-light$/, '/light')\n .replace(/-dark$/, '/dark');\n const themeExtension = themeData[name as keyof typeof themeData];\n return (\n \n \n {toTitleCase(name)}\n \n \n \n \n \n );\n })}\n \n \n );\n}\n"],"names":["toSnakeCase","_str$match","arguments","length","undefined","match","map","x","toLowerCase","join","split","toTitleCase","_str$match2","charAt","toUpperCase","slice","ThemesWarpper","styled","div","_templateObject","_taggedTemplateLiteral","ThemeCard","_templateObject2","Title","_templateObject3","codeString","CodeEditor","_templateObject4","Component","_jsx","Warpper","children","Object","keys","themeData","name","idx","linkName","replace","themeExtension","Link","to","concat","_jsxs","CodeMirror","theme","value","height","extensions","color","langs","jsx"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2942.4c8fdc5c.chunk.js b/static/js/2942.4c8fdc5c.chunk.js new file mode 100644 index 000000000..6736e8abc --- /dev/null +++ b/static/js/2942.4c8fdc5c.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2942],{52942:(n,e,r)=>{r.r(e),r.d(e,{default:()=>o});const o={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Add className Extensions\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-classname.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-classname)\n\nAdding a class for a specific line for CodeMirror6.\n\n[![Add className Extensions](https://user-images.githubusercontent.com/1680273/224198360-99bd605f-9845-440b-9dfc-f5d4f4d58396.png)](https://uiwjs.github.io/react-codemirror/#/extensions/classname)\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-extensions-classname --save\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { classname } from '@uiw/codemirror-extensions-classname';\n\nconst themeDemo = EditorView.baseTheme({\n '&dark .first-line': { backgroundColor: 'red' },\n '&light .first-line': { backgroundColor: 'red' },\n '&dark .line-color': { backgroundColor: 'blue' },\n '&light .line-color': { backgroundColor: 'blue' },\n});\n\nfunction App() {\n const classnameExt = classname({\n add: (lineNumber) => {\n if (lineNumber === 1) {\n return 'first-line';\n }\n if (lineNumber === 5) {\n return 'line-color';\n }\n },\n });\n return ;\n}\n\nexport default App;\n```\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { classname } from '@uiw/codemirror-extensions-classname';\n\nfunction App() {\n const classnameExt = classname({\n add: (lineNumber) => {\n if (lineNumber === 1) {\n return 'first-line';\n }\n if (lineNumber === 5) {\n return 'line-color';\n }\n },\n });\n return ;\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { classname } from '@uiw/codemirror-extensions-classname';\n\nconst classnameExt = classname({\n add: (lineNumber) => {\n if (lineNumber === 1) {\n return 'first-line';\n }\n if (lineNumber === 5) {\n return 'line-color';\n }\n },\n});\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [classnameExt],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## API\n\n```ts\nimport { Extension } from '@codemirror/state';\nexport declare type ClassnameOptions = {\n add?: (lineNumber: number) => string | undefined;\n};\nexport declare function classname(options?: ClassnameOptions): Extension;\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=2942.4c8fdc5c.chunk.js.map \ No newline at end of file diff --git a/static/js/2942.4c8fdc5c.chunk.js.map b/static/js/2942.4c8fdc5c.chunk.js.map new file mode 100644 index 000000000..7766e4013 --- /dev/null +++ b/static/js/2942.4c8fdc5c.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2942.4c8fdc5c.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,umGACRC,SAAS,GACTC,aAAa,G","sources":["../../extensions/classname/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Add className Extensions\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-classname.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-classname)\\n\\nAdding a class for a specific line for CodeMirror6.\\n\\n[![Add className Extensions](https://user-images.githubusercontent.com/1680273/224198360-99bd605f-9845-440b-9dfc-f5d4f4d58396.png)](https://uiwjs.github.io/react-codemirror/#/extensions/classname)\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-extensions-classname --save\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { classname } from '@uiw/codemirror-extensions-classname';\\n\\nconst themeDemo = EditorView.baseTheme({\\n '&dark .first-line': { backgroundColor: 'red' },\\n '&light .first-line': { backgroundColor: 'red' },\\n '&dark .line-color': { backgroundColor: 'blue' },\\n '&light .line-color': { backgroundColor: 'blue' },\\n});\\n\\nfunction App() {\\n const classnameExt = classname({\\n add: (lineNumber) => {\\n if (lineNumber === 1) {\\n return 'first-line';\\n }\\n if (lineNumber === 5) {\\n return 'line-color';\\n }\\n },\\n });\\n return ;\\n}\\n\\nexport default App;\\n```\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { classname } from '@uiw/codemirror-extensions-classname';\\n\\nfunction App() {\\n const classnameExt = classname({\\n add: (lineNumber) => {\\n if (lineNumber === 1) {\\n return 'first-line';\\n }\\n if (lineNumber === 5) {\\n return 'line-color';\\n }\\n },\\n });\\n return ;\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { classname } from '@uiw/codemirror-extensions-classname';\\n\\nconst classnameExt = classname({\\n add: (lineNumber) => {\\n if (lineNumber === 1) {\\n return 'first-line';\\n }\\n if (lineNumber === 5) {\\n return 'line-color';\\n }\\n },\\n});\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [classnameExt],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## API\\n\\n```ts\\nimport { Extension } from '@codemirror/state';\\nexport declare type ClassnameOptions = {\\n add?: (lineNumber: number) => string | undefined;\\n};\\nexport declare function classname(options?: ClassnameOptions): Extension;\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/2980.b2a31f2e.chunk.js b/static/js/2980.b2a31f2e.chunk.js new file mode 100644 index 000000000..165bec05b --- /dev/null +++ b/static/js/2980.b2a31f2e.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[2980],{32980:(n,e,a)=>{a.r(e),a.d(e,{default:()=>s});const s='# This is a TOML document. Boom.\n\ntitle = "TOML Example"\n\n[owner]\nname = "Tom Preston-Werner"\norganization = "GitHub"\nbio = "GitHub Cofounder & CEO\\nLikes tater tots and beer."\ndob = 1979-05-27T07:32:00Z # First class dates? Why not?\n\n[database]\nserver = "192.168.1.1"\nports = [ 8001, 8001, 8002 ]\nconnection_max = 5000\nenabled = true\n\n[servers]\n\n # You can indent as you please. Tabs or spaces. TOML don\'t care.\n [servers.alpha]\n ip = "10.0.0.1"\n dc = "eqdc10"\n \n [servers.beta]\n ip = "10.0.0.2"\n dc = "eqdc10"\n \n[clients]\ndata = [ ["gamma", "delta"], [1, 2] ]\n\n# Line breaks are OK when inside arrays\nhosts = [\n "alpha",\n "omega"\n]'}}]); +//# sourceMappingURL=2980.b2a31f2e.chunk.js.map \ No newline at end of file diff --git a/static/js/2980.b2a31f2e.chunk.js.map b/static/js/2980.b2a31f2e.chunk.js.map new file mode 100644 index 000000000..9b3166ecb --- /dev/null +++ b/static/js/2980.b2a31f2e.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/2980.b2a31f2e.chunk.js","mappings":"yHAAA,krB","sources":["../../node_modules/code-example/txt/sample.toml.txt"],"sourcesContent":["export default \"# This is a TOML document. Boom.\\n\\ntitle = \\\"TOML Example\\\"\\n\\n[owner]\\nname = \\\"Tom Preston-Werner\\\"\\norganization = \\\"GitHub\\\"\\nbio = \\\"GitHub Cofounder & CEO\\\\nLikes tater tots and beer.\\\"\\ndob = 1979-05-27T07:32:00Z # First class dates? Why not?\\n\\n[database]\\nserver = \\\"192.168.1.1\\\"\\nports = [ 8001, 8001, 8002 ]\\nconnection_max = 5000\\nenabled = true\\n\\n[servers]\\n\\n # You can indent as you please. Tabs or spaces. TOML don't care.\\n [servers.alpha]\\n ip = \\\"10.0.0.1\\\"\\n dc = \\\"eqdc10\\\"\\n \\n [servers.beta]\\n ip = \\\"10.0.0.2\\\"\\n dc = \\\"eqdc10\\\"\\n \\n[clients]\\ndata = [ [\\\"gamma\\\", \\\"delta\\\"], [1, 2] ]\\n\\n# Line breaks are OK when inside arrays\\nhosts = [\\n \\\"alpha\\\",\\n \\\"omega\\\"\\n]\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3087.a51340c3.chunk.js b/static/js/3087.a51340c3.chunk.js new file mode 100644 index 000000000..9c1d80c96 --- /dev/null +++ b/static/js/3087.a51340c3.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3087],{93087:(e,a,s)=>{s.r(a),s.d(a,{default:()=>w});const w=" = CALCULATE(SUM(Sales[SalesAmount]), PREVIOUSQUARTER(Calendar[DateKey]))"}}]); +//# sourceMappingURL=3087.a51340c3.chunk.js.map \ No newline at end of file diff --git a/static/js/3087.a51340c3.chunk.js.map b/static/js/3087.a51340c3.chunk.js.map new file mode 100644 index 000000000..30469b104 --- /dev/null +++ b/static/js/3087.a51340c3.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3087.a51340c3.chunk.js","mappings":"yHAAA,mF","sources":["../../node_modules/code-example/txt/sample.msdax.txt"],"sourcesContent":["export default \" = CALCULATE(SUM(Sales[SalesAmount]), PREVIOUSQUARTER(Calendar[DateKey]))\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/310.317979ac.chunk.js b/static/js/310.317979ac.chunk.js new file mode 100644 index 000000000..98f346665 --- /dev/null +++ b/static/js/310.317979ac.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[310],{10310:(e,n,t)=>{t.r(n),t.d(n,{default:()=>o});const o='\n\n\\n\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3175.5a421912.chunk.js b/static/js/3175.5a421912.chunk.js new file mode 100644 index 000000000..390135dd4 --- /dev/null +++ b/static/js/3175.5a421912.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3175],{3175:(e,r,n)=>{n.r(r),n.d(r,{default:()=>t});const t={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# BBEdit Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-aura.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-aura)\n\n\n \"codemirror-theme-aura\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-aura --save\n```\n\n```jsx\nimport { tags as t } from '@lezer/highlight';\nimport { aura, auraInit } from '@uiw/codemirror-theme-aura';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsAura: CreateThemeOptions['settings'];\nexport declare const auraInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const aura: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { aura } from '@uiw/codemirror-theme-aura';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { aura } from '@uiw/codemirror-theme-aura';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [aura, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=3175.5a421912.chunk.js.map \ No newline at end of file diff --git a/static/js/3175.5a421912.chunk.js.map b/static/js/3175.5a421912.chunk.js.map new file mode 100644 index 000000000..6641c349f --- /dev/null +++ b/static/js/3175.5a421912.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3175.5a421912.chunk.js","mappings":"wHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,0oFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/aura/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# BBEdit Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-aura.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-aura)\\n\\n\\n \\\"codemirror-theme-aura\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-aura --save\\n```\\n\\n```jsx\\nimport { tags as t } from '@lezer/highlight';\\nimport { aura, auraInit } from '@uiw/codemirror-theme-aura';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsAura: CreateThemeOptions['settings'];\\nexport declare const auraInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const aura: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { aura } from '@uiw/codemirror-theme-aura';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { aura } from '@uiw/codemirror-theme-aura';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [aura, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3211.837a71c5.chunk.js b/static/js/3211.837a71c5.chunk.js new file mode 100644 index 000000000..077bd2efc --- /dev/null +++ b/static/js/3211.837a71c5.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3211],{18944:(e,t,l)=>{l.d(t,{Oq:()=>d});var n,a,r=l(50669),o=l(38932);const d=o.ZP.div(n||(n=(0,r.Z)(["\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n"])));o.ZP.div(a||(a=(0,r.Z)(["\n display: flex;\n flex: 1;\n"])))},73211:(e,t,l)=>{l.r(t),l.d(t,{Component:()=>b,MentionsExample:()=>h});var n=l(83528),a=l(76391);function r(e){return void 0===e&&(e=[]),(0,a.ys)({override:[t=>{var l=t.matchBefore(/@(\w+)?/);return l?l&&l.from==l.to&&!t.explicit?null:{from:null==l?void 0:l.from,options:[...e]}:null}]})}r();var o=l(4801),d=l(20530),i=l(40878),s=l(18930),m=l(18944),u=l(79584);const c=[{label:"@Walter White"},{label:"@\u76ae\u76ae\u9c81"},{label:"@\u9c81\u897f\u897f"},{label:"@\u4e2d\u672c\u806a"},{label:"@\u30b5\u30c8\u30b7\u30fb\u30ca\u30ab\u30e2\u30c8"},{label:"@\u91ce\u6bd4\u306e\u3073\u592a"},{label:"@\uc131\ub355\uc120"},{label:"@Jesse Pinkman"},{label:'@Gustavo "Gus" Fring'},{label:"@Saul Goodman"},{label:"@Hank Schrader"},{label:"@Skyler White"},{label:"@Mike Ehrmantraut"},{label:"@Lyd\xec\xe3 R\xf4dart\xe9-Q\xfcayle"}],h=()=>{const{theme:e}=(0,i.F)(),t=(0,n.useContext)(s.Oy);return(0,u.jsx)(m.Oq,{children:(0,u.jsx)(o.default,{value:t.mdstr,theme:e,height:"300px !important",style:{margin:"0 0 23px 0"},extensions:[d.RI.markdown(),r(c)]})})},b=()=>(0,u.jsx)(s.MB,{path:()=>l.e(6453).then(l.bind(l,86453)),children:(0,u.jsx)(h,{})})},40878:(e,t,l)=>{l.d(t,{F:()=>a});var n=l(83528);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";const t=document.documentElement.getAttribute("data-color-mode"),[l,a]=(0,n.useState)("dark"===t?"dark":e);return(0,n.useEffect)((()=>{a("dark"===document.documentElement.getAttribute("data-color-mode")?"dark":"light"),document.addEventListener("colorschemechange",(e=>{a(e.detail.colorScheme)}))}),[]),{theme:l,setTheme:a}}}}]); +//# sourceMappingURL=3211.837a71c5.chunk.js.map \ No newline at end of file diff --git a/static/js/3211.837a71c5.chunk.js.map b/static/js/3211.837a71c5.chunk.js.map new file mode 100644 index 000000000..530ae3726 --- /dev/null +++ b/static/js/3211.837a71c5.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3211.837a71c5.chunk.js","mappings":"2IAEO,MAAMA,EAAcC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,4EAMdH,EAAAA,GAAOC,IAAGG,IAAAA,GAAAD,EAAAA,EAAAA,GAAA,uC,kGCP1B,SAASE,EAASC,GAIvB,YAHa,IAATA,IACFA,EAAO,KAEFC,EAAAA,EAAAA,IAAe,CACpBC,SAAU,CAACC,IACT,IAAIC,EAAOD,EAAQE,YAAY,WAC/B,OAAKD,EACDA,GAAQA,EAAKE,MAAQF,EAAKG,KAAOJ,EAAQK,SACpC,KAEF,CACLF,KAAc,MAARF,OAAe,EAASA,EAAKE,KACnCG,QAAS,IAAIT,IANG,IAOjB,IAGP,CAC2BD,IAApB,I,iECXP,MAAMW,EAAQ,CACZ,CACEC,MAAO,iBAET,CACEA,MAAO,uBAET,CACEA,MAAO,uBAET,CACEA,MAAO,uBAET,CACEA,MAAO,qDAET,CACEA,MAAO,mCAET,CACEA,MAAO,uBAET,CACEA,MAAO,kBAET,CACEA,MAAO,wBAET,CACEA,MAAO,iBAET,CACEA,MAAO,kBAET,CACEA,MAAO,iBAET,CACEA,MAAO,qBAET,CACEA,MAAO,yCAIEC,EAAyCA,KACpD,MAAM,MAAEC,IAAUC,EAAAA,EAAAA,KACZC,GAASC,EAAAA,EAAAA,YAAWC,EAAAA,IAE1B,OACEC,EAAAA,EAAAA,KAACzB,EAAAA,GAAW,CAAA0B,UACVD,EAAAA,EAAAA,KAACE,EAAAA,QAAU,CACTC,MAAON,EAAOO,MACdT,MAAOA,EACPU,OAAO,mBACPC,MAAO,CAAEC,OAAQ,cACjBC,WAAY,CAACC,EAAAA,GAAMC,WAAY7B,EAASW,OAE9B,EAILmB,EAAYA,KAErBX,EAAAA,EAAAA,KAACY,EAAAA,GAAO,CAACC,KAAMA,IAAM,gCAAwDZ,UAC3ED,EAAAA,EAAAA,KAACN,EAAe,K,kDCtEf,SAASE,IAAyD,IAAhDkB,EAAmCC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,QAC7D,MAAMG,EAAOC,SAASC,gBAAgBC,aAAa,oBAC5C1B,EAAO2B,IAAYC,EAAAA,EAAAA,UAAiD,SAATL,EAAkB,OAASJ,GAO7F,OANAU,EAAAA,EAAAA,YAAU,KACRF,EAAsE,SAA7DH,SAASC,gBAAgBC,aAAa,mBAAgC,OAAS,SACxFF,SAASM,iBAAiB,qBAAsBC,IAC9CJ,EAASI,EAAEC,OAAOC,YAA6C,GAC/D,GACD,IACI,CAAEjC,QAAO2B,WAClB,C","sources":["pages/extensions/index.tsx","../../extensions/mentions/esm/index.js","pages/extensions/mentions/index.tsx","utils/useTheme.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const PageWarpper = styled.div`\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n`;\n\nexport const Content = styled.div`\n display: flex;\n flex: 1;\n`;\n\nexport const Extensions = () => {};\n","import { autocompletion } from '@codemirror/autocomplete';\nexport function mentions(data) {\n if (data === void 0) {\n data = [];\n }\n return autocompletion({\n override: [context => {\n var word = context.matchBefore(/@(\\w+)?/);\n if (!word) return null;\n if (word && word.from == word.to && !context.explicit) {\n return null;\n }\n return {\n from: word == null ? void 0 : word.from,\n options: [...data]\n };\n }]\n });\n}\nexport var mentionsView = [mentions()];","import { useContext, type FC, type PropsWithChildren } from 'react';\nimport { mentions } from '@uiw/codemirror-extensions-mentions';\nimport CodeMirror from '@uiw/react-codemirror';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport { useTheme } from '../../../utils/useTheme';\nimport { Preview, MdContext } from '../../theme/Preview';\nimport { PageWarpper } from '..';\n\nconst users = [\n {\n label: '@Walter White',\n },\n {\n label: '@皮皮鲁',\n },\n {\n label: '@鲁西西',\n },\n {\n label: '@中本聪',\n },\n {\n label: '@サトシ・ナカモト',\n },\n {\n label: '@野比のび太',\n },\n {\n label: '@성덕선',\n },\n {\n label: '@Jesse Pinkman',\n },\n {\n label: '@Gustavo \"Gus\" Fring',\n },\n {\n label: '@Saul Goodman',\n },\n {\n label: '@Hank Schrader',\n },\n {\n label: '@Skyler White',\n },\n {\n label: '@Mike Ehrmantraut',\n },\n {\n label: '@Lydìã Rôdarté-Qüayle',\n },\n];\n\nexport const MentionsExample: FC = () => {\n const { theme } = useTheme();\n const mdData = useContext(MdContext);\n\n return (\n \n \n \n );\n};\n\nexport const Component = () => {\n return (\n import('@uiw/codemirror-extensions-mentions/README.md')}>\n \n \n );\n};\n","import { useEffect, useState } from 'react';\nimport { ReactCodeMirrorProps } from '@uiw/react-codemirror';\n\nexport function useTheme(name: ReactCodeMirrorProps['theme'] = 'light') {\n const dark = document.documentElement.getAttribute('data-color-mode');\n const [theme, setTheme] = useState(dark === 'dark' ? 'dark' : name);\n useEffect(() => {\n setTheme(document.documentElement.getAttribute('data-color-mode') === 'dark' ? 'dark' : 'light');\n document.addEventListener('colorschemechange', (e) => {\n setTheme(e.detail.colorScheme as ReactCodeMirrorProps['theme']);\n });\n }, []);\n return { theme, setTheme };\n}\n"],"names":["PageWarpper","styled","div","_templateObject","_taggedTemplateLiteral","_templateObject2","mentions","data","autocompletion","override","context","word","matchBefore","from","to","explicit","options","users","label","MentionsExample","theme","useTheme","mdData","useContext","MdContext","_jsx","children","CodeMirror","value","mdstr","height","style","margin","extensions","langs","markdown","Component","Preview","path","name","arguments","length","undefined","dark","document","documentElement","getAttribute","setTheme","useState","useEffect","addEventListener","e","detail","colorScheme"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3368.a985898c.chunk.js b/static/js/3368.a985898c.chunk.js new file mode 100644 index 000000000..042930c05 --- /dev/null +++ b/static/js/3368.a985898c.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3368],{13368:(e,k,w)=>{w.r(k),w.d(k,{default:()=>y});const y='EXISTS mykey\nAPPEND mykey "Hello"\nAPPEND mykey " World"\nGET mykey'}}]); +//# sourceMappingURL=3368.a985898c.chunk.js.map \ No newline at end of file diff --git a/static/js/3368.a985898c.chunk.js.map b/static/js/3368.a985898c.chunk.js.map new file mode 100644 index 000000000..b73c4bc13 --- /dev/null +++ b/static/js/3368.a985898c.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3368.a985898c.chunk.js","mappings":"yHAAA,8E","sources":["../../node_modules/code-example/txt/sample.redis.txt"],"sourcesContent":["export default \"EXISTS mykey\\nAPPEND mykey \\\"Hello\\\"\\nAPPEND mykey \\\" World\\\"\\nGET mykey\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3392.d9fa6ccf.chunk.js b/static/js/3392.d9fa6ccf.chunk.js new file mode 100644 index 000000000..38c20e845 --- /dev/null +++ b/static/js/3392.d9fa6ccf.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3392],{83392:(e,l,n)=>{n.r(l),n.d(l,{Component:()=>s});var o=n(4801),t=n(20530),u=n(83528),i=n(79584);function s(){let e=(0,u.useRef)(null);return(0,i.jsx)("div",{children:(0,i.jsx)(o.default,{value:"console.log('hello')",theme:"none",ref:function(l){!e.current&&null!==l&&void 0!==l&&l.editor&&null!==l&&void 0!==l&&l.state&&null!==l&&void 0!==l&&l.view&&(console.log(l),e.current=l)},height:"400px",width:"100%",style:{margin:"0 0 23px 0",flex:1},extensions:[t.RI.markdown()]})})}s.displayName="PageExampleRef"}}]); +//# sourceMappingURL=3392.d9fa6ccf.chunk.js.map \ No newline at end of file diff --git a/static/js/3392.d9fa6ccf.chunk.js.map b/static/js/3392.d9fa6ccf.chunk.js.map new file mode 100644 index 000000000..e96412d89 --- /dev/null +++ b/static/js/3392.d9fa6ccf.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3392.d9fa6ccf.chunk.js","mappings":"0KAIO,SAASA,IACd,IAAIC,GAAQC,EAAAA,EAAAA,QAAkC,MAQ9C,OACEC,EAAAA,EAAAA,KAAA,OAAAC,UACED,EAAAA,EAAAA,KAACE,EAAAA,QAAU,CACTC,MAAK,uBACLC,MAAM,OACNC,IAZN,SAAoBC,IACbR,EAAMS,SAAiB,OAAND,QAAM,IAANA,GAAAA,EAAQA,QAAgB,OAANA,QAAM,IAANA,GAAAA,EAAQE,OAAe,OAANF,QAAM,IAANA,GAAAA,EAAQG,OAE/DC,QAAQC,IAAIL,GACZR,EAAMS,QAAUD,EAEpB,EAOMM,OAAO,QACPC,MAAM,OACNC,MAAO,CAAEC,OAAQ,aAAcC,KAAM,GACrCC,WAAY,CAACC,EAAAA,GAAMC,eAI3B,CAEAtB,EAAUuB,YAAc,gB","sources":["pages/examples/ExampleRef.tsx"],"sourcesContent":["import CodeMirror, { ReactCodeMirrorRef } from '@uiw/react-codemirror';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport { useRef } from 'react';\n\nexport function Component() {\n let $edit = useRef(null);\n function refCallack(editor: ReactCodeMirrorRef) {\n if (!$edit.current && editor?.editor && editor?.state && editor?.view) {\n // first time we got ref, similar to useEffect\n console.log(editor); // do something with editor\n $edit.current = editor; // store it\n }\n }\n return (\n
\n \n
\n );\n}\n\nComponent.displayName = 'PageExampleRef';\n"],"names":["Component","$edit","useRef","_jsx","children","CodeMirror","value","theme","ref","editor","current","state","view","console","log","height","width","style","margin","flex","extensions","langs","markdown","displayName"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3498.99e1287f.chunk.js b/static/js/3498.99e1287f.chunk.js new file mode 100644 index 000000000..689425432 --- /dev/null +++ b/static/js/3498.99e1287f.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3498],{33498:(e,n,a)=>{a.r(n),a.d(n,{default:()=>t});const t='<#ftl stripText=false>\n\n<#-- Free marker demo --\x3e\n\n<#comment>\nThis demonstrates the FreeMarker language. The default theme is not very\ncolorful and displays many different token types in the same color, but keep in\nmind that you can define your own theme (or extend an existing one).\n\nNote that free marker actually defines 6 similar but different syntax modes:\n\n- 3 tag syntax modes: Angle (<#if>), Bracket ([#if]), and Auto.\n- 2 interpolation modes: Dollar (${...}) and Bracket ([=...])\n\nIn auto mode, the first tag determines the tag syntax. You can use the language\nIDs "freemarker.tag-bracket.interpolation-dollar" etc. to force a specific mode.\n\nThe default FreeMarker mode is Angle/Dollar.\n\n\n<#macro greet name>\n Hello ${name}!\n\n\n<#macro border>\n
\n <#nested>\n
\n\n\n<#function avg x y>\n <#return (x + y) / 2>\n\n\n<#assign user = "Juila Smith">\n<#assign animals = [{"name": "Tanuki", "price": 200}, {"name": "Phoenix", "price": 1111}]>\n\n\n\n Welcome!\n\n\n <#-- Greet the user with his/her name --\x3e\n

\n <@greet user />\n

\n\n

We have these animals:\n\n

    \n <#list animals as animal>\n
  • ${animal.name} for ${animal.price} Euros\n \n
\n\n <@border>The bordered text\n\n The average of 35 and 49 is ${avg(35, 49)}.\n\n\n\n'}}]); +//# sourceMappingURL=3498.99e1287f.chunk.js.map \ No newline at end of file diff --git a/static/js/3498.99e1287f.chunk.js.map b/static/js/3498.99e1287f.chunk.js.map new file mode 100644 index 000000000..8e55f97a8 --- /dev/null +++ b/static/js/3498.99e1287f.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3498.99e1287f.chunk.js","mappings":"yHAAA,u/C","sources":["../../node_modules/code-example/txt/sample.freemarker2.txt"],"sourcesContent":["export default \"<#ftl stripText=false>\\n\\n<#-- Free marker demo -->\\n\\n<#comment>\\nThis demonstrates the FreeMarker language. The default theme is not very\\ncolorful and displays many different token types in the same color, but keep in\\nmind that you can define your own theme (or extend an existing one).\\n\\nNote that free marker actually defines 6 similar but different syntax modes:\\n\\n- 3 tag syntax modes: Angle (<#if>), Bracket ([#if]), and Auto.\\n- 2 interpolation modes: Dollar (${...}) and Bracket ([=...])\\n\\nIn auto mode, the first tag determines the tag syntax. You can use the language\\nIDs \\\"freemarker.tag-bracket.interpolation-dollar\\\" etc. to force a specific mode.\\n\\nThe default FreeMarker mode is Angle/Dollar.\\n\\n\\n<#macro greet name>\\n Hello ${name}!\\n\\n\\n<#macro border>\\n
\\n <#nested>\\n
\\n\\n\\n<#function avg x y>\\n <#return (x + y) / 2>\\n\\n\\n<#assign user = \\\"Juila Smith\\\">\\n<#assign animals = [{\\\"name\\\": \\\"Tanuki\\\", \\\"price\\\": 200}, {\\\"name\\\": \\\"Phoenix\\\", \\\"price\\\": 1111}]>\\n\\n\\n\\n Welcome!\\n\\n\\n <#-- Greet the user with his/her name -->\\n

\\n <@greet user />\\n

\\n\\n

We have these animals:\\n\\n

    \\n <#list animals as animal>\\n
  • ${animal.name} for ${animal.price} Euros\\n \\n
\\n\\n <@border>The bordered text\\n\\n The average of 35 and 49 is ${avg(35, 49)}.\\n\\n\\n\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3602.49d39f56.chunk.js b/static/js/3602.49d39f56.chunk.js new file mode 100644 index 000000000..9ce4ac7c7 --- /dev/null +++ b/static/js/3602.49d39f56.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3602],{53602:(e,n,s)=>{s.r(n),s.d(n,{default:()=>t});const t="#-------------------------------------------------------------------------\n# Copyright (c) Microsoft. All rights reserved.\n#--------------------------------------------------------------------------\n\nmodule Azure\n module Blob\n class Blob\n \n def initialize\n @properties = {}\n @metadata = {}\n yield self if block_given?\n end\n\n attr_accessor :name\n attr_accessor :snapshot\n attr_accessor :properties\n attr_accessor :metadata\n end\n end\nend"}}]); +//# sourceMappingURL=3602.49d39f56.chunk.js.map \ No newline at end of file diff --git a/static/js/3602.49d39f56.chunk.js.map b/static/js/3602.49d39f56.chunk.js.map new file mode 100644 index 000000000..1a4dbf7b2 --- /dev/null +++ b/static/js/3602.49d39f56.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3602.49d39f56.chunk.js","mappings":"yHAAA,ihB","sources":["../../node_modules/code-example/txt/sample.ruby.txt"],"sourcesContent":["export default \"#-------------------------------------------------------------------------\\n# Copyright (c) Microsoft. All rights reserved.\\n#--------------------------------------------------------------------------\\n\\nmodule Azure\\n module Blob\\n class Blob\\n \\n def initialize\\n @properties = {}\\n @metadata = {}\\n yield self if block_given?\\n end\\n\\n attr_accessor :name\\n attr_accessor :snapshot\\n attr_accessor :properties\\n attr_accessor :metadata\\n end\\n end\\nend\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3657.3b5571e1.chunk.js b/static/js/3657.3b5571e1.chunk.js new file mode 100644 index 000000000..67ac5fddb --- /dev/null +++ b/static/js/3657.3b5571e1.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3657],{81958:(e,n,r)=>{r.r(n),r.d(n,{default:()=>t});const t={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Zebra Stripes Extensions\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-zebra-stripes.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-zebra-stripes)\n\nStyles alternating lines for CodeMirror6.\n\n[![Zebra Stripes Extensions](https://user-images.githubusercontent.com/1680273/205496628-e7e6f83f-18e9-4bff-8bc8-71a913c60687.png)](https://uiwjs.github.io/react-codemirror/#/extensions/zebra-stripes)\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-extensions-zebra-stripes --save\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { zebraStripes } from '@uiw/codemirror-extensions-zebra-stripes';\n\nfunction App() {\n return ;\n}\nexport default App;\n```\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { zebraStripes } from '@uiw/codemirror-extensions-zebra-stripes';\n\nfunction App() {\n return (\n \n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { zebraStripes } from '@uiw/codemirror-extensions-zebra-stripes';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [zebraStripes({ step: 2 })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## API\n\n```ts\nimport { Extension } from '@codemirror/state';\nexport declare type ZebraStripesOptions = {\n step?: number | null;\n lightColor?: string;\n darkColor?: string;\n /**\n * @example `[1,[2,6], 10]`\n */\n lineNumber?: (number | number[])[] | null;\n /** @default `cm-zebra-stripe` */\n className?: string;\n};\nexport declare function zebraStripes(options?: ZebraStripesOptions): Extension;\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=3657.3b5571e1.chunk.js.map \ No newline at end of file diff --git a/static/js/3657.3b5571e1.chunk.js.map b/static/js/3657.3b5571e1.chunk.js.map new file mode 100644 index 000000000..69fe31f95 --- /dev/null +++ b/static/js/3657.3b5571e1.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3657.3b5571e1.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,wnFACRC,SAAS,GACTC,aAAa,G","sources":["../../extensions/zebra-stripes/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Zebra Stripes Extensions\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-zebra-stripes.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-zebra-stripes)\\n\\nStyles alternating lines for CodeMirror6.\\n\\n[![Zebra Stripes Extensions](https://user-images.githubusercontent.com/1680273/205496628-e7e6f83f-18e9-4bff-8bc8-71a913c60687.png)](https://uiwjs.github.io/react-codemirror/#/extensions/zebra-stripes)\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-extensions-zebra-stripes --save\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { zebraStripes } from '@uiw/codemirror-extensions-zebra-stripes';\\n\\nfunction App() {\\n return ;\\n}\\nexport default App;\\n```\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { zebraStripes } from '@uiw/codemirror-extensions-zebra-stripes';\\n\\nfunction App() {\\n return (\\n \\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { zebraStripes } from '@uiw/codemirror-extensions-zebra-stripes';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [zebraStripes({ step: 2 })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## API\\n\\n```ts\\nimport { Extension } from '@codemirror/state';\\nexport declare type ZebraStripesOptions = {\\n step?: number | null;\\n lightColor?: string;\\n darkColor?: string;\\n /**\\n * @example `[1,[2,6], 10]`\\n */\\n lineNumber?: (number | number[])[] | null;\\n /** @default `cm-zebra-stripe` */\\n className?: string;\\n};\\nexport declare function zebraStripes(options?: ZebraStripesOptions): Extension;\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3733.1e7c89d9.chunk.js b/static/js/3733.1e7c89d9.chunk.js new file mode 100644 index 000000000..d110eb03d --- /dev/null +++ b/static/js/3733.1e7c89d9.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3733],{83733:(n,e,s)=>{s.r(e),s.d(e,{default:()=>t});const t="F0 := IMDB.File_actors;\nCountActors := RECORD\nF0.ActorName;\nUNSIGNED C := COUNT(GROUP);\nEND;\nMoviesIn := TABLE(F0,CountActors,ActorName);\nOUTPUT(TOPN(MoviesIn,100,-C));\n"}}]); +//# sourceMappingURL=3733.1e7c89d9.chunk.js.map \ No newline at end of file diff --git a/static/js/3733.1e7c89d9.chunk.js.map b/static/js/3733.1e7c89d9.chunk.js.map new file mode 100644 index 000000000..2e639f44f --- /dev/null +++ b/static/js/3733.1e7c89d9.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3733.1e7c89d9.chunk.js","mappings":"yHAAA,0L","sources":["../../node_modules/code-example/txt/sample.ecl.txt"],"sourcesContent":["export default \"F0 := IMDB.File_actors;\\nCountActors := RECORD\\nF0.ActorName;\\nUNSIGNED C := COUNT(GROUP);\\nEND;\\nMoviesIn := TABLE(F0,CountActors,ActorName);\\nOUTPUT(TOPN(MoviesIn,100,-C));\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3787.9c9086b0.chunk.js b/static/js/3787.9c9086b0.chunk.js new file mode 100644 index 000000000..ae256d2e6 --- /dev/null +++ b/static/js/3787.9c9086b0.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3787],{43787:(e,a,n)=>{n.r(a),n.d(a,{default:()=>r});const r="LEX Paid Escrow.\nLEXON: 0.2.20\nCOMMENT: 3.f - an escrow that is controlled by a third party for a fee.\n\n\u201cPayer\u201d is a person.\n\u201cPayee\u201d is a person.\n\u201cArbiter\u201d is a person.\n\u201cFee\u201d is an amount.\n\nThe Payer pays an Amount into escrow,\nappoints the Payee,\nappoints the Arbiter,\nand also fixes the Fee.\n\nCLAUSE: Pay Out.\nThe Arbiter may pay from escrow the Fee to themselves,\nand afterwards pay the remainder of the escrow to the Payee.\n\nCLAUSE: Pay Back.\nThe Arbiter may pay from escrow the Fee to themselves,\nand afterwards return the remainder of the escrow to the Payer.\n"}}]); +//# sourceMappingURL=3787.9c9086b0.chunk.js.map \ No newline at end of file diff --git a/static/js/3787.9c9086b0.chunk.js.map b/static/js/3787.9c9086b0.chunk.js.map new file mode 100644 index 000000000..6b56bfc26 --- /dev/null +++ b/static/js/3787.9c9086b0.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3787.9c9086b0.chunk.js","mappings":"yHAAA,6nB","sources":["../../node_modules/code-example/txt/sample.lex.txt"],"sourcesContent":["export default \"LEX Paid Escrow.\\nLEXON: 0.2.20\\nCOMMENT: 3.f - an escrow that is controlled by a third party for a fee.\\n\\n“Payer” is a person.\\n“Payee” is a person.\\n“Arbiter” is a person.\\n“Fee” is an amount.\\n\\nThe Payer pays an Amount into escrow,\\nappoints the Payee,\\nappoints the Arbiter,\\nand also fixes the Fee.\\n\\nCLAUSE: Pay Out.\\nThe Arbiter may pay from escrow the Fee to themselves,\\nand afterwards pay the remainder of the escrow to the Payee.\\n\\nCLAUSE: Pay Back.\\nThe Arbiter may pay from escrow the Fee to themselves,\\nand afterwards return the remainder of the escrow to the Payer.\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3806.6abd52c9.chunk.js b/static/js/3806.6abd52c9.chunk.js new file mode 100644 index 000000000..6d34f2a34 --- /dev/null +++ b/static/js/3806.6abd52c9.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3806],{43806:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});const i={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Basic Theme (dark/light)\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-basic.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-basic)\n\n\n \"codemirror-theme-basic\n\n\n\n \"codemirror-theme-basic\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-basic --save\n```\n\n```jsx\nimport { basicLight, basicLightInit, basicDark, basicDarkInit } from '@uiw/codemirror-theme-basic';\n// Or\nimport { basicDark, basicDarkInit } from '@uiw/codemirror-theme-basic/dark';\nimport { basicLight, basicLightInit } from '@uiw/codemirror-theme-basic/light';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsBasicLight: CreateThemeOptions['settings'];\nexport declare const basicLightInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const basicLight: import('@codemirror/state').Extension;\nexport declare const defaultSettingsBasicDark: CreateThemeOptions['settings'];\nexport declare const basicDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const basicDark: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { basicLight, basicDark } from '@uiw/codemirror-theme-basic';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { basicLight, basicDark } from '@uiw/codemirror-theme-basic';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [basicDark, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n\nby Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes)\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=3806.6abd52c9.chunk.js.map \ No newline at end of file diff --git a/static/js/3806.6abd52c9.chunk.js.map b/static/js/3806.6abd52c9.chunk.js.map new file mode 100644 index 000000000..aa1c9ffb4 --- /dev/null +++ b/static/js/3806.6abd52c9.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3806.6abd52c9.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,i8GACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/basic/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Basic Theme (dark/light)\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-basic.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-basic)\\n\\n\\n \\\"codemirror-theme-basic\\n\\n\\n\\n \\\"codemirror-theme-basic\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-basic --save\\n```\\n\\n```jsx\\nimport { basicLight, basicLightInit, basicDark, basicDarkInit } from '@uiw/codemirror-theme-basic';\\n// Or\\nimport { basicDark, basicDarkInit } from '@uiw/codemirror-theme-basic/dark';\\nimport { basicLight, basicLightInit } from '@uiw/codemirror-theme-basic/light';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsBasicLight: CreateThemeOptions['settings'];\\nexport declare const basicLightInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const basicLight: import('@codemirror/state').Extension;\\nexport declare const defaultSettingsBasicDark: CreateThemeOptions['settings'];\\nexport declare const basicDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const basicDark: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { basicLight, basicDark } from '@uiw/codemirror-theme-basic';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { basicLight, basicDark } from '@uiw/codemirror-theme-basic';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [basicDark, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\\nby Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes)\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3834.cd953aa6.chunk.js b/static/js/3834.cd953aa6.chunk.js new file mode 100644 index 000000000..0915ba01a --- /dev/null +++ b/static/js/3834.cd953aa6.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3834],{63834:(n,e,t)=>{t.r(e),t.d(e,{default:()=>i});const i="doctype 5\nhtml(lang=\"en\")\n head\n title= pageTitle\n script(type='text/javascript')\n if (foo) {\n bar()\n }\n body\n // Disclaimer: You will need to turn insertSpaces to true in order for the\n syntax highlighting to kick in properly (especially for comments)\n Enjoy :)\n h1 Pug - node template engine\n #container\n if youAreUsingPug\n p You are amazing\n else\n p Get on it!"}}]); +//# sourceMappingURL=3834.cd953aa6.chunk.js.map \ No newline at end of file diff --git a/static/js/3834.cd953aa6.chunk.js.map b/static/js/3834.cd953aa6.chunk.js.map new file mode 100644 index 000000000..2e38c13ba --- /dev/null +++ b/static/js/3834.cd953aa6.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3834.cd953aa6.chunk.js","mappings":"yHAAA,giB","sources":["../../node_modules/code-example/txt/sample.pug.txt"],"sourcesContent":["export default \"doctype 5\\nhtml(lang=\\\"en\\\")\\n head\\n title= pageTitle\\n script(type='text/javascript')\\n if (foo) {\\n bar()\\n }\\n body\\n // Disclaimer: You will need to turn insertSpaces to true in order for the\\n syntax highlighting to kick in properly (especially for comments)\\n Enjoy :)\\n h1 Pug - node template engine\\n #container\\n if youAreUsingPug\\n p You are amazing\\n else\\n p Get on it!\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/3969.cd399a15.chunk.js b/static/js/3969.cd399a15.chunk.js new file mode 100644 index 000000000..fc5246e64 --- /dev/null +++ b/static/js/3969.cd399a15.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[3969],{23969:(e,a,n)=>{n.r(a),n.d(a,{default:()=>s});const s="create view tables_vw as\nselect distinct(id) table_id\n,trim(datname) db_name\n,trim(nspname) schema_name\n,trim(relname) table_name\nfrom stv_tbl_perm\njoin pg_class on pg_class.oid = stv_tbl_perm.id\njoin pg_namespace on pg_namespace.oid = relnamespace\njoin pg_database on pg_database.oid = stv_tbl_perm.db_id;\n"}}]); +//# sourceMappingURL=3969.cd399a15.chunk.js.map \ No newline at end of file diff --git a/static/js/3969.cd399a15.chunk.js.map b/static/js/3969.cd399a15.chunk.js.map new file mode 100644 index 000000000..15de1a01f --- /dev/null +++ b/static/js/3969.cd399a15.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/3969.cd399a15.chunk.js","mappings":"yHAAA,4U","sources":["../../node_modules/code-example/txt/sample.redshift.txt"],"sourcesContent":["export default \"create view tables_vw as\\nselect distinct(id) table_id\\n,trim(datname) db_name\\n,trim(nspname) schema_name\\n,trim(relname) table_name\\nfrom stv_tbl_perm\\njoin pg_class on pg_class.oid = stv_tbl_perm.id\\njoin pg_namespace on pg_namespace.oid = relnamespace\\njoin pg_database on pg_database.oid = stv_tbl_perm.db_id;\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4124.b255733a.chunk.js b/static/js/4124.b255733a.chunk.js new file mode 100644 index 000000000..62bf6e9f0 --- /dev/null +++ b/static/js/4124.b255733a.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4124],{94124:(e,n,t)=>{t.r(n),t.d(n,{default:()=>l});const l='`include "first_counter.v"\nmodule first_counter_tb();\n// Declare inputs as regs and outputs as wires\nreg clock, reset, enable;\nwire [3:0] counter_out;\n\n// Initialize all variables\ninitial begin\n $display ("time\\t clk reset enable counter");\n $monitor ("%g\\t %b %b %b %b",\n $time, clock, reset, enable, counter_out);\n clock = 1; // initial value of clock\n reset = 0; // initial value of reset\n enable = 0; // initial value of enable\n #5 reset = 1; // Assert the reset\n #10 reset = 0; // De-assert the reset\n #10 enable = 1; // Assert enable\n #100 enable = 0; // De-assert enable\n #5 $finish; // Terminate simulation\nend\n\n// Clock generator\nalways begin\n #5 clock = ~clock; // Toggle clock every 5 ticks\nend\n\n// Connect DUT to test bench\nfirst_counter U_counter (\nclock,\nreset,\nenable,\ncounter_out\n);\n\nendmodule\n'}}]); +//# sourceMappingURL=4124.b255733a.chunk.js.map \ No newline at end of file diff --git a/static/js/4124.b255733a.chunk.js.map b/static/js/4124.b255733a.chunk.js.map new file mode 100644 index 000000000..1964bb4f1 --- /dev/null +++ b/static/js/4124.b255733a.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4124.b255733a.chunk.js","mappings":"yHAAA,05B","sources":["../../node_modules/code-example/txt/sample.verilog.txt"],"sourcesContent":["export default \"`include \\\"first_counter.v\\\"\\nmodule first_counter_tb();\\n// Declare inputs as regs and outputs as wires\\nreg clock, reset, enable;\\nwire [3:0] counter_out;\\n\\n// Initialize all variables\\ninitial begin\\n $display (\\\"time\\\\t clk reset enable counter\\\");\\n $monitor (\\\"%g\\\\t %b %b %b %b\\\",\\n $time, clock, reset, enable, counter_out);\\n clock = 1; // initial value of clock\\n reset = 0; // initial value of reset\\n enable = 0; // initial value of enable\\n #5 reset = 1; // Assert the reset\\n #10 reset = 0; // De-assert the reset\\n #10 enable = 1; // Assert enable\\n #100 enable = 0; // De-assert enable\\n #5 $finish; // Terminate simulation\\nend\\n\\n// Clock generator\\nalways begin\\n #5 clock = ~clock; // Toggle clock every 5 ticks\\nend\\n\\n// Connect DUT to test bench\\nfirst_counter U_counter (\\nclock,\\nreset,\\nenable,\\ncounter_out\\n);\\n\\nendmodule\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4136.bc8b9b2e.chunk.js b/static/js/4136.bc8b9b2e.chunk.js new file mode 100644 index 000000000..982f25952 --- /dev/null +++ b/static/js/4136.bc8b9b2e.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4136],{84136:(e,n,r)=>{r.r(n),r.d(n,{default:()=>o});const o={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Andromeda Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abyss.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-andromeda)\n\nAndromeda theme for cm6, generated from [vscode themes](https://github.com/EliverLara/Andromeda/blob/master/themes/Andromeda-color-theme.json).\n\n\n \"codemirror-theme-andromeda\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-andromeda --save\n```\n\n```jsx\nimport { andromeda, andromedaInit } from '@uiw/codemirror-theme-andromeda';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\nexport declare const andromedaInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const andromeda: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { andromeda } from '@uiw/codemirror-theme-andromeda';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { andromeda } from '@uiw/codemirror-theme-andromeda';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [andromeda, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=4136.bc8b9b2e.chunk.js.map \ No newline at end of file diff --git a/static/js/4136.bc8b9b2e.chunk.js.map b/static/js/4136.bc8b9b2e.chunk.js.map new file mode 100644 index 000000000..959d871db --- /dev/null +++ b/static/js/4136.bc8b9b2e.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4136.bc8b9b2e.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,kwFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/andromeda/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Andromeda Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abyss.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-andromeda)\\n\\nAndromeda theme for cm6, generated from [vscode themes](https://github.com/EliverLara/Andromeda/blob/master/themes/Andromeda-color-theme.json).\\n\\n\\n \\\"codemirror-theme-andromeda\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-andromeda --save\\n```\\n\\n```jsx\\nimport { andromeda, andromedaInit } from '@uiw/codemirror-theme-andromeda';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\\nexport declare const andromedaInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const andromeda: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { andromeda } from '@uiw/codemirror-theme-andromeda';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { andromeda } from '@uiw/codemirror-theme-andromeda';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [andromeda, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4150.347f0210.chunk.js b/static/js/4150.347f0210.chunk.js new file mode 100644 index 000000000..6d91e18e2 --- /dev/null +++ b/static/js/4150.347f0210.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4150],{14150:(e,n,t)=>{t.r(n),t.d(n,{Component:()=>f});var r=t(18930),o=t(83528),s=t(50559),a=t(50389),i=t(45224),c=t(20530);const l="// The player has a position, a size, and a current speed.\nclass Player {\n size = new Vec(0.8, 1.5);\n\n constructor(pos, speed) {\n this.pos = pos;\n this.speed = speed;\n }\n\n static create(pos) {\n return new Player(pos.plus(new Vec(0, -0.5)), new Vec(0, 0));\n }\n}\n\n// Lava block. When you touch it, you die.\nclass Lava {\n size = new Vec(1, 1)\n\n constructor(pos, speed, reset) {\n this.pos = pos;\n this.speed = speed;\n this.reset = reset;\n }\n\n static horizontal(pos) {\n return new Lava(pos, new Vec(2, 0));\n }\n\n static vertical(pos) {\n return new Lava(pos, new Vec(0, 2));\n }\n\n static drip(pos) {\n return new Lava(pos, new Vec(0, 3), pos);\n }\n}\n";var d=t(40878),u=t(79584);const h=s.default.Original,p=s.default.Modified,g=()=>{const[e,n]=(0,o.useState)("a-b"),[t,r]=(0,o.useState)(),[g,f]=(0,o.useState)(!0),[v,x]=(0,o.useState)(!0),[m,C]=(0,o.useState)({}),{theme:b}=(0,d.F)(),[w,j]=(0,o.useState)(l),y=(0,o.useRef)();return(0,u.jsxs)(o.Fragment,{children:[(0,u.jsxs)("button",{onClick:()=>{y.current=Math.floor(101*Math.random());const e="// hello world"+y.current+"\n"+l;j(e)},children:["Change Original Value ",y.current]}),(0,u.jsxs)(s.default,{orientation:e,revertControls:t,collapseUnchanged:m,highlightChanges:g,gutter:v,style:{height:300,overflow:"auto"},theme:b,children:[(0,u.jsx)(h,{value:w,extensions:[c.RI.javascript()],onChange:e=>{}}),(0,u.jsx)(p,{value:'class Player {\n get type() { return "player" }\n\n constructor(pos, speed) {\n this.pos = pos;\n this.speed = speed;\n }\n\n static create(pos) {\n return new Player(pos.plus(new Vec(0, -0.5)), new Vec(0, 0));\n }\n}\n\nclass Lava {\n constructor(pos, speed, reset) {\n this.pos = pos;\n this.speed = speed;\n this.reset = reset;\n }\n\n get type() { return "lava"; }\n\n static create(pos, ch) {\n if (ch == "=") {\n return new Lava(pos, new Vec(2, 0));\n } else if (ch == "|") {\n return new Lava(pos, new Vec(0, 2));\n } else if (ch == "v") {\n return new Lava(pos, new Vec(0, 3), pos);\n }\n }\n}\n\nPlayer.prototype.size = new Vec(0.8, 1.5);\nLava.prototype.size = new Vec(1, 1);\n',extensions:[c.RI.javascript(),a.tk.editable.of(!1),i.yy.readOnly.of(!0)]})]}),(0,u.jsxs)("label",{children:["Orientation",(0,u.jsxs)("select",{onChange:e=>{n(e.target.value)},defaultValue:e,children:[(0,u.jsx)("option",{value:"",children:"please orientation choose"}),(0,u.jsx)("option",{value:"a-b",children:"a-b"}),(0,u.jsx)("option",{value:"b-a",children:"b-a"})]})]}),(0,u.jsx)("br",{}),(0,u.jsxs)("label",{children:["Revert buttons",(0,u.jsxs)("select",{defaultValue:t,onChange:e=>r(e.target.value),children:[(0,u.jsx)("option",{value:"",children:"please revertControls choose"}),(0,u.jsx)("option",{value:"a-to-b",children:"a-to-b"}),(0,u.jsx)("option",{value:"b-to-a",children:"b-to-a"})]})]}),(0,u.jsx)("br",{}),(0,u.jsxs)("label",{children:["Highlight changes",(0,u.jsx)("input",{type:"checkbox",checked:!!g,onChange:e=>f(e.target.checked)})]}),(0,u.jsx)("br",{}),(0,u.jsxs)("label",{children:["Gutter markers",(0,u.jsx)("input",{type:"checkbox",checked:!!v,onChange:e=>x(e.target.checked)})]}),(0,u.jsxs)("label",{children:["Collapse unchanged code",(0,u.jsx)("input",{type:"checkbox",checked:!!m,onChange:e=>C(e.target.checked?{}:void 0)})]})]})},f=()=>(0,u.jsx)(r.MB,{path:()=>t.e(5751).then(t.bind(t,5751)),children:(0,u.jsx)(g,{})})},40878:(e,n,t)=>{t.d(n,{F:()=>o});var r=t(83528);function o(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";const n=document.documentElement.getAttribute("data-color-mode"),[t,o]=(0,r.useState)("dark"===n?"dark":e);return(0,r.useEffect)((()=>{o("dark"===document.documentElement.getAttribute("data-color-mode")?"dark":"light"),document.addEventListener("colorschemechange",(e=>{o(e.detail.colorScheme)}))}),[]),{theme:t,setTheme:o}}},50559:(e,n,t)=>{t.r(n),t.d(n,{default:()=>Z});var r=t(25773),o=t(30808),s=t(83528),a=t(4801),i=t(50389),c=t(79584),l={modified:{doc:""},original:{doc:""}},d=(0,s.createContext)(l);function u(e,n){return(0,r.Z)({},e,n,{modified:(0,r.Z)({},e.modified,n.modified),original:(0,r.Z)({},e.original,n.original)})}var h=()=>(0,s.useContext)(d),p=e=>{var{children:n,theme:t}=e,[o,a]=(0,s.useReducer)(u,(0,r.Z)({},l,{theme:t}));return(0,s.useEffect)((()=>a({theme:t})),[t]),(0,c.jsx)(d.Provider,{value:(0,r.Z)({},o,{dispatch:a}),children:n})},g=["extensions","value","selection","onChange"],f=e=>{var{extensions:n=[],value:t,selection:c,onChange:l}=e,d=(0,o.Z)(e,g),{theme:u,dispatch:p}=h(),f=(0,a.getDefaultExtensions)((0,r.Z)({},d,{theme:u})),v=i.tk.updateListener.of((e=>{if(e.docChanged&&"function"===typeof l){var n=e.state.doc.toString();l(n,e)}}));return(0,s.useEffect)((()=>p({original:{doc:t,selection:c,extensions:[v,...f,...n]},originalExtension:{onChange:l,option:d,extension:[n,v]}})),[e]),null};f.displayName="CodeMirrorMerge.Original";var v=["extensions","value","selection","onChange"],x=e=>{var{extensions:n=[],value:t,selection:c,onChange:l}=e,d=(0,o.Z)(e,v),{theme:u,dispatch:p}=h(),g=(0,a.getDefaultExtensions)((0,r.Z)({},d,{theme:u})),f=i.tk.updateListener.of((e=>{if(e.docChanged&&"function"===typeof l){var n=e.state.doc.toString();l(n,e)}}));return(0,s.useEffect)((()=>p({modified:{doc:t,selection:c,extensions:[f,...g,...n]},modifiedExtension:{onChange:l,option:d,extension:[f,n]}})),[e]),null};x.displayName="CodeMirrorMerge.Modified";var m=t(24105),C=["className","children","orientation","revertControls","highlightChanges","gutter","collapseUnchanged","destroyRerender","renderRevertControl"],b=["modified","modifiedExtension","original","originalExtension","theme","dispatch"],w=s.forwardRef(((e,n)=>{var{className:t,children:i,orientation:l,revertControls:d,highlightChanges:u,gutter:p,collapseUnchanged:g,destroyRerender:f=!0,renderRevertControl:v}=e,x=(0,o.Z)(e,C),w=h(),{modified:j,modifiedExtension:y,original:Z,originalExtension:k,theme:E,dispatch:V}=w,R=(0,o.Z)(w,b),M=(0,s.useRef)(null),L=(0,s.useRef)(),S={orientation:l,revertControls:d,highlightChanges:u,gutter:p,collapseUnchanged:g,renderRevertControl:v};(0,s.useImperativeHandle)(n,(()=>({container:M.current,view:L.current,modified:j,original:Z,config:(0,r.Z)({a:Z,b:j,parent:M.current},S)})),[M,L,j,Z,S]),(0,s.useEffect)((()=>{!L.current&&M.current&&(L.current=new m.QK((0,r.Z)({a:(0,r.Z)({},Z,{extensions:[...(null==k?void 0:k.extension)||[],...(0,a.getDefaultExtensions)((0,r.Z)({},null==k?void 0:k.option,{theme:E}))]}),b:(0,r.Z)({},j,{extensions:[...(null==y?void 0:y.extension)||[],...(0,a.getDefaultExtensions)((0,r.Z)({},null==y?void 0:y.option,{theme:E}))]}),parent:M.current},S)))}),[L,M]),(0,s.useEffect)((()=>{if(Z&&Z.doc&&L.current){var e,n,t=null==(e=L.current)?void 0:e.a.state.doc.toString();if(t!==Z.doc)null==(n=L.current)||n.a.dispatch({changes:{from:0,to:t.length,insert:Z.doc||""}})}if(j&&j.doc&&L.current){var o,s,i=null==(o=L.current)?void 0:o.b.state.doc.toString();if(i!==j.doc)null==(s=L.current)||s.b.dispatch({changes:{from:0,to:i.length,insert:j.doc||""}})}if(f&&L.current){var c=L.current.a.state.selection.ranges[0].from,l=L.current.b.state.selection.ranges[0].from;L.current.destroy(),L.current=new m.QK((0,r.Z)({a:(0,r.Z)({},Z,{extensions:[...(null==k?void 0:k.extension)||[],...(0,a.getDefaultExtensions)((0,r.Z)({},null==k?void 0:k.option,{theme:E}))]}),b:(0,r.Z)({},j,{extensions:[...(null==y?void 0:y.extension)||[],...(0,a.getDefaultExtensions)((0,r.Z)({},null==y?void 0:y.option,{theme:E}))]}),parent:M.current},S)),c&&(L.current.a.focus(),L.current.a.dispatch({selection:{anchor:c,head:c}})),l&&(L.current.b.focus(),L.current.b.dispatch({selection:{anchor:l,head:l}}))}}),[L,E,M.current,Z,j,k,y,f]),(0,s.useEffect)((()=>()=>L.current&&L.current.destroy()),[]),(0,s.useEffect)((()=>{if(L.current){var e={};R.orientation!==l&&(e.orientation=l),R.revertControls!==d&&(e.revertControls=d),R.highlightChanges!==u&&(e.highlightChanges=u),R.gutter!==p&&(e.gutter=p),R.collapseUnchanged!==g&&(e.collapseUnchanged=g),R.renderRevertControl!==v&&(e.collapseUnchanged=g),Object.keys(e).length&&V&&L.current&&(L.current.reconfigure((0,r.Z)({},e)),V((0,r.Z)({},e)))}}),[V,L,l,d,u,p,g,v]);return(0,c.jsx)("div",(0,r.Z)({ref:M,className:"cm-merge-theme"+(t?" "+t:"")},x,{children:i}))}));w.displayName="CodeMirrorMerge.Internal";var j=["theme"],y=s.forwardRef(((e,n)=>{var{theme:t}=e,s=(0,o.Z)(e,j);return(0,c.jsx)(p,{theme:t,children:(0,c.jsx)(w,(0,r.Z)({},s,{ref:n}))})}));y.Original=f,y.Modified=x,y.displayName="CodeMirrorMerge";const Z=y}}]); +//# sourceMappingURL=4150.347f0210.chunk.js.map \ No newline at end of file diff --git a/static/js/4150.347f0210.chunk.js.map b/static/js/4150.347f0210.chunk.js.map new file mode 100644 index 000000000..8c41edb86 --- /dev/null +++ b/static/js/4150.347f0210.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4150.347f0210.chunk.js","mappings":"iMAAO,MAAMA,EAAY,gtB,0BCQzB,MAAMC,EAAWC,EAAAA,QAAgBD,SAC3BE,EAAWD,EAAAA,QAAgBC,SAEpBC,EAAeA,KAC1B,MAAOC,EAAaC,IAAkBC,EAAAA,EAAAA,UAA8C,QAC7EC,EAAgBC,IAAqBF,EAAAA,EAAAA,aACrCG,EAAkBC,IAAuBJ,EAAAA,EAAAA,WAAmD,IAC5FK,EAAQC,IAAaN,EAAAA,EAAAA,WAAyC,IAC9DO,EAAmBC,IAAwBR,EAAAA,EAAAA,UAAoD,CAAC,IACjG,MAAES,IAAUC,EAAAA,EAAAA,MAIXC,EAAeC,IAAoBZ,EAAAA,EAAAA,UAASP,GAC7CoB,GAASC,EAAAA,EAAAA,UAMf,OACEC,EAAAA,EAAAA,MAACC,EAAAA,SAAQ,CAAAC,SAAA,EACPF,EAAAA,EAAAA,MAAA,UAAQG,QAPEC,KACZN,EAAOO,QAAUC,KAAKC,MAAsB,IAAhBD,KAAKR,UACjC,MAAMU,EAAO,iBAAmBV,EAAOO,QAAU,KAAO3B,EACxDmB,EAAiBW,EAAK,EAIGN,SAAA,CAAC,yBAAuBJ,EAAOO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AMsB,KAC5D,IAAI,MACAvF,GACEiE,EACJI,GAAQG,EAAAA,EAAAA,GAA8BP,EAAMG,GAC9C,OAAoBlD,EAAAA,EAAAA,KAAK8C,EAAU,CACjChE,MAAOA,EACPQ,UAAuBU,EAAAA,EAAAA,KAAKmE,GAAUxB,EAAAA,EAAAA,GAAS,CAAC,EAAGQ,EAAO,CACxDkB,IAAKA,MAEP,IAGJrG,EAAgBD,SAAWA,EAC3BC,EAAgBC,SAAWA,EAC3BD,EAAgBgG,YAAc,kBAC9B,S","sources":["pages/merge/code.ts","pages/merge/Example.tsx","pages/merge/index.tsx","utils/useTheme.tsx","../../merge/esm/store.js","../../merge/esm/Original.js","../../merge/esm/Modified.js","../../merge/esm/Internal.js","../../merge/esm/index.js"],"sourcesContent":["export const originalCode = `// The player has a position, a size, and a current speed.\nclass Player {\n size = new Vec(0.8, 1.5);\n\n constructor(pos, speed) {\n this.pos = pos;\n this.speed = speed;\n }\n\n static create(pos) {\n return new Player(pos.plus(new Vec(0, -0.5)), new Vec(0, 0));\n }\n}\n\n// Lava block. When you touch it, you die.\nclass Lava {\n size = new Vec(1, 1)\n\n constructor(pos, speed, reset) {\n this.pos = pos;\n this.speed = speed;\n this.reset = reset;\n }\n\n static horizontal(pos) {\n return new Lava(pos, new Vec(2, 0));\n }\n\n static vertical(pos) {\n return new Lava(pos, new Vec(0, 2));\n }\n\n static drip(pos) {\n return new Lava(pos, new Vec(0, 3), pos);\n }\n}\n`;\n\nexport const modifiedCode = `class Player {\n get type() { return \"player\" }\n\n constructor(pos, speed) {\n this.pos = pos;\n this.speed = speed;\n }\n\n static create(pos) {\n return new Player(pos.plus(new Vec(0, -0.5)), new Vec(0, 0));\n }\n}\n\nclass Lava {\n constructor(pos, speed, reset) {\n this.pos = pos;\n this.speed = speed;\n this.reset = reset;\n }\n\n get type() { return \"lava\"; }\n\n static create(pos, ch) {\n if (ch == \"=\") {\n return new Lava(pos, new Vec(2, 0));\n } else if (ch == \"|\") {\n return new Lava(pos, new Vec(0, 2));\n } else if (ch == \"v\") {\n return new Lava(pos, new Vec(0, 3), pos);\n }\n }\n}\n\nPlayer.prototype.size = new Vec(0.8, 1.5);\nLava.prototype.size = new Vec(1, 1);\n`;\n","import { Fragment, useRef, useState } from 'react';\nimport CodeMirrorMerge, { CodeMirrorMergeProps } from 'react-codemirror-merge';\nimport { EditorView } from 'codemirror';\nimport { EditorState } from '@codemirror/state';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport { originalCode, modifiedCode } from './code';\nimport { useTheme } from '../../utils/useTheme';\n\nconst Original = CodeMirrorMerge.Original;\nconst Modified = CodeMirrorMerge.Modified;\n\nexport const MergeExample = () => {\n const [orientation, setOrientation] = useState('a-b');\n const [revertControls, setRevertControls] = useState();\n const [highlightChanges, setHighlightChanges] = useState(true);\n const [gutter, setGutter] = useState(true);\n const [collapseUnchanged, setCollapseUnchanged] = useState({});\n const { theme } = useTheme();\n const handleOrientation = (evn: React.ChangeEvent) => {\n setOrientation(evn.target.value as CodeMirrorMergeProps['orientation']);\n };\n const [originalValue, setOriginalValue] = useState(originalCode);\n const random = useRef();\n const click = () => {\n random.current = Math.floor(Math.random() * 101);\n const code = '// hello world' + random.current + '\\n' + originalCode;\n setOriginalValue(code);\n };\n return (\n \n \n \n {\n // console.log('::::::::::', val)\n }}\n />\n \n \n \n
\n \n
\n \n
\n \n \n
\n );\n};\n","import { Preview } from '../theme/Preview';\nimport { MergeExample } from './Example';\n\nexport const Component = () => {\n return (\n import('react-codemirror-merge/README.md')}>\n \n \n );\n};\n","import { useEffect, useState } from 'react';\nimport { ReactCodeMirrorProps } from '@uiw/react-codemirror';\n\nexport function useTheme(name: ReactCodeMirrorProps['theme'] = 'light') {\n const dark = document.documentElement.getAttribute('data-color-mode');\n const [theme, setTheme] = useState(dark === 'dark' ? 'dark' : name);\n useEffect(() => {\n setTheme(document.documentElement.getAttribute('data-color-mode') === 'dark' ? 'dark' : 'light');\n document.addEventListener('colorschemechange', (e) => {\n setTheme(e.detail.colorScheme as ReactCodeMirrorProps['theme']);\n });\n }, []);\n return { theme, setTheme };\n}\n","import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { createContext, useContext, useEffect, useReducer } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var initialState = {\n modified: {\n doc: ''\n },\n original: {\n doc: ''\n }\n};\nexport var Context = /*#__PURE__*/createContext(initialState);\nexport function reducer(state, action) {\n return _extends({}, state, action, {\n modified: _extends({}, state.modified, action.modified),\n original: _extends({}, state.original, action.original)\n });\n}\nexport var useStore = () => {\n return useContext(Context);\n};\nexport var Provider = _ref => {\n var {\n children,\n theme\n } = _ref;\n var [state, dispatch] = useReducer(reducer, _extends({}, initialState, {\n theme\n }));\n useEffect(() => dispatch({\n theme\n }), [theme]);\n return /*#__PURE__*/_jsx(Context.Provider, {\n value: _extends({}, state, {\n dispatch\n }),\n children: children\n });\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"extensions\", \"value\", \"selection\", \"onChange\"];\nimport { useEffect } from 'react';\nimport { getDefaultExtensions } from '@uiw/react-codemirror';\nimport { EditorView } from '@codemirror/view';\nimport { useStore } from './store';\nexport var Original = props => {\n var {\n extensions = [],\n value,\n selection,\n onChange\n } = props,\n otherOption = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n theme,\n dispatch\n } = useStore();\n var defaultExtensions = getDefaultExtensions(_extends({}, otherOption, {\n theme\n }));\n var updateListener = EditorView.updateListener.of(vu => {\n if (vu.docChanged && typeof onChange === 'function') {\n var doc = vu.state.doc;\n var val = doc.toString();\n onChange(val, vu);\n }\n });\n useEffect(() => dispatch({\n original: {\n doc: value,\n selection: selection,\n extensions: [updateListener, ...defaultExtensions, ...extensions]\n },\n originalExtension: {\n onChange,\n option: otherOption,\n extension: [extensions, updateListener]\n }\n }), [props]);\n return null;\n};\nOriginal.displayName = 'CodeMirrorMerge.Original';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"extensions\", \"value\", \"selection\", \"onChange\"];\nimport { useEffect } from 'react';\nimport { getDefaultExtensions } from '@uiw/react-codemirror';\nimport { EditorView } from '@codemirror/view';\nimport { useStore } from './store';\nexport var Modified = props => {\n var {\n extensions = [],\n value,\n selection,\n onChange\n } = props,\n otherOption = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n theme,\n dispatch\n } = useStore();\n var defaultExtensions = getDefaultExtensions(_extends({}, otherOption, {\n theme\n }));\n var updateListener = EditorView.updateListener.of(vu => {\n if (vu.docChanged && typeof onChange === 'function') {\n var doc = vu.state.doc;\n var val = doc.toString();\n onChange(val, vu);\n }\n });\n useEffect(() => dispatch({\n modified: {\n doc: value,\n selection: selection,\n extensions: [updateListener, ...defaultExtensions, ...extensions]\n },\n modifiedExtension: {\n onChange,\n option: otherOption,\n extension: [updateListener, extensions]\n }\n }), [props]);\n return null;\n};\nModified.displayName = 'CodeMirrorMerge.Modified';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"children\", \"orientation\", \"revertControls\", \"highlightChanges\", \"gutter\", \"collapseUnchanged\", \"destroyRerender\", \"renderRevertControl\"],\n _excluded2 = [\"modified\", \"modifiedExtension\", \"original\", \"originalExtension\", \"theme\", \"dispatch\"];\nimport React, { useEffect, useImperativeHandle, useRef } from 'react';\nimport { getDefaultExtensions } from '@uiw/react-codemirror';\nimport { MergeView } from '@codemirror/merge';\nimport { useStore } from './store';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Internal = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n className,\n children,\n orientation,\n revertControls,\n highlightChanges,\n gutter,\n collapseUnchanged,\n destroyRerender = true,\n renderRevertControl\n } = props,\n elmProps = _objectWithoutPropertiesLoose(props, _excluded);\n var _useStore = useStore(),\n {\n modified,\n modifiedExtension,\n original,\n originalExtension,\n theme,\n dispatch\n } = _useStore,\n otherStore = _objectWithoutPropertiesLoose(_useStore, _excluded2);\n var editor = useRef(null);\n var view = useRef();\n var opts = {\n orientation,\n revertControls,\n highlightChanges,\n gutter,\n collapseUnchanged,\n renderRevertControl\n };\n useImperativeHandle(ref, () => ({\n container: editor.current,\n view: view.current,\n modified,\n original,\n config: _extends({\n a: original,\n b: modified,\n parent: editor.current\n }, opts)\n }), [editor, view, modified, original, opts]);\n useEffect(() => {\n if (!view.current && editor.current) {\n view.current = new MergeView(_extends({\n a: _extends({}, original, {\n extensions: [...((originalExtension == null ? void 0 : originalExtension.extension) || []), ...getDefaultExtensions(_extends({}, originalExtension == null ? void 0 : originalExtension.option, {\n theme\n }))]\n }),\n b: _extends({}, modified, {\n extensions: [...((modifiedExtension == null ? void 0 : modifiedExtension.extension) || []), ...getDefaultExtensions(_extends({}, modifiedExtension == null ? void 0 : modifiedExtension.option, {\n theme\n }))]\n }),\n parent: editor.current\n }, opts));\n }\n }, [view, editor]);\n useEffect(() => {\n if (original && original.doc && view.current) {\n var _view$current;\n var originalDoc = (_view$current = view.current) == null ? void 0 : _view$current.a.state.doc.toString();\n if (originalDoc !== original.doc) {\n var _view$current2;\n (_view$current2 = view.current) == null || _view$current2.a.dispatch({\n changes: {\n from: 0,\n to: originalDoc.length,\n insert: original.doc || ''\n }\n // effects: StateEffect.reconfigure.of([\n // ...(originalExtension?.extension || []),\n // ...getDefaultExtensions({ ...originalExtension?.option, theme }),\n // ])\n });\n }\n }\n\n if (modified && modified.doc && view.current) {\n var _view$current3;\n var modifiedDoc = (_view$current3 = view.current) == null ? void 0 : _view$current3.b.state.doc.toString();\n if (modifiedDoc !== modified.doc) {\n var _view$current4;\n (_view$current4 = view.current) == null || _view$current4.b.dispatch({\n changes: {\n from: 0,\n to: modifiedDoc.length,\n insert: modified.doc || ''\n }\n // effects: StateEffect.reconfigure.of([\n // ...(modifiedExtension?.extension || []),\n // ...getDefaultExtensions({ ...modifiedExtension?.option, theme }),\n // ])\n });\n }\n }\n\n if (destroyRerender && view.current) {\n var originalFrom = view.current.a.state.selection.ranges[0].from;\n var modifiedFrom = view.current.b.state.selection.ranges[0].from;\n view.current.destroy();\n view.current = new MergeView(_extends({\n a: _extends({}, original, {\n extensions: [...((originalExtension == null ? void 0 : originalExtension.extension) || []), ...getDefaultExtensions(_extends({}, originalExtension == null ? void 0 : originalExtension.option, {\n theme\n }))]\n }),\n b: _extends({}, modified, {\n extensions: [...((modifiedExtension == null ? void 0 : modifiedExtension.extension) || []), ...getDefaultExtensions(_extends({}, modifiedExtension == null ? void 0 : modifiedExtension.option, {\n theme\n }))]\n }),\n parent: editor.current\n }, opts));\n if (originalFrom) {\n view.current.a.focus();\n view.current.a.dispatch({\n selection: {\n anchor: originalFrom,\n head: originalFrom\n }\n });\n }\n if (modifiedFrom) {\n view.current.b.focus();\n view.current.b.dispatch({\n selection: {\n anchor: modifiedFrom,\n head: modifiedFrom\n }\n });\n }\n }\n }, [view, theme, editor.current, original, modified, originalExtension, modifiedExtension, destroyRerender]);\n useEffect(() => () => view.current && view.current.destroy(), []);\n useEffect(() => {\n if (view.current) {\n var _opts = {};\n if (otherStore.orientation !== orientation) {\n _opts.orientation = orientation;\n }\n if (otherStore.revertControls !== revertControls) {\n _opts.revertControls = revertControls;\n }\n if (otherStore.highlightChanges !== highlightChanges) {\n _opts.highlightChanges = highlightChanges;\n }\n if (otherStore.gutter !== gutter) {\n _opts.gutter = gutter;\n }\n if (otherStore.collapseUnchanged !== collapseUnchanged) {\n _opts.collapseUnchanged = collapseUnchanged;\n }\n if (otherStore.renderRevertControl !== renderRevertControl) {\n _opts.collapseUnchanged = collapseUnchanged;\n }\n if (Object.keys(_opts).length && dispatch && view.current) {\n view.current.reconfigure(_extends({}, _opts));\n dispatch(_extends({}, _opts));\n }\n }\n }, [dispatch, view, orientation, revertControls, highlightChanges, gutter, collapseUnchanged, renderRevertControl]);\n var defaultClassNames = 'cm-merge-theme';\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: editor,\n className: \"\" + defaultClassNames + (className ? \" \" + className : '')\n }, elmProps, {\n children: children\n }));\n});\nInternal.displayName = 'CodeMirrorMerge.Internal';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"theme\"];\nimport React from 'react';\nimport { Original } from './Original';\nimport { Modified } from './Modified';\nimport { Internal } from './Internal';\nimport { Provider } from './store';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar InternalCodeMirror = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n var {\n theme\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n return /*#__PURE__*/_jsx(Provider, {\n theme: theme,\n children: /*#__PURE__*/_jsx(Internal, _extends({}, props, {\n ref: ref\n }))\n });\n});\nvar CodeMirrorMerge = InternalCodeMirror;\nCodeMirrorMerge.Original = Original;\nCodeMirrorMerge.Modified = Modified;\nCodeMirrorMerge.displayName = 'CodeMirrorMerge';\nexport default CodeMirrorMerge;"],"names":["originalCode","Original","CodeMirrorMerge","Modified","MergeExample","orientation","setOrientation","useState","revertControls","setRevertControls","highlightChanges","setHighlightChanges","gutter","setGutter","collapseUnchanged","setCollapseUnchanged","theme","useTheme","originalValue","setOriginalValue","random","useRef","_jsxs","Fragment","children","onClick","click","current","Math","floor","code","style","height","overflow","_jsx","value","extensions","langs","javascript","onChange","val","EditorView","editable","of","EditorState","readOnly","evn","target","defaultValue","type","checked","undefined","Component","Preview","path","name","arguments","length","dark","document","documentElement","getAttribute","setTheme","useEffect","addEventListener","e","detail","colorScheme","initialState","modified","doc","original","Context","createContext","reducer","state","action","_extends","useStore","useContext","Provider","_ref","dispatch","useReducer","_excluded","props","selection","otherOption","_objectWithoutPropertiesLoose","defaultExtensions","getDefaultExtensions","updateListener","vu","docChanged","toString","originalExtension","option","extension","displayName","modifiedExtension","_excluded2","Internal","React","ref","className","destroyRerender","renderRevertControl","elmProps","_useStore","otherStore","editor","view","opts","useImperativeHandle","container","config","a","b","parent","MergeView","_view$current","_view$current2","originalDoc","changes","from","to","insert","_view$current3","_view$current4","modifiedDoc","originalFrom","ranges","modifiedFrom","destroy","focus","anchor","head","_opts","Object","keys","reconfigure"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4166.0d011077.chunk.js b/static/js/4166.0d011077.chunk.js new file mode 100644 index 000000000..a281ed3c8 --- /dev/null +++ b/static/js/4166.0d011077.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4166],{64166:(n,e,a)=>{a.r(e),a.d(e,{default:()=>i});const i='terraform {\n required_providers {\n aws = {\n source = "hashicorp/aws"\n version = "~> 1.0.4"\n }\n }\n}\n\nvariable "aws_region" {}\n\nvariable "base_cidr_block" {\n description = "A /16 CIDR range definition, such as 10.1.0.0/16, that the VPC will use"\n default = "10.1.0.0/16"\n}\n\nvariable "availability_zones" {\n description = "A list of availability zones in which to create subnets"\n type = list(string)\n}\n\nprovider "aws" {\n region = var.aws_region\n}\n\nresource "aws_vpc" "main" {\n # Referencing the base_cidr_block variable allows the network address\n # to be changed without modifying the configuration.\n cidr_block = var.base_cidr_block\n}\n\nresource "aws_subnet" "az" {\n # Create one subnet for each given availability zone.\n count = length(var.availability_zones)\n\n # For each subnet, use one of the specified availability zones.\n availability_zone = var.availability_zones[count.index]\n\n # By referencing the aws_vpc.main object, Terraform knows that the subnet\n # must be created only after the VPC is created.\n vpc_id = aws_vpc.main.id\n\n # Built-in functions and operators can be used for simple transformations of\n # values, such as computing a subnet address. Here we create a /20 prefix for\n # each subnet, using consecutive addresses for each availability zone,\n # such as 10.1.16.0/20 .\n cidr_block = cidrsubnet(aws_vpc.main.cidr_block, 4, count.index+1)\n}\n'}}]); +//# sourceMappingURL=4166.0d011077.chunk.js.map \ No newline at end of file diff --git a/static/js/4166.0d011077.chunk.js.map b/static/js/4166.0d011077.chunk.js.map new file mode 100644 index 000000000..38076c408 --- /dev/null +++ b/static/js/4166.0d011077.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4166.0d011077.chunk.js","mappings":"yHAAA,k7C","sources":["../../node_modules/code-example/txt/sample.hcl.txt"],"sourcesContent":["export default \"terraform {\\n required_providers {\\n aws = {\\n source = \\\"hashicorp/aws\\\"\\n version = \\\"~> 1.0.4\\\"\\n }\\n }\\n}\\n\\nvariable \\\"aws_region\\\" {}\\n\\nvariable \\\"base_cidr_block\\\" {\\n description = \\\"A /16 CIDR range definition, such as 10.1.0.0/16, that the VPC will use\\\"\\n default = \\\"10.1.0.0/16\\\"\\n}\\n\\nvariable \\\"availability_zones\\\" {\\n description = \\\"A list of availability zones in which to create subnets\\\"\\n type = list(string)\\n}\\n\\nprovider \\\"aws\\\" {\\n region = var.aws_region\\n}\\n\\nresource \\\"aws_vpc\\\" \\\"main\\\" {\\n # Referencing the base_cidr_block variable allows the network address\\n # to be changed without modifying the configuration.\\n cidr_block = var.base_cidr_block\\n}\\n\\nresource \\\"aws_subnet\\\" \\\"az\\\" {\\n # Create one subnet for each given availability zone.\\n count = length(var.availability_zones)\\n\\n # For each subnet, use one of the specified availability zones.\\n availability_zone = var.availability_zones[count.index]\\n\\n # By referencing the aws_vpc.main object, Terraform knows that the subnet\\n # must be created only after the VPC is created.\\n vpc_id = aws_vpc.main.id\\n\\n # Built-in functions and operators can be used for simple transformations of\\n # values, such as computing a subnet address. Here we create a /20 prefix for\\n # each subnet, using consecutive addresses for each availability zone,\\n # such as 10.1.16.0/20 .\\n cidr_block = cidrsubnet(aws_vpc.main.cidr_block, 4, count.index+1)\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4185.63183fe3.chunk.js b/static/js/4185.63183fe3.chunk.js new file mode 100644 index 000000000..b30ff845c --- /dev/null +++ b/static/js/4185.63183fe3.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4185],{94185:(e,n,r)=>{r.r(n),r.d(n,{default:()=>i});const i={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Relative Line Numbers Extensions\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-line-numbers-relative.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-line-numbers-relative)\n\nRelative line numbers Extensions for CodeMirror6.\n\n[![Relative line numbers Extensions](https://user-images.githubusercontent.com/1680273/178180348-c53b4b91-527c-4a90-9e60-20269ef9a598.png)](https://uiwjs.github.io/react-codemirror/#/extensions/line-numbers-relative)\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-extensions-line-numbers-relative --save\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { lineNumbersRelative } from '@uiw/codemirror-extensions-line-numbers-relative';\n\nfunction App() {\n return ;\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { lineNumbersRelative } from '@uiw/codemirror-extensions-line-numbers-relative';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [lineNumbersRelative],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=4185.63183fe3.chunk.js.map \ No newline at end of file diff --git a/static/js/4185.63183fe3.chunk.js.map b/static/js/4185.63183fe3.chunk.js.map new file mode 100644 index 000000000..e3a1a04a2 --- /dev/null +++ b/static/js/4185.63183fe3.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4185.63183fe3.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,u3DACRC,SAAS,GACTC,aAAa,G","sources":["../../extensions/line-numbers-relative/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Relative Line Numbers Extensions\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-line-numbers-relative.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-line-numbers-relative)\\n\\nRelative line numbers Extensions for CodeMirror6.\\n\\n[![Relative line numbers Extensions](https://user-images.githubusercontent.com/1680273/178180348-c53b4b91-527c-4a90-9e60-20269ef9a598.png)](https://uiwjs.github.io/react-codemirror/#/extensions/line-numbers-relative)\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-extensions-line-numbers-relative --save\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { lineNumbersRelative } from '@uiw/codemirror-extensions-line-numbers-relative';\\n\\nfunction App() {\\n return ;\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { lineNumbersRelative } from '@uiw/codemirror-extensions-line-numbers-relative';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [lineNumbersRelative],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4187.f0bb9f84.chunk.js b/static/js/4187.f0bb9f84.chunk.js new file mode 100644 index 000000000..51873d661 --- /dev/null +++ b/static/js/4187.f0bb9f84.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4187],{44187:(n,e,s)=>{s.r(e),s.d(e,{default:()=>t});const t='Imports System\nImports System.Collections.Generic\n\nModule Module1\n\n Sub Main()\n Dim a As New M8Ball\n\n Do While True\n\n Dim q As String = ""\n Console.Write("ask me about the future... ")\n q = Console.ReadLine()\n\n If q.Trim <> "" Then\n Console.WriteLine("the answer is... {0}", a.getAnswer(q))\n Else\n Exit Do\n End If\n Loop\n\n End Sub\n\nEnd Module\n\nClass M8Ball\n\n Public Answers As System.Collections.Generic.Dictionary(Of Integer, String)\n\n Public Sub New()\n Answers = New System.Collections.Generic.Dictionary(Of Integer, String)\n Answers.Add(0, "It is certain")\n Answers.Add(1, "It is decidedly so")\n Answers.Add(2, "Without a doubt")\n Answers.Add(3, "Yes, definitely")\n Answers.Add(4, "You may rely on ")\n Answers.Add(5, "As I see it, yes")\n Answers.Add(6, "Most likely")\n Answers.Add(7, "Outlook good")\n Answers.Add(8, "Signs point to yes")\n Answers.Add(9, "Yes")\n Answers.Add(10, "Reply hazy, try again")\n Answers.Add(11, "Ask again later")\n Answers.Add(12, "Better not tell you now")\n Answers.Add(13, "Cannot predict now")\n Answers.Add(14, "Concentrate and ask again")\n Answers.Add(15, "Don\'t count on it")\n Answers.Add(16, "My reply is no")\n Answers.Add(17, "My sources say no")\n Answers.Add(18, "Outlook not so")\n Answers.Add(19, "Very doubtful")\n End Sub\n\n Public Function getAnswer(theQuestion As String) As String\n Dim r As New Random\n Return Answers(r.Next(0, 19))\n End Function\n\nEnd Class\n'}}]); +//# sourceMappingURL=4187.f0bb9f84.chunk.js.map \ No newline at end of file diff --git a/static/js/4187.f0bb9f84.chunk.js.map b/static/js/4187.f0bb9f84.chunk.js.map new file mode 100644 index 000000000..26f4a9dca --- /dev/null +++ b/static/js/4187.f0bb9f84.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4187.f0bb9f84.chunk.js","mappings":"yHAAA,suD","sources":["../../node_modules/code-example/txt/sample.vb.txt"],"sourcesContent":["export default \"Imports System\\nImports System.Collections.Generic\\n\\nModule Module1\\n\\n Sub Main()\\n Dim a As New M8Ball\\n\\n Do While True\\n\\n Dim q As String = \\\"\\\"\\n Console.Write(\\\"ask me about the future... \\\")\\n q = Console.ReadLine()\\n\\n If q.Trim <> \\\"\\\" Then\\n Console.WriteLine(\\\"the answer is... {0}\\\", a.getAnswer(q))\\n Else\\n Exit Do\\n End If\\n Loop\\n\\n End Sub\\n\\nEnd Module\\n\\nClass M8Ball\\n\\n Public Answers As System.Collections.Generic.Dictionary(Of Integer, String)\\n\\n Public Sub New()\\n Answers = New System.Collections.Generic.Dictionary(Of Integer, String)\\n Answers.Add(0, \\\"It is certain\\\")\\n Answers.Add(1, \\\"It is decidedly so\\\")\\n Answers.Add(2, \\\"Without a doubt\\\")\\n Answers.Add(3, \\\"Yes, definitely\\\")\\n Answers.Add(4, \\\"You may rely on \\\")\\n Answers.Add(5, \\\"As I see it, yes\\\")\\n Answers.Add(6, \\\"Most likely\\\")\\n Answers.Add(7, \\\"Outlook good\\\")\\n Answers.Add(8, \\\"Signs point to yes\\\")\\n Answers.Add(9, \\\"Yes\\\")\\n Answers.Add(10, \\\"Reply hazy, try again\\\")\\n Answers.Add(11, \\\"Ask again later\\\")\\n Answers.Add(12, \\\"Better not tell you now\\\")\\n Answers.Add(13, \\\"Cannot predict now\\\")\\n Answers.Add(14, \\\"Concentrate and ask again\\\")\\n Answers.Add(15, \\\"Don't count on it\\\")\\n Answers.Add(16, \\\"My reply is no\\\")\\n Answers.Add(17, \\\"My sources say no\\\")\\n Answers.Add(18, \\\"Outlook not so\\\")\\n Answers.Add(19, \\\"Very doubtful\\\")\\n End Sub\\n\\n Public Function getAnswer(theQuestion As String) As String\\n Dim r As New Random\\n Return Answers(r.Next(0, 19))\\n End Function\\n\\nEnd Class\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4199.be21ac51.chunk.js b/static/js/4199.be21ac51.chunk.js new file mode 100644 index 000000000..12c7a75f5 --- /dev/null +++ b/static/js/4199.be21ac51.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4199],{74199:(n,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a="# \xa9 Microsoft. All rights reserved.\n\n#' Add together two numbers.\n#' \n#' @param x A number.\n#' @param y A number.\n#' @return The sum of \\code{x} and \\code{y}.\n#' @examples\n#' add(1, 1)\n#' add(10, 1)\nadd <- function(x, y) {\n x + y\n}\n\nadd(1, 2)\nadd(1.0, 2.0)\nadd(-1, -2)\nadd(-1.0, -2.0)\nadd(1.0e10, 2.0e10)\n\n\n#' Concatenate together two strings.\n#' \n#' @param x A string.\n#' @param y A string.\n#' @return The concatenated string built of \\code{x} and \\code{y}.\n#' @examples\n#' strcat(\"one\", \"two\")\nstrcat <- function(x, y) {\n paste(x, y)\n}\n\npaste(\"one\", \"two\")\npaste('one', 'two')\npaste(NULL, NULL)\npaste(NA, NA)\n\npaste(\"multi-\n line\",\n 'multi-\n line')\n"}}]); +//# sourceMappingURL=4199.be21ac51.chunk.js.map \ No newline at end of file diff --git a/static/js/4199.be21ac51.chunk.js.map b/static/js/4199.be21ac51.chunk.js.map new file mode 100644 index 000000000..5939314fd --- /dev/null +++ b/static/js/4199.be21ac51.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4199.be21ac51.chunk.js","mappings":"yHAAA,guB","sources":["../../node_modules/code-example/txt/sample.r.txt"],"sourcesContent":["export default \"# © Microsoft. All rights reserved.\\n\\n#' Add together two numbers.\\n#' \\n#' @param x A number.\\n#' @param y A number.\\n#' @return The sum of \\\\code{x} and \\\\code{y}.\\n#' @examples\\n#' add(1, 1)\\n#' add(10, 1)\\nadd <- function(x, y) {\\n x + y\\n}\\n\\nadd(1, 2)\\nadd(1.0, 2.0)\\nadd(-1, -2)\\nadd(-1.0, -2.0)\\nadd(1.0e10, 2.0e10)\\n\\n\\n#' Concatenate together two strings.\\n#' \\n#' @param x A string.\\n#' @param y A string.\\n#' @return The concatenated string built of \\\\code{x} and \\\\code{y}.\\n#' @examples\\n#' strcat(\\\"one\\\", \\\"two\\\")\\nstrcat <- function(x, y) {\\n paste(x, y)\\n}\\n\\npaste(\\\"one\\\", \\\"two\\\")\\npaste('one', 'two')\\npaste(NULL, NULL)\\npaste(NA, NA)\\n\\npaste(\\\"multi-\\n line\\\",\\n 'multi-\\n line')\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4272.edbdc9d5.chunk.js b/static/js/4272.edbdc9d5.chunk.js new file mode 100644 index 000000000..e9c994dc5 --- /dev/null +++ b/static/js/4272.edbdc9d5.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4272],{64272:(n,e,s)=>{s.r(e),s.d(e,{default:()=>a});const a='server {\n listen 173.255.219.235:80;\n server_name website.com.au;\n rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www\n}\n\nserver {\n listen 173.255.219.235:443;\n server_name website.com.au;\n rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www\n}\n\nserver {\n\n listen 173.255.219.235:80;\n server_name www.website.com.au;\n\n\n\n root /data/www;\n index index.html index.php;\n\n location / {\n index index.html index.php; ## Allow a static html file to be shown first\n try_files $uri $uri/ @handler; ## If missing pass the URI to Magento\'s front handler\n expires 30d; ## Assume all files are cachable\n }\n\n ## These locations would be hidden by .htaccess normally\n location /app/ { deny all; }\n location /includes/ { deny all; }\n location /lib/ { deny all; }\n location /media/downloadable/ { deny all; }\n location /pkginfo/ { deny all; }\n location /report/config.xml { deny all; }\n location /var/ { deny all; }\n\n location /var/export/ { ## Allow admins only to view export folder\n auth_basic "Restricted"; ## Message shown in login window\n auth_basic_user_file /rs/passwords/testfile; ## See /etc/nginx/htpassword\n autoindex on;\n }\n\n location /. { ## Disable .htaccess and other hidden files\n return 404;\n }\n\n location @handler { ## Magento uses a common front handler\n rewrite / /index.php;\n }\n\n location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler\n rewrite ^/(.*.php)/ /$1 last;\n }\n\n location ~ \\\\.php$ {\n if (!-e $request_filename) { rewrite / /index.php last; } ## Catch 404s that try_files miss\n\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n fastcgi_param PATH_INFO $fastcgi_script_name;\n fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n include /rs/confs/nginx/fastcgi_params;\n }\n\n}\n\n\nserver {\n\n listen 173.255.219.235:443;\n server_name website.com.au www.website.com.au;\n\n root /data/www;\n index index.html index.php;\n\n ssl on;\n ssl_certificate /rs/ssl/ssl.crt;\n ssl_certificate_key /rs/ssl/ssl.key;\n\n ssl_session_timeout 5m;\n\n ssl_protocols SSLv2 SSLv3 TLSv1;\n ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;\n ssl_prefer_server_ciphers on;\n\n\n\n location / {\n index index.html index.php; ## Allow a static html file to be shown first\n try_files $uri $uri/ @handler; ## If missing pass the URI to Magento\'s front handler\n expires 30d; ## Assume all files are cachable\n }\n\n ## These locations would be hidden by .htaccess normally\n location /app/ { deny all; }\n location /includes/ { deny all; }\n location /lib/ { deny all; }\n location /media/downloadable/ { deny all; }\n location /pkginfo/ { deny all; }\n location /report/config.xml { deny all; }\n location /var/ { deny all; }\n\n location /var/export/ { ## Allow admins only to view export folder\n auth_basic "Restricted"; ## Message shown in login window\n auth_basic_user_file htpasswd; ## See /etc/nginx/htpassword\n autoindex on;\n }\n\n location /. { ## Disable .htaccess and other hidden files\n return 404;\n }\n\n location @handler { ## Magento uses a common front handler\n rewrite / /index.php;\n }\n\n location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler\n rewrite ^/(.*.php)/ /$1 last;\n }\n\n location ~ .php$ { ## Execute PHP scripts\n if (!-e $request_filename) { rewrite /index.php last; } ## Catch 404s that try_files miss\n\n fastcgi_pass 127.0.0.1:9000;\n fastcgi_index index.php;\n fastcgi_param PATH_INFO $fastcgi_script_name;\n fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n include /rs/confs/nginx/fastcgi_params;\n\n fastcgi_param HTTPS on;\n }\n\n}\n'}}]); +//# sourceMappingURL=4272.edbdc9d5.chunk.js.map \ No newline at end of file diff --git a/static/js/4272.edbdc9d5.chunk.js.map b/static/js/4272.edbdc9d5.chunk.js.map new file mode 100644 index 000000000..8266f0134 --- /dev/null +++ b/static/js/4272.edbdc9d5.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4272.edbdc9d5.chunk.js","mappings":"yHAAA,+jI","sources":["../../node_modules/code-example/txt/sample.nginx.txt"],"sourcesContent":["export default \"server {\\n listen 173.255.219.235:80;\\n server_name website.com.au;\\n rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www\\n}\\n\\nserver {\\n listen 173.255.219.235:443;\\n server_name website.com.au;\\n rewrite / $scheme://www.$host$request_uri permanent; ## Forcibly prepend a www\\n}\\n\\nserver {\\n\\n listen 173.255.219.235:80;\\n server_name www.website.com.au;\\n\\n\\n\\n root /data/www;\\n index index.html index.php;\\n\\n location / {\\n index index.html index.php; ## Allow a static html file to be shown first\\n try_files $uri $uri/ @handler; ## If missing pass the URI to Magento's front handler\\n expires 30d; ## Assume all files are cachable\\n }\\n\\n ## These locations would be hidden by .htaccess normally\\n location /app/ { deny all; }\\n location /includes/ { deny all; }\\n location /lib/ { deny all; }\\n location /media/downloadable/ { deny all; }\\n location /pkginfo/ { deny all; }\\n location /report/config.xml { deny all; }\\n location /var/ { deny all; }\\n\\n location /var/export/ { ## Allow admins only to view export folder\\n auth_basic \\\"Restricted\\\"; ## Message shown in login window\\n auth_basic_user_file /rs/passwords/testfile; ## See /etc/nginx/htpassword\\n autoindex on;\\n }\\n\\n location /. { ## Disable .htaccess and other hidden files\\n return 404;\\n }\\n\\n location @handler { ## Magento uses a common front handler\\n rewrite / /index.php;\\n }\\n\\n location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler\\n rewrite ^/(.*.php)/ /$1 last;\\n }\\n\\n location ~ \\\\\\\\.php$ {\\n if (!-e $request_filename) { rewrite / /index.php last; } ## Catch 404s that try_files miss\\n\\n fastcgi_pass 127.0.0.1:9000;\\n fastcgi_index index.php;\\n fastcgi_param PATH_INFO $fastcgi_script_name;\\n fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\\n include /rs/confs/nginx/fastcgi_params;\\n }\\n\\n}\\n\\n\\nserver {\\n\\n listen 173.255.219.235:443;\\n server_name website.com.au www.website.com.au;\\n\\n root /data/www;\\n index index.html index.php;\\n\\n ssl on;\\n ssl_certificate /rs/ssl/ssl.crt;\\n ssl_certificate_key /rs/ssl/ssl.key;\\n\\n ssl_session_timeout 5m;\\n\\n ssl_protocols SSLv2 SSLv3 TLSv1;\\n ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP;\\n ssl_prefer_server_ciphers on;\\n\\n\\n\\n location / {\\n index index.html index.php; ## Allow a static html file to be shown first\\n try_files $uri $uri/ @handler; ## If missing pass the URI to Magento's front handler\\n expires 30d; ## Assume all files are cachable\\n }\\n\\n ## These locations would be hidden by .htaccess normally\\n location /app/ { deny all; }\\n location /includes/ { deny all; }\\n location /lib/ { deny all; }\\n location /media/downloadable/ { deny all; }\\n location /pkginfo/ { deny all; }\\n location /report/config.xml { deny all; }\\n location /var/ { deny all; }\\n\\n location /var/export/ { ## Allow admins only to view export folder\\n auth_basic \\\"Restricted\\\"; ## Message shown in login window\\n auth_basic_user_file htpasswd; ## See /etc/nginx/htpassword\\n autoindex on;\\n }\\n\\n location /. { ## Disable .htaccess and other hidden files\\n return 404;\\n }\\n\\n location @handler { ## Magento uses a common front handler\\n rewrite / /index.php;\\n }\\n\\n location ~ .php/ { ## Forward paths like /js/index.php/x.js to relevant handler\\n rewrite ^/(.*.php)/ /$1 last;\\n }\\n\\n location ~ .php$ { ## Execute PHP scripts\\n if (!-e $request_filename) { rewrite /index.php last; } ## Catch 404s that try_files miss\\n\\n fastcgi_pass 127.0.0.1:9000;\\n fastcgi_index index.php;\\n fastcgi_param PATH_INFO $fastcgi_script_name;\\n fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\\n include /rs/confs/nginx/fastcgi_params;\\n\\n fastcgi_param HTTPS on;\\n }\\n\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/428.61b7d948.chunk.js b/static/js/428.61b7d948.chunk.js new file mode 100644 index 000000000..66fb1b276 --- /dev/null +++ b/static/js/428.61b7d948.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[428],{10428:(n,e,l)=>{l.r(e),l.d(e,{default:()=>t});const t='// http://www.ats-lang.org/\n(* Say Hello! once *)\nval () = print"Hello!\\n"\n//\n(* Say Hello! 3 times *)\nval () = 3*delay(print"Hello!")\nval () = print_newline((*void*))\n//\n\n//\n(* Build a list of 3 *)\nval xs = $list{int}(0, 1, 2)\n//\nval x0 = xs[0] // legal\nval x1 = xs[1] // legal\nval x2 = xs[2] // legal\nval x3 = xs[3] // illegal\n//\n\n//\nextern\nfun{} f0 (): int\nextern\nfun{} f1 (int): int\nextern\nfun{} repeat_f0f1 (int): int\n//\nimplement\n{}(*tmp*)\nrepeat_f0f1(n) =\n if n = 0\n then f0()\n else f1(repeat_f0f1(n-1))\n // end of [if]\n//\nfun\ntimes (\n m:int, n:int\n) : int = // m*n\n repeat_f0f1 (m) where\n{\n implement f0<> () = 0\n implement f1<> (x) = x + n\n}\n//\nfun\npower (\n m:int, n:int\n) : int = // m^n\n repeat_f0f1 (n) where\n{\n implement f0<> () = 1\n implement f1<> (x) = m * x\n}\n//\nval () =\nprintln! ("5*5 = ", times(5,5))\nval () =\nprintln! ("5^2 = ", power(5,2))\nval () =\nprintln! ("2^10 = ", power(2,10))\nval () =\nprintln! ("3^10 = ", power(3,10))\n//\n'}}]); +//# sourceMappingURL=428.61b7d948.chunk.js.map \ No newline at end of file diff --git a/static/js/428.61b7d948.chunk.js.map b/static/js/428.61b7d948.chunk.js.map new file mode 100644 index 000000000..87ca3c316 --- /dev/null +++ b/static/js/428.61b7d948.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/428.61b7d948.chunk.js","mappings":"wHAAA,ghC","sources":["../../node_modules/code-example/txt/sample.postiats.txt"],"sourcesContent":["export default \"// http://www.ats-lang.org/\\n(* Say Hello! once *)\\nval () = print\\\"Hello!\\\\n\\\"\\n//\\n(* Say Hello! 3 times *)\\nval () = 3*delay(print\\\"Hello!\\\")\\nval () = print_newline((*void*))\\n//\\n\\n//\\n(* Build a list of 3 *)\\nval xs = $list{int}(0, 1, 2)\\n//\\nval x0 = xs[0] // legal\\nval x1 = xs[1] // legal\\nval x2 = xs[2] // legal\\nval x3 = xs[3] // illegal\\n//\\n\\n//\\nextern\\nfun{} f0 (): int\\nextern\\nfun{} f1 (int): int\\nextern\\nfun{} repeat_f0f1 (int): int\\n//\\nimplement\\n{}(*tmp*)\\nrepeat_f0f1(n) =\\n if n = 0\\n then f0()\\n else f1(repeat_f0f1(n-1))\\n // end of [if]\\n//\\nfun\\ntimes (\\n m:int, n:int\\n) : int = // m*n\\n repeat_f0f1 (m) where\\n{\\n implement f0<> () = 0\\n implement f1<> (x) = x + n\\n}\\n//\\nfun\\npower (\\n m:int, n:int\\n) : int = // m^n\\n repeat_f0f1 (n) where\\n{\\n implement f0<> () = 1\\n implement f1<> (x) = m * x\\n}\\n//\\nval () =\\nprintln! (\\\"5*5 = \\\", times(5,5))\\nval () =\\nprintln! (\\\"5^2 = \\\", power(5,2))\\nval () =\\nprintln! (\\\"2^10 = \\\", power(2,10))\\nval () =\\nprintln! (\\\"3^10 = \\\", power(3,10))\\n//\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4286.69f182e3.chunk.js b/static/js/4286.69f182e3.chunk.js new file mode 100644 index 000000000..f07cbb476 --- /dev/null +++ b/static/js/4286.69f182e3.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4286],{64286:(t,e,n)=>{n.r(e),n.d(e,{default:()=>r});const r="type storage = int\ntype parameter =\n Increment of int\n| Decrement of int\n| Reset\ntype return = operation list * storage\n// Two entrypoints\nlet add (store, delta : storage * int) : storage = store + delta\nlet sub (store, delta : storage * int) : storage = store - delta\n(* Main access point that dispatches to the entrypoints according to\n the smart contract parameter. *)\nlet main (action, store : parameter * storage) : return =\n ([] : operation list), // No operations\n (match action with\n Increment (n) -> add (store, n)\n | Decrement (n) -> sub (store, n)\n | Reset -> 0)\n"}}]); +//# sourceMappingURL=4286.69f182e3.chunk.js.map \ No newline at end of file diff --git a/static/js/4286.69f182e3.chunk.js.map b/static/js/4286.69f182e3.chunk.js.map new file mode 100644 index 000000000..438b22b46 --- /dev/null +++ b/static/js/4286.69f182e3.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4286.69f182e3.chunk.js","mappings":"yHAAA,ymB","sources":["../../node_modules/code-example/txt/sample.cameligo.txt"],"sourcesContent":["export default \"type storage = int\\ntype parameter =\\n Increment of int\\n| Decrement of int\\n| Reset\\ntype return = operation list * storage\\n// Two entrypoints\\nlet add (store, delta : storage * int) : storage = store + delta\\nlet sub (store, delta : storage * int) : storage = store - delta\\n(* Main access point that dispatches to the entrypoints according to\\n the smart contract parameter. *)\\nlet main (action, store : parameter * storage) : return =\\n ([] : operation list), // No operations\\n (match action with\\n Increment (n) -> add (store, n)\\n | Decrement (n) -> sub (store, n)\\n | Reset -> 0)\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4593.082f3f7d.chunk.js b/static/js/4593.082f3f7d.chunk.js new file mode 100644 index 000000000..9ad6460f4 --- /dev/null +++ b/static/js/4593.082f3f7d.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4593],{24593:(n,t,e)=>{e.r(t),e.d(t,{default:()=>s});const s="FROM mono:3.12\n\nENV KRE_FEED https://www.myget.org/F/aspnetvnext/api/v2\nENV KRE_USER_HOME /opt/kre\n\nRUN apt-get -qq update && apt-get -qqy install unzip \n\nONBUILD RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/kvminstall.sh | sh\nONBUILD RUN bash -c \"source $KRE_USER_HOME/kvm/kvm.sh \\\n && kvm install latest -a default \\\n && kvm alias default | xargs -i ln -s $KRE_USER_HOME/packages/{} $KRE_USER_HOME/packages/default\"\n\n# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)\nRUN apt-get -qqy install \\\n autoconf \\\n automake \\\n build-essential \\\n libtool \nRUN LIBUV_VERSION=1.0.0-rc2 \\\n && curl -sSL https://github.com/joyent/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \\\n && cd /usr/local/src/libuv-$LIBUV_VERSION \\\n && sh autogen.sh && ./configure && make && make install \\\n && rm -rf /usr/local/src/libuv-$LIBUV_VERSION \\\n && ldconfig\n\nENV PATH $PATH:$KRE_USER_HOME/packages/default/bin\n\n# Extra things to test\nRUN echo \"string at end\"\nRUN echo must work 'some str' and some more\nRUN echo hi this is # not a comment\nRUN echo 'String with ${VAR} and another $one here'"}}]); +//# sourceMappingURL=4593.082f3f7d.chunk.js.map \ No newline at end of file diff --git a/static/js/4593.082f3f7d.chunk.js.map b/static/js/4593.082f3f7d.chunk.js.map new file mode 100644 index 000000000..02bb3375b --- /dev/null +++ b/static/js/4593.082f3f7d.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4593.082f3f7d.chunk.js","mappings":"yHAAA,quC","sources":["../../node_modules/code-example/txt/sample.dockerfile.txt"],"sourcesContent":["export default \"FROM mono:3.12\\n\\nENV KRE_FEED https://www.myget.org/F/aspnetvnext/api/v2\\nENV KRE_USER_HOME /opt/kre\\n\\nRUN apt-get -qq update && apt-get -qqy install unzip \\n\\nONBUILD RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/kvminstall.sh | sh\\nONBUILD RUN bash -c \\\"source $KRE_USER_HOME/kvm/kvm.sh \\\\\\n && kvm install latest -a default \\\\\\n && kvm alias default | xargs -i ln -s $KRE_USER_HOME/packages/{} $KRE_USER_HOME/packages/default\\\"\\n\\n# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)\\nRUN apt-get -qqy install \\\\\\n autoconf \\\\\\n automake \\\\\\n build-essential \\\\\\n libtool \\nRUN LIBUV_VERSION=1.0.0-rc2 \\\\\\n && curl -sSL https://github.com/joyent/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \\\\\\n && cd /usr/local/src/libuv-$LIBUV_VERSION \\\\\\n && sh autogen.sh && ./configure && make && make install \\\\\\n && rm -rf /usr/local/src/libuv-$LIBUV_VERSION \\\\\\n && ldconfig\\n\\nENV PATH $PATH:$KRE_USER_HOME/packages/default/bin\\n\\n# Extra things to test\\nRUN echo \\\"string at end\\\"\\nRUN echo must work 'some str' and some more\\nRUN echo hi this is # not a comment\\nRUN echo 'String with ${VAR} and another $one here'\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4647.16b8ecd5.chunk.js b/static/js/4647.16b8ecd5.chunk.js new file mode 100644 index 000000000..1189d7838 --- /dev/null +++ b/static/js/4647.16b8ecd5.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4647],{18944:(e,t,n)=>{n.d(t,{Oq:()=>s});var r,a,d=n(50669),o=n(38932);const s=o.ZP.div(r||(r=(0,d.Z)(["\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n"])));o.ZP.div(a||(a=(0,d.Z)(["\n display: flex;\n flex: 1;\n"])))},74647:(e,t,n)=>{n.r(t),n.d(t,{Component:()=>u,LineNumbersRelativeExample:()=>m});var r=n(83528);var a=[(0,n(50389).Eu)({formatNumber:(e,t)=>{if(e>t.doc.lines)return"0";var n=t.doc.lineAt(t.selection.asSingle().ranges[0].to).number;return e===n?"0":Math.abs(n-e).toString()}})],d=n(4801),o=n(20530),s=n(18930),i=n(40878),l=n(18944),c=n(79584);const m=()=>{const{theme:e}=(0,i.F)(),t=(0,r.useContext)(s.Oy);return(0,c.jsx)(l.Oq,{children:(0,c.jsx)(d.default,{value:t.mdstr,theme:e,height:"300px !important",style:{margin:"0 0 23px 0"},extensions:[o.RI.markdown(),a]})})},u=()=>(0,c.jsx)(s.MB,{path:()=>n.e(4185).then(n.bind(n,94185)),children:(0,c.jsx)(m,{})})},40878:(e,t,n)=>{n.d(t,{F:()=>a});var r=n(83528);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";const t=document.documentElement.getAttribute("data-color-mode"),[n,a]=(0,r.useState)("dark"===t?"dark":e);return(0,r.useEffect)((()=>{a("dark"===document.documentElement.getAttribute("data-color-mode")?"dark":"light"),document.addEventListener("colorschemechange",(e=>{a(e.detail.colorScheme)}))}),[]),{theme:n,setTheme:a}}}}]); +//# sourceMappingURL=4647.16b8ecd5.chunk.js.map \ No newline at end of file diff --git a/static/js/4647.16b8ecd5.chunk.js.map b/static/js/4647.16b8ecd5.chunk.js.map new file mode 100644 index 000000000..e00edccb4 --- /dev/null +++ b/static/js/4647.16b8ecd5.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4647.16b8ecd5.chunk.js","mappings":"2IAEO,MAAMA,EAAcC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAA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ensions/line-numbers-relative/esm/index.js","pages/extensions/line-numbers-relative/index.tsx","utils/useTheme.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nexport const PageWarpper = styled.div`\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n`;\n\nexport const Content = styled.div`\n display: flex;\n flex: 1;\n`;\n\nexport const Extensions = () => {};\n","import { lineNumbers } from '@codemirror/view';\nfunction formatNumber() {\n return lineNumbers({\n formatNumber: (lineNo, state) => {\n if (lineNo > state.doc.lines) {\n return '0';\n }\n var cursorLine = state.doc.lineAt(state.selection.asSingle().ranges[0].to).number;\n if (lineNo === cursorLine) {\n return '0';\n } else {\n return Math.abs(cursorLine - lineNo).toString();\n }\n }\n });\n}\nexport var lineNumbersRelative = [formatNumber()];","import { useContext, type FC, type PropsWithChildren } from 'react';\nimport { lineNumbersRelative } from '@uiw/codemirror-extensions-line-numbers-relative';\nimport CodeMirror from '@uiw/react-codemirror';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport { Preview, MdContext } from '../../theme/Preview';\nimport { useTheme } from '../../../utils/useTheme';\nimport { PageWarpper } from '..';\n\nexport const LineNumbersRelativeExample: FC = () => {\n const { theme } = useTheme();\n const mdData = useContext(MdContext);\n return (\n \n \n \n );\n};\n\nexport const Component = () => {\n return (\n import('@uiw/codemirror-extensions-line-numbers-relative/README.md')}>\n \n \n );\n};\n","import { useEffect, useState } from 'react';\nimport { ReactCodeMirrorProps } from '@uiw/react-codemirror';\n\nexport function useTheme(name: ReactCodeMirrorProps['theme'] = 'light') {\n const dark = document.documentElement.getAttribute('data-color-mode');\n const [theme, setTheme] = useState(dark === 'dark' ? 'dark' : name);\n useEffect(() => {\n setTheme(document.documentElement.getAttribute('data-color-mode') === 'dark' ? 'dark' : 'light');\n document.addEventListener('colorschemechange', (e) => {\n setTheme(e.detail.colorScheme as ReactCodeMirrorProps['theme']);\n });\n }, []);\n return { theme, setTheme };\n}\n"],"names":["PageWarpper","styled","div","_templateObject","_taggedTemplateLiteral","_templateObject2","lineNumbersRelative","lineNumbers","formatNumber","lineNo","state","doc","lines","cursorLine","lineAt","selection","asSingle","ranges","to","number","Math","abs","toString","LineNumbersRelativeExample","theme","useTheme","mdData","useContext","MdContext","_jsx","children","CodeMirror","value","mdstr","height","style","margin","extensions","langs","markdown","Component","Preview","path","name","arguments","length","undefined","dark","document","documentElement","getAttribute","setTheme","useState","useEffect","addEventListener","e","detail","colorScheme"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4661.e9bd427f.chunk.js b/static/js/4661.e9bd427f.chunk.js new file mode 100644 index 000000000..0fb27f36e --- /dev/null +++ b/static/js/4661.e9bd427f.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4661],{84661:(n,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a="import 'dart:async';\nimport 'dart:math' show Random;\nmain() async {\n print('Compute \u03c0 using the Monte Carlo method.');\n await for (var estimate in computePi().take(100)) {\n print('\u03c0 \u2245 $estimate');\n }\n}\n/// Generates a stream of increasingly accurate estimates of \u03c0.\nStream computePi({int batch: 100000}) async* {\n var total = 0;\n var count = 0;\n while (true) {\n var points = generateRandom().take(batch);\n var inside = points.where((p) => p.isInsideUnitCircle);\n total += batch;\n count += inside.length;\n var ratio = count / total;\n // Area of a circle is A = \u03c0\u22c5r\xb2, therefore \u03c0 = A/r\xb2.\n // So, when given random points with x \u2208 <0,1>,\n // y \u2208 <0,1>, the ratio of those inside a unit circle\n // should approach \u03c0 / 4. Therefore, the value of \u03c0\n // should be:\n yield ratio * 4;\n }\n}\nIterable generateRandom([int seed]) sync* {\n final random = Random(seed);\n while (true) {\n yield Point(random.nextDouble(), random.nextDouble());\n }\n}\nclass Point {\n final double x, y;\n const Point(this.x, this.y);\n bool get isInsideUnitCircle => x * x + y * y <= 1;\n}\n"}}]); +//# sourceMappingURL=4661.e9bd427f.chunk.js.map \ No newline at end of file diff --git a/static/js/4661.e9bd427f.chunk.js.map b/static/js/4661.e9bd427f.chunk.js.map new file mode 100644 index 000000000..a7570608b --- /dev/null +++ b/static/js/4661.e9bd427f.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4661.e9bd427f.chunk.js","mappings":"yHAAA,ysC","sources":["../../node_modules/code-example/txt/sample.dart.txt"],"sourcesContent":["export default \"import 'dart:async';\\nimport 'dart:math' show Random;\\nmain() async {\\n print('Compute π using the Monte Carlo method.');\\n await for (var estimate in computePi().take(100)) {\\n print('π ≅ $estimate');\\n }\\n}\\n/// Generates a stream of increasingly accurate estimates of π.\\nStream computePi({int batch: 100000}) async* {\\n var total = 0;\\n var count = 0;\\n while (true) {\\n var points = generateRandom().take(batch);\\n var inside = points.where((p) => p.isInsideUnitCircle);\\n total += batch;\\n count += inside.length;\\n var ratio = count / total;\\n // Area of a circle is A = π⋅r², therefore π = A/r².\\n // So, when given random points with x ∈ <0,1>,\\n // y ∈ <0,1>, the ratio of those inside a unit circle\\n // should approach π / 4. Therefore, the value of π\\n // should be:\\n yield ratio * 4;\\n }\\n}\\nIterable generateRandom([int seed]) sync* {\\n final random = Random(seed);\\n while (true) {\\n yield Point(random.nextDouble(), random.nextDouble());\\n }\\n}\\nclass Point {\\n final double x, y;\\n const Point(this.x, this.y);\\n bool get isInsideUnitCircle => x * x + y * y <= 1;\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4668.e8be69e7.chunk.js b/static/js/4668.e8be69e7.chunk.js new file mode 100644 index 000000000..b83f7ea9a --- /dev/null +++ b/static/js/4668.e8be69e7.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4668],{24668:(n,t,e)=>{e.r(t),e.d(t,{default:()=>s});const s='// Run this cell using Ctrl+Enter (\u2318+Enter on Mac)\n// Then run the next cell to see the output\n\nopen Microsoft.Quantum.Diagnostics;\n\noperation QubitsDemo () : Unit {\n // This line allocates a qubit in state |0\u27e9\n use q = Qubit();\n Message("State |0\u27e9:");\n\n // This line prints out the state of the quantum computer\n // Since only one qubit is allocated, only its state is printed\n DumpMachine();\n\n // This line changes the qubit from state |0\u27e9 to state |1\u27e9\n X(q);\n\n Message("State |1\u27e9:");\n DumpMachine();\n\n // This line changes the qubit to state |-\u27e9 = (1/sqrt(2))(|0\u27e9 - |1\u27e9)\n // That is, this puts the qubit into a superposition\n // 1/sqrt(2) is approximately 0.707107\n H(q);\n\n Message("State |-\u27e9:");\n DumpMachine();\n\n // This line changes the qubit to state |-i\u27e9 = (1/sqrt(2))(|0\u27e9 - i|1\u27e9)\n S(q);\n\n Message("State |-i\u27e9:");\n DumpMachine();\n\n // This will put the qubit into an uneven superposition,\n // where the amplitudes of |0\u27e9 and |1\u27e9 have different moduli\n Rx(2.0, q);\n Ry(1.0, q);\n\n Message("Uneven superposition state:");\n DumpMachine();\n\n // This line returns the qubit to state |0\u27e9\n Reset(q);\n}\n'}}]); +//# sourceMappingURL=4668.e8be69e7.chunk.js.map \ No newline at end of file diff --git a/static/js/4668.e8be69e7.chunk.js.map b/static/js/4668.e8be69e7.chunk.js.map new file mode 100644 index 000000000..94d5e91eb --- /dev/null +++ b/static/js/4668.e8be69e7.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4668.e8be69e7.chunk.js","mappings":"yHAAA,8yC","sources":["../../node_modules/code-example/txt/sample.qsharp.txt"],"sourcesContent":["export default \"// Run this cell using Ctrl+Enter (⌘+Enter on Mac)\\n// Then run the next cell to see the output\\n\\nopen Microsoft.Quantum.Diagnostics;\\n\\noperation QubitsDemo () : Unit {\\n // This line allocates a qubit in state |0⟩\\n use q = Qubit();\\n Message(\\\"State |0⟩:\\\");\\n\\n // This line prints out the state of the quantum computer\\n // Since only one qubit is allocated, only its state is printed\\n DumpMachine();\\n\\n // This line changes the qubit from state |0⟩ to state |1⟩\\n X(q);\\n\\n Message(\\\"State |1⟩:\\\");\\n DumpMachine();\\n\\n // This line changes the qubit to state |-⟩ = (1/sqrt(2))(|0⟩ - |1⟩)\\n // That is, this puts the qubit into a superposition\\n // 1/sqrt(2) is approximately 0.707107\\n H(q);\\n\\n Message(\\\"State |-⟩:\\\");\\n DumpMachine();\\n\\n // This line changes the qubit to state |-i⟩ = (1/sqrt(2))(|0⟩ - i|1⟩)\\n S(q);\\n\\n Message(\\\"State |-i⟩:\\\");\\n DumpMachine();\\n\\n // This will put the qubit into an uneven superposition,\\n // where the amplitudes of |0⟩ and |1⟩ have different moduli\\n Rx(2.0, q);\\n Ry(1.0, q);\\n\\n Message(\\\"Uneven superposition state:\\\");\\n DumpMachine();\\n\\n // This line returns the qubit to state |0⟩\\n Reset(q);\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4695.83f04c50.chunk.js b/static/js/4695.83f04c50.chunk.js new file mode 100644 index 000000000..3e0c7de7b --- /dev/null +++ b/static/js/4695.83f04c50.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4695],{14695:(n,e,i)=>{i.r(e),i.d(e,{default:()=>s});const s="$baseFontSizeInPixels: 14;\n\n@function px2em ($font_size, $base_font_size: $baseFontSizeInPixels) { \n @return ($font_size / $base_font_size) + em; \n}\n\nh1 {\n font-size: px2em(36, $baseFontSizeInPixels);\n}\nh2 {\n font-size: px2em(28, $baseFontSizeInPixels);\n}\n.class {\n font-size: px2em(14, $baseFontSizeInPixels);\n}\n\nnav {\n ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n\n li { display: inline-block; }\n\n a {\n display: block;\n padding: 6px 12px;\n text-decoration: none;\n }\n \n @each $animal in puma, sea-slug, egret, salamander {\n .#{$animal}-icon {\n background-image: url('/images/#{$animal}.png');\n }\n }\n}"}}]); +//# sourceMappingURL=4695.83f04c50.chunk.js.map \ No newline at end of file diff --git a/static/js/4695.83f04c50.chunk.js.map b/static/js/4695.83f04c50.chunk.js.map new file mode 100644 index 000000000..38c9bfb92 --- /dev/null +++ b/static/js/4695.83f04c50.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4695.83f04c50.chunk.js","mappings":"yHAAA,yrB","sources":["../../node_modules/code-example/txt/sample.scss.txt"],"sourcesContent":["export default \"$baseFontSizeInPixels: 14;\\n\\n@function px2em ($font_size, $base_font_size: $baseFontSizeInPixels) { \\n @return ($font_size / $base_font_size) + em; \\n}\\n\\nh1 {\\n font-size: px2em(36, $baseFontSizeInPixels);\\n}\\nh2 {\\n font-size: px2em(28, $baseFontSizeInPixels);\\n}\\n.class {\\n font-size: px2em(14, $baseFontSizeInPixels);\\n}\\n\\nnav {\\n ul {\\n margin: 0;\\n padding: 0;\\n list-style: none;\\n }\\n\\n li { display: inline-block; }\\n\\n a {\\n display: block;\\n padding: 6px 12px;\\n text-decoration: none;\\n }\\n \\n @each $animal in puma, sea-slug, egret, salamander {\\n .#{$animal}-icon {\\n background-image: url('/images/#{$animal}.png');\\n }\\n }\\n}\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/470.45eb5978.chunk.js b/static/js/470.45eb5978.chunk.js new file mode 100644 index 000000000..96ceece3a --- /dev/null +++ b/static/js/470.45eb5978.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[470],{20470:(t,e,n)=>{n.r(e),n.d(e,{default:()=>p});const p="rem *******Begin Comment**************\nrem This program starts the superapp batch program on the network,\nrem directs the output to a file, and displays the file\nrem in Notepad.\nrem *******End Comment**************\n@echo off\nif exist C:\\output.txt goto EMPTYEXISTS\nsetlocal\n path=g:\\programs\\superapp;%path%\n call superapp>C:\\output.txt\nendlocal\n:EMPTYEXISTS\nstart notepad c:\\output.txt"}}]); +//# sourceMappingURL=470.45eb5978.chunk.js.map \ No newline at end of file diff --git a/static/js/470.45eb5978.chunk.js.map b/static/js/470.45eb5978.chunk.js.map new file mode 100644 index 000000000..192c6b631 --- /dev/null +++ b/static/js/470.45eb5978.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/470.45eb5978.chunk.js","mappings":"wHAAA,+Z","sources":["../../node_modules/code-example/txt/sample.bat.txt"],"sourcesContent":["export default \"rem *******Begin Comment**************\\nrem This program starts the superapp batch program on the network,\\nrem directs the output to a file, and displays the file\\nrem in Notepad.\\nrem *******End Comment**************\\n@echo off\\nif exist C:\\\\output.txt goto EMPTYEXISTS\\nsetlocal\\n path=g:\\\\programs\\\\superapp;%path%\\n call superapp>C:\\\\output.txt\\nendlocal\\n:EMPTYEXISTS\\nstart notepad c:\\\\output.txt\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4724.48d0a499.chunk.js b/static/js/4724.48d0a499.chunk.js new file mode 100644 index 000000000..7d66a689d --- /dev/null +++ b/static/js/4724.48d0a499.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4724],{34724:(e,r,t)=>{t.r(r),t.d(r,{default:()=>o});const o={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Solarized Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-solarized.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-solarized)\n\nThis package implements the [Solarized](https://ethanschoonover.com/solarized/) theme for the CodeMirror code editor.\n\n\n \"codemirror-theme-solarized\"\n\n\n\n \"codemirror-theme-solarized\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-solarized --save\n```\n\n```jsx\nimport { solarizedLight, solarizedLightInit, solarizedDark, solarizedDarkInit } from '@uiw/codemirror-theme-solarized';\n// Or\nimport { solarizedDark, solarizedDarkInit } from '@uiw/codemirror-theme-solarized/dark';\nimport { solarizedLight, solarizedLightInit } from '@uiw/codemirror-theme-solarized/light';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsSolarizedLight: CreateThemeOptions['settings'];\nexport declare const solarizedLightInit: (\n options?: Partial,\n) => import('@codemirror/state').Extension;\nexport declare const solarizedLight: import('@codemirror/state').Extension;\nexport declare const defaultSettingsSolarizedDark: CreateThemeOptions['settings'];\nexport declare const solarizedDarkInit: (\n options?: Partial,\n) => import('@codemirror/state').Extension;\nexport declare const solarizedDark: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { solarizedLight, solarizedDark } from '@uiw/codemirror-theme-solarized';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n \n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { solarizedLight, solarizedDark } from '@uiw/codemirror-theme-solarized';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [solarizedLight, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=4724.48d0a499.chunk.js.map \ No newline at end of file diff --git a/static/js/4724.48d0a499.chunk.js.map b/static/js/4724.48d0a499.chunk.js.map new file mode 100644 index 000000000..386ed11fb --- /dev/null +++ b/static/js/4724.48d0a499.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4724.48d0a499.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,6/GACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/solarized/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Solarized Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-solarized.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-solarized)\\n\\nThis package implements the [Solarized](https://ethanschoonover.com/solarized/) theme for the CodeMirror code editor.\\n\\n\\n \\\"codemirror-theme-solarized\\\"\\n\\n\\n\\n \\\"codemirror-theme-solarized\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-solarized --save\\n```\\n\\n```jsx\\nimport { solarizedLight, solarizedLightInit, solarizedDark, solarizedDarkInit } from '@uiw/codemirror-theme-solarized';\\n// Or\\nimport { solarizedDark, solarizedDarkInit } from '@uiw/codemirror-theme-solarized/dark';\\nimport { solarizedLight, solarizedLightInit } from '@uiw/codemirror-theme-solarized/light';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsSolarizedLight: CreateThemeOptions['settings'];\\nexport declare const solarizedLightInit: (\\n options?: Partial,\\n) => import('@codemirror/state').Extension;\\nexport declare const solarizedLight: import('@codemirror/state').Extension;\\nexport declare const defaultSettingsSolarizedDark: CreateThemeOptions['settings'];\\nexport declare const solarizedDarkInit: (\\n options?: Partial,\\n) => import('@codemirror/state').Extension;\\nexport declare const solarizedDark: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { solarizedLight, solarizedDark } from '@uiw/codemirror-theme-solarized';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n \\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { solarizedLight, solarizedDark } from '@uiw/codemirror-theme-solarized';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [solarizedLight, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4873.66caa08d.chunk.js b/static/js/4873.66caa08d.chunk.js new file mode 100644 index 000000000..17d07497f --- /dev/null +++ b/static/js/4873.66caa08d.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4873],{4873:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});const r={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Sublime Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-sublime.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-sublime)\n\n\n \"codemirror-theme-sublime\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-sublime --save\n```\n\n```jsx\nimport { sublime, sublimeInit } from '@uiw/codemirror-theme-sublime';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsSublime: CreateThemeOptions['settings'];\nexport declare function sublimeInit(options?: Partial): import('@codemirror/state').Extension;\nexport declare const sublime: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { sublime } from '@uiw/codemirror-theme-sublime';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { sublime } from '@uiw/codemirror-theme-sublime';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [sublime, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=4873.66caa08d.chunk.js.map \ No newline at end of file diff --git a/static/js/4873.66caa08d.chunk.js.map b/static/js/4873.66caa08d.chunk.js.map new file mode 100644 index 000000000..7659cfcb6 --- /dev/null +++ b/static/js/4873.66caa08d.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4873.66caa08d.chunk.js","mappings":"wHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,glFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/sublime/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Sublime Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-sublime.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-sublime)\\n\\n\\n \\\"codemirror-theme-sublime\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-sublime --save\\n```\\n\\n```jsx\\nimport { sublime, sublimeInit } from '@uiw/codemirror-theme-sublime';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsSublime: CreateThemeOptions['settings'];\\nexport declare function sublimeInit(options?: Partial): import('@codemirror/state').Extension;\\nexport declare const sublime: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { sublime } from '@uiw/codemirror-theme-sublime';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { sublime } from '@uiw/codemirror-theme-sublime';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [sublime, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4887.9e7e5a35.chunk.js b/static/js/4887.9e7e5a35.chunk.js new file mode 100644 index 000000000..1159141ef --- /dev/null +++ b/static/js/4887.9e7e5a35.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4887],{84887:(n,e,t)=>{t.r(e),t.d(e,{default:()=>d});const d="// File : tb_top.sv\nmodule tb_top ();\n\n reg clk;\n reg resetn;\n reg d;\n wire q;\n\n // Instantiate the design\n d_ff d_ff0 ( .clk (clk),\n .resetn (resetn),\n .d (d),\n .q (q));\n\n // Create a clock\n always #10 clk <= ~clk;\n\n initial begin\n resetn <= 0;\n d <= 0;\n\n #10 resetn <= 1;\n #5 d <= 1;\n #8 d <= 0;\n #2 d <= 1;\n #10 d <= 0;\n end\nendmodule\n"}}]); +//# sourceMappingURL=4887.9e7e5a35.chunk.js.map \ No newline at end of file diff --git a/static/js/4887.9e7e5a35.chunk.js.map b/static/js/4887.9e7e5a35.chunk.js.map new file mode 100644 index 000000000..c868c7076 --- /dev/null +++ b/static/js/4887.9e7e5a35.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4887.9e7e5a35.chunk.js","mappings":"yHAAA,sd","sources":["../../node_modules/code-example/txt/sample.systemverilog.txt"],"sourcesContent":["export default \"// File : tb_top.sv\\nmodule tb_top ();\\n\\n reg clk;\\n reg resetn;\\n reg d;\\n wire q;\\n\\n // Instantiate the design\\n d_ff d_ff0 ( .clk (clk),\\n .resetn (resetn),\\n .d (d),\\n .q (q));\\n\\n // Create a clock\\n always #10 clk <= ~clk;\\n\\n initial begin\\n resetn <= 0;\\n d <= 0;\\n\\n #10 resetn <= 1;\\n #5 d <= 1;\\n #8 d <= 0;\\n #2 d <= 1;\\n #10 d <= 0;\\n end\\nendmodule\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4890.a53b9097.chunk.js b/static/js/4890.a53b9097.chunk.js new file mode 100644 index 000000000..22456a0f7 --- /dev/null +++ b/static/js/4890.a53b9097.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4890],{84890:(n,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a='# Elixir is a dynamic, functional language for building scalable\n# and maintainable applications. Learn more: https://elixir-lang.org\n\n"Elixir" |> String.graphemes() |> Enum.frequencies()\n#=> %{"E" => 1, "i" => 2, "l" => 1, "r" => 1, "x" => 1}\n\n\n### Scalability ###\n\n# All Elixir code runs inside lightweight threads of execution (called processes)\n# that are isolated and exchange information via messages:\n\ncurrent_process = self()\n\n# Spawn an Elixir process (not an operating system one!)\nspawn_link(fn ->\n send(current_process, {:msg, "hello world"})\nend)\n\n# Block until the message is received\nreceive do\n {:msg, contents} -> IO.puts(contents)\nend\n\n\n### Fault-tolerance ###\n\n# To cope with failures, Elixir provides supervisors which describe\n# how to restart parts of your system when things go awry, going back\n# to a known initial state that is guaranteed to work:\n\nchildren = [\n TCP.Pool,\n {TCP.Acceptor, port: 4040}\n]\n\nSupervisor.start_link(children, strategy: :one_for_one)\n\n\n### Functional programming ###\n\n# Functional programming promotes a coding style that helps\n# developers write code that is short, concise, and maintainable.\n# One prominent example is pattern matching:\n\n%User{name: name, age: age} = User.get("John Doe")\nname #=> "John Doe"\n\n# When mixed with guards, pattern matching allows us to elegantly\n# match and assert specific conditions for some code to execute:\n\ndef drive(%User{age: age}) when age >= 16 do\n # Code that drives a car\nend\n\ndrive(User.get("John Doe"))\n#=> Fails if the user is under 16\n\n\n### Extensibility and DSLs ###\n\n# Elixir has been designed to be extensible, letting developers\n# naturally extend the language to particular domains,\n# in order to increase their productivity.\n\ndefmodule MathTest do\n use ExUnit.Case, async: true\n\n test "can add two numbers" do\n assert 1 + 1 == 2\n end\nend\n\n\n### Erlang compatible ###\n\n# An Elixir programmer can invoke any Erlang function with no runtime cost:\n\n:crypto.hash(:md5, "Using crypto from Erlang OTP")\n#=> <<192, 223, 75, 115, ...>>\n'}}]); +//# sourceMappingURL=4890.a53b9097.chunk.js.map \ No newline at end of file diff --git a/static/js/4890.a53b9097.chunk.js.map b/static/js/4890.a53b9097.chunk.js.map new file mode 100644 index 000000000..9aa546a01 --- /dev/null +++ b/static/js/4890.a53b9097.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4890.a53b9097.chunk.js","mappings":"yHAAA,mlE","sources":["../../node_modules/code-example/txt/sample.elixir.txt"],"sourcesContent":["export default \"# Elixir is a dynamic, functional language for building scalable\\n# and maintainable applications. Learn more: https://elixir-lang.org\\n\\n\\\"Elixir\\\" |> String.graphemes() |> Enum.frequencies()\\n#=> %{\\\"E\\\" => 1, \\\"i\\\" => 2, \\\"l\\\" => 1, \\\"r\\\" => 1, \\\"x\\\" => 1}\\n\\n\\n### Scalability ###\\n\\n# All Elixir code runs inside lightweight threads of execution (called processes)\\n# that are isolated and exchange information via messages:\\n\\ncurrent_process = self()\\n\\n# Spawn an Elixir process (not an operating system one!)\\nspawn_link(fn ->\\n send(current_process, {:msg, \\\"hello world\\\"})\\nend)\\n\\n# Block until the message is received\\nreceive do\\n {:msg, contents} -> IO.puts(contents)\\nend\\n\\n\\n### Fault-tolerance ###\\n\\n# To cope with failures, Elixir provides supervisors which describe\\n# how to restart parts of your system when things go awry, going back\\n# to a known initial state that is guaranteed to work:\\n\\nchildren = [\\n TCP.Pool,\\n {TCP.Acceptor, port: 4040}\\n]\\n\\nSupervisor.start_link(children, strategy: :one_for_one)\\n\\n\\n### Functional programming ###\\n\\n# Functional programming promotes a coding style that helps\\n# developers write code that is short, concise, and maintainable.\\n# One prominent example is pattern matching:\\n\\n%User{name: name, age: age} = User.get(\\\"John Doe\\\")\\nname #=> \\\"John Doe\\\"\\n\\n# When mixed with guards, pattern matching allows us to elegantly\\n# match and assert specific conditions for some code to execute:\\n\\ndef drive(%User{age: age}) when age >= 16 do\\n # Code that drives a car\\nend\\n\\ndrive(User.get(\\\"John Doe\\\"))\\n#=> Fails if the user is under 16\\n\\n\\n### Extensibility and DSLs ###\\n\\n# Elixir has been designed to be extensible, letting developers\\n# naturally extend the language to particular domains,\\n# in order to increase their productivity.\\n\\ndefmodule MathTest do\\n use ExUnit.Case, async: true\\n\\n test \\\"can add two numbers\\\" do\\n assert 1 + 1 == 2\\n end\\nend\\n\\n\\n### Erlang compatible ###\\n\\n# An Elixir programmer can invoke any Erlang function with no runtime cost:\\n\\n:crypto.hash(:md5, \\\"Using crypto from Erlang OTP\\\")\\n#=> <<192, 223, 75, 115, ...>>\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/4905.6d0862e7.chunk.js b/static/js/4905.6d0862e7.chunk.js new file mode 100644 index 000000000..1da4131e9 --- /dev/null +++ b/static/js/4905.6d0862e7.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[4905],{24905:(e,n,a)=>{a.r(n),a.d(n,{default:()=>t});const t="class Random < Liquid::Block\n def initialize(tag_name, markup, tokens)\n super\n @rand = markup.to_i\n end\n\n def render(context)\n value = rand(@rand)\n super.sub('^^^', value.to_s) # calling `super` returns the content of the block\n end\nend\n\nLiquid::Template.register_tag('random', Random)\ntext = \" {% random 5 %} you have drawn number ^^^, lucky you! {% endrandom %} \"\n@template = Liquid::Template.parse(text)\n@template.render # will return \"you have drawn number 1, lucky you!\" in 20% of cases\n"}}]); +//# sourceMappingURL=4905.6d0862e7.chunk.js.map \ No newline at end of file diff --git a/static/js/4905.6d0862e7.chunk.js.map b/static/js/4905.6d0862e7.chunk.js.map new file mode 100644 index 000000000..c54e4169a --- /dev/null +++ b/static/js/4905.6d0862e7.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/4905.6d0862e7.chunk.js","mappings":"yHAAA,8hB","sources":["../../node_modules/code-example/txt/sample.liquid.txt"],"sourcesContent":["export default \"class Random < Liquid::Block\\n def initialize(tag_name, markup, tokens)\\n super\\n @rand = markup.to_i\\n end\\n\\n def render(context)\\n value = rand(@rand)\\n super.sub('^^^', value.to_s) # calling `super` returns the content of the block\\n end\\nend\\n\\nLiquid::Template.register_tag('random', Random)\\ntext = \\\" {% random 5 %} you have drawn number ^^^, lucky you! {% endrandom %} \\\"\\n@template = Liquid::Template.parse(text)\\n@template.render # will return \\\"you have drawn number 1, lucky you!\\\" in 20% of cases\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5034.edebafa3.chunk.js b/static/js/5034.edebafa3.chunk.js new file mode 100644 index 000000000..c2695d279 --- /dev/null +++ b/static/js/5034.edebafa3.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5034],{25034:(n,t,e)=>{e.r(t),e.d(t,{default:()=>c});const c="/* C demo code */\n\n#include \n#include \n#include \n#include \n#include \n#include \n#include \n\ntypedef struct {\n void* arg_socket;\n zmq_msg_t* arg_msg;\n char* arg_string;\n unsigned long arg_len;\n int arg_int, arg_command;\n\n int signal_fd;\n int pad;\n void* context;\n sem_t sem;\n} acl_zmq_context;\n\n#define p(X) (context->arg_##X)\n\nvoid* zmq_thread(void* context_pointer) {\n acl_zmq_context* context = (acl_zmq_context*)context_pointer;\n char ok = 'K', err = 'X';\n int res;\n\n while (1) {\n while ((res = sem_wait(&context->sem)) == EINTR);\n if (res) {write(context->signal_fd, &err, 1); goto cleanup;}\n switch(p(command)) {\n case 0: goto cleanup;\n case 1: p(socket) = zmq_socket(context->context, p(int)); break;\n case 2: p(int) = zmq_close(p(socket)); break;\n case 3: p(int) = zmq_bind(p(socket), p(string)); break;\n case 4: p(int) = zmq_connect(p(socket), p(string)); break;\n case 5: p(int) = zmq_getsockopt(p(socket), p(int), (void*)p(string), &p(len)); break;\n case 6: p(int) = zmq_setsockopt(p(socket), p(int), (void*)p(string), p(len)); break;\n case 7: p(int) = zmq_send(p(socket), p(msg), p(int)); break;\n case 8: p(int) = zmq_recv(p(socket), p(msg), p(int)); break;\n case 9: p(int) = zmq_poll(p(socket), p(int), p(len)); break;\n }\n p(command) = errno;\n write(context->signal_fd, &ok, 1);\n }\n cleanup:\n close(context->signal_fd);\n free(context_pointer);\n return 0;\n}\n\nvoid* zmq_thread_init(void* zmq_context, int signal_fd) {\n acl_zmq_context* context = malloc(sizeof(acl_zmq_context));\n pthread_t thread;\n\n context->context = zmq_context;\n context->signal_fd = signal_fd;\n sem_init(&context->sem, 1, 0);\n pthread_create(&thread, 0, &zmq_thread, context);\n pthread_detach(thread);\n return context;\n}\n"}}]); +//# sourceMappingURL=5034.edebafa3.chunk.js.map \ No newline at end of file diff --git a/static/js/5034.edebafa3.chunk.js.map b/static/js/5034.edebafa3.chunk.js.map new file mode 100644 index 000000000..a6cfda101 --- /dev/null +++ b/static/js/5034.edebafa3.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5034.edebafa3.chunk.js","mappings":"yHAAA,03D","sources":["../../node_modules/code-example/txt/sample.clike.txt"],"sourcesContent":["export default \"/* C demo code */\\n\\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n#include \\n\\ntypedef struct {\\n void* arg_socket;\\n zmq_msg_t* arg_msg;\\n char* arg_string;\\n unsigned long arg_len;\\n int arg_int, arg_command;\\n\\n int signal_fd;\\n int pad;\\n void* context;\\n sem_t sem;\\n} acl_zmq_context;\\n\\n#define p(X) (context->arg_##X)\\n\\nvoid* zmq_thread(void* context_pointer) {\\n acl_zmq_context* context = (acl_zmq_context*)context_pointer;\\n char ok = 'K', err = 'X';\\n int res;\\n\\n while (1) {\\n while ((res = sem_wait(&context->sem)) == EINTR);\\n if (res) {write(context->signal_fd, &err, 1); goto cleanup;}\\n switch(p(command)) {\\n case 0: goto cleanup;\\n case 1: p(socket) = zmq_socket(context->context, p(int)); break;\\n case 2: p(int) = zmq_close(p(socket)); break;\\n case 3: p(int) = zmq_bind(p(socket), p(string)); break;\\n case 4: p(int) = zmq_connect(p(socket), p(string)); break;\\n case 5: p(int) = zmq_getsockopt(p(socket), p(int), (void*)p(string), &p(len)); break;\\n case 6: p(int) = zmq_setsockopt(p(socket), p(int), (void*)p(string), p(len)); break;\\n case 7: p(int) = zmq_send(p(socket), p(msg), p(int)); break;\\n case 8: p(int) = zmq_recv(p(socket), p(msg), p(int)); break;\\n case 9: p(int) = zmq_poll(p(socket), p(int), p(len)); break;\\n }\\n p(command) = errno;\\n write(context->signal_fd, &ok, 1);\\n }\\n cleanup:\\n close(context->signal_fd);\\n free(context_pointer);\\n return 0;\\n}\\n\\nvoid* zmq_thread_init(void* zmq_context, int signal_fd) {\\n acl_zmq_context* context = malloc(sizeof(acl_zmq_context));\\n pthread_t thread;\\n\\n context->context = zmq_context;\\n context->signal_fd = signal_fd;\\n sem_init(&context->sem, 1, 0);\\n pthread_create(&thread, 0, &zmq_thread, context);\\n pthread_detach(thread);\\n return context;\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5113.5b532d2c.chunk.js b/static/js/5113.5b532d2c.chunk.js new file mode 100644 index 000000000..545707adb --- /dev/null +++ b/static/js/5113.5b532d2c.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5113],{55113:(e,n,o)=>{o.r(n),o.d(n,{default:()=>i});const i={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Okaidia Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-okaidia.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-okaidia)\n\n\n \"codemirror-theme-okaidia\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-okaidia --save\n```\n\n```jsx\nimport { okaidia, okaidiaInit } from '@uiw/codemirror-theme-okaidia';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsOkaidia: CreateThemeOptions['settings'];\nexport declare const okaidiaInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const okaidia: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { okaidia } from '@uiw/codemirror-theme-okaidia';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { okaidia } from '@uiw/codemirror-theme-okaidia';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [okaidia, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=5113.5b532d2c.chunk.js.map \ No newline at end of file diff --git a/static/js/5113.5b532d2c.chunk.js.map b/static/js/5113.5b532d2c.chunk.js.map new file mode 100644 index 000000000..4701adabe --- /dev/null +++ b/static/js/5113.5b532d2c.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5113.5b532d2c.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,ilFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/okaidia/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Okaidia Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-okaidia.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-okaidia)\\n\\n\\n \\\"codemirror-theme-okaidia\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-okaidia --save\\n```\\n\\n```jsx\\nimport { okaidia, okaidiaInit } from '@uiw/codemirror-theme-okaidia';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsOkaidia: CreateThemeOptions['settings'];\\nexport declare const okaidiaInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const okaidia: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { okaidia } from '@uiw/codemirror-theme-okaidia';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { okaidia } from '@uiw/codemirror-theme-okaidia';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [okaidia, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5123.56c30da5.chunk.js b/static/js/5123.56c30da5.chunk.js new file mode 100644 index 000000000..06af09889 --- /dev/null +++ b/static/js/5123.56c30da5.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5123],{65123:(t,o,e)=>{e.r(o),e.d(o,{default:()=>n});const n={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# TokyoNight Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night)\n\n\n \"codemirror-theme-tokyo-night\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-tokyo-night --save\n```\n\n```jsx\nimport { tags as t } from '@lezer/highlight';\nimport { tokyoNight, tokyoNightInit } from '@uiw/codemirror-theme-tokyo-night';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsTokyoNight: CreateThemeOptions['settings'];\nexport declare const tokyoNightInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const tokyoNight: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { tokyoNight } from '@uiw/codemirror-theme-tokyo-night';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { tokyoNight } from '@uiw/codemirror-theme-tokyo-night';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [tokyoNight, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=5123.56c30da5.chunk.js.map \ No newline at end of file diff --git a/static/js/5123.56c30da5.chunk.js.map b/static/js/5123.56c30da5.chunk.js.map new file mode 100644 index 000000000..3f9e2cb27 --- /dev/null +++ b/static/js/5123.56c30da5.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5123.56c30da5.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,wwFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/tokyo-night/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# TokyoNight Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night)\\n\\n\\n \\\"codemirror-theme-tokyo-night\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-tokyo-night --save\\n```\\n\\n```jsx\\nimport { tags as t } from '@lezer/highlight';\\nimport { tokyoNight, tokyoNightInit } from '@uiw/codemirror-theme-tokyo-night';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsTokyoNight: CreateThemeOptions['settings'];\\nexport declare const tokyoNightInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const tokyoNight: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { tokyoNight } from '@uiw/codemirror-theme-tokyo-night';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { tokyoNight } from '@uiw/codemirror-theme-tokyo-night';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [tokyoNight, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5164.c6d7b838.chunk.js b/static/js/5164.c6d7b838.chunk.js new file mode 100644 index 000000000..4429fc871 --- /dev/null +++ b/static/js/5164.c6d7b838.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5164],{35164:(n,e,i)=>{i.r(e),i.d(e,{default:()=>c});const c='"""\nA CoffeeScript sample.\n"""\n\nclass Vehicle\n constructor: (@name) =>\n \n drive: () =>\n alert "Conducting #{@name}"\n\nclass Car extends Vehicle\n drive: () =>\n alert "Driving #{@name}"\n\nc = new Car "Brandie"\n\nwhile notAtDestination()\n c.drive()\n\nraceVehicles = (new Car for i in [1..100])\n\nstartRace = (vehicles) -> [vehicle.drive() for vehicle in vehicles]\n\nfancyRegExp = ///\n (\\d+) # numbers\n (\\w*) # letters\n $ # the end\n///\n'}}]); +//# sourceMappingURL=5164.c6d7b838.chunk.js.map \ No newline at end of file diff --git a/static/js/5164.c6d7b838.chunk.js.map b/static/js/5164.c6d7b838.chunk.js.map new file mode 100644 index 000000000..c55f0a28a --- /dev/null +++ b/static/js/5164.c6d7b838.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5164.c6d7b838.chunk.js","mappings":"yHAAA,qe","sources":["../../node_modules/code-example/txt/sample.coffeescript.txt"],"sourcesContent":["export default \"\\\"\\\"\\\"\\nA CoffeeScript sample.\\n\\\"\\\"\\\"\\n\\nclass Vehicle\\n constructor: (@name) =>\\n \\n drive: () =>\\n alert \\\"Conducting #{@name}\\\"\\n\\nclass Car extends Vehicle\\n drive: () =>\\n alert \\\"Driving #{@name}\\\"\\n\\nc = new Car \\\"Brandie\\\"\\n\\nwhile notAtDestination()\\n c.drive()\\n\\nraceVehicles = (new Car for i in [1..100])\\n\\nstartRace = (vehicles) -> [vehicle.drive() for vehicle in vehicles]\\n\\nfancyRegExp = ///\\n (\\\\d+) # numbers\\n (\\\\w*) # letters\\n $ # the end\\n///\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5194.4b48a1f3.chunk.js b/static/js/5194.4b48a1f3.chunk.js new file mode 100644 index 000000000..f7b7640a5 --- /dev/null +++ b/static/js/5194.4b48a1f3.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5194],{15194:(n,i,e)=>{e.r(i),e.d(i,{default:()=>r});const r='package examples\n\n/** Quick sort, imperative style */\nobject sort {\n\n /** Nested methods can use and even update everything\n * visible in their scope (including local variables or\n * arguments of enclosing methods).\n */\n def sort(a: Array[Int]) {\n\n def swap(i: Int, j: Int) {\n val t = a(i); a(i) = a(j); a(j) = t\n }\n\n def sort1(l: Int, r: Int) {\n val pivot = a((l + r) / 2)\n var i = l\n var j = r\n while (i <= j) {\n while (a(i) < pivot) i += 1\n while (a(j) > pivot) j -= 1\n if (i <= j) {\n swap(i, j)\n i += 1\n j -= 1\n }\n }\n if (l < j) sort1(l, j)\n if (j < r) sort1(i, r)\n }\n\n if (a.length > 0)\n sort1(0, a.length - 1)\n }\n\n def println(ar: Array[Int]) {\n def print1 = {\n def iter(i: Int): String =\n ar(i) + (if (i < ar.length-1) "," + iter(i+1) else "")\n if (ar.length == 0) "" else iter(0)\n }\n Console.println("[" + print1 + "]")\n }\n\n def main(args: Array[String]) {\n val ar = Array(6, 2, 8, 5, 1)\n println(ar)\n sort(ar)\n println(ar)\n }\n\n}\n'}}]); +//# sourceMappingURL=5194.4b48a1f3.chunk.js.map \ No newline at end of file diff --git a/static/js/5194.4b48a1f3.chunk.js.map b/static/js/5194.4b48a1f3.chunk.js.map new file mode 100644 index 000000000..ad22f76ea --- /dev/null +++ b/static/js/5194.4b48a1f3.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5194.4b48a1f3.chunk.js","mappings":"yHAAA,ipC","sources":["../../node_modules/code-example/txt/sample.scala.txt"],"sourcesContent":["export default \"package examples\\n\\n/** Quick sort, imperative style */\\nobject sort {\\n\\n /** Nested methods can use and even update everything\\n * visible in their scope (including local variables or\\n * arguments of enclosing methods).\\n */\\n def sort(a: Array[Int]) {\\n\\n def swap(i: Int, j: Int) {\\n val t = a(i); a(i) = a(j); a(j) = t\\n }\\n\\n def sort1(l: Int, r: Int) {\\n val pivot = a((l + r) / 2)\\n var i = l\\n var j = r\\n while (i <= j) {\\n while (a(i) < pivot) i += 1\\n while (a(j) > pivot) j -= 1\\n if (i <= j) {\\n swap(i, j)\\n i += 1\\n j -= 1\\n }\\n }\\n if (l < j) sort1(l, j)\\n if (j < r) sort1(i, r)\\n }\\n\\n if (a.length > 0)\\n sort1(0, a.length - 1)\\n }\\n\\n def println(ar: Array[Int]) {\\n def print1 = {\\n def iter(i: Int): String =\\n ar(i) + (if (i < ar.length-1) \\\",\\\" + iter(i+1) else \\\"\\\")\\n if (ar.length == 0) \\\"\\\" else iter(0)\\n }\\n Console.println(\\\"[\\\" + print1 + \\\"]\\\")\\n }\\n\\n def main(args: Array[String]) {\\n val ar = Array(6, 2, 8, 5, 1)\\n println(ar)\\n sort(ar)\\n println(ar)\\n }\\n\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5520.0993bea7.chunk.js b/static/js/5520.0993bea7.chunk.js new file mode 100644 index 000000000..e93a36fc7 --- /dev/null +++ b/static/js/5520.0993bea7.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5520],{5520:(t,o,e)=>{e.r(o),e.d(o,{default:()=>n});const n={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# TokyoNightStorm Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-storm.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-storm)\n\n\n \"codemirror-theme-tokyo-night-storm\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-tokyo-night-storm --save\n```\n\n```jsx\nimport { tags as t } from '@lezer/highlight';\nimport { tokyoNightStorm, tokyoNightStormInit } from '@uiw/codemirror-theme-tokyo-night-storm';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsTokyoNightStorm: CreateThemeOptions['settings'];\nexport declare const tokyoNightStormInit: (\n options?: Partial,\n) => import('@codemirror/state').Extension;\nexport declare const tokyoNightStorm: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { tokyoNightStorm } from '@uiw/codemirror-theme-tokyo-night-storm';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { tokyoNightStorm } from '@uiw/codemirror-theme-tokyo-night-storm';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [tokyoNightStorm, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=5520.0993bea7.chunk.js.map \ No newline at end of file diff --git a/static/js/5520.0993bea7.chunk.js.map b/static/js/5520.0993bea7.chunk.js.map new file mode 100644 index 000000000..a614a00e6 --- /dev/null +++ b/static/js/5520.0993bea7.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5520.0993bea7.chunk.js","mappings":"wHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,23FACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/tokyo-night-storm/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# TokyoNightStorm Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-storm.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-storm)\\n\\n\\n \\\"codemirror-theme-tokyo-night-storm\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-tokyo-night-storm --save\\n```\\n\\n```jsx\\nimport { tags as t } from '@lezer/highlight';\\nimport { tokyoNightStorm, tokyoNightStormInit } from '@uiw/codemirror-theme-tokyo-night-storm';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsTokyoNightStorm: CreateThemeOptions['settings'];\\nexport declare const tokyoNightStormInit: (\\n options?: Partial,\\n) => import('@codemirror/state').Extension;\\nexport declare const tokyoNightStorm: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { tokyoNightStorm } from '@uiw/codemirror-theme-tokyo-night-storm';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { tokyoNightStorm } from '@uiw/codemirror-theme-tokyo-night-storm';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [tokyoNightStorm, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5541.3900e208.chunk.js b/static/js/5541.3900e208.chunk.js new file mode 100644 index 000000000..3906fa428 --- /dev/null +++ b/static/js/5541.3900e208.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5541],{55541:(e,c,s)=>{s.r(c),s.d(c,{default:()=>r});const r="Content-Security-Policy: default-src 'self'; img-src *; media-src media1.com media2.com; script-src userscripts.example.com"}}]); +//# sourceMappingURL=5541.3900e208.chunk.js.map \ No newline at end of file diff --git a/static/js/5541.3900e208.chunk.js.map b/static/js/5541.3900e208.chunk.js.map new file mode 100644 index 000000000..ce7d5513e --- /dev/null +++ b/static/js/5541.3900e208.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5541.3900e208.chunk.js","mappings":"yHAAA,qI","sources":["../../node_modules/code-example/txt/sample.csp.txt"],"sourcesContent":["export default \"Content-Security-Policy: default-src 'self'; img-src *; media-src media1.com media2.com; script-src userscripts.example.com\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5670.b198c74a.chunk.js b/static/js/5670.b198c74a.chunk.js new file mode 100644 index 000000000..8a606199c --- /dev/null +++ b/static/js/5670.b198c74a.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5670],{50559:(e,r,n)=>{n.r(r),n.d(r,{default:()=>S});var t=n(25773),o=n(30808),a=n(83528),i=n(4801),l=n(50389),u=n(79584),c={modified:{doc:""},original:{doc:""}},f=(0,a.createContext)(c);function d(e,r){return(0,t.Z)({},e,r,{modified:(0,t.Z)({},e.modified,r.modified),original:(0,t.Z)({},e.original,r.original)})}var s=()=>(0,a.useContext)(f),p=e=>{var{children:r,theme:n}=e,[o,i]=(0,a.useReducer)(d,(0,t.Z)({},c,{theme:n}));return(0,a.useEffect)((()=>i({theme:n})),[n]),(0,u.jsx)(f.Provider,{value:(0,t.Z)({},o,{dispatch:i}),children:r})},g=["extensions","value","selection","onChange"],v=e=>{var{extensions:r=[],value:n,selection:u,onChange:c}=e,f=(0,o.Z)(e,g),{theme:d,dispatch:p}=s(),v=(0,i.getDefaultExtensions)((0,t.Z)({},f,{theme:d})),h=l.tk.updateListener.of((e=>{if(e.docChanged&&"function"===typeof c){var r=e.state.doc.toString();c(r,e)}}));return(0,a.useEffect)((()=>p({original:{doc:n,selection:u,extensions:[h,...v,...r]},originalExtension:{onChange:c,option:f,extension:[r,h]}})),[e]),null};v.displayName="CodeMirrorMerge.Original";var h=["extensions","value","selection","onChange"],y=e=>{var{extensions:r=[],value:n,selection:u,onChange:c}=e,f=(0,o.Z)(e,h),{theme:d,dispatch:p}=s(),g=(0,i.getDefaultExtensions)((0,t.Z)({},f,{theme:d})),v=l.tk.updateListener.of((e=>{if(e.docChanged&&"function"===typeof c){var r=e.state.doc.toString();c(r,e)}}));return(0,a.useEffect)((()=>p({modified:{doc:n,selection:u,extensions:[v,...g,...r]},modifiedExtension:{onChange:c,option:f,extension:[v,r]}})),[e]),null};y.displayName="CodeMirrorMerge.Modified";var m=n(24105),_=["className","children","orientation","revertControls","highlightChanges","gutter","collapseUnchanged","destroyRerender","renderRevertControl"],b=["modified","modifiedExtension","original","originalExtension","theme","dispatch"],M=a.forwardRef(((e,r)=>{var{className:n,children:l,orientation:c,revertControls:f,highlightChanges:d,gutter:p,collapseUnchanged:g,destroyRerender:v=!0,renderRevertControl:h}=e,y=(0,o.Z)(e,_),M=s(),{modified:C,modifiedExtension:x,original:S,originalExtension:E,theme:O,dispatch:w}=M,j=(0,o.Z)(M,b),R=(0,a.useRef)(null),Z=(0,a.useRef)(),A={orientation:c,revertControls:f,highlightChanges:d,gutter:p,collapseUnchanged:g,renderRevertControl:h};(0,a.useImperativeHandle)(r,(()=>({container:R.current,view:Z.current,modified:C,original:S,config:(0,t.Z)({a:S,b:C,parent:R.current},A)})),[R,Z,C,S,A]),(0,a.useEffect)((()=>{!Z.current&&R.current&&(Z.current=new m.QK((0,t.Z)({a:(0,t.Z)({},S,{extensions:[...(null==E?void 0:E.extension)||[],...(0,i.getDefaultExtensions)((0,t.Z)({},null==E?void 0:E.option,{theme:O}))]}),b:(0,t.Z)({},C,{extensions:[...(null==x?void 0:x.extension)||[],...(0,i.getDefaultExtensions)((0,t.Z)({},null==x?void 0:x.option,{theme:O}))]}),parent:R.current},A)))}),[Z,R]),(0,a.useEffect)((()=>{if(S&&S.doc&&Z.current){var e,r,n=null==(e=Z.current)?void 0:e.a.state.doc.toString();if(n!==S.doc)null==(r=Z.current)||r.a.dispatch({changes:{from:0,to:n.length,insert:S.doc||""}})}if(C&&C.doc&&Z.current){var o,a,l=null==(o=Z.current)?void 0:o.b.state.doc.toString();if(l!==C.doc)null==(a=Z.current)||a.b.dispatch({changes:{from:0,to:l.length,insert:C.doc||""}})}if(v&&Z.current){var u=Z.current.a.state.selection.ranges[0].from,c=Z.current.b.state.selection.ranges[0].from;Z.current.destroy(),Z.current=new m.QK((0,t.Z)({a:(0,t.Z)({},S,{extensions:[...(null==E?void 0:E.extension)||[],...(0,i.getDefaultExtensions)((0,t.Z)({},null==E?void 0:E.option,{theme:O}))]}),b:(0,t.Z)({},C,{extensions:[...(null==x?void 0:x.extension)||[],...(0,i.getDefaultExtensions)((0,t.Z)({},null==x?void 0:x.option,{theme:O}))]}),parent:R.current},A)),u&&(Z.current.a.focus(),Z.current.a.dispatch({selection:{anchor:u,head:u}})),c&&(Z.current.b.focus(),Z.current.b.dispatch({selection:{anchor:c,head:c}}))}}),[Z,O,R.current,S,C,E,x,v]),(0,a.useEffect)((()=>()=>Z.current&&Z.current.destroy()),[]),(0,a.useEffect)((()=>{if(Z.current){var e={};j.orientation!==c&&(e.orientation=c),j.revertControls!==f&&(e.revertControls=f),j.highlightChanges!==d&&(e.highlightChanges=d),j.gutter!==p&&(e.gutter=p),j.collapseUnchanged!==g&&(e.collapseUnchanged=g),j.renderRevertControl!==h&&(e.collapseUnchanged=g),Object.keys(e).length&&w&&Z.current&&(Z.current.reconfigure((0,t.Z)({},e)),w((0,t.Z)({},e)))}}),[w,Z,c,f,d,p,g,h]);return(0,u.jsx)("div",(0,t.Z)({ref:R,className:"cm-merge-theme"+(n?" "+n:"")},y,{children:l}))}));M.displayName="CodeMirrorMerge.Internal";var C=["theme"],x=a.forwardRef(((e,r)=>{var{theme:n}=e,a=(0,o.Z)(e,C);return(0,u.jsx)(p,{theme:n,children:(0,u.jsx)(M,(0,t.Z)({},a,{ref:r}))})}));x.Original=v,x.Modified=y,x.displayName="CodeMirrorMerge";const S=x},95670:(e,r,n)=>{n.r(r),n.d(r,{default:()=>t});const t={components:{3:function(){function e(r){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(r)}var r,t=function(r,n){if(!n&&r&&r.__esModule)return r;if(null===r||"object"!=e(r)&&"function"!=typeof r)return{default:r};var t=a(n);if(t&&t.has(r))return t.get(r);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in r)if("default"!==l&&Object.prototype.hasOwnProperty.call(r,l)){var u=i?Object.getOwnPropertyDescriptor(r,l):null;u&&(u.get||u.set)?Object.defineProperty(o,l,u):o[l]=r[l]}return o.default=r,t&&t.set(r,o),o}(n(83528)),o=(r=n(50559))&&r.__esModule?r:{default:r};function a(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:r})(e)}function i(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var t,o,a,i,l=[],u=!0,c=!1;try{if(a=(n=n.call(e)).next,0===r){if(Object(n)!==n)return;u=!1}else for(;!(u=(t=a.call(n)).done)&&(l.push(t.value),l.length!==r);u=!0);}catch(e){c=!0,o=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(c)throw o}}return l}}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return l(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,r){(null==r||r>e.length)&&(r=e.length);for(var n=0,t=new Array(r);n arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar Original = _reactCodemirrorMerge["default"].Original;\nvar Modified = _reactCodemirrorMerge["default"].Modified;\nvar doc = "one\\ntwo\\nthree\\nfour\\nfive";\nreturn function App() {\n var _useState = (0, _react.useState)(\'\'),\n _useState2 = _slicedToArray(_useState, 2),\n value = _useState2[0],\n setValue = _useState2[1];\n var _useState3 = (0, _react.useState)(\'\'),\n _useState4 = _slicedToArray(_useState3, 2),\n valueModified = _useState4[0],\n setValueModified = _useState4[1];\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_reactCodemirrorMerge["default"], null, /*#__PURE__*/_react["default"].createElement(Original, {\n onChange: function onChange(value) {\n setValue(value);\n },\n value: doc\n }), /*#__PURE__*/_react["default"].createElement(Modified, {\n onChange: function onChange(value) {\n setValueModified(value);\n },\n value: doc.replace(/t/g, \'T\') + \'Six\'\n })), /*#__PURE__*/_react["default"].createElement("div", {\n style: {\n display: \'flex\',\n marginTop: 10\n }\n }, /*#__PURE__*/_react["default"].createElement("pre", {\n style: {\n flex: 1\n }\n }, value, " "), /*#__PURE__*/_react["default"].createElement("pre", {\n style: {\n backgroundColor: \'#fff\',\n flex: 1\n }\n }, valueModified, " ")));\n};',language:"jsx",value:"import React, { useState } from 'react';\nimport CodeMirrorMerge from 'react-codemirror-merge';\n\nconst Original = CodeMirrorMerge.Original;\nconst Modified = CodeMirrorMerge.Modified;\nlet doc = `one\ntwo\nthree\nfour\nfive`;\n\nexport default function App() {\n const [value, setValue] = useState('');\n const [valueModified, setValueModified] = useState('');\n return (\n
\n \n {\n setValue(value);\n }}\n value={doc}\n />\n {\n setValueModified(value);\n }}\n value={doc.replace(/t/g, 'T') + 'Six'}\n />\n \n
\n
{value} 
\n
{valueModified} 
\n
\n
\n );\n}"}},source:"# onChange Example\n\n```jsx mdx:preview\nimport React, { useState } from 'react';\nimport CodeMirrorMerge from 'react-codemirror-merge';\n\nconst Original = CodeMirrorMerge.Original;\nconst Modified = CodeMirrorMerge.Modified;\nlet doc = `one\ntwo\nthree\nfour\nfive`;\n\nexport default function App() {\n const [value, setValue] = useState('');\n const [valueModified, setValueModified] = useState('');\n return (\n
\n \n {\n setValue(value);\n }}\n value={doc}\n />\n {\n setValueModified(value);\n }}\n value={doc.replace(/t/g, 'T') + 'Six'}\n />\n \n
\n
{value} 
\n
{valueModified} 
\n
\n
\n );\n}\n```\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=5670.b198c74a.chunk.js.map \ No newline at end of file diff --git a/static/js/5670.b198c74a.chunk.js.map b/static/js/5670.b198c74a.chunk.js.map new file mode 100644 index 000000000..493b5c473 --- /dev/null +++ b/static/js/5670.b198c74a.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5670.b198c74a.chunk.js","mappings":"8LAGWA,EAAe,CACxBC,SAAU,CACRC,IAAK,IAEPC,SAAU,CACRD,IAAK,KAGEE,GAAuBC,EAAAA,EAAAA,eAAcL,GACzC,SAASM,EAAQC,EAAOC,GAC7B,OAAOC,EAAAA,EAAAA,GAAS,CAAC,EAAGF,EAAOC,EAAQ,CACjCP,UAAUQ,EAAAA,EAAAA,GAAS,CAAC,EAAGF,EAAMN,SAAUO,EAAOP,UAC9CE,UAAUM,EAAAA,EAAAA,GAAS,CAAC,EAAGF,EAAMJ,SAAUK,EAAOL,WAElD,CACO,IAAIO,EAAWA,KACbC,EAAAA,EAAAA,YAAWP,GAETQ,EAAWC,IACpB,IAAI,SACFC,EAAQ,MACRC,GACEF,GACCN,EAAOS,IAAYC,EAAAA,EAAAA,YAAWX,GAASG,EAAAA,EAAAA,GAAS,CAAC,EAAGT,EAAc,CACrEe,WAKF,OAHAG,EAAAA,EAAAA,YAAU,IAAMF,EAAS,CACvBD,WACE,CAACA,KACeI,EAAAA,EAAAA,KAAKf,EAAQQ,SAAU,CACzCQ,OAAOX,EAAAA,EAAAA,GAAS,CAAC,EAAGF,EAAO,CACzBS,aAEFF,SAAUA,GACV,ECnCAO,EAAY,CAAC,aAAc,QAAS,YAAa,YAK1CC,EAAWC,IACpB,IAAI,WACAC,EAAa,GAAE,MACfJ,EAAK,UACLK,EAAS,SACTC,GACEH,EACJI,GAAcC,EAAAA,EAAAA,GAA8BL,EAAOF,IACjD,MACFN,EAAK,SACLC,GACEN,IACAmB,GAAoBC,EAAAA,EAAAA,uBAAqBrB,EAAAA,EAAAA,GAAS,CAAC,EAAGkB,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G,EAAaxB,GADE,EAAIpB,EAAO0C,UAAU,IACI,GACxCG,EAAgBD,EAAW,GAC3BE,EAAmBF,EAAW,GAChC,OAAoB5C,EAAgB,QAAE+C,cAAc,MAAO,KAAmB/C,EAAgB,QAAE+C,cAAc7B,EAA+B,QAAG,KAAmBlB,EAAgB,QAAE+C,cAAc/H,EAAU,CAC3MI,SAAU,SAAkBN,GAC1B6H,EAAS7H,EACX,EACAA,MAAOlB,IACQoG,EAAgB,QAAE+C,cAAc3G,EAAU,CACzDhB,SAAU,SAAkBN,GAC1BgI,EAAiBhI,EACnB,EACAA,MAAOlB,EAAIoJ,QAAQ,KAAM,KAAO,SAChBhD,EAAgB,QAAE+C,cAAc,MAAO,CACvDE,MAAO,CACLC,QAAS,OACTC,UAAW,KAECnD,EAAgB,QAAE+C,cAAc,MAAO,CACrDE,MAAO,CACLG,KAAM,IAEPtI,EAAO,KAAmBkF,EAAgB,QAAE+C,cAAc,MAAO,CAClEE,MAAO,CACLI,gBAAiB,OACjBD,KAAM,IAEPP,EAAe,MACpB,CAAI,CAnDiB,IAoDjBS,KAAM,CACR,EAAK,CACH,KAAQ,EACR,KAAQ,CAAC,EACT,KAAQ,syIACR,SAAY,MACZ,MAAS,o8BAGTC,OAAQ,m/BACRC,SAAS,GACTC,aAAa,G","sources":["../../merge/esm/store.js","../../merge/esm/Original.js","../../merge/esm/Modified.js","../../merge/esm/Internal.js","../../merge/esm/index.js","pages/merge/examples/Example.md"],"sourcesContent":["import _extends from \"@babel/runtime/helpers/extends\";\nimport React, { createContext, useContext, useEffect, useReducer } from 'react';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var initialState = {\n modified: {\n doc: ''\n },\n original: {\n doc: ''\n }\n};\nexport var Context = /*#__PURE__*/createContext(initialState);\nexport function reducer(state, action) {\n return _extends({}, state, action, {\n modified: _extends({}, state.modified, action.modified),\n original: _extends({}, state.original, action.original)\n });\n}\nexport var useStore = () => {\n return useContext(Context);\n};\nexport var Provider = _ref => {\n var {\n children,\n theme\n } = _ref;\n var [state, dispatch] = useReducer(reducer, _extends({}, initialState, {\n theme\n }));\n useEffect(() => dispatch({\n theme\n }), [theme]);\n return /*#__PURE__*/_jsx(Context.Provider, {\n value: _extends({}, state, {\n dispatch\n }),\n children: children\n });\n};","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"extensions\", \"value\", \"selection\", \"onChange\"];\nimport { useEffect } from 'react';\nimport { getDefaultExtensions } from '@uiw/react-codemirror';\nimport { EditorView } from '@codemirror/view';\nimport { useStore } from './store';\nexport var Original = props => {\n var {\n extensions = [],\n value,\n selection,\n onChange\n } = props,\n otherOption = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n theme,\n dispatch\n } = useStore();\n var defaultExtensions = getDefaultExtensions(_extends({}, otherOption, {\n theme\n }));\n var updateListener = EditorView.updateListener.of(vu => {\n if (vu.docChanged && typeof onChange === 'function') {\n var doc = vu.state.doc;\n var val = doc.toString();\n onChange(val, vu);\n }\n });\n useEffect(() => dispatch({\n original: {\n doc: value,\n selection: selection,\n extensions: [updateListener, ...defaultExtensions, ...extensions]\n },\n originalExtension: {\n onChange,\n option: otherOption,\n extension: [extensions, updateListener]\n }\n }), [props]);\n return null;\n};\nOriginal.displayName = 'CodeMirrorMerge.Original';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"extensions\", \"value\", \"selection\", \"onChange\"];\nimport { useEffect } from 'react';\nimport { getDefaultExtensions } from '@uiw/react-codemirror';\nimport { EditorView } from '@codemirror/view';\nimport { useStore } from './store';\nexport var Modified = props => {\n var {\n extensions = [],\n value,\n selection,\n onChange\n } = props,\n otherOption = _objectWithoutPropertiesLoose(props, _excluded);\n var {\n theme,\n dispatch\n } = useStore();\n var defaultExtensions = getDefaultExtensions(_extends({}, otherOption, {\n theme\n }));\n var updateListener = EditorView.updateListener.of(vu => {\n if (vu.docChanged && typeof onChange === 'function') {\n var doc = vu.state.doc;\n var val = doc.toString();\n onChange(val, vu);\n }\n });\n useEffect(() => dispatch({\n modified: {\n doc: value,\n selection: selection,\n extensions: [updateListener, ...defaultExtensions, ...extensions]\n },\n modifiedExtension: {\n onChange,\n option: otherOption,\n extension: [updateListener, extensions]\n }\n }), [props]);\n return null;\n};\nModified.displayName = 'CodeMirrorMerge.Modified';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"className\", \"children\", \"orientation\", \"revertControls\", \"highlightChanges\", \"gutter\", \"collapseUnchanged\", \"destroyRerender\", \"renderRevertControl\"],\n _excluded2 = [\"modified\", \"modifiedExtension\", \"original\", \"originalExtension\", \"theme\", \"dispatch\"];\nimport React, { useEffect, useImperativeHandle, useRef } from 'react';\nimport { getDefaultExtensions } from '@uiw/react-codemirror';\nimport { MergeView } from '@codemirror/merge';\nimport { useStore } from './store';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Internal = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n className,\n children,\n orientation,\n revertControls,\n highlightChanges,\n gutter,\n collapseUnchanged,\n destroyRerender = true,\n renderRevertControl\n } = props,\n elmProps = _objectWithoutPropertiesLoose(props, _excluded);\n var _useStore = useStore(),\n {\n modified,\n modifiedExtension,\n original,\n originalExtension,\n theme,\n dispatch\n } = _useStore,\n otherStore = _objectWithoutPropertiesLoose(_useStore, _excluded2);\n var editor = useRef(null);\n var view = useRef();\n var opts = {\n orientation,\n revertControls,\n highlightChanges,\n gutter,\n collapseUnchanged,\n renderRevertControl\n };\n useImperativeHandle(ref, () => ({\n container: editor.current,\n view: view.current,\n modified,\n original,\n config: _extends({\n a: original,\n b: modified,\n parent: editor.current\n }, opts)\n }), [editor, view, modified, original, opts]);\n useEffect(() => {\n if (!view.current && editor.current) {\n view.current = new MergeView(_extends({\n a: _extends({}, original, {\n extensions: [...((originalExtension == null ? void 0 : originalExtension.extension) || []), ...getDefaultExtensions(_extends({}, originalExtension == null ? void 0 : originalExtension.option, {\n theme\n }))]\n }),\n b: _extends({}, modified, {\n extensions: [...((modifiedExtension == null ? void 0 : modifiedExtension.extension) || []), ...getDefaultExtensions(_extends({}, modifiedExtension == null ? void 0 : modifiedExtension.option, {\n theme\n }))]\n }),\n parent: editor.current\n }, opts));\n }\n }, [view, editor]);\n useEffect(() => {\n if (original && original.doc && view.current) {\n var _view$current;\n var originalDoc = (_view$current = view.current) == null ? void 0 : _view$current.a.state.doc.toString();\n if (originalDoc !== original.doc) {\n var _view$current2;\n (_view$current2 = view.current) == null || _view$current2.a.dispatch({\n changes: {\n from: 0,\n to: originalDoc.length,\n insert: original.doc || ''\n }\n // effects: StateEffect.reconfigure.of([\n // ...(originalExtension?.extension || []),\n // ...getDefaultExtensions({ ...originalExtension?.option, theme }),\n // ])\n });\n }\n }\n\n if (modified && modified.doc && view.current) {\n var _view$current3;\n var modifiedDoc = (_view$current3 = view.current) == null ? void 0 : _view$current3.b.state.doc.toString();\n if (modifiedDoc !== modified.doc) {\n var _view$current4;\n (_view$current4 = view.current) == null || _view$current4.b.dispatch({\n changes: {\n from: 0,\n to: modifiedDoc.length,\n insert: modified.doc || ''\n }\n // effects: StateEffect.reconfigure.of([\n // ...(modifiedExtension?.extension || []),\n // ...getDefaultExtensions({ ...modifiedExtension?.option, theme }),\n // ])\n });\n }\n }\n\n if (destroyRerender && view.current) {\n var originalFrom = view.current.a.state.selection.ranges[0].from;\n var modifiedFrom = view.current.b.state.selection.ranges[0].from;\n view.current.destroy();\n view.current = new MergeView(_extends({\n a: _extends({}, original, {\n extensions: [...((originalExtension == null ? void 0 : originalExtension.extension) || []), ...getDefaultExtensions(_extends({}, originalExtension == null ? void 0 : originalExtension.option, {\n theme\n }))]\n }),\n b: _extends({}, modified, {\n extensions: [...((modifiedExtension == null ? void 0 : modifiedExtension.extension) || []), ...getDefaultExtensions(_extends({}, modifiedExtension == null ? void 0 : modifiedExtension.option, {\n theme\n }))]\n }),\n parent: editor.current\n }, opts));\n if (originalFrom) {\n view.current.a.focus();\n view.current.a.dispatch({\n selection: {\n anchor: originalFrom,\n head: originalFrom\n }\n });\n }\n if (modifiedFrom) {\n view.current.b.focus();\n view.current.b.dispatch({\n selection: {\n anchor: modifiedFrom,\n head: modifiedFrom\n }\n });\n }\n }\n }, [view, theme, editor.current, original, modified, originalExtension, modifiedExtension, destroyRerender]);\n useEffect(() => () => view.current && view.current.destroy(), []);\n useEffect(() => {\n if (view.current) {\n var _opts = {};\n if (otherStore.orientation !== orientation) {\n _opts.orientation = orientation;\n }\n if (otherStore.revertControls !== revertControls) {\n _opts.revertControls = revertControls;\n }\n if (otherStore.highlightChanges !== highlightChanges) {\n _opts.highlightChanges = highlightChanges;\n }\n if (otherStore.gutter !== gutter) {\n _opts.gutter = gutter;\n }\n if (otherStore.collapseUnchanged !== collapseUnchanged) {\n _opts.collapseUnchanged = collapseUnchanged;\n }\n if (otherStore.renderRevertControl !== renderRevertControl) {\n _opts.collapseUnchanged = collapseUnchanged;\n }\n if (Object.keys(_opts).length && dispatch && view.current) {\n view.current.reconfigure(_extends({}, _opts));\n dispatch(_extends({}, _opts));\n }\n }\n }, [dispatch, view, orientation, revertControls, highlightChanges, gutter, collapseUnchanged, renderRevertControl]);\n var defaultClassNames = 'cm-merge-theme';\n return /*#__PURE__*/_jsx(\"div\", _extends({\n ref: editor,\n className: \"\" + defaultClassNames + (className ? \" \" + className : '')\n }, elmProps, {\n children: children\n }));\n});\nInternal.displayName = 'CodeMirrorMerge.Internal';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"theme\"];\nimport React from 'react';\nimport { Original } from './Original';\nimport { Modified } from './Modified';\nimport { Internal } from './Internal';\nimport { Provider } from './store';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar InternalCodeMirror = /*#__PURE__*/React.forwardRef((_ref, ref) => {\n var {\n theme\n } = _ref,\n props = _objectWithoutPropertiesLoose(_ref, _excluded);\n return /*#__PURE__*/_jsx(Provider, {\n theme: theme,\n children: /*#__PURE__*/_jsx(Internal, _extends({}, props, {\n ref: ref\n }))\n });\n});\nvar CodeMirrorMerge = InternalCodeMirror;\nCodeMirrorMerge.Original = Original;\nCodeMirrorMerge.Modified = Modified;\nCodeMirrorMerge.displayName = 'CodeMirrorMerge';\nexport default CodeMirrorMerge;","\nexport default {\n components: { 3: (function() { \"use strict\";\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nvar _react = _interopRequireWildcard(require(\"react\"));\nvar _reactCodemirrorMerge = _interopRequireDefault(require(\"react-codemirror-merge\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _getRequireWildcardCache(e) { if (\"function\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \"object\" != _typeof(e) && \"function\" != typeof e) return { \"default\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\"default\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\"default\"] = e, t && t.set(e, n), n; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nvar Original = _reactCodemirrorMerge[\"default\"].Original;\nvar Modified = _reactCodemirrorMerge[\"default\"].Modified;\nvar doc = \"one\\ntwo\\nthree\\nfour\\nfive\";\nreturn function App() {\n var _useState = (0, _react.useState)(''),\n _useState2 = _slicedToArray(_useState, 2),\n value = _useState2[0],\n setValue = _useState2[1];\n var _useState3 = (0, _react.useState)(''),\n _useState4 = _slicedToArray(_useState3, 2),\n valueModified = _useState4[0],\n setValueModified = _useState4[1];\n return /*#__PURE__*/_react[\"default\"].createElement(\"div\", null, /*#__PURE__*/_react[\"default\"].createElement(_reactCodemirrorMerge[\"default\"], null, /*#__PURE__*/_react[\"default\"].createElement(Original, {\n onChange: function onChange(value) {\n setValue(value);\n },\n value: doc\n }), /*#__PURE__*/_react[\"default\"].createElement(Modified, {\n onChange: function onChange(value) {\n setValueModified(value);\n },\n value: doc.replace(/t/g, 'T') + 'Six'\n })), /*#__PURE__*/_react[\"default\"].createElement(\"div\", {\n style: {\n display: 'flex',\n marginTop: 10\n }\n }, /*#__PURE__*/_react[\"default\"].createElement(\"pre\", {\n style: {\n flex: 1\n }\n }, value, \" \"), /*#__PURE__*/_react[\"default\"].createElement(\"pre\", {\n style: {\n backgroundColor: '#fff',\n flex: 1\n }\n }, valueModified, \" \")));\n}; })(), },\n data: {\n \"3\": {\n \"name\": 3,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nfunction _typeof(o) { \\\"@babel/helpers - typeof\\\"; return _typeof = \\\"function\\\" == typeof Symbol && \\\"symbol\\\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \\\"function\\\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \\\"symbol\\\" : typeof o; }, _typeof(o); }\\nvar _react = _interopRequireWildcard(require(\\\"react\\\"));\\nvar _reactCodemirrorMerge = _interopRequireDefault(require(\\\"react-codemirror-merge\\\"));\\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \\\"default\\\": obj }; }\\nfunction _getRequireWildcardCache(e) { if (\\\"function\\\" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }\\nfunction _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || \\\"object\\\" != _typeof(e) && \\\"function\\\" != typeof e) return { \\\"default\\\": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if (\\\"default\\\" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n[\\\"default\\\"] = e, t && t.set(e, n), n; }\\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \\\"string\\\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \\\"Object\\\" && o.constructor) n = o.constructor.name; if (n === \\\"Map\\\" || n === \\\"Set\\\") return Array.from(o); if (n === \\\"Arguments\\\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\\nvar Original = _reactCodemirrorMerge[\\\"default\\\"].Original;\\nvar Modified = _reactCodemirrorMerge[\\\"default\\\"].Modified;\\nvar doc = \\\"one\\\\ntwo\\\\nthree\\\\nfour\\\\nfive\\\";\\nreturn function App() {\\n var _useState = (0, _react.useState)(''),\\n _useState2 = _slicedToArray(_useState, 2),\\n value = _useState2[0],\\n setValue = _useState2[1];\\n var _useState3 = (0, _react.useState)(''),\\n _useState4 = _slicedToArray(_useState3, 2),\\n valueModified = _useState4[0],\\n setValueModified = _useState4[1];\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", null, /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactCodemirrorMerge[\\\"default\\\"], null, /*#__PURE__*/_react[\\\"default\\\"].createElement(Original, {\\n onChange: function onChange(value) {\\n setValue(value);\\n },\\n value: doc\\n }), /*#__PURE__*/_react[\\\"default\\\"].createElement(Modified, {\\n onChange: function onChange(value) {\\n setValueModified(value);\\n },\\n value: doc.replace(/t/g, 'T') + 'Six'\\n })), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"div\\\", {\\n style: {\\n display: 'flex',\\n marginTop: 10\\n }\\n }, /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"pre\\\", {\\n style: {\\n flex: 1\\n }\\n }, value, \\\" \\\"), /*#__PURE__*/_react[\\\"default\\\"].createElement(\\\"pre\\\", {\\n style: {\\n backgroundColor: '#fff',\\n flex: 1\\n }\\n }, valueModified, \\\" \\\")));\\n};\",\n \"language\": \"jsx\",\n \"value\": \"import React, { useState } from 'react';\\nimport CodeMirrorMerge from 'react-codemirror-merge';\\n\\nconst Original = CodeMirrorMerge.Original;\\nconst Modified = CodeMirrorMerge.Modified;\\nlet doc = `one\\ntwo\\nthree\\nfour\\nfive`;\\n\\nexport default function App() {\\n const [value, setValue] = useState('');\\n const [valueModified, setValueModified] = useState('');\\n return (\\n
\\n \\n {\\n setValue(value);\\n }}\\n value={doc}\\n />\\n {\\n setValueModified(value);\\n }}\\n value={doc.replace(/t/g, 'T') + 'Six'}\\n />\\n \\n
\\n
{value} 
\\n
{valueModified} 
\\n
\\n
\\n );\\n}\"\n }\n},\n source: \"# onChange Example\\n\\n```jsx mdx:preview\\nimport React, { useState } from 'react';\\nimport CodeMirrorMerge from 'react-codemirror-merge';\\n\\nconst Original = CodeMirrorMerge.Original;\\nconst Modified = CodeMirrorMerge.Modified;\\nlet doc = `one\\ntwo\\nthree\\nfour\\nfive`;\\n\\nexport default function App() {\\n const [value, setValue] = useState('');\\n const [valueModified, setValueModified] = useState('');\\n return (\\n
\\n \\n {\\n setValue(value);\\n }}\\n value={doc}\\n />\\n {\\n setValueModified(value);\\n }}\\n value={doc.replace(/t/g, 'T') + 'Six'}\\n />\\n \\n
\\n
{value} 
\\n
{valueModified} 
\\n
\\n
\\n );\\n}\\n```\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["initialState","modified","doc","original","Context","createContext","reducer","state","action","_extends","useStore","useContext","Provider","_ref","children","theme","dispatch","useReducer","useEffect","_jsx","value","_excluded","Original","props","extensions","selection","onChange","otherOption","_objectWithoutPropertiesLoose","defaultExtensions","getDefaultExtensions","updateListener","EditorView","of","vu","docChanged","val","toString","originalExtension","option","extension","displayName","Modified","modifiedExtension","_excluded2","Internal","React","ref","className","orientation","revertControls","highlightChanges","gutter","collapseUnchanged","destroyRerender","renderRevertControl","elmProps","_useStore","otherStore","editor","useRef","view","opts","useImperativeHandle","container","current","config","a","b","parent","MergeView","_view$current","_view$current2","originalDoc","changes","from","to","length","insert","_view$current3","_view$current4","modifiedDoc","originalFrom","ranges","modifiedFrom","destroy","focus","anchor","head","_opts","Object","keys","reconfigure","CodeMirrorMerge","components","_typeof","o","Symbol","iterator","constructor","prototype","obj","_react","e","r","__esModule","t","_getRequireWildcardCache","has","get","n","__proto__","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","_interopRequireWildcard","_reactCodemirrorMerge","WeakMap","_slicedToArray","arr","Array","isArray","_arrayWithHoles","l","f","next","done","push","_iterableToArrayLimit","minLen","_arrayLikeToArray","slice","name","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","len","arr2","_useState2","useState","setValue","_useState4","valueModified","setValueModified","createElement","replace","style","display","marginTop","flex","backgroundColor","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5751.835aabf0.chunk.js b/static/js/5751.835aabf0.chunk.js new file mode 100644 index 000000000..b95d06cbf --- /dev/null +++ b/static/js/5751.835aabf0.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5751],{5751:(e,n,t)=>{t.r(n),t.d(n,{default:()=>r});const r={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# react-codemirror-merge\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/react-codemirror-merge.svg)](https://www.npmjs.com/package/react-codemirror-merge)\n\nCodeMirror merge view for React.\n\n\n \"codemirror-theme-androidstudio\"\n\n\n## Install\n\n```bash\nnpm install react-codemirror-merge --save\n```\n\n## Usage\n\n```jsx\nimport CodeMirrorMerge from 'react-codemirror-merge';\nimport { EditorView } from 'codemirror';\nimport { EditorState } from '@codemirror/state';\n\nconst Original = CodeMirrorMerge.Original;\nconst Modified = CodeMirrorMerge.Modified;\nlet doc = `one\ntwo\nthree\nfour\nfive`;\n\nexport const Example = () => {\n return (\n \n \n \n \n );\n};\n```\n\n## Theme\n\n```jsx\nimport { useState } from 'react';\nimport CodeMirrorMerge from 'react-codemirror-merge';\nimport { EditorView } from 'codemirror';\nimport { EditorState } from '@codemirror/state';\n\nconst Original = CodeMirrorMerge.Original;\nconst Modified = CodeMirrorMerge.Modified;\nlet doc = `one\ntwo\nthree\nfour\nfive`;\n\nexport const Example = () => {\n const [theme, setTheme] = useState('light');\n return (\n \n \n \n \n );\n};\n```\n\n```jsx\nimport React, { useState } from 'react';\nimport CodeMirrorMerge from 'react-codemirror-merge';\nimport { EditorView } from '@codemirror/view';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { githubLight, githubDark } from '@uiw/codemirror-theme-github';\n\nconst Original = CodeMirrorMerge.Original;\nconst Modified = CodeMirrorMerge.Modified;\nlet doc = `function examle() {\n\n}`;\n\nfunction Example() {\n const [theme, setTheme] = useState('light');\n return (\n
\n \n \n \n \n \n
\n );\n}\n```\n\n## Props\n\n```ts\nimport { Extension } from '@codemirror/state';\nexport interface CodeMirrorMergeRef extends InternalRef {}\nexport interface CodeMirrorMergeProps extends React.HTMLAttributes, MergeConfig {\n theme?: 'light' | 'dark' | 'none' | Extension;\n}\n\ninterface MergeConfig {\n /**\n Controls whether editor A or editor B is shown first. Defaults\n to `\"a-b\"`.\n */\n orientation?: 'a-b' | 'b-a';\n /**\n Controls whether revert controls are shown between changed\n chunks.\n */\n revertControls?: 'a-to-b' | 'b-to-a';\n /**\n When given, this function is called to render the button to\n revert a chunk.\n */\n renderRevertControl?: () => HTMLElement;\n /**\n By default, the merge view will mark inserted and deleted text\n in changed chunks. Set this to false to turn that off.\n */\n highlightChanges?: boolean;\n /**\n Controls whether a gutter marker is shown next to changed lines.\n */\n gutter?: boolean;\n /**\n When given, long stretches of unchanged text are collapsed.\n `margin` gives the number of lines to leave visible after/before\n a change (default is 3), and `minSize` gives the minimum amount\n of collapsible lines that need to be present (defaults to 4).\n */\n collapseUnchanged?: {\n margin?: number;\n minSize?: number;\n };\n}\n```\n\n## Modified Props\n\n```ts\ninterface ModifiedProps extends Omit {\n /**\n The initial document. Defaults to an empty document. Can be\n provided either as a plain string (which will be split into\n lines according to the value of the [`lineSeparator`\n facet](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)), or an instance of\n the [`Text`](https://codemirror.net/6/docs/ref/#state.Text) class (which is what the state will use\n to represent the document).\n */\n value?: string | Text;\n /**\n The starting selection. Defaults to a cursor at the very start\n of the document.\n */\n selection?:\n | EditorSelection\n | {\n anchor: number;\n head?: number;\n };\n /**\n [Extension(s)](https://codemirror.net/6/docs/ref/#state.Extension) to associate with this state.\n */\n extensions?: Extension;\n /** Fired whenever a change occurs to the document. */\n onChange?(value: string, viewUpdate: ViewUpdate): void;\n}\n\nimport { Extension } from '@codemirror/state';\nimport { BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup';\nimport { DefaultExtensionsOptions } from '@uiw/react-codemirror';\n\nexport interface DefaultExtensionsOptions {\n indentWithTab?: boolean;\n basicSetup?: boolean | BasicSetupOptions;\n placeholder?: string | HTMLElement;\n theme?: 'light' | 'dark' | 'none' | Extension;\n readOnly?: boolean;\n editable?: boolean;\n}\n```\n\n## Original Props\n\n```ts\ninterface OriginalProps extends Omit {\n /**\n The initial document. Defaults to an empty document. Can be\n provided either as a plain string (which will be split into\n lines according to the value of the [`lineSeparator`\n facet](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)), or an instance of\n the [`Text`](https://codemirror.net/6/docs/ref/#state.Text) class (which is what the state will use\n to represent the document).\n */\n value?: string | Text;\n /**\n The starting selection. Defaults to a cursor at the very start\n of the document.\n */\n selection?:\n | EditorSelection\n | {\n anchor: number;\n head?: number;\n };\n /**\n [Extension(s)](https://codemirror.net/6/docs/ref/#state.Extension) to associate with this state.\n */\n extensions?: Extension;\n /** Fired whenever a change occurs to the document. */\n onChange?(value: string, viewUpdate: ViewUpdate): void;\n}\n\nimport { Extension } from '@codemirror/state';\nimport { BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup';\nimport { DefaultExtensionsOptions } from '@uiw/react-codemirror';\n\nexport interface DefaultExtensionsOptions {\n indentWithTab?: boolean;\n basicSetup?: boolean | BasicSetupOptions;\n placeholder?: string | HTMLElement;\n theme?: 'light' | 'dark' | 'none' | Extension;\n readOnly?: boolean;\n editable?: boolean;\n}\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=5751.835aabf0.chunk.js.map \ No newline at end of file diff --git a/static/js/5751.835aabf0.chunk.js.map b/static/js/5751.835aabf0.chunk.js.map new file mode 100644 index 000000000..1f4a06914 --- /dev/null +++ b/static/js/5751.835aabf0.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5751.835aabf0.chunk.js","mappings":"wHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,gjPACRC,SAAS,GACTC,aAAa,G","sources":["../../merge/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# react-codemirror-merge\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/react-codemirror-merge.svg)](https://www.npmjs.com/package/react-codemirror-merge)\\n\\nCodeMirror merge view for React.\\n\\n\\n \\\"codemirror-theme-androidstudio\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install react-codemirror-merge --save\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirrorMerge from 'react-codemirror-merge';\\nimport { EditorView } from 'codemirror';\\nimport { EditorState } from '@codemirror/state';\\n\\nconst Original = CodeMirrorMerge.Original;\\nconst Modified = CodeMirrorMerge.Modified;\\nlet doc = `one\\ntwo\\nthree\\nfour\\nfive`;\\n\\nexport const Example = () => {\\n return (\\n \\n \\n \\n \\n );\\n};\\n```\\n\\n## Theme\\n\\n```jsx\\nimport { useState } from 'react';\\nimport CodeMirrorMerge from 'react-codemirror-merge';\\nimport { EditorView } from 'codemirror';\\nimport { EditorState } from '@codemirror/state';\\n\\nconst Original = CodeMirrorMerge.Original;\\nconst Modified = CodeMirrorMerge.Modified;\\nlet doc = `one\\ntwo\\nthree\\nfour\\nfive`;\\n\\nexport const Example = () => {\\n const [theme, setTheme] = useState('light');\\n return (\\n \\n \\n \\n \\n );\\n};\\n```\\n\\n```jsx\\nimport React, { useState } from 'react';\\nimport CodeMirrorMerge from 'react-codemirror-merge';\\nimport { EditorView } from '@codemirror/view';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { githubLight, githubDark } from '@uiw/codemirror-theme-github';\\n\\nconst Original = CodeMirrorMerge.Original;\\nconst Modified = CodeMirrorMerge.Modified;\\nlet doc = `function examle() {\\n\\n}`;\\n\\nfunction Example() {\\n const [theme, setTheme] = useState('light');\\n return (\\n
\\n \\n \\n \\n \\n \\n
\\n );\\n}\\n```\\n\\n## Props\\n\\n```ts\\nimport { Extension } from '@codemirror/state';\\nexport interface CodeMirrorMergeRef extends InternalRef {}\\nexport interface CodeMirrorMergeProps extends React.HTMLAttributes, MergeConfig {\\n theme?: 'light' | 'dark' | 'none' | Extension;\\n}\\n\\ninterface MergeConfig {\\n /**\\n Controls whether editor A or editor B is shown first. Defaults\\n to `\\\"a-b\\\"`.\\n */\\n orientation?: 'a-b' | 'b-a';\\n /**\\n Controls whether revert controls are shown between changed\\n chunks.\\n */\\n revertControls?: 'a-to-b' | 'b-to-a';\\n /**\\n When given, this function is called to render the button to\\n revert a chunk.\\n */\\n renderRevertControl?: () => HTMLElement;\\n /**\\n By default, the merge view will mark inserted and deleted text\\n in changed chunks. Set this to false to turn that off.\\n */\\n highlightChanges?: boolean;\\n /**\\n Controls whether a gutter marker is shown next to changed lines.\\n */\\n gutter?: boolean;\\n /**\\n When given, long stretches of unchanged text are collapsed.\\n `margin` gives the number of lines to leave visible after/before\\n a change (default is 3), and `minSize` gives the minimum amount\\n of collapsible lines that need to be present (defaults to 4).\\n */\\n collapseUnchanged?: {\\n margin?: number;\\n minSize?: number;\\n };\\n}\\n```\\n\\n## Modified Props\\n\\n```ts\\ninterface ModifiedProps extends Omit {\\n /**\\n The initial document. Defaults to an empty document. Can be\\n provided either as a plain string (which will be split into\\n lines according to the value of the [`lineSeparator`\\n facet](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)), or an instance of\\n the [`Text`](https://codemirror.net/6/docs/ref/#state.Text) class (which is what the state will use\\n to represent the document).\\n */\\n value?: string | Text;\\n /**\\n The starting selection. Defaults to a cursor at the very start\\n of the document.\\n */\\n selection?:\\n | EditorSelection\\n | {\\n anchor: number;\\n head?: number;\\n };\\n /**\\n [Extension(s)](https://codemirror.net/6/docs/ref/#state.Extension) to associate with this state.\\n */\\n extensions?: Extension;\\n /** Fired whenever a change occurs to the document. */\\n onChange?(value: string, viewUpdate: ViewUpdate): void;\\n}\\n\\nimport { Extension } from '@codemirror/state';\\nimport { BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup';\\nimport { DefaultExtensionsOptions } from '@uiw/react-codemirror';\\n\\nexport interface DefaultExtensionsOptions {\\n indentWithTab?: boolean;\\n basicSetup?: boolean | BasicSetupOptions;\\n placeholder?: string | HTMLElement;\\n theme?: 'light' | 'dark' | 'none' | Extension;\\n readOnly?: boolean;\\n editable?: boolean;\\n}\\n```\\n\\n## Original Props\\n\\n```ts\\ninterface OriginalProps extends Omit {\\n /**\\n The initial document. Defaults to an empty document. Can be\\n provided either as a plain string (which will be split into\\n lines according to the value of the [`lineSeparator`\\n facet](https://codemirror.net/6/docs/ref/#state.EditorState^lineSeparator)), or an instance of\\n the [`Text`](https://codemirror.net/6/docs/ref/#state.Text) class (which is what the state will use\\n to represent the document).\\n */\\n value?: string | Text;\\n /**\\n The starting selection. Defaults to a cursor at the very start\\n of the document.\\n */\\n selection?:\\n | EditorSelection\\n | {\\n anchor: number;\\n head?: number;\\n };\\n /**\\n [Extension(s)](https://codemirror.net/6/docs/ref/#state.Extension) to associate with this state.\\n */\\n extensions?: Extension;\\n /** Fired whenever a change occurs to the document. */\\n onChange?(value: string, viewUpdate: ViewUpdate): void;\\n}\\n\\nimport { Extension } from '@codemirror/state';\\nimport { BasicSetupOptions } from '@uiw/codemirror-extensions-basic-setup';\\nimport { DefaultExtensionsOptions } from '@uiw/react-codemirror';\\n\\nexport interface DefaultExtensionsOptions {\\n indentWithTab?: boolean;\\n basicSetup?: boolean | BasicSetupOptions;\\n placeholder?: string | HTMLElement;\\n theme?: 'light' | 'dark' | 'none' | Extension;\\n readOnly?: boolean;\\n editable?: boolean;\\n}\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5797.2122fc32.chunk.js b/static/js/5797.2122fc32.chunk.js new file mode 100644 index 000000000..8874ce533 --- /dev/null +++ b/static/js/5797.2122fc32.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5797],{35797:(o,r,e)=>{e.r(r),e.d(r,{default:()=>n});const n={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Load languages Extensions\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-langs.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-langs)\n\nLoad languages Extensions for CodeMirror6.\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-extensions-langs --save\n```\n\n```jsx\nimport { loadLanguage, langNames, langs } from '@uiw/codemirror-extensions-langs';\n\nloadLanguage('tsx');\n\nlangs.tsx();\n\nconsole.log('langNames:', langNames); // => \"jsx\" | \"typescript\" | \"javascript\" | \"tsx\"\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { langs } from '@uiw/codemirror-extensions-langs';\n\nfunction App() {\n return ;\n}\nexport default App;\n```\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { loadLanguage } from '@uiw/codemirror-extensions-langs';\n\nfunction App() {\n return ;\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { loadLanguage, langs } from '@uiw/codemirror-extensions-langs';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [langs.jsx()],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Support Language\n\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-language-rz4rh?fontsize=14&hidenavigation=1&theme=dark)\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { StreamLanguage } from '@codemirror/language';\nimport { go } from '@codemirror/legacy-modes/mode/go';\n\nconst goLang = `package main\nimport \"fmt\"\n\nfunc main() {\n fmt.Println(\"Hello, \u4e16\u754c\")\n}`;\n\nexport default function App() {\n return ;\n}\n```\n\n- ~~`@codemirror/legacy-modes/mode/cpp`~~ => [`@codemirror/lang-cpp`](https://www.npmjs.com/package/@codemirror/lang-cpp)\n- ~~`@codemirror/legacy-modes/mode/html`~~ => [`@codemirror/lang-html`](https://www.npmjs.com/package/@codemirror/lang-html)\n- ~~`@codemirror/legacy-modes/mode/java`~~ => [`@codemirror/lang-java`](https://www.npmjs.com/package/@codemirror/lang-java)\n- ~~`@codemirror/legacy-modes/mode/javascript`~~ => [`@codemirror/lang-javascript`](https://www.npmjs.com/package/@codemirror/lang-javascript)\n- ~~`@codemirror/legacy-modes/mode/json`~~ => [`@codemirror/lang-json`](https://www.npmjs.com/package/@codemirror/lang-json)\n- ~~`@codemirror/legacy-modes/mode/lezer`~~ => [`@codemirror/lang-lezer`](https://www.npmjs.com/package/@codemirror/lang-lezer)\n- ~~`@codemirror/legacy-modes/mode/markdown`~~ => [`@codemirror/lang-markdown`](https://www.npmjs.com/package/@codemirror/lang-markdown)\n- ~~`@codemirror/legacy-modes/mode/php`~~ => [`@codemirror/lang-php`](https://www.npmjs.com/package/@codemirror/lang-php)\n- ~~`@codemirror/legacy-modes/mode/python`~~ => [`@codemirror/lang-python`](https://www.npmjs.com/package/@codemirror/lang-python)\n- ~~`@codemirror/legacy-modes/mode/rust`~~ => [`@codemirror/lang-rust`](https://www.npmjs.com/package/@codemirror/lang-rust)\n- ~~`@codemirror/legacy-modes/mode/sql`~~ => [`@codemirror/lang-sql`](https://www.npmjs.com/package/@codemirror/lang-sql)\n- ~~`@codemirror/legacy-modes/mode/xml`~~ => [`@codemirror/lang-xml`](https://www.npmjs.com/package/@codemirror/lang-xml)\n- ~~`@codemirror/legacy-modes/mode/css`~~ => [`@codemirror/lang-less`](https://www.npmjs.com/package/@codemirror/lang-less)\n- ~~`@codemirror/legacy-modes/mode/sass`~~ => [`@codemirror/lang-sass`](https://www.npmjs.com/package/@codemirror/lang-sass)\n- ~~`@codemirror/legacy-modes/mode/clojure`~~ => [`@nextjournal/lang-clojure`](https://www.npmjs.com/package/@nextjournal/lang-clojure)\n- ~~`@codemirror/legacy-modes/mode/clike`~~ => [`@replit/codemirror-lang-csharp`](https://www.npmjs.com/package/@replit/codemirror-lang-csharp)\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=5797.2122fc32.chunk.js.map \ No newline at end of file diff --git a/static/js/5797.2122fc32.chunk.js.map b/static/js/5797.2122fc32.chunk.js.map new file mode 100644 index 000000000..326244ee6 --- /dev/null +++ b/static/js/5797.2122fc32.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5797.2122fc32.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,yuJACRC,SAAS,GACTC,aAAa,G","sources":["../../extensions/langs/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Load languages Extensions\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-langs.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-langs)\\n\\nLoad languages Extensions for CodeMirror6.\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-extensions-langs --save\\n```\\n\\n```jsx\\nimport { loadLanguage, langNames, langs } from '@uiw/codemirror-extensions-langs';\\n\\nloadLanguage('tsx');\\n\\nlangs.tsx();\\n\\nconsole.log('langNames:', langNames); // => \\\"jsx\\\" | \\\"typescript\\\" | \\\"javascript\\\" | \\\"tsx\\\"\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { langs } from '@uiw/codemirror-extensions-langs';\\n\\nfunction App() {\\n return ;\\n}\\nexport default App;\\n```\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { loadLanguage } from '@uiw/codemirror-extensions-langs';\\n\\nfunction App() {\\n return ;\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { loadLanguage, langs } from '@uiw/codemirror-extensions-langs';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [langs.jsx()],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Support Language\\n\\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-language-rz4rh?fontsize=14&hidenavigation=1&theme=dark)\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { StreamLanguage } from '@codemirror/language';\\nimport { go } from '@codemirror/legacy-modes/mode/go';\\n\\nconst goLang = `package main\\nimport \\\"fmt\\\"\\n\\nfunc main() {\\n fmt.Println(\\\"Hello, 世界\\\")\\n}`;\\n\\nexport default function App() {\\n return ;\\n}\\n```\\n\\n- ~~`@codemirror/legacy-modes/mode/cpp`~~ => [`@codemirror/lang-cpp`](https://www.npmjs.com/package/@codemirror/lang-cpp)\\n- ~~`@codemirror/legacy-modes/mode/html`~~ => [`@codemirror/lang-html`](https://www.npmjs.com/package/@codemirror/lang-html)\\n- ~~`@codemirror/legacy-modes/mode/java`~~ => [`@codemirror/lang-java`](https://www.npmjs.com/package/@codemirror/lang-java)\\n- ~~`@codemirror/legacy-modes/mode/javascript`~~ => [`@codemirror/lang-javascript`](https://www.npmjs.com/package/@codemirror/lang-javascript)\\n- ~~`@codemirror/legacy-modes/mode/json`~~ => [`@codemirror/lang-json`](https://www.npmjs.com/package/@codemirror/lang-json)\\n- ~~`@codemirror/legacy-modes/mode/lezer`~~ => [`@codemirror/lang-lezer`](https://www.npmjs.com/package/@codemirror/lang-lezer)\\n- ~~`@codemirror/legacy-modes/mode/markdown`~~ => [`@codemirror/lang-markdown`](https://www.npmjs.com/package/@codemirror/lang-markdown)\\n- ~~`@codemirror/legacy-modes/mode/php`~~ => [`@codemirror/lang-php`](https://www.npmjs.com/package/@codemirror/lang-php)\\n- ~~`@codemirror/legacy-modes/mode/python`~~ => [`@codemirror/lang-python`](https://www.npmjs.com/package/@codemirror/lang-python)\\n- ~~`@codemirror/legacy-modes/mode/rust`~~ => [`@codemirror/lang-rust`](https://www.npmjs.com/package/@codemirror/lang-rust)\\n- ~~`@codemirror/legacy-modes/mode/sql`~~ => [`@codemirror/lang-sql`](https://www.npmjs.com/package/@codemirror/lang-sql)\\n- ~~`@codemirror/legacy-modes/mode/xml`~~ => [`@codemirror/lang-xml`](https://www.npmjs.com/package/@codemirror/lang-xml)\\n- ~~`@codemirror/legacy-modes/mode/css`~~ => [`@codemirror/lang-less`](https://www.npmjs.com/package/@codemirror/lang-less)\\n- ~~`@codemirror/legacy-modes/mode/sass`~~ => [`@codemirror/lang-sass`](https://www.npmjs.com/package/@codemirror/lang-sass)\\n- ~~`@codemirror/legacy-modes/mode/clojure`~~ => [`@nextjournal/lang-clojure`](https://www.npmjs.com/package/@nextjournal/lang-clojure)\\n- ~~`@codemirror/legacy-modes/mode/clike`~~ => [`@replit/codemirror-lang-csharp`](https://www.npmjs.com/package/@replit/codemirror-lang-csharp)\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5942.a7335211.chunk.js b/static/js/5942.a7335211.chunk.js new file mode 100644 index 000000000..73aa3779d --- /dev/null +++ b/static/js/5942.a7335211.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5942],{55942:(t,$,n)=>{n.r($),n.d($,{default:()=>i});const i="# A[i] = A[i/2] + 1;\n lw $t0, 0($gp) # fetch i\n srl $t1, $t0, 1 # i/2\n sll $t1, $t1, 2 # turn i/2 into a byte offset (*4)\n add $t1, $gp, $t1 # &A[i/2] - 28\n lw $t1, 28($t1) # fetch A[i/2]\n addi $t1, $t1, 1 # A[i/2] + 1\n sll $t2, $t0, 2 # turn i into a byte offset\n add $t2, $t2, $gp # &A[i] - 28\n sw $t1, 28($t2) # A[i] = ...\n# A[i+1] = -1;\n addi $t1, $zero, -1 # -1\n sw $t1, 32($t2) # A[i+1] = -1\n"}}]); +//# sourceMappingURL=5942.a7335211.chunk.js.map \ No newline at end of file diff --git a/static/js/5942.a7335211.chunk.js.map b/static/js/5942.a7335211.chunk.js.map new file mode 100644 index 000000000..8d45bb445 --- /dev/null +++ b/static/js/5942.a7335211.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5942.a7335211.chunk.js","mappings":"yHAAA,iiB","sources":["../../node_modules/code-example/txt/sample.mips.txt"],"sourcesContent":["export default \"# A[i] = A[i/2] + 1;\\n lw $t0, 0($gp) # fetch i\\n srl $t1, $t0, 1 # i/2\\n sll $t1, $t1, 2 # turn i/2 into a byte offset (*4)\\n add $t1, $gp, $t1 # &A[i/2] - 28\\n lw $t1, 28($t1) # fetch A[i/2]\\n addi $t1, $t1, 1 # A[i/2] + 1\\n sll $t2, $t0, 2 # turn i into a byte offset\\n add $t2, $t2, $gp # &A[i] - 28\\n sw $t1, 28($t2) # A[i] = ...\\n# A[i+1] = -1;\\n addi $t1, $zero, -1 # -1\\n sw $t1, 32($t2) # A[i+1] = -1\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/5973.67b07b7e.chunk.js b/static/js/5973.67b07b7e.chunk.js new file mode 100644 index 000000000..f72e00d56 --- /dev/null +++ b/static/js/5973.67b07b7e.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[5973],{75973:(e,t,r)=>{r.r(t),r.d(t,{default:()=>i});const i={components:{},data:{},source:'\x3c!--rehype:ignore:start--\x3e\n\n# Themes all for CodeMirror 6.\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-themes-all.svg)](https://www.npmjs.com/package/@uiw/codemirror-themes-all)\n\nPreview all the themes we have created [here](https://uiwjs.github.io/react-codemirror/#/theme), just need to install and import them.\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-themes-all --save\n```\n\n```js\nimport * as themes from \'@uiw/codemirror-themes-all\';\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from \'@uiw/react-codemirror\';\nimport { abcdef } from \'@uiw/codemirror-themes-all\';\nimport { javascript } from \'@codemirror/lang-javascript\';\n\nfunction App() {\n return (\n {\n console.log(\'value:\', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from \'@codemirror/view\';\nimport { EditorState } from \'@codemirror/state\';\nimport { javascript } from \'@codemirror/lang-javascript\';\nimport { abcdef } from \'@uiw/codemirror-themes-all\';\n\nconst state = EditorState.create({\n doc: \'my source code\',\n extensions: [abcdef, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector(\'#editor\'),\n state,\n});\n```\n\n## API\n\n```ts\nexport * from \'@uiw/codemirror-theme-abcdef\';\nexport * from \'@uiw/codemirror-theme-androidstudio\';\nexport * from \'@uiw/codemirror-theme-atomone\';\nexport * from \'@uiw/codemirror-theme-aura\';\nexport * from \'@uiw/codemirror-theme-basic\';\nexport * from \'@uiw/codemirror-theme-bbedit\';\nexport * from \'@uiw/codemirror-theme-bespin\';\nexport * from \'@uiw/codemirror-theme-darcula\';\nexport * from \'@uiw/codemirror-theme-dracula\';\nexport * from \'@uiw/codemirror-theme-duotone\';\nexport * from \'@uiw/codemirror-theme-eclipse\';\nexport * from \'@uiw/codemirror-theme-github\';\nexport * from \'@uiw/codemirror-theme-gruvbox-dark\';\nexport * from \'@uiw/codemirror-theme-material\';\nexport * from \'@uiw/codemirror-theme-noctis-lilac\';\nexport * from \'@uiw/codemirror-theme-nord\';\nexport * from \'@uiw/codemirror-theme-okaidia\';\nexport * from \'@uiw/codemirror-theme-quietlight\';\nexport * from \'@uiw/codemirror-theme-red\';\nexport * from \'@uiw/codemirror-theme-solarized\';\nexport * from \'@uiw/codemirror-theme-sublime\';\nexport * from \'@uiw/codemirror-theme-tokyo-night\';\nexport * from \'@uiw/codemirror-theme-tokyo-night-storm\';\nexport * from \'@uiw/codemirror-theme-tokyo-night-day\';\nexport * from \'@uiw/codemirror-theme-vscode\';\nexport * from \'@uiw/codemirror-theme-xcode\';\n```\n\n## Themes\n\n### abcdef\n\n\n codemirror-theme-abcdef\n\n\n### abyss\n\n\n codemirror-theme-abyss\n\n\n### android studio\n\n\n codemirror-theme-androidstudio\n\n\n### atom one\n\n\n codemirror-theme-androidstudio\n\n\n### aura\n\n\n codemirror-theme-aura\n\n\n### basic\n\n\n codemirror-theme-basic dark\n\n\n\n codemirror-theme-basic light\n\n\n### bbedit\n\n\n codemirror-theme-bbedit\n\n\n### bespin\n\n\n codemirror-theme-bespin\n\n\n### darcula\n\n\n codemirror-theme-darcula\n\n\n### dracula\n\n\n codemirror-theme-dracula\n\n\n### duotone\n\n\n codemirror-theme-duotone dark\n\n\n\n codemirror-theme-duotone light\n\n\n### eclipse\n\n\n codemirror-theme-eclipse\n\n\n### github\n\n\n codemirror-theme-github dark\n\n\n\n codemirror-theme-github light\n\n\n### gruvbox\n\n\n codemirror-theme-gruvbox-dark\n\n\n\n codemirror-theme-eclipse\n\n\n### kimbie\n\n\n codemirror-theme-kimbie\n\n\n### material\n\n\n codemirror-theme-material\n\n\n\n codemirror-theme-material\n\n\n### monokai\n\n\n codemirror-theme-monokai\n\n\n### monokai-dimmed\n\n\n codemirror-theme-monokai-dimmed\n\n\n### noctis-lilac\n\n\n codemirror-theme-noctis-lilac\n\n\n### nord\n\n\n codemirror-theme-nord\n\n\n### okaidia\n\n\n codemirror-theme-okaidia\n\n\n### quietlight\n\n\n codemirror-theme-okaidia\n\n\n### red\n\n\n codemirror-theme-red\n\n\n### solarized\n\n\n codemirror-theme-solarized\n\n\n\n codemirror-theme-solarized\n\n\n### sublime\n\n\n codemirror-theme-sublime\n\n\n### tokyo-night\n\n\n codemirror-theme-tokyo-night\n\n\n### tokyo-night-day\n\n\n codemirror-theme-tokyo-night-day\n\n\n### tokyo-night-storm\n\n\n codemirror-theme-tokyo-night-storm\n\n\n### tomorrow-night-blue\n\n\n codemirror-theme-tomorrow-night-blue\n\n\n### vscode\n\n\n codemirror-theme-vscode dark\n\n\n### xcode\n\n\n codemirror-theme-xcode dark\n\n\n\n codemirror-theme-xcode light\n\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n',headings:[],headingsList:[]}}}]); +//# sourceMappingURL=5973.67b07b7e.chunk.js.map \ No newline at end of file diff --git a/static/js/5973.67b07b7e.chunk.js.map b/static/js/5973.67b07b7e.chunk.js.map new file mode 100644 index 000000000..fce403f90 --- /dev/null +++ b/static/js/5973.67b07b7e.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/5973.67b07b7e.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,gvZACRC,SAAS,GACTC,aAAa,G","sources":["../node_modules/@uiw/codemirror-themes-all/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Themes all for CodeMirror 6.\\n\\n\\n\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-themes-all.svg)](https://www.npmjs.com/package/@uiw/codemirror-themes-all)\\n\\nPreview all the themes we have created [here](https://uiwjs.github.io/react-codemirror/#/theme), just need to install and import them.\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-themes-all --save\\n```\\n\\n```js\\nimport * as themes from '@uiw/codemirror-themes-all';\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { abcdef } from '@uiw/codemirror-themes-all';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { abcdef } from '@uiw/codemirror-themes-all';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [abcdef, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## API\\n\\n```ts\\nexport * from '@uiw/codemirror-theme-abcdef';\\nexport * from '@uiw/codemirror-theme-androidstudio';\\nexport * from '@uiw/codemirror-theme-atomone';\\nexport * from '@uiw/codemirror-theme-aura';\\nexport * from '@uiw/codemirror-theme-basic';\\nexport * from '@uiw/codemirror-theme-bbedit';\\nexport * from '@uiw/codemirror-theme-bespin';\\nexport * from '@uiw/codemirror-theme-darcula';\\nexport * from '@uiw/codemirror-theme-dracula';\\nexport * from '@uiw/codemirror-theme-duotone';\\nexport * from '@uiw/codemirror-theme-eclipse';\\nexport * from '@uiw/codemirror-theme-github';\\nexport * from '@uiw/codemirror-theme-gruvbox-dark';\\nexport * from '@uiw/codemirror-theme-material';\\nexport * from '@uiw/codemirror-theme-noctis-lilac';\\nexport * from '@uiw/codemirror-theme-nord';\\nexport * from '@uiw/codemirror-theme-okaidia';\\nexport * from '@uiw/codemirror-theme-quietlight';\\nexport * from '@uiw/codemirror-theme-red';\\nexport * from '@uiw/codemirror-theme-solarized';\\nexport * from '@uiw/codemirror-theme-sublime';\\nexport * from '@uiw/codemirror-theme-tokyo-night';\\nexport * from '@uiw/codemirror-theme-tokyo-night-storm';\\nexport * from '@uiw/codemirror-theme-tokyo-night-day';\\nexport * from '@uiw/codemirror-theme-vscode';\\nexport * from '@uiw/codemirror-theme-xcode';\\n```\\n\\n## Themes\\n\\n### abcdef\\n\\n\\n \\\"codemirror-theme-abcdef\\\"\\n\\n\\n### abyss\\n\\n\\n \\\"codemirror-theme-abyss\\\"\\n\\n\\n### android studio\\n\\n\\n \\\"codemirror-theme-androidstudio\\\"\\n\\n\\n### atom one\\n\\n\\n \\\"codemirror-theme-androidstudio\\\"\\n\\n\\n### aura\\n\\n\\n \\\"codemirror-theme-aura\\\"\\n\\n\\n### basic\\n\\n\\n \\\"codemirror-theme-basic\\n\\n\\n\\n \\\"codemirror-theme-basic\\n\\n\\n### bbedit\\n\\n\\n \\\"codemirror-theme-bbedit\\\"\\n\\n\\n### bespin\\n\\n\\n \\\"codemirror-theme-bespin\\\"\\n\\n\\n### darcula\\n\\n\\n \\\"codemirror-theme-darcula\\\"\\n\\n\\n### dracula\\n\\n\\n \\\"codemirror-theme-dracula\\\"\\n\\n\\n### duotone\\n\\n\\n \\\"codemirror-theme-duotone\\n\\n\\n\\n \\\"codemirror-theme-duotone\\n\\n\\n### eclipse\\n\\n\\n \\\"codemirror-theme-eclipse\\\"\\n\\n\\n### github\\n\\n\\n \\\"codemirror-theme-github\\n\\n\\n\\n \\\"codemirror-theme-github\\n\\n\\n### gruvbox\\n\\n\\n \\\"codemirror-theme-gruvbox-dark\\\"\\n\\n\\n\\n \\\"codemirror-theme-eclipse\\\"\\n\\n\\n### kimbie\\n\\n\\n \\\"codemirror-theme-kimbie\\\"\\n\\n\\n### material\\n\\n\\n \\\"codemirror-theme-material\\\"\\n\\n\\n\\n \\\"codemirror-theme-material\\\"\\n\\n\\n### monokai\\n\\n\\n \\\"codemirror-theme-monokai\\\"\\n\\n\\n### monokai-dimmed\\n\\n\\n \\\"codemirror-theme-monokai-dimmed\\\"\\n\\n\\n### noctis-lilac\\n\\n\\n \\\"codemirror-theme-noctis-lilac\\\"\\n\\n\\n### nord\\n\\n\\n \\\"codemirror-theme-nord\\\"\\n\\n\\n### okaidia\\n\\n\\n \\\"codemirror-theme-okaidia\\\"\\n\\n\\n### quietlight\\n\\n\\n \\\"codemirror-theme-okaidia\\\"\\n\\n\\n### red\\n\\n\\n \\\"codemirror-theme-red\\\"\\n\\n\\n### solarized\\n\\n\\n \\\"codemirror-theme-solarized\\\"\\n\\n\\n\\n \\\"codemirror-theme-solarized\\\"\\n\\n\\n### sublime\\n\\n\\n \\\"codemirror-theme-sublime\\\"\\n\\n\\n### tokyo-night\\n\\n\\n \\\"codemirror-theme-tokyo-night\\\"\\n\\n\\n### tokyo-night-day\\n\\n\\n \\\"codemirror-theme-tokyo-night-day\\\"\\n\\n\\n### tokyo-night-storm\\n\\n\\n \\\"codemirror-theme-tokyo-night-storm\\\"\\n\\n\\n### tomorrow-night-blue\\n\\n\\n \\\"codemirror-theme-tomorrow-night-blue\\\"\\n\\n\\n### vscode\\n\\n\\n \\\"codemirror-theme-vscode\\n\\n\\n### xcode\\n\\n\\n \\\"codemirror-theme-xcode\\n\\n\\n\\n \\\"codemirror-theme-xcode\\n\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/602.9cf24290.chunk.js b/static/js/602.9cf24290.chunk.js new file mode 100644 index 000000000..77219081a --- /dev/null +++ b/static/js/602.9cf24290.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[602],{10602:(e,i,t)=>{t.r(i),t.d(i,{default:()=>u});const u="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec cursus aliquet sapien, sed rhoncus leo ullamcorper ornare. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus feugiat eleifend nisl, aliquet rhoncus quam scelerisque vel. Morbi eu pellentesque ex. Nam suscipit maximus leo blandit cursus. Aenean sollicitudin nisi luctus, ornare nibh viverra, laoreet ex. Donec eget nibh sit amet dolor ornare elementum. Morbi sollicitudin enim vitae risus pretium vestibulum. Ut pretium hendrerit libero, non vulputate ante volutpat et. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nullam malesuada turpis vitae est porttitor, id tincidunt neque dignissim. Integer rhoncus vestibulum justo in iaculis. Praesent nec augue ut dui scelerisque gravida vel id velit. Donec vehicula feugiat mollis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\n\nPraesent diam lorem, luctus quis ullamcorper non, consequat quis orci. Ut vel massa vel nunc sagittis porttitor a vitae ante. Quisque euismod lobortis imperdiet. Vestibulum tincidunt vehicula posuere. Nulla facilisi. Donec sodales imperdiet risus id ullamcorper. Nulla luctus orci tortor, vitae tincidunt urna aliquet nec. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam consequat dapibus massa. Sed ac pharetra magna, in imperdiet neque. Nullam nunc nisi, consequat vel nunc et, sagittis aliquam arcu. Aliquam non orci magna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed id sem ut sem pulvinar rhoncus. Aenean venenatis nunc eget mi ornare, vitae maximus lacus varius. Quisque quis vestibulum justo.\n\nDonec euismod luctus volutpat. Donec sed lacinia enim. Vivamus aliquam elit cursus, convallis diam at, volutpat turpis. Sed lacinia nisl in auctor dapibus. Nunc turpis mi, mattis ut rhoncus id, lacinia sed lectus. Donec sodales tellus quis libero gravida pretium et quis magna. Etiam ultricies mollis purus, eget consequat velit. Duis vitae nibh vitae arcu tincidunt congue. Maecenas ut velit in ipsum condimentum dictum quis eget urna. Sed mattis nulla arcu, vitae mattis ligula dictum at.\n\nPraesent at dignissim dolor. Donec quis placerat sem. Cras vitae placerat sapien, eu sagittis ex. Mauris nec luctus risus. Cras imperdiet semper neque suscipit auctor. Mauris nisl massa, commodo sit amet dignissim id, malesuada sed ante. Praesent varius sapien eget eros vehicula porttitor.\n\nMauris auctor nunc in quam tempor, eget consectetur nisi rhoncus. Donec et nulla imperdiet, gravida dui at, accumsan velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin sollicitudin condimentum auctor. Sed lacinia eleifend nisi, id scelerisque leo laoreet sit amet. Morbi congue augue a malesuada pulvinar. Curabitur nec ante finibus, commodo orci vel, aliquam libero. Morbi molestie purus non nunc placerat fermentum. Pellentesque commodo ligula sed pretium aliquam. Praesent ut nibh ex. Vivamus vestibulum velit in leo suscipit, vitae pellentesque urna vulputate. Suspendisse pretium placerat ligula eu ullamcorper. Nam eleifend mi tellus, ut tristique ante ultricies vitae. Quisque venenatis dapibus tellus sit amet mattis. Donec erat arcu, elementum vel nisl at, sagittis vulputate nisi."}}]); +//# sourceMappingURL=602.9cf24290.chunk.js.map \ No newline at end of file diff --git a/static/js/602.9cf24290.chunk.js.map b/static/js/602.9cf24290.chunk.js.map new file mode 100644 index 000000000..a50db5630 --- /dev/null +++ b/static/js/602.9cf24290.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/602.9cf24290.chunk.js","mappings":"wHAAA,u0G","sources":["../../node_modules/code-example/txt/sample.plaintext.txt"],"sourcesContent":["export default \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec cursus aliquet sapien, sed rhoncus leo ullamcorper ornare. Interdum et malesuada fames ac ante ipsum primis in faucibus. Phasellus feugiat eleifend nisl, aliquet rhoncus quam scelerisque vel. Morbi eu pellentesque ex. Nam suscipit maximus leo blandit cursus. Aenean sollicitudin nisi luctus, ornare nibh viverra, laoreet ex. Donec eget nibh sit amet dolor ornare elementum. Morbi sollicitudin enim vitae risus pretium vestibulum. Ut pretium hendrerit libero, non vulputate ante volutpat et. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Nullam malesuada turpis vitae est porttitor, id tincidunt neque dignissim. Integer rhoncus vestibulum justo in iaculis. Praesent nec augue ut dui scelerisque gravida vel id velit. Donec vehicula feugiat mollis. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.\\n\\nPraesent diam lorem, luctus quis ullamcorper non, consequat quis orci. Ut vel massa vel nunc sagittis porttitor a vitae ante. Quisque euismod lobortis imperdiet. Vestibulum tincidunt vehicula posuere. Nulla facilisi. Donec sodales imperdiet risus id ullamcorper. Nulla luctus orci tortor, vitae tincidunt urna aliquet nec. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam consequat dapibus massa. Sed ac pharetra magna, in imperdiet neque. Nullam nunc nisi, consequat vel nunc et, sagittis aliquam arcu. Aliquam non orci magna. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed id sem ut sem pulvinar rhoncus. Aenean venenatis nunc eget mi ornare, vitae maximus lacus varius. Quisque quis vestibulum justo.\\n\\nDonec euismod luctus volutpat. Donec sed lacinia enim. Vivamus aliquam elit cursus, convallis diam at, volutpat turpis. Sed lacinia nisl in auctor dapibus. Nunc turpis mi, mattis ut rhoncus id, lacinia sed lectus. Donec sodales tellus quis libero gravida pretium et quis magna. Etiam ultricies mollis purus, eget consequat velit. Duis vitae nibh vitae arcu tincidunt congue. Maecenas ut velit in ipsum condimentum dictum quis eget urna. Sed mattis nulla arcu, vitae mattis ligula dictum at.\\n\\nPraesent at dignissim dolor. Donec quis placerat sem. Cras vitae placerat sapien, eu sagittis ex. Mauris nec luctus risus. Cras imperdiet semper neque suscipit auctor. Mauris nisl massa, commodo sit amet dignissim id, malesuada sed ante. Praesent varius sapien eget eros vehicula porttitor.\\n\\nMauris auctor nunc in quam tempor, eget consectetur nisi rhoncus. Donec et nulla imperdiet, gravida dui at, accumsan velit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Proin sollicitudin condimentum auctor. Sed lacinia eleifend nisi, id scelerisque leo laoreet sit amet. Morbi congue augue a malesuada pulvinar. Curabitur nec ante finibus, commodo orci vel, aliquam libero. Morbi molestie purus non nunc placerat fermentum. Pellentesque commodo ligula sed pretium aliquam. Praesent ut nibh ex. Vivamus vestibulum velit in leo suscipit, vitae pellentesque urna vulputate. Suspendisse pretium placerat ligula eu ullamcorper. Nam eleifend mi tellus, ut tristique ante ultricies vitae. Quisque venenatis dapibus tellus sit amet mattis. Donec erat arcu, elementum vel nisl at, sagittis vulputate nisi.\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6052.9de5ce94.chunk.js b/static/js/6052.9de5ce94.chunk.js new file mode 100644 index 000000000..52464d68f --- /dev/null +++ b/static/js/6052.9de5ce94.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6052],{18944:(t,e,s)=>{"use strict";s.d(e,{Oq:()=>x});var a,l,p=s(50669),m=s(38932);const x=m.ZP.div(a||(a=(0,p.Z)(["\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n"])));m.ZP.div(l||(l=(0,p.Z)(["\n display: flex;\n flex: 1;\n"])))},16052:(t,e,s)=>{"use strict";s.r(e),s.d(e,{Component:()=>h,LangsExample:()=>u});var a,l=s(50669),p=s(83528),m=s(20530),x=s(4801),r=s(18930),n=s(38932),o=s(40878),i=s(18944),c=s(79584);const d=n.ZP.div(a||(a=(0,l.Z)(["\n padding-bottom: 32px;\n"]))),u=t=>{const{theme:e}=(0,o.F)(),[a,l]=(0,p.useState)("markdown"),[r,n]=(0,p.useState)(t.source||"");return(0,p.useEffect)((()=>{a&&s(70620)("./sample.".concat(a.toLocaleLowerCase(),".txt")).then((t=>{n(t.default)})).catch((t=>{n("")}))}),[a]),(0,c.jsxs)(i.Oq,{children:[(0,c.jsx)(x.default,{value:r,theme:e,height:"300px !important",style:{margin:"0 0 23px 0"},extensions:[(0,m.vf)(a)].filter(Boolean)}),(0,c.jsxs)(d,{children:[(0,c.jsxs)("select",{value:a,onChange:t=>l(t.target.value),children:[(0,c.jsx)("option",{value:"good",children:"good"}),m.UD.sort().map(((t,e)=>(0,c.jsx)("option",{value:t,children:t},e)))]}),(0,c.jsxs)("span",{children:["\xa0 Total: ",m.UD.length]})]})]})},h=()=>(0,c.jsx)(r.MB,{path:()=>s.e(5797).then(s.bind(s,35797)),children:(0,c.jsx)(u,{})})},40878:(t,e,s)=>{"use strict";s.d(e,{F:()=>l});var a=s(83528);function l(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";const e=document.documentElement.getAttribute("data-color-mode"),[s,l]=(0,a.useState)("dark"===e?"dark":t);return(0,a.useEffect)((()=>{l("dark"===document.documentElement.getAttribute("data-color-mode")?"dark":"light"),document.addEventListener("colorschemechange",(t=>{l(t.detail.colorScheme)}))}),[]),{theme:s,setTheme:l}}},70620:(t,e,s)=>{var a={"./sample.abap.txt":[86653,6653],"./sample.aes.txt":[9547,9547],"./sample.apex.txt":[39365,9365],"./sample.azcli.txt":[87795,7795],"./sample.bat.txt":[20470,470],"./sample.bicep.txt":[10803,803],"./sample.brainfuck.txt":[78465,8465],"./sample.c.txt":[86124,6124],"./sample.cameligo.txt":[64286,4286],"./sample.clike.txt":[25034,5034],"./sample.clojure.txt":[6268,6268],"./sample.coffeescript.txt":[35164,5164],"./sample.cpp.txt":[78410,8410],"./sample.csharp.txt":[57511,7511],"./sample.csp.txt":[55541,5541],"./sample.css.txt":[80088],"./sample.dart.txt":[84661,4661],"./sample.dockerfile.txt":[24593,4593],"./sample.ecl.txt":[83733,3733],"./sample.elixir.txt":[84890,4890],"./sample.erlang.txt":[48453,8453],"./sample.flow9.txt":[97626,7626],"./sample.freemarker2.txt":[33498,3498],"./sample.fsharp.txt":[96787,6787],"./sample.go.txt":[11200],"./sample.graphql.txt":[11093,1093],"./sample.handlebars.txt":[8884,8884],"./sample.hcl.txt":[64166,4166],"./sample.html.txt":[90348],"./sample.ini.txt":[71958,1958],"./sample.java.txt":[73486],"./sample.javascript.txt":[11039],"./sample.json.txt":[20230],"./sample.jsx.txt":[33528],"./sample.julia.txt":[47610,7610],"./sample.kotlin.txt":[90671,671],"./sample.less.txt":[68152,8152],"./sample.lex.txt":[43787,3787],"./sample.lexon.txt":[81033,1033],"./sample.liquid.txt":[24905,4905],"./sample.livescript.txt":[41108,1108],"./sample.lua.txt":[28660,8660],"./sample.m3.txt":[27695,7695],"./sample.markdown.txt":[79770],"./sample.mips.txt":[55942,5942],"./sample.msdax.txt":[93087,3087],"./sample.mysql.txt":[55718],"./sample.nginx.txt":[64272,4272],"./sample.objective-c.txt":[6401,6401],"./sample.pascal.txt":[99476,9476],"./sample.pascaligo.txt":[8569,8569],"./sample.perl.txt":[96466,6466],"./sample.pgsql.txt":[78031,8031],"./sample.php.txt":[17995],"./sample.pla.txt":[69321,9321],"./sample.plaintext.txt":[10602,602],"./sample.postiats.txt":[10428,428],"./sample.powerquery.txt":[6580,6580],"./sample.powershell.txt":[79336,9336],"./sample.proto.txt":[81600,1600],"./sample.pug.txt":[63834,3834],"./sample.python.txt":[2223],"./sample.qsharp.txt":[24668,4668],"./sample.r.txt":[74199,4199],"./sample.razor.txt":[91876,1876],"./sample.redis.txt":[13368,3368],"./sample.redshift.txt":[23969,3969],"./sample.restructuredtext.txt":[76203,6203],"./sample.ruby.txt":[53602,3602],"./sample.rust.txt":[74922],"./sample.sb.txt":[16365,6365],"./sample.scala.txt":[15194,5194],"./sample.scheme.txt":[80721,721],"./sample.scss.txt":[14695,4695],"./sample.shell.txt":[69512],"./sample.sol.txt":[71419,1419],"./sample.sparql.txt":[99308,9308],"./sample.sql.txt":[49347,9347],"./sample.st.txt":[66488,6488],"./sample.stylus.txt":[10877,877],"./sample.swift.txt":[31027],"./sample.systemverilog.txt":[84887,4887],"./sample.tcl.txt":[46636,6636],"./sample.toml.txt":[32980,2980],"./sample.tsx.txt":[17251],"./sample.twig.txt":[31635,1635],"./sample.typescript.txt":[53992],"./sample.vb.txt":[44187,4187],"./sample.vbscript.txt":[19200,9200],"./sample.verilog.txt":[94124,4124],"./sample.vue.txt":[10310,310],"./sample.xml.txt":[49294,9294],"./sample.yaml.txt":[89896,9896]};function l(t){if(!s.o(a,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=a[t],l=e[0];return Promise.all(e.slice(1).map(s.e)).then((()=>s(l)))}l.keys=()=>Object.keys(a),l.id=70620,t.exports=l}}]); +//# sourceMappingURL=6052.9de5ce94.chunk.js.map \ No newline at end of file diff --git a/static/js/6052.9de5ce94.chunk.js.map b/static/js/6052.9de5ce94.chunk.js.map new file mode 100644 index 000000000..2631b163e --- /dev/null +++ b/static/js/6052.9de5ce94.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6052.9de5ce94.chunk.js","mappings":"2IAEO,MAAMA,EAAcC,EAAAA,GAAOC,IAAGC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA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DZ,SAASG,IAAyD,IAAhDgC,EAAmCM,UAAAJ,OAAA,QAAAK,IAAAD,UAAA,GAAAA,UAAA,GAAG,QAC7D,MAAME,EAAOC,SAASC,gBAAgBC,aAAa,oBAC5C5C,EAAO6C,IAAYzC,EAAAA,EAAAA,UAAiD,SAATqC,EAAkB,OAASR,GAO7F,OANA1B,EAAAA,EAAAA,YAAU,KACRsC,EAAsE,SAA7DH,SAASC,gBAAgBC,aAAa,mBAAgC,OAAS,SACxFF,SAASI,iBAAiB,qBAAsBC,IAC9CF,EAASE,EAAEC,OAAOC,YAA6C,GAC/D,GACD,IACI,CAAEjD,QAAO6C,WAClB,C,kBCbA,IAAIb,EAAM,CACT,oBAAqB,CACpB,MACA,MAED,mBAAoB,CACnB,KACA,MAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,mBAAoB,CACnB,MACA,KAED,qBAAsB,CACrB,MACA,KAED,yBAA0B,CACzB,MACA,MAED,iBAAkB,CACjB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,uBAAwB,CACvB,KACA,MAED,4BAA6B,CAC5B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,mBAAoB,CACnB,OAED,oBAAqB,CACpB,MACA,MAED,0BAA2B,CAC1B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,2BAA4B,CAC3B,MACA,MAED,sBAAuB,CACtB,MACA,MAED,kBAAmB,CAClB,OAED,uBAAwB,CACvB,MACA,MAED,0BAA2B,CAC1B,KACA,MAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,OAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,OAED,0BAA2B,CAC1B,OAED,oBAAqB,CACpB,OAED,mBAAoB,CACnB,OAED,qBAAsB,CACrB,MACA,MAED,sBAAuB,CACtB,MACA,KAED,oBAAqB,CACpB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,0BAA2B,CAC1B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,wBAAyB,CACxB,OAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,OAED,qBAAsB,CACrB,MACA,MAED,2BAA4B,CAC3B,KACA,MAED,sBAAuB,CACtB,MACA,MAED,yBAA0B,CACzB,KACA,MAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,mBAAoB,CACnB,OAED,mBAAoB,CACnB,MACA,MAED,yBAA0B,CACzB,MACA,KAED,wBAAyB,CACxB,MACA,KAED,0BAA2B,CAC1B,KACA,MAED,0BAA2B,CAC1B,MACA,MAED,qBAAsB,CACrB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MAED,sBAAuB,CACtB,MACA,MAED,iBAAkB,CACjB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,gCAAiC,CAChC,MACA,MAED,oBAAqB,CACpB,MACA,MAED,oBAAqB,CACpB,OAED,kBAAmB,CAClB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,sBAAuB,CACtB,MACA,KAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,OAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,sBAAuB,CACtB,MACA,KAED,qBAAsB,CACrB,OAED,6BAA8B,CAC7B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,MACA,MAED,mBAAoB,CACnB,OAED,oBAAqB,CACpB,MACA,MAED,0BAA2B,CAC1B,OAED,kBAAmB,CAClB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,uBAAwB,CACvB,MACA,MAED,mBAAoB,CACnB,MACA,KAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,MACA,OAGF,SAASkB,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAErB,EAAKmB,GAC9B,OAAOG,QAAQC,UAAU7C,MAAK,KAC7B,IAAIqC,EAAI,IAAIS,MAAM,uBAAyBL,EAAM,KAEjD,MADAJ,EAAEU,KAAO,mBACHV,CAAC,IAIT,IAAIW,EAAM1B,EAAImB,GAAMQ,EAAKD,EAAI,GAC7B,OAAOJ,QAAQM,IAAIF,EAAIG,MAAM,GAAG7B,IAAIoB,EAAoBL,IAAIrC,MAAK,IACzD0C,EAAoBO,IAE7B,CACAT,EAAoBY,KAAO,IAAOC,OAAOD,KAAK9B,GAC9CkB,EAAoBS,GAAK,MACzBK,EAAOC,QAAUf,C","sources":["pages/extensions/index.tsx","pages/extensions/langs/index.tsx","utils/useTheme.tsx","../../node_modules/code-example/txt|lazy|/^/.//sample/..*/.txt$/|groupOptions: {}|namespace object"],"sourcesContent":["import styled from 'styled-components';\n\nexport const PageWarpper = styled.div`\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n`;\n\nexport const Content = styled.div`\n display: flex;\n flex: 1;\n`;\n\nexport const Extensions = () => {};\n","import type { FC, PropsWithChildren } from 'react';\nimport { useEffect, useState } from 'react';\nimport { langNames, LanguageName, loadLanguage } from '@uiw/codemirror-extensions-langs';\nimport CodeMirror from '@uiw/react-codemirror';\nimport { Preview } from '../../theme/Preview';\nimport styled from 'styled-components';\nimport { useTheme } from '../../../utils/useTheme';\nimport { PageWarpper } from '..';\n\nconst Toolbar = styled.div`\n padding-bottom: 32px;\n`;\n\nexport const LangsExample: FC> = (props) => {\n const { theme } = useTheme();\n\n const [language, setLanguage] = useState('markdown');\n const [source, setSource] = useState(props.source || '');\n\n useEffect(() => {\n if (language) {\n import(`code-example/txt/sample.${language.toLocaleLowerCase()}.txt`)\n .then((data) => {\n setSource(data.default);\n })\n .catch((err) => {\n setSource('');\n });\n }\n }, [language]);\n\n return (\n \n \n \n \n   Total: {langNames.length}\n \n \n );\n};\n\nexport const Component = () => {\n return (\n import('@uiw/codemirror-extensions-langs/README.md')}>\n \n \n );\n};\n","import { useEffect, useState } from 'react';\nimport { ReactCodeMirrorProps } from '@uiw/react-codemirror';\n\nexport function useTheme(name: ReactCodeMirrorProps['theme'] = 'light') {\n const dark = document.documentElement.getAttribute('data-color-mode');\n const [theme, setTheme] = useState(dark === 'dark' ? 'dark' : name);\n useEffect(() => {\n setTheme(document.documentElement.getAttribute('data-color-mode') === 'dark' ? 'dark' : 'light');\n document.addEventListener('colorschemechange', (e) => {\n setTheme(e.detail.colorScheme as ReactCodeMirrorProps['theme']);\n });\n }, []);\n return { theme, setTheme };\n}\n","var map = {\n\t\"./sample.abap.txt\": [\n\t\t86653,\n\t\t6653\n\t],\n\t\"./sample.aes.txt\": [\n\t\t9547,\n\t\t9547\n\t],\n\t\"./sample.apex.txt\": [\n\t\t39365,\n\t\t9365\n\t],\n\t\"./sample.azcli.txt\": [\n\t\t87795,\n\t\t7795\n\t],\n\t\"./sample.bat.txt\": [\n\t\t20470,\n\t\t470\n\t],\n\t\"./sample.bicep.txt\": [\n\t\t10803,\n\t\t803\n\t],\n\t\"./sample.brainfuck.txt\": [\n\t\t78465,\n\t\t8465\n\t],\n\t\"./sample.c.txt\": [\n\t\t86124,\n\t\t6124\n\t],\n\t\"./sample.cameligo.txt\": [\n\t\t64286,\n\t\t4286\n\t],\n\t\"./sample.clike.txt\": [\n\t\t25034,\n\t\t5034\n\t],\n\t\"./sample.clojure.txt\": [\n\t\t6268,\n\t\t6268\n\t],\n\t\"./sample.coffeescript.txt\": [\n\t\t35164,\n\t\t5164\n\t],\n\t\"./sample.cpp.txt\": [\n\t\t78410,\n\t\t8410\n\t],\n\t\"./sample.csharp.txt\": [\n\t\t57511,\n\t\t7511\n\t],\n\t\"./sample.csp.txt\": [\n\t\t55541,\n\t\t5541\n\t],\n\t\"./sample.css.txt\": [\n\t\t80088\n\t],\n\t\"./sample.dart.txt\": [\n\t\t84661,\n\t\t4661\n\t],\n\t\"./sample.dockerfile.txt\": [\n\t\t24593,\n\t\t4593\n\t],\n\t\"./sample.ecl.txt\": [\n\t\t83733,\n\t\t3733\n\t],\n\t\"./sample.elixir.txt\": [\n\t\t84890,\n\t\t4890\n\t],\n\t\"./sample.erlang.txt\": [\n\t\t48453,\n\t\t8453\n\t],\n\t\"./sample.flow9.txt\": [\n\t\t97626,\n\t\t7626\n\t],\n\t\"./sample.freemarker2.txt\": [\n\t\t33498,\n\t\t3498\n\t],\n\t\"./sample.fsharp.txt\": [\n\t\t96787,\n\t\t6787\n\t],\n\t\"./sample.go.txt\": [\n\t\t11200\n\t],\n\t\"./sample.graphql.txt\": [\n\t\t11093,\n\t\t1093\n\t],\n\t\"./sample.handlebars.txt\": [\n\t\t8884,\n\t\t8884\n\t],\n\t\"./sample.hcl.txt\": [\n\t\t64166,\n\t\t4166\n\t],\n\t\"./sample.html.txt\": [\n\t\t90348\n\t],\n\t\"./sample.ini.txt\": [\n\t\t71958,\n\t\t1958\n\t],\n\t\"./sample.java.txt\": [\n\t\t73486\n\t],\n\t\"./sample.javascript.txt\": [\n\t\t11039\n\t],\n\t\"./sample.json.txt\": [\n\t\t20230\n\t],\n\t\"./sample.jsx.txt\": [\n\t\t33528\n\t],\n\t\"./sample.julia.txt\": [\n\t\t47610,\n\t\t7610\n\t],\n\t\"./sample.kotlin.txt\": [\n\t\t90671,\n\t\t671\n\t],\n\t\"./sample.less.txt\": [\n\t\t68152,\n\t\t8152\n\t],\n\t\"./sample.lex.txt\": [\n\t\t43787,\n\t\t3787\n\t],\n\t\"./sample.lexon.txt\": [\n\t\t81033,\n\t\t1033\n\t],\n\t\"./sample.liquid.txt\": [\n\t\t24905,\n\t\t4905\n\t],\n\t\"./sample.livescript.txt\": [\n\t\t41108,\n\t\t1108\n\t],\n\t\"./sample.lua.txt\": [\n\t\t28660,\n\t\t8660\n\t],\n\t\"./sample.m3.txt\": [\n\t\t27695,\n\t\t7695\n\t],\n\t\"./sample.markdown.txt\": [\n\t\t79770\n\t],\n\t\"./sample.mips.txt\": [\n\t\t55942,\n\t\t5942\n\t],\n\t\"./sample.msdax.txt\": [\n\t\t93087,\n\t\t3087\n\t],\n\t\"./sample.mysql.txt\": [\n\t\t55718\n\t],\n\t\"./sample.nginx.txt\": [\n\t\t64272,\n\t\t4272\n\t],\n\t\"./sample.objective-c.txt\": [\n\t\t6401,\n\t\t6401\n\t],\n\t\"./sample.pascal.txt\": [\n\t\t99476,\n\t\t9476\n\t],\n\t\"./sample.pascaligo.txt\": [\n\t\t8569,\n\t\t8569\n\t],\n\t\"./sample.perl.txt\": [\n\t\t96466,\n\t\t6466\n\t],\n\t\"./sample.pgsql.txt\": [\n\t\t78031,\n\t\t8031\n\t],\n\t\"./sample.php.txt\": [\n\t\t17995\n\t],\n\t\"./sample.pla.txt\": [\n\t\t69321,\n\t\t9321\n\t],\n\t\"./sample.plaintext.txt\": [\n\t\t10602,\n\t\t602\n\t],\n\t\"./sample.postiats.txt\": [\n\t\t10428,\n\t\t428\n\t],\n\t\"./sample.powerquery.txt\": [\n\t\t6580,\n\t\t6580\n\t],\n\t\"./sample.powershell.txt\": [\n\t\t79336,\n\t\t9336\n\t],\n\t\"./sample.proto.txt\": [\n\t\t81600,\n\t\t1600\n\t],\n\t\"./sample.pug.txt\": [\n\t\t63834,\n\t\t3834\n\t],\n\t\"./sample.python.txt\": [\n\t\t2223\n\t],\n\t\"./sample.qsharp.txt\": [\n\t\t24668,\n\t\t4668\n\t],\n\t\"./sample.r.txt\": [\n\t\t74199,\n\t\t4199\n\t],\n\t\"./sample.razor.txt\": [\n\t\t91876,\n\t\t1876\n\t],\n\t\"./sample.redis.txt\": [\n\t\t13368,\n\t\t3368\n\t],\n\t\"./sample.redshift.txt\": [\n\t\t23969,\n\t\t3969\n\t],\n\t\"./sample.restructuredtext.txt\": [\n\t\t76203,\n\t\t6203\n\t],\n\t\"./sample.ruby.txt\": [\n\t\t53602,\n\t\t3602\n\t],\n\t\"./sample.rust.txt\": [\n\t\t74922\n\t],\n\t\"./sample.sb.txt\": [\n\t\t16365,\n\t\t6365\n\t],\n\t\"./sample.scala.txt\": [\n\t\t15194,\n\t\t5194\n\t],\n\t\"./sample.scheme.txt\": [\n\t\t80721,\n\t\t721\n\t],\n\t\"./sample.scss.txt\": [\n\t\t14695,\n\t\t4695\n\t],\n\t\"./sample.shell.txt\": [\n\t\t69512\n\t],\n\t\"./sample.sol.txt\": [\n\t\t71419,\n\t\t1419\n\t],\n\t\"./sample.sparql.txt\": [\n\t\t99308,\n\t\t9308\n\t],\n\t\"./sample.sql.txt\": [\n\t\t49347,\n\t\t9347\n\t],\n\t\"./sample.st.txt\": [\n\t\t66488,\n\t\t6488\n\t],\n\t\"./sample.stylus.txt\": [\n\t\t10877,\n\t\t877\n\t],\n\t\"./sample.swift.txt\": [\n\t\t31027\n\t],\n\t\"./sample.systemverilog.txt\": [\n\t\t84887,\n\t\t4887\n\t],\n\t\"./sample.tcl.txt\": [\n\t\t46636,\n\t\t6636\n\t],\n\t\"./sample.toml.txt\": [\n\t\t32980,\n\t\t2980\n\t],\n\t\"./sample.tsx.txt\": [\n\t\t17251\n\t],\n\t\"./sample.twig.txt\": [\n\t\t31635,\n\t\t1635\n\t],\n\t\"./sample.typescript.txt\": [\n\t\t53992\n\t],\n\t\"./sample.vb.txt\": [\n\t\t44187,\n\t\t4187\n\t],\n\t\"./sample.vbscript.txt\": [\n\t\t19200,\n\t\t9200\n\t],\n\t\"./sample.verilog.txt\": [\n\t\t94124,\n\t\t4124\n\t],\n\t\"./sample.vue.txt\": [\n\t\t10310,\n\t\t310\n\t],\n\t\"./sample.xml.txt\": [\n\t\t49294,\n\t\t9294\n\t],\n\t\"./sample.yaml.txt\": [\n\t\t89896,\n\t\t9896\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 70620;\nmodule.exports = webpackAsyncContext;"],"names":["PageWarpper","styled","div","_templateObject","_taggedTemplateLiteral","_templateObject2","Toolbar","LangsExample","props","theme","useTheme","language","setLanguage","useState","source","setSource","useEffect","concat","toLocaleLowerCase","then","data","default","catch","err","_jsxs","children","_jsx","CodeMirror","value","height","style","margin","extensions","loadLanguage","filter","Boolean","onChange","evn","target","langNames","sort","map","name","idx","length","Component","Preview","path","arguments","undefined","dark","document","documentElement","getAttribute","setTheme","addEventListener","e","detail","colorScheme","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","Error","code","ids","id","all","slice","keys","Object","module","exports"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6124.db037c9b.chunk.js b/static/js/6124.db037c9b.chunk.js new file mode 100644 index 000000000..08e495d58 --- /dev/null +++ b/static/js/6124.db037c9b.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6124],{86124:(n,e,t)=>{t.r(e),t.d(e,{default:()=>r});const r='// Copyright (c) Microsoft. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full\n// license information.\n\n/*\n * COMMAND LINE: -Ox -Gz -YX -UPROTOTYPES_REQUIRED\n */\n\n#pragma warning(disable : 4532)\n#pragma warning(disable : 4702)\n\n#if defined(_WIN32)\n\n#if defined(_M_SH)\n#define WIN_CE\n#endif\n\n#if defined(_M_AMD64)\n#define NEST_IN_FINALLY /* allow when __try nested in __finally OK */\n#endif\n\n#define NTSTATUS LONG\n#define EXCEPTION_NESTED_CALL 0x10\n#define RtlRaiseStatus(x) RaiseException((x), 0, 0, NULL)\n#define RtlRaiseException(x) \\\n RaiseException((x)->ExceptionCode, (x)->ExceptionFlags, \\\n (x)->NumberParameters, (x)->ExceptionInformation)\n#define IN\n#define OUT\n#if !(defined(_M_IA64) || defined(_M_ALPHA) || defined(_M_PPC) || \\\n defined(_M_AMD64) || defined(_M_ARM) || defined(_M_ARM64))\n#define i386 1\n#endif\n#define try __try\n#define except __except\n#define finally __finally\n#define leave __leave\n\n#endif\n\n#define WIN32_LEAN_AND_MEAN\n\n#include "stdio.h"\n#if defined(_M_IA64) || defined(_M_ALPHA) || defined(_M_PPC) || \\\n defined(_M_AMD64) || defined(_M_ARM) || defined(_M_ARM64)\n#include "setjmpex.h"\n#else\n#include "setjmp.h"\n#endif\n#include "float.h"\n#include "windows.h"\n#include "math.h"\n\n#if !defined(STATUS_SUCCESS)\n#define STATUS_SUCCESS 0\n#endif\n#if !defined(STATUS_UNSUCCESSFUL)\n#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)\n#endif\n\n//\n// Define switch constants.\n//\n\n#define BLUE 0\n#define RED 1\n\n//\n// Define function prototypes.\n//\n\nVOID addtwo(IN LONG First, IN LONG Second, IN PLONG Place);\n\nVOID bar1(IN NTSTATUS Status, IN PLONG Counter);\n\nVOID bar2(IN PLONG BlackHole, IN PLONG BadAddress, IN PLONG Counter);\n\nVOID dojump(IN jmp_buf JumpBuffer, IN PLONG Counter);\n\nLONG Echo(IN LONG Value);\n\n#if !defined(WIN_CE) // return through finally not allowed on WinCE\nVOID eret(IN NTSTATUS Status, IN PLONG Counter);\n#endif\n\nVOID except1(IN PLONG Counter);\n\nULONG\nexcept2(IN PEXCEPTION_POINTERS ExceptionPointers, IN PLONG Counter);\n\nULONG\nexcept3(IN PEXCEPTION_POINTERS ExceptionPointers, IN PLONG Counter);\n\nVOID foo1(IN NTSTATUS Status);\n\nVOID foo2(IN PLONG BlackHole, IN PLONG BadAddress);\n\n#if !defined(WIN_CE) // return from finally not allowed on WinCE\nVOID fret(IN PLONG Counter);\n#endif\n\nBOOLEAN\nTkm(VOID);\n\nVOID Test61Part2(IN OUT PULONG Counter);\n\ndouble SquareDouble(IN double op);\n\nDECLSPEC_NOINLINE\nULONG\nPgFilter(VOID)\n\n{\n\n printf("filter entered...");\n return EXCEPTION_EXECUTE_HANDLER;\n}\n\n#pragma warning(push)\n#pragma warning(disable : 4532)\n\nVOID PgTest69(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 1) {\n *State += 1;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 1) == 1) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\n if (*State != 2) {\n *Fault += 1;\n }\n }\n\n return;\n}\n\nVOID PgTest70(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 2) {\n PgFilter();\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 2) == 2) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n\n return;\n}\n\nVOID PgTest71(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 3) {\n *State += 3;\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 6) {\n *State += 3;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 3) == 3) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n\n return;\n}\n\nVOID PgTest72(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 4) {\n *State += 4;\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 8) {\n *State += 4;\n PgFilter();\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 4) == 4) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n\n return;\n}\n\nVOID PgTest73(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 5) {\n *State += 5;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 10) {\n *State += 5;\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 5) == 5) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n\n return;\n}\n\nVOID PgTest74(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 6) {\n *State += 6;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 12) {\n *State += 6;\n PgFilter();\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 6) == 6) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n\n return;\n}\n\nVOID PgTest75(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 7) {\n *State += 7;\n *Fault += 1;\n\n } else {\n *State += 10;\n }\n }\n }\n }\n except(((*State += 7) == 7) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 28) {\n *State += 7;\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 7) == 28) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n\n return;\n}\n\nVOID PgTest76(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 8) {\n *State += 8;\n *Fault += 1;\n\n } else {\n *State += 10;\n }\n }\n }\n }\n except(((*State += 8) == 8) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 32) {\n *State += 8;\n PgFilter();\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 8) == 32) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n\n return;\n}\n\nVOID PgTest77(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 9) {\n *State += 9;\n *Fault += 1;\n\n } else {\n *State += 10;\n }\n }\n }\n }\n except(((*State += 9) == 9) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 36) {\n *State += 9;\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 9) == 36) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n\n return;\n}\n\nVOID PgTest78(IN PLONG State, IN PLONG Fault)\n\n{\n\n try {\n try {\n try {\n try {\n *Fault += 1;\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 10) {\n *State += 10;\n PgFilter();\n *Fault += 1;\n\n } else {\n *State += 10;\n }\n }\n }\n }\n except(((*State += 10) == 10) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n }\n finally {\n if (AbnormalTermination()) {\n if (*State == 40) {\n *State += 10;\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n except(((*State += 10) == 40) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n\n return;\n}\n\n#pragma warning(pop)\n\nVOID Test79(PLONG Counter, PLONG Fault)\n\n{\n\n try {\n try {\n try {\n *Fault += 1;\n }\n finally {\n printf("finally 1...");\n *Fault += 1;\n }\n }\n finally { printf("finally 2..."); }\n }\n except(*Counter += 1, printf("filter 1..."), EXCEPTION_CONTINUE_SEARCH) {}\n\n return;\n}\n\nULONG G;\n\nULONG\nTest80(VOID)\n\n{\n\n G = 1;\n try {\n while (G) {\n try {\n if (G == 10) {\n return 1;\n }\n\n if (G == 1) {\n continue;\n }\n }\n finally { G = 0; }\n }\n }\n finally { G = 10; }\n\n return 0;\n}\n\nvoid Test81(int *pCounter) {\n volatile char *AvPtr = NULL;\n\n __try {\n __try { *AvPtr = \'\\0\'; }\n __except(EXCEPTION_EXECUTE_HANDLER) { __leave; }\n }\n __finally {\n printf("in finally ");\n *pCounter += 1;\n }\n return;\n}\n\nDECLSPEC_NOINLINE\nVOID Test82Foo(VOID)\n\n{\n *(volatile int *)0 = 0;\n}\n\nVOID Test82(__inout PLONG Counter)\n\n{\n\n int retval = 1;\n\n __try {\n __try { Test82Foo(); }\n __finally {\n switch (*Counter) {\n case 0:\n printf("something failed!\\n");\n retval = 6;\n break;\n\n case 1:\n retval = 0;\n break;\n\n case 2:\n printf("how did you get here?\\n");\n retval = 2;\n break;\n\n case 3:\n printf("what?!?\\n");\n retval = 3;\n break;\n\n case 4:\n printf("not correct\\n");\n retval = 4;\n break;\n\n case 5:\n printf("error!\\n");\n retval = 5;\n break;\n }\n }\n }\n __except(1){}\n\n *Counter = retval;\n return;\n}\n\nLONG Test83(VOID)\n\n{\n\n G = 1;\n try {\n try {\n while (G) {\n try {\n if (G == 10) {\n return 1;\n }\n\n if (G == 1) {\n continue;\n }\n }\n finally { G = 0; }\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { leave; }\n }\n finally { G = 10; }\n\n return 0;\n}\n\nDECLSPEC_NOINLINE\nVOID Test84(_Inout_ PLONG Counter)\n\n{\n volatile int *Fault = 0;\n\n try {\n try {\n *Fault += 1;\n }\n except(EXCEPTION_EXECUTE_HANDLER) {\n try {\n return;\n }\n finally { *Counter += 1; }\n }\n }\n finally {\n\n if (AbnormalTermination()) {\n *Counter += 1;\n }\n }\n\n return;\n}\n\nDECLSPEC_NOINLINE\nLONG Test85(_Inout_ PLONG Counter)\n\n{\n volatile int *Fault = 0;\n\n G = 1;\n try {\n try {\n try {\n while (G) {\n try {\n try {\n if (G == 10) {\n return 1;\n }\n try {\n *Counter += 1;\n }\n except(EXCEPTION_EXECUTE_HANDLER) {}\n\n if (G == 1) {\n continue;\n }\n }\n finally {\n G = 0;\n *Counter += 1;\n *Fault += 1;\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) {\n *Counter += 1;\n leave;\n }\n }\n }\n finally {\n G = 10;\n *Counter += 1;\n *Fault += 1;\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { *Counter += 1; }\n *Counter += 1;\n }\n finally { *Counter += 1; }\n return 1;\n}\n\nDECLSPEC_NOINLINE\nVOID Test86(_Inout_ PLONG Counter)\n\n{\n volatile int *Fault = 0;\n\n try {\n try {\n try {\n try {\n try {\n try {\n *Fault += 1;\n }\n except(printf("Filter1 %d..", *Counter),\n EXCEPTION_EXECUTE_HANDLER) {\n try {\n printf("Handler1 %d..", *Counter);\n return;\n }\n finally {\n printf("Finally1 %d..", *Counter);\n *Counter += 1;\n }\n }\n }\n finally {\n printf("Finally2 %d..", *Counter);\n *Counter += 1;\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { leave; }\n }\n finally { *Counter += 1; }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { leave; }\n }\n finally { *Counter += 1; }\n\n return;\n}\n\nVOID Test87(_Inout_ PLONG Counter)\n\n/*++\n\nRoutine Description:\n\n This function verifies the behavior of nested exception dispatching.\n\nArguments:\n\n Counter - Supplies a pointer to the state counter.\n\nReturn Value:\n None.\n\n--*/\n\n{\n volatile int *Fault = 0;\n\n//\n// N.B. Disabled on x86 due to failing test case with handling of returns\n// in nested termination handlers on x86.\n//\n// Disabled on ARM due to failing test case with handling of abutting\n// termination handlers within an except handler.\n//\n// Disabled on AMD64 due to failing test case with handling of\n// abutting termination handlers within an except handler when a\n// non-local goto is involved.\n//\n\n#if !defined(_X86_)\n try {\n try {\n try {\n try {\n try {\n *Fault += 1;\n\n try {\n }\n finally {\n if (AbnormalTermination()) {\n *Fault += 1;\n }\n }\n }\n finally {\n\n if (AbnormalTermination()) {\n if ((*Counter += 13) == 26) {\n return;\n\n } else {\n *Fault += 1;\n }\n }\n }\n }\n finally {\n if (AbnormalTermination()) {\n *Counter += 13;\n *Fault += 1;\n }\n }\n }\n except(((*Counter += 13) == 13) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Fault += 1;\n }\n }\n except(((*Counter += 13) == 65) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n try {\n *Counter += 13;\n return;\n }\n finally {\n if (AbnormalTermination()) {\n *Counter += 13;\n goto Finish;\n }\n }\n }\n }\n finally {\n\n if (AbnormalTermination()) {\n if ((*Counter += 13) == 104) {\n goto Finish;\n }\n }\n }\n\nFinish:\n#else\n *Counter = 104;\n#endif\n\n return;\n}\n\nVOID Test88(_Inout_ PLONG Counter)\n\n{\n volatile int *Fault = 0;\n\n try {\n try {\n try {\n try {\n try {\n try {\n try {\n try {\n *Fault += 1;\n }\n except(((*Counter += 1) == 1) ? *Fault\n : EXCEPTION_CONTINUE_SEARCH) {}\n }\n except(*Counter += 1, EXCEPTION_EXECUTE_HANDLER) { *Fault += 2; }\n }\n except(*Counter += 1, EXCEPTION_CONTINUE_SEARCH) { leave; }\n }\n except(*Counter += 1, EXCEPTION_CONTINUE_SEARCH) { leave; }\n }\n except(EXCEPTION_EXECUTE_HANDLER) {}\n }\n except(EXCEPTION_EXECUTE_HANDLER) {}\n }\n except(EXCEPTION_EXECUTE_HANDLER) { leave; }\n }\n finally { *Counter += 1; }\n}\n\nint main(int argc, char *argv[])\n\n{\n\n PLONG BadAddress;\n PCHAR BadByte;\n PLONG BlackHole;\n ULONG Index1;\n ULONG Index2 = RED;\n jmp_buf JumpBuffer;\n LONG Counter;\n EXCEPTION_RECORD ExceptionRecord;\n double doubleresult;\n\n //\n // Announce start of exception test.\n //\n\n printf("Start of exception test\\n");\n\n //\n // Initialize exception record.\n //\n\n ExceptionRecord.ExceptionCode = STATUS_INTEGER_OVERFLOW;\n ExceptionRecord.ExceptionFlags = 0;\n ExceptionRecord.ExceptionRecord = NULL;\n ExceptionRecord.NumberParameters = 0;\n\n //\n // Initialize pointers.\n //\n\n BadAddress = (PLONG)NULL;\n BadByte = (PCHAR)NULL;\n BadByte += 1;\n BlackHole = &Counter;\n\n //\n // Simply try statement with a finally clause that is entered sequentially.\n //\n\n printf(" test1...");\n Counter = 0;\n try {\n Counter += 1;\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 1;\n }\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simple try statement with an exception clause that is never executed\n // because there is no exception raised in the try clause.\n //\n\n printf(" test2...");\n Counter = 0;\n try {\n Counter += 1;\n }\n except(Counter) { Counter += 1; }\n\n if (Counter != 1) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simple try statement with an exception handler that is never executed\n // because the exception expression continues execution.\n //\n\n printf(" test3...");\n Counter = 0;\n try {\n Counter -= 1;\n RtlRaiseException(&ExceptionRecord);\n }\n except(Counter) { Counter -= 1; }\n\n if (Counter != -1) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simple try statement with an exception clause that is always executed.\n //\n\n printf(" test4...");\n Counter = 0;\n try {\n Counter += 1;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n except(Counter) { Counter += 1; }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simple try statement with an exception clause that is always executed.\n //\n\n printf(" test5...");\n Counter = 0;\n try {\n Counter += 1;\n *BlackHole += *BadAddress;\n }\n except(Counter) { Counter += 1; }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simply try statement with a finally clause that is entered as the\n // result of an exception.\n //\n\n printf(" test6...");\n Counter = 0;\n try {\n try {\n Counter += 1;\n RtlRaiseException(&ExceptionRecord);\n }\n finally {\n if (abnormal_termination() != FALSE) {\n Counter += 1;\n }\n }\n }\n except(Counter) {\n if (Counter == 2) {\n Counter += 1;\n }\n }\n\n if (Counter != 3) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simply try statement with a finally clause that is entered as the\n // result of an exception.\n //\n\n printf(" test7...");\n Counter = 0;\n try {\n try {\n Counter += 1;\n *BlackHole += *BadAddress;\n }\n finally {\n if (abnormal_termination() != FALSE) {\n Counter += 1;\n }\n }\n }\n except(Counter) {\n if (Counter == 2) {\n Counter += 1;\n }\n }\n\n if (Counter != 3) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simple try that calls a function which raises an exception.\n //\n\n printf(" test8...");\n Counter = 0;\n try {\n Counter += 1;\n foo1(STATUS_ACCESS_VIOLATION);\n }\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\n ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n Counter += 1;\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simple try that calls a function which raises an exception.\n //\n\n printf(" test9...");\n Counter = 0;\n try {\n Counter += 1;\n foo2(BlackHole, BadAddress);\n }\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\n ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n Counter += 1;\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simple try that calls a function which calls a function that\n // raises an exception. The first function has a finally clause\n // that must be executed for this test to work.\n //\n\n printf(" test10...");\n Counter = 0;\n try {\n bar1(STATUS_ACCESS_VIOLATION, &Counter);\n }\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\n ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n Counter -= 1;\n }\n\n if (Counter != 98) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simple try that calls a function which calls a function that\n // raises an exception. The first function has a finally clause\n // that must be executed for this test to work.\n //\n\n printf(" test11...");\n Counter = 0;\n try {\n bar2(BlackHole, BadAddress, &Counter);\n }\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\n ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n Counter -= 1;\n }\n\n if (Counter != 98) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A try within an except\n //\n\n printf(" test12...");\n Counter = 0;\n try {\n foo1(STATUS_ACCESS_VIOLATION);\n }\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\n ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n Counter += 1;\n try {\n foo1(STATUS_SUCCESS);\n }\n except((GetExceptionCode() == STATUS_SUCCESS) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n if (Counter != 1) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded...");\n }\n\n Counter += 1;\n }\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A try within an except\n //\n\n printf(" test13...");\n Counter = 0;\n try {\n foo2(BlackHole, BadAddress);\n }\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\n ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n Counter += 1;\n try {\n foo1(STATUS_SUCCESS);\n }\n except((GetExceptionCode() == STATUS_SUCCESS) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n if (Counter != 1) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded...");\n }\n\n Counter += 1;\n }\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#if !defined(WIN_CE) // gotos from except/finally not allowed on WinCE\n //\n // A goto from an exception clause that needs to pass\n // through a finally\n //\n\n printf(" test14...");\n Counter = 0;\n try {\n try {\n foo1(STATUS_ACCESS_VIOLATION);\n }\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\n ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n Counter += 1;\n goto t9;\n }\n }\n finally { Counter += 1; }\n\nt9:\n ;\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A goto from an finally clause that needs to pass\n // through a finally\n //\n\n printf(" test15...");\n Counter = 0;\n try {\n try {\n Counter += 1;\n }\n finally {\n Counter += 1;\n goto t10;\n }\n }\n finally { Counter += 1; }\n\nt10:\n ;\n if (Counter != 3) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A goto from an exception clause that needs to pass\n // through a finally into the outer finally clause.\n //\n\n printf(" test16...");\n Counter = 0;\n try {\n try {\n try {\n Counter += 1;\n foo1(STATUS_INTEGER_OVERFLOW);\n }\n except(EXCEPTION_EXECUTE_HANDLER) {\n Counter += 1;\n goto t11;\n }\n }\n finally { Counter += 1; }\n t11:\n ;\n }\n finally { Counter += 1; }\n\n if (Counter != 4) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A goto from an finally clause that needs to pass\n // through a finally into the outer finally clause.\n //\n\n printf(" test17...");\n Counter = 0;\n try {\n try {\n Counter += 1;\n }\n finally {\n Counter += 1;\n goto t12;\n }\n t12:\n ;\n }\n finally { Counter += 1; }\n\n if (Counter != 3) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A return from an except clause\n //\n\n printf(" test18...");\n Counter = 0;\n try {\n Counter += 1;\n eret(STATUS_ACCESS_VIOLATION, &Counter);\n }\n finally { Counter += 1; }\n\n if (Counter != 4) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A return from a finally clause\n //\n\n printf(" test19...");\n Counter = 0;\n try {\n Counter += 1;\n fret(&Counter);\n }\n finally { Counter += 1; }\n\n if (Counter != 5) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif\n\n //\n // A simple set jump followed by a long jump.\n //\n\n printf(" test20...");\n Counter = 0;\n if (setjmp(JumpBuffer) == 0) {\n Counter += 1;\n longjmp(JumpBuffer, 1);\n\n } else {\n Counter += 1;\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A set jump followed by a long jump out of a finally clause that is\n // sequentially executed.\n //\n\n printf(" test21...");\n Counter = 0;\n if (setjmp(JumpBuffer) == 0) {\n try {\n Counter += 1;\n }\n finally {\n Counter += 1;\n longjmp(JumpBuffer, 1);\n }\n\n } else {\n Counter += 1;\n }\n\n if (Counter != 3) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A set jump within a try clause followed by a long jump out of a\n // finally clause that is sequentially executed.\n //\n\n printf(" test22...");\n Counter = 0;\n try {\n if (setjmp(JumpBuffer) == 0) {\n Counter += 1;\n\n } else {\n Counter += 1;\n }\n }\n finally {\n Counter += 1;\n if (Counter == 2) {\n Counter += 1;\n longjmp(JumpBuffer, 1);\n }\n }\n\n if (Counter != 5) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A set jump followed by a try/except, followed by a try/finally where\n // the try body of the try/finally raises an exception that is handled\n // by the try/excecpt which causes the try/finally to do a long jump out\n // of a finally clause. This will create a collided unwind.\n //\n\n printf(" test23...");\n Counter = 0;\n if (setjmp(JumpBuffer) == 0) {\n try {\n try {\n Counter += 1;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n finally {\n Counter += 1;\n longjmp(JumpBuffer, 1);\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\n\n } else {\n Counter += 1;\n }\n\n if (Counter != 3) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A set jump followed by a try/except, followed by a several nested\n // try/finally\'s where the inner try body of the try/finally raises an\n // exception that is handled by the try/except which causes the\n // try/finally to do a long jump out of a finally clause. This will\n // create a collided unwind.\n //\n\n printf(" test24...");\n Counter = 0;\n if (setjmp(JumpBuffer) == 0) {\n try {\n try {\n try {\n try {\n Counter += 1;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n finally { Counter += 1; }\n }\n finally {\n Counter += 1;\n longjmp(JumpBuffer, 1);\n }\n }\n finally { Counter += 1; }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\n\n } else {\n Counter += 1;\n }\n\n if (Counter != 5) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A set jump followed by a try/except, followed by a try/finally which\n // calls a subroutine which contains a try finally that raises an\n // exception that is handled to the try/except.\n //\n\n printf(" test25...");\n Counter = 0;\n if (setjmp(JumpBuffer) == 0) {\n try {\n try {\n try {\n Counter += 1;\n dojump(JumpBuffer, &Counter);\n }\n finally { Counter += 1; }\n }\n finally { Counter += 1; }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\n\n } else {\n Counter += 1;\n }\n\n if (Counter != 7) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A set jump followed by a try/except, followed by a try/finally which\n // calls a subroutine which contains a try finally that raises an\n // exception that is handled to the try/except.\n //\n\n printf(" test26...");\n Counter = 0;\n if (setjmp(JumpBuffer) == 0) {\n try {\n try {\n try {\n try {\n Counter += 1;\n dojump(JumpBuffer, &Counter);\n }\n finally { Counter += 1; }\n }\n finally {\n Counter += 1;\n longjmp(JumpBuffer, 1);\n }\n }\n finally { Counter += 1; }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\n\n } else {\n Counter += 1;\n }\n\n if (Counter != 8) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Test nested exceptions.\n //\n\n printf(" test27...");\n Counter = 0;\n try {\n try {\n Counter += 1;\n except1(&Counter);\n }\n except(except2(GetExceptionInformation(), &Counter)) { Counter += 2; }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 3; }\n\n if (Counter != 55) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Simple try that causes an integer overflow exception.\n //\n\n printf(" test28...");\n Counter = 0;\n try {\n Counter += 1;\n addtwo(0x7fff0000, 0x10000, &Counter);\n }\n except((GetExceptionCode() == STATUS_INTEGER_OVERFLOW)\n ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n Counter += 1;\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n//\n// Simple try that raises an misaligned data exception.\n//\n#if !defined(i386) && !defined(_M_IA64) && !defined(_M_AMD64) && \\\n !defined(_M_ARM) && !defined(_M_ARM64)\n printf(" test29...");\n Counter = 0;\n try {\n Counter += 1;\n foo2(BlackHole, (PLONG)BadByte);\n }\n except((GetExceptionCode() == STATUS_DATATYPE_MISALIGNMENT)\n ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n Counter += 1;\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#endif\n //\n // Continue from a try body with an exception clause in a loop.\n //\n\n printf(" test30...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n if ((Index1 & 0x1) == 0) {\n continue;\n\n } else {\n Counter += 1;\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 40; }\n\n Counter += 2;\n }\n\n if (Counter != 15) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\n //\n // Continue from a try body with an finally clause in a loop.\n //\n\n printf(" test31...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n if ((Index1 & 0x1) == 0) {\n continue;\n\n } else {\n Counter += 1;\n }\n }\n finally { Counter += 2; }\n\n Counter += 3;\n }\n\n if (Counter != 40) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif\n\n //\n // Continue from doubly nested try body with an exception clause in a\n // loop.\n //\n\n printf(" test32...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n try {\n if ((Index1 & 0x1) == 0) {\n continue;\n\n } else {\n Counter += 1;\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 10; }\n\n Counter += 2;\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 20; }\n\n Counter += 3;\n }\n\n if (Counter != 30) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\n //\n // Continue from doubly nested try body with an finally clause in a loop.\n //\n\n printf(" test33...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n try {\n if ((Index1 & 0x1) == 0) {\n continue;\n\n } else {\n Counter += 1;\n }\n }\n finally { Counter += 2; }\n\n Counter += 3;\n }\n finally { Counter += 4; }\n\n Counter += 5;\n }\n\n if (Counter != 105) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Continue from a finally clause in a loop.\n //\n\n printf(" test34...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n if ((Index1 & 0x1) == 0) {\n Counter += 1;\n }\n }\n finally {\n Counter += 2;\n continue;\n }\n\n Counter += 4;\n }\n\n if (Counter != 25) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Continue from a doubly nested finally clause in a loop.\n //\n\n printf(" test35...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n try {\n if ((Index1 & 0x1) == 0) {\n Counter += 1;\n }\n }\n finally {\n Counter += 2;\n continue;\n }\n\n Counter += 4;\n }\n finally { Counter += 5; }\n\n Counter += 6;\n }\n\n if (Counter != 75) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Continue from a doubly nested finally clause in a loop.\n //\n\n printf(" test36...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n try {\n if ((Index1 & 0x1) == 0) {\n Counter += 1;\n }\n }\n finally { Counter += 2; }\n\n Counter += 4;\n }\n finally {\n Counter += 5;\n continue;\n }\n\n Counter += 6;\n }\n\n if (Counter != 115) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif\n\n //\n // Break from a try body with an exception clause in a loop.\n //\n\n printf(" test37...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n if ((Index1 & 0x1) == 1) {\n break;\n\n } else {\n Counter += 1;\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 40; }\n\n Counter += 2;\n }\n\n if (Counter != 3) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\n //\n // Break from a try body with an finally clause in a loop.\n //\n\n printf(" test38...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n if ((Index1 & 0x1) == 1) {\n break;\n\n } else {\n Counter += 1;\n }\n }\n finally { Counter += 2; }\n\n Counter += 3;\n }\n\n if (Counter != 8) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif\n\n //\n // Break from doubly nested try body with an exception clause in a\n // loop.\n //\n\n printf(" test39...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n try {\n if ((Index1 & 0x1) == 1) {\n break;\n\n } else {\n Counter += 1;\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 10; }\n\n Counter += 2;\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 20; }\n\n Counter += 3;\n }\n\n if (Counter != 6) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\n //\n // Break from doubly nested try body with an finally clause in a loop.\n //\n\n printf(" test40...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n try {\n if ((Index1 & 0x1) == 1) {\n break;\n\n } else {\n Counter += 1;\n }\n }\n finally { Counter += 2; }\n\n Counter += 3;\n }\n finally { Counter += 4; }\n\n Counter += 5;\n }\n\n if (Counter != 21) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Break from a finally clause in a loop.\n //\n\n printf(" test41...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n if ((Index1 & 0x1) == 1) {\n Counter += 1;\n }\n }\n finally {\n Counter += 2;\n break;\n }\n\n Counter += 4;\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Break from a doubly nested finally clause in a loop.\n //\n\n printf(" test42...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n try {\n if ((Index1 & 0x1) == 1) {\n Counter += 1;\n }\n }\n finally {\n Counter += 2;\n break;\n }\n\n Counter += 4;\n }\n finally { Counter += 5; }\n\n Counter += 6;\n }\n\n if (Counter != 7) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Break from a doubly nested finally clause in a loop.\n //\n\n printf(" test43...");\n Counter = 0;\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n try {\n try {\n if ((Index1 & 0x1) == 1) {\n Counter += 1;\n }\n }\n finally { Counter += 2; }\n\n Counter += 4;\n }\n finally {\n Counter += 5;\n break;\n }\n\n Counter += 6;\n }\n\n if (Counter != 11) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif\n\n //\n // Break from a try body with an exception clause in a switch.\n //\n\n printf(" test44...");\n Counter = 0;\n Index1 = 1;\n switch (Index2) {\n case BLUE:\n Counter += 100;\n break;\n\n case RED:\n try {\n if ((Index1 & 0x1) == 1) {\n break;\n\n } else {\n Counter += 1;\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 40; }\n\n Counter += 2;\n break;\n }\n\n if (Counter != 0) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\n //\n // Break from a try body with an finally clause in a switch.\n //\n\n printf(" test45...");\n Counter = 0;\n Index1 = 1;\n switch (Index2) {\n case BLUE:\n Counter += 100;\n break;\n\n case RED:\n try {\n if ((Index1 & 0x1) == 1) {\n break;\n\n } else {\n Counter += 1;\n }\n }\n finally { Counter += 2; }\n\n Counter += 3;\n }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif\n\n //\n // Break from doubly nested try body with an exception clause in a\n // switch.\n //\n\n printf(" test46...");\n Counter = 0;\n Index1 = 1;\n switch (Index2) {\n case BLUE:\n Counter += 100;\n break;\n\n case RED:\n try {\n try {\n if ((Index1 & 0x1) == 1) {\n break;\n\n } else {\n Counter += 1;\n }\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 10; }\n\n Counter += 2;\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 20; }\n\n Counter += 3;\n }\n\n if (Counter != 0) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\n //\n // Break from doubly nested try body with an finally clause in a switch.\n //\n\n printf(" test47...");\n Counter = 0;\n Index1 = 1;\n switch (Index2) {\n case BLUE:\n Counter += 100;\n break;\n\n case RED:\n try {\n try {\n if ((Index1 & 0x1) == 1) {\n break;\n\n } else {\n Counter += 1;\n }\n }\n finally { Counter += 2; }\n\n Counter += 3;\n }\n finally { Counter += 4; }\n\n Counter += 5;\n }\n\n if (Counter != 6) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Break from a finally clause in a switch.\n //\n\n printf(" test48...");\n Counter = 0;\n Index1 = 1;\n switch (Index2) {\n case BLUE:\n Counter += 100;\n break;\n\n case RED:\n try {\n if ((Index1 & 0x1) == 1) {\n Counter += 1;\n }\n }\n finally {\n Counter += 2;\n break;\n }\n\n Counter += 4;\n }\n\n if (Counter != 3) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Break from a doubly nested finally clause in a switch.\n //\n\n printf(" test49...");\n Counter = 0;\n Index1 = 1;\n switch (Index2) {\n case BLUE:\n Counter += 100;\n break;\n\n case RED:\n try {\n try {\n if ((Index1 & 0x1) == 1) {\n Counter += 1;\n }\n }\n finally {\n Counter += 2;\n break;\n }\n\n Counter += 4;\n }\n finally { Counter += 5; }\n\n Counter += 6;\n }\n\n if (Counter != 8) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Break from a doubly nested finally clause in a switch.\n //\n\n printf(" test50...");\n Counter = 0;\n Index1 = 1;\n switch (Index2) {\n case BLUE:\n Counter += 100;\n break;\n\n case RED:\n try {\n try {\n if ((Index1 & 0x1) == 1) {\n Counter += 1;\n }\n }\n finally { Counter += 2; }\n\n Counter += 4;\n }\n finally {\n Counter += 5;\n break;\n }\n\n Counter += 6;\n }\n\n if (Counter != 12) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif\n\n //\n // Leave from an if in a simple try/finally.\n //\n\n printf(" test51...");\n Counter = 0;\n try {\n if (Echo(Counter) == Counter) {\n Counter += 3;\n leave;\n\n } else {\n Counter += 100;\n }\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n }\n }\n\n if (Counter != 8) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Leave from a loop in a simple try/finally.\n //\n\n printf(" test52...");\n Counter = 0;\n try {\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\n if (Echo(Index1) == Index1) {\n Counter += 3;\n leave;\n }\n\n Counter += 100;\n }\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n }\n }\n\n if (Counter != 8) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Leave from a switch in a simple try/finally.\n //\n\n printf(" test53...");\n Counter = 0;\n try {\n switch (Index2) {\n case BLUE:\n break;\n\n case RED:\n Counter += 3;\n leave;\n }\n\n Counter += 100;\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n }\n }\n\n if (Counter != 8) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Leave from an if in doubly nested try/finally followed by a leave\n // from an if in the outer try/finally.\n //\n\n printf(" test54...");\n Counter = 0;\n try {\n try {\n if (Echo(Counter) == Counter) {\n Counter += 3;\n leave;\n\n } else {\n Counter += 100;\n }\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n }\n }\n\n if (Echo(Counter) == Counter) {\n Counter += 3;\n leave;\n\n } else {\n Counter += 100;\n }\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n }\n }\n\n if (Counter != 16) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#if !defined(WIN_CE) // leave from finally not allowed on WinCE\n //\n // Leave from an if in doubly nested try/finally followed by a leave\n // from the finally of the outer try/finally.\n //\n\n printf(" test55...");\n Counter = 0;\n try {\n try {\n if (Echo(Counter) == Counter) {\n Counter += 3;\n leave;\n\n } else {\n Counter += 100;\n }\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n leave;\n }\n }\n\n Counter += 100;\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n }\n }\n\n if (Counter != 13) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif\n\n //\n // Try/finally within the except clause of a try/except that is always\n // executed.\n //\n\n printf(" test56...");\n Counter = 0;\n try {\n Counter += 1;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n except(Counter) {\n try {\n Counter += 3;\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n }\n }\n }\n\n if (Counter != 9) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Try/finally within the finally clause of a try/finally.\n //\n\n printf(" test57...");\n Counter = 0;\n try {\n Counter += 1;\n }\n finally {\n if (abnormal_termination() == FALSE) {\n try {\n Counter += 3;\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n }\n }\n }\n }\n\n if (Counter != 9) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Try/except within the finally clause of a try/finally.\n //\n\n printf(" test58...");\n#if !defined(NEST_IN_FINALLY)\n printf("skipped\\n");\n#else\n Counter = 0;\n try {\n Counter -= 1;\n }\n finally {\n try {\n Counter += 2;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n except(Counter) {\n try {\n Counter += 3;\n }\n finally {\n if (abnormal_termination() == FALSE) {\n Counter += 5;\n }\n }\n }\n }\n\n if (Counter != 9) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif /* def(NEST_IN_FINALLY) */\n\n //\n // Try/except within the except clause of a try/except that is always\n // executed.\n //\n\n printf(" test59...");\n Counter = 0;\n try {\n Counter += 1;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n except(Counter) {\n try {\n Counter += 3;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n except(Counter - 3) { Counter += 5; }\n }\n\n if (Counter != 9) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Try with a Try which exits the scope with a goto\n //\n\n printf(" test60...");\n Counter = 0;\n try {\n try {\n goto outside;\n }\n except(1) { Counter += 1; }\n\n outside:\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n except(1) { Counter += 3; }\n\n if (Counter != 3) {\n printf("failed, count = %d\\n", Counter);\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Try/except which gets an exception from a subfunction within\n // a try/finally which has a try/except in the finally clause\n //\n\n printf(" test61...");\n#if !defined(NEST_IN_FINALLY)\n printf("skipped\\n");\n#else\n Counter = 0;\n try {\n Test61Part2(&Counter);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 11; }\n\n if (Counter != 24) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n#endif /* def(NEST_IN_FINALLY) */\n\n //\n // Check for precision of exception on floating point\n //\n\n printf(" test62...");\n\n#if defined(i386) || defined(_M_IA64) || defined(_M_ALPHA) || defined(_M_AMD64)\n\n/* enable floating point overflow */\n#if defined(i386)\n _control87(_control87(0, 0) & ~EM_OVERFLOW, _MCW_EM);\n#else\n //\n // use portable version of _control87\n //\n _controlfp(_controlfp(0, 0) & ~EM_OVERFLOW, _MCW_EM);\n#endif\n\n Counter = 0;\n try {\n doubleresult = SquareDouble(1.7e300);\n\n try {\n doubleresult = SquareDouble(1.0);\n }\n except(1) { Counter += 3; }\n }\n except(1) { Counter += 1; }\n\n if (Counter != 1) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n/* clear up pending unmasked exceptions and restore FP control registers */\n#if defined(i386)\n _clear87();\n _control87(_control87(0, 0) | EM_OVERFLOW, 0xfffff);\n#else\n _clearfp();\n _controlfp(_controlfp(0, 0) | EM_OVERFLOW, 0xfffff);\n#endif\n\n#else\n printf("skipped\\n");\n#endif\n\n //\n // A try/finally inside a try/except where an exception is raised in the\n // try/finally.\n //\n\n printf(" test63...");\n Counter = 0;\n try {\n try {\n Counter += 1;\n }\n finally {\n Counter += 3;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n }\n except(1) { Counter += 6; }\n\n if (Counter != 10) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A try/finally inside a try/except where an exception is raised in the\n // in the try/except and the try/finally.\n //\n\n printf(" test64...");\n Counter = 0;\n try {\n try {\n Counter += 1;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n finally {\n Counter += 3;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n }\n except(1) { Counter += 6; }\n\n if (Counter != 10) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A try/finally inside a try/except where an exception is raised in the\n // try/finally.\n //\n\n printf(" test65...");\n Counter = 0;\n try {\n try {\n Counter += 1;\n }\n finally {\n Counter += 3;\n *BlackHole += *BadAddress;\n Counter += 13;\n }\n }\n except(1) { Counter += 6; }\n\n if (Counter != 10) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A try/finally inside a try/except where an exception is raised in the\n // in the try/except and the try/finally.\n //\n\n printf(" test66...");\n Counter = 0;\n try {\n try {\n Counter += 1;\n *BlackHole += *BadAddress;\n Counter += 13;\n }\n finally {\n Counter += 3;\n *BlackHole += *BadAddress;\n Counter += 13;\n }\n }\n except(1) { Counter += 6; }\n\n if (Counter != 10) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A try/finally inside a try/finally inside a try/except where an\n // exception is raised in the in the try/except and in try/finally.\n //\n\n printf(" test67...");\n try {\n try {\n *BlackHole += *BadAddress;\n }\n finally {\n try {\n Counter = 0;\n }\n finally {\n if (Counter != 0) {\n Counter += 1;\n }\n }\n\n Counter += 1;\n *BlackHole += *BadAddress;\n }\n }\n except(1) { Counter += 1; }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // A try/finally inside a try/finally inside a try/except where an\n // exception is raised in the in the try/except and in try/finally.\n //\n\n printf(" test68...");\n try {\n try {\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n finally {\n try {\n Counter = 0;\n }\n finally {\n if (Counter != 0) {\n Counter += 1;\n }\n }\n\n Counter += 1;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n }\n except(1) { Counter += 1; }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n//\n// Patch guard test 69.\n//\n\n#if defined(_AMD64_) || defined(_X86_)\n\n printf(" test69...");\n Counter = 0;\n try {\n PgTest69(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test70...");\n Counter = 0;\n try {\n PgTest70(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 2) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test71...");\n Counter = 0;\n try {\n PgTest71(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 9) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test72...");\n Counter = 0;\n try {\n PgTest72(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 12) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test73...");\n Counter = 0;\n try {\n PgTest73(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 15) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test74...");\n Counter = 0;\n try {\n PgTest74(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 18) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test75...");\n Counter = 0;\n try {\n PgTest75(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 35) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test76...");\n Counter = 0;\n try {\n PgTest76(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 40) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test77...");\n Counter = 0;\n try {\n PgTest77(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 45) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test78...");\n Counter = 0;\n try {\n PgTest78(&Counter, BadAddress);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { printf("unexpected exception..."); }\n\n if (Counter != 50) {\n printf("failed, count = %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n#else\n printf(" test69...filter entered...succeeded\\n");\n printf(" test70...filter entered...succeeded\\n");\n printf(" test71...filter entered...succeeded\\n");\n printf(" test72...filter entered...succeeded\\n");\n printf(" test73...filter entered...succeeded\\n");\n printf(" test74...filter entered...succeeded\\n");\n printf(" test75...filter entered...succeeded\\n");\n printf(" test76...filter entered...succeeded\\n");\n printf(" test77...filter entered...succeeded\\n");\n printf(" test78...filter entered...succeeded\\n");\n#endif\n\n if (LOBYTE(LOWORD(GetVersion())) < 6) {\n printf(" test79...");\n printf("filter 1...filter 2...finally 1...filter 1...filter 2...finally "\n "2...passed\\n");\n } else {\n\n printf(" test79...");\n Counter = 0;\n try {\n Test79(&Counter, BadAddress);\n }\n except(printf("filter 2..."), EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\n\n if (Counter == 3) {\n printf("passed\\n");\n\n } else {\n printf("failed %d \\n", Counter);\n }\n }\n\n printf(" test80...");\n if (Test80() != 0) {\n printf("failed\\n");\n\n } else {\n printf("passed\\n");\n }\n\n printf(" test81...");\n Counter = 0;\n Test81(&Counter);\n if (Counter != 1) {\n printf("failed %d \\n", Counter);\n\n } else {\n printf("passed\\n");\n }\n\n printf(" test82...");\n Counter = 1;\n Test82(&Counter);\n if (Counter != 0) {\n printf("failed\\n");\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test83...");\n if (Test83() != 0) {\n printf("failed\\n");\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test84...");\n Counter = 0;\n Test84(&Counter);\n if (Counter != 2) {\n printf("failed\\n");\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test85...");\n Counter = 0;\n Test85(&Counter);\n if (Counter != 7) {\n printf("failed\\n");\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test86...");\n Counter = 0;\n Test86(&Counter);\n if (Counter != 4) {\n printf("failed %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test87...");\n Counter = 0;\n Test87(&Counter);\n if (Counter != 104) {\n printf("failed %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n printf(" test88...");\n Counter = 0;\n Test88(&Counter);\n if (Counter != 6) {\n printf("failed %d\\n", Counter);\n\n } else {\n printf("succeeded\\n");\n }\n\n //\n // Announce end of exception test.\n //\n\n printf("End of exception test\\n");\n return;\n}\n\n#pragma optimize("a", off)\nVOID addtwo(long First, long Second, long *Place)\n\n{\n\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n *Place = First + Second;\n return;\n}\n#pragma optimize("", on)\n\nVOID bar1(IN NTSTATUS Status, IN PLONG Counter) {\n\n try {\n foo1(Status);\n }\n finally {\n if (abnormal_termination() != FALSE) {\n *Counter = 99;\n\n } else {\n *Counter = 100;\n }\n }\n\n return;\n}\n\nVOID bar2(IN PLONG BlackHole, IN PLONG BadAddress, IN PLONG Counter) {\n\n try {\n foo2(BlackHole, BadAddress);\n }\n finally {\n if (abnormal_termination() != FALSE) {\n *Counter = 99;\n\n } else {\n *Counter = 100;\n }\n }\n\n return;\n}\n\nVOID dojump(IN jmp_buf JumpBuffer, IN PLONG Counter)\n\n{\n\n try {\n try {\n *Counter += 1;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n finally { *Counter += 1; }\n }\n finally {\n *Counter += 1;\n longjmp(JumpBuffer, 1);\n }\n}\n\n#if !defined(WIN_CE) // return through finally not allowed on WinCE\nVOID eret(IN NTSTATUS Status, IN PLONG Counter)\n\n{\n\n try {\n try {\n foo1(Status);\n }\n except((GetExceptionCode() == Status) ? EXCEPTION_EXECUTE_HANDLER\n : EXCEPTION_CONTINUE_SEARCH) {\n *Counter += 1;\n return;\n }\n }\n finally { *Counter += 1; }\n\n return;\n}\n#endif\n\nVOID except1(IN PLONG Counter)\n\n{\n\n try {\n *Counter += 5;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n except(except3(GetExceptionInformation(), Counter)) { *Counter += 7; }\n\n *Counter += 9;\n return;\n}\n\nULONG\nexcept2(IN PEXCEPTION_POINTERS ExceptionPointers, IN PLONG Counter)\n\n{\n\n PEXCEPTION_RECORD ExceptionRecord;\n\n ExceptionRecord = ExceptionPointers->ExceptionRecord;\n if ((ExceptionRecord->ExceptionCode == STATUS_UNSUCCESSFUL) &&\n ((ExceptionRecord->ExceptionFlags & EXCEPTION_NESTED_CALL) == 0)) {\n *Counter += 11;\n return EXCEPTION_EXECUTE_HANDLER;\n\n } else {\n *Counter += 13;\n return EXCEPTION_CONTINUE_SEARCH;\n }\n}\n\nULONG\nexcept3(IN PEXCEPTION_POINTERS ExceptionPointers, IN PLONG Counter)\n\n{\n\n PEXCEPTION_RECORD ExceptionRecord;\n\n ExceptionRecord = ExceptionPointers->ExceptionRecord;\n if ((ExceptionRecord->ExceptionCode == STATUS_INTEGER_OVERFLOW) &&\n ((ExceptionRecord->ExceptionFlags & EXCEPTION_NESTED_CALL) == 0)) {\n *Counter += 17;\n RtlRaiseStatus(STATUS_UNSUCCESSFUL);\n\n } else if ((ExceptionRecord->ExceptionCode == STATUS_UNSUCCESSFUL) &&\n ((ExceptionRecord->ExceptionFlags & EXCEPTION_NESTED_CALL) != 0)) {\n *Counter += 19;\n return EXCEPTION_CONTINUE_SEARCH;\n }\n\n *Counter += 23;\n return EXCEPTION_EXECUTE_HANDLER;\n}\n\nVOID foo1(IN NTSTATUS Status)\n\n{\n\n //\n // Raise exception.\n //\n\n RtlRaiseStatus(Status);\n return;\n}\n\nVOID foo2(IN PLONG BlackHole, IN PLONG BadAddress)\n\n{\n\n //\n // Raise exception.\n //\n\n *BlackHole += *BadAddress;\n return;\n}\n\n#if !defined(WIN_CE) // return from finally not allowed on WinCE\nVOID fret(IN PLONG Counter)\n\n{\n\n try {\n try {\n *Counter += 1;\n }\n finally {\n *Counter += 1;\n return;\n }\n }\n finally { *Counter += 1; }\n\n return;\n}\n#endif\n\nLONG Echo(IN LONG Value)\n\n{\n return Value;\n}\n\n#if defined(NEST_IN_FINALLY)\nVOID Test61Part2(IN OUT PULONG Counter) {\n try {\n *Counter -= 1;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n finally {\n try {\n *Counter += 2;\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\n }\n except(EXCEPTION_EXECUTE_HANDLER) { *Counter += 5; }\n *Counter += 7;\n }\n}\n#endif /* def(NEST_IN_FINALLY) */\n\ndouble SquareDouble(IN double op) {\n return exp(2.0 * log(op));\n}\n'}}]); +//# sourceMappingURL=6124.db037c9b.chunk.js.map \ No newline at end of file diff --git a/static/js/6124.db037c9b.chunk.js.map b/static/js/6124.db037c9b.chunk.js.map new file mode 100644 index 000000000..c366728f3 --- /dev/null +++ b/static/js/6124.db037c9b.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6124.db037c9b.chunk.js","mappings":"yHAAA,w1/D","sources":["../../node_modules/code-example/txt/sample.c.txt"],"sourcesContent":["export default \"// Copyright (c) Microsoft. All rights reserved.\\n// Licensed under the MIT license. See LICENSE file in the project root for full\\n// license information.\\n\\n/*\\n * COMMAND LINE: -Ox -Gz -YX -UPROTOTYPES_REQUIRED\\n */\\n\\n#pragma warning(disable : 4532)\\n#pragma warning(disable : 4702)\\n\\n#if defined(_WIN32)\\n\\n#if defined(_M_SH)\\n#define WIN_CE\\n#endif\\n\\n#if defined(_M_AMD64)\\n#define NEST_IN_FINALLY /* allow when __try nested in __finally OK */\\n#endif\\n\\n#define NTSTATUS LONG\\n#define EXCEPTION_NESTED_CALL 0x10\\n#define RtlRaiseStatus(x) RaiseException((x), 0, 0, NULL)\\n#define RtlRaiseException(x) \\\\\\n RaiseException((x)->ExceptionCode, (x)->ExceptionFlags, \\\\\\n (x)->NumberParameters, (x)->ExceptionInformation)\\n#define IN\\n#define OUT\\n#if !(defined(_M_IA64) || defined(_M_ALPHA) || defined(_M_PPC) || \\\\\\n defined(_M_AMD64) || defined(_M_ARM) || defined(_M_ARM64))\\n#define i386 1\\n#endif\\n#define try __try\\n#define except __except\\n#define finally __finally\\n#define leave __leave\\n\\n#endif\\n\\n#define WIN32_LEAN_AND_MEAN\\n\\n#include \\\"stdio.h\\\"\\n#if defined(_M_IA64) || defined(_M_ALPHA) || defined(_M_PPC) || \\\\\\n defined(_M_AMD64) || defined(_M_ARM) || defined(_M_ARM64)\\n#include \\\"setjmpex.h\\\"\\n#else\\n#include \\\"setjmp.h\\\"\\n#endif\\n#include \\\"float.h\\\"\\n#include \\\"windows.h\\\"\\n#include \\\"math.h\\\"\\n\\n#if !defined(STATUS_SUCCESS)\\n#define STATUS_SUCCESS 0\\n#endif\\n#if !defined(STATUS_UNSUCCESSFUL)\\n#define STATUS_UNSUCCESSFUL ((NTSTATUS)0xC0000001L)\\n#endif\\n\\n//\\n// Define switch constants.\\n//\\n\\n#define BLUE 0\\n#define RED 1\\n\\n//\\n// Define function prototypes.\\n//\\n\\nVOID addtwo(IN LONG First, IN LONG Second, IN PLONG Place);\\n\\nVOID bar1(IN NTSTATUS Status, IN PLONG Counter);\\n\\nVOID bar2(IN PLONG BlackHole, IN PLONG BadAddress, IN PLONG Counter);\\n\\nVOID dojump(IN jmp_buf JumpBuffer, IN PLONG Counter);\\n\\nLONG Echo(IN LONG Value);\\n\\n#if !defined(WIN_CE) // return through finally not allowed on WinCE\\nVOID eret(IN NTSTATUS Status, IN PLONG Counter);\\n#endif\\n\\nVOID except1(IN PLONG Counter);\\n\\nULONG\\nexcept2(IN PEXCEPTION_POINTERS ExceptionPointers, IN PLONG Counter);\\n\\nULONG\\nexcept3(IN PEXCEPTION_POINTERS ExceptionPointers, IN PLONG Counter);\\n\\nVOID foo1(IN NTSTATUS Status);\\n\\nVOID foo2(IN PLONG BlackHole, IN PLONG BadAddress);\\n\\n#if !defined(WIN_CE) // return from finally not allowed on WinCE\\nVOID fret(IN PLONG Counter);\\n#endif\\n\\nBOOLEAN\\nTkm(VOID);\\n\\nVOID Test61Part2(IN OUT PULONG Counter);\\n\\ndouble SquareDouble(IN double op);\\n\\nDECLSPEC_NOINLINE\\nULONG\\nPgFilter(VOID)\\n\\n{\\n\\n printf(\\\"filter entered...\\\");\\n return EXCEPTION_EXECUTE_HANDLER;\\n}\\n\\n#pragma warning(push)\\n#pragma warning(disable : 4532)\\n\\nVOID PgTest69(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 1) {\\n *State += 1;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 1) == 1) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\\n if (*State != 2) {\\n *Fault += 1;\\n }\\n }\\n\\n return;\\n}\\n\\nVOID PgTest70(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 2) {\\n PgFilter();\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 2) == 2) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n\\n return;\\n}\\n\\nVOID PgTest71(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 3) {\\n *State += 3;\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 6) {\\n *State += 3;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 3) == 3) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n\\n return;\\n}\\n\\nVOID PgTest72(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 4) {\\n *State += 4;\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 8) {\\n *State += 4;\\n PgFilter();\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 4) == 4) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n\\n return;\\n}\\n\\nVOID PgTest73(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 5) {\\n *State += 5;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 10) {\\n *State += 5;\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 5) == 5) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n\\n return;\\n}\\n\\nVOID PgTest74(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 6) {\\n *State += 6;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 12) {\\n *State += 6;\\n PgFilter();\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 6) == 6) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n\\n return;\\n}\\n\\nVOID PgTest75(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 7) {\\n *State += 7;\\n *Fault += 1;\\n\\n } else {\\n *State += 10;\\n }\\n }\\n }\\n }\\n except(((*State += 7) == 7) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 28) {\\n *State += 7;\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 7) == 28) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n\\n return;\\n}\\n\\nVOID PgTest76(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 8) {\\n *State += 8;\\n *Fault += 1;\\n\\n } else {\\n *State += 10;\\n }\\n }\\n }\\n }\\n except(((*State += 8) == 8) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 32) {\\n *State += 8;\\n PgFilter();\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 8) == 32) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n\\n return;\\n}\\n\\nVOID PgTest77(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 9) {\\n *State += 9;\\n *Fault += 1;\\n\\n } else {\\n *State += 10;\\n }\\n }\\n }\\n }\\n except(((*State += 9) == 9) ? PgFilter() : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 36) {\\n *State += 9;\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 9) == 36) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n\\n return;\\n}\\n\\nVOID PgTest78(IN PLONG State, IN PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 10) {\\n *State += 10;\\n PgFilter();\\n *Fault += 1;\\n\\n } else {\\n *State += 10;\\n }\\n }\\n }\\n }\\n except(((*State += 10) == 10) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n }\\n finally {\\n if (AbnormalTermination()) {\\n if (*State == 40) {\\n *State += 10;\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n except(((*State += 10) == 40) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n\\n return;\\n}\\n\\n#pragma warning(pop)\\n\\nVOID Test79(PLONG Counter, PLONG Fault)\\n\\n{\\n\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n finally {\\n printf(\\\"finally 1...\\\");\\n *Fault += 1;\\n }\\n }\\n finally { printf(\\\"finally 2...\\\"); }\\n }\\n except(*Counter += 1, printf(\\\"filter 1...\\\"), EXCEPTION_CONTINUE_SEARCH) {}\\n\\n return;\\n}\\n\\nULONG G;\\n\\nULONG\\nTest80(VOID)\\n\\n{\\n\\n G = 1;\\n try {\\n while (G) {\\n try {\\n if (G == 10) {\\n return 1;\\n }\\n\\n if (G == 1) {\\n continue;\\n }\\n }\\n finally { G = 0; }\\n }\\n }\\n finally { G = 10; }\\n\\n return 0;\\n}\\n\\nvoid Test81(int *pCounter) {\\n volatile char *AvPtr = NULL;\\n\\n __try {\\n __try { *AvPtr = '\\\\0'; }\\n __except(EXCEPTION_EXECUTE_HANDLER) { __leave; }\\n }\\n __finally {\\n printf(\\\"in finally \\\");\\n *pCounter += 1;\\n }\\n return;\\n}\\n\\nDECLSPEC_NOINLINE\\nVOID Test82Foo(VOID)\\n\\n{\\n *(volatile int *)0 = 0;\\n}\\n\\nVOID Test82(__inout PLONG Counter)\\n\\n{\\n\\n int retval = 1;\\n\\n __try {\\n __try { Test82Foo(); }\\n __finally {\\n switch (*Counter) {\\n case 0:\\n printf(\\\"something failed!\\\\n\\\");\\n retval = 6;\\n break;\\n\\n case 1:\\n retval = 0;\\n break;\\n\\n case 2:\\n printf(\\\"how did you get here?\\\\n\\\");\\n retval = 2;\\n break;\\n\\n case 3:\\n printf(\\\"what?!?\\\\n\\\");\\n retval = 3;\\n break;\\n\\n case 4:\\n printf(\\\"not correct\\\\n\\\");\\n retval = 4;\\n break;\\n\\n case 5:\\n printf(\\\"error!\\\\n\\\");\\n retval = 5;\\n break;\\n }\\n }\\n }\\n __except(1){}\\n\\n *Counter = retval;\\n return;\\n}\\n\\nLONG Test83(VOID)\\n\\n{\\n\\n G = 1;\\n try {\\n try {\\n while (G) {\\n try {\\n if (G == 10) {\\n return 1;\\n }\\n\\n if (G == 1) {\\n continue;\\n }\\n }\\n finally { G = 0; }\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { leave; }\\n }\\n finally { G = 10; }\\n\\n return 0;\\n}\\n\\nDECLSPEC_NOINLINE\\nVOID Test84(_Inout_ PLONG Counter)\\n\\n{\\n volatile int *Fault = 0;\\n\\n try {\\n try {\\n *Fault += 1;\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) {\\n try {\\n return;\\n }\\n finally { *Counter += 1; }\\n }\\n }\\n finally {\\n\\n if (AbnormalTermination()) {\\n *Counter += 1;\\n }\\n }\\n\\n return;\\n}\\n\\nDECLSPEC_NOINLINE\\nLONG Test85(_Inout_ PLONG Counter)\\n\\n{\\n volatile int *Fault = 0;\\n\\n G = 1;\\n try {\\n try {\\n try {\\n while (G) {\\n try {\\n try {\\n if (G == 10) {\\n return 1;\\n }\\n try {\\n *Counter += 1;\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) {}\\n\\n if (G == 1) {\\n continue;\\n }\\n }\\n finally {\\n G = 0;\\n *Counter += 1;\\n *Fault += 1;\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) {\\n *Counter += 1;\\n leave;\\n }\\n }\\n }\\n finally {\\n G = 10;\\n *Counter += 1;\\n *Fault += 1;\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { *Counter += 1; }\\n *Counter += 1;\\n }\\n finally { *Counter += 1; }\\n return 1;\\n}\\n\\nDECLSPEC_NOINLINE\\nVOID Test86(_Inout_ PLONG Counter)\\n\\n{\\n volatile int *Fault = 0;\\n\\n try {\\n try {\\n try {\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n except(printf(\\\"Filter1 %d..\\\", *Counter),\\n EXCEPTION_EXECUTE_HANDLER) {\\n try {\\n printf(\\\"Handler1 %d..\\\", *Counter);\\n return;\\n }\\n finally {\\n printf(\\\"Finally1 %d..\\\", *Counter);\\n *Counter += 1;\\n }\\n }\\n }\\n finally {\\n printf(\\\"Finally2 %d..\\\", *Counter);\\n *Counter += 1;\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { leave; }\\n }\\n finally { *Counter += 1; }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { leave; }\\n }\\n finally { *Counter += 1; }\\n\\n return;\\n}\\n\\nVOID Test87(_Inout_ PLONG Counter)\\n\\n/*++\\n\\nRoutine Description:\\n\\n This function verifies the behavior of nested exception dispatching.\\n\\nArguments:\\n\\n Counter - Supplies a pointer to the state counter.\\n\\nReturn Value:\\n None.\\n\\n--*/\\n\\n{\\n volatile int *Fault = 0;\\n\\n//\\n// N.B. Disabled on x86 due to failing test case with handling of returns\\n// in nested termination handlers on x86.\\n//\\n// Disabled on ARM due to failing test case with handling of abutting\\n// termination handlers within an except handler.\\n//\\n// Disabled on AMD64 due to failing test case with handling of\\n// abutting termination handlers within an except handler when a\\n// non-local goto is involved.\\n//\\n\\n#if !defined(_X86_)\\n try {\\n try {\\n try {\\n try {\\n try {\\n *Fault += 1;\\n\\n try {\\n }\\n finally {\\n if (AbnormalTermination()) {\\n *Fault += 1;\\n }\\n }\\n }\\n finally {\\n\\n if (AbnormalTermination()) {\\n if ((*Counter += 13) == 26) {\\n return;\\n\\n } else {\\n *Fault += 1;\\n }\\n }\\n }\\n }\\n finally {\\n if (AbnormalTermination()) {\\n *Counter += 13;\\n *Fault += 1;\\n }\\n }\\n }\\n except(((*Counter += 13) == 13) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Fault += 1;\\n }\\n }\\n except(((*Counter += 13) == 65) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n try {\\n *Counter += 13;\\n return;\\n }\\n finally {\\n if (AbnormalTermination()) {\\n *Counter += 13;\\n goto Finish;\\n }\\n }\\n }\\n }\\n finally {\\n\\n if (AbnormalTermination()) {\\n if ((*Counter += 13) == 104) {\\n goto Finish;\\n }\\n }\\n }\\n\\nFinish:\\n#else\\n *Counter = 104;\\n#endif\\n\\n return;\\n}\\n\\nVOID Test88(_Inout_ PLONG Counter)\\n\\n{\\n volatile int *Fault = 0;\\n\\n try {\\n try {\\n try {\\n try {\\n try {\\n try {\\n try {\\n try {\\n *Fault += 1;\\n }\\n except(((*Counter += 1) == 1) ? *Fault\\n : EXCEPTION_CONTINUE_SEARCH) {}\\n }\\n except(*Counter += 1, EXCEPTION_EXECUTE_HANDLER) { *Fault += 2; }\\n }\\n except(*Counter += 1, EXCEPTION_CONTINUE_SEARCH) { leave; }\\n }\\n except(*Counter += 1, EXCEPTION_CONTINUE_SEARCH) { leave; }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) {}\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) {}\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { leave; }\\n }\\n finally { *Counter += 1; }\\n}\\n\\nint main(int argc, char *argv[])\\n\\n{\\n\\n PLONG BadAddress;\\n PCHAR BadByte;\\n PLONG BlackHole;\\n ULONG Index1;\\n ULONG Index2 = RED;\\n jmp_buf JumpBuffer;\\n LONG Counter;\\n EXCEPTION_RECORD ExceptionRecord;\\n double doubleresult;\\n\\n //\\n // Announce start of exception test.\\n //\\n\\n printf(\\\"Start of exception test\\\\n\\\");\\n\\n //\\n // Initialize exception record.\\n //\\n\\n ExceptionRecord.ExceptionCode = STATUS_INTEGER_OVERFLOW;\\n ExceptionRecord.ExceptionFlags = 0;\\n ExceptionRecord.ExceptionRecord = NULL;\\n ExceptionRecord.NumberParameters = 0;\\n\\n //\\n // Initialize pointers.\\n //\\n\\n BadAddress = (PLONG)NULL;\\n BadByte = (PCHAR)NULL;\\n BadByte += 1;\\n BlackHole = &Counter;\\n\\n //\\n // Simply try statement with a finally clause that is entered sequentially.\\n //\\n\\n printf(\\\" test1...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 1;\\n }\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simple try statement with an exception clause that is never executed\\n // because there is no exception raised in the try clause.\\n //\\n\\n printf(\\\" test2...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n }\\n except(Counter) { Counter += 1; }\\n\\n if (Counter != 1) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simple try statement with an exception handler that is never executed\\n // because the exception expression continues execution.\\n //\\n\\n printf(\\\" test3...\\\");\\n Counter = 0;\\n try {\\n Counter -= 1;\\n RtlRaiseException(&ExceptionRecord);\\n }\\n except(Counter) { Counter -= 1; }\\n\\n if (Counter != -1) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simple try statement with an exception clause that is always executed.\\n //\\n\\n printf(\\\" test4...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n except(Counter) { Counter += 1; }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simple try statement with an exception clause that is always executed.\\n //\\n\\n printf(\\\" test5...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n *BlackHole += *BadAddress;\\n }\\n except(Counter) { Counter += 1; }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simply try statement with a finally clause that is entered as the\\n // result of an exception.\\n //\\n\\n printf(\\\" test6...\\\");\\n Counter = 0;\\n try {\\n try {\\n Counter += 1;\\n RtlRaiseException(&ExceptionRecord);\\n }\\n finally {\\n if (abnormal_termination() != FALSE) {\\n Counter += 1;\\n }\\n }\\n }\\n except(Counter) {\\n if (Counter == 2) {\\n Counter += 1;\\n }\\n }\\n\\n if (Counter != 3) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simply try statement with a finally clause that is entered as the\\n // result of an exception.\\n //\\n\\n printf(\\\" test7...\\\");\\n Counter = 0;\\n try {\\n try {\\n Counter += 1;\\n *BlackHole += *BadAddress;\\n }\\n finally {\\n if (abnormal_termination() != FALSE) {\\n Counter += 1;\\n }\\n }\\n }\\n except(Counter) {\\n if (Counter == 2) {\\n Counter += 1;\\n }\\n }\\n\\n if (Counter != 3) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simple try that calls a function which raises an exception.\\n //\\n\\n printf(\\\" test8...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n foo1(STATUS_ACCESS_VIOLATION);\\n }\\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\\n ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n Counter += 1;\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simple try that calls a function which raises an exception.\\n //\\n\\n printf(\\\" test9...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n foo2(BlackHole, BadAddress);\\n }\\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\\n ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n Counter += 1;\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simple try that calls a function which calls a function that\\n // raises an exception. The first function has a finally clause\\n // that must be executed for this test to work.\\n //\\n\\n printf(\\\" test10...\\\");\\n Counter = 0;\\n try {\\n bar1(STATUS_ACCESS_VIOLATION, &Counter);\\n }\\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\\n ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n Counter -= 1;\\n }\\n\\n if (Counter != 98) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simple try that calls a function which calls a function that\\n // raises an exception. The first function has a finally clause\\n // that must be executed for this test to work.\\n //\\n\\n printf(\\\" test11...\\\");\\n Counter = 0;\\n try {\\n bar2(BlackHole, BadAddress, &Counter);\\n }\\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\\n ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n Counter -= 1;\\n }\\n\\n if (Counter != 98) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A try within an except\\n //\\n\\n printf(\\\" test12...\\\");\\n Counter = 0;\\n try {\\n foo1(STATUS_ACCESS_VIOLATION);\\n }\\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\\n ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n Counter += 1;\\n try {\\n foo1(STATUS_SUCCESS);\\n }\\n except((GetExceptionCode() == STATUS_SUCCESS) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n if (Counter != 1) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded...\\\");\\n }\\n\\n Counter += 1;\\n }\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A try within an except\\n //\\n\\n printf(\\\" test13...\\\");\\n Counter = 0;\\n try {\\n foo2(BlackHole, BadAddress);\\n }\\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\\n ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n Counter += 1;\\n try {\\n foo1(STATUS_SUCCESS);\\n }\\n except((GetExceptionCode() == STATUS_SUCCESS) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n if (Counter != 1) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded...\\\");\\n }\\n\\n Counter += 1;\\n }\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#if !defined(WIN_CE) // gotos from except/finally not allowed on WinCE\\n //\\n // A goto from an exception clause that needs to pass\\n // through a finally\\n //\\n\\n printf(\\\" test14...\\\");\\n Counter = 0;\\n try {\\n try {\\n foo1(STATUS_ACCESS_VIOLATION);\\n }\\n except((GetExceptionCode() == STATUS_ACCESS_VIOLATION)\\n ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n Counter += 1;\\n goto t9;\\n }\\n }\\n finally { Counter += 1; }\\n\\nt9:\\n ;\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A goto from an finally clause that needs to pass\\n // through a finally\\n //\\n\\n printf(\\\" test15...\\\");\\n Counter = 0;\\n try {\\n try {\\n Counter += 1;\\n }\\n finally {\\n Counter += 1;\\n goto t10;\\n }\\n }\\n finally { Counter += 1; }\\n\\nt10:\\n ;\\n if (Counter != 3) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A goto from an exception clause that needs to pass\\n // through a finally into the outer finally clause.\\n //\\n\\n printf(\\\" test16...\\\");\\n Counter = 0;\\n try {\\n try {\\n try {\\n Counter += 1;\\n foo1(STATUS_INTEGER_OVERFLOW);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) {\\n Counter += 1;\\n goto t11;\\n }\\n }\\n finally { Counter += 1; }\\n t11:\\n ;\\n }\\n finally { Counter += 1; }\\n\\n if (Counter != 4) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A goto from an finally clause that needs to pass\\n // through a finally into the outer finally clause.\\n //\\n\\n printf(\\\" test17...\\\");\\n Counter = 0;\\n try {\\n try {\\n Counter += 1;\\n }\\n finally {\\n Counter += 1;\\n goto t12;\\n }\\n t12:\\n ;\\n }\\n finally { Counter += 1; }\\n\\n if (Counter != 3) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A return from an except clause\\n //\\n\\n printf(\\\" test18...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n eret(STATUS_ACCESS_VIOLATION, &Counter);\\n }\\n finally { Counter += 1; }\\n\\n if (Counter != 4) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A return from a finally clause\\n //\\n\\n printf(\\\" test19...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n fret(&Counter);\\n }\\n finally { Counter += 1; }\\n\\n if (Counter != 5) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif\\n\\n //\\n // A simple set jump followed by a long jump.\\n //\\n\\n printf(\\\" test20...\\\");\\n Counter = 0;\\n if (setjmp(JumpBuffer) == 0) {\\n Counter += 1;\\n longjmp(JumpBuffer, 1);\\n\\n } else {\\n Counter += 1;\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A set jump followed by a long jump out of a finally clause that is\\n // sequentially executed.\\n //\\n\\n printf(\\\" test21...\\\");\\n Counter = 0;\\n if (setjmp(JumpBuffer) == 0) {\\n try {\\n Counter += 1;\\n }\\n finally {\\n Counter += 1;\\n longjmp(JumpBuffer, 1);\\n }\\n\\n } else {\\n Counter += 1;\\n }\\n\\n if (Counter != 3) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A set jump within a try clause followed by a long jump out of a\\n // finally clause that is sequentially executed.\\n //\\n\\n printf(\\\" test22...\\\");\\n Counter = 0;\\n try {\\n if (setjmp(JumpBuffer) == 0) {\\n Counter += 1;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n finally {\\n Counter += 1;\\n if (Counter == 2) {\\n Counter += 1;\\n longjmp(JumpBuffer, 1);\\n }\\n }\\n\\n if (Counter != 5) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A set jump followed by a try/except, followed by a try/finally where\\n // the try body of the try/finally raises an exception that is handled\\n // by the try/excecpt which causes the try/finally to do a long jump out\\n // of a finally clause. This will create a collided unwind.\\n //\\n\\n printf(\\\" test23...\\\");\\n Counter = 0;\\n if (setjmp(JumpBuffer) == 0) {\\n try {\\n try {\\n Counter += 1;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n finally {\\n Counter += 1;\\n longjmp(JumpBuffer, 1);\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\\n\\n } else {\\n Counter += 1;\\n }\\n\\n if (Counter != 3) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A set jump followed by a try/except, followed by a several nested\\n // try/finally's where the inner try body of the try/finally raises an\\n // exception that is handled by the try/except which causes the\\n // try/finally to do a long jump out of a finally clause. This will\\n // create a collided unwind.\\n //\\n\\n printf(\\\" test24...\\\");\\n Counter = 0;\\n if (setjmp(JumpBuffer) == 0) {\\n try {\\n try {\\n try {\\n try {\\n Counter += 1;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n finally { Counter += 1; }\\n }\\n finally {\\n Counter += 1;\\n longjmp(JumpBuffer, 1);\\n }\\n }\\n finally { Counter += 1; }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\\n\\n } else {\\n Counter += 1;\\n }\\n\\n if (Counter != 5) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A set jump followed by a try/except, followed by a try/finally which\\n // calls a subroutine which contains a try finally that raises an\\n // exception that is handled to the try/except.\\n //\\n\\n printf(\\\" test25...\\\");\\n Counter = 0;\\n if (setjmp(JumpBuffer) == 0) {\\n try {\\n try {\\n try {\\n Counter += 1;\\n dojump(JumpBuffer, &Counter);\\n }\\n finally { Counter += 1; }\\n }\\n finally { Counter += 1; }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\\n\\n } else {\\n Counter += 1;\\n }\\n\\n if (Counter != 7) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A set jump followed by a try/except, followed by a try/finally which\\n // calls a subroutine which contains a try finally that raises an\\n // exception that is handled to the try/except.\\n //\\n\\n printf(\\\" test26...\\\");\\n Counter = 0;\\n if (setjmp(JumpBuffer) == 0) {\\n try {\\n try {\\n try {\\n try {\\n Counter += 1;\\n dojump(JumpBuffer, &Counter);\\n }\\n finally { Counter += 1; }\\n }\\n finally {\\n Counter += 1;\\n longjmp(JumpBuffer, 1);\\n }\\n }\\n finally { Counter += 1; }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\\n\\n } else {\\n Counter += 1;\\n }\\n\\n if (Counter != 8) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Test nested exceptions.\\n //\\n\\n printf(\\\" test27...\\\");\\n Counter = 0;\\n try {\\n try {\\n Counter += 1;\\n except1(&Counter);\\n }\\n except(except2(GetExceptionInformation(), &Counter)) { Counter += 2; }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 3; }\\n\\n if (Counter != 55) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Simple try that causes an integer overflow exception.\\n //\\n\\n printf(\\\" test28...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n addtwo(0x7fff0000, 0x10000, &Counter);\\n }\\n except((GetExceptionCode() == STATUS_INTEGER_OVERFLOW)\\n ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n Counter += 1;\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n//\\n// Simple try that raises an misaligned data exception.\\n//\\n#if !defined(i386) && !defined(_M_IA64) && !defined(_M_AMD64) && \\\\\\n !defined(_M_ARM) && !defined(_M_ARM64)\\n printf(\\\" test29...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n foo2(BlackHole, (PLONG)BadByte);\\n }\\n except((GetExceptionCode() == STATUS_DATATYPE_MISALIGNMENT)\\n ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n Counter += 1;\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#endif\\n //\\n // Continue from a try body with an exception clause in a loop.\\n //\\n\\n printf(\\\" test30...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n if ((Index1 & 0x1) == 0) {\\n continue;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 40; }\\n\\n Counter += 2;\\n }\\n\\n if (Counter != 15) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\\n //\\n // Continue from a try body with an finally clause in a loop.\\n //\\n\\n printf(\\\" test31...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n if ((Index1 & 0x1) == 0) {\\n continue;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n finally { Counter += 2; }\\n\\n Counter += 3;\\n }\\n\\n if (Counter != 40) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif\\n\\n //\\n // Continue from doubly nested try body with an exception clause in a\\n // loop.\\n //\\n\\n printf(\\\" test32...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n try {\\n if ((Index1 & 0x1) == 0) {\\n continue;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 10; }\\n\\n Counter += 2;\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 20; }\\n\\n Counter += 3;\\n }\\n\\n if (Counter != 30) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\\n //\\n // Continue from doubly nested try body with an finally clause in a loop.\\n //\\n\\n printf(\\\" test33...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n try {\\n if ((Index1 & 0x1) == 0) {\\n continue;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n finally { Counter += 2; }\\n\\n Counter += 3;\\n }\\n finally { Counter += 4; }\\n\\n Counter += 5;\\n }\\n\\n if (Counter != 105) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Continue from a finally clause in a loop.\\n //\\n\\n printf(\\\" test34...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n if ((Index1 & 0x1) == 0) {\\n Counter += 1;\\n }\\n }\\n finally {\\n Counter += 2;\\n continue;\\n }\\n\\n Counter += 4;\\n }\\n\\n if (Counter != 25) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Continue from a doubly nested finally clause in a loop.\\n //\\n\\n printf(\\\" test35...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n try {\\n if ((Index1 & 0x1) == 0) {\\n Counter += 1;\\n }\\n }\\n finally {\\n Counter += 2;\\n continue;\\n }\\n\\n Counter += 4;\\n }\\n finally { Counter += 5; }\\n\\n Counter += 6;\\n }\\n\\n if (Counter != 75) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Continue from a doubly nested finally clause in a loop.\\n //\\n\\n printf(\\\" test36...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n try {\\n if ((Index1 & 0x1) == 0) {\\n Counter += 1;\\n }\\n }\\n finally { Counter += 2; }\\n\\n Counter += 4;\\n }\\n finally {\\n Counter += 5;\\n continue;\\n }\\n\\n Counter += 6;\\n }\\n\\n if (Counter != 115) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif\\n\\n //\\n // Break from a try body with an exception clause in a loop.\\n //\\n\\n printf(\\\" test37...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n break;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 40; }\\n\\n Counter += 2;\\n }\\n\\n if (Counter != 3) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\\n //\\n // Break from a try body with an finally clause in a loop.\\n //\\n\\n printf(\\\" test38...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n break;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n finally { Counter += 2; }\\n\\n Counter += 3;\\n }\\n\\n if (Counter != 8) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif\\n\\n //\\n // Break from doubly nested try body with an exception clause in a\\n // loop.\\n //\\n\\n printf(\\\" test39...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n break;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 10; }\\n\\n Counter += 2;\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 20; }\\n\\n Counter += 3;\\n }\\n\\n if (Counter != 6) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\\n //\\n // Break from doubly nested try body with an finally clause in a loop.\\n //\\n\\n printf(\\\" test40...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n break;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n finally { Counter += 2; }\\n\\n Counter += 3;\\n }\\n finally { Counter += 4; }\\n\\n Counter += 5;\\n }\\n\\n if (Counter != 21) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Break from a finally clause in a loop.\\n //\\n\\n printf(\\\" test41...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n Counter += 1;\\n }\\n }\\n finally {\\n Counter += 2;\\n break;\\n }\\n\\n Counter += 4;\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Break from a doubly nested finally clause in a loop.\\n //\\n\\n printf(\\\" test42...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n Counter += 1;\\n }\\n }\\n finally {\\n Counter += 2;\\n break;\\n }\\n\\n Counter += 4;\\n }\\n finally { Counter += 5; }\\n\\n Counter += 6;\\n }\\n\\n if (Counter != 7) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Break from a doubly nested finally clause in a loop.\\n //\\n\\n printf(\\\" test43...\\\");\\n Counter = 0;\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n try {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n Counter += 1;\\n }\\n }\\n finally { Counter += 2; }\\n\\n Counter += 4;\\n }\\n finally {\\n Counter += 5;\\n break;\\n }\\n\\n Counter += 6;\\n }\\n\\n if (Counter != 11) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif\\n\\n //\\n // Break from a try body with an exception clause in a switch.\\n //\\n\\n printf(\\\" test44...\\\");\\n Counter = 0;\\n Index1 = 1;\\n switch (Index2) {\\n case BLUE:\\n Counter += 100;\\n break;\\n\\n case RED:\\n try {\\n if ((Index1 & 0x1) == 1) {\\n break;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 40; }\\n\\n Counter += 2;\\n break;\\n }\\n\\n if (Counter != 0) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\\n //\\n // Break from a try body with an finally clause in a switch.\\n //\\n\\n printf(\\\" test45...\\\");\\n Counter = 0;\\n Index1 = 1;\\n switch (Index2) {\\n case BLUE:\\n Counter += 100;\\n break;\\n\\n case RED:\\n try {\\n if ((Index1 & 0x1) == 1) {\\n break;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n finally { Counter += 2; }\\n\\n Counter += 3;\\n }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif\\n\\n //\\n // Break from doubly nested try body with an exception clause in a\\n // switch.\\n //\\n\\n printf(\\\" test46...\\\");\\n Counter = 0;\\n Index1 = 1;\\n switch (Index2) {\\n case BLUE:\\n Counter += 100;\\n break;\\n\\n case RED:\\n try {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n break;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 10; }\\n\\n Counter += 2;\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 20; }\\n\\n Counter += 3;\\n }\\n\\n if (Counter != 0) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#if !defined(WIN_CE) // gotos from try/finally not allowed on WinCE\\n //\\n // Break from doubly nested try body with an finally clause in a switch.\\n //\\n\\n printf(\\\" test47...\\\");\\n Counter = 0;\\n Index1 = 1;\\n switch (Index2) {\\n case BLUE:\\n Counter += 100;\\n break;\\n\\n case RED:\\n try {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n break;\\n\\n } else {\\n Counter += 1;\\n }\\n }\\n finally { Counter += 2; }\\n\\n Counter += 3;\\n }\\n finally { Counter += 4; }\\n\\n Counter += 5;\\n }\\n\\n if (Counter != 6) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Break from a finally clause in a switch.\\n //\\n\\n printf(\\\" test48...\\\");\\n Counter = 0;\\n Index1 = 1;\\n switch (Index2) {\\n case BLUE:\\n Counter += 100;\\n break;\\n\\n case RED:\\n try {\\n if ((Index1 & 0x1) == 1) {\\n Counter += 1;\\n }\\n }\\n finally {\\n Counter += 2;\\n break;\\n }\\n\\n Counter += 4;\\n }\\n\\n if (Counter != 3) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Break from a doubly nested finally clause in a switch.\\n //\\n\\n printf(\\\" test49...\\\");\\n Counter = 0;\\n Index1 = 1;\\n switch (Index2) {\\n case BLUE:\\n Counter += 100;\\n break;\\n\\n case RED:\\n try {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n Counter += 1;\\n }\\n }\\n finally {\\n Counter += 2;\\n break;\\n }\\n\\n Counter += 4;\\n }\\n finally { Counter += 5; }\\n\\n Counter += 6;\\n }\\n\\n if (Counter != 8) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Break from a doubly nested finally clause in a switch.\\n //\\n\\n printf(\\\" test50...\\\");\\n Counter = 0;\\n Index1 = 1;\\n switch (Index2) {\\n case BLUE:\\n Counter += 100;\\n break;\\n\\n case RED:\\n try {\\n try {\\n if ((Index1 & 0x1) == 1) {\\n Counter += 1;\\n }\\n }\\n finally { Counter += 2; }\\n\\n Counter += 4;\\n }\\n finally {\\n Counter += 5;\\n break;\\n }\\n\\n Counter += 6;\\n }\\n\\n if (Counter != 12) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif\\n\\n //\\n // Leave from an if in a simple try/finally.\\n //\\n\\n printf(\\\" test51...\\\");\\n Counter = 0;\\n try {\\n if (Echo(Counter) == Counter) {\\n Counter += 3;\\n leave;\\n\\n } else {\\n Counter += 100;\\n }\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n }\\n }\\n\\n if (Counter != 8) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Leave from a loop in a simple try/finally.\\n //\\n\\n printf(\\\" test52...\\\");\\n Counter = 0;\\n try {\\n for (Index1 = 0; Index1 < 10; Index1 += 1) {\\n if (Echo(Index1) == Index1) {\\n Counter += 3;\\n leave;\\n }\\n\\n Counter += 100;\\n }\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n }\\n }\\n\\n if (Counter != 8) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Leave from a switch in a simple try/finally.\\n //\\n\\n printf(\\\" test53...\\\");\\n Counter = 0;\\n try {\\n switch (Index2) {\\n case BLUE:\\n break;\\n\\n case RED:\\n Counter += 3;\\n leave;\\n }\\n\\n Counter += 100;\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n }\\n }\\n\\n if (Counter != 8) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Leave from an if in doubly nested try/finally followed by a leave\\n // from an if in the outer try/finally.\\n //\\n\\n printf(\\\" test54...\\\");\\n Counter = 0;\\n try {\\n try {\\n if (Echo(Counter) == Counter) {\\n Counter += 3;\\n leave;\\n\\n } else {\\n Counter += 100;\\n }\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n }\\n }\\n\\n if (Echo(Counter) == Counter) {\\n Counter += 3;\\n leave;\\n\\n } else {\\n Counter += 100;\\n }\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n }\\n }\\n\\n if (Counter != 16) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#if !defined(WIN_CE) // leave from finally not allowed on WinCE\\n //\\n // Leave from an if in doubly nested try/finally followed by a leave\\n // from the finally of the outer try/finally.\\n //\\n\\n printf(\\\" test55...\\\");\\n Counter = 0;\\n try {\\n try {\\n if (Echo(Counter) == Counter) {\\n Counter += 3;\\n leave;\\n\\n } else {\\n Counter += 100;\\n }\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n leave;\\n }\\n }\\n\\n Counter += 100;\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n }\\n }\\n\\n if (Counter != 13) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif\\n\\n //\\n // Try/finally within the except clause of a try/except that is always\\n // executed.\\n //\\n\\n printf(\\\" test56...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n except(Counter) {\\n try {\\n Counter += 3;\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n }\\n }\\n }\\n\\n if (Counter != 9) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Try/finally within the finally clause of a try/finally.\\n //\\n\\n printf(\\\" test57...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n try {\\n Counter += 3;\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n }\\n }\\n }\\n }\\n\\n if (Counter != 9) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Try/except within the finally clause of a try/finally.\\n //\\n\\n printf(\\\" test58...\\\");\\n#if !defined(NEST_IN_FINALLY)\\n printf(\\\"skipped\\\\n\\\");\\n#else\\n Counter = 0;\\n try {\\n Counter -= 1;\\n }\\n finally {\\n try {\\n Counter += 2;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n except(Counter) {\\n try {\\n Counter += 3;\\n }\\n finally {\\n if (abnormal_termination() == FALSE) {\\n Counter += 5;\\n }\\n }\\n }\\n }\\n\\n if (Counter != 9) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif /* def(NEST_IN_FINALLY) */\\n\\n //\\n // Try/except within the except clause of a try/except that is always\\n // executed.\\n //\\n\\n printf(\\\" test59...\\\");\\n Counter = 0;\\n try {\\n Counter += 1;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n except(Counter) {\\n try {\\n Counter += 3;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n except(Counter - 3) { Counter += 5; }\\n }\\n\\n if (Counter != 9) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Try with a Try which exits the scope with a goto\\n //\\n\\n printf(\\\" test60...\\\");\\n Counter = 0;\\n try {\\n try {\\n goto outside;\\n }\\n except(1) { Counter += 1; }\\n\\n outside:\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n except(1) { Counter += 3; }\\n\\n if (Counter != 3) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Try/except which gets an exception from a subfunction within\\n // a try/finally which has a try/except in the finally clause\\n //\\n\\n printf(\\\" test61...\\\");\\n#if !defined(NEST_IN_FINALLY)\\n printf(\\\"skipped\\\\n\\\");\\n#else\\n Counter = 0;\\n try {\\n Test61Part2(&Counter);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { Counter += 11; }\\n\\n if (Counter != 24) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n#endif /* def(NEST_IN_FINALLY) */\\n\\n //\\n // Check for precision of exception on floating point\\n //\\n\\n printf(\\\" test62...\\\");\\n\\n#if defined(i386) || defined(_M_IA64) || defined(_M_ALPHA) || defined(_M_AMD64)\\n\\n/* enable floating point overflow */\\n#if defined(i386)\\n _control87(_control87(0, 0) & ~EM_OVERFLOW, _MCW_EM);\\n#else\\n //\\n // use portable version of _control87\\n //\\n _controlfp(_controlfp(0, 0) & ~EM_OVERFLOW, _MCW_EM);\\n#endif\\n\\n Counter = 0;\\n try {\\n doubleresult = SquareDouble(1.7e300);\\n\\n try {\\n doubleresult = SquareDouble(1.0);\\n }\\n except(1) { Counter += 3; }\\n }\\n except(1) { Counter += 1; }\\n\\n if (Counter != 1) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n/* clear up pending unmasked exceptions and restore FP control registers */\\n#if defined(i386)\\n _clear87();\\n _control87(_control87(0, 0) | EM_OVERFLOW, 0xfffff);\\n#else\\n _clearfp();\\n _controlfp(_controlfp(0, 0) | EM_OVERFLOW, 0xfffff);\\n#endif\\n\\n#else\\n printf(\\\"skipped\\\\n\\\");\\n#endif\\n\\n //\\n // A try/finally inside a try/except where an exception is raised in the\\n // try/finally.\\n //\\n\\n printf(\\\" test63...\\\");\\n Counter = 0;\\n try {\\n try {\\n Counter += 1;\\n }\\n finally {\\n Counter += 3;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n }\\n except(1) { Counter += 6; }\\n\\n if (Counter != 10) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A try/finally inside a try/except where an exception is raised in the\\n // in the try/except and the try/finally.\\n //\\n\\n printf(\\\" test64...\\\");\\n Counter = 0;\\n try {\\n try {\\n Counter += 1;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n finally {\\n Counter += 3;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n }\\n except(1) { Counter += 6; }\\n\\n if (Counter != 10) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A try/finally inside a try/except where an exception is raised in the\\n // try/finally.\\n //\\n\\n printf(\\\" test65...\\\");\\n Counter = 0;\\n try {\\n try {\\n Counter += 1;\\n }\\n finally {\\n Counter += 3;\\n *BlackHole += *BadAddress;\\n Counter += 13;\\n }\\n }\\n except(1) { Counter += 6; }\\n\\n if (Counter != 10) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A try/finally inside a try/except where an exception is raised in the\\n // in the try/except and the try/finally.\\n //\\n\\n printf(\\\" test66...\\\");\\n Counter = 0;\\n try {\\n try {\\n Counter += 1;\\n *BlackHole += *BadAddress;\\n Counter += 13;\\n }\\n finally {\\n Counter += 3;\\n *BlackHole += *BadAddress;\\n Counter += 13;\\n }\\n }\\n except(1) { Counter += 6; }\\n\\n if (Counter != 10) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A try/finally inside a try/finally inside a try/except where an\\n // exception is raised in the in the try/except and in try/finally.\\n //\\n\\n printf(\\\" test67...\\\");\\n try {\\n try {\\n *BlackHole += *BadAddress;\\n }\\n finally {\\n try {\\n Counter = 0;\\n }\\n finally {\\n if (Counter != 0) {\\n Counter += 1;\\n }\\n }\\n\\n Counter += 1;\\n *BlackHole += *BadAddress;\\n }\\n }\\n except(1) { Counter += 1; }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // A try/finally inside a try/finally inside a try/except where an\\n // exception is raised in the in the try/except and in try/finally.\\n //\\n\\n printf(\\\" test68...\\\");\\n try {\\n try {\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n finally {\\n try {\\n Counter = 0;\\n }\\n finally {\\n if (Counter != 0) {\\n Counter += 1;\\n }\\n }\\n\\n Counter += 1;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n }\\n except(1) { Counter += 1; }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n//\\n// Patch guard test 69.\\n//\\n\\n#if defined(_AMD64_) || defined(_X86_)\\n\\n printf(\\\" test69...\\\");\\n Counter = 0;\\n try {\\n PgTest69(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test70...\\\");\\n Counter = 0;\\n try {\\n PgTest70(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 2) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test71...\\\");\\n Counter = 0;\\n try {\\n PgTest71(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 9) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test72...\\\");\\n Counter = 0;\\n try {\\n PgTest72(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 12) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test73...\\\");\\n Counter = 0;\\n try {\\n PgTest73(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 15) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test74...\\\");\\n Counter = 0;\\n try {\\n PgTest74(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 18) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test75...\\\");\\n Counter = 0;\\n try {\\n PgTest75(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 35) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test76...\\\");\\n Counter = 0;\\n try {\\n PgTest76(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 40) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test77...\\\");\\n Counter = 0;\\n try {\\n PgTest77(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 45) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test78...\\\");\\n Counter = 0;\\n try {\\n PgTest78(&Counter, BadAddress);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { printf(\\\"unexpected exception...\\\"); }\\n\\n if (Counter != 50) {\\n printf(\\\"failed, count = %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n#else\\n printf(\\\" test69...filter entered...succeeded\\\\n\\\");\\n printf(\\\" test70...filter entered...succeeded\\\\n\\\");\\n printf(\\\" test71...filter entered...succeeded\\\\n\\\");\\n printf(\\\" test72...filter entered...succeeded\\\\n\\\");\\n printf(\\\" test73...filter entered...succeeded\\\\n\\\");\\n printf(\\\" test74...filter entered...succeeded\\\\n\\\");\\n printf(\\\" test75...filter entered...succeeded\\\\n\\\");\\n printf(\\\" test76...filter entered...succeeded\\\\n\\\");\\n printf(\\\" test77...filter entered...succeeded\\\\n\\\");\\n printf(\\\" test78...filter entered...succeeded\\\\n\\\");\\n#endif\\n\\n if (LOBYTE(LOWORD(GetVersion())) < 6) {\\n printf(\\\" test79...\\\");\\n printf(\\\"filter 1...filter 2...finally 1...filter 1...filter 2...finally \\\"\\n \\\"2...passed\\\\n\\\");\\n } else {\\n\\n printf(\\\" test79...\\\");\\n Counter = 0;\\n try {\\n Test79(&Counter, BadAddress);\\n }\\n except(printf(\\\"filter 2...\\\"), EXCEPTION_EXECUTE_HANDLER) { Counter += 1; }\\n\\n if (Counter == 3) {\\n printf(\\\"passed\\\\n\\\");\\n\\n } else {\\n printf(\\\"failed %d \\\\n\\\", Counter);\\n }\\n }\\n\\n printf(\\\" test80...\\\");\\n if (Test80() != 0) {\\n printf(\\\"failed\\\\n\\\");\\n\\n } else {\\n printf(\\\"passed\\\\n\\\");\\n }\\n\\n printf(\\\" test81...\\\");\\n Counter = 0;\\n Test81(&Counter);\\n if (Counter != 1) {\\n printf(\\\"failed %d \\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"passed\\\\n\\\");\\n }\\n\\n printf(\\\" test82...\\\");\\n Counter = 1;\\n Test82(&Counter);\\n if (Counter != 0) {\\n printf(\\\"failed\\\\n\\\");\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test83...\\\");\\n if (Test83() != 0) {\\n printf(\\\"failed\\\\n\\\");\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test84...\\\");\\n Counter = 0;\\n Test84(&Counter);\\n if (Counter != 2) {\\n printf(\\\"failed\\\\n\\\");\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test85...\\\");\\n Counter = 0;\\n Test85(&Counter);\\n if (Counter != 7) {\\n printf(\\\"failed\\\\n\\\");\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test86...\\\");\\n Counter = 0;\\n Test86(&Counter);\\n if (Counter != 4) {\\n printf(\\\"failed %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test87...\\\");\\n Counter = 0;\\n Test87(&Counter);\\n if (Counter != 104) {\\n printf(\\\"failed %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n printf(\\\" test88...\\\");\\n Counter = 0;\\n Test88(&Counter);\\n if (Counter != 6) {\\n printf(\\\"failed %d\\\\n\\\", Counter);\\n\\n } else {\\n printf(\\\"succeeded\\\\n\\\");\\n }\\n\\n //\\n // Announce end of exception test.\\n //\\n\\n printf(\\\"End of exception test\\\\n\\\");\\n return;\\n}\\n\\n#pragma optimize(\\\"a\\\", off)\\nVOID addtwo(long First, long Second, long *Place)\\n\\n{\\n\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n *Place = First + Second;\\n return;\\n}\\n#pragma optimize(\\\"\\\", on)\\n\\nVOID bar1(IN NTSTATUS Status, IN PLONG Counter) {\\n\\n try {\\n foo1(Status);\\n }\\n finally {\\n if (abnormal_termination() != FALSE) {\\n *Counter = 99;\\n\\n } else {\\n *Counter = 100;\\n }\\n }\\n\\n return;\\n}\\n\\nVOID bar2(IN PLONG BlackHole, IN PLONG BadAddress, IN PLONG Counter) {\\n\\n try {\\n foo2(BlackHole, BadAddress);\\n }\\n finally {\\n if (abnormal_termination() != FALSE) {\\n *Counter = 99;\\n\\n } else {\\n *Counter = 100;\\n }\\n }\\n\\n return;\\n}\\n\\nVOID dojump(IN jmp_buf JumpBuffer, IN PLONG Counter)\\n\\n{\\n\\n try {\\n try {\\n *Counter += 1;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n finally { *Counter += 1; }\\n }\\n finally {\\n *Counter += 1;\\n longjmp(JumpBuffer, 1);\\n }\\n}\\n\\n#if !defined(WIN_CE) // return through finally not allowed on WinCE\\nVOID eret(IN NTSTATUS Status, IN PLONG Counter)\\n\\n{\\n\\n try {\\n try {\\n foo1(Status);\\n }\\n except((GetExceptionCode() == Status) ? EXCEPTION_EXECUTE_HANDLER\\n : EXCEPTION_CONTINUE_SEARCH) {\\n *Counter += 1;\\n return;\\n }\\n }\\n finally { *Counter += 1; }\\n\\n return;\\n}\\n#endif\\n\\nVOID except1(IN PLONG Counter)\\n\\n{\\n\\n try {\\n *Counter += 5;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n except(except3(GetExceptionInformation(), Counter)) { *Counter += 7; }\\n\\n *Counter += 9;\\n return;\\n}\\n\\nULONG\\nexcept2(IN PEXCEPTION_POINTERS ExceptionPointers, IN PLONG Counter)\\n\\n{\\n\\n PEXCEPTION_RECORD ExceptionRecord;\\n\\n ExceptionRecord = ExceptionPointers->ExceptionRecord;\\n if ((ExceptionRecord->ExceptionCode == STATUS_UNSUCCESSFUL) &&\\n ((ExceptionRecord->ExceptionFlags & EXCEPTION_NESTED_CALL) == 0)) {\\n *Counter += 11;\\n return EXCEPTION_EXECUTE_HANDLER;\\n\\n } else {\\n *Counter += 13;\\n return EXCEPTION_CONTINUE_SEARCH;\\n }\\n}\\n\\nULONG\\nexcept3(IN PEXCEPTION_POINTERS ExceptionPointers, IN PLONG Counter)\\n\\n{\\n\\n PEXCEPTION_RECORD ExceptionRecord;\\n\\n ExceptionRecord = ExceptionPointers->ExceptionRecord;\\n if ((ExceptionRecord->ExceptionCode == STATUS_INTEGER_OVERFLOW) &&\\n ((ExceptionRecord->ExceptionFlags & EXCEPTION_NESTED_CALL) == 0)) {\\n *Counter += 17;\\n RtlRaiseStatus(STATUS_UNSUCCESSFUL);\\n\\n } else if ((ExceptionRecord->ExceptionCode == STATUS_UNSUCCESSFUL) &&\\n ((ExceptionRecord->ExceptionFlags & EXCEPTION_NESTED_CALL) != 0)) {\\n *Counter += 19;\\n return EXCEPTION_CONTINUE_SEARCH;\\n }\\n\\n *Counter += 23;\\n return EXCEPTION_EXECUTE_HANDLER;\\n}\\n\\nVOID foo1(IN NTSTATUS Status)\\n\\n{\\n\\n //\\n // Raise exception.\\n //\\n\\n RtlRaiseStatus(Status);\\n return;\\n}\\n\\nVOID foo2(IN PLONG BlackHole, IN PLONG BadAddress)\\n\\n{\\n\\n //\\n // Raise exception.\\n //\\n\\n *BlackHole += *BadAddress;\\n return;\\n}\\n\\n#if !defined(WIN_CE) // return from finally not allowed on WinCE\\nVOID fret(IN PLONG Counter)\\n\\n{\\n\\n try {\\n try {\\n *Counter += 1;\\n }\\n finally {\\n *Counter += 1;\\n return;\\n }\\n }\\n finally { *Counter += 1; }\\n\\n return;\\n}\\n#endif\\n\\nLONG Echo(IN LONG Value)\\n\\n{\\n return Value;\\n}\\n\\n#if defined(NEST_IN_FINALLY)\\nVOID Test61Part2(IN OUT PULONG Counter) {\\n try {\\n *Counter -= 1;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n finally {\\n try {\\n *Counter += 2;\\n RtlRaiseStatus(STATUS_INTEGER_OVERFLOW);\\n }\\n except(EXCEPTION_EXECUTE_HANDLER) { *Counter += 5; }\\n *Counter += 7;\\n }\\n}\\n#endif /* def(NEST_IN_FINALLY) */\\n\\ndouble SquareDouble(IN double op) {\\n return exp(2.0 * log(op));\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6171.21390f86.chunk.js b/static/js/6171.21390f86.chunk.js new file mode 100644 index 000000000..b65481e3f --- /dev/null +++ b/static/js/6171.21390f86.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6171],{36171:(e,r,n)=>{n.r(r),n.d(r,{default:()=>t});const t={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Red Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-red.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-red)\n\nRed theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-red/themes/Red-color-theme.json).\n\n\n \"codemirror-theme-red\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-red --save\n```\n\n```jsx\nimport { red, redInit } from '@uiw/codemirror-theme-red';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\nexport declare const redInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const red: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { red } from '@uiw/codemirror-theme-red';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { red } from '@uiw/codemirror-theme-red';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [red, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=6171.21390f86.chunk.js.map \ No newline at end of file diff --git a/static/js/6171.21390f86.chunk.js.map b/static/js/6171.21390f86.chunk.js.map new file mode 100644 index 000000000..a85545bd4 --- /dev/null +++ b/static/js/6171.21390f86.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6171.21390f86.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,upFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/red/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Red Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-red.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-red)\\n\\nRed theme for cm6, generated from [vscode themes](https://github.com/microsoft/vscode/blob/main/extensions/theme-red/themes/Red-color-theme.json).\\n\\n\\n \\\"codemirror-theme-red\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-red --save\\n```\\n\\n```jsx\\nimport { red, redInit } from '@uiw/codemirror-theme-red';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsQuietlight: CreateThemeOptions['settings'];\\nexport declare const redInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const red: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { red } from '@uiw/codemirror-theme-red';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { red } from '@uiw/codemirror-theme-red';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [red, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6203.63546a26.chunk.js b/static/js/6203.63546a26.chunk.js new file mode 100644 index 000000000..c2f5b6ad1 --- /dev/null +++ b/static/js/6203.63546a26.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6203],{76203:(e,n,t)=>{t.r(n),t.d(n,{default:()=>a});const a="=================\nMy Project Readme\n=================\n-------------------------\nClever subtitle goes here\n-------------------------\n\nIntroduction\n============\n\nThis is an example reStructuredText document that starts at the very top\nwith a title and a sub-title. There is one primary header, Introduction.\nThere is one example subheading below.\nThe document is just plain text so it is easily readable even before\nbeing converted to HTML, man page, PDF or other formats.\n\nSubheading\n----------\n\nThe basic syntax is not that different from Markdown, but it also\nhas many more powerful features that Markdown doesn't have. We aren't\ntaking advantage of those yet though.\n\n- Bullet points\n- Are intuitive\n- And simple too\n"}}]); +//# sourceMappingURL=6203.63546a26.chunk.js.map \ No newline at end of file diff --git a/static/js/6203.63546a26.chunk.js.map b/static/js/6203.63546a26.chunk.js.map new file mode 100644 index 000000000..568ff42ea --- /dev/null +++ b/static/js/6203.63546a26.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6203.63546a26.chunk.js","mappings":"yHAAA,mvB","sources":["../../node_modules/code-example/txt/sample.restructuredtext.txt"],"sourcesContent":["export default \"=================\\nMy Project Readme\\n=================\\n-------------------------\\nClever subtitle goes here\\n-------------------------\\n\\nIntroduction\\n============\\n\\nThis is an example reStructuredText document that starts at the very top\\nwith a title and a sub-title. There is one primary header, Introduction.\\nThere is one example subheading below.\\nThe document is just plain text so it is easily readable even before\\nbeing converted to HTML, man page, PDF or other formats.\\n\\nSubheading\\n----------\\n\\nThe basic syntax is not that different from Markdown, but it also\\nhas many more powerful features that Markdown doesn't have. We aren't\\ntaking advantage of those yet though.\\n\\n- Bullet points\\n- Are intuitive\\n- And simple too\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/622.38db8228.chunk.js b/static/js/622.38db8228.chunk.js new file mode 100644 index 000000000..75af5d8d2 --- /dev/null +++ b/static/js/622.38db8228.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[622],{90622:(n,e,t)=>{t.r(e),t.d(e,{default:()=>o});const o={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# NoctisLilac Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-noctis-lilac.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-noctis-lilac)\n\nThis package implements the noctis-lilac for the CodeMirror code editor.\n\n\n \"codemirror-theme-noctis-lilac\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-noctis-lilac --save\n```\n\n```jsx\nimport { noctisLilac, noctisLilacInit } from '@uiw/codemirror-theme-noctis-lilac';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsNoctisLilac: CreateThemeOptions['settings'];\nexport declare const noctisLilacInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const noctisLilac: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { noctisLilac } from '@uiw/codemirror-theme-noctis-lilac';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { noctisLilac } from '@uiw/codemirror-theme-noctis-lilac';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [noctisLilac, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=622.38db8228.chunk.js.map \ No newline at end of file diff --git a/static/js/622.38db8228.chunk.js.map b/static/js/622.38db8228.chunk.js.map new file mode 100644 index 000000000..4f7cb2a25 --- /dev/null +++ b/static/js/622.38db8228.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/622.38db8228.chunk.js","mappings":"wHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,qvFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/noctis-lilac/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# NoctisLilac Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-noctis-lilac.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-noctis-lilac)\\n\\nThis package implements the noctis-lilac for the CodeMirror code editor.\\n\\n\\n \\\"codemirror-theme-noctis-lilac\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-noctis-lilac --save\\n```\\n\\n```jsx\\nimport { noctisLilac, noctisLilacInit } from '@uiw/codemirror-theme-noctis-lilac';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsNoctisLilac: CreateThemeOptions['settings'];\\nexport declare const noctisLilacInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const noctisLilac: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { noctisLilac } from '@uiw/codemirror-theme-noctis-lilac';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { noctisLilac } from '@uiw/codemirror-theme-noctis-lilac';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [noctisLilac, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6268.a51576e1.chunk.js b/static/js/6268.a51576e1.chunk.js new file mode 100644 index 000000000..53120ef57 --- /dev/null +++ b/static/js/6268.a51576e1.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6268],{6268:(n,e,i)=>{i.r(e),i.d(e,{default:()=>s});const s='(ns game-of-life\n "Conway\'s Game of Life, based on the work of\n Christophe Grand (http://clj-me.cgrand.net/2011/08/19/conways-game-of-life)\n and Laurent Petit (https://gist.github.com/1200343).")\n\n;;; Core game of life\'s algorithm functions\n\n(defn neighbors\n "Given a cell\'s coordinates `[x y]`, returns the coordinates of its\n neighbors."\n [[x y]]\n (for [dx [-1 0 1]\n dy (if (zero? dx)\n [-1 1]\n [-1 0 1])]\n [(+ dx x) (+ dy y)]))\n\n(defn step\n "Given a set of living `cells`, computes the new set of living cells."\n [cells]\n (set (for [[cell n] (frequencies (mapcat neighbors cells))\n :when (or (= n 3)\n (and (= n 2)\n (cells cell)))]\n cell)))\n\n;;; Utility methods for displaying game on a text terminal\n\n(defn print-grid\n "Prints a `grid` of `w` columns and `h` rows, on *out*, representing a\n step in the game."\n [grid w h]\n (doseq [x (range (inc w))\n y (range (inc h))]\n (when (= y 0) (println))\n (print (if (grid [x y])\n "[X]"\n " . "))))\n\n(defn print-grids\n "Prints a sequence of `grids` of `w` columns and `h` rows on *out*,\n representing several steps."\n [grids w h]\n (doseq [grid grids]\n (print-grid grid w h)\n (println)))\n\n;;; Launches an example grid\n\n(def grid\n "`grid` represents the initial set of living cells"\n #{[2 1] [2 2] [2 3]})\n\n(print-grids (take 3 (iterate step grid)) 5 5)'}}]); +//# sourceMappingURL=6268.a51576e1.chunk.js.map \ No newline at end of file diff --git a/static/js/6268.a51576e1.chunk.js.map b/static/js/6268.a51576e1.chunk.js.map new file mode 100644 index 000000000..a6a72ec04 --- /dev/null +++ b/static/js/6268.a51576e1.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6268.a51576e1.chunk.js","mappings":"wHAAA,s/C","sources":["../../node_modules/code-example/txt/sample.clojure.txt"],"sourcesContent":["export default \"(ns game-of-life\\n \\\"Conway's Game of Life, based on the work of\\n Christophe Grand (http://clj-me.cgrand.net/2011/08/19/conways-game-of-life)\\n and Laurent Petit (https://gist.github.com/1200343).\\\")\\n\\n;;; Core game of life's algorithm functions\\n\\n(defn neighbors\\n \\\"Given a cell's coordinates `[x y]`, returns the coordinates of its\\n neighbors.\\\"\\n [[x y]]\\n (for [dx [-1 0 1]\\n dy (if (zero? dx)\\n [-1 1]\\n [-1 0 1])]\\n [(+ dx x) (+ dy y)]))\\n\\n(defn step\\n \\\"Given a set of living `cells`, computes the new set of living cells.\\\"\\n [cells]\\n (set (for [[cell n] (frequencies (mapcat neighbors cells))\\n :when (or (= n 3)\\n (and (= n 2)\\n (cells cell)))]\\n cell)))\\n\\n;;; Utility methods for displaying game on a text terminal\\n\\n(defn print-grid\\n \\\"Prints a `grid` of `w` columns and `h` rows, on *out*, representing a\\n step in the game.\\\"\\n [grid w h]\\n (doseq [x (range (inc w))\\n y (range (inc h))]\\n (when (= y 0) (println))\\n (print (if (grid [x y])\\n \\\"[X]\\\"\\n \\\" . \\\"))))\\n\\n(defn print-grids\\n \\\"Prints a sequence of `grids` of `w` columns and `h` rows on *out*,\\n representing several steps.\\\"\\n [grids w h]\\n (doseq [grid grids]\\n (print-grid grid w h)\\n (println)))\\n\\n;;; Launches an example grid\\n\\n(def grid\\n \\\"`grid` represents the initial set of living cells\\\"\\n #{[2 1] [2 2] [2 3]})\\n\\n(print-grids (take 3 (iterate step grid)) 5 5)\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6365.0f90d1bf.chunk.js b/static/js/6365.0f90d1bf.chunk.js new file mode 100644 index 000000000..09757fad8 --- /dev/null +++ b/static/js/6365.0f90d1bf.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6365],{16365:(e,n,i)=>{i.r(n),i.d(n,{default:()=>r});const r='begin:\nTextWindow.Write("Enter a number: ")\nnum = TextWindow.ReadNumber()\nremainder = Math.Remainder(num, 2)\nIf (remainder = 0) Then\n TextWindow.WriteLine("The number is Even")\nElse\n TextWindow.WriteLine("The number is Odd")\nEndIf\nGoto begin'}}]); +//# sourceMappingURL=6365.0f90d1bf.chunk.js.map \ No newline at end of file diff --git a/static/js/6365.0f90d1bf.chunk.js.map b/static/js/6365.0f90d1bf.chunk.js.map new file mode 100644 index 000000000..3fd52b2d6 --- /dev/null +++ b/static/js/6365.0f90d1bf.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6365.0f90d1bf.chunk.js","mappings":"yHAAA,oQ","sources":["../../node_modules/code-example/txt/sample.sb.txt"],"sourcesContent":["export default \"begin:\\nTextWindow.Write(\\\"Enter a number: \\\")\\nnum = TextWindow.ReadNumber()\\nremainder = Math.Remainder(num, 2)\\nIf (remainder = 0) Then\\n TextWindow.WriteLine(\\\"The number is Even\\\")\\nElse\\n TextWindow.WriteLine(\\\"The number is Odd\\\")\\nEndIf\\nGoto begin\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6401.ca2cc062.chunk.js b/static/js/6401.ca2cc062.chunk.js new file mode 100644 index 000000000..b949ee2b3 --- /dev/null +++ b/static/js/6401.ca2cc062.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6401],{6401:(e,n,t)=>{t.r(n),t.d(n,{default:()=>i});const i='//\n// Copyright (c) Microsoft Corporation. All rights reserved.\n//\n\n#import "UseQuotes.h"\n#import \n\n/*\n Multi \n Line\n Comments \n*/\n@implementation Test\n\n- (void) applicationWillFinishLaunching:(NSNotification *)notification\n{\n}\n\n- (IBAction)onSelectInput:(id)sender\n{\n NSString* defaultDir = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0];\n \n NSOpenPanel* panel = [NSOpenPanel openPanel];\n [panel setAllowedFileTypes:[[NSArray alloc] initWithObjects:@"ipa", @"xcarchive", @"app", nil]];\n \n [panel beginWithCompletionHandler:^(NSInteger result)\n {\n if (result == NSFileHandlingPanelOKButton)\n [self.inputTextField setStringValue:[panel.URL path]];\n }];\n return YES;\n\n int hex = 0xFEF1F0F;\n float ing = 3.14;\n ing = 3.14e0;\n ing = 31.4e-2;\n}\n\n-(id) initWithParams:(id) aHandler withDeviceStateManager:(id) deviceStateManager\n{\n // add a tap gesture recognizer\n UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];\n NSMutableArray *gestureRecognizers = [NSMutableArray array];\n [gestureRecognizers addObject:tapGesture];\n [gestureRecognizers addObjectsFromArray:scnView.gestureRecognizers];\n scnView.gestureRecognizers = gestureRecognizers;\n\n return tapGesture;\n return nil;\n}\n\n@end\n'}}]); +//# sourceMappingURL=6401.ca2cc062.chunk.js.map \ No newline at end of file diff --git a/static/js/6401.ca2cc062.chunk.js.map b/static/js/6401.ca2cc062.chunk.js.map new file mode 100644 index 000000000..ce7e97271 --- /dev/null +++ b/static/js/6401.ca2cc062.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6401.ca2cc062.chunk.js","mappings":"wHAAA,47C","sources":["../../node_modules/code-example/txt/sample.objective-c.txt"],"sourcesContent":["export default \"//\\n// Copyright (c) Microsoft Corporation. All rights reserved.\\n//\\n\\n#import \\\"UseQuotes.h\\\"\\n#import \\n\\n/*\\n Multi \\n Line\\n Comments \\n*/\\n@implementation Test\\n\\n- (void) applicationWillFinishLaunching:(NSNotification *)notification\\n{\\n}\\n\\n- (IBAction)onSelectInput:(id)sender\\n{\\n NSString* defaultDir = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, true)[0];\\n \\n NSOpenPanel* panel = [NSOpenPanel openPanel];\\n [panel setAllowedFileTypes:[[NSArray alloc] initWithObjects:@\\\"ipa\\\", @\\\"xcarchive\\\", @\\\"app\\\", nil]];\\n \\n [panel beginWithCompletionHandler:^(NSInteger result)\\n {\\n if (result == NSFileHandlingPanelOKButton)\\n [self.inputTextField setStringValue:[panel.URL path]];\\n }];\\n return YES;\\n\\n int hex = 0xFEF1F0F;\\n float ing = 3.14;\\n ing = 3.14e0;\\n ing = 31.4e-2;\\n}\\n\\n-(id) initWithParams:(id) aHandler withDeviceStateManager:(id) deviceStateManager\\n{\\n // add a tap gesture recognizer\\n UITapGestureRecognizer *tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(handleTap:)];\\n NSMutableArray *gestureRecognizers = [NSMutableArray array];\\n [gestureRecognizers addObject:tapGesture];\\n [gestureRecognizers addObjectsFromArray:scnView.gestureRecognizers];\\n scnView.gestureRecognizers = gestureRecognizers;\\n\\n return tapGesture;\\n return nil;\\n}\\n\\n@end\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6450.9dac4e30.chunk.js b/static/js/6450.9dac4e30.chunk.js new file mode 100644 index 000000000..fdeae8774 --- /dev/null +++ b/static/js/6450.9dac4e30.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6450],{66450:(e,n,o)=>{o.r(n),o.d(n,{default:()=>r});const r={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# VSCode Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-vscode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-vscode)\n\n\n \"codemirror-theme-vscode\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-vscode --save\n```\n\n```jsx\nimport { vscodeDark, vscodeDarkInit } from '@uiw/codemirror-theme-vscode';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsVscodeDark: CreateThemeOptions['settings'];\nexport declare function vscodeDarkInit(options?: Partial): import('@codemirror/state').Extension;\nexport declare const vscodeDark: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { vscodeDark } from '@uiw/codemirror-theme-vscode';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { vscodeDark } from '@uiw/codemirror-theme-vscode';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [vscodeDark, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=6450.9dac4e30.chunk.js.map \ No newline at end of file diff --git a/static/js/6450.9dac4e30.chunk.js.map b/static/js/6450.9dac4e30.chunk.js.map new file mode 100644 index 000000000..0d475eecd --- /dev/null +++ b/static/js/6450.9dac4e30.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6450.9dac4e30.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,2mFACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/vscode/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# VSCode Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-vscode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-vscode)\\n\\n\\n \\\"codemirror-theme-vscode\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-vscode --save\\n```\\n\\n```jsx\\nimport { vscodeDark, vscodeDarkInit } from '@uiw/codemirror-theme-vscode';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsVscodeDark: CreateThemeOptions['settings'];\\nexport declare function vscodeDarkInit(options?: Partial): import('@codemirror/state').Extension;\\nexport declare const vscodeDark: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { vscodeDark } from '@uiw/codemirror-theme-vscode';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { vscodeDark } from '@uiw/codemirror-theme-vscode';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [vscodeDark, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6453.418c2d89.chunk.js b/static/js/6453.418c2d89.chunk.js new file mode 100644 index 000000000..2fc6742ec --- /dev/null +++ b/static/js/6453.418c2d89.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6453],{86453:(n,e,t)=>{t.r(e),t.d(e,{default:()=>o});const o={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Mentions Extensions\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-mentions.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-mentions)\n\nMentions Extensions for CodeMirror6.\n\n[![Mentions Extensions](https://user-images.githubusercontent.com/1680273/183007711-68109ca3-7140-411e-a747-53bcca0fa4c7.png)](https://uiwjs.github.io/react-codemirror/#/extensions/mentions)\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-extensions-mentions --save\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { mentions } from '@uiw/codemirror-extensions-mentions';\n\nconst users = [\n { label: '@Walter White' },\n { label: '@\u76ae\u76ae\u9c81' },\n { label: '@\u9c81\u897f\u897f' },\n { label: '@\u4e2d\u672c\u806a' },\n { label: '@\u30b5\u30c8\u30b7\u30fb\u30ca\u30ab\u30e2\u30c8' },\n { label: '@\u91ce\u6bd4\u306e\u3073\u592a' },\n { label: '@\uc131\ub355\uc120' },\n];\n\nfunction App() {\n return ;\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { mentions } from '@uiw/codemirror-extensions-mentions';\n\nconst users = [\n { label: '@Walter White' },\n { label: '@\u76ae\u76ae\u9c81' },\n { label: '@\u9c81\u897f\u897f' },\n { label: '@\u4e2d\u672c\u806a' },\n { label: '@\u30b5\u30c8\u30b7\u30fb\u30ca\u30ab\u30e2\u30c8' },\n { label: '@\u91ce\u6bd4\u306e\u3073\u592a' },\n { label: '@\uc131\ub355\uc120' },\n];\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [mentions(users)],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=6453.418c2d89.chunk.js.map \ No newline at end of file diff --git a/static/js/6453.418c2d89.chunk.js.map b/static/js/6453.418c2d89.chunk.js.map new file mode 100644 index 000000000..deb876ade --- /dev/null +++ b/static/js/6453.418c2d89.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6453.418c2d89.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,o0EACRC,SAAS,GACTC,aAAa,G","sources":["../../extensions/mentions/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Mentions Extensions\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-mentions.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-mentions)\\n\\nMentions Extensions for CodeMirror6.\\n\\n[![Mentions Extensions](https://user-images.githubusercontent.com/1680273/183007711-68109ca3-7140-411e-a747-53bcca0fa4c7.png)](https://uiwjs.github.io/react-codemirror/#/extensions/mentions)\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-extensions-mentions --save\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { mentions } from '@uiw/codemirror-extensions-mentions';\\n\\nconst users = [\\n { label: '@Walter White' },\\n { label: '@皮皮鲁' },\\n { label: '@鲁西西' },\\n { label: '@中本聪' },\\n { label: '@サトシ・ナカモト' },\\n { label: '@野比のび太' },\\n { label: '@성덕선' },\\n];\\n\\nfunction App() {\\n return ;\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { mentions } from '@uiw/codemirror-extensions-mentions';\\n\\nconst users = [\\n { label: '@Walter White' },\\n { label: '@皮皮鲁' },\\n { label: '@鲁西西' },\\n { label: '@中本聪' },\\n { label: '@サトシ・ナカモト' },\\n { label: '@野比のび太' },\\n { label: '@성덕선' },\\n];\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [mentions(users)],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6466.701e94f2.chunk.js b/static/js/6466.701e94f2.chunk.js new file mode 100644 index 000000000..ef98a4a96 --- /dev/null +++ b/static/js/6466.701e94f2.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6466],{96466:(n,e,i)=>{i.r(e),i.d(e,{default:()=>t});const t="#!/usr/bin/perl\nuse strict;\nuse warnings;\n\nuse Path::Tiny;\n\nmy $dir = path('foo','bar'); # foo/bar\n\n# Iterate over the content of foo/bar\nmy $iter = $dir->iterator;\nwhile (my $file = $iter->()) {\n\n # See if it is a directory and skip\n next if $file->is_dir();\n\n # Print out the file name and path\n print \"$file\\n\";\n}"}}]); +//# sourceMappingURL=6466.701e94f2.chunk.js.map \ No newline at end of file diff --git a/static/js/6466.701e94f2.chunk.js.map b/static/js/6466.701e94f2.chunk.js.map new file mode 100644 index 000000000..dd68da492 --- /dev/null +++ b/static/js/6466.701e94f2.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6466.701e94f2.chunk.js","mappings":"yHAAA,sW","sources":["../../node_modules/code-example/txt/sample.perl.txt"],"sourcesContent":["export default \"#!/usr/bin/perl\\nuse strict;\\nuse warnings;\\n\\nuse Path::Tiny;\\n\\nmy $dir = path('foo','bar'); # foo/bar\\n\\n# Iterate over the content of foo/bar\\nmy $iter = $dir->iterator;\\nwhile (my $file = $iter->()) {\\n\\n # See if it is a directory and skip\\n next if $file->is_dir();\\n\\n # Print out the file name and path\\n print \\\"$file\\\\n\\\";\\n}\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6488.90ae7417.chunk.js b/static/js/6488.90ae7417.chunk.js new file mode 100644 index 000000000..e8fe66add --- /dev/null +++ b/static/js/6488.90ae7417.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6488],{66488:(n,A,N)=>{N.r(A),N.d(A,{default:()=>R});const R="CONFIGURATION DefaultCfg\n VAR_GLOBAL\n Start_Stop AT %IX0.0: BOOL; (* This is a comment *)\n END_VAR\n TASK NewTask (INTERVAL := T#20ms);\n PROGRAM Main WITH NewTask : PLC_PRG;\nEND_CONFIGURATION\n\nPROGRAM demo\n VAR_EXTERNAL\n Start_Stop: BOOL;\n END_VAR\n VAR\n a : REAL; // Another comment\n todTest: TIME_OF_DAY := TOD#12:55;\n END_VAR\n a := csq(12.5);\n TON1(IN := TRUE, PT := T#2s);\n 16#FAC0 2#1001_0110\n IF TON1.Q AND a > REAL#100 THEN\n Start_Stop := TRUE;\n END_IF\nEND_PROGRAM;\n\n/* Get a square of the circle */\nFUNCTION csq : REAL\n VAR_INPUT\n r: REAL;\n END_VAR\n VAR CONSTANT\n c_pi: REAL := 3.14;\n END_VAR\n csq := ABS(c_pi * (r * 2));\nEND_FUNCTION"}}]); +//# sourceMappingURL=6488.90ae7417.chunk.js.map \ No newline at end of file diff --git a/static/js/6488.90ae7417.chunk.js.map b/static/js/6488.90ae7417.chunk.js.map new file mode 100644 index 000000000..e6a75ce69 --- /dev/null +++ b/static/js/6488.90ae7417.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6488.90ae7417.chunk.js","mappings":"yHAAA,mxB","sources":["../../node_modules/code-example/txt/sample.st.txt"],"sourcesContent":["export default \"CONFIGURATION DefaultCfg\\n VAR_GLOBAL\\n Start_Stop AT %IX0.0: BOOL; (* This is a comment *)\\n END_VAR\\n TASK NewTask (INTERVAL := T#20ms);\\n PROGRAM Main WITH NewTask : PLC_PRG;\\nEND_CONFIGURATION\\n\\nPROGRAM demo\\n VAR_EXTERNAL\\n Start_Stop: BOOL;\\n END_VAR\\n VAR\\n a : REAL; // Another comment\\n todTest: TIME_OF_DAY := TOD#12:55;\\n END_VAR\\n a := csq(12.5);\\n TON1(IN := TRUE, PT := T#2s);\\n 16#FAC0 2#1001_0110\\n IF TON1.Q AND a > REAL#100 THEN\\n Start_Stop := TRUE;\\n END_IF\\nEND_PROGRAM;\\n\\n/* Get a square of the circle */\\nFUNCTION csq : REAL\\n VAR_INPUT\\n r: REAL;\\n END_VAR\\n VAR CONSTANT\\n c_pi: REAL := 3.14;\\n END_VAR\\n csq := ABS(c_pi * (r * 2));\\nEND_FUNCTION\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6499.72f4cee7.chunk.js b/static/js/6499.72f4cee7.chunk.js new file mode 100644 index 000000000..87e074d10 --- /dev/null +++ b/static/js/6499.72f4cee7.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6499],{6499:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});const n={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Duotone Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-duotone.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-duotone)\n\n\n \"codemirror-theme-duotone\"\n\n\n\n \"codemirror-theme-duotone\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-duotone --save\n```\n\n```jsx\nimport { duotoneLight, duotoneLightInit, duotoneDark, duotoneDarkInit } from '@uiw/codemirror-theme-duotone';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsDuotoneLight: CreateThemeOptions['settings'];\nexport declare const duotoneLightInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const duotoneLight: import('@codemirror/state').Extension;\nexport declare const defaultSettingsDuotoneDark: CreateThemeOptions['settings'];\nexport declare const duotoneDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const duotoneDark: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { duotoneLight, duotoneDark } from '@uiw/codemirror-theme-duotone';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { duotoneLight, duotoneDark } from '@uiw/codemirror-theme-duotone';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [duotoneDark, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n\nby Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes)\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=6499.72f4cee7.chunk.js.map \ No newline at end of file diff --git a/static/js/6499.72f4cee7.chunk.js.map b/static/js/6499.72f4cee7.chunk.js.map new file mode 100644 index 000000000..1b0eef423 --- /dev/null +++ b/static/js/6499.72f4cee7.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6499.72f4cee7.chunk.js","mappings":"wHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,20GACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/duotone/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Duotone Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-duotone.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-duotone)\\n\\n\\n \\\"codemirror-theme-duotone\\\"\\n\\n\\n\\n \\\"codemirror-theme-duotone\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-duotone --save\\n```\\n\\n```jsx\\nimport { duotoneLight, duotoneLightInit, duotoneDark, duotoneDarkInit } from '@uiw/codemirror-theme-duotone';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsDuotoneLight: CreateThemeOptions['settings'];\\nexport declare const duotoneLightInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const duotoneLight: import('@codemirror/state').Extension;\\nexport declare const defaultSettingsDuotoneDark: CreateThemeOptions['settings'];\\nexport declare const duotoneDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const duotoneDark: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { duotoneLight, duotoneDark } from '@uiw/codemirror-theme-duotone';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { duotoneLight, duotoneDark } from '@uiw/codemirror-theme-duotone';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [duotoneDark, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\\nby Bram de Haan, adapted from DuoTone themes by Simurai (http://simurai.com/projects/2016/01/01/duotone-themes)\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6565.ae6d65b6.chunk.js b/static/js/6565.ae6d65b6.chunk.js new file mode 100644 index 000000000..5d570fecc --- /dev/null +++ b/static/js/6565.ae6d65b6.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6565],{36565:(t,o,e)=>{e.r(o),e.d(o,{default:()=>n});const n={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# TokyoNightDay Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-day.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-day)\n\n\n \"codemirror-theme-tokyo-night-day\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-tokyo-night-day --save\n```\n\n```jsx\nimport { tags as t } from '@lezer/highlight';\nimport { tokyoNightDay, tokyoNightDayInit } from '@uiw/codemirror-theme-tokyo-night-day';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsTokyoNightDay: CreateThemeOptions['settings'];\nexport declare const tokyoNightDayInit: (\n options?: Partial,\n) => import('@codemirror/state').Extension;\nexport declare const tokyoNightDay: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { tokyoNightDay } from '@uiw/codemirror-theme-tokyo-night-day';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { tokyoNightDay } from '@uiw/codemirror-theme-tokyo-night-day';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [tokyoNightDay, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=6565.ae6d65b6.chunk.js.map \ No newline at end of file diff --git a/static/js/6565.ae6d65b6.chunk.js.map b/static/js/6565.ae6d65b6.chunk.js.map new file mode 100644 index 000000000..3e381fae8 --- /dev/null +++ b/static/js/6565.ae6d65b6.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6565.ae6d65b6.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,m1FACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/tokyo-night-day/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# TokyoNightDay Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-day.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-day)\\n\\n\\n \\\"codemirror-theme-tokyo-night-day\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-tokyo-night-day --save\\n```\\n\\n```jsx\\nimport { tags as t } from '@lezer/highlight';\\nimport { tokyoNightDay, tokyoNightDayInit } from '@uiw/codemirror-theme-tokyo-night-day';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsTokyoNightDay: CreateThemeOptions['settings'];\\nexport declare const tokyoNightDayInit: (\\n options?: Partial,\\n) => import('@codemirror/state').Extension;\\nexport declare const tokyoNightDay: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { tokyoNightDay } from '@uiw/codemirror-theme-tokyo-night-day';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { tokyoNightDay } from '@uiw/codemirror-theme-tokyo-night-day';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [tokyoNightDay, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6580.288d34ed.chunk.js b/static/js/6580.288d34ed.chunk.js new file mode 100644 index 000000000..a0179e965 --- /dev/null +++ b/static/js/6580.288d34ed.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6580],{6580:(t,e,n)=>{n.r(e),n.d(e,{default:()=>u});const u='let\n Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],\n SplitColumnDelimiter = Table.SplitColumn(Source,"Input",Splitter.SplitTextByDelimiter(","),13),\n Unpivot = Table.Unpivot(SplitColumnDelimiter,{"Input.1", "Input.2", "Input.3", "Input.4",\n "Input.5", "Input.6", "Input.7", "Input.8", "Input.9", "Input.10", "Input.11", "Input.12"\n , "Input.13"},"Attribute","Value"),\n RemovedColumns = Table.RemoveColumns(Unpivot,{"Attribute"}),\n DuplicatesRemoved = Table.Distinct(RemovedColumns),\n GroupedRows = Table.Group(DuplicatesRemoved, {"RowID"}, {{"Count of Distinct Values"\n , each Table.RowCount(_), type number}})\nin\n GroupedRows'}}]); +//# sourceMappingURL=6580.288d34ed.chunk.js.map \ No newline at end of file diff --git a/static/js/6580.288d34ed.chunk.js.map b/static/js/6580.288d34ed.chunk.js.map new file mode 100644 index 000000000..b71efc461 --- /dev/null +++ b/static/js/6580.288d34ed.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6580.288d34ed.chunk.js","mappings":"wHAAA,srB","sources":["../../node_modules/code-example/txt/sample.powerquery.txt"],"sourcesContent":["export default \"let\\n Source = Excel.CurrentWorkbook(){[Name=\\\"Table1\\\"]}[Content],\\n SplitColumnDelimiter = Table.SplitColumn(Source,\\\"Input\\\",Splitter.SplitTextByDelimiter(\\\",\\\"),13),\\n Unpivot = Table.Unpivot(SplitColumnDelimiter,{\\\"Input.1\\\", \\\"Input.2\\\", \\\"Input.3\\\", \\\"Input.4\\\",\\n \\\"Input.5\\\", \\\"Input.6\\\", \\\"Input.7\\\", \\\"Input.8\\\", \\\"Input.9\\\", \\\"Input.10\\\", \\\"Input.11\\\", \\\"Input.12\\\"\\n , \\\"Input.13\\\"},\\\"Attribute\\\",\\\"Value\\\"),\\n RemovedColumns = Table.RemoveColumns(Unpivot,{\\\"Attribute\\\"}),\\n DuplicatesRemoved = Table.Distinct(RemovedColumns),\\n GroupedRows = Table.Group(DuplicatesRemoved, {\\\"RowID\\\"}, {{\\\"Count of Distinct Values\\\"\\n , each Table.RowCount(_), type number}})\\nin\\n GroupedRows\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6636.8446bab2.chunk.js b/static/js/6636.8446bab2.chunk.js new file mode 100644 index 000000000..3ccb85cce --- /dev/null +++ b/static/js/6636.8446bab2.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6636],{46636:(e,n,i)=>{i.r(n),i.d(n,{default:()=>l});const l="proc find {{basedir .} {filterScript {}}} {\n set oldwd [pwd]\n cd $basedir\n set cwd [pwd]\n set filenames [glob -nocomplain * .*]\n set files {}\n set filt [string length $filterScript]\n foreach filename $filenames {\n if {!$filt || [eval $filterScript [list $filename]]} {\n lappend files [file join $cwd $filename]\n }\n if {[file isdirectory $filename]} {\n set files [concat $files [find $filename $filterScript]]\n }\n }\n cd $oldwd\n return $files\n}\n"}}]); +//# sourceMappingURL=6636.8446bab2.chunk.js.map \ No newline at end of file diff --git a/static/js/6636.8446bab2.chunk.js.map b/static/js/6636.8446bab2.chunk.js.map new file mode 100644 index 000000000..dd5fba224 --- /dev/null +++ b/static/js/6636.8446bab2.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6636.8446bab2.chunk.js","mappings":"yHAAA,uiB","sources":["../../node_modules/code-example/txt/sample.tcl.txt"],"sourcesContent":["export default \"proc find {{basedir .} {filterScript {}}} {\\n set oldwd [pwd]\\n cd $basedir\\n set cwd [pwd]\\n set filenames [glob -nocomplain * .*]\\n set files {}\\n set filt [string length $filterScript]\\n foreach filename $filenames {\\n if {!$filt || [eval $filterScript [list $filename]]} {\\n lappend files [file join $cwd $filename]\\n }\\n if {[file isdirectory $filename]} {\\n set files [concat $files [find $filename $filterScript]]\\n }\\n }\\n cd $oldwd\\n return $files\\n}\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6653.e794db69.chunk.js b/static/js/6653.e794db69.chunk.js new file mode 100644 index 000000000..12948c071 --- /dev/null +++ b/static/js/6653.e794db69.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6653],{86653:(n,e,t)=>{t.r(e),t.d(e,{default:()=>l});const l="REPORT zrosetta_base64_encode_data.\n\nDATA: li_client TYPE REF TO if_http_client,\n lv_encoded TYPE string,\n lv_data TYPE xstring.\n\n\ncl_http_client=>create_by_url(\n EXPORTING\n url = 'http://rosettacode.org/favicon.ico'\n IMPORTING\n client = li_client ).\n\nli_client->send( ).\nli_client->receive( ).\n\nlv_data = li_client->response->get_data( ).\n\nCALL FUNCTION 'SSFC_BASE64_ENCODE'\n EXPORTING\n bindata = lv_data\n IMPORTING\n b64data = lv_encoded.\n\nWHILE strlen( lv_encoded ) > 100.\n WRITE: / lv_encoded(100).\n lv_encoded = lv_encoded+100.\nENDWHILE.\nWRITE: / lv_encoded.\n"}}]); +//# sourceMappingURL=6653.e794db69.chunk.js.map \ No newline at end of file diff --git a/static/js/6653.e794db69.chunk.js.map b/static/js/6653.e794db69.chunk.js.map new file mode 100644 index 000000000..a41ec82ab --- /dev/null +++ b/static/js/6653.e794db69.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6653.e794db69.chunk.js","mappings":"yHAAA,6nB","sources":["../../node_modules/code-example/txt/sample.abap.txt"],"sourcesContent":["export default \"REPORT zrosetta_base64_encode_data.\\n\\nDATA: li_client TYPE REF TO if_http_client,\\n lv_encoded TYPE string,\\n lv_data TYPE xstring.\\n\\n\\ncl_http_client=>create_by_url(\\n EXPORTING\\n url = 'http://rosettacode.org/favicon.ico'\\n IMPORTING\\n client = li_client ).\\n\\nli_client->send( ).\\nli_client->receive( ).\\n\\nlv_data = li_client->response->get_data( ).\\n\\nCALL FUNCTION 'SSFC_BASE64_ENCODE'\\n EXPORTING\\n bindata = lv_data\\n IMPORTING\\n b64data = lv_encoded.\\n\\nWHILE strlen( lv_encoded ) > 100.\\n WRITE: / lv_encoded(100).\\n lv_encoded = lv_encoded+100.\\nENDWHILE.\\nWRITE: / lv_encoded.\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/671.be467c24.chunk.js b/static/js/671.be467c24.chunk.js new file mode 100644 index 000000000..9ba80d9bf --- /dev/null +++ b/static/js/671.be467c24.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[671],{90671:(n,t,a)=>{a.r(t),a.d(t,{default:()=>c});const c='const val POINTS_X_PASS: Int = 15\nval EZPassAccounts: MutableMap = mutableMapOf(1 to 100, 2 to 100, 3 to 100)\nval EZPassReport: Map = EZPassAccounts\n\n// update points credit\nfun updatePointsCredit(accountId: Int) {\n if (EZPassAccounts.containsKey(accountId)) {\n println("Updating $accountId...")\n EZPassAccounts[accountId] = EZPassAccounts.getValue(accountId) + POINTS_X_PASS\n } else {\n println("Error: Trying to update a non-existing account (id: $accountId)")\n }\n}\n\nfun accountsReport() {\n println("EZ-Pass report:")\n EZPassReport.forEach{\n k, v -> println("ID $k: credit $v")\n }\n}\n\nfun main() {\n accountsReport()\n updatePointsCredit(1)\n updatePointsCredit(1)\n updatePointsCredit(5)\n accountsReport()\n}'}}]); +//# sourceMappingURL=671.be467c24.chunk.js.map \ No newline at end of file diff --git a/static/js/671.be467c24.chunk.js.map b/static/js/671.be467c24.chunk.js.map new file mode 100644 index 000000000..82b3e4994 --- /dev/null +++ b/static/js/671.be467c24.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/671.be467c24.chunk.js","mappings":"wHAAA,szB","sources":["../../node_modules/code-example/txt/sample.kotlin.txt"],"sourcesContent":["export default \"const val POINTS_X_PASS: Int = 15\\nval EZPassAccounts: MutableMap = mutableMapOf(1 to 100, 2 to 100, 3 to 100)\\nval EZPassReport: Map = EZPassAccounts\\n\\n// update points credit\\nfun updatePointsCredit(accountId: Int) {\\n if (EZPassAccounts.containsKey(accountId)) {\\n println(\\\"Updating $accountId...\\\")\\n EZPassAccounts[accountId] = EZPassAccounts.getValue(accountId) + POINTS_X_PASS\\n } else {\\n println(\\\"Error: Trying to update a non-existing account (id: $accountId)\\\")\\n }\\n}\\n\\nfun accountsReport() {\\n println(\\\"EZ-Pass report:\\\")\\n EZPassReport.forEach{\\n k, v -> println(\\\"ID $k: credit $v\\\")\\n }\\n}\\n\\nfun main() {\\n accountsReport()\\n updatePointsCredit(1)\\n updatePointsCredit(1)\\n updatePointsCredit(5)\\n accountsReport()\\n}\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6783.108b06d9.chunk.js b/static/js/6783.108b06d9.chunk.js new file mode 100644 index 000000000..2c276afbc --- /dev/null +++ b/static/js/6783.108b06d9.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6783],{46783:(n,o,e)=>{e.r(o),e.d(o,{default:()=>t});const t={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# AndroidStudio Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-androidstudio.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-androidstudio)\n\n\n \"codemirror-theme-androidstudio\"\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-androidstudio --save\n```\n\n```jsx\nimport { tags as t } from '@lezer/highlight';\nimport { androidstudio, androidstudioInit } from '@uiw/codemirror-theme-androidstudio';\n\n\n\n```\n\n## API\n\n```tsx\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsAndroidstudio: CreateThemeOptions['settings'];\nexport declare const androidstudioInit: (\n options?: Partial,\n) => import('@codemirror/state').Extension;\nexport declare const androidstudio: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { androidstudio } from '@uiw/codemirror-theme-androidstudio';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { androidstudio } from '@uiw/codemirror-theme-androidstudio';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [androidstudio, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=6783.108b06d9.chunk.js.map \ No newline at end of file diff --git a/static/js/6783.108b06d9.chunk.js.map b/static/js/6783.108b06d9.chunk.js.map new file mode 100644 index 000000000..4acc9950c --- /dev/null +++ b/static/js/6783.108b06d9.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6783.108b06d9.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,m0FACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/androidstudio/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# AndroidStudio Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-androidstudio.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-androidstudio)\\n\\n\\n \\\"codemirror-theme-androidstudio\\\"\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-androidstudio --save\\n```\\n\\n```jsx\\nimport { tags as t } from '@lezer/highlight';\\nimport { androidstudio, androidstudioInit } from '@uiw/codemirror-theme-androidstudio';\\n\\n\\n\\n```\\n\\n## API\\n\\n```tsx\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsAndroidstudio: CreateThemeOptions['settings'];\\nexport declare const androidstudioInit: (\\n options?: Partial,\\n) => import('@codemirror/state').Extension;\\nexport declare const androidstudio: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { androidstudio } from '@uiw/codemirror-theme-androidstudio';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { androidstudio } from '@uiw/codemirror-theme-androidstudio';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [androidstudio, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [github-action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/6786.8fe6c399.chunk.js b/static/js/6786.8fe6c399.chunk.js new file mode 100644 index 000000000..4b6379d3d --- /dev/null +++ b/static/js/6786.8fe6c399.chunk.js @@ -0,0 +1,2 @@ +(self.webpackChunkwww=self.webpackChunkwww||[]).push([[6786],{56786:(t,e,a)=>{"use strict";a.r(e),a.d(e,{Component:()=>z,Sider:()=>Z,ThemeEditor:()=>P});var o=a(50669),r=a(83528),n=a(4801),c=a(91135),p=a(38932),l=a(50961),i=(a(39446),a(80255)),s=a(60994),g=a(72351);const m={comment:"#787b80",lineComment:"",blockComment:"",docComment:"",name:"",typeDefinition:"#194a7b",typeName:"#194a7b",typeStandard:"",tagName:"#008a02",tagNameStandard:"",variableName:"#1a00db",variableNameDefinition:"",variableNameFunction:"",propertyName:"",propertyNameDefinition:"",propertyNameFunction:"",propertyNameSpecial:"",attributeName:"",attributeValue:"",className:"",classNameConstant:"",labelName:"",namespace:"",macroName:"",literal:"",string:"",stringSpecial:"",docString:"",character:"",number:"",integer:"",float:"",bool:"",regexp:"",escape:"",color:"",url:"",keyword:"",self:"",null:"",atom:"",unit:"",modifier:"",operatorKeyword:"",controlKeyword:"",definitionKeyword:"",moduleKeyword:"",operator:"",derefOperator:"",arithmeticOperator:"",logicOperator:"",bitwiseOperator:"",brace:"",angleBracket:"",compareOperator:"",updateOperator:"",definitionOperator:"",typeOperator:"",controlOperator:"",punctuation:"",separator:"",bracket:"",squareBracket:"",paren:"",content:"",heading:"",heading1:"",heading2:"",heading3:"",heading4:"",heading5:"",heading6:"",contentSeparator:"",list:"",quote:"",emphasis:"",strong:"",link:"",monospace:"",strikethrough:"",inserted:"",deleted:"",changed:"",invalid:"",meta:"",documentMeta:"",annotation:"",processingInstruction:""},d=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const e=[];return t.comment&&e.push("{ tag: t.comment, color: '".concat(t.comment,"' },")),t.lineComment&&e.push("{ tag: t.lineComment, color: '".concat(t.lineComment,"' },")),t.blockComment&&e.push("{ tag: t.blockComment, color: '".concat(t.blockComment,"' },")),t.docComment&&e.push("{ tag: t.docComment, color: '".concat(t.docComment,"' },")),t.name&&e.push("{ tag: t.name, color: '".concat(t.name,"' },")),t.typeDefinition&&e.push("{ tag: t.definition(t.typeName), color: '".concat(t.typeDefinition,"' },")),t.typeName&&e.push("{ tag: t.typeName, color: '".concat(t.typeName,"' },")),t.typeStandard&&e.push("{ tag: t.standard(t.typeName), color: '".concat(t.typeName,"' },")),t.tagName&&e.push("{ tag: t.tagName, color: '".concat(t.tagName,"' },")),t.tagNameStandard&&e.push("{ tag: t.standard(t.tagName), color: '".concat(t.tagNameStandard,"' },")),t.variableName&&e.push("{ tag: t.variableName, color: '".concat(t.variableName,"' },")),t.variableNameDefinition&&e.push("{ tag: t.definition(t.variableName), color: '".concat(t.variableNameDefinition,"' },")),t.variableNameFunction&&e.push("{ tag: t.function(t.variableName), color: '".concat(t.variableNameFunction,"' },")),t.propertyName&&e.push("{ tag: t.propertyName, color: '".concat(t.propertyName,"' },")),t.propertyNameFunction&&e.push("{ tag: t.function(t.propertyName), color: '".concat(t.propertyNameFunction,"' },")),t.propertyNameDefinition&&e.push("{ tag: t.definition(t.propertyName), color: '".concat(t.propertyNameDefinition,"' },")),t.propertyNameSpecial&&e.push("{ tag: t.special(t.propertyName), color: '".concat(t.propertyNameSpecial,"' },")),t.attributeName&&e.push("{ tag: t.attributeName, color: '".concat(t.attributeName,"' },")),t.className&&e.push("{ tag: t.className, color: '".concat(t.className,"' },")),t.classNameConstant&&e.push("{ tag: t.constant(t.className), color: '".concat(t.className,"' },")),t.labelName&&e.push("{ tag: t.labelName, color: '".concat(t.labelName,"' },")),t.namespace&&e.push("{ tag: t.namespace, color: '".concat(t.namespace,"' },")),t.macroName&&e.push("{ tag: t.macroName, color: '".concat(t.macroName,"' },")),t.literal&&e.push("{ tag: t.literal, color: '".concat(t.literal,"' },")),t.string&&e.push("{ tag: t.string, color: '".concat(t.string,"' },")),t.stringSpecial&&e.push("{ tag: t.special(t.string), color: '".concat(t.stringSpecial,"' },")),t.docString&&e.push("{ tag: t.docString, color: '".concat(t.docString,"' },")),t.character&&e.push("{ tag: t.character, color: '".concat(t.character,"' },")),t.attributeValue&&e.push("{ tag: t.attributeValue, color: '".concat(t.attributeValue,"' },")),t.number&&e.push("{ tag: t.number, color: '".concat(t.number,"' },")),t.integer&&e.push("{ tag: t.integer, color: '".concat(t.integer,"' },")),t.float&&e.push("{ tag: t.float, color: '".concat(t.float,"' },")),t.bool&&e.push("{ tag: t.bool, color: '".concat(t.bool,"' },")),t.regexp&&e.push("{ tag: t.regexp, color: '".concat(t.regexp,"' },")),t.escape&&e.push("{ tag: t.escape, color: '".concat(t.escape,"' },")),t.color&&e.push("{ tag: t.color, color: '".concat(t.color,"' },")),t.url&&e.push("{ tag: t.url, color: '".concat(t.url,"' },")),t.keyword&&e.push("{ tag: t.keyword, color: '".concat(t.keyword,"' },")),t.self&&e.push("{ tag: t.self, color: '".concat(t.self,"' },")),t.null&&e.push("{ tag: t.null, color: '".concat(t.null,"' },")),t.atom&&e.push("{ tag: t.atom, color: '".concat(t.atom,"' },")),t.unit&&e.push("{ tag: t.unit, color: '".concat(t.unit,"' },")),t.modifier&&e.push("{ tag: t.modifier, color: '".concat(t.modifier,"' },")),t.operatorKeyword&&e.push("{ tag: t.operatorKeyword, color: '".concat(t.operatorKeyword,"' },")),t.controlKeyword&&e.push("{ tag: t.controlKeyword, color: '".concat(t.controlKeyword,"' },")),t.definitionKeyword&&e.push("{ tag: t.definitionKeyword, color: '".concat(t.definitionKeyword,"' },")),t.moduleKeyword&&e.push("{ tag: t.moduleKeyword, color: '".concat(t.moduleKeyword,"' },")),t.operator&&e.push("{ tag: t.operator, color: '".concat(t.operator,"' },")),t.derefOperator&&e.push("{ tag: t.derefOperator, color: '".concat(t.derefOperator,"' },")),t.arithmeticOperator&&e.push("{ tag: t.arithmeticOperator, color: '".concat(t.arithmeticOperator,"' },")),t.logicOperator&&e.push("{ tag: t.logicOperator, color: '".concat(t.logicOperator,"' },")),t.logicOperator&&e.push("{ tag: t.bitwiseOperator, color: '".concat(t.logicOperator,"' },")),t.compareOperator&&e.push("{ tag: t.compareOperator, color: '".concat(t.compareOperator,"' },")),t.updateOperator&&e.push("{ tag: t.updateOperator, color: '".concat(t.updateOperator,"' },")),t.definitionOperator&&e.push("{ tag: t.definitionOperator, color: '".concat(t.definitionOperator,"' },")),t.typeOperator&&e.push("{ tag: t.typeOperator, color: '".concat(t.typeOperator,"' },")),t.controlOperator&&e.push("{ tag: t.controlOperator, color: '".concat(t.controlOperator,"' },")),t.punctuation&&e.push("{ tag: t.punctuation, color: '".concat(t.punctuation,"' },")),t.separator&&e.push("{ tag: t.separator, color: '".concat(t.separator,"' },")),t.bracket&&e.push("{ tag: t.bracket, color: '".concat(t.bracket,"' },")),t.angleBracket&&e.push("{ tag: t.angleBracket, color: '".concat(t.angleBracket,"' },")),t.squareBracket&&e.push("{ tag: t.squareBracket, color: '".concat(t.squareBracket,"' },")),t.paren&&e.push("{ tag: t.paren, color: '".concat(t.paren,"' },")),t.brace&&e.push("{ tag: t.brace, color: '".concat(t.brace,"' },")),t.content&&e.push("{ tag: t.content, color: '".concat(t.content,"' },")),t.heading&&e.push("{ tag: t.heading, color: '".concat(t.heading,"' },")),t.heading1&&e.push("{ tag: t.heading1, color: '".concat(t.heading1,"' },")),t.heading2&&e.push("{ tag: t.heading2, color: '".concat(t.heading2,"' },")),t.heading3&&e.push("{ tag: t.heading3, color: '".concat(t.heading3,"' },")),t.heading4&&e.push("{ tag: t.heading4, color: '".concat(t.heading4,"' },")),t.heading5&&e.push("{ tag: t.heading5, color: '".concat(t.heading5,"' },")),t.heading6&&e.push("{ tag: t.heading6, color: '".concat(t.heading6,"' },")),t.contentSeparator&&e.push("{ tag: t.contentSeparator, color: '".concat(t.contentSeparator,"' },")),t.list&&e.push("{ tag: t.list, color: '".concat(t.list,"' },")),t.quote&&e.push("{ tag: t.quote, color: '".concat(t.quote,"' },")),t.emphasis&&e.push("{ tag: t.emphasis, color: '".concat(t.emphasis,"' },")),t.strong&&e.push("{ tag: t.strong, color: '".concat(t.strong,"' },")),t.link&&e.push("{ tag: t.link, color: '".concat(t.link,"' },")),t.monospace&&e.push("{ tag: t.monospace, color: '".concat(t.monospace,"' },")),t.strikethrough&&e.push("{ tag: t.strikethrough, color: '".concat(t.strikethrough,"' },")),t.inserted&&e.push("{ tag: t.inserted, color: '".concat(t.inserted,"' },")),t.deleted&&e.push("{ tag: t.deleted, color: '".concat(t.deleted,"' },")),t.changed&&e.push("{ tag: t.changed, color: '".concat(t.changed,"' },")),t.invalid&&e.push("{ tag: t.invalid, color: '".concat(t.invalid,"' },")),t.meta&&e.push("{ tag: t.meta, color: '".concat(t.meta,"' },")),t.documentMeta&&e.push("{ tag: t.documentMeta, color: '".concat(t.documentMeta,"' },")),t.annotation&&e.push("{ tag: t.annotation, color: '".concat(t.annotation,"' },")),t.processingInstruction&&e.push("{ tag: t.processingInstruction, color: '".concat(t.processingInstruction,"' },")),"import CodeMirror from '@uiw/react-codemirror';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { tags as t } from '@lezer/highlight';\n\nconst myTheme = createTheme({\n dark: '".concat(t.dark,"',\n settings: {\n background: '").concat(t.background,"',\n backgroundImage: '',\n foreground: '").concat(t.foreground,"',\n caret: '").concat(t.caret,"',\n selection: '").concat(t.selection,"',\n selectionMatch: '").concat(t.selectionMatch,"',\n gutterBackground: '").concat(t.gutterBackground,"',\n gutterForeground: '").concat(t.gutterForeground,"',\n gutterBorder: '").concat(t.gutterBorder,"',\n gutterActiveForeground: '").concat(t.gutterActiveForeground,"',\n lineHighlight: '").concat(t.lineHighlight,"',\n },\n styles: [\n ").concat(e.join("\n "),"\n ],\n});\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;")};var u,h,x,f,b=a(79584);const y=p.ZP.div(u||(u=(0,o.Z)(["\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n"]))),J=p.ZP.div(h||(h=(0,o.Z)(["\n /* font-weight: bold; */\n"]))),N=p.ZP.div(x||(x=(0,o.Z)(["\n width: 16px;\n height: 16px;\n overflow: hidden;\n border: 1px solid var(--color-border-default);\n border-radius: 3px;\n position: relative;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='a' width='12' height='12' patternUnits='userSpaceOnUse'%3E%3Cpath fill='rgba(0, 0, 0, 0.06)' d='M0 0h8v8H0zm8 8h8v8H8z'/%3E%3C/pattern%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3C/svg%3E\");\n &::before {\n content: ' ';\n display: block;\n position: absolute;\n left: 1px;\n right: 1px;\n top: 1px;\n bottom: 1px;\n border-radius: 2px;\n ","\n }\n input {\n position: relative;\n z-index: 3;\n border: 0;\n background-color: transparent;\n padding-left: 16px;\n height: 16px;\n }\n"])),(t=>t.color&&(0,p.iv)(f||(f=(0,o.Z)(["\n background-color: ",";\n "])),t.color))),v=t=>{let{children:e,onChange:a,...o}=t;return(0,b.jsx)(N,{color:o.value,children:(0,b.jsx)("input",{type:"color",...o,onChange:a})})},k=t=>{let{color:e,children:a,...o}=t;return(0,b.jsxs)(y,{children:[(0,b.jsx)(J,{children:a}),(0,b.jsx)(v,{value:e,...o})]})},w=t=>{let{theme:e,onChange:a}=t;const o=(t,e)=>{a&&a(e)};return(0,b.jsxs)("div",{children:[(0,b.jsxs)("label",{children:[(0,b.jsx)("input",{type:"radio",name:"theme",onChange:t=>o(0,"light"),checked:"light"===e})," ","light"]}),(0,b.jsxs)("label",{children:[(0,b.jsx)("input",{type:"radio",name:"theme",onChange:t=>o(0,"dark"),checked:"dark"===e})," ","dark"]})]})};var O,j=a(20530);const C=p.ZP.select(O||(O=(0,o.Z)(["\n position: absolute;\n right: 10px;\n top: 10px;\n padding: 3px 6px;\n z-index: 9;\n"]))),S=Object.keys(j.RI),F=t=>{let{onChange:e,styles:o,...n}=t;const[c,p]=(0,r.useState)("code");return(0,r.useEffect)((()=>{"code"===c&&e&&e(d(o),"code",j.RI.jsx())}),[]),(0,b.jsxs)(C,{value:c,onChange:t=>{const r=t.target.value;if(p(r),"code"!==r)try{a(70620)("./sample.".concat(r.toLocaleLowerCase(),".txt")).then((t=>{const a=j.RI[r];e&&e(t.default,r,a?a():void 0)})).catch((t=>{e&&e("","",void 0)}))}catch(n){}else e&&e(d(o),"code",j.RI.jsx())},...n,children:[(0,b.jsx)("option",{value:"code",children:"Sample Code"}),S.map(((t,e)=>(0,b.jsx)("option",{value:t,children:t},e)))]})};var D,K,q,B=a(5959);const Z=p.ZP.div(D||(D=(0,o.Z)(["\n width: 220px;\n min-width: 220px;\n overflow: auto;\n height: calc(100vh - 42px);\n padding: 18px 16px 120px 16px;\n border-right: 1px solid var(--color-border-default);\n display: flex;\n flex-direction: column;\n gap: 5px;\n"]))),E=p.ZP.div(K||(K=(0,o.Z)(["\n height: 100%;\n width: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n height: calc(100vh - 42px);\n position: relative;\n"]))),M=p.ZP.div(q||(q=(0,o.Z)(["\n color: var(--color-fg-subtle);\n font-size: 12px;\n padding: 0 0;\n"])));function I(t,e){return t&&e?(e.color=t,[e]):[]}function P(){const t=(0,l.s0)(),{type:e="multiple"}=(0,l.UO)(),[a,o]=(0,r.useState)((0,g.javascript)({jsx:!0})),[p,u]=(0,r.useState)(""),[h,x]=(0,r.useState)("jsx"),[f,y]=(0,r.useState)("light"),[J,N]=(0,r.useState)({background:"#ffffff",foreground:"#4D4D4C",caret:"#AEAFAD",selection:"#D6D6D6",selectionMatch:"#D6D6D6",gutterBackground:"#FFFFFF",gutterForeground:"#4D4D4C",gutterBorder:"#dddddd",gutterActiveForeground:"",lineHighlight:"#EFEFEF"}),[v,O]=(0,r.useState)(m),j=(0,i.Z)({theme:f,settings:{...J},styles:[I(v.comment,{tag:s.pJ.comment}),I(v.lineComment,{tag:s.pJ.lineComment}),I(v.blockComment,{tag:s.pJ.blockComment}),I(v.docComment,{tag:s.pJ.docComment}),I(v.name,{tag:s.pJ.name}),I(v.typeDefinition,{tag:s.pJ.definition(s.pJ.typeName)}),I(v.typeStandard,{tag:s.pJ.standard(s.pJ.typeName)}),I(v.typeName,{tag:s.pJ.typeName}),I(v.tagNameStandard,{tag:s.pJ.standard(s.pJ.tagName)}),I(v.tagName,{tag:s.pJ.tagName}),I(v.variableName,{tag:s.pJ.variableName}),I(v.variableNameDefinition,{tag:s.pJ.definition(s.pJ.variableName)}),I(v.variableNameFunction,{tag:s.pJ.function(s.pJ.variableName)}),I(v.propertyName,{tag:s.pJ.propertyName}),I(v.propertyNameDefinition,{tag:s.pJ.definition(s.pJ.propertyName)}),I(v.propertyNameSpecial,{tag:s.pJ.special(s.pJ.propertyName)}),I(v.propertyNameFunction,{tag:s.pJ.function(s.pJ.propertyName)}),I(v.attributeName,{tag:s.pJ.attributeName}),I(v.attributeValue,{tag:s.pJ.attributeValue}),I(v.className,{tag:s.pJ.className}),I(v.classNameConstant,{tag:s.pJ.constant(s.pJ.className)}),I(v.labelName,{tag:s.pJ.labelName}),I(v.namespace,{tag:s.pJ.namespace}),I(v.macroName,{tag:s.pJ.macroName}),I(v.literal,{tag:s.pJ.literal}),I(v.string,{tag:s.pJ.string}),I(v.stringSpecial,{tag:s.pJ.special(s.pJ.string)}),I(v.docString,{tag:s.pJ.docString}),I(v.character,{tag:s.pJ.character}),I(v.number,{tag:s.pJ.number}),I(v.integer,{tag:s.pJ.integer}),I(v.float,{tag:s.pJ.float}),I(v.bool,{tag:s.pJ.bool}),I(v.regexp,{tag:s.pJ.regexp}),I(v.escape,{tag:s.pJ.escape}),I(v.color,{tag:s.pJ.color}),I(v.url,{tag:s.pJ.url}),I(v.keyword,{tag:s.pJ.keyword}),I(v.self,{tag:s.pJ.self}),I(v.null,{tag:s.pJ.null}),I(v.atom,{tag:s.pJ.atom}),I(v.unit,{tag:s.pJ.unit}),I(v.modifier,{tag:s.pJ.modifier}),I(v.operatorKeyword,{tag:s.pJ.operatorKeyword}),I(v.controlKeyword,{tag:s.pJ.controlKeyword}),I(v.definitionKeyword,{tag:s.pJ.definitionKeyword}),I(v.moduleKeyword,{tag:s.pJ.moduleKeyword}),I(v.operator,{tag:s.pJ.operator}),I(v.derefOperator,{tag:s.pJ.derefOperator}),I(v.arithmeticOperator,{tag:s.pJ.arithmeticOperator}),I(v.logicOperator,{tag:s.pJ.logicOperator}),I(v.bitwiseOperator,{tag:s.pJ.bitwiseOperator}),I(v.compareOperator,{tag:s.pJ.compareOperator}),I(v.updateOperator,{tag:s.pJ.updateOperator}),I(v.definitionOperator,{tag:s.pJ.definitionOperator}),I(v.typeOperator,{tag:s.pJ.typeOperator}),I(v.controlOperator,{tag:s.pJ.controlOperator}),I(v.punctuation,{tag:s.pJ.punctuation}),I(v.separator,{tag:s.pJ.separator}),I(v.bracket,{tag:s.pJ.bracket}),I(v.angleBracket,{tag:s.pJ.angleBracket}),I(v.squareBracket,{tag:s.pJ.squareBracket}),I(v.paren,{tag:s.pJ.paren}),I(v.brace,{tag:s.pJ.brace}),I(v.content,{tag:s.pJ.content}),I(v.heading,{tag:s.pJ.heading}),I(v.heading1,{tag:s.pJ.heading1}),I(v.heading2,{tag:s.pJ.heading2}),I(v.heading3,{tag:s.pJ.heading3}),I(v.heading4,{tag:s.pJ.heading4}),I(v.heading5,{tag:s.pJ.heading5}),I(v.heading6,{tag:s.pJ.heading6}),I(v.contentSeparator,{tag:s.pJ.contentSeparator}),I(v.list,{tag:s.pJ.list}),I(v.quote,{tag:s.pJ.quote}),I(v.emphasis,{tag:s.pJ.emphasis}),I(v.strong,{tag:s.pJ.strong}),I(v.link,{tag:s.pJ.link}),I(v.monospace,{tag:s.pJ.monospace}),I(v.strikethrough,{tag:s.pJ.strikethrough}),I(v.inserted,{tag:s.pJ.inserted}),I(v.deleted,{tag:s.pJ.deleted}),I(v.changed,{tag:s.pJ.changed}),I(v.invalid,{tag:s.pJ.invalid}),I(v.meta,{tag:s.pJ.meta}),I(v.documentMeta,{tag:s.pJ.documentMeta}),I(v.annotation,{tag:s.pJ.annotation}),I(v.processingInstruction,{tag:s.pJ.processingInstruction})].flat()});return(0,b.jsxs)(r.Fragment,{children:[(0,b.jsxs)(Z,{children:[(0,b.jsx)(w,{theme:f,onChange:t=>y(t)}),(0,b.jsx)(M,{children:"Editor"}),Object.keys(J).map(((t,e)=>(0,b.jsx)(k,{color:J[t],onChange:e=>N({...J,[t]:e.target.value}),children:t},e))),(0,b.jsx)(M,{children:"Syntax Highlighting"}),Object.keys(v).map(((t,e)=>(0,b.jsx)(k,{color:v[t],onChange:e=>O({...v,[t]:e.target.value}),children:t},e)))]}),(0,b.jsxs)(E,{children:["single"===e&&(0,b.jsx)(n.default,{readOnly:"code"===h,theme:j,extensions:[a,c.$_],value:"code"===h?d({...J,...v,dark:f}):p,height:"100% !important",style:{minHeight:"100%"}}),(0,b.jsxs)(C,{value:e,onChange:e=>t("/editor/theme/".concat(e.target.value)),children:[(0,b.jsx)("option",{value:"single",children:"Single language"}),(0,b.jsx)("option",{value:"multiple",children:"Multiple languages"})]}),"single"===e&&(0,b.jsx)(F,{style:{top:40},styles:{...J,...v,dark:f},onChange:(t,e,a)=>{x(e),u(t||""),o(a||[])}}),"multiple"===e&&(0,b.jsx)(B.d,{theme:j,style:{padding:"30px 30px"}})]})]})}const z=()=>(0,b.jsx)(P,{})},70620:(t,e,a)=>{var o={"./sample.abap.txt":[86653,6653],"./sample.aes.txt":[9547,9547],"./sample.apex.txt":[39365,9365],"./sample.azcli.txt":[87795,7795],"./sample.bat.txt":[20470,470],"./sample.bicep.txt":[10803,803],"./sample.brainfuck.txt":[78465,8465],"./sample.c.txt":[86124,6124],"./sample.cameligo.txt":[64286,4286],"./sample.clike.txt":[25034,5034],"./sample.clojure.txt":[6268,6268],"./sample.coffeescript.txt":[35164,5164],"./sample.cpp.txt":[78410,8410],"./sample.csharp.txt":[57511,7511],"./sample.csp.txt":[55541,5541],"./sample.css.txt":[80088],"./sample.dart.txt":[84661,4661],"./sample.dockerfile.txt":[24593,4593],"./sample.ecl.txt":[83733,3733],"./sample.elixir.txt":[84890,4890],"./sample.erlang.txt":[48453,8453],"./sample.flow9.txt":[97626,7626],"./sample.freemarker2.txt":[33498,3498],"./sample.fsharp.txt":[96787,6787],"./sample.go.txt":[11200],"./sample.graphql.txt":[11093,1093],"./sample.handlebars.txt":[8884,8884],"./sample.hcl.txt":[64166,4166],"./sample.html.txt":[90348],"./sample.ini.txt":[71958,1958],"./sample.java.txt":[73486],"./sample.javascript.txt":[11039],"./sample.json.txt":[20230],"./sample.jsx.txt":[33528],"./sample.julia.txt":[47610,7610],"./sample.kotlin.txt":[90671,671],"./sample.less.txt":[68152,8152],"./sample.lex.txt":[43787,3787],"./sample.lexon.txt":[81033,1033],"./sample.liquid.txt":[24905,4905],"./sample.livescript.txt":[41108,1108],"./sample.lua.txt":[28660,8660],"./sample.m3.txt":[27695,7695],"./sample.markdown.txt":[79770],"./sample.mips.txt":[55942,5942],"./sample.msdax.txt":[93087,3087],"./sample.mysql.txt":[55718],"./sample.nginx.txt":[64272,4272],"./sample.objective-c.txt":[6401,6401],"./sample.pascal.txt":[99476,9476],"./sample.pascaligo.txt":[8569,8569],"./sample.perl.txt":[96466,6466],"./sample.pgsql.txt":[78031,8031],"./sample.php.txt":[17995],"./sample.pla.txt":[69321,9321],"./sample.plaintext.txt":[10602,602],"./sample.postiats.txt":[10428,428],"./sample.powerquery.txt":[6580,6580],"./sample.powershell.txt":[79336,9336],"./sample.proto.txt":[81600,1600],"./sample.pug.txt":[63834,3834],"./sample.python.txt":[2223],"./sample.qsharp.txt":[24668,4668],"./sample.r.txt":[74199,4199],"./sample.razor.txt":[91876,1876],"./sample.redis.txt":[13368,3368],"./sample.redshift.txt":[23969,3969],"./sample.restructuredtext.txt":[76203,6203],"./sample.ruby.txt":[53602,3602],"./sample.rust.txt":[74922],"./sample.sb.txt":[16365,6365],"./sample.scala.txt":[15194,5194],"./sample.scheme.txt":[80721,721],"./sample.scss.txt":[14695,4695],"./sample.shell.txt":[69512],"./sample.sol.txt":[71419,1419],"./sample.sparql.txt":[99308,9308],"./sample.sql.txt":[49347,9347],"./sample.st.txt":[66488,6488],"./sample.stylus.txt":[10877,877],"./sample.swift.txt":[31027],"./sample.systemverilog.txt":[84887,4887],"./sample.tcl.txt":[46636,6636],"./sample.toml.txt":[32980,2980],"./sample.tsx.txt":[17251],"./sample.twig.txt":[31635,1635],"./sample.typescript.txt":[53992],"./sample.vb.txt":[44187,4187],"./sample.vbscript.txt":[19200,9200],"./sample.verilog.txt":[94124,4124],"./sample.vue.txt":[10310,310],"./sample.xml.txt":[49294,9294],"./sample.yaml.txt":[89896,9896]};function r(t){if(!a.o(o,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=o[t],r=e[0];return Promise.all(e.slice(1).map(a.e)).then((()=>a(r)))}r.keys=()=>Object.keys(o),r.id=70620,t.exports=r}}]); +//# sourceMappingURL=6786.8fe6c399.chunk.js.map \ No newline at end of file diff --git a/static/js/6786.8fe6c399.chunk.js.map b/static/js/6786.8fe6c399.chunk.js.map new file mode 100644 index 000000000..485dec07a --- /dev/null +++ b/static/js/6786.8fe6c399.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/6786.8fe6c399.chunk.js","mappings":"0QAGO,MAAMA,EAAsB,CACjCC,QAAS,UACTC,YAAa,GACbC,aAAc,GACdC,WAAY,GACZC,KAAM,GACNC,eAAgB,UAChBC,SAAU,UACVC,aAAc,GACdC,QAAS,UACTC,gBAAiB,GACjBC,aAAc,UAC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,MACA,MAED,iBAAkB,CACjB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,uBAAwB,CACvB,KACA,MAED,4BAA6B,CAC5B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,mBAAoB,CACnB,OAED,oBAAqB,CACpB,MACA,MAED,0BAA2B,CAC1B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,2BAA4B,CAC3B,MACA,MAED,sBAAuB,CACtB,MACA,MAED,kBAAmB,CAClB,OAED,uBAAwB,CACvB,MACA,MAED,0BAA2B,CAC1B,KACA,MAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,OAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,OAED,0BAA2B,CAC1B,OAED,oBAAqB,CACpB,OAED,mBAAoB,CACnB,OAED,qBAAsB,CACrB,MACA,MAED,sBAAuB,CACtB,MACA,KAED,oBAAqB,CACpB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,0BAA2B,CAC1B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,wBAAyB,CACxB,OAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,OAED,qBAAsB,CACrB,MACA,MAED,2BAA4B,CAC3B,KACA,MAED,sBAAuB,CACtB,MACA,MAED,yBAA0B,CACzB,KACA,MAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,mBAAoB,CACnB,OAED,mBAAoB,CACnB,MACA,MAED,yBAA0B,CACzB,MACA,KAED,wBAAyB,CACxB,MACA,KAED,0BAA2B,CAC1B,KACA,MAED,0BAA2B,CAC1B,MACA,MAED,qBAAsB,CACrB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MAED,sBAAuB,CACtB,MACA,MAED,iBAAkB,CACjB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,gCAAiC,CAChC,MACA,MAED,oBAAqB,CACpB,MACA,MAED,oBAAqB,CACpB,OAED,kBAAmB,CAClB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,sBAAuB,CACtB,MACA,KAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,OAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,sBAAuB,CACtB,MACA,KAED,qBAAsB,CACrB,OAED,6BAA8B,CAC7B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,MACA,MAED,mBAAoB,CACnB,OAED,oBAAqB,CACpB,MACA,MAED,0BAA2B,CAC1B,OAED,kBAAmB,CAClB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,uBAAwB,CACvB,MACA,MAED,mBAAoB,CACnB,MACA,KAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,MACA,OAGF,SAASgD,EAAoBC,GAC5B,IAAIC,EAAoBC,EAAEnD,EAAKiD,GAC9B,OAAOG,QAAQC,UAAU3D,MAAK,KAC7B,IAAI4D,EAAI,IAAIC,MAAM,uBAAyBN,EAAM,KAEjD,MADAK,EAAEvC,KAAO,mBACHuC,CAAC,IAIT,IAAIE,EAAMxD,EAAIiD,GAAMQ,EAAKD,EAAI,GAC7B,OAAOJ,QAAQM,IAAIF,EAAIG,MAAM,GAAG3D,IAAIkD,EAAoBI,IAAI5D,MAAK,IACzDwD,EAAoBO,IAE7B,CACAT,EAAoBhE,KAAO,IAAOD,OAAOC,KAAKgB,GAC9CgD,EAAoBS,GAAK,MACzBG,EAAOC,QAAUb,C","sources":["pages/theme/editor/themeCode.ts","pages/theme/editor/ColorMenu.tsx","pages/theme/editor/SampleCode.tsx","pages/theme/editor/index.tsx","../../node_modules/code-example/txt|lazy|/^/.//sample/..*/.txt$/|groupOptions: {}|namespace object"],"sourcesContent":["import { CreateThemeOptions } from '@uiw/codemirror-themes';\nimport { Style } from './';\n\nexport const defalutStyle: Style = {\n comment: '#787b80',\n lineComment: '',\n blockComment: '',\n docComment: '',\n name: '',\n typeDefinition: '#194a7b',\n typeName: '#194a7b',\n typeStandard: '',\n tagName: '#008a02',\n tagNameStandard: '',\n variableName: '#1a00db',\n variableNameDefinition: '',\n variableNameFunction: '',\n propertyName: '',\n propertyNameDefinition: '',\n propertyNameFunction: '',\n propertyNameSpecial: '',\n attributeName: '',\n attributeValue: '',\n className: '',\n classNameConstant: '',\n labelName: '',\n namespace: '',\n macroName: '',\n literal: '',\n string: '',\n stringSpecial: '',\n docString: '',\n character: '',\n number: '',\n integer: '',\n float: '',\n bool: '',\n regexp: '',\n escape: '',\n color: '',\n url: '',\n keyword: '',\n self: '',\n null: '',\n atom: '',\n unit: '',\n modifier: '',\n operatorKeyword: '',\n controlKeyword: '',\n definitionKeyword: '',\n moduleKeyword: '',\n operator: '',\n derefOperator: '',\n arithmeticOperator: '',\n logicOperator: '',\n bitwiseOperator: '',\n\n brace: '',\n angleBracket: '',\n\n compareOperator: '',\n updateOperator: '',\n definitionOperator: '',\n typeOperator: '',\n controlOperator: '',\n punctuation: '',\n separator: '',\n bracket: '',\n squareBracket: '',\n paren: '',\n content: '',\n heading: '',\n heading1: '',\n heading2: '',\n heading3: '',\n heading4: '',\n heading5: '',\n heading6: '',\n contentSeparator: '',\n list: '',\n quote: '',\n emphasis: '',\n strong: '',\n link: '',\n monospace: '',\n strikethrough: '',\n inserted: '',\n deleted: '',\n changed: '',\n invalid: '',\n meta: '',\n documentMeta: '',\n annotation: '',\n processingInstruction: '',\n};\n\nexport type ThmeCodeStyle = Style & CreateThemeOptions['settings'] & { dark: CreateThemeOptions['theme'] };\n\nexport const themeCode = (styles: Partial = {}) => {\n const data: string[] = [];\n if (styles.comment) data.push(`{ tag: t.comment, color: '${styles.comment}' },`);\n if (styles.lineComment) data.push(`{ tag: t.lineComment, color: '${styles.lineComment}' },`);\n if (styles.blockComment) data.push(`{ tag: t.blockComment, color: '${styles.blockComment}' },`);\n if (styles.docComment) data.push(`{ tag: t.docComment, color: '${styles.docComment}' },`);\n if (styles.name) data.push(`{ tag: t.name, color: '${styles.name}' },`);\n if (styles.typeDefinition) data.push(`{ tag: t.definition(t.typeName), color: '${styles.typeDefinition}' },`);\n if (styles.typeName) data.push(`{ tag: t.typeName, color: '${styles.typeName}' },`);\n if (styles.typeStandard) data.push(`{ tag: t.standard(t.typeName), color: '${styles.typeName}' },`);\n if (styles.tagName) data.push(`{ tag: t.tagName, color: '${styles.tagName}' },`);\n if (styles.tagNameStandard) data.push(`{ tag: t.standard(t.tagName), color: '${styles.tagNameStandard}' },`);\n if (styles.variableName) data.push(`{ tag: t.variableName, color: '${styles.variableName}' },`);\n if (styles.variableNameDefinition)\n data.push(`{ tag: t.definition(t.variableName), color: '${styles.variableNameDefinition}' },`);\n if (styles.variableNameFunction)\n data.push(`{ tag: t.function(t.variableName), color: '${styles.variableNameFunction}' },`);\n if (styles.propertyName) data.push(`{ tag: t.propertyName, color: '${styles.propertyName}' },`);\n if (styles.propertyNameFunction)\n data.push(`{ tag: t.function(t.propertyName), color: '${styles.propertyNameFunction}' },`);\n if (styles.propertyNameDefinition)\n data.push(`{ tag: t.definition(t.propertyName), color: '${styles.propertyNameDefinition}' },`);\n if (styles.propertyNameSpecial)\n data.push(`{ tag: t.special(t.propertyName), color: '${styles.propertyNameSpecial}' },`);\n if (styles.attributeName) data.push(`{ tag: t.attributeName, color: '${styles.attributeName}' },`);\n if (styles.className) data.push(`{ tag: t.className, color: '${styles.className}' },`);\n if (styles.classNameConstant) data.push(`{ tag: t.constant(t.className), color: '${styles.className}' },`);\n if (styles.labelName) data.push(`{ tag: t.labelName, color: '${styles.labelName}' },`);\n if (styles.namespace) data.push(`{ tag: t.namespace, color: '${styles.namespace}' },`);\n if (styles.macroName) data.push(`{ tag: t.macroName, color: '${styles.macroName}' },`);\n if (styles.literal) data.push(`{ tag: t.literal, color: '${styles.literal}' },`);\n if (styles.string) data.push(`{ tag: t.string, color: '${styles.string}' },`);\n if (styles.stringSpecial) data.push(`{ tag: t.special(t.string), color: '${styles.stringSpecial}' },`);\n if (styles.docString) data.push(`{ tag: t.docString, color: '${styles.docString}' },`);\n if (styles.character) data.push(`{ tag: t.character, color: '${styles.character}' },`);\n if (styles.attributeValue) data.push(`{ tag: t.attributeValue, color: '${styles.attributeValue}' },`);\n if (styles.number) data.push(`{ tag: t.number, color: '${styles.number}' },`);\n if (styles.integer) data.push(`{ tag: t.integer, color: '${styles.integer}' },`);\n if (styles.float) data.push(`{ tag: t.float, color: '${styles.float}' },`);\n if (styles.bool) data.push(`{ tag: t.bool, color: '${styles.bool}' },`);\n if (styles.regexp) data.push(`{ tag: t.regexp, color: '${styles.regexp}' },`);\n if (styles.escape) data.push(`{ tag: t.escape, color: '${styles.escape}' },`);\n if (styles.color) data.push(`{ tag: t.color, color: '${styles.color}' },`);\n if (styles.url) data.push(`{ tag: t.url, color: '${styles.url}' },`);\n if (styles.keyword) data.push(`{ tag: t.keyword, color: '${styles.keyword}' },`);\n if (styles.self) data.push(`{ tag: t.self, color: '${styles.self}' },`);\n if (styles.null) data.push(`{ tag: t.null, color: '${styles.null}' },`);\n if (styles.atom) data.push(`{ tag: t.atom, color: '${styles.atom}' },`);\n if (styles.unit) data.push(`{ tag: t.unit, color: '${styles.unit}' },`);\n if (styles.modifier) data.push(`{ tag: t.modifier, color: '${styles.modifier}' },`);\n if (styles.operatorKeyword) data.push(`{ tag: t.operatorKeyword, color: '${styles.operatorKeyword}' },`);\n if (styles.controlKeyword) data.push(`{ tag: t.controlKeyword, color: '${styles.controlKeyword}' },`);\n if (styles.definitionKeyword) data.push(`{ tag: t.definitionKeyword, color: '${styles.definitionKeyword}' },`);\n if (styles.moduleKeyword) data.push(`{ tag: t.moduleKeyword, color: '${styles.moduleKeyword}' },`);\n if (styles.operator) data.push(`{ tag: t.operator, color: '${styles.operator}' },`);\n if (styles.derefOperator) data.push(`{ tag: t.derefOperator, color: '${styles.derefOperator}' },`);\n if (styles.arithmeticOperator) data.push(`{ tag: t.arithmeticOperator, color: '${styles.arithmeticOperator}' },`);\n if (styles.logicOperator) data.push(`{ tag: t.logicOperator, color: '${styles.logicOperator}' },`);\n if (styles.logicOperator) data.push(`{ tag: t.bitwiseOperator, color: '${styles.logicOperator}' },`);\n if (styles.compareOperator) data.push(`{ tag: t.compareOperator, color: '${styles.compareOperator}' },`);\n if (styles.updateOperator) data.push(`{ tag: t.updateOperator, color: '${styles.updateOperator}' },`);\n if (styles.definitionOperator) data.push(`{ tag: t.definitionOperator, color: '${styles.definitionOperator}' },`);\n if (styles.typeOperator) data.push(`{ tag: t.typeOperator, color: '${styles.typeOperator}' },`);\n if (styles.controlOperator) data.push(`{ tag: t.controlOperator, color: '${styles.controlOperator}' },`);\n if (styles.punctuation) data.push(`{ tag: t.punctuation, color: '${styles.punctuation}' },`);\n if (styles.separator) data.push(`{ tag: t.separator, color: '${styles.separator}' },`);\n if (styles.bracket) data.push(`{ tag: t.bracket, color: '${styles.bracket}' },`);\n if (styles.angleBracket) data.push(`{ tag: t.angleBracket, color: '${styles.angleBracket}' },`);\n if (styles.squareBracket) data.push(`{ tag: t.squareBracket, color: '${styles.squareBracket}' },`);\n if (styles.paren) data.push(`{ tag: t.paren, color: '${styles.paren}' },`);\n if (styles.brace) data.push(`{ tag: t.brace, color: '${styles.brace}' },`);\n if (styles.content) data.push(`{ tag: t.content, color: '${styles.content}' },`);\n if (styles.heading) data.push(`{ tag: t.heading, color: '${styles.heading}' },`);\n if (styles.heading1) data.push(`{ tag: t.heading1, color: '${styles.heading1}' },`);\n if (styles.heading2) data.push(`{ tag: t.heading2, color: '${styles.heading2}' },`);\n if (styles.heading3) data.push(`{ tag: t.heading3, color: '${styles.heading3}' },`);\n if (styles.heading4) data.push(`{ tag: t.heading4, color: '${styles.heading4}' },`);\n if (styles.heading5) data.push(`{ tag: t.heading5, color: '${styles.heading5}' },`);\n if (styles.heading6) data.push(`{ tag: t.heading6, color: '${styles.heading6}' },`);\n if (styles.contentSeparator) data.push(`{ tag: t.contentSeparator, color: '${styles.contentSeparator}' },`);\n if (styles.list) data.push(`{ tag: t.list, color: '${styles.list}' },`);\n if (styles.quote) data.push(`{ tag: t.quote, color: '${styles.quote}' },`);\n if (styles.emphasis) data.push(`{ tag: t.emphasis, color: '${styles.emphasis}' },`);\n if (styles.strong) data.push(`{ tag: t.strong, color: '${styles.strong}' },`);\n if (styles.link) data.push(`{ tag: t.link, color: '${styles.link}' },`);\n if (styles.monospace) data.push(`{ tag: t.monospace, color: '${styles.monospace}' },`);\n if (styles.strikethrough) data.push(`{ tag: t.strikethrough, color: '${styles.strikethrough}' },`);\n if (styles.inserted) data.push(`{ tag: t.inserted, color: '${styles.inserted}' },`);\n if (styles.deleted) data.push(`{ tag: t.deleted, color: '${styles.deleted}' },`);\n if (styles.changed) data.push(`{ tag: t.changed, color: '${styles.changed}' },`);\n if (styles.invalid) data.push(`{ tag: t.invalid, color: '${styles.invalid}' },`);\n if (styles.meta) data.push(`{ tag: t.meta, color: '${styles.meta}' },`);\n if (styles.documentMeta) data.push(`{ tag: t.documentMeta, color: '${styles.documentMeta}' },`);\n if (styles.annotation) data.push(`{ tag: t.annotation, color: '${styles.annotation}' },`);\n if (styles.processingInstruction)\n data.push(`{ tag: t.processingInstruction, color: '${styles.processingInstruction}' },`);\n\n return `import CodeMirror from '@uiw/react-codemirror';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { tags as t } from '@lezer/highlight';\n\nconst myTheme = createTheme({\n dark: '${styles.dark}',\n settings: {\n background: '${styles.background}',\n backgroundImage: '',\n foreground: '${styles.foreground}',\n caret: '${styles.caret}',\n selection: '${styles.selection}',\n selectionMatch: '${styles.selectionMatch}',\n gutterBackground: '${styles.gutterBackground}',\n gutterForeground: '${styles.gutterForeground}',\n gutterBorder: '${styles.gutterBorder}',\n gutterActiveForeground: '${styles.gutterActiveForeground}',\n lineHighlight: '${styles.lineHighlight}',\n },\n styles: [\n ${data.join('\\n ')}\n ],\n});\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;`;\n};\n","import { FC, PropsWithChildren } from 'react';\nimport styled, { css } from 'styled-components';\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\n\nexport interface ColorMenuProps\n extends React.DetailedHTMLProps, HTMLInputElement> {\n color?: string;\n}\n\nconst Warpper = styled.div`\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n`;\n\nconst Label = styled.div`\n /* font-weight: bold; */\n`;\n\nconst ColorWarpper = styled.div<{ color?: string }>`\n width: 16px;\n height: 16px;\n overflow: hidden;\n border: 1px solid var(--color-border-default);\n border-radius: 3px;\n position: relative;\n background-image: url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cpattern id='a' width='12' height='12' patternUnits='userSpaceOnUse'%3E%3Cpath fill='rgba(0, 0, 0, 0.06)' d='M0 0h8v8H0zm8 8h8v8H8z'/%3E%3C/pattern%3E%3Crect fill='url(%23a)' width='100%25' height='100%25'/%3E%3C/svg%3E\");\n &::before {\n content: ' ';\n display: block;\n position: absolute;\n left: 1px;\n right: 1px;\n top: 1px;\n bottom: 1px;\n border-radius: 2px;\n ${(props) =>\n props.color &&\n css`\n background-color: ${props.color};\n `}\n }\n input {\n position: relative;\n z-index: 3;\n border: 0;\n background-color: transparent;\n padding-left: 16px;\n height: 16px;\n }\n`;\n\nconst ColorPicker: FC, HTMLInputElement>> = ({\n children,\n onChange,\n ...props\n}) => {\n return (\n \n \n \n );\n};\n\nexport const ColorMenu: React.FC> = ({ color, children, ...other }) => {\n return (\n \n \n \n \n );\n};\n\ninterface SwitchThemeProps {\n theme?: CreateThemeOptions['theme'];\n onChange?: (theme: CreateThemeOptions['theme']) => void;\n}\n\nexport const SwitchTheme = ({ theme, onChange }: SwitchThemeProps) => {\n const handleChange = (event: React.ChangeEvent, theme: CreateThemeOptions['theme']) => {\n onChange && onChange(theme);\n };\n return (\n
\n \n \n
\n );\n};\n","import { FC, PropsWithoutRef, useEffect, useState } from 'react';\nimport styled from 'styled-components';\nimport { Extension } from '@codemirror/state';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport { ThmeCodeStyle } from './themeCode';\nimport { themeCode } from './themeCode';\n\nexport const Select = styled.select`\n position: absolute;\n right: 10px;\n top: 10px;\n padding: 3px 6px;\n z-index: 9;\n`;\n\ninterface SampleCodeProps\n extends Omit, HTMLSelectElement>, 'onChange'> {\n styles?: ThmeCodeStyle;\n onChange?: (code: string, lang: string, extension?: Extension) => void;\n}\n\nconst data = Object.keys(langs);\n\nexport const SampleCode: FC> = ({ onChange, styles, ...props }) => {\n const [lang, setLang] = useState('code');\n const handleChange = (evn: React.ChangeEvent) => {\n const langStr = evn.target.value;\n setLang(langStr);\n if (langStr === 'code') {\n onChange && onChange(themeCode(styles), 'code', langs['jsx']());\n return;\n }\n try {\n import(`code-example/txt/sample.${langStr.toLocaleLowerCase()}.txt`)\n .then((data) => {\n const extension = langs[langStr as keyof typeof langs];\n onChange && onChange(data.default as string, langStr, extension ? extension() : undefined);\n })\n .catch((err) => {\n onChange && onChange('', '', undefined);\n });\n if (lang === 'html') {\n }\n } catch (error) {}\n };\n useEffect(() => {\n if (lang === 'code') {\n onChange && onChange(themeCode(styles), 'code', langs['jsx']());\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return (\n \n );\n};\n","import { Fragment, useState } from 'react';\nimport { Extension } from '@codemirror/state';\nimport CodeMirror from '@uiw/react-codemirror';\nimport { color } from '@uiw/codemirror-extensions-color';\nimport styled from 'styled-components';\nimport { useParams, useNavigate } from 'react-router-dom';\nimport '@wcj/dark-mode';\nimport createTheme, { CreateThemeOptions } from '@uiw/codemirror-themes';\nimport { tags as t } from '@lezer/highlight';\nimport { TagStyle } from '@codemirror/language';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { defalutStyle } from './themeCode';\nimport { ColorMenu, SwitchTheme } from './ColorMenu';\nimport { SampleCode, Select } from './SampleCode';\nimport { themeCode } from './themeCode';\nimport { Sample } from '../themes/Sample';\n\nexport const Sider = styled.div`\n width: 220px;\n min-width: 220px;\n overflow: auto;\n height: calc(100vh - 42px);\n padding: 18px 16px 120px 16px;\n border-right: 1px solid var(--color-border-default);\n display: flex;\n flex-direction: column;\n gap: 5px;\n`;\n\nconst EditorView = styled.div`\n height: 100%;\n width: 100%;\n overflow: auto;\n display: flex;\n flex-direction: column;\n height: calc(100vh - 42px);\n position: relative;\n`;\n\nconst SubTitle = styled.div`\n color: var(--color-fg-subtle);\n font-size: 12px;\n padding: 0 0;\n`;\n\nfunction getStyle(color?: string, tagStyle?: TagStyle) {\n if (color && tagStyle) {\n tagStyle.color = color;\n return [tagStyle];\n }\n return [];\n}\n\nexport type Style = Partial<\n Record, string>\n> & {\n typeDefinition?: string;\n typeStandard?: string;\n variableNameDefinition: string;\n variableNameFunction: string;\n propertyNameDefinition: string;\n propertyNameFunction: string;\n propertyNameSpecial: string;\n classNameConstant: string;\n stringSpecial: string;\n tagNameStandard: string;\n};\n\nexport function ThemeEditor() {\n const navigate = useNavigate();\n const { type = 'multiple' } = useParams();\n const [extension, setExtension] = useState(javascript({ jsx: true }));\n const [code, setCode] = useState('');\n const [lang, setLang] = useState('jsx');\n const [theme, setTheme] = useState('light');\n const [settings, setSettings] = useState({\n background: '#ffffff',\n foreground: '#4D4D4C',\n caret: '#AEAFAD',\n selection: '#D6D6D6',\n selectionMatch: '#D6D6D6',\n gutterBackground: '#FFFFFF',\n gutterForeground: '#4D4D4C',\n gutterBorder: '#dddddd',\n gutterActiveForeground: '',\n lineHighlight: '#EFEFEF',\n });\n\n const [styles, setStyles] = useState\n\n';class d extends HTMLElement{static get observedAttributes(){return["style","z-index","target","height","width","href","color","fill","position","top","left","right","bottom","transform"]}constructor(){super(),this.right="0",this.shadow=this.attachShadow({mode:"open"}),this.shadow.appendChild(this.ownerDocument.importNode(m.content,!0)),this.update()}setAttr(e,t){const r=this.shadow.querySelector("svg");/(href)/.test(e.toLocaleLowerCase())?r.lastElementChild.setAttribute("xlink:href",t):/(color|fill)/.test(e.toLocaleLowerCase())?r.firstElementChild.style[e]=t:/(z-index|position|top|left|right|bottom|transform)/.test(e.toLocaleLowerCase())?r.style[e]=t:r.setAttribute(e,t)}update(){[...this.getAttributeNames(),"right"].forEach((e=>{const t=this.getAttribute(e)||this[e]||"";this.setAttr(e,t)}))}attributeChangedCallback(e,t,r){t!==r&&this.setAttr(e,r)}}customElements.define("github-corners",d);var l=r(79584),h=["size","fixed","bottom","zIndex","className","style","bgColor","color","position"];function p(e){var{size:t=80,fixed:r=!1,bottom:o,zIndex:i,style:n,bgColor:s="#151513",color:m="#fff",position:d="right"}=e,p=(0,c.Z)(e,h),u="left"===d?{left:0,right:"initial",transform:"scale(-1, 1)"}:{right:0,left:"initial",transform:"scale(1, 1)"};return o?(u.bottom=0,u.top="initial",u.transform="left"===d?"scale(-1, -1)":"scale(1, -1)"):(u.bottom="initial",u.top=0),(0,l.jsx)("github-corners",(0,a.Z)({target:"__blank",width:t,height:t,href:e.href,position:r?"fixed":"absolute","z-index":i,style:n,fill:s,color:m},u,p))}var u=r(2031),g=r(49635),w=["type","platform","base","property","user","repo","label"],v=i.forwardRef(((e,t)=>{var{type:r="issues",platform:o="github",base:i="https://img.shields.io",property:n,user:s,repo:m,label:d}=e,h=(0,c.Z)(e,w);return(0,l.jsx)(g.J,(0,a.Z)({imgSrc:"github"!==o?"":"issues"===r||/^issues-(raw|closed|closed-raw|pr|pr-raw|pr-closed|pr-closed-raw)/.test(r)?d&&("issues"===r||/^issues-(raw|pr|pr-raw)/.test(r||""))?[i,o,r,s,m,d].join("/"):[i,o,r,s,m].join("/"):"issueKind"===r?[i,o,r,"detail",n,s,m].join("/"):"",ref:t},h))}));v.displayName="Issues";var x=["type","platform","base","user","repo","path"],b=i.forwardRef(((e,t)=>{var{type:r="languages",platform:o="github",base:i="https://img.shields.io",user:n,repo:s,path:m}=e,d=(0,c.Z)(e,x);return(0,l.jsx)(g.J,(0,a.Z)({imgSrc:"github"!==o?"":"languages"===r?[i,o,r,"code-size",n,s].join("/"):"repo-size"===r?[i,o,r,n,s].join("/"):"size"===r&&m?[i,o,r,n,s,m].join("/"):"",ref:t},d))}));b.displayName="Size";var f=["platform","type","base","user","repo"],j=i.forwardRef(((e,t)=>{var{platform:r="github",type:o="license",base:i="https://img.shields.io",user:n,repo:s}=e,m=(0,c.Z)(e,f);return(0,l.jsx)(g.J,(0,a.Z)({imgSrc:"github"!==r?"":[i,r,o,n,s].join("/"),ref:t},m))}));j.displayName="License";var k=["platform","type","base","user","repo","tag","path","total"],y=i.forwardRef(((e,t)=>{var{platform:r="github",type:o="downloads",base:i="https://img.shields.io",user:n,repo:s,tag:m,path:d,total:h=!0}=e,p=(0,c.Z)(e,k);return(0,l.jsx)(g.J,(0,a.Z)({imgSrc:(()=>{if("github"!==r||!/^(downloads|downloads-pre)/.test(o||""))return"";var e=[i,r,o,n,s];return d&&m?[...e,m,d].join("/"):h&&m||"downloads-pre"===o&&m&&h?[...e,m,"total"].join("/"):h?[...e,"total"].join("/"):""})(),ref:t},p))}));y.displayName="Downloads";const C=y;var S=["platform","base","type","user","repo","interval","variant","version","branch"],M=i.forwardRef(((e,t)=>{var{platform:r="github",base:o="https://img.shields.io",type:i="commits-since",user:n,repo:s,interval:m,variant:d,version:h,branch:p}=e,u=(0,c.Z)(e,S);return(0,l.jsx)(g.J,(0,a.Z)({imgSrc:"github"!==r?"":"commits-since"===i&&h&&p?[o,r,i,n,s,h,p].join("/"):"commit-activity"===i&&m?[o,r,i,m,n,s].join("/"):"variant"===i&&d?[o,r,i,d,n,s].join("/"):"last-commit"===i?p?[o,r,i,n,s,p].join("/"):[o,r,i,n,s].join("/"):i&&/^release-(date|date-pre)/.test(i)?[o,r,i,n,s].join("/"):"",ref:t},u))}));M.displayName="Activity";const N=M;var E=["platform","type","base","user","repo","branch"];const P=i.forwardRef(((e,t)=>{var{platform:r="github",type:o="version-release",base:i="https://img.shields.io",user:n,repo:s,branch:m}=e,d=(0,c.Z)(e,E);return(0,l.jsx)(g.J,(0,a.Z)({imgSrc:(()=>{var e="";switch(o){case"version-release":e="v/release";break;case"version-tag":e="v/tag";break;case"package-json":e="package-json/v";break;case"manifest-json":e="manifest-json/v";break;case"go-mod":e="go-mod/go-version"}if("github"!==r||!e)return"";var t=[i,r,e,n,s];return/(go-mod|manifest-json|package-json)/.test(o||"")&&m?[...t,m].join("/"):t.join("/")})(),ref:t},d))}));var D=["platform","type","base","user","repo","query"],A=i.forwardRef(((e,t)=>{var{platform:r="github",type:o="languages-count",base:i="https://img.shields.io",user:n,repo:s,query:m}=e,d=(0,c.Z)(e,D);return(0,l.jsx)(g.J,(0,a.Z)({imgSrc:(()=>{var e="";switch(o){case"languages-count":e="languages/count";break;case"languages-top":e="languages/top";break;case"search":e="search"}if("github"!==r||!e)return"";var t=[i,r,e,n,s];return m?[...t,m].join("/"):t.join("/")})(),ref:t},d))}));A.displayName="Analysis";const R=A;var O=["type","platform","base","user","repo"],z=i.forwardRef(((e,t)=>{var{type:r="followers",platform:o="github",base:i="https://img.shields.io",user:n,repo:s}=e,m=(0,c.Z)(e,O);return(0,l.jsx)(g.J,(0,a.Z)({imgSrc:"github"!==o?"":"followers"===r?[i,o,r,n].join("/"):[i,o,r,n,s].join("/"),ref:t},m))}));z.displayName="Social";const L=z;var T=e=>(0,l.jsx)(u.Z,(0,a.Z)({},e));T.Issues=v,T.Size=b,T.Downloads=C,T.License=j,T.Activity=N,T.Analysis=R,T.Version=P,T.Social=L,T.displayName="Github";const Z=T;var K=r(65408),_=r(50246),I=r(61221),U=r(54311),V=r(91135);const q={components:{101:function(){var e=i(r(83528)),t=i(r(4801)),o=r(16718);function i(e){return e&&e.__esModule?e:{default:e}}function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var o,i,n,s,a=[],c=!0,m=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(o=n.call(r)).done)&&(a.push(o.value),a.length!==t);c=!0);}catch(e){m=!0,i=e}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(m)throw i}}return a}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction App() {\n var _React$useState = _react["default"].useState("console.log(\'hello world!\');"),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n value = _React$useState2[0],\n setValue = _React$useState2[1];\n var onChange = _react["default"].useCallback(function (val, viewUpdate) {\n console.log(\'val:\', val);\n setValue(val);\n }, []);\n return /*#__PURE__*/_react["default"].createElement(_reactCodemirror["default"], {\n value: value,\n height: "200px",\n extensions: [(0, _langJavascript.javascript)({\n jsx: true\n })],\n onChange: onChange\n });\n}\nreturn App;',language:"jsx",value:"import React from 'react';\nimport CodeMirror from '@uiw/react-codemirror';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n const [value, setValue] = React.useState(\"console.log('hello world!');\");\n const onChange = React.useCallback((val, viewUpdate) => {\n console.log('val:', val);\n setValue(val);\n }, []);\n return ;\n}\nexport default App;"}},source:"

\n \n \"react-codemirror\n \n

\n\n# react-codemirror\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![jsdelivr CDN](https://data.jsdelivr.com/v1/package/npm/@uiw/react-codemirror/badge)](https://www.jsdelivr.com/package/npm/@uiw/react-codemirror)\n[![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-codemirror.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-codemirror)\n[![Build & Deploy](https://github.com/uiwjs/react-codemirror/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-codemirror/actions)\n[![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codemirror/file/README.md)\n[![npm version](https://img.shields.io/npm/v/@uiw/react-codemirror.svg)](https://www.npmjs.com/package/@uiw/react-codemirror)\n[![Coverage Status](https://uiwjs.github.io/react-codemirror/coverage/badges.svg)](https://uiwjs.github.io/react-codemirror/coverage/lcov-report/)\n[![Open in Gitpod](https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod)](https://gitpod.io/#https://github.com/uiwjs/react-codemirror)\n\nCodeMirror component for React. Demo Preview: [@uiwjs.github.io/react-codemirror](https://uiwjs.github.io/react-codemirror/)\n\n\x3c!--rehype:style=border-left: 8px solid #ffe564;background-color: #ffe56440;padding: 12px 16px;--\x3e\n\n**Features:**\n\n\ud83d\ude80 Quickly and easily configure the API. \n\ud83c\udf31 Versions after `@uiw/react-codemirror@v4`\x3c!--rehype:style=background-color: #ffe564; padding: 1px 4px;--\x3e use [codemirror 6](https://codemirror.net/). [#88](https://github.com/uiwjs/react-codemirror/issues/88#issuecomment-914185563). \n\u269b\ufe0f Support the features of React Hook(requires React 16.8+). \n\ud83d\udcda Use Typescript to write, better code hints. \n\ud83c\udf10 The bundled version supports use directly in the browser [#267](https://github.com/uiwjs/react-codemirror/issues/267#issuecomment-1041227592). \n\ud83c\udf0e There are better [sample previews](https://uiwjs.github.io/react-codemirror). \n\ud83c\udfa8 Support [theme](https://uiwjs.github.io/react-codemirror/#/theme/data/dracula) customization, provide theme [editor](https://uiwjs.github.io/react-codemirror/#/editor/theme).\n\n## Install\n\n**Not dependent on uiw.**\n\n```bash\nnpm install @uiw/react-codemirror --save\n```\n\n**All Packages**\n\n| Name | NPM Version |\n| :-------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [`@uiw/react-codemirror`](https://uiwjs.github.io/react-codemirror) | [![npm version](https://img.shields.io/npm/v/@uiw/react-codemirror.svg)](https://www.npmjs.com/package/@uiw/react-codemirror) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-codemirror.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-codemirror) |\n| [`react-codemirror-merge`](https://uiwjs.github.io/react-codemirror/#/merge/document) | [![npm version](https://img.shields.io/npm/v/react-codemirror-merge.svg)](https://www.npmjs.com/package/react-codemirror-merge) [![NPM Downloads](https://img.shields.io/npm/dm/react-codemirror-merge.svg?style=flat)](https://www.npmjs.com/package/react-codemirror-merge) |\n| [`@uiw/codemirror-extensions-basic-setup`](https://uiwjs.github.io/react-codemirror/#/extensions/basic-setup) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-basic-setup.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-basic-setup) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-basic-setup.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-basic-setup) |\n| [`@uiw/codemirror-extensions-color`](https://uiwjs.github.io/react-codemirror/#/extensions/color) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-color.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-color) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-color.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-color) |\n| [`@uiw/codemirror-extensions-classname`](https://uiwjs.github.io/react-codemirror/#/extensions/classname) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-classname.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-classname) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-classname.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-classname) |\n| [`@uiw/codemirror-extensions-events`](https://uiwjs.github.io/react-codemirror/#/extensions/events) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-events.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-events) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-events.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-events) |\n| [`@uiw/codemirror-extensions-hyper-link`](https://uiwjs.github.io/react-codemirror/#/extensions/hyper-link) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-hyper-link.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-hyper-link) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-hyper-link.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-hyper-link) |\n| [`@uiw/codemirror-extensions-langs`](https://uiwjs.github.io/react-codemirror/#/extensions/languages) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-langs.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-langs) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-langs.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-langs) |\n| [`@uiw/codemirror-extensions-line-numbers-relative`](https://uiwjs.github.io/react-codemirror/#/extensions/line-numbers-relative) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-line-numbers-relative.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-line-numbers-relative) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-line-numbers-relative.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-line-numbers-relative) |\n| [`@uiw/codemirror-extensions-mentions`](https://uiwjs.github.io/react-codemirror/#/extensions/mentions) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-mentions.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-mentions) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-mentions.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-mentions) |\n| [`@uiw/codemirror-extensions-zebra-stripes`](https://uiwjs.github.io/react-codemirror/#/extensions/zebra-stripes) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-zebra-stripes.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-zebra-stripes) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-zebra-stripes.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-zebra-stripes) |\n| [`@uiw/codemirror-themes`](https://uiwjs.github.io/react-codemirror/#/theme/doc) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-themes.svg)](https://www.npmjs.com/package/@uiw/codemirror-themes) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-themes.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-themes) |\n\n| Name | NPM Version |\n| :----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| [`@uiw/codemirror-themes-all`](https://uiwjs.github.io/react-codemirror/#/theme/all) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-themes-all.svg)](https://www.npmjs.com/package/@uiw/codemirror-themes-all) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-themes-all.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-themes-all) |\n| [`@uiw/codemirror-theme-abcdef`](https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abcdef.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-abcdef) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-abcdef.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-abcdef) |\n| [`@uiw/codemirror-theme-abyss`](https://uiwjs.github.io/react-codemirror/#/theme/data/abyss) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abyss.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-abyss) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-abyss.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-abyss) |\n| [`@uiw/codemirror-theme-androidstudio`](https://uiwjs.github.io/react-codemirror/#/theme/data/androidstudio) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-androidstudio.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-androidstudio) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-androidstudio.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-androidstudio) |\n| [`@uiw/codemirror-theme-andromeda`](https://uiwjs.github.io/react-codemirror/#/theme/data/andromeda) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-andromeda.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-andromeda) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-andromeda.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-andromeda) |\n| [`@uiw/codemirror-theme-atomone`](https://uiwjs.github.io/react-codemirror/#/theme/data/atomone) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-atomone.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-atomone) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-atomone.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-atomone) |\n| [`@uiw/codemirror-theme-aura`](https://uiwjs.github.io/react-codemirror/#/theme/data/aura) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-aura.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-aura) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-aura.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-aura) |\n| [`@uiw/codemirror-theme-basic`](https://uiwjs.github.io/react-codemirror/#/theme/data/bbedit) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-basic.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-basic) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-basic.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-basic) |\n| [`@uiw/codemirror-theme-bbedit`](https://uiwjs.github.io/react-codemirror/#/theme/data/bbedit) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-bbedit.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-bbedit) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-bbedit.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-bbedit) |\n| [`@uiw/codemirror-theme-bespin`](https://uiwjs.github.io/react-codemirror/#/theme/data/bespin) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-bespin.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-bespin) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-bespin.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-bespin) |\n| [`@uiw/codemirror-theme-copilot`](https://uiwjs.github.io/react-codemirror/#/theme/data/copilot) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-copilot.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-copilot) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-copilot.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-copilot) |\n| [`@uiw/codemirror-theme-duotone`](https://uiwjs.github.io/react-codemirror/#/theme/data/duotone/light) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-duotone.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-duotone) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-duotone.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-duotone) |\n| [`@uiw/codemirror-theme-dracula`](https://uiwjs.github.io/react-codemirror/#/theme/data/dracula) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-dracula.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-dracula) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-dracula.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-dracula) |\n| [`@uiw/codemirror-theme-darcula`](https://uiwjs.github.io/react-codemirror/#/theme/data/darcula) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-darcula.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-darcula) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-darcula.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-darcula) |\n| [`@uiw/codemirror-theme-eclipse`](https://uiwjs.github.io/react-codemirror/#/theme/data/eclipse) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-eclipse.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-eclipse) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-eclipse.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-eclipse) |\n| [`@uiw/codemirror-theme-github`](https://uiwjs.github.io/react-codemirror/#/theme/data/github) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-github.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-github) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-github.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-github) |\n| [`@uiw/codemirror-theme-gruvbox-dark`](https://uiwjs.github.io/react-codemirror/#/theme/data/gruvbox/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-gruvbox-dark.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-gruvbox-dark) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-gruvbox-dark.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-gruvbox-dark) |\n| [`@uiw/codemirror-theme-kimbie`](https://uiwjs.github.io/react-codemirror/#/theme/data/kimbie/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-kimbie.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-kimbie.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie) |\n| [`@uiw/codemirror-theme-kimbie`](https://uiwjs.github.io/react-codemirror/#/theme/data/kimbie/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-kimbie.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-kimbie.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie) |\n| [`@uiw/codemirror-theme-material`](https://uiwjs.github.io/react-codemirror/#/theme/data/material/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-material.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-material) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-material.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-material) |\n| [`@uiw/codemirror-theme-monokai`](https://uiwjs.github.io/react-codemirror/#/theme/data/monokai) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-monokai.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-monokai) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-monokai.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-monokai) |\n| [`@uiw/codemirror-theme-noctis-lilac`](https://uiwjs.github.io/react-codemirror/#/theme/data/noctis-lilac) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-noctis-lilac.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-noctis-lilac) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-noctis-lilac.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-noctis-lilac) |\n| [`@uiw/codemirror-theme-nord`](https://uiwjs.github.io/react-codemirror/#/theme/data/nord) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-nord.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-nord) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-nord.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-nord) |\n| [`@uiw/codemirror-theme-okaidia`](https://uiwjs.github.io/react-codemirror/#/theme/data/okaidia) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-okaidia.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-okaidia) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-okaidia.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-okaidia) |\n| [`@uiw/codemirror-theme-quietlight`](https://uiwjs.github.io/react-codemirror/#/theme/data/quietlight) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-quietlight.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-quietlight) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-quietlight.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-quietlight) |\n| [`@uiw/codemirror-theme-red`](https://uiwjs.github.io/react-codemirror/#/theme/data/red) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-red.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-red) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-red.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-red) |\n| [`@uiw/codemirror-theme-solarized`](https://uiwjs.github.io/react-codemirror/#/theme/data/solarized/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-solarized.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-solarized) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-solarized.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-solarized) |\n| [`@uiw/codemirror-theme-sublime`](https://uiwjs.github.io/react-codemirror/#/theme/data/sublime) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-sublime.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-sublime) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-sublime.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-sublime) |\n| [`@uiw/codemirror-theme-tokyo-night`](https://uiwjs.github.io/react-codemirror/#/theme/data/tokyo-night) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tokyo-night.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night) |\n| [`@uiw/codemirror-theme-tokyo-night-storm`](https://uiwjs.github.io/react-codemirror/#/theme/data/tokyo-night-storm) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-storm.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-storm) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tokyo-night-storm.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-storm) |\n| [`@uiw/codemirror-theme-tokyo-night-day`](https://uiwjs.github.io/react-codemirror/#/theme/data/tokyo-night-day) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-day.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-day) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tokyo-night-day.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-day) |\n| [`@uiw/codemirror-theme-vscode`](https://uiwjs.github.io/react-codemirror/#/theme/data/vscode) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-vscode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-vscode) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-vscode.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-vscode) |\n| [`@uiw/codemirror-theme-white`](https://uiwjs.github.io/react-codemirror/#/theme/data/white/light) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-white.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-white) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-white.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-white) |\n| [`@uiw/codemirror-theme-tomorrow-night-blue`](https://uiwjs.github.io/react-codemirror/#/theme/data/tomorrow-night-blue) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tomorrow-night-blue.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tomorrow-night-blue) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tomorrow-night-blue.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tomorrow-night-blue) |\n| [`@uiw/codemirror-theme-xcode`](https://uiwjs.github.io/react-codemirror/#/theme/data/xcode) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-xcode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-xcode) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-xcode.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-xcode) |\n\n\x3c!--rehype:style=width: 100%; display: inline-table;--\x3e\n\n## Usage\n\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-slvju?fontsize=14&hidenavigation=1&theme=dark)\n\n```jsx mdx:preview\nimport React from 'react';\nimport CodeMirror from '@uiw/react-codemirror';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n const [value, setValue] = React.useState(\"console.log('hello world!');\");\n const onChange = React.useCallback((val, viewUpdate) => {\n console.log('val:', val);\n setValue(val);\n }, []);\n return ;\n}\nexport default App;\n```\n\n## Support Language\n\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-language-rz4rh?fontsize=14&hidenavigation=1&theme=dark)\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { StreamLanguage } from '@codemirror/language';\nimport { go } from '@codemirror/legacy-modes/mode/go';\n\nconst goLang = `package main\nimport \"fmt\"\n\nfunc main() {\n fmt.Println(\"Hello, \u4e16\u754c\")\n}`;\n\nexport default function App() {\n return ;\n}\n```\n\n- ~~`@codemirror/legacy-modes/mode/cpp`~~ => [`@codemirror/lang-cpp`](https://www.npmjs.com/package/@codemirror/lang-cpp)\n- ~~`@codemirror/legacy-modes/mode/html`~~ => [`@codemirror/lang-html`](https://www.npmjs.com/package/@codemirror/lang-html)\n- ~~`@codemirror/legacy-modes/mode/java`~~ => [`@codemirror/lang-java`](https://www.npmjs.com/package/@codemirror/lang-java)\n- ~~`@codemirror/legacy-modes/mode/javascript`~~ => [`@codemirror/lang-javascript`](https://www.npmjs.com/package/@codemirror/lang-javascript)\n- ~~`@codemirror/legacy-modes/mode/json`~~ => [`@codemirror/lang-json`](https://www.npmjs.com/package/@codemirror/lang-json)\n- ~~`@codemirror/legacy-modes/mode/lezer`~~ => [`@codemirror/lang-lezer`](https://www.npmjs.com/package/@codemirror/lang-lezer)\n- ~~`@codemirror/legacy-modes/mode/markdown`~~ => [`@codemirror/lang-markdown`](https://www.npmjs.com/package/@codemirror/lang-markdown)\n- ~~`@codemirror/legacy-modes/mode/php`~~ => [`@codemirror/lang-php`](https://www.npmjs.com/package/@codemirror/lang-php)\n- ~~`@codemirror/legacy-modes/mode/python`~~ => [`@codemirror/lang-python`](https://www.npmjs.com/package/@codemirror/lang-python)\n- ~~`@codemirror/legacy-modes/mode/rust`~~ => [`@codemirror/lang-rust`](https://www.npmjs.com/package/@codemirror/lang-rust)\n- ~~`@codemirror/legacy-modes/mode/sql`~~ => [`@codemirror/lang-sql`](https://www.npmjs.com/package/@codemirror/lang-sql)\n- ~~`@codemirror/legacy-modes/mode/xml`~~ => [`@codemirror/lang-xml`](https://www.npmjs.com/package/@codemirror/lang-xml)\n- ~~`@codemirror/legacy-modes/mode/css`~~ => [`@codemirror/lang-less`](https://www.npmjs.com/package/@codemirror/lang-less)\n- ~~`@codemirror/legacy-modes/mode/sass`~~ => [`@codemirror/lang-sass`](https://www.npmjs.com/package/@codemirror/lang-sass)\n- ~~`@codemirror/legacy-modes/mode/clojure`~~ => [`@nextjournal/lang-clojure`](https://www.npmjs.com/package/@nextjournal/lang-clojure)\n- ~~`@codemirror/legacy-modes/mode/clike`~~ => [`@replit/codemirror-lang-csharp`](https://www.npmjs.com/package/@replit/codemirror-lang-csharp)\n\n### Markdown Example\n\nMarkdown language code is automatically highlighted.\n\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-markdown-auto-languages-iudnj?fontsize=14&hidenavigation=1&theme=dark)\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { markdown, markdownLanguage } from '@codemirror/lang-markdown';\nimport { languages } from '@codemirror/language-data';\n\nconst code = `## Title\n\n\\`\\`\\`jsx\nfunction Demo() {\n return
demo
\n}\n\\`\\`\\`\n\n\\`\\`\\`bash\n# Not dependent on uiw.\nnpm install @codemirror/lang-markdown --save\nnpm install @codemirror/language-data --save\n\\`\\`\\`\n\n[weisit ulr](https://uiwjs.github.io/react-codemirror/)\n\n\\`\\`\\`go\npackage main\nimport \"fmt\"\nfunc main() {\n fmt.Println(\"Hello, \u4e16\u754c\")\n}\n\\`\\`\\`\n`;\n\nexport default function App() {\n return ;\n}\n```\n\n## Codemirror Merge\n\n```jsx\nimport CodeMirrorMerge from 'react-codemirror-merge';\nimport { EditorView } from 'codemirror';\nimport { EditorState } from '@codemirror/state';\n\nconst Original = CodeMirrorMerge.Original;\nconst Modified = CodeMirrorMerge.Modified;\nlet doc = `one\ntwo\nthree\nfour\nfive`;\n\nexport const Example = () => {\n return (\n \n \n \n \n );\n};\n```\n\n## Support Hook\n\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-hook-yr4vg?fontsize=14&hidenavigation=1&theme=dark)\n\n```jsx\nimport { useEffect, useMemo, useRef } from 'react';\nimport { useCodeMirror } from '@uiw/react-codemirror';\nimport { javascript } from '@codemirror/lang-javascript';\n\nconst code = \"console.log('hello world!');\\n\\n\\n\";\n// Define the extensions outside the component for the best performance.\n// If you need dynamic extensions, use React.useMemo to minimize reference changes\n// which cause costly re-renders.\nconst extensions = [javascript()];\n\nexport default function App() {\n const editor = useRef();\n const { setContainer } = useCodeMirror({\n container: editor.current,\n extensions,\n value: code,\n });\n\n useEffect(() => {\n if (editor.current) {\n setContainer(editor.current);\n }\n }, [editor.current]);\n\n return
;\n}\n```\n\n## Using Theme\n\nWe have created a [`theme editor`](https://uiwjs.github.io/react-codemirror/#/editor/theme) where you can define your own theme. We have also defined [some themes](https://uiwjs.github.io/react-codemirror/#/theme/data/okaidia) ourselves, which can be installed and used directly. Below is a usage example:\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { okaidia } from '@uiw/codemirror-theme-okaidia';\n\nconst extensions = [javascript({ jsx: true })];\n\nexport default function App() {\n return (\n \n );\n}\n```\n\n## Using custom theme\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { createTheme } from '@uiw/codemirror-themes';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { tags as t } from '@lezer/highlight';\n\nconst myTheme = createTheme({\n theme: 'light',\n settings: {\n background: '#ffffff',\n backgroundImage: '',\n foreground: '#75baff',\n caret: '#5d00ff',\n selection: '#036dd626',\n selectionMatch: '#036dd626',\n lineHighlight: '#8a91991a',\n gutterBackground: '#fff',\n gutterForeground: '#8a919966',\n },\n styles: [\n { tag: t.comment, color: '#787b8099' },\n { tag: t.variableName, color: '#0080ff' },\n { tag: [t.string, t.special(t.brace)], color: '#5c6166' },\n { tag: t.number, color: '#5c6166' },\n { tag: t.bool, color: '#5c6166' },\n { tag: t.null, color: '#5c6166' },\n { tag: t.keyword, color: '#5c6166' },\n { tag: t.operator, color: '#5c6166' },\n { tag: t.className, color: '#5c6166' },\n { tag: t.definition(t.typeName), color: '#5c6166' },\n { tag: t.typeName, color: '#5c6166' },\n { tag: t.angleBracket, color: '#5c6166' },\n { tag: t.tagName, color: '#5c6166' },\n { tag: t.attributeName, color: '#5c6166' },\n ],\n});\nconst extensions = [javascript({ jsx: true })];\n\nexport default function App() {\n const onChange = React.useCallback((value, viewUpdate) => {\n console.log('value:', value);\n }, []);\n return (\n \n );\n}\n```\n\n## Use `initialState` to restore state from JSON-serialized representation\n\nCodeMirror allows to serialize editor state to JSON representation with [toJSON](https://codemirror.net/docs/ref/#state.EditorState.toJSON) function for persistency or other needs. This JSON representation can be later used to recreate ReactCodeMirror component with the same internal state.\n\nFor example, this is how undo history can be saved in the local storage, so that it remains after the page reloads\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { historyField } from '@codemirror/commands';\n\n// When custom fields should be serialized, you can pass them in as an object mapping property names to fields.\n// See [toJSON](https://codemirror.net/docs/ref/#state.EditorState.toJSON) documentation for more details\nconst stateFields = { history: historyField };\n\nexport function EditorWithInitialState() {\n const serializedState = localStorage.getItem('myEditorState');\n const value = localStorage.getItem('myValue') || '';\n\n return (\n {\n localStorage.setItem('myValue', value);\n\n const state = viewUpdate.state.toJSON(stateFields);\n localStorage.setItem('myEditorState', JSON.stringify(state));\n }}\n />\n );\n}\n```\n\n## Props\n\n\x3c!--rehype:style=background-color: #ffe564; display: inline-block; border-bottom: 0; padding: 3px 12px;--\x3e\n\n- `value?: string` value of the auto created model in the editor.\n- `width?: string` width of editor. Defaults to `auto`.\n- `height?: string` height of editor. Defaults to `auto`.\n- `theme?`: `'light'` / `'dark'` / `Extension` Defaults to `'light'`.\n\n```ts\nimport React from 'react';\nimport { EditorState, EditorStateConfig, Extension } from '@codemirror/state';\nimport { EditorView, ViewUpdate } from '@codemirror/view';\nexport * from '@codemirror/view';\nexport * from '@codemirror/basic-setup';\nexport * from '@codemirror/state';\nexport interface UseCodeMirror extends ReactCodeMirrorProps {\n container?: HTMLDivElement | null;\n}\nexport declare function useCodeMirror(props: UseCodeMirror): {\n state: EditorState | undefined;\n setState: import('react').Dispatch>;\n view: EditorView | undefined;\n setView: import('react').Dispatch>;\n container: HTMLDivElement | null | undefined;\n setContainer: import('react').Dispatch>;\n};\nexport interface ReactCodeMirrorProps\n extends Omit,\n Omit, 'onChange' | 'placeholder'> {\n /** value of the auto created model in the editor. */\n value?: string;\n height?: string;\n minHeight?: string;\n maxHeight?: string;\n width?: string;\n minWidth?: string;\n maxWidth?: string;\n /** focus on the editor. */\n autoFocus?: boolean;\n /** Enables a placeholder\u2014a piece of example content to show when the editor is empty. */\n placeholder?: string | HTMLElement;\n /**\n * `light` / `dark` / `Extension` Defaults to `light`.\n * @default light\n */\n theme?: 'light' | 'dark' | Extension;\n /**\n * Whether to optional basicSetup by default\n * @default true\n */\n basicSetup?: boolean | BasicSetupOptions;\n /**\n * This disables editing of the editor content by the user.\n * @default true\n */\n editable?: boolean;\n /**\n * This disables editing of the editor content by the user.\n * @default false\n */\n readOnly?: boolean;\n /**\n * Controls whether pressing the `Tab` key inserts a tab character and indents the text (`true`)\n * or behaves according to the browser's default behavior (`false`).\n * @default true\n */\n indentWithTab?: boolean;\n /** Fired whenever a change occurs to the document. */\n onChange?(value: string, viewUpdate: ViewUpdate): void;\n /** Some data on the statistics editor. */\n onStatistics?(data: Statistics): void;\n /** The first time the editor executes the event. */\n onCreateEditor?(view: EditorView, state: EditorState): void;\n /** Fired whenever any state change occurs within the editor, including non-document changes like lint results. */\n onUpdate?(viewUpdate: ViewUpdate): void;\n /**\n * Extension values can be [provided](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions) when creating a state to attach various kinds of configuration and behavior information.\n * They can either be built-in extension-providing objects,\n * such as [state fields](https://codemirror.net/6/docs/ref/#state.StateField) or [facet providers](https://codemirror.net/6/docs/ref/#state.Facet.of),\n * or objects with an extension in its `extension` property. Extensions can be nested in arrays arbitrarily deep\u2014they will be flattened when processed.\n */\n extensions?: Extension[];\n /**\n * If the view is going to be mounted in a shadow root or document other than the one held by the global variable document (the default), you should pass it here.\n * Originally from the [config of EditorView](https://codemirror.net/6/docs/ref/#view.EditorView.constructor%5Econfig.root)\n */\n root?: ShadowRoot | Document;\n /**\n * Create a state from its JSON representation serialized with [toJSON](https://codemirror.net/docs/ref/#state.EditorState.toJSON) function\n */\n initialState?: {\n json: any;\n fields?: Record<'string', StateField>;\n };\n}\nexport interface ReactCodeMirrorRef {\n editor?: HTMLDivElement | null;\n state?: EditorState;\n view?: EditorView;\n}\ndeclare const ReactCodeMirror: React.ForwardRefExoticComponent<\n ReactCodeMirrorProps & React.RefAttributes\n>;\nexport default ReactCodeMirror;\nexport interface BasicSetupOptions {\n lineNumbers?: boolean;\n highlightActiveLineGutter?: boolean;\n highlightSpecialChars?: boolean;\n history?: boolean;\n foldGutter?: boolean;\n drawSelection?: boolean;\n dropCursor?: boolean;\n allowMultipleSelections?: boolean;\n indentOnInput?: boolean;\n syntaxHighlighting?: boolean;\n bracketMatching?: boolean;\n closeBrackets?: boolean;\n autocompletion?: boolean;\n rectangularSelection?: boolean;\n crosshairCursor?: boolean;\n highlightActiveLine?: boolean;\n highlightSelectionMatches?: boolean;\n closeBracketsKeymap?: boolean;\n defaultKeymap?: boolean;\n searchKeymap?: boolean;\n historyKeymap?: boolean;\n foldKeymap?: boolean;\n completionKeymap?: boolean;\n lintKeymap?: boolean;\n}\n```\n\n```ts\nimport { EditorSelection, SelectionRange } from '@codemirror/state';\nimport { ViewUpdate } from '@codemirror/view';\nexport interface Statistics {\n /** Get the number of lines in the editor. */\n lineCount: number;\n /** total length of the document */\n length: number;\n /** Get the proper [line-break](https://codemirror.net/docs/ref/#state.EditorState^lineSeparator) string for this state. */\n lineBreak: string;\n /** Returns true when the editor is [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only. */\n readOnly: boolean;\n /** The size (in columns) of a tab in the document, determined by the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet. */\n tabSize: number;\n /** Cursor Position */\n selection: EditorSelection;\n /** Make sure the selection only has one range. */\n selectionAsSingle: SelectionRange;\n /** Retrieves a list of all current selections. */\n ranges: readonly SelectionRange[];\n /** Get the currently selected code. */\n selectionCode: string;\n /**\n * The length of the given array should be the same as the number of active selections.\n * Replaces the content of the selections with the strings in the array.\n */\n selections: string[];\n /** Return true if any text is selected. */\n selectedText: boolean;\n}\nexport declare const getStatistics: (view: ViewUpdate) => Statistics;\n```\n\n## Development\n\n1. Install dependencies\n\n```bash\n$ npm install # Installation dependencies\n$ npm run build # Compile all package\n```\n\n2. Development `@uiw/react-codemirror` package:\n\n```bash\n$ cd core\n# listen to the component compile and output the .js file\n# listen for compilation output type .d.ts file\n$ npm run watch # Monitor the compiled package `@uiw/react-codemirror`\n```\n\n3. Launch documentation site\n\n```bash\nnpm run start\n```\n\n## Related\n\n- [@uiw/react-textarea-code-editor](https://github.com/uiwjs/react-textarea-code-editor): A simple code editor with syntax highlighting.\n- [@uiw/react-md-editor](https://github.com/uiwjs/react-md-editor): A simple markdown editor with preview, implemented with React.js and TypeScript.\n- [@uiw/react-monacoeditor](https://github.com/jaywcjlove/react-monacoeditor): Monaco Editor component for React.\n- [@uiw/react-markdown-editor](https://github.com/uiwjs/react-markdown-editor): A markdown editor with preview, implemented with React.js and TypeScript.\n- [@uiw/react-markdown-preview](https://github.com/uiwjs/react-markdown-preview): React component preview markdown text in web browser.\n- [Online JSON Viewer](https://github.com/uiwjs/json-viewer) Online JSON Viewer, JSON Beautifier to beautify and tree view of JSON data - It works as JSON Pretty Print to pretty print JSON data.\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]};var J=r(4801),H=r(81670),B=r(20530);const F=e=>{let{label:t="",value:r,options:o=[],onChange:i}=e;return(0,l.jsxs)("label",{children:[t&&(0,l.jsxs)("span",{children:[t,"\uff1a"]}),(0,l.jsx)("select",{value:r,onChange:i,children:o.map(((e,t)=>{const o={};return r===e&&(o.value=e),(0,l.jsx)("option",{...o,children:e},t)}))})]})};var G,$,W,Q,X=r(46089),Y=r(40878);const ee=["dark","light"].concat(Object.keys(H)).filter((e=>"function"!==typeof H[e])).filter((e=>!/^(defaultSettings)/.test(e))),te=["auto","200px","300px","500px"];let re=0;const oe=s.ZP.div(G||(G=(0,o.Z)(["\n margin: 0 auto;\n text-align: left;\n max-width: 995px;\n overflow: auto;\n padding: 16px;\n border-radius: 5px;\n"]))),ie=s.ZP.div($||($=(0,o.Z)(["\n margin: 0 auto;\n max-width: 995px;\n padding: 15px 0 0 0;\n > label {\n margin-right: 15px;\n }\n"]))),ne=s.ZP.div(W||(W=(0,o.Z)(["\n box-shadow:\n 0 0 0 1px rgb(16 22 26 / 10%),\n 0 0 0 rgb(16 22 26 / 0%),\n 0 1px 1px rgb(16 22 26 / 20%);\n margin: 0 auto;\n text-align: left;\n max-width: 995px;\n overflow: auto;\n border-radius: 5px;\n margin-top: -30px;\n z-index: 10;\n position: relative;\n"]))),se=s.ZP.div(Q||(Q=(0,o.Z)(["\n padding-bottom: 18px;\n"])));function ae(){const[e,t]=(0,i.useState)("javascript"),[o,n]=(0,i.useState)("Please enter the code."),[s,a]=(0,i.useState)(!1),[c,m]=(0,i.useState)(!0),{theme:d,setTheme:h}=(0,Y.F)(),[p,u]=(0,i.useState)(""),[g,w]=(0,i.useState)(),[v,x]=(0,i.useState)("500px"),[b,f]=(0,i.useState)({crosshairCursor:!1});function j(e){try{r(70620)("./sample.".concat(e.toLocaleLowerCase(),".txt")).then((r=>{u(r.default),B.RI[e]&&w([V.$_,B.RI[e]()]),t(e)})).catch((r=>{B.RI[e]?w([V.$_,B.RI[e]()]):w([V.$_]),t(e),u("")}))}catch(o){}}return(0,i.useEffect)((()=>{j("javascript")}),[]),(0,l.jsxs)(se,{className:"wmde-markdown-var",children:[(0,l.jsx)(ne,{children:(0,l.jsx)(J.default,{value:p,height:"".concat(v," !important"),theme:H[d]||d,editable:c,extensions:g,autoFocus:s,basicSetup:b,placeholder:o,onChange:e=>{},style:{maxWidth:"995px",position:"relative",zIndex:999}})}),(0,l.jsxs)(oe,{children:[(0,l.jsxs)(ie,{children:[(0,l.jsx)(F,{label:"Lang",options:Object.keys(B.RI).sort(),value:e,onChange:e=>j(e.target.value)}),(0,l.jsx)(F,{label:"Website Theme",options:["dark","light"],value:d,onChange:e=>{document.documentElement.setAttribute("data-color-mode","dark"===e.target.value?"dark":"light"),h(e.target.value)}}),(0,l.jsx)(F,{label:"Themes",options:ee,value:d,onChange:e=>{/^(dark|light)$/.test(e.target.value)&&document.documentElement.setAttribute("data-color-mode",e.target.value),h(e.target.value)}})]}),(0,l.jsxs)(ie,{children:[(0,l.jsx)(F,{label:"Height",options:te,value:v,onChange:e=>x(e.target.value)}),(0,l.jsx)("button",{onClick:()=>{re++,u('console.log("Hello World! '.concat(re,'")'))},children:"change code"}),(0,l.jsxs)("label",{children:[(0,l.jsx)("input",{type:"checkbox",checked:s,onChange:e=>a(e.target.checked)}),"autoFocus"]}),(0,l.jsxs)("label",{children:[(0,l.jsx)("input",{type:"checkbox",checked:c,onChange:e=>m(e.target.checked)}),"editable"]}),(0,l.jsxs)("label",{children:["placeholder:",(0,l.jsx)("input",{type:"text",value:o,onChange:e=>n(e.target.value)})]}),(0,l.jsx)(X.E,{checked:!1!==b.lineNumbers,onChange:e=>f({...b,lineNumbers:e.target.checked}),children:"lineNumbers"}),(0,l.jsx)(X.E,{checked:!1!==b.foldGutter,onChange:e=>f({...b,foldGutter:e.target.checked}),children:"foldGutter"}),(0,l.jsx)(X.E,{checked:!1!==b.highlightActiveLineGutter,onChange:e=>f({...b,highlightActiveLineGutter:e.target.checked}),children:"highlightActiveLineGutter"}),(0,l.jsx)(X.E,{checked:!1!==b.highlightSpecialChars,onChange:e=>f({...b,highlightSpecialChars:e.target.checked}),children:"highlightSpecialChars"}),(0,l.jsx)(X.E,{checked:!1!==b.history,onChange:e=>f({...b,history:e.target.checked}),children:"history"}),(0,l.jsx)(X.E,{checked:!1!==b.drawSelection,onChange:e=>f({...b,drawSelection:e.target.checked}),children:"drawSelection"}),(0,l.jsx)(X.E,{checked:!1!==b.dropCursor,onChange:e=>f({...b,dropCursor:e.target.checked}),children:"dropCursor"}),(0,l.jsx)(X.E,{checked:!1!==b.allowMultipleSelections,onChange:e=>f({...b,allowMultipleSelections:e.target.checked}),children:"allowMultipleSelections"}),(0,l.jsx)(X.E,{checked:!1!==b.indentOnInput,onChange:e=>f({...b,indentOnInput:e.target.checked}),children:"indentOnInput"}),(0,l.jsx)(X.E,{checked:!1!==b.syntaxHighlighting,onChange:e=>f({...b,syntaxHighlighting:e.target.checked}),children:"syntaxHighlighting"}),(0,l.jsx)(X.E,{checked:!1!==b.bracketMatching,onChange:e=>f({...b,bracketMatching:e.target.checked}),children:"bracketMatching"}),(0,l.jsx)(X.E,{checked:!1!==b.closeBrackets,onChange:e=>f({...b,closeBrackets:e.target.checked}),children:"closeBrackets"}),(0,l.jsx)(X.E,{checked:!1!==b.autocompletion,onChange:e=>f({...b,autocompletion:e.target.checked}),children:"autocompletion"}),(0,l.jsx)(X.E,{checked:!1!==b.rectangularSelection,onChange:e=>f({...b,rectangularSelection:e.target.checked}),children:"rectangularSelection"}),(0,l.jsx)(X.E,{checked:!1!==b.crosshairCursor,onChange:e=>f({...b,crosshairCursor:e.target.checked}),children:"crosshairCursor"}),(0,l.jsx)(X.E,{checked:!1!==b.highlightActiveLine,onChange:e=>f({...b,highlightActiveLine:e.target.checked}),children:"highlightActiveLine"}),(0,l.jsx)(X.E,{checked:!1!==b.highlightSelectionMatches,onChange:e=>f({...b,highlightSelectionMatches:e.target.checked}),children:"highlightSelectionMatches"}),(0,l.jsx)(X.E,{checked:!1!==b.closeBracketsKeymap,onChange:e=>f({...b,closeBracketsKeymap:e.target.checked}),children:"closeBracketsKeymap"}),(0,l.jsx)(X.E,{checked:!1!==b.defaultKeymap,onChange:e=>f({...b,defaultKeymap:e.target.checked}),children:"defaultKeymap"}),(0,l.jsx)(X.E,{checked:!1!==b.searchKeymap,onChange:e=>f({...b,searchKeymap:e.target.checked}),children:"searchKeymap"}),(0,l.jsx)(X.E,{checked:!1!==b.historyKeymap,onChange:e=>f({...b,historyKeymap:e.target.checked}),children:"historyKeymap"}),(0,l.jsx)(X.E,{checked:!1!==b.foldKeymap,onChange:e=>f({...b,foldKeymap:e.target.checked}),children:"foldKeymap"}),(0,l.jsx)(X.E,{checked:!1!==b.completionKeymap,onChange:e=>f({...b,completionKeymap:e.target.checked}),children:"completionKeymap"}),(0,l.jsx)(X.E,{checked:!1!==b.lintKeymap,onChange:e=>f({...b,lintKeymap:e.target.checked}),children:"lintKeymap"})]}),(0,l.jsx)(U.Z,{source:q.source})]})]})}var ce,me,de,le,he,pe,ue;const ge=(0,s.F4)(ce||(ce=(0,o.Z)(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),we=s.ZP.img(me||(me=(0,o.Z)(["\n animation: "," infinite 20s linear;\n height: 80px;\n"])),ge),ve=s.ZP.h1(de||(de=(0,o.Z)(["\n font-size: 30px;\n sup {\n position: absolute;\n background: var(--color-neutral-muted);\n padding: 1px 5px;\n font-size: 12px;\n border-radius: 3px;\n }\n"]))),xe=s.ZP.p(le||(le=(0,o.Z)(["\n font-size: 18px;\n color: #a5a5a5;\n font-weight: 200;\n"]))),be=s.ZP.div(he||(he=(0,o.Z)(["\n a {\n outline: none;\n min-height: 30px;\n margin: 6px 5px;\n padding: 0 10px;\n font-size: 14px;\n display: inline-block;\n position: relative;\n overflow: hidden;\n user-select: none;\n border-radius: 3px;\n cursor: pointer;\n background: var(--color-neutral-muted);\n color: var(--color-theme-text);\n line-height: 30px;\n text-decoration: none;\n &.themes {\n background-color: var(--color-prettylights-syntax-variable);\n color: var(--color-prettylights-syntax-carriage-return-text);\n }\n &.special {\n background: var(--color-prettylights-syntax-markup-ignored-bg);\n color: var(--color-prettylights-syntax-carriage-return-text);\n }\n &.extensions {\n background: var(--color-prettylights-syntax-brackethighlighter-unmatched);\n color: var(--color-prettylights-syntax-carriage-return-text);\n }\n &:hover {\n background-color: var(--color-fg-muted);\n color: var(--color-theme-bg);\n transition:\n background-color 0.25s linear,\n color 0.05s linear,\n opacity 0.25s linear,\n filter 0.25s linear,\n visibility 0.25s linear,\n transform 0.25s linear;\n }\n &:last-child {\n color: var(--color-prettylights-syntax-keyword);\n }\n }\n"]))),fe=s.ZP.div(pe||(pe=(0,o.Z)(["\n text-align: center;\n padding-top: 30px;\n padding-bottom: 160px;\n display: flex;\n justify-content: center;\n gap: 6px;\n a {\n text-decoration: none;\n }\n"]))),je=s.ZP.div(ue||(ue=(0,o.Z)(["\n background-color: var(--color-canvas-subtle);\n box-shadow:\n 0px 2px 10px 0px rgba(0, 0, 0, 0.1),\n 0 1px rgba(0, 0, 0, 0.1);\n padding: 120px 20px 40px 20px;\n border-bottom: 1px solid var(--color-canvas-default);\n position: relative;\n z-index: 9;\n text-align: center;\n"]))),ke=[{href:"https://www.npmjs.com/package/@uiw/react-codemirror",label:"On NPM"},{href:"https://codemirror.net/docs/",label:"CM Documentation"},{href:"https://github.com/uiwjs/react-codemirror",label:"Github"},{href:"https://raw.githack.com/uiwjs/react-codemirror/doc3/index.html",label:"V3 Doc",style:{color:"red"}}];function ye(){return(0,l.jsxs)("div",{className:"wmde-markdown-var",children:[(0,l.jsx)(_.Z,{children:"Top"}),(0,l.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light",style:{position:"fixed",top:8,left:8,zIndex:99}}),(0,l.jsx)(p,{fixed:!0,target:"__blank",zIndex:10,href:"https://github.com/uiwjs/react-codemirror"}),(0,l.jsxs)(je,{children:[(0,l.jsx)(we,{src:I,alt:"logo"}),(0,l.jsxs)(ve,{children:["React CodeMirror ",(0,l.jsxs)("sup",{children:["v","4.21.20"]})]}),(0,l.jsx)(xe,{children:"CodeMirror component for React. "}),(0,l.jsxs)(be,{children:[(0,l.jsx)(n.rU,{to:"/editor/theme",className:"special",children:"Theme Editor"}),(0,l.jsx)(n.rU,{to:"/theme",className:"themes",children:"Themes"}),(0,l.jsx)(n.rU,{to:"/extensions",className:"extensions",children:"Extensions"}),(0,l.jsx)(n.rU,{to:"/merge/document",children:"Merge"}),ke.map(((e,t)=>{let{href:r,label:o,style:i}=e;return(0,l.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:r,style:i,children:o},t)}))]})]}),(0,l.jsx)(ae,{}),(0,l.jsxs)(fe,{children:[(0,l.jsxs)(Z,{user:"uiwjs",repo:"react-codemirror",children:[(0,l.jsx)(Z.Social,{type:"forks",href:"https://github.com/uiwjs/react-codemirror"}),(0,l.jsx)(Z.Social,{type:"stars",href:"https://github.com/uiwjs/react-codemirror/stargazers"}),(0,l.jsx)(Z.Social,{type:"watchers",href:"https://github.com/uiwjs/react-codemirror/watchers"}),(0,l.jsx)("a",{href:"https://www.npmjs.com/package/@uiw/react-codemirror",target:"__blank",children:(0,l.jsx)("img",{src:"https://img.shields.io/npm/dm/@uiw/react-codemirror.svg?style=flat",alt:"NPM Downloads"})})]}),(0,l.jsx)(K.Z.Version,{scope:"@uiw",packageName:"react-codemirror",href:"https://www.npmjs.com/package/@uiw/react-codemirror"})]})]})}},40878:(e,t,r)=>{"use strict";r.d(t,{F:()=>i});var o=r(83528);function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light";const t=document.documentElement.getAttribute("data-color-mode"),[r,i]=(0,o.useState)("dark"===t?"dark":e);return(0,o.useEffect)((()=>{i("dark"===document.documentElement.getAttribute("data-color-mode")?"dark":"light"),document.addEventListener("colorschemechange",(e=>{i(e.detail.colorScheme)}))}),[]),{theme:r,setTheme:i}}},70620:(e,t,r)=>{var o={"./sample.abap.txt":[86653,6653],"./sample.aes.txt":[9547,9547],"./sample.apex.txt":[39365,9365],"./sample.azcli.txt":[87795,7795],"./sample.bat.txt":[20470,470],"./sample.bicep.txt":[10803,803],"./sample.brainfuck.txt":[78465,8465],"./sample.c.txt":[86124,6124],"./sample.cameligo.txt":[64286,4286],"./sample.clike.txt":[25034,5034],"./sample.clojure.txt":[6268,6268],"./sample.coffeescript.txt":[35164,5164],"./sample.cpp.txt":[78410,8410],"./sample.csharp.txt":[57511,7511],"./sample.csp.txt":[55541,5541],"./sample.css.txt":[80088],"./sample.dart.txt":[84661,4661],"./sample.dockerfile.txt":[24593,4593],"./sample.ecl.txt":[83733,3733],"./sample.elixir.txt":[84890,4890],"./sample.erlang.txt":[48453,8453],"./sample.flow9.txt":[97626,7626],"./sample.freemarker2.txt":[33498,3498],"./sample.fsharp.txt":[96787,6787],"./sample.go.txt":[11200],"./sample.graphql.txt":[11093,1093],"./sample.handlebars.txt":[8884,8884],"./sample.hcl.txt":[64166,4166],"./sample.html.txt":[90348],"./sample.ini.txt":[71958,1958],"./sample.java.txt":[73486],"./sample.javascript.txt":[11039],"./sample.json.txt":[20230],"./sample.jsx.txt":[33528],"./sample.julia.txt":[47610,7610],"./sample.kotlin.txt":[90671,671],"./sample.less.txt":[68152,8152],"./sample.lex.txt":[43787,3787],"./sample.lexon.txt":[81033,1033],"./sample.liquid.txt":[24905,4905],"./sample.livescript.txt":[41108,1108],"./sample.lua.txt":[28660,8660],"./sample.m3.txt":[27695,7695],"./sample.markdown.txt":[79770],"./sample.mips.txt":[55942,5942],"./sample.msdax.txt":[93087,3087],"./sample.mysql.txt":[55718],"./sample.nginx.txt":[64272,4272],"./sample.objective-c.txt":[6401,6401],"./sample.pascal.txt":[99476,9476],"./sample.pascaligo.txt":[8569,8569],"./sample.perl.txt":[96466,6466],"./sample.pgsql.txt":[78031,8031],"./sample.php.txt":[17995],"./sample.pla.txt":[69321,9321],"./sample.plaintext.txt":[10602,602],"./sample.postiats.txt":[10428,428],"./sample.powerquery.txt":[6580,6580],"./sample.powershell.txt":[79336,9336],"./sample.proto.txt":[81600,1600],"./sample.pug.txt":[63834,3834],"./sample.python.txt":[2223],"./sample.qsharp.txt":[24668,4668],"./sample.r.txt":[74199,4199],"./sample.razor.txt":[91876,1876],"./sample.redis.txt":[13368,3368],"./sample.redshift.txt":[23969,3969],"./sample.restructuredtext.txt":[76203,6203],"./sample.ruby.txt":[53602,3602],"./sample.rust.txt":[74922],"./sample.sb.txt":[16365,6365],"./sample.scala.txt":[15194,5194],"./sample.scheme.txt":[80721,721],"./sample.scss.txt":[14695,4695],"./sample.shell.txt":[69512],"./sample.sol.txt":[71419,1419],"./sample.sparql.txt":[99308,9308],"./sample.sql.txt":[49347,9347],"./sample.st.txt":[66488,6488],"./sample.stylus.txt":[10877,877],"./sample.swift.txt":[31027],"./sample.systemverilog.txt":[84887,4887],"./sample.tcl.txt":[46636,6636],"./sample.toml.txt":[32980,2980],"./sample.tsx.txt":[17251],"./sample.twig.txt":[31635,1635],"./sample.typescript.txt":[53992],"./sample.vb.txt":[44187,4187],"./sample.vbscript.txt":[19200,9200],"./sample.verilog.txt":[94124,4124],"./sample.vue.txt":[10310,310],"./sample.xml.txt":[49294,9294],"./sample.yaml.txt":[89896,9896]};function i(e){if(!r.o(o,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=o[e],i=t[0];return Promise.all(t.slice(1).map(r.e)).then((()=>r(i)))}i.keys=()=>Object.keys(o),i.id=70620,e.exports=i}}]); +//# sourceMappingURL=9839.3b83817f.chunk.js.map \ No newline at end of file diff --git a/static/js/9839.3b83817f.chunk.js.map b/static/js/9839.3b83817f.chunk.js.map new file mode 100644 index 000000000..3dcd05363 --- /dev/null +++ b/static/js/9839.3b83817f.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/9839.3b83817f.chunk.js","mappings":"8NAQA,MAAMA,EAAQC,EAAAA,GAAOC,MAAKC,IAAAA,GAAAC,EAAAA,EAAAA,GAAA,wDAKbC,EAETC,IAA6B,IAA5B,SAAEC,KAAaC,GAAOF,EACzB,OACEG,EAAAA,EAAAA,MAACT,EAAK,CAAAO,SAAA,EACJG,EAAAA,EA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CACnB,OAED,oBAAqB,CACpB,MACA,MAED,0BAA2B,CAC1B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,2BAA4B,CAC3B,MACA,MAED,sBAAuB,CACtB,MACA,MAED,kBAAmB,CAClB,OAED,uBAAwB,CACvB,MACA,MAED,0BAA2B,CAC1B,KACA,MAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,OAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,OAED,0BAA2B,CAC1B,OAED,oBAAqB,CACpB,OAED,mBAAoB,CACnB,OAED,qBAAsB,CACrB,MACA,MAED,sBAAuB,CACtB,MACA,KAED,oBAAqB,CACpB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,0BAA2B,CAC1B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,wBAAyB,CACxB,OAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,OAED,qBAAsB,CACrB,MACA,MAED,2BAA4B,CAC3B,KACA,MAED,sBAAuB,CACtB,MACA,MAED,yBAA0B,CACzB,KACA,MAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,mBAAoB,CACnB,OAED,mBAAoB,CACnB,MACA,MAED,yBAA0B,CACzB,MACA,KAED,wBAAyB,CACxB,MACA,KAED,0BAA2B,CAC1B,KACA,MAED,0BAA2B,CAC1B,MACA,MAED,qBAAsB,CACrB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MAED,sBAAuB,CACtB,MACA,MAED,iBAAkB,CACjB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,gCAAiC,CAChC,MACA,MAED,oBAAqB,CACpB,MACA,MAED,oBAAqB,CACpB,OAED,kBAAmB,CAClB,MACA,MAED,qBAAsB,CACrB,MACA,MAED,sBAAuB,CACtB,MACA,KAED,oBAAqB,CACpB,MACA,MAED,qBAAsB,CACrB,OAED,mBAAoB,CACnB,MACA,MAED,sBAAuB,CACtB,MACA,MAED,mBAAoB,CACnB,MACA,MAED,kBAAmB,CAClB,MACA,MAED,sBAAuB,CACtB,MACA,KAED,qBAAsB,CACrB,OAED,6BAA8B,CAC7B,MACA,MAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,MACA,MAED,mBAAoB,CACnB,OAED,oBAAqB,CACpB,MACA,MAED,0BAA2B,CAC1B,OAED,kBAAmB,CAClB,MACA,MAED,wBAAyB,CACxB,MACA,MAED,uBAAwB,CACvB,MACA,MAED,mBAAoB,CACnB,MACA,KAED,mBAAoB,CACnB,MACA,MAED,oBAAqB,CACpB,MACA,OAGF,SAASkF,EAAoBC,GAC5B,IAAIC,EAAoBtH,EAAEkC,EAAKmF,GAC9B,OAAOE,QAAQC,UAAUvD,MAAK,KAC7B,IAAItE,EAAI,IAAI8H,MAAM,uBAAyBJ,EAAM,KAEjD,MADA1H,EAAEgE,KAAO,mBACHhE,CAAC,IAIT,IAAI+H,EAAMxF,EAAImF,GAAMM,EAAKD,EAAI,GAC7B,OAAOH,QAAQK,IAAIF,EAAI9G,MAAM,GAAGsB,IAAIoF,EAAoB3H,IAAIsE,MAAK,IACzDqD,EAAoBK,IAE7B,CACAP,EAAoB5E,KAAO,IAAOrC,OAAOqC,KAAKN,GAC9CkF,EAAoBO,GAAK,MACzBE,EAAOC,QAAUV,C","sources":["pages/extensions/basic-setup/example.tsx","pages/extensions/index.tsx","../../node_modules/@uiw/github-corners/src/index.ts","../../node_modules/@uiw/react-github-corners/esm/index.js","../../node_modules/@uiw/react-shields/esm/github/Issues.js","../../node_modules/@uiw/react-shields/esm/github/Size.js","../../node_modules/@uiw/react-shields/esm/github/License.js","../../node_modules/@uiw/react-shields/esm/github/Downloads.js","../../node_modules/@uiw/react-shields/esm/github/Activity.js","../../node_modules/@uiw/react-shields/esm/github/Version.js","../../node_modules/@uiw/react-shields/esm/github/Analysis.js","../../node_modules/@uiw/react-shields/esm/github/Social.js","../../node_modules/@uiw/react-shields/esm/github/index.js","../../core/README.md","pages/home/Select.tsx","pages/home/Example.tsx","pages/home/index.tsx","utils/useTheme.tsx","../../node_modules/code-example/txt|lazy|/^/.//sample/..*/.txt$/|groupOptions: {}|namespace object"],"sourcesContent":["import { FC, PropsWithChildren, useContext, useState } from 'react';\nimport CodeMirror, { BasicSetupOptions } from '@uiw/react-codemirror';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport styled from 'styled-components';\nimport { useTheme } from '../../../utils/useTheme';\nimport { PageWarpper } from '..';\nimport { MdContext } from '../../theme/Preview';\n\nconst Label = styled.label`\n user-select: none;\n white-space: nowrap;\n`;\n\nexport const Options: FC<\n PropsWithChildren, HTMLInputElement>>\n> = ({ children, ...props }) => {\n return (\n \n );\n};\n\nconst Warpper = styled.div`\n padding-bottom: 32px;\n`;\n\nexport const BasicSetupExample = () => {\n const { theme } = useTheme();\n const [basicSetup, setBasicSetup] = useState({});\n const mdData = useContext(MdContext);\n return (\n \n \n \n setBasicSetup({ ...basicSetup, tabSize: Number(evn.target.value || '2') })}\n >\n \n \n \n \n \n setBasicSetup({ ...basicSetup, lineNumbers: evn.target.checked })}\n >\n lineNumbers\n \n setBasicSetup({ ...basicSetup, foldGutter: evn.target.checked })}\n >\n foldGutter\n \n setBasicSetup({ ...basicSetup, highlightActiveLineGutter: evn.target.checked })}\n >\n highlightActiveLineGutter\n \n setBasicSetup({ ...basicSetup, highlightSpecialChars: evn.target.checked })}\n >\n highlightSpecialChars\n \n setBasicSetup({ ...basicSetup, history: evn.target.checked })}\n >\n history\n \n setBasicSetup({ ...basicSetup, drawSelection: evn.target.checked })}\n >\n drawSelection\n \n setBasicSetup({ ...basicSetup, dropCursor: evn.target.checked })}\n >\n dropCursor\n \n setBasicSetup({ ...basicSetup, allowMultipleSelections: evn.target.checked })}\n >\n allowMultipleSelections\n \n setBasicSetup({ ...basicSetup, indentOnInput: evn.target.checked })}\n >\n indentOnInput\n \n setBasicSetup({ ...basicSetup, syntaxHighlighting: evn.target.checked })}\n >\n syntaxHighlighting\n \n setBasicSetup({ ...basicSetup, bracketMatching: evn.target.checked })}\n >\n bracketMatching\n \n setBasicSetup({ ...basicSetup, closeBrackets: evn.target.checked })}\n >\n closeBrackets\n \n setBasicSetup({ ...basicSetup, autocompletion: evn.target.checked })}\n >\n autocompletion\n \n setBasicSetup({ ...basicSetup, rectangularSelection: evn.target.checked })}\n >\n rectangularSelection\n \n setBasicSetup({ ...basicSetup, crosshairCursor: evn.target.checked })}\n >\n crosshairCursor\n \n setBasicSetup({ ...basicSetup, highlightActiveLine: evn.target.checked })}\n >\n highlightActiveLine\n \n setBasicSetup({ ...basicSetup, highlightSelectionMatches: evn.target.checked })}\n >\n highlightSelectionMatches\n \n setBasicSetup({ ...basicSetup, closeBracketsKeymap: evn.target.checked })}\n >\n closeBracketsKeymap\n \n setBasicSetup({ ...basicSetup, defaultKeymap: evn.target.checked })}\n >\n defaultKeymap\n \n setBasicSetup({ ...basicSetup, searchKeymap: evn.target.checked })}\n >\n searchKeymap\n \n setBasicSetup({ ...basicSetup, historyKeymap: evn.target.checked })}\n >\n historyKeymap\n \n setBasicSetup({ ...basicSetup, foldKeymap: evn.target.checked })}\n >\n foldKeymap\n \n setBasicSetup({ ...basicSetup, completionKeymap: evn.target.checked })}\n >\n completionKeymap\n \n setBasicSetup({ ...basicSetup, lintKeymap: evn.target.checked })}\n >\n lintKeymap\n \n \n \n );\n};\n","import styled from 'styled-components';\n\nexport const PageWarpper = styled.div`\n flex: 1;\n max-width: 980px;\n padding: 20px 20px 30px 20px;\n`;\n\nexport const Content = styled.div`\n display: flex;\n flex: 1;\n`;\n\nexport const Extensions = () => {};\n","// @ts-ignore\ndeclare global {\n interface HTMLElementTagNameMap {\n 'github-corners': GithubCorners;\n }\n namespace JSX {\n interface IntrinsicElements {\n 'github-corners': Partial | {\n style?: Partial | React.CSSProperties;\n };\n }\n }\n}\n\nconst GITHUB_CORNERS_TEMPLATE = document.createElement(\"template\");\nGITHUB_CORNERS_TEMPLATE.innerHTML = `\n\n\n \n \n \n \n \n \n \n\n`;\n\nexport class GithubCorners extends HTMLElement {\n /** Sets the z-order of a positioned element and its descendants or flex items. */\n 'z-index'?: string;\n height?: string | number;\n width?: string | number;\n href?: string;\n color?: string;\n fill?: string;\n position?: string;\n target?: string;\n top?: string;\n left?: string;\n right?: string = '0';\n bottom?: string;\n transform?: string;\n private shadow: ShadowRoot\n static get observedAttributes(): string[] {\n return ['style', 'z-index', 'target', 'height', 'width', 'href', 'color', 'fill', 'position', 'top', 'left', 'right', 'bottom', 'transform'];\n }\n constructor() {\n super();\n this.shadow = this.attachShadow({ mode: 'open' });\n this.shadow.appendChild(this.ownerDocument.importNode(GITHUB_CORNERS_TEMPLATE.content, true));\n this.update()\n }\n private setAttr(name: string, value: string) {\n const svg = this.shadow.querySelector('svg');\n if (/(href)/.test(name.toLocaleLowerCase())) {\n svg.lastElementChild.setAttribute('xlink:href', value);\n } else if (/(color|fill)/.test(name.toLocaleLowerCase())) {\n (svg.firstElementChild as HTMLAnchorElement).style[name as any] = value;\n } else if (/(z-index|position|top|left|right|bottom|transform)/.test(name.toLocaleLowerCase())) {\n svg.style[name as any] = value;\n } else {\n svg.setAttribute(name, value);\n }\n }\n private update() {\n ;[...this.getAttributeNames(), 'right'].forEach((name) => {\n const value = this.getAttribute(name) || this[name as keyof GithubCorners] as any || '';\n this.setAttr(name, value);\n });\n }\n attributeChangedCallback(name: string, oldValue: string, newValue: string) {\n if (oldValue !== newValue) {\n this.setAttr(name, newValue);\n }\n }\n}\n\ncustomElements.define('github-corners', GithubCorners);","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"size\", \"fixed\", \"bottom\", \"zIndex\", \"className\", \"style\", \"bgColor\", \"color\", \"position\"];\nimport React from 'react';\nimport '@uiw/github-corners';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function githubCorners(props) {\n var {\n size = 80,\n fixed = false,\n bottom,\n zIndex,\n style,\n bgColor = '#151513',\n color = '#fff',\n position = 'right'\n } = props,\n otherProps = _objectWithoutPropertiesLoose(props, _excluded);\n var styl = position === 'left' ? {\n left: 0,\n right: 'initial',\n transform: 'scale(-1, 1)'\n } : {\n right: 0,\n left: 'initial',\n transform: 'scale(1, 1)'\n };\n if (bottom) {\n styl.bottom = 0;\n styl.top = 'initial';\n styl.transform = position === 'left' ? 'scale(-1, -1)' : 'scale(1, -1)';\n } else {\n styl.bottom = 'initial';\n styl.top = 0;\n }\n return /*#__PURE__*/_jsx(\"github-corners\", _extends({\n target: \"__blank\",\n width: size,\n height: size,\n href: props.href,\n position: fixed ? 'fixed' : 'absolute',\n \"z-index\": zIndex,\n style: style,\n fill: bgColor,\n color: color\n }, styl, otherProps));\n}","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"type\", \"platform\", \"base\", \"property\", \"user\", \"repo\", \"label\"];\nimport React from 'react';\nimport { Internal } from '../common/Base';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Issues = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n type = 'issues',\n platform = 'github',\n base = 'https://img.shields.io',\n property,\n user,\n repo,\n label\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var getUrl = () => {\n if (platform !== 'github') return '';\n if (type === 'issues' || /^issues-(raw|closed|closed-raw|pr|pr-raw|pr-closed|pr-closed-raw)/.test(type)) {\n if (label && (type === 'issues' || /^issues-(raw|pr|pr-raw)/.test(type || ''))) {\n return [base, platform, type, user, repo, label].join('/');\n }\n return [base, platform, type, user, repo].join('/');\n }\n if (type === 'issueKind') {\n return [base, platform, type, 'detail', property, user, repo].join('/');\n }\n return '';\n };\n return /*#__PURE__*/_jsx(Internal, _extends({\n imgSrc: getUrl(),\n ref: ref\n }, other));\n});\nIssues.displayName = 'Issues';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"type\", \"platform\", \"base\", \"user\", \"repo\", \"path\"];\nimport React from 'react';\nimport { Internal } from '../common/Base';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var Size = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n type = 'languages',\n platform = 'github',\n base = 'https://img.shields.io',\n user,\n repo,\n path\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var getUrl = () => {\n if (platform !== 'github') return '';\n /**\n * /github/languages/code-size/:user/:repo\n */\n if (type === 'languages') {\n return [base, platform, type, 'code-size', user, repo].join('/');\n }\n /**\n * /github/repo-size/:user/:repo\n */\n if (type === 'repo-size') {\n return [base, platform, type, user, repo].join('/');\n }\n /**\n * /github/size/:user/:repo/:path*\n */\n if (type === 'size' && path) {\n return [base, platform, type, user, repo, path].join('/');\n }\n return '';\n };\n return /*#__PURE__*/_jsx(Internal, _extends({\n imgSrc: getUrl(),\n ref: ref\n }, other));\n});\nSize.displayName = 'Size';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"platform\", \"type\", \"base\", \"user\", \"repo\"];\nimport React from 'react';\nimport { Internal } from '../common/Base';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport var License = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n platform = 'github',\n type = 'license',\n base = 'https://img.shields.io',\n user,\n repo\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var getUrl = () => {\n if (platform !== 'github') return '';\n return [base, platform, type, user, repo].join('/');\n };\n return /*#__PURE__*/_jsx(Internal, _extends({\n imgSrc: getUrl(),\n ref: ref\n }, other));\n});\nLicense.displayName = 'License';","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"platform\", \"type\", \"base\", \"user\", \"repo\", \"tag\", \"path\", \"total\"];\nimport React from 'react';\nimport { Internal } from '../common/Base';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Downloads = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n platform = 'github',\n type = 'downloads',\n base = 'https://img.shields.io',\n user,\n repo,\n tag,\n path,\n total = true\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var getUrl = () => {\n if (platform !== 'github' || !/^(downloads|downloads-pre)/.test(type || '')) return '';\n var baseData = [base, platform, type, user, repo];\n if (path && tag) {\n return [...baseData, tag, path].join('/');\n }\n if (total && tag || type === 'downloads-pre' && tag && total) {\n return [...baseData, tag, 'total'].join('/');\n }\n if (total) {\n return [...baseData, 'total'].join('/');\n }\n return '';\n };\n return /*#__PURE__*/_jsx(Internal, _extends({\n imgSrc: getUrl(),\n ref: ref\n }, other));\n});\nDownloads.displayName = 'Downloads';\nexport default Downloads;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"platform\", \"base\", \"type\", \"user\", \"repo\", \"interval\", \"variant\", \"version\", \"branch\"];\nimport React from 'react';\nimport { Internal } from '../common/Base';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Activity = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n platform = 'github',\n base = 'https://img.shields.io',\n type = 'commits-since',\n user,\n repo,\n interval,\n variant,\n version,\n branch\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var getUrl = () => {\n if (platform !== 'github') return '';\n if (type === 'commits-since' && version && branch) {\n return [base, platform, type, user, repo, version, branch].join('/');\n }\n if (type === 'commit-activity' && interval) {\n return [base, platform, type, interval, user, repo].join('/');\n }\n if (type === 'variant' && variant) {\n return [base, platform, type, variant, user, repo].join('/');\n }\n if (type === 'last-commit') {\n return branch ? [base, platform, type, user, repo, branch].join('/') : [base, platform, type, user, repo].join('/');\n }\n if (type && /^release-(date|date-pre)/.test(type)) {\n return [base, platform, type, user, repo].join('/');\n }\n return '';\n };\n return /*#__PURE__*/_jsx(Internal, _extends({\n imgSrc: getUrl(),\n ref: ref\n }, other));\n});\nActivity.displayName = 'Activity';\nexport default Activity;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"platform\", \"type\", \"base\", \"user\", \"repo\", \"branch\"];\nimport React from 'react';\nimport { Internal } from '../common/Base';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n platform = 'github',\n type = 'version-release',\n base = 'https://img.shields.io',\n user,\n repo,\n branch\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var getUrl = () => {\n var typePath = '';\n switch (type) {\n case 'version-release':\n typePath = 'v/release';\n break;\n case 'version-tag':\n typePath = 'v/tag';\n break;\n case 'package-json':\n typePath = 'package-json/v';\n break;\n case 'manifest-json':\n typePath = 'manifest-json/v';\n break;\n case 'go-mod':\n typePath = 'go-mod/go-version';\n break;\n default:\n break;\n }\n if (platform !== 'github' || !typePath) return '';\n var baseData = [base, platform, typePath, user, repo];\n if (/(go-mod|manifest-json|package-json)/.test(type || '') && branch) {\n return [...baseData, branch].join('/');\n }\n return baseData.join('/');\n };\n return /*#__PURE__*/_jsx(Internal, _extends({\n imgSrc: getUrl(),\n ref: ref\n }, other));\n});","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"platform\", \"type\", \"base\", \"user\", \"repo\", \"query\"];\nimport React from 'react';\nimport { Internal } from '../common/Base';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Analysis = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n platform = 'github',\n type = 'languages-count',\n base = 'https://img.shields.io',\n user,\n repo,\n query\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var getUrl = () => {\n var typePath = '';\n switch (type) {\n case 'languages-count':\n typePath = 'languages/count';\n break;\n case 'languages-top':\n typePath = 'languages/top';\n break;\n case 'search':\n typePath = 'search';\n break;\n default:\n break;\n }\n if (platform !== 'github' || !typePath) return '';\n var baseData = [base, platform, typePath, user, repo];\n if (query) {\n return [...baseData, query].join('/');\n }\n return baseData.join('/');\n };\n return /*#__PURE__*/_jsx(Internal, _extends({\n imgSrc: getUrl(),\n ref: ref\n }, other));\n});\nAnalysis.displayName = 'Analysis';\nexport default Analysis;","import _extends from \"@babel/runtime/helpers/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/objectWithoutPropertiesLoose\";\nvar _excluded = [\"type\", \"platform\", \"base\", \"user\", \"repo\"];\nimport React from 'react';\nimport { Internal } from '../common/Base';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Social = /*#__PURE__*/React.forwardRef((props, ref) => {\n var {\n type = 'followers',\n platform = 'github',\n base = 'https://img.shields.io',\n user,\n repo\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n var getUrl = () => {\n if (platform !== 'github') return '';\n if (type === 'followers') return [base, platform, type, user].join('/');\n return [base, platform, type, user, repo].join('/');\n };\n return /*#__PURE__*/_jsx(Internal, _extends({\n imgSrc: getUrl(),\n ref: ref\n }, other));\n});\nSocial.displayName = 'Social';\nexport default Social;","import _extends from \"@babel/runtime/helpers/extends\";\nimport Container from '../common/Container';\nimport { Issues } from './Issues';\nimport { Size } from './Size';\nimport { License } from './License';\nimport Downloads from './Downloads';\nimport Activity from './Activity';\nimport Version from './Version';\nimport Analysis from './Analysis';\nimport Social from './Social';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nvar Github = props => /*#__PURE__*/_jsx(Container, _extends({}, props));\nGithub.Issues = Issues;\nGithub.Size = Size;\nGithub.Downloads = Downloads;\nGithub.License = License;\nGithub.Activity = Activity;\nGithub.Analysis = Analysis;\nGithub.Version = Version;\nGithub.Social = Social;\nGithub.displayName = 'Github';\nexport default Github;","\nexport default {\n components: { 101: (function() { \"use strict\";\n\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _reactCodemirror = _interopRequireDefault(require(\"@uiw/react-codemirror\"));\nvar _langJavascript = require(\"@codemirror/lang-javascript\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \"default\": obj }; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction App() {\n var _React$useState = _react[\"default\"].useState(\"console.log('hello world!');\"),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n value = _React$useState2[0],\n setValue = _React$useState2[1];\n var onChange = _react[\"default\"].useCallback(function (val, viewUpdate) {\n console.log('val:', val);\n setValue(val);\n }, []);\n return /*#__PURE__*/_react[\"default\"].createElement(_reactCodemirror[\"default\"], {\n value: value,\n height: \"200px\",\n extensions: [(0, _langJavascript.javascript)({\n jsx: true\n })],\n onChange: onChange\n });\n}\nreturn App; })(), },\n data: {\n \"101\": {\n \"name\": 101,\n \"meta\": {},\n \"code\": \"\\\"use strict\\\";\\n\\nvar _react = _interopRequireDefault(require(\\\"react\\\"));\\nvar _reactCodemirror = _interopRequireDefault(require(\\\"@uiw/react-codemirror\\\"));\\nvar _langJavascript = require(\\\"@codemirror/lang-javascript\\\");\\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { \\\"default\\\": obj }; }\\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\\nfunction _nonIterableRest() { throw new TypeError(\\\"Invalid attempt to destructure non-iterable instance.\\\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\\\"); }\\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \\\"string\\\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \\\"Object\\\" && o.constructor) n = o.constructor.name; if (n === \\\"Map\\\" || n === \\\"Set\\\") return Array.from(o); if (n === \\\"Arguments\\\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \\\"undefined\\\" != typeof Symbol && r[Symbol.iterator] || r[\\\"@@iterator\\\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\\\"return\\\"] && (u = t[\\\"return\\\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\\nfunction App() {\\n var _React$useState = _react[\\\"default\\\"].useState(\\\"console.log('hello world!');\\\"),\\n _React$useState2 = _slicedToArray(_React$useState, 2),\\n value = _React$useState2[0],\\n setValue = _React$useState2[1];\\n var onChange = _react[\\\"default\\\"].useCallback(function (val, viewUpdate) {\\n console.log('val:', val);\\n setValue(val);\\n }, []);\\n return /*#__PURE__*/_react[\\\"default\\\"].createElement(_reactCodemirror[\\\"default\\\"], {\\n value: value,\\n height: \\\"200px\\\",\\n extensions: [(0, _langJavascript.javascript)({\\n jsx: true\\n })],\\n onChange: onChange\\n });\\n}\\nreturn App;\",\n \"language\": \"jsx\",\n \"value\": \"import React from 'react';\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n const [value, setValue] = React.useState(\\\"console.log('hello world!');\\\");\\n const onChange = React.useCallback((val, viewUpdate) => {\\n console.log('val:', val);\\n setValue(val);\\n }, []);\\n return ;\\n}\\nexport default App;\"\n }\n},\n source: \"

\\n \\n \\\"react-codemirror\\n \\n

\\n\\n# react-codemirror\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![jsdelivr CDN](https://data.jsdelivr.com/v1/package/npm/@uiw/react-codemirror/badge)](https://www.jsdelivr.com/package/npm/@uiw/react-codemirror)\\n[![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-codemirror.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-codemirror)\\n[![Build & Deploy](https://github.com/uiwjs/react-codemirror/actions/workflows/ci.yml/badge.svg)](https://github.com/uiwjs/react-codemirror/actions)\\n[![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-codemirror/file/README.md)\\n[![npm version](https://img.shields.io/npm/v/@uiw/react-codemirror.svg)](https://www.npmjs.com/package/@uiw/react-codemirror)\\n[![Coverage Status](https://uiwjs.github.io/react-codemirror/coverage/badges.svg)](https://uiwjs.github.io/react-codemirror/coverage/lcov-report/)\\n[![Open in Gitpod](https://shields.io/badge/Open%20in-Gitpod-green?logo=Gitpod)](https://gitpod.io/#https://github.com/uiwjs/react-codemirror)\\n\\nCodeMirror component for React. Demo Preview: [@uiwjs.github.io/react-codemirror](https://uiwjs.github.io/react-codemirror/)\\n\\n\\n\\n**Features:**\\n\\n🚀 Quickly and easily configure the API. \\n🌱 Versions after `@uiw/react-codemirror@v4` use [codemirror 6](https://codemirror.net/). [#88](https://github.com/uiwjs/react-codemirror/issues/88#issuecomment-914185563). \\n⚛️ Support the features of React Hook(requires React 16.8+). \\n📚 Use Typescript to write, better code hints. \\n🌐 The bundled version supports use directly in the browser [#267](https://github.com/uiwjs/react-codemirror/issues/267#issuecomment-1041227592). \\n🌎 There are better [sample previews](https://uiwjs.github.io/react-codemirror). \\n🎨 Support [theme](https://uiwjs.github.io/react-codemirror/#/theme/data/dracula) customization, provide theme [editor](https://uiwjs.github.io/react-codemirror/#/editor/theme).\\n\\n## Install\\n\\n**Not dependent on uiw.**\\n\\n```bash\\nnpm install @uiw/react-codemirror --save\\n```\\n\\n**All Packages**\\n\\n| Name | NPM Version |\\n| :-------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| [`@uiw/react-codemirror`](https://uiwjs.github.io/react-codemirror) | [![npm version](https://img.shields.io/npm/v/@uiw/react-codemirror.svg)](https://www.npmjs.com/package/@uiw/react-codemirror) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-codemirror.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-codemirror) |\\n| [`react-codemirror-merge`](https://uiwjs.github.io/react-codemirror/#/merge/document) | [![npm version](https://img.shields.io/npm/v/react-codemirror-merge.svg)](https://www.npmjs.com/package/react-codemirror-merge) [![NPM Downloads](https://img.shields.io/npm/dm/react-codemirror-merge.svg?style=flat)](https://www.npmjs.com/package/react-codemirror-merge) |\\n| [`@uiw/codemirror-extensions-basic-setup`](https://uiwjs.github.io/react-codemirror/#/extensions/basic-setup) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-basic-setup.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-basic-setup) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-basic-setup.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-basic-setup) |\\n| [`@uiw/codemirror-extensions-color`](https://uiwjs.github.io/react-codemirror/#/extensions/color) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-color.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-color) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-color.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-color) |\\n| [`@uiw/codemirror-extensions-classname`](https://uiwjs.github.io/react-codemirror/#/extensions/classname) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-classname.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-classname) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-classname.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-classname) |\\n| [`@uiw/codemirror-extensions-events`](https://uiwjs.github.io/react-codemirror/#/extensions/events) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-events.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-events) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-events.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-events) |\\n| [`@uiw/codemirror-extensions-hyper-link`](https://uiwjs.github.io/react-codemirror/#/extensions/hyper-link) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-hyper-link.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-hyper-link) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-hyper-link.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-hyper-link) |\\n| [`@uiw/codemirror-extensions-langs`](https://uiwjs.github.io/react-codemirror/#/extensions/languages) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-langs.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-langs) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-langs.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-langs) |\\n| [`@uiw/codemirror-extensions-line-numbers-relative`](https://uiwjs.github.io/react-codemirror/#/extensions/line-numbers-relative) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-line-numbers-relative.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-line-numbers-relative) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-line-numbers-relative.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-line-numbers-relative) |\\n| [`@uiw/codemirror-extensions-mentions`](https://uiwjs.github.io/react-codemirror/#/extensions/mentions) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-mentions.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-mentions) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-mentions.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-mentions) |\\n| [`@uiw/codemirror-extensions-zebra-stripes`](https://uiwjs.github.io/react-codemirror/#/extensions/zebra-stripes) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-extensions-zebra-stripes.svg)](https://www.npmjs.com/package/@uiw/codemirror-extensions-zebra-stripes) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-extensions-zebra-stripes.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-extensions-zebra-stripes) |\\n| [`@uiw/codemirror-themes`](https://uiwjs.github.io/react-codemirror/#/theme/doc) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-themes.svg)](https://www.npmjs.com/package/@uiw/codemirror-themes) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-themes.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-themes) |\\n\\n| Name | NPM Version |\\n| :----------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\\n| [`@uiw/codemirror-themes-all`](https://uiwjs.github.io/react-codemirror/#/theme/all) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-themes-all.svg)](https://www.npmjs.com/package/@uiw/codemirror-themes-all) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-themes-all.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-themes-all) |\\n| [`@uiw/codemirror-theme-abcdef`](https://uiwjs.github.io/react-codemirror/#/theme/data/abcdef) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abcdef.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-abcdef) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-abcdef.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-abcdef) |\\n| [`@uiw/codemirror-theme-abyss`](https://uiwjs.github.io/react-codemirror/#/theme/data/abyss) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-abyss.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-abyss) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-abyss.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-abyss) |\\n| [`@uiw/codemirror-theme-androidstudio`](https://uiwjs.github.io/react-codemirror/#/theme/data/androidstudio) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-androidstudio.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-androidstudio) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-androidstudio.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-androidstudio) |\\n| [`@uiw/codemirror-theme-andromeda`](https://uiwjs.github.io/react-codemirror/#/theme/data/andromeda) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-andromeda.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-andromeda) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-andromeda.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-andromeda) |\\n| [`@uiw/codemirror-theme-atomone`](https://uiwjs.github.io/react-codemirror/#/theme/data/atomone) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-atomone.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-atomone) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-atomone.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-atomone) |\\n| [`@uiw/codemirror-theme-aura`](https://uiwjs.github.io/react-codemirror/#/theme/data/aura) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-aura.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-aura) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-aura.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-aura) |\\n| [`@uiw/codemirror-theme-basic`](https://uiwjs.github.io/react-codemirror/#/theme/data/bbedit) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-basic.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-basic) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-basic.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-basic) |\\n| [`@uiw/codemirror-theme-bbedit`](https://uiwjs.github.io/react-codemirror/#/theme/data/bbedit) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-bbedit.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-bbedit) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-bbedit.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-bbedit) |\\n| [`@uiw/codemirror-theme-bespin`](https://uiwjs.github.io/react-codemirror/#/theme/data/bespin) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-bespin.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-bespin) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-bespin.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-bespin) |\\n| [`@uiw/codemirror-theme-copilot`](https://uiwjs.github.io/react-codemirror/#/theme/data/copilot) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-copilot.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-copilot) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-copilot.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-copilot) |\\n| [`@uiw/codemirror-theme-duotone`](https://uiwjs.github.io/react-codemirror/#/theme/data/duotone/light) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-duotone.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-duotone) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-duotone.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-duotone) |\\n| [`@uiw/codemirror-theme-dracula`](https://uiwjs.github.io/react-codemirror/#/theme/data/dracula) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-dracula.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-dracula) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-dracula.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-dracula) |\\n| [`@uiw/codemirror-theme-darcula`](https://uiwjs.github.io/react-codemirror/#/theme/data/darcula) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-darcula.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-darcula) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-darcula.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-darcula) |\\n| [`@uiw/codemirror-theme-eclipse`](https://uiwjs.github.io/react-codemirror/#/theme/data/eclipse) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-eclipse.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-eclipse) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-eclipse.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-eclipse) |\\n| [`@uiw/codemirror-theme-github`](https://uiwjs.github.io/react-codemirror/#/theme/data/github) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-github.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-github) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-github.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-github) |\\n| [`@uiw/codemirror-theme-gruvbox-dark`](https://uiwjs.github.io/react-codemirror/#/theme/data/gruvbox/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-gruvbox-dark.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-gruvbox-dark) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-gruvbox-dark.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-gruvbox-dark) |\\n| [`@uiw/codemirror-theme-kimbie`](https://uiwjs.github.io/react-codemirror/#/theme/data/kimbie/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-kimbie.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-kimbie.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie) |\\n| [`@uiw/codemirror-theme-kimbie`](https://uiwjs.github.io/react-codemirror/#/theme/data/kimbie/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-kimbie.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-kimbie.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-kimbie) |\\n| [`@uiw/codemirror-theme-material`](https://uiwjs.github.io/react-codemirror/#/theme/data/material/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-material.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-material) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-material.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-material) |\\n| [`@uiw/codemirror-theme-monokai`](https://uiwjs.github.io/react-codemirror/#/theme/data/monokai) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-monokai.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-monokai) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-monokai.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-monokai) |\\n| [`@uiw/codemirror-theme-noctis-lilac`](https://uiwjs.github.io/react-codemirror/#/theme/data/noctis-lilac) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-noctis-lilac.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-noctis-lilac) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-noctis-lilac.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-noctis-lilac) |\\n| [`@uiw/codemirror-theme-nord`](https://uiwjs.github.io/react-codemirror/#/theme/data/nord) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-nord.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-nord) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-nord.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-nord) |\\n| [`@uiw/codemirror-theme-okaidia`](https://uiwjs.github.io/react-codemirror/#/theme/data/okaidia) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-okaidia.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-okaidia) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-okaidia.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-okaidia) |\\n| [`@uiw/codemirror-theme-quietlight`](https://uiwjs.github.io/react-codemirror/#/theme/data/quietlight) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-quietlight.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-quietlight) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-quietlight.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-quietlight) |\\n| [`@uiw/codemirror-theme-red`](https://uiwjs.github.io/react-codemirror/#/theme/data/red) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-red.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-red) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-red.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-red) |\\n| [`@uiw/codemirror-theme-solarized`](https://uiwjs.github.io/react-codemirror/#/theme/data/solarized/dark) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-solarized.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-solarized) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-solarized.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-solarized) |\\n| [`@uiw/codemirror-theme-sublime`](https://uiwjs.github.io/react-codemirror/#/theme/data/sublime) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-sublime.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-sublime) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-sublime.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-sublime) |\\n| [`@uiw/codemirror-theme-tokyo-night`](https://uiwjs.github.io/react-codemirror/#/theme/data/tokyo-night) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tokyo-night.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night) |\\n| [`@uiw/codemirror-theme-tokyo-night-storm`](https://uiwjs.github.io/react-codemirror/#/theme/data/tokyo-night-storm) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-storm.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-storm) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tokyo-night-storm.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-storm) |\\n| [`@uiw/codemirror-theme-tokyo-night-day`](https://uiwjs.github.io/react-codemirror/#/theme/data/tokyo-night-day) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tokyo-night-day.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-day) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tokyo-night-day.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tokyo-night-day) |\\n| [`@uiw/codemirror-theme-vscode`](https://uiwjs.github.io/react-codemirror/#/theme/data/vscode) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-vscode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-vscode) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-vscode.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-vscode) |\\n| [`@uiw/codemirror-theme-white`](https://uiwjs.github.io/react-codemirror/#/theme/data/white/light) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-white.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-white) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-white.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-white) |\\n| [`@uiw/codemirror-theme-tomorrow-night-blue`](https://uiwjs.github.io/react-codemirror/#/theme/data/tomorrow-night-blue) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-tomorrow-night-blue.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-tomorrow-night-blue) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-tomorrow-night-blue.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-tomorrow-night-blue) |\\n| [`@uiw/codemirror-theme-xcode`](https://uiwjs.github.io/react-codemirror/#/theme/data/xcode) | [![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-xcode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-xcode) [![NPM Downloads](https://img.shields.io/npm/dm/@uiw/codemirror-theme-xcode.svg?style=flat)](https://www.npmjs.com/package/@uiw/codemirror-theme-xcode) |\\n\\n\\n\\n## Usage\\n\\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-slvju?fontsize=14&hidenavigation=1&theme=dark)\\n\\n```jsx mdx:preview\\nimport React from 'react';\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n const [value, setValue] = React.useState(\\\"console.log('hello world!');\\\");\\n const onChange = React.useCallback((val, viewUpdate) => {\\n console.log('val:', val);\\n setValue(val);\\n }, []);\\n return ;\\n}\\nexport default App;\\n```\\n\\n## Support Language\\n\\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-language-rz4rh?fontsize=14&hidenavigation=1&theme=dark)\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { StreamLanguage } from '@codemirror/language';\\nimport { go } from '@codemirror/legacy-modes/mode/go';\\n\\nconst goLang = `package main\\nimport \\\"fmt\\\"\\n\\nfunc main() {\\n fmt.Println(\\\"Hello, 世界\\\")\\n}`;\\n\\nexport default function App() {\\n return ;\\n}\\n```\\n\\n- ~~`@codemirror/legacy-modes/mode/cpp`~~ => [`@codemirror/lang-cpp`](https://www.npmjs.com/package/@codemirror/lang-cpp)\\n- ~~`@codemirror/legacy-modes/mode/html`~~ => [`@codemirror/lang-html`](https://www.npmjs.com/package/@codemirror/lang-html)\\n- ~~`@codemirror/legacy-modes/mode/java`~~ => [`@codemirror/lang-java`](https://www.npmjs.com/package/@codemirror/lang-java)\\n- ~~`@codemirror/legacy-modes/mode/javascript`~~ => [`@codemirror/lang-javascript`](https://www.npmjs.com/package/@codemirror/lang-javascript)\\n- ~~`@codemirror/legacy-modes/mode/json`~~ => [`@codemirror/lang-json`](https://www.npmjs.com/package/@codemirror/lang-json)\\n- ~~`@codemirror/legacy-modes/mode/lezer`~~ => [`@codemirror/lang-lezer`](https://www.npmjs.com/package/@codemirror/lang-lezer)\\n- ~~`@codemirror/legacy-modes/mode/markdown`~~ => [`@codemirror/lang-markdown`](https://www.npmjs.com/package/@codemirror/lang-markdown)\\n- ~~`@codemirror/legacy-modes/mode/php`~~ => [`@codemirror/lang-php`](https://www.npmjs.com/package/@codemirror/lang-php)\\n- ~~`@codemirror/legacy-modes/mode/python`~~ => [`@codemirror/lang-python`](https://www.npmjs.com/package/@codemirror/lang-python)\\n- ~~`@codemirror/legacy-modes/mode/rust`~~ => [`@codemirror/lang-rust`](https://www.npmjs.com/package/@codemirror/lang-rust)\\n- ~~`@codemirror/legacy-modes/mode/sql`~~ => [`@codemirror/lang-sql`](https://www.npmjs.com/package/@codemirror/lang-sql)\\n- ~~`@codemirror/legacy-modes/mode/xml`~~ => [`@codemirror/lang-xml`](https://www.npmjs.com/package/@codemirror/lang-xml)\\n- ~~`@codemirror/legacy-modes/mode/css`~~ => [`@codemirror/lang-less`](https://www.npmjs.com/package/@codemirror/lang-less)\\n- ~~`@codemirror/legacy-modes/mode/sass`~~ => [`@codemirror/lang-sass`](https://www.npmjs.com/package/@codemirror/lang-sass)\\n- ~~`@codemirror/legacy-modes/mode/clojure`~~ => [`@nextjournal/lang-clojure`](https://www.npmjs.com/package/@nextjournal/lang-clojure)\\n- ~~`@codemirror/legacy-modes/mode/clike`~~ => [`@replit/codemirror-lang-csharp`](https://www.npmjs.com/package/@replit/codemirror-lang-csharp)\\n\\n### Markdown Example\\n\\nMarkdown language code is automatically highlighted.\\n\\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-markdown-auto-languages-iudnj?fontsize=14&hidenavigation=1&theme=dark)\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { markdown, markdownLanguage } from '@codemirror/lang-markdown';\\nimport { languages } from '@codemirror/language-data';\\n\\nconst code = `## Title\\n\\n\\\\`\\\\`\\\\`jsx\\nfunction Demo() {\\n return
demo
\\n}\\n\\\\`\\\\`\\\\`\\n\\n\\\\`\\\\`\\\\`bash\\n# Not dependent on uiw.\\nnpm install @codemirror/lang-markdown --save\\nnpm install @codemirror/language-data --save\\n\\\\`\\\\`\\\\`\\n\\n[weisit ulr](https://uiwjs.github.io/react-codemirror/)\\n\\n\\\\`\\\\`\\\\`go\\npackage main\\nimport \\\"fmt\\\"\\nfunc main() {\\n fmt.Println(\\\"Hello, 世界\\\")\\n}\\n\\\\`\\\\`\\\\`\\n`;\\n\\nexport default function App() {\\n return ;\\n}\\n```\\n\\n## Codemirror Merge\\n\\n```jsx\\nimport CodeMirrorMerge from 'react-codemirror-merge';\\nimport { EditorView } from 'codemirror';\\nimport { EditorState } from '@codemirror/state';\\n\\nconst Original = CodeMirrorMerge.Original;\\nconst Modified = CodeMirrorMerge.Modified;\\nlet doc = `one\\ntwo\\nthree\\nfour\\nfive`;\\n\\nexport const Example = () => {\\n return (\\n \\n \\n \\n \\n );\\n};\\n```\\n\\n## Support Hook\\n\\n[![Open in CodeSandbox](https://img.shields.io/badge/Open%20in-CodeSandbox-blue?logo=codesandbox)](https://codesandbox.io/embed/react-codemirror-example-codemirror-6-hook-yr4vg?fontsize=14&hidenavigation=1&theme=dark)\\n\\n```jsx\\nimport { useEffect, useMemo, useRef } from 'react';\\nimport { useCodeMirror } from '@uiw/react-codemirror';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nconst code = \\\"console.log('hello world!');\\\\n\\\\n\\\\n\\\";\\n// Define the extensions outside the component for the best performance.\\n// If you need dynamic extensions, use React.useMemo to minimize reference changes\\n// which cause costly re-renders.\\nconst extensions = [javascript()];\\n\\nexport default function App() {\\n const editor = useRef();\\n const { setContainer } = useCodeMirror({\\n container: editor.current,\\n extensions,\\n value: code,\\n });\\n\\n useEffect(() => {\\n if (editor.current) {\\n setContainer(editor.current);\\n }\\n }, [editor.current]);\\n\\n return
;\\n}\\n```\\n\\n## Using Theme\\n\\nWe have created a [`theme editor`](https://uiwjs.github.io/react-codemirror/#/editor/theme) where you can define your own theme. We have also defined [some themes](https://uiwjs.github.io/react-codemirror/#/theme/data/okaidia) ourselves, which can be installed and used directly. Below is a usage example:\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { okaidia } from '@uiw/codemirror-theme-okaidia';\\n\\nconst extensions = [javascript({ jsx: true })];\\n\\nexport default function App() {\\n return (\\n \\n );\\n}\\n```\\n\\n## Using custom theme\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { createTheme } from '@uiw/codemirror-themes';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { tags as t } from '@lezer/highlight';\\n\\nconst myTheme = createTheme({\\n theme: 'light',\\n settings: {\\n background: '#ffffff',\\n backgroundImage: '',\\n foreground: '#75baff',\\n caret: '#5d00ff',\\n selection: '#036dd626',\\n selectionMatch: '#036dd626',\\n lineHighlight: '#8a91991a',\\n gutterBackground: '#fff',\\n gutterForeground: '#8a919966',\\n },\\n styles: [\\n { tag: t.comment, color: '#787b8099' },\\n { tag: t.variableName, color: '#0080ff' },\\n { tag: [t.string, t.special(t.brace)], color: '#5c6166' },\\n { tag: t.number, color: '#5c6166' },\\n { tag: t.bool, color: '#5c6166' },\\n { tag: t.null, color: '#5c6166' },\\n { tag: t.keyword, color: '#5c6166' },\\n { tag: t.operator, color: '#5c6166' },\\n { tag: t.className, color: '#5c6166' },\\n { tag: t.definition(t.typeName), color: '#5c6166' },\\n { tag: t.typeName, color: '#5c6166' },\\n { tag: t.angleBracket, color: '#5c6166' },\\n { tag: t.tagName, color: '#5c6166' },\\n { tag: t.attributeName, color: '#5c6166' },\\n ],\\n});\\nconst extensions = [javascript({ jsx: true })];\\n\\nexport default function App() {\\n const onChange = React.useCallback((value, viewUpdate) => {\\n console.log('value:', value);\\n }, []);\\n return (\\n \\n );\\n}\\n```\\n\\n## Use `initialState` to restore state from JSON-serialized representation\\n\\nCodeMirror allows to serialize editor state to JSON representation with [toJSON](https://codemirror.net/docs/ref/#state.EditorState.toJSON) function for persistency or other needs. This JSON representation can be later used to recreate ReactCodeMirror component with the same internal state.\\n\\nFor example, this is how undo history can be saved in the local storage, so that it remains after the page reloads\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { historyField } from '@codemirror/commands';\\n\\n// When custom fields should be serialized, you can pass them in as an object mapping property names to fields.\\n// See [toJSON](https://codemirror.net/docs/ref/#state.EditorState.toJSON) documentation for more details\\nconst stateFields = { history: historyField };\\n\\nexport function EditorWithInitialState() {\\n const serializedState = localStorage.getItem('myEditorState');\\n const value = localStorage.getItem('myValue') || '';\\n\\n return (\\n {\\n localStorage.setItem('myValue', value);\\n\\n const state = viewUpdate.state.toJSON(stateFields);\\n localStorage.setItem('myEditorState', JSON.stringify(state));\\n }}\\n />\\n );\\n}\\n```\\n\\n## Props\\n\\n\\n\\n- `value?: string` value of the auto created model in the editor.\\n- `width?: string` width of editor. Defaults to `auto`.\\n- `height?: string` height of editor. Defaults to `auto`.\\n- `theme?`: `'light'` / `'dark'` / `Extension` Defaults to `'light'`.\\n\\n```ts\\nimport React from 'react';\\nimport { EditorState, EditorStateConfig, Extension } from '@codemirror/state';\\nimport { EditorView, ViewUpdate } from '@codemirror/view';\\nexport * from '@codemirror/view';\\nexport * from '@codemirror/basic-setup';\\nexport * from '@codemirror/state';\\nexport interface UseCodeMirror extends ReactCodeMirrorProps {\\n container?: HTMLDivElement | null;\\n}\\nexport declare function useCodeMirror(props: UseCodeMirror): {\\n state: EditorState | undefined;\\n setState: import('react').Dispatch>;\\n view: EditorView | undefined;\\n setView: import('react').Dispatch>;\\n container: HTMLDivElement | null | undefined;\\n setContainer: import('react').Dispatch>;\\n};\\nexport interface ReactCodeMirrorProps\\n extends Omit,\\n Omit, 'onChange' | 'placeholder'> {\\n /** value of the auto created model in the editor. */\\n value?: string;\\n height?: string;\\n minHeight?: string;\\n maxHeight?: string;\\n width?: string;\\n minWidth?: string;\\n maxWidth?: string;\\n /** focus on the editor. */\\n autoFocus?: boolean;\\n /** Enables a placeholder—a piece of example content to show when the editor is empty. */\\n placeholder?: string | HTMLElement;\\n /**\\n * `light` / `dark` / `Extension` Defaults to `light`.\\n * @default light\\n */\\n theme?: 'light' | 'dark' | Extension;\\n /**\\n * Whether to optional basicSetup by default\\n * @default true\\n */\\n basicSetup?: boolean | BasicSetupOptions;\\n /**\\n * This disables editing of the editor content by the user.\\n * @default true\\n */\\n editable?: boolean;\\n /**\\n * This disables editing of the editor content by the user.\\n * @default false\\n */\\n readOnly?: boolean;\\n /**\\n * Controls whether pressing the `Tab` key inserts a tab character and indents the text (`true`)\\n * or behaves according to the browser's default behavior (`false`).\\n * @default true\\n */\\n indentWithTab?: boolean;\\n /** Fired whenever a change occurs to the document. */\\n onChange?(value: string, viewUpdate: ViewUpdate): void;\\n /** Some data on the statistics editor. */\\n onStatistics?(data: Statistics): void;\\n /** The first time the editor executes the event. */\\n onCreateEditor?(view: EditorView, state: EditorState): void;\\n /** Fired whenever any state change occurs within the editor, including non-document changes like lint results. */\\n onUpdate?(viewUpdate: ViewUpdate): void;\\n /**\\n * Extension values can be [provided](https://codemirror.net/6/docs/ref/#state.EditorStateConfig.extensions) when creating a state to attach various kinds of configuration and behavior information.\\n * They can either be built-in extension-providing objects,\\n * such as [state fields](https://codemirror.net/6/docs/ref/#state.StateField) or [facet providers](https://codemirror.net/6/docs/ref/#state.Facet.of),\\n * or objects with an extension in its `extension` property. Extensions can be nested in arrays arbitrarily deep—they will be flattened when processed.\\n */\\n extensions?: Extension[];\\n /**\\n * If the view is going to be mounted in a shadow root or document other than the one held by the global variable document (the default), you should pass it here.\\n * Originally from the [config of EditorView](https://codemirror.net/6/docs/ref/#view.EditorView.constructor%5Econfig.root)\\n */\\n root?: ShadowRoot | Document;\\n /**\\n * Create a state from its JSON representation serialized with [toJSON](https://codemirror.net/docs/ref/#state.EditorState.toJSON) function\\n */\\n initialState?: {\\n json: any;\\n fields?: Record<'string', StateField>;\\n };\\n}\\nexport interface ReactCodeMirrorRef {\\n editor?: HTMLDivElement | null;\\n state?: EditorState;\\n view?: EditorView;\\n}\\ndeclare const ReactCodeMirror: React.ForwardRefExoticComponent<\\n ReactCodeMirrorProps & React.RefAttributes\\n>;\\nexport default ReactCodeMirror;\\nexport interface BasicSetupOptions {\\n lineNumbers?: boolean;\\n highlightActiveLineGutter?: boolean;\\n highlightSpecialChars?: boolean;\\n history?: boolean;\\n foldGutter?: boolean;\\n drawSelection?: boolean;\\n dropCursor?: boolean;\\n allowMultipleSelections?: boolean;\\n indentOnInput?: boolean;\\n syntaxHighlighting?: boolean;\\n bracketMatching?: boolean;\\n closeBrackets?: boolean;\\n autocompletion?: boolean;\\n rectangularSelection?: boolean;\\n crosshairCursor?: boolean;\\n highlightActiveLine?: boolean;\\n highlightSelectionMatches?: boolean;\\n closeBracketsKeymap?: boolean;\\n defaultKeymap?: boolean;\\n searchKeymap?: boolean;\\n historyKeymap?: boolean;\\n foldKeymap?: boolean;\\n completionKeymap?: boolean;\\n lintKeymap?: boolean;\\n}\\n```\\n\\n```ts\\nimport { EditorSelection, SelectionRange } from '@codemirror/state';\\nimport { ViewUpdate } from '@codemirror/view';\\nexport interface Statistics {\\n /** Get the number of lines in the editor. */\\n lineCount: number;\\n /** total length of the document */\\n length: number;\\n /** Get the proper [line-break](https://codemirror.net/docs/ref/#state.EditorState^lineSeparator) string for this state. */\\n lineBreak: string;\\n /** Returns true when the editor is [configured](https://codemirror.net/6/docs/ref/#state.EditorState^readOnly) to be read-only. */\\n readOnly: boolean;\\n /** The size (in columns) of a tab in the document, determined by the [`tabSize`](https://codemirror.net/6/docs/ref/#state.EditorState^tabSize) facet. */\\n tabSize: number;\\n /** Cursor Position */\\n selection: EditorSelection;\\n /** Make sure the selection only has one range. */\\n selectionAsSingle: SelectionRange;\\n /** Retrieves a list of all current selections. */\\n ranges: readonly SelectionRange[];\\n /** Get the currently selected code. */\\n selectionCode: string;\\n /**\\n * The length of the given array should be the same as the number of active selections.\\n * Replaces the content of the selections with the strings in the array.\\n */\\n selections: string[];\\n /** Return true if any text is selected. */\\n selectedText: boolean;\\n}\\nexport declare const getStatistics: (view: ViewUpdate) => Statistics;\\n```\\n\\n## Development\\n\\n1. Install dependencies\\n\\n```bash\\n$ npm install # Installation dependencies\\n$ npm run build # Compile all package\\n```\\n\\n2. Development `@uiw/react-codemirror` package:\\n\\n```bash\\n$ cd core\\n# listen to the component compile and output the .js file\\n# listen for compilation output type .d.ts file\\n$ npm run watch # Monitor the compiled package `@uiw/react-codemirror`\\n```\\n\\n3. Launch documentation site\\n\\n```bash\\nnpm run start\\n```\\n\\n## Related\\n\\n- [@uiw/react-textarea-code-editor](https://github.com/uiwjs/react-textarea-code-editor): A simple code editor with syntax highlighting.\\n- [@uiw/react-md-editor](https://github.com/uiwjs/react-md-editor): A simple markdown editor with preview, implemented with React.js and TypeScript.\\n- [@uiw/react-monacoeditor](https://github.com/jaywcjlove/react-monacoeditor): Monaco Editor component for React.\\n- [@uiw/react-markdown-editor](https://github.com/uiwjs/react-markdown-editor): A markdown editor with preview, implemented with React.js and TypeScript.\\n- [@uiw/react-markdown-preview](https://github.com/uiwjs/react-markdown-preview): React component preview markdown text in web browser.\\n- [Online JSON Viewer](https://github.com/uiwjs/json-viewer) Online JSON Viewer, JSON Beautifier to beautify and tree view of JSON data - It works as JSON Pretty Print to pretty print JSON data.\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }","interface SelectProps {\n label?: string;\n value?: string;\n options?: string[];\n onChange?(evn: React.ChangeEvent): void;\n}\n\nexport const Select = ({ label = '', value, options = [], onChange }: SelectProps) => {\n return (\n \n );\n};\n","import { useEffect, useState } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport { color } from '@uiw/codemirror-extensions-color';\nimport DocumentStr from '@uiw/react-codemirror/README.md';\nimport { Extension } from '@codemirror/state';\nimport CodeMirror, { ReactCodeMirrorProps, BasicSetupOptions } from '@uiw/react-codemirror';\nimport styled from 'styled-components';\nimport * as alls from '@uiw/codemirror-themes-all';\nimport { langs } from '@uiw/codemirror-extensions-langs';\nimport { Select } from './Select';\nimport { Options } from '../extensions/basic-setup/example';\nimport { useTheme } from '../../utils/useTheme';\n\nconst themeOptions = ['dark', 'light']\n .concat(Object.keys(alls))\n .filter((item) => typeof alls[item as keyof typeof alls] !== 'function')\n .filter((item) => !/^(defaultSettings)/.test(item as keyof typeof alls));\nconst heightOptions = ['auto', '200px', '300px', '500px'];\nlet count = 0;\n\nconst MarkdownDocument = styled.div`\n margin: 0 auto;\n text-align: left;\n max-width: 995px;\n overflow: auto;\n padding: 16px;\n border-radius: 5px;\n`;\n\nconst Tools = styled.div`\n margin: 0 auto;\n max-width: 995px;\n padding: 15px 0 0 0;\n > label {\n margin-right: 15px;\n }\n`;\n\nconst CodemirrorWarpper = styled.div`\n box-shadow:\n 0 0 0 1px rgb(16 22 26 / 10%),\n 0 0 0 rgb(16 22 26 / 0%),\n 0 1px 1px rgb(16 22 26 / 20%);\n margin: 0 auto;\n text-align: left;\n max-width: 995px;\n overflow: auto;\n border-radius: 5px;\n margin-top: -30px;\n z-index: 10;\n position: relative;\n`;\n\nconst Warpper = styled.div`\n padding-bottom: 18px;\n`;\n\nexport default function Example() {\n const [mode, setMode] = useState('javascript');\n const [placeholder, setPlaceholder] = useState('Please enter the code.');\n const [autofocus, setAutofocus] = useState(false);\n const [editable, setEditable] = useState(true);\n const { theme, setTheme } = useTheme();\n const [code, setCode] = useState('');\n const [extensions, setExtensions] = useState();\n const [height, setHeight] = useState('500px');\n const [basicSetup, setBasicSetup] = useState({\n crosshairCursor: false,\n });\n\n function handleLangChange(lang: keyof typeof langs) {\n try {\n import(`code-example/txt/sample.${lang.toLocaleLowerCase()}.txt`)\n .then((data) => {\n setCode(data.default);\n if (langs[lang]) {\n setExtensions([color, langs[lang]()]);\n }\n setMode(lang);\n })\n .catch((err) => {\n if (langs[lang]) {\n setExtensions([color, langs[lang]()]);\n } else {\n setExtensions([color]);\n }\n setMode(lang);\n setCode('');\n });\n if (lang === 'html') {\n }\n } catch (error) {}\n }\n useEffect(() => {\n handleLangChange('javascript');\n }, []);\n return (\n \n \n {\n // https://github.com/uiwjs/react-codemirror/issues/449\n // setCode(val)\n }}\n style={{\n maxWidth: '995px',\n position: 'relative',\n zIndex: 999,\n }}\n />\n \n \n \n handleLangChange(evn.target.value as keyof typeof langs)}\n />\n {\n document.documentElement.setAttribute('data-color-mode', evn.target.value === 'dark' ? 'dark' : 'light');\n setTheme(evn.target.value as ReactCodeMirrorProps['theme']);\n }}\n />\n {\n if (/^(dark|light)$/.test(evn.target.value)) {\n document.documentElement.setAttribute('data-color-mode', evn.target.value);\n }\n setTheme(evn.target.value as ReactCodeMirrorProps['theme']);\n }}\n />\n \n \n setHeight(evn.target.value)}\n />\n {\n count++;\n setCode(`console.log(\"Hello World! ${count}\")`);\n }}\n >\n change code\n \n \n \n \n setBasicSetup({ ...basicSetup, lineNumbers: evn.target.checked })}\n >\n lineNumbers\n \n setBasicSetup({ ...basicSetup, foldGutter: evn.target.checked })}\n >\n foldGutter\n \n setBasicSetup({ ...basicSetup, highlightActiveLineGutter: evn.target.checked })}\n >\n highlightActiveLineGutter\n \n setBasicSetup({ ...basicSetup, highlightSpecialChars: evn.target.checked })}\n >\n highlightSpecialChars\n \n setBasicSetup({ ...basicSetup, history: evn.target.checked })}\n >\n history\n \n setBasicSetup({ ...basicSetup, drawSelection: evn.target.checked })}\n >\n drawSelection\n \n setBasicSetup({ ...basicSetup, dropCursor: evn.target.checked })}\n >\n dropCursor\n \n setBasicSetup({ ...basicSetup, allowMultipleSelections: evn.target.checked })}\n >\n allowMultipleSelections\n \n setBasicSetup({ ...basicSetup, indentOnInput: evn.target.checked })}\n >\n indentOnInput\n \n setBasicSetup({ ...basicSetup, syntaxHighlighting: evn.target.checked })}\n >\n syntaxHighlighting\n \n setBasicSetup({ ...basicSetup, bracketMatching: evn.target.checked })}\n >\n bracketMatching\n \n setBasicSetup({ ...basicSetup, closeBrackets: evn.target.checked })}\n >\n closeBrackets\n \n setBasicSetup({ ...basicSetup, autocompletion: evn.target.checked })}\n >\n autocompletion\n \n setBasicSetup({ ...basicSetup, rectangularSelection: evn.target.checked })}\n >\n rectangularSelection\n \n setBasicSetup({ ...basicSetup, crosshairCursor: evn.target.checked })}\n >\n crosshairCursor\n \n setBasicSetup({ ...basicSetup, highlightActiveLine: evn.target.checked })}\n >\n highlightActiveLine\n \n setBasicSetup({ ...basicSetup, highlightSelectionMatches: evn.target.checked })}\n >\n highlightSelectionMatches\n \n setBasicSetup({ ...basicSetup, closeBracketsKeymap: evn.target.checked })}\n >\n closeBracketsKeymap\n \n setBasicSetup({ ...basicSetup, defaultKeymap: evn.target.checked })}\n >\n defaultKeymap\n \n setBasicSetup({ ...basicSetup, searchKeymap: evn.target.checked })}\n >\n searchKeymap\n \n setBasicSetup({ ...basicSetup, historyKeymap: evn.target.checked })}\n >\n historyKeymap\n \n setBasicSetup({ ...basicSetup, foldKeymap: evn.target.checked })}\n >\n foldKeymap\n \n setBasicSetup({ ...basicSetup, completionKeymap: evn.target.checked })}\n >\n completionKeymap\n \n setBasicSetup({ ...basicSetup, lintKeymap: evn.target.checked })}\n >\n lintKeymap\n \n \n \n \n \n );\n}\n","import React from 'react';\nimport { Link } from 'react-router-dom';\nimport styled, { keyframes } from 'styled-components';\nimport GitHubCorners from '@uiw/react-github-corners';\nimport Github from '@uiw/react-shields/github';\nimport Npm from '@uiw/react-shields/npm';\nimport BackToUp from '@uiw/react-back-to-top';\nimport logo from '../../logo.png';\nimport Example from './Example';\n\nconst rotate = keyframes`\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n`;\n\nconst AppLogo = styled.img`\n animation: ${rotate} infinite 20s linear;\n height: 80px;\n`;\n\nconst AppTitle = styled.h1`\n font-size: 30px;\n sup {\n position: absolute;\n background: var(--color-neutral-muted);\n padding: 1px 5px;\n font-size: 12px;\n border-radius: 3px;\n }\n`;\n\nconst Describe = styled.p`\n font-size: 18px;\n color: #a5a5a5;\n font-weight: 200;\n`;\n\nconst Buttons = styled.div`\n a {\n outline: none;\n min-height: 30px;\n margin: 6px 5px;\n padding: 0 10px;\n font-size: 14px;\n display: inline-block;\n position: relative;\n overflow: hidden;\n user-select: none;\n border-radius: 3px;\n cursor: pointer;\n background: var(--color-neutral-muted);\n color: var(--color-theme-text);\n line-height: 30px;\n text-decoration: none;\n &.themes {\n background-color: var(--color-prettylights-syntax-variable);\n color: var(--color-prettylights-syntax-carriage-return-text);\n }\n &.special {\n background: var(--color-prettylights-syntax-markup-ignored-bg);\n color: var(--color-prettylights-syntax-carriage-return-text);\n }\n &.extensions {\n background: var(--color-prettylights-syntax-brackethighlighter-unmatched);\n color: var(--color-prettylights-syntax-carriage-return-text);\n }\n &:hover {\n background-color: var(--color-fg-muted);\n color: var(--color-theme-bg);\n transition:\n background-color 0.25s linear,\n color 0.05s linear,\n opacity 0.25s linear,\n filter 0.25s linear,\n visibility 0.25s linear,\n transform 0.25s linear;\n }\n &:last-child {\n color: var(--color-prettylights-syntax-keyword);\n }\n }\n`;\n\nconst Footer = styled.div`\n text-align: center;\n padding-top: 30px;\n padding-bottom: 160px;\n display: flex;\n justify-content: center;\n gap: 6px;\n a {\n text-decoration: none;\n }\n`;\n\nconst AppHeader = styled.div`\n background-color: var(--color-canvas-subtle);\n box-shadow:\n 0px 2px 10px 0px rgba(0, 0, 0, 0.1),\n 0 1px rgba(0, 0, 0, 0.1);\n padding: 120px 20px 40px 20px;\n border-bottom: 1px solid var(--color-canvas-default);\n position: relative;\n z-index: 9;\n text-align: center;\n`;\n\nconst hyperlink: {\n href: string;\n label: string;\n style?: React.CSSProperties;\n}[] = [\n {\n href: 'https://www.npmjs.com/package/@uiw/react-codemirror',\n label: 'On NPM',\n },\n {\n href: 'https://codemirror.net/docs/',\n label: 'CM Documentation',\n },\n {\n href: 'https://github.com/uiwjs/react-codemirror',\n label: 'Github',\n },\n // {\n // href: 'https://github.com/codemirror/dev',\n // label: 'CodeMirror GitHub',\n // },\n {\n href: 'https://raw.githack.com/uiwjs/react-codemirror/doc3/index.html',\n label: 'V3 Doc',\n style: { color: 'red' },\n },\n];\n\nexport function Component() {\n const version = VERSION;\n return (\n
\n Top\n \n \n \n \n \n React CodeMirror v{version}\n \n CodeMirror component for React. \n \n \n Theme Editor\n \n \n Themes\n \n \n Extensions\n \n Merge\n {hyperlink.map(({ href, label, style }, idx) => {\n return (\n \n {label}\n \n );\n })}\n \n \n \n
\n \n \n \n \n \n \"NPM\n \n \n \n
\n
\n );\n}\n","import { useEffect, useState } from 'react';\nimport { ReactCodeMirrorProps } from '@uiw/react-codemirror';\n\nexport function useTheme(name: ReactCodeMirrorProps['theme'] = 'light') {\n const dark = document.documentElement.getAttribute('data-color-mode');\n const [theme, setTheme] = useState(dark === 'dark' ? 'dark' : name);\n useEffect(() => {\n setTheme(document.documentElement.getAttribute('data-color-mode') === 'dark' ? 'dark' : 'light');\n document.addEventListener('colorschemechange', (e) => {\n setTheme(e.detail.colorScheme as ReactCodeMirrorProps['theme']);\n });\n }, []);\n return { theme, setTheme };\n}\n","var map = {\n\t\"./sample.abap.txt\": [\n\t\t86653,\n\t\t6653\n\t],\n\t\"./sample.aes.txt\": [\n\t\t9547,\n\t\t9547\n\t],\n\t\"./sample.apex.txt\": [\n\t\t39365,\n\t\t9365\n\t],\n\t\"./sample.azcli.txt\": [\n\t\t87795,\n\t\t7795\n\t],\n\t\"./sample.bat.txt\": [\n\t\t20470,\n\t\t470\n\t],\n\t\"./sample.bicep.txt\": [\n\t\t10803,\n\t\t803\n\t],\n\t\"./sample.brainfuck.txt\": [\n\t\t78465,\n\t\t8465\n\t],\n\t\"./sample.c.txt\": [\n\t\t86124,\n\t\t6124\n\t],\n\t\"./sample.cameligo.txt\": [\n\t\t64286,\n\t\t4286\n\t],\n\t\"./sample.clike.txt\": [\n\t\t25034,\n\t\t5034\n\t],\n\t\"./sample.clojure.txt\": [\n\t\t6268,\n\t\t6268\n\t],\n\t\"./sample.coffeescript.txt\": [\n\t\t35164,\n\t\t5164\n\t],\n\t\"./sample.cpp.txt\": [\n\t\t78410,\n\t\t8410\n\t],\n\t\"./sample.csharp.txt\": [\n\t\t57511,\n\t\t7511\n\t],\n\t\"./sample.csp.txt\": [\n\t\t55541,\n\t\t5541\n\t],\n\t\"./sample.css.txt\": [\n\t\t80088\n\t],\n\t\"./sample.dart.txt\": [\n\t\t84661,\n\t\t4661\n\t],\n\t\"./sample.dockerfile.txt\": [\n\t\t24593,\n\t\t4593\n\t],\n\t\"./sample.ecl.txt\": [\n\t\t83733,\n\t\t3733\n\t],\n\t\"./sample.elixir.txt\": [\n\t\t84890,\n\t\t4890\n\t],\n\t\"./sample.erlang.txt\": [\n\t\t48453,\n\t\t8453\n\t],\n\t\"./sample.flow9.txt\": [\n\t\t97626,\n\t\t7626\n\t],\n\t\"./sample.freemarker2.txt\": [\n\t\t33498,\n\t\t3498\n\t],\n\t\"./sample.fsharp.txt\": [\n\t\t96787,\n\t\t6787\n\t],\n\t\"./sample.go.txt\": [\n\t\t11200\n\t],\n\t\"./sample.graphql.txt\": [\n\t\t11093,\n\t\t1093\n\t],\n\t\"./sample.handlebars.txt\": [\n\t\t8884,\n\t\t8884\n\t],\n\t\"./sample.hcl.txt\": [\n\t\t64166,\n\t\t4166\n\t],\n\t\"./sample.html.txt\": [\n\t\t90348\n\t],\n\t\"./sample.ini.txt\": [\n\t\t71958,\n\t\t1958\n\t],\n\t\"./sample.java.txt\": [\n\t\t73486\n\t],\n\t\"./sample.javascript.txt\": [\n\t\t11039\n\t],\n\t\"./sample.json.txt\": [\n\t\t20230\n\t],\n\t\"./sample.jsx.txt\": [\n\t\t33528\n\t],\n\t\"./sample.julia.txt\": [\n\t\t47610,\n\t\t7610\n\t],\n\t\"./sample.kotlin.txt\": [\n\t\t90671,\n\t\t671\n\t],\n\t\"./sample.less.txt\": [\n\t\t68152,\n\t\t8152\n\t],\n\t\"./sample.lex.txt\": [\n\t\t43787,\n\t\t3787\n\t],\n\t\"./sample.lexon.txt\": [\n\t\t81033,\n\t\t1033\n\t],\n\t\"./sample.liquid.txt\": [\n\t\t24905,\n\t\t4905\n\t],\n\t\"./sample.livescript.txt\": [\n\t\t41108,\n\t\t1108\n\t],\n\t\"./sample.lua.txt\": [\n\t\t28660,\n\t\t8660\n\t],\n\t\"./sample.m3.txt\": [\n\t\t27695,\n\t\t7695\n\t],\n\t\"./sample.markdown.txt\": [\n\t\t79770\n\t],\n\t\"./sample.mips.txt\": [\n\t\t55942,\n\t\t5942\n\t],\n\t\"./sample.msdax.txt\": [\n\t\t93087,\n\t\t3087\n\t],\n\t\"./sample.mysql.txt\": [\n\t\t55718\n\t],\n\t\"./sample.nginx.txt\": [\n\t\t64272,\n\t\t4272\n\t],\n\t\"./sample.objective-c.txt\": [\n\t\t6401,\n\t\t6401\n\t],\n\t\"./sample.pascal.txt\": [\n\t\t99476,\n\t\t9476\n\t],\n\t\"./sample.pascaligo.txt\": [\n\t\t8569,\n\t\t8569\n\t],\n\t\"./sample.perl.txt\": [\n\t\t96466,\n\t\t6466\n\t],\n\t\"./sample.pgsql.txt\": [\n\t\t78031,\n\t\t8031\n\t],\n\t\"./sample.php.txt\": [\n\t\t17995\n\t],\n\t\"./sample.pla.txt\": [\n\t\t69321,\n\t\t9321\n\t],\n\t\"./sample.plaintext.txt\": [\n\t\t10602,\n\t\t602\n\t],\n\t\"./sample.postiats.txt\": [\n\t\t10428,\n\t\t428\n\t],\n\t\"./sample.powerquery.txt\": [\n\t\t6580,\n\t\t6580\n\t],\n\t\"./sample.powershell.txt\": [\n\t\t79336,\n\t\t9336\n\t],\n\t\"./sample.proto.txt\": [\n\t\t81600,\n\t\t1600\n\t],\n\t\"./sample.pug.txt\": [\n\t\t63834,\n\t\t3834\n\t],\n\t\"./sample.python.txt\": [\n\t\t2223\n\t],\n\t\"./sample.qsharp.txt\": [\n\t\t24668,\n\t\t4668\n\t],\n\t\"./sample.r.txt\": [\n\t\t74199,\n\t\t4199\n\t],\n\t\"./sample.razor.txt\": [\n\t\t91876,\n\t\t1876\n\t],\n\t\"./sample.redis.txt\": [\n\t\t13368,\n\t\t3368\n\t],\n\t\"./sample.redshift.txt\": [\n\t\t23969,\n\t\t3969\n\t],\n\t\"./sample.restructuredtext.txt\": [\n\t\t76203,\n\t\t6203\n\t],\n\t\"./sample.ruby.txt\": [\n\t\t53602,\n\t\t3602\n\t],\n\t\"./sample.rust.txt\": [\n\t\t74922\n\t],\n\t\"./sample.sb.txt\": [\n\t\t16365,\n\t\t6365\n\t],\n\t\"./sample.scala.txt\": [\n\t\t15194,\n\t\t5194\n\t],\n\t\"./sample.scheme.txt\": [\n\t\t80721,\n\t\t721\n\t],\n\t\"./sample.scss.txt\": [\n\t\t14695,\n\t\t4695\n\t],\n\t\"./sample.shell.txt\": [\n\t\t69512\n\t],\n\t\"./sample.sol.txt\": [\n\t\t71419,\n\t\t1419\n\t],\n\t\"./sample.sparql.txt\": [\n\t\t99308,\n\t\t9308\n\t],\n\t\"./sample.sql.txt\": [\n\t\t49347,\n\t\t9347\n\t],\n\t\"./sample.st.txt\": [\n\t\t66488,\n\t\t6488\n\t],\n\t\"./sample.stylus.txt\": [\n\t\t10877,\n\t\t877\n\t],\n\t\"./sample.swift.txt\": [\n\t\t31027\n\t],\n\t\"./sample.systemverilog.txt\": [\n\t\t84887,\n\t\t4887\n\t],\n\t\"./sample.tcl.txt\": [\n\t\t46636,\n\t\t6636\n\t],\n\t\"./sample.toml.txt\": [\n\t\t32980,\n\t\t2980\n\t],\n\t\"./sample.tsx.txt\": [\n\t\t17251\n\t],\n\t\"./sample.twig.txt\": [\n\t\t31635,\n\t\t1635\n\t],\n\t\"./sample.typescript.txt\": [\n\t\t53992\n\t],\n\t\"./sample.vb.txt\": [\n\t\t44187,\n\t\t4187\n\t],\n\t\"./sample.vbscript.txt\": [\n\t\t19200,\n\t\t9200\n\t],\n\t\"./sample.verilog.txt\": [\n\t\t94124,\n\t\t4124\n\t],\n\t\"./sample.vue.txt\": [\n\t\t10310,\n\t\t310\n\t],\n\t\"./sample.xml.txt\": [\n\t\t49294,\n\t\t9294\n\t],\n\t\"./sample.yaml.txt\": [\n\t\t89896,\n\t\t9896\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(() => {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn Promise.all(ids.slice(1).map(__webpack_require__.e)).then(() => {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = () => (Object.keys(map));\nwebpackAsyncContext.id = 70620;\nmodule.exports = webpackAsyncContext;"],"names":["Label","styled","label","_templateObject","_taggedTemplateLiteral","Options","_ref","children","props","_jsxs","_jsx","type","Warpper","div","_templateObject2","BasicSetupExample","theme","useTheme","basicSetup","setBasicSetup","useState","mdData","useContext","MdContext","PageWarpper","CodeMirror","value","mdstr","height","style","margin","extensions","langs","markdown","tabSize","onChange","evn","Number","target","checked","lineNumbers","foldGutter","highlightActiveLineGutter","highlightSpecialChars","history","drawSelection","dropCursor","allowMultipleSelections","indentOnInput","syntaxHighlighting","bracketMatching","closeBrackets","autocompletion","rectangularSelection","crosshairCursor","highlightActiveLine","highlightSelectionMatches","closeBracketsKeymap","defaultKeymap","searchKeymap","historyKeymap","foldKeymap","completionKeymap","lintKeymap","GITHUB_CORNERS_TEMPLATE","document","createElement","innerHTML","GithubCorners","HTMLElement","observedAttributes","constructor","super","right","this","shadow","attachShadow","mode","appendChild","ownerDocument","importNode","content","update","setAttr","name","svg","querySelector","test","toLocaleLowerCase","lastElementChild","setAttribute","firstElementChild","getAttributeNames","forEach","getAttribute","attributeChangedCallback","oldValue","newValue","customElements","define","_excluded","githubCorners","size","fixed","bottom","zIndex","bgColor","color","position","otherProps","_objectWithoutPropertiesLoose","styl","left","transform","top","_extends","width","href","fill","Issues","React","ref","platform","base","property","user","repo","other","Internal","imgSrc","join","displayName","Size","path","License","Downloads","tag","total","getUrl","baseData","Activity","interval","variant","version","branch","typePath","Analysis","query","Social","Github","Container","Version","components","_react","_interopRequireDefault","_reactCodemirror","_langJavascript","obj","__esModule","_slicedToArray","arr","i","Array","isArray","_arrayWithHoles","r","l","t","Symbol","iterator","e","n","u","a","f","o","call","next","Object","done","push","length","_iterableToArrayLimit","minLen","_arrayLikeToArray","prototype","toString","slice","from","_unsupportedIterableToArray","TypeError","_nonIterableRest","len","arr2","_React$useState2","setValue","useCallback","val","viewUpdate","console","log","javascript","jsx","data","source","headings","headingsList","Select","options","map","item","key","optionProps","themeOptions","concat","keys","alls","filter","heightOptions","count","MarkdownDocument","Tools","CodemirrorWarpper","_templateObject3","_templateObject4","Example","setMode","placeholder","setPlaceholder","autofocus","setAutofocus","editable","setEditable","setTheme","code","setCode","setExtensions","setHeight","handleLangChange","lang","then","default","catch","err","error","useEffect","className","autoFocus","maxWidth","sort","documentElement","onClick","MarkdownPreview","DocumentStr","rotate","keyframes","AppLogo","img","AppTitle","h1","Describe","p","Buttons","_templateObject5","Footer","_templateObject6","AppHeader","_templateObject7","hyperlink","Component","BackToUp","permanent","dark","light","GitHubCorners","src","logo","alt","VERSION","Link","to","idx","rel","Npm","scope","packageName","arguments","undefined","addEventListener","detail","colorScheme","webpackAsyncContext","req","__webpack_require__","Promise","resolve","Error","ids","id","all","module","exports"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/9896.d6c0b0f8.chunk.js b/static/js/9896.d6c0b0f8.chunk.js new file mode 100644 index 000000000..e184ec402 --- /dev/null +++ b/static/js/9896.d6c0b0f8.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[9896],{89896:(n,e,t)=>{t.r(e),t.d(e,{default:()=>a});const a="%TAG ! tag:clarkevans.com,2002:\n--- !shape\n # Use the ! handle for presenting\n # tag:clarkevans.com,2002:circle\n- !circle\n center: &ORIGIN {x: 73, y: 129}\n radius: 7\n- !line\n start: *ORIGIN\n finish: { x: 89, y: 102 }\n- !label\n start: *ORIGIN\n color: 0xFFEEBB\n text: Pretty vector drawing.\n"}}]); +//# sourceMappingURL=9896.d6c0b0f8.chunk.js.map \ No newline at end of file diff --git a/static/js/9896.d6c0b0f8.chunk.js.map b/static/js/9896.d6c0b0f8.chunk.js.map new file mode 100644 index 000000000..a86235498 --- /dev/null +++ b/static/js/9896.d6c0b0f8.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/9896.d6c0b0f8.chunk.js","mappings":"yHAAA,kU","sources":["../../node_modules/code-example/txt/sample.yaml.txt"],"sourcesContent":["export default \"%TAG ! tag:clarkevans.com,2002:\\n--- !shape\\n # Use the ! handle for presenting\\n # tag:clarkevans.com,2002:circle\\n- !circle\\n center: &ORIGIN {x: 73, y: 129}\\n radius: 7\\n- !line\\n start: *ORIGIN\\n finish: { x: 89, y: 102 }\\n- !label\\n start: *ORIGIN\\n color: 0xFFEEBB\\n text: Pretty vector drawing.\\n\";"],"names":[],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/9965.f40f92d3.chunk.js b/static/js/9965.f40f92d3.chunk.js new file mode 100644 index 000000000..58436239d --- /dev/null +++ b/static/js/9965.f40f92d3.chunk.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[9965],{19965:(e,t,o)=>{o.r(t),o.d(t,{default:()=>n});const n={components:{},data:{},source:"\x3c!--rehype:ignore:start--\x3e\n\n# Xcode Theme\n\n\x3c!--rehype:ignore:end--\x3e\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-xcode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-xcode)\n\n\n \"codemirror-theme-xcode\n\n\n\n \"codemirror-theme-xcode\n\n\n## Install\n\n```bash\nnpm install @uiw/codemirror-theme-xcode --save\n```\n\n```jsx\nimport { xcodeLight, xcodeLightInit, xcodeDark, xcodeDarkInit } from '@uiw/codemirror-theme-xcode';\n\n\n\n```\n\n## API\n\n```ts\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\nexport declare const defaultSettingsXcodeLight: CreateThemeOptions['settings'];\nexport declare function xcodeLightInit(options?: Partial): import('@codemirror/state').Extension;\nexport declare const xcodeLight: import('@codemirror/state').Extension;\nexport declare const defaultSettingsXcodeDark: CreateThemeOptions['settings'];\nexport declare const xcodeDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\nexport declare const xcodeDark: import('@codemirror/state').Extension;\n```\n\n## Usage\n\n```jsx\nimport CodeMirror from '@uiw/react-codemirror';\nimport { xcodeLight, xcodeDark } from '@uiw/codemirror-theme-xcode';\nimport { javascript } from '@codemirror/lang-javascript';\n\nfunction App() {\n return (\n {\n console.log('value:', value);\n }}\n />\n );\n}\nexport default App;\n```\n\n```js\nimport { EditorView } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { xcodeLight, xcodeDark } from '@uiw/codemirror-theme-xcode';\n\nconst state = EditorState.create({\n doc: 'my source code',\n extensions: [xcodeDark, javascript({ jsx: true })],\n});\n\nconst view = new EditorView({\n parent: document.querySelector('#editor'),\n state,\n});\n```\n\n## Contributors\n\nAs always, thanks to our amazing contributors!\n\n\n \n\n\nMade with [action-contributors](https://github.com/jaywcjlove/github-action-contributors).\n\n## License\n\nLicensed under the MIT License.\n",headings:[],headingsList:[]}}}]); +//# sourceMappingURL=9965.f40f92d3.chunk.js.map \ No newline at end of file diff --git a/static/js/9965.f40f92d3.chunk.js.map b/static/js/9965.f40f92d3.chunk.js.map new file mode 100644 index 000000000..2467c897e --- /dev/null +++ b/static/js/9965.f40f92d3.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/9965.f40f92d3.chunk.js","mappings":"yHACA,SACIA,WAAY,CAAG,EACfC,KAAM,CAAC,EACPC,OAAQ,gqGACRC,SAAS,GACTC,aAAa,G","sources":["../../themes/xcode/README.md"],"sourcesContent":["\nexport default {\n components: { },\n data: {},\n source: \"\\n\\n# Xcode Theme\\n\\n\\n\\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\\n[![npm version](https://img.shields.io/npm/v/@uiw/codemirror-theme-xcode.svg)](https://www.npmjs.com/package/@uiw/codemirror-theme-xcode)\\n\\n\\n \\\"codemirror-theme-xcode\\n\\n\\n\\n \\\"codemirror-theme-xcode\\n\\n\\n## Install\\n\\n```bash\\nnpm install @uiw/codemirror-theme-xcode --save\\n```\\n\\n```jsx\\nimport { xcodeLight, xcodeLightInit, xcodeDark, xcodeDarkInit } from '@uiw/codemirror-theme-xcode';\\n\\n\\n\\n```\\n\\n## API\\n\\n```ts\\nimport { CreateThemeOptions } from '@uiw/codemirror-themes';\\nexport declare const defaultSettingsXcodeLight: CreateThemeOptions['settings'];\\nexport declare function xcodeLightInit(options?: Partial): import('@codemirror/state').Extension;\\nexport declare const xcodeLight: import('@codemirror/state').Extension;\\nexport declare const defaultSettingsXcodeDark: CreateThemeOptions['settings'];\\nexport declare const xcodeDarkInit: (options?: Partial) => import('@codemirror/state').Extension;\\nexport declare const xcodeDark: import('@codemirror/state').Extension;\\n```\\n\\n## Usage\\n\\n```jsx\\nimport CodeMirror from '@uiw/react-codemirror';\\nimport { xcodeLight, xcodeDark } from '@uiw/codemirror-theme-xcode';\\nimport { javascript } from '@codemirror/lang-javascript';\\n\\nfunction App() {\\n return (\\n {\\n console.log('value:', value);\\n }}\\n />\\n );\\n}\\nexport default App;\\n```\\n\\n```js\\nimport { EditorView } from '@codemirror/view';\\nimport { EditorState } from '@codemirror/state';\\nimport { javascript } from '@codemirror/lang-javascript';\\nimport { xcodeLight, xcodeDark } from '@uiw/codemirror-theme-xcode';\\n\\nconst state = EditorState.create({\\n doc: 'my source code',\\n extensions: [xcodeDark, javascript({ jsx: true })],\\n});\\n\\nconst view = new EditorView({\\n parent: document.querySelector('#editor'),\\n state,\\n});\\n```\\n\\n## Contributors\\n\\nAs always, thanks to our amazing contributors!\\n\\n\\n \\n\\n\\nMade with [action-contributors](https://github.com/jaywcjlove/github-action-contributors).\\n\\n## License\\n\\nLicensed under the MIT License.\\n\",\n headings:[],\n headingsList:[],\n }"],"names":["components","data","source","headings","headingsList"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/codemirror-vendor.5529399d.js b/static/js/codemirror-vendor.5529399d.js new file mode 100644 index 000000000..012c17f00 --- /dev/null +++ b/static/js/codemirror-vendor.5529399d.js @@ -0,0 +1,2 @@ +"use strict";(self.webpackChunkwww=self.webpackChunkwww||[]).push([[7474],{16718:(e,t,n)=>{e.exports=n.p+"static/media/index.6709ed71e170ea93199e.cjs"},76391:(e,t,n)=>{n.d(t,{B1:()=>_e,GA:()=>ge,Gn:()=>ie,Mb:()=>l,TK:()=>a,eC:()=>c,vQ:()=>ue,ys:()=>Se});var r=n(45224),i=n(50389),o=n(94019);class a{constructor(e,t,n){this.state=e,this.pos=t,this.explicit=n,this.abortListeners=[]}tokenBefore(e){let t=(0,o.qz)(this.state).resolveInner(this.pos,-1);for(;t&&e.indexOf(t.name)<0;)t=t.parent;return t?{from:t.from,to:this.pos,text:this.state.sliceDoc(t.from,this.pos),type:t.type}:null}matchBefore(e){let t=this.state.doc.lineAt(this.pos),n=Math.max(t.from,this.pos-250),r=t.text.slice(n-t.from,this.pos-t.from),i=r.search(h(e,!1));return i<0?null:{from:n+i,to:this.pos,text:r.slice(i)}}get aborted(){return null==this.abortListeners}addEventListener(e,t){"abort"==e&&this.abortListeners&&this.abortListeners.push(t)}}function s(e){let t=Object.keys(e).join(""),n=/\w/.test(t);return n&&(t=t.replace(/\w/g,"")),"[".concat(n?"\\w":"").concat(t.replace(/[^\w\s]/g,"\\$&"),"]")}function l(e){let t=e.map((e=>"string"==typeof e?{label:e}:e)),[n,r]=t.every((e=>/^\w+$/.test(e.label)))?[/\w*$/,/\w+$/]:function(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let e=1;e{let i=e.matchBefore(r);return i||e.explicit?{from:i?i.from:e.pos,options:t,validFor:n}:null}}function c(e,t){return n=>{for(let t=(0,o.qz)(n.state).resolveInner(n.pos,-1);t;t=t.parent){if(e.indexOf(t.name)>-1)return null;if(t.type.isTop)break}return t(n)}}class u{constructor(e,t,n,r){this.completion=e,this.source=t,this.match=n,this.score=r}}function d(e){return e.selection.main.from}function h(e,t){var n;let{source:r}=e,i=t&&"^"!=r[0],o="$"!=r[r.length-1];return i||o?new RegExp("".concat(i?"^":"","(?:").concat(r,")").concat(o?"$":""),null!==(n=e.flags)&&void 0!==n?n:e.ignoreCase?"i":""):e}const f=r.q6.define();const m=new WeakMap;function p(e){if(!Array.isArray(e))return e;let t=m.get(e);return t||m.set(e,t=l(e)),t}const g=r.Py.define(),b=r.Py.define();class v{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let t=0;t=48&&i<=57||i>=97&&i<=122?2:i>=65&&i<=90?1:0:(c=(0,r.bg)(i))!=c.toLowerCase()?1:c!=c.toUpperCase()?2:0;(!v||1==y&&g||0==k&&0!=y)&&(t[d]==i||n[d]==i&&(h=!0)?a[d++]=v:a.length&&(b=!1)),k=y,v+=(0,r.nZ)(i)}return d==l&&0==a[0]&&b?this.result((h?-200:0)-100,a,e):f==l&&0==m?this.ret(-200-e.length+(p==e.length?0:-100),[0,p]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):f==l?this.ret(-900-e.length,[m,p]):d==l?this.result((h?-200:0)-100-700+(b?0:-1100),a,e):2!=t.length&&this.result((i[0]?-700:0)-200-1100,i,e)}result(e,t,n){let i=[],o=0;for(let a of t){let e=a+(this.astral?(0,r.nZ)((0,r.gm)(n,a)):1);o&&i[o-1]==a?i[o-1]=e:(i[o++]=a,i[o++]=e)}return this.ret(e-n.length,i)}}const y=r.r$.define({combine:e=>(0,r.BO)(e,{activateOnTyping:!0,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:w,compareCompletions:(e,t)=>e.label.localeCompare(t.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,t)=>e&&t,closeOnBlur:(e,t)=>e&&t,icons:(e,t)=>e&&t,tooltipClass:(e,t)=>n=>k(e(n),t(n)),optionClass:(e,t)=>n=>k(e(n),t(n)),addToOptions:(e,t)=>e.concat(t)})});function k(e,t){return e?t?e+" "+t:e:t}function w(e,t,n,r,o,a){let s,l,c=e.textDirection==i.Nm.RTL,u=c,d=!1,h="top",f=t.left-o.left,m=o.right-t.right,p=r.right-r.left,g=r.bottom-r.top;if(u&&f=g||e>t.top?s=n.bottom-t.top:(h="bottom",s=t.bottom-n.top)}let b=(t.bottom-t.top)/a.offsetHeight,v=(t.right-t.left)/a.offsetWidth;return{style:"".concat(h,": ").concat(s/b,"px; max-width: ").concat(l/v,"px"),class:"cm-completionInfo-"+(d?c?"left-narrow":"right-narrow":u?"left":"right")}}function O(e,t,n){if(e<=n)return{from:0,to:e};if(t<0&&(t=0),t<=e>>1){let e=Math.floor(t/n);return{from:e*n,to:(e+1)*n}}let r=Math.floor((e-t)/n);return{from:e-(r+1)*n,to:e-r*n}}class x{constructor(e,t,n){this.view=e,this.stateField=t,this.applyCompletion=n,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:e=>this.placeInfo(e),key:this},this.space=null,this.currentClass="";let r=e.state.field(t),{options:i,selected:o}=r.open,a=e.state.facet(y);this.optionContent=function(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(e){let t=document.createElement("div");return t.classList.add("cm-completionIcon"),e.type&&t.classList.add(...e.type.split(/\s+/g).map((e=>"cm-completionIcon-"+e))),t.setAttribute("aria-hidden","true"),t},position:20}),t.push({render(e,t,n,r){let i=document.createElement("span");i.className="cm-completionLabel";let o=e.displayLabel||e.label,a=0;for(let s=0;sa&&i.appendChild(document.createTextNode(o.slice(a,e)));let n=i.appendChild(document.createElement("span"));n.appendChild(document.createTextNode(o.slice(e,t))),n.className="cm-completionMatchedText",a=t}return ae.position-t.position)).map((e=>e.render))}(a),this.optionClass=a.optionClass,this.tooltipClass=a.tooltipClass,this.range=O(i.length,o,a.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",(n=>{let{options:r}=e.state.field(t).open;for(let t,i=n.target;i&&i!=this.dom;i=i.parentNode)if("LI"==i.nodeName&&(t=/-(\d+)$/.exec(i.id))&&+t[1]{let n=e.state.field(this.stateField,!1);n&&n.tooltip&&e.state.facet(y).closeOnBlur&&t.relatedTarget!=e.contentDOM&&e.dispatch({effects:b.of(null)})})),this.showOptions(i,r.id)}mount(){this.updateSel()}showOptions(e,t){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,t,this.range)),this.list.addEventListener("scroll",(()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)}))}update(e){var t;let n=e.state.field(this.stateField),r=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),n!=r){let{options:i,selected:o,disabled:a}=n.open;r.open&&r.open.options==i||(this.range=O(i.length,o,e.state.facet(y).maxRenderedOptions),this.showOptions(i,n.id)),this.updateSel(),a!=(null===(t=r.open)||void 0===t?void 0:t.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!a)}}updateTooltipClass(e){let t=this.tooltipClass(e);if(t!=this.currentClass){for(let e of this.currentClass.split(" "))e&&this.dom.classList.remove(e);for(let e of t.split(" "))e&&this.dom.classList.add(e);this.currentClass=t}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),t=e.open;if((t.selected>-1&&t.selected=this.range.to)&&(this.range=O(t.options.length,t.selected,this.view.state.facet(y).maxRenderedOptions),this.showOptions(t.options,e.id)),this.updateSelectedOption(t.selected)){this.destroyInfo();let{completion:n}=t.options[t.selected],{info:r}=n;if(!r)return;let o="string"===typeof r?document.createTextNode(r):r(n);if(!o)return;"then"in o?o.then((t=>{t&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(t,n)})).catch((e=>(0,i.OO)(this.view.state,e,"completion info"))):this.addInfoPane(o,n)}}addInfoPane(e,t){this.destroyInfo();let n=this.info=document.createElement("div");if(n.className="cm-tooltip cm-completionInfo",null!=e.nodeType)n.appendChild(e),this.infoDestroy=null;else{let{dom:t,destroy:r}=e;n.appendChild(t),this.infoDestroy=r||null}this.dom.appendChild(n),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let t=null;for(let n=this.list.firstChild,r=this.range.from;n;n=n.nextSibling,r++)"LI"==n.nodeName&&n.id?r==e?n.hasAttribute("aria-selected")||(n.setAttribute("aria-selected","true"),t=n):n.hasAttribute("aria-selected")&&n.removeAttribute("aria-selected"):r--;return t&&function(e,t){let n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),i=n.height/e.offsetHeight;r.topn.bottom&&(e.scrollTop+=(r.bottom-n.bottom)/i)}(this.list,t),t}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let t=this.dom.getBoundingClientRect(),n=this.info.getBoundingClientRect(),r=e.getBoundingClientRect(),i=this.space;if(!i){let e=this.dom.ownerDocument.defaultView||window;i={left:0,top:0,right:e.innerWidth,bottom:e.innerHeight}}return r.top>Math.min(i.bottom,t.bottom)-10||r.bottomn.from||0==n.from))if(i=e,"string"!=typeof l&&l.header)r.appendChild(l.header(l));else{r.appendChild(document.createElement("completion-section")).textContent=e}}const c=r.appendChild(document.createElement("li"));c.id=t+"-"+o,c.setAttribute("role","option");let u=this.optionClass(a);u&&(c.className=u);for(let e of this.optionContent){let t=e(a,this.view.state,this.view,s);t&&c.appendChild(t)}}return n.from&&r.classList.add("cm-completionListIncompleteTop"),n.tonew x(n,e,t)}function _(e){return 100*(e.boost||0)+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}class T{constructor(e,t,n,r,i,o){this.options=e,this.attrs=t,this.tooltip=n,this.timestamp=r,this.selected=i,this.disabled=o}setSelected(e,t){return e==this.selected||e>=this.options.length?this:new T(this.options,C(t,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,t,n,r,i){let o=function(e,t){let n=[],r=null,i=e=>{n.push(e);let{section:t}=e.completion;if(t){r||(r=[]);let e="string"==typeof t?t:t.name;r.some((t=>t.name==e))||r.push("string"==typeof t?{name:e}:t)}};for(let l of e)if(l.hasResult()){let e=l.result.getMatch;if(!1===l.result.filter)for(let t of l.result.options)i(new u(t,l.source,e?e(t):[],1e9-n.length));else{let n=new v(t.sliceDoc(l.from,l.to));for(let t of l.result.options)if(n.match(t.label)){let r=t.displayLabel?e?e(t,n.matched):[]:n.matched;i(new u(t,l.source,r,n.score+(t.boost||0)))}}}if(r){let e=Object.create(null),t=0,i=(e,t)=>{var n,r;return(null!==(n=e.rank)&&void 0!==n?n:1e9)-(null!==(r=t.rank)&&void 0!==r?r:1e9)||(e.namet.score-e.score||s(e.completion,t.completion)))){let e=l.completion;!a||a.label!=e.label||a.detail!=e.detail||null!=a.type&&null!=e.type&&a.type!=e.type||a.apply!=e.apply||a.boost!=e.boost?o.push(l):_(l.completion)>_(a)&&(o[o.length-1]=l),a=l.completion}return o}(e,t);if(!o.length)return r&&e.some((e=>1==e.state))?new T(r.options,r.attrs,r.tooltip,r.timestamp,r.selected,!0):null;let a=t.facet(y).selectOnOpen?0:-1;if(r&&r.selected!=a&&-1!=r.selected){let e=r.options[r.selected].completion;for(let t=0;tt.hasResult()?Math.min(e,t.from):e),1e8),create:M,above:i.aboveCursor},r?r.timestamp:Date.now(),a,!1)}map(e){return new T(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class E{constructor(e,t,n){this.active=e,this.id=t,this.open=n}static start(){return new E(A,"cm-ac-"+Math.floor(2e6*Math.random()).toString(36),null)}update(e){let{state:t}=e,n=t.facet(y),r=(n.override||t.languageDataAt("autocomplete",d(t)).map(p)).map((t=>(this.active.find((e=>e.source==t))||new R(t,this.active.some((e=>0!=e.state))?1:0)).update(e,n)));r.length==this.active.length&&r.every(((e,t)=>e==this.active[t]))&&(r=this.active);let i=this.open;i&&e.docChanged&&(i=i.map(e.changes)),e.selection||r.some((t=>t.hasResult()&&e.changes.touchesRange(t.from,t.to)))||!function(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n1==e.state))&&(i=null),!i&&r.every((e=>1!=e.state))&&r.some((e=>e.hasResult()))&&(r=r.map((e=>e.hasResult()?new R(e.source,0):e)));for(let o of e.effects)o.is(z)&&(i=i&&i.setSelected(o.value,this.id));return r==this.active&&i==this.open?this:new E(r,this.id,i)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:$}}const $={"aria-autocomplete":"list"};function C(e,t){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":e};return t>-1&&(n["aria-activedescendant"]=e+"-"+t),n}const A=[];function P(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class R{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;this.source=e,this.state=t,this.explicitPos=n}hasResult(){return!1}update(e,t){let n=P(e),r=this;n?r=r.handleUserEvent(e,n,t):e.docChanged?r=r.handleChange(e):e.selection&&0!=r.state&&(r=new R(r.source,0));for(let i of e.effects)if(i.is(g))r=new R(r.source,1,i.value?d(e.state):-1);else if(i.is(b))r=new R(r.source,0);else if(i.is(D))for(let e of i.value)e.source==r.source&&(r=e);return r}handleUserEvent(e,t,n){return"delete"!=t&&n.activateOnTyping?new R(this.source,1):this.map(e.changes)}handleChange(e){return e.changes.touchesRange(d(e.startState))?new R(this.source,0):this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new R(this.source,this.state,e.mapPos(this.explicitPos))}}class I extends R{constructor(e,t,n,r,i){super(e,2,t),this.result=n,this.from=r,this.to=i}hasResult(){return!0}handleUserEvent(e,t,n){var r;let i=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=d(e.state);if((this.explicitPos<0?s<=i:so||"delete"==t&&d(e.startState)==this.from)return new R(this.source,"input"==t&&n.activateOnTyping?1:0);let l,c=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return function(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return"function"==typeof e?e(i,n,r,t):h(e,!0).test(i)}(this.result.validFor,e.state,i,o)?new I(this.source,c,this.result,i,o):this.result.update&&(l=this.result.update(this.result,i,o,new a(e.state,s,c>=0)))?new I(this.source,c,l,l.from,null!==(r=l.to)&&void 0!==r?r:d(e.state)):new R(this.source,1,c)}handleChange(e){return e.changes.touchesRange(this.from,this.to)?new R(this.source,0):this.map(e.changes)}map(e){return e.empty?this:new I(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1))}}const D=r.Py.define({map:(e,t)=>e.map((e=>e.map(t)))}),z=r.Py.define(),N=r.QQ.define({create:()=>E.start(),update:(e,t)=>e.update(t),provide:e=>[i.hJ.from(e,(e=>e.tooltip)),i.tk.contentAttributes.from(e,(e=>e.attrs))]});function L(e,t){const n=t.completion.apply||t.completion.label;let i=e.state.field(N).active.find((e=>e.source==t.source));return i instanceof I&&("string"==typeof n?e.dispatch(Object.assign(Object.assign({},function(e,t,n,i){let{main:o}=e.selection,a=n-o.from,s=i-o.from;return Object.assign(Object.assign({},e.changeByRange((l=>l!=o&&n!=i&&e.sliceDoc(l.from+a,l.from+s)!=e.sliceDoc(n,i)?{range:l}:{changes:{from:l.from+a,to:i==o.from?l.to:l.from+s,insert:t},range:r.jT.cursor(l.from+a+t.length)}))),{scrollIntoView:!0,userEvent:"input.complete"})}(e.state,n,i.from,i.to)),{annotations:f.of(t.completion)})):n(e,t.completion,i.from,i.to),!0)}const M=S(N,L);function Q(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"option";return n=>{let r=n.state.field(N,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+a*(e?1:-1):e?0:s-1;return l<0?l="page"==t?0:s-1:l>=s&&(l="page"==t?s-1:0),n.dispatch({effects:z.of(l)}),!0}}class q{constructor(e,t){this.active=e,this.context=t,this.time=Date.now(),this.updates=[],this.done=void 0}}const W=i.lg.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.composing=0;for(let t of e.state.field(N).active)1==t.state&&this.startQuery(t)}update(e){let t=e.state.field(N);if(!e.selectionSet&&!e.docChanged&&e.startState.field(N)==t)return;let n=e.transactions.some((e=>(e.selection||e.docChanged)&&!P(e)));for(let o=0;o50&&Date.now()-t.time>1e3){for(let e of t.context.abortListeners)try{e()}catch(r){(0,i.OO)(this.view.state,r)}t.context.abortListeners=null,this.running.splice(o--,1)}else t.updates.push(...e.transactions)}if(this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),this.debounceUpdate=t.active.some((e=>1==e.state&&!this.running.some((t=>t.active.source==e.source))))?setTimeout((()=>this.startUpdate()),50):-1,0!=this.composing)for(let i of e.transactions)"input"==P(i)?this.composing=2:2==this.composing&&i.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1;let{state:e}=this.view,t=e.field(N);for(let n of t.active)1!=n.state||this.running.some((e=>e.active.source==n.source))||this.startQuery(n)}startQuery(e){let{state:t}=this.view,n=d(t),r=new a(t,n,e.explicitPos==n),o=new q(e,r);this.running.push(o),Promise.resolve(e.source(r)).then((e=>{o.context.aborted||(o.done=e||null,this.scheduleAccept())}),(e=>{this.view.dispatch({effects:b.of(null)}),(0,i.OO)(this.view.state,e)}))}scheduleAccept(){this.running.every((e=>void 0!==e.done))?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout((()=>this.accept()),this.view.state.facet(y).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(y);for(let r=0;re.source==i.active.source));if(o&&1==o.state)if(null==i.done){let e=new R(i.active.source,0);for(let t of i.updates)e=e.update(t,n);1!=e.state&&t.push(e)}else this.startQuery(o)}t.length&&this.view.dispatch({effects:D.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(N,!1);if(t&&t.tooltip&&this.view.state.facet(y).closeOnBlur){let n=t.open&&(0,i.gB)(this.view,t.open.tooltip);n&&n.dom.contains(e.relatedTarget)||this.view.dispatch({effects:b.of(null)})}},compositionstart(){this.composing=1},compositionend(){3==this.composing&&setTimeout((()=>this.view.dispatch({effects:g.of(!1)})),20),this.composing=0}}}),B=i.tk.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"\xb7\xb7\xb7"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"".concat(400,"px"),boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"".concat(30,"px")},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"".concat(30,"px")},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'\u0192'"}},".cm-completionIcon-class":{"&:after":{content:"'\u25cb'"}},".cm-completionIcon-interface":{"&:after":{content:"'\u25cc'"}},".cm-completionIcon-variable":{"&:after":{content:"'\ud835\udc65'"}},".cm-completionIcon-constant":{"&:after":{content:"'\ud835\udc36'"}},".cm-completionIcon-type":{"&:after":{content:"'\ud835\udc61'"}},".cm-completionIcon-enum":{"&:after":{content:"'\u222a'"}},".cm-completionIcon-property":{"&:after":{content:"'\u25a1'"}},".cm-completionIcon-keyword":{"&:after":{content:"'\ud83d\udd11\ufe0e'"}},".cm-completionIcon-namespace":{"&:after":{content:"'\u25a2'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class U{constructor(e,t,n,r){this.field=e,this.line=t,this.from=n,this.to=r}}class F{constructor(e,t,n){this.field=e,this.from=t,this.to=n}map(e){let t=e.mapPos(this.from,-1,r.gc.TrackDel),n=e.mapPos(this.to,1,r.gc.TrackDel);return null==t||null==n?null:new F(this.field,t,n)}}class j{constructor(e,t){this.lines=e,this.fieldPositions=t}instantiate(e,t){let n=[],r=[t],i=e.doc.lineAt(t),a=/^\s*/.exec(i.text)[0];for(let l of this.lines){if(n.length){let n=a,i=/^\t*/.exec(l)[0].length;for(let t=0;tnew F(e.field,r[e.line]+e.from,r[e.line]+e.to)));return{text:n,ranges:s}}static parse(e){let t,n=[],r=[],i=[];for(let o of e.split(/\r\n?|\n/)){for(;t=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o);){let e=t[1]?+t[1]:null,a=t[2]||t[3]||"",s=-1;for(let t=0;t=s&&e.field++}i.push(new U(s,r.length,t.index,t.index+a.length)),o=o.slice(0,t.index)+a+o.slice(t.index+t[0].length)}for(let e;e=/\\([{}])/.exec(o);){o=o.slice(0,e.index)+e[1]+o.slice(e.index+e[0].length);for(let t of i)t.line==r.length&&t.from>e.index&&(t.from--,t.to--)}r.push(o)}return new j(r,i)}}let V=i.p.widget({widget:new class extends i.l9{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),G=i.p.mark({class:"cm-snippetField"});class X{constructor(e,t){this.ranges=e,this.active=t,this.deco=i.p.set(e.map((e=>(e.from==e.to?V:G).range(e.from,e.to))))}map(e){let t=[];for(let n of this.ranges){let r=n.map(e);if(!r)return null;t.push(r)}return new X(t,this.active)}selectionInsideField(e){return e.ranges.every((e=>this.ranges.some((t=>t.field==this.active&&t.from<=e.from&&t.to>=e.to))))}}const Z=r.Py.define({map:(e,t)=>e&&e.map(t)}),H=r.Py.define(),Y=r.QQ.define({create:()=>null,update(e,t){for(let n of t.effects){if(n.is(Z))return n.value;if(n.is(H)&&e)return new X(e.ranges,n.value)}return e&&t.docChanged&&(e=e.map(t.changes)),e&&t.selection&&!e.selectionInsideField(t.selection)&&(e=null),e},provide:e=>i.tk.decorations.from(e,(e=>e?e.deco:i.p.none))});function J(e,t){return r.jT.create(e.filter((e=>e.field==t)).map((e=>r.jT.range(e.from,e.to))))}function K(e){let t=j.parse(e);return(e,n,i,o)=>{let{text:a,ranges:s}=t.instantiate(e.state,i),l={changes:{from:i,to:o,insert:r.xv.of(a)},scrollIntoView:!0,annotations:n?f.of(n):void 0};if(s.length&&(l.selection=J(s,0)),s.length>1){let t=new X(s,0),n=l.effects=[Z.of(t)];void 0===e.state.field(Y,!1)&&n.push(r.Py.appendConfig.of([Y,re,oe,B]))}e.dispatch(e.state.update(l))}}function ee(e){return t=>{let{state:n,dispatch:r}=t,i=n.field(Y,!1);if(!i||e<0&&0==i.active)return!1;let o=i.active+e,a=e>0&&!i.ranges.some((t=>t.field==o+e));return r(n.update({selection:J(i.ranges,o),effects:Z.of(a?null:new X(i.ranges,o)),scrollIntoView:!0})),!0}}const te=[{key:"Tab",run:ee(1),shift:ee(-1)},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e;return!!t.field(Y,!1)&&(n(t.update({effects:Z.of(null)})),!0)}}],ne=r.r$.define({combine:e=>e.length?e[0]:te}),re=r.Wl.highest(i.$f.compute([ne],(e=>e.facet(ne))));function ie(e,t){return Object.assign(Object.assign({},t),{apply:K(e)})}const oe=i.tk.domEventHandlers({mousedown(e,t){let n,r=t.state.field(Y,!1);if(!r||null==(n=t.posAtCoords({x:e.clientX,y:e.clientY})))return!1;let i=r.ranges.find((e=>e.from<=n&&e.to>=n));return!(!i||i.field==r.active)&&(t.dispatch({selection:J(r.ranges,i.field),effects:Z.of(r.ranges.some((e=>e.field>i.field))?new X(r.ranges,i.field):null),scrollIntoView:!0}),!0)}});const ae={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},se=r.Py.define({map(e,t){let n=t.mapPos(e,-1,r.gc.TrackAfter);return null==n?void 0:n}}),le=new class extends r.uU{};le.startSide=1,le.endSide=-1;const ce=r.QQ.define({create:()=>r.Xs.empty,update(e,t){if(t.selection){let n=t.state.doc.lineAt(t.selection.main.head);e=e.update({filter:e=>e>=n.from&&e<=n.to})}e=e.map(t.changes);for(let n of t.effects)n.is(se)&&(e=e.update({add:[le.range(n.value,n.value+1)]}));return e}});function ue(){return[pe,ce]}const de="()[]{}<>";function he(e){for(let t=0;t{if((me?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let o=e.state.selection.main;if(i.length>2||2==i.length&&1==(0,r.nZ)((0,r.gm)(i,0))||t!=o.from||n!=o.to)return!1;let a=function(e,t){let n=fe(e,e.selection.main.head),i=n.brackets||ae.brackets;for(let o of i){let a=he((0,r.gm)(o,0));if(t==o)return a==o?we(e,o,i.indexOf(o+o+o)>-1,n):ye(e,o,a,n.before||ae.before);if(t==a&&be(e,e.selection.main.from))return ke(e,o,a)}return null}(e.state,i);return!!a&&(e.dispatch(a),!0)})),ge=[{key:"Backspace",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let i=fe(t,t.selection.main.head).brackets||ae.brackets,o=null,a=t.changeByRange((e=>{if(e.empty){let n=function(e,t){let n=e.sliceString(t-2,t);return(0,r.nZ)((0,r.gm)(n,0))==n.length?n:n.slice(1)}(t.doc,e.head);for(let o of i)if(o==n&&ve(t.doc,e.head)==he((0,r.gm)(o,0)))return{changes:{from:e.head-o.length,to:e.head+o.length},range:r.jT.cursor(e.head-o.length)}}return{range:o=e}}));return o||n(t.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!o}}];function be(e,t){let n=!1;return e.field(ce).between(0,e.doc.length,(e=>{e==t&&(n=!0)})),n}function ve(e,t){let n=e.sliceString(t,t+2);return n.slice(0,(0,r.nZ)((0,r.gm)(n,0)))}function ye(e,t,n,i){let o=null,a=e.changeByRange((a=>{if(!a.empty)return{changes:[{insert:t,from:a.from},{insert:n,from:a.to}],effects:se.of(a.to+t.length),range:r.jT.range(a.anchor+t.length,a.head+t.length)};let s=ve(e.doc,a.head);return!s||/\s/.test(s)||i.indexOf(s)>-1?{changes:{insert:t+n,from:a.head},effects:se.of(a.head+t.length),range:r.jT.cursor(a.head+t.length)}:{range:o=a}}));return o?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function ke(e,t,n){let i=null,o=e.changeByRange((t=>t.empty&&ve(e.doc,t.head)==n?{changes:{from:t.head,to:t.head+n.length,insert:n},range:r.jT.cursor(t.head+n.length)}:i={range:t}));return i?null:e.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function we(e,t,n,i){let a=i.stringPrefixes||ae.stringPrefixes,s=null,l=e.changeByRange((i=>{if(!i.empty)return{changes:[{insert:t,from:i.from},{insert:t,from:i.to}],effects:se.of(i.to+t.length),range:r.jT.range(i.anchor+t.length,i.head+t.length)};let l,c=i.head,u=ve(e.doc,c);if(u==t){if(Oe(e,c))return{changes:{insert:t+t,from:c},effects:se.of(c+t.length),range:r.jT.cursor(c+t.length)};if(be(e,c)){let i=n&&e.sliceDoc(c,c+3*t.length)==t+t+t?t+t+t:t;return{changes:{from:c,to:c+i.length,insert:i},range:r.jT.cursor(c+i.length)}}}else{if(n&&e.sliceDoc(c-2*t.length,c)==t+t&&(l=xe(e,c-2*t.length,a))>-1&&Oe(e,l))return{changes:{insert:t+t+t+t,from:c},effects:se.of(c+t.length),range:r.jT.cursor(c+t.length)};if(e.charCategorizer(c)(u)!=r.D0.Word&&xe(e,c,a)>-1&&!function(e,t,n,r){let i=(0,o.qz)(e).resolveInner(t,-1),a=r.reduce(((e,t)=>Math.max(e,t.length)),0);for(let o=0;o<5;o++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),s=o.indexOf(n);if(!s||s>-1&&r.indexOf(o.slice(0,s))>-1){let t=i.firstChild;for(;t&&t.from==i.from&&t.to-t.from>n.length+s;){if(e.sliceDoc(t.to-n.length,t.to)==n)return!1;t=t.firstChild}return!0}let l=i.to==t&&i.parent;if(!l)break;i=l}return!1}(e,c,t,a))return{changes:{insert:t+t,from:c},effects:se.of(c+t.length),range:r.jT.cursor(c+t.length)}}return{range:s=i}}));return s?null:e.update(l,{scrollIntoView:!0,userEvent:"input.type"})}function Oe(e,t){let n=(0,o.qz)(e).resolveInner(t+1);return n.parent&&n.from==t}function xe(e,t,n){let i=e.charCategorizer(t);if(i(e.sliceDoc(t-1,t))!=r.D0.Word)return t;for(let o of n){let n=t-o.length;if(e.sliceDoc(n,t)==o&&i(e.sliceDoc(n-1,n))!=r.D0.Word)return n}return-1}function Se(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[N,y.of(e),W,Te,B]}const _e=[{key:"Ctrl-Space",run:e=>!!e.state.field(N,!1)&&(e.dispatch({effects:g.of(!0)}),!0)},{key:"Escape",run:e=>{let t=e.state.field(N,!1);return!(!t||!t.active.some((e=>0!=e.state)))&&(e.dispatch({effects:b.of(null)}),!0)}},{key:"ArrowDown",run:Q(!0)},{key:"ArrowUp",run:Q(!1)},{key:"PageDown",run:Q(!0,"page")},{key:"PageUp",run:Q(!1,"page")},{key:"Enter",run:e=>{let t=e.state.field(N,!1);return!(e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.facet(y).defaultKeymap?[_e]:[])))},56044:(e,t,n)=>{n.d(t,{f$:()=>L,m8:()=>k,oc:()=>ze,wQ:()=>De});var r=n(45224),i=n(50389),o=n(94019),a=n(31330);function s(e,t){return n=>{let{state:r,dispatch:i}=n;if(r.readOnly)return!1;let o=e(t,r);return!!o&&(i(r.update(o)),!0)}}const l=s(m,0),c=s(f,0),u=s(((e,t)=>f(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t))),0);function d(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const h=50;function f(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map((e=>d(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,t,n,r){let i,o,{open:a,close:s}=t,l=e.sliceDoc(n-h,n),c=e.sliceDoc(r,r+h),u=/\s*$/.exec(l)[0].length,d=/^\s*/.exec(c)[0].length,f=l.length-u;if(l.slice(f-a.length,f)==a&&c.slice(d,d+s.length)==s)return{open:{pos:n-u,margin:u&&1},close:{pos:r+d,margin:d&&1}};r-n<=2*h?i=o=e.sliceDoc(n,r):(i=e.sliceDoc(n,n+h),o=e.sliceDoc(r-h,r));let m=/^\s*/.exec(i)[0].length,p=/\s*$/.exec(o)[0].length,g=o.length-p-s.length;return i.slice(m,m+a.length)==a&&o.slice(g,g+s.length)==s?{open:{pos:n+m+a.length,margin:/\s/.test(i.charAt(m+a.length))?1:0},close:{pos:r-p-s.length,margin:/\s/.test(o.charAt(g-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;n2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=[],i=-1;for(let{from:o,to:a}of n){let e=r.length,n=1e9,s=d(t,o).line;if(s){for(let e=o;e<=a;){let l=t.doc.lineAt(e);if(l.from>i&&(o==a||a>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,o=l.text.slice(e,e+s.length)==s?e:-1;ee.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:i,indent:o,empty:a,single:s}of r)!s&&a||e.push({from:t.from+o,insert:i+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const p=r.q6.define(),g=r.q6.define(),b=r.r$.define(),v=r.r$.define({combine:e=>(0,r.BO)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})});const y=r.QQ.define({create:()=>N.empty,update(e,t){let n=t.state.facet(v),i=t.annotation(p);if(i){let o=t.docChanged?r.jT.single(function(e){let t=0;return e.iterChangedRanges(((e,n)=>t=n)),t}(t.changes)):void 0,a=T.fromTransaction(t,o),s=i.side,l=0==s?e.undone:e.done;return l=a?E(l,l.length,n.minDepth,a):P(l,t.startState.selection),new N(0==s?i.rest:l,0==s?l:i.rest)}let o=t.annotation(g);if("full"!=o&&"before"!=o||(e=e.isolate()),!1===t.annotation(r.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let a=T.fromTransaction(t),s=t.annotation(r.YW.time),l=t.annotation(r.YW.userEvent);return a?e=e.addChanges(a,s,l,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,l,n.newGroupDelay)),"full"!=o&&"after"!=o||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new N(e.done.map(T.fromJSON),e.undone.map(T.fromJSON))});function k(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[y,v.of(e),i.tk.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?O:"historyRedo"==e.inputType?x:null;return!!n&&(e.preventDefault(),n(t))}})]}function w(e,t){return function(n){let{state:r,dispatch:i}=n;if(!t&&r.readOnly)return!1;let o=r.field(y,!1);if(!o)return!1;let a=o.pop(e,r,t);return!!a&&(i(a),!0)}}const O=w(0,!1),x=w(1,!1),S=w(0,!0),_=w(1,!0);class T{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new T(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new T(e.changes&&r.as.fromJSON(e.changes),[],e.mapped&&r.n0.fromJSON(e.mapped),e.startSelection&&r.jT.fromJSON(e.startSelection),e.selectionsAfter.map(r.jT.fromJSON))}static fromTransaction(e,t){let n=C;for(let r of e.startState.facet(b)){let t=r(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new T(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,C)}static selection(e){return new T(void 0,C,void 0,void 0,e)}}function E(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function $(e,t){return e.length?t.length?e.concat(t):e:t}const C=[],A=200;function P(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-A));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),E(e,e.length-1,1e9,n.setSelAfter(r)))}return[T.selection([t])]}function R(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function I(e,t){if(!e.length)return e;let n=e.length,r=C;for(;n;){let i=D(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[T.selection(r)]:C}function D(e,t,n){let i=$(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):C,n);if(!e.changes)return T.selection(i);let o=e.changes.map(t),a=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(a):a;return new T(o,r.Py.mapEffects(e.effects,t),s,e.startSelection.map(a),i)}const z=/^(input\.type|delete)($|\.)/;class N{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new N(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,a=o[o.length-1];return o=a&&a.changes&&!a.changes.empty&&e.changes&&(!n||z.test(n))&&(!a.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let a=0;a=e&&i<=t&&(r=!0)}})),r}(a.changes,e.changes))||"input.type.compose"==n)?E(o,o.length-1,r.minDepth,new T(e.changes.compose(a.changes),$(e.effects,a.effects),a.mapped,a.startSelection,C)):E(o,o.length,r.minDepth,e),new N(o,C,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:C;return i.length>0&&t-this.prevTimee.empty!=a.ranges[t].empty)).length)?this:new N(P(this.done,e),this.undone,t,n);var o,a}addMapping(e){return new N(I(this.done,e),I(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1];if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:p.of({side:e,rest:R(r)}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?C:r.slice(0,r.length-1);return i.mapped&&(n=I(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:p.of({side:e,rest:n}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}N.empty=new N(C,C);const L=[{key:"Mod-z",run:O,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:x,preventDefault:!0},{linux:"Ctrl-Shift-z",run:x,preventDefault:!0},{key:"Mod-u",run:S,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:_,preventDefault:!0}];function M(e,t){return r.jT.create(e.ranges.map(t),e.mainIndex)}function Q(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function q(e,t){let{state:n,dispatch:r}=e,i=M(n.selection,t);return!i.eq(n.selection)&&(r(Q(n,i)),!0)}function W(e,t){return r.jT.cursor(t?e.to:e.from)}function B(e,t){return q(e,(n=>n.empty?e.moveByChar(n,t):W(n,t)))}function U(e){return e.textDirectionAt(e.state.selection.main.head)==i.Nm.LTR}const F=e=>B(e,!U(e)),j=e=>B(e,U(e));function V(e,t){return q(e,(n=>n.empty?e.moveByGroup(n,t):W(n,t)))}"undefined"!=typeof Intl&&Intl.Segmenter;function G(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function X(e,t,n){let i,s,l=(0,o.qz)(e).resolveInner(t.head),c=n?a.md.closedBy:a.md.openedBy;for(let r=t.head;;){let t=n?l.childAfter(r):l.childBefore(r);if(!t)break;G(e,t,c)?l=t:r=n?t.to:t.from}return s=l.type.prop(c)&&(i=n?(0,o.Um)(e,l.from,1):(0,o.Um)(e,l.to,-1))&&i.matched?n?i.end.to:i.end.from:n?l.to:l.from,r.jT.cursor(s,n?-1:1)}function Z(e,t){return q(e,(n=>{if(!n.empty)return W(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const H=e=>Z(e,!1),Y=e=>Z(e,!0);function J(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):W(n,t)));if(a.eq(o.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(o.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),l=s.top+r.marginTop,c=s.bottom-r.marginBottom;t&&t.top>l&&t.bottomK(e,!1),te=e=>K(e,!0);function ne(e,t,n){let i=e.lineBlockAt(t.head),o=e.moveToLineBoundary(t,n);if(o.head==t.head&&o.head!=(n?i.to:i.from)&&(o=e.moveToLineBoundary(t,n,!1)),!n&&o.head==i.from&&i.length){let n=/^\s*/.exec(e.state.sliceDoc(i.from,Math.min(i.from+100,i.to)))[0].length;n&&t.head!=i.from+n&&(o=r.jT.cursor(i.from+n))}return o}function re(e,t,n){let i=!1,a=M(e.selection,(t=>{let a=(0,o.Um)(e,t.head,-1)||(0,o.Um)(e,t.head,1)||t.head>0&&(0,o.Um)(e,t.head-1,1)||t.head{let n=t(e);return r.jT.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch(Q(e.state,n)),!0)}function oe(e,t){return ie(e,(n=>e.moveByChar(n,t)))}const ae=e=>oe(e,!U(e)),se=e=>oe(e,U(e));function le(e,t){return ie(e,(n=>e.moveByGroup(n,t)))}function ce(e,t){return ie(e,(n=>e.moveVertically(n,t)))}const ue=e=>ce(e,!1),de=e=>ce(e,!0);function he(e,t){return ie(e,(n=>e.moveVertically(n,t,J(e).height)))}const fe=e=>he(e,!1),me=e=>he(e,!0),pe=e=>{let{state:t,dispatch:n}=e;return n(Q(t,{anchor:0})),!0},ge=e=>{let{state:t,dispatch:n}=e;return n(Q(t,{anchor:t.doc.length})),!0},be=e=>{let{state:t,dispatch:n}=e;return n(Q(t,{anchor:t.selection.main.anchor,head:0})),!0},ve=e=>{let{state:t,dispatch:n}=e;return n(Q(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function ye(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:o}=e,a=o.changeByRange((i=>{let{from:o,to:a}=i;if(o==a){let r=t(i);ro&&(n="delete.forward",r=ke(e,r,!0)),o=Math.min(o,r),a=Math.max(a,r)}else o=ke(e,o,!1),a=ke(e,a,!0);return o==a?{range:i}:{changes:{from:o,to:a},range:r.jT.cursor(o,ot(e))))r.between(t,t,((e,r)=>{et&&(t=n?r:e)}));return t}const we=(e,t)=>ye(e,(n=>{let i,a,s=n.from,{state:l}=e,c=l.doc.lineAt(s);if(!t&&s>c.from&&swe(e,!1),xe=e=>we(e,!0),Se=(e,t)=>ye(e,(n=>{let i=n.head,{state:o}=e,a=o.doc.lineAt(i),s=o.charCategorizer(i);for(let e=null;;){if(i==(t?a.to:a.from)){i==n.head&&a.number!=(t?o.doc.lines:1)&&(i+=t?1:-1);break}let l=(0,r.cp)(a.text,i-a.from,t)+a.from,c=a.text.slice(Math.min(i,l)-a.from,Math.max(i,l)-a.from),u=s(c);if(null!=e&&u!=e)break;" "==c&&i==n.head||(e=u),i=l}return i})),_e=e=>Se(e,!1);function Te(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function Ee(e,t,n){if(e.readOnly)return!1;let i=[],o=[];for(let a of Te(e)){if(n?a.to==e.doc.length:0==a.from)continue;let t=e.doc.lineAt(n?a.to+1:a.from-1),s=t.length+1;if(n){i.push({from:a.to,to:t.to},{from:a.from,insert:t.text+e.lineBreak});for(let t of a.ranges)o.push(r.jT.range(Math.min(e.doc.length,t.anchor+s),Math.min(e.doc.length,t.head+s)))}else{i.push({from:t.from,to:a.from},{from:a.to,insert:e.lineBreak+t.text});for(let e of a.ranges)o.push(r.jT.range(e.anchor-s,e.head-s))}}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:r.jT.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0)}function $e(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of Te(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Ce=Ae(!1);function Ae(e){return t=>{let{state:n,dispatch:i}=t;if(n.readOnly)return!1;let s=n.changeByRange((t=>{let{from:i,to:s}=t,l=n.doc.lineAt(i),c=!e&&i==s&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,o.qz)(e).resolveInner(t),i=r.childBefore(t),s=r.childAfter(t);return i&&s&&i.to<=t&&s.from>=t&&(n=i.type.prop(a.md.closedBy))&&n.indexOf(s.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(s.from).from&&!/\S/.test(e.sliceDoc(i.to,s.from))?{from:i.to,to:s.from}:null}(n,i);e&&(i=s=(s<=l.to?l:n.doc.lineAt(s)).to);let u=new o.Gn(n,{simulateBreak:i,simulateDoubleBreak:!!c}),d=(0,o.K0)(u,i);for(null==d&&(d=(0,r.IS)(/^\s*/.exec(n.doc.lineAt(i).text)[0],n.tabSize));sl.from&&i{let o=[];for(let r=i.from;r<=i.to;){let a=e.doc.lineAt(r);a.number>n&&(i.empty||i.to>a.from)&&(t(a,o,i),n=a.number),r=a.to+1}let a=e.changes(o);return{changes:o,range:r.jT.range(a.mapPos(i.anchor,1),a.mapPos(i.head,1))}}))}const Re=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Pe(t,((e,n)=>{n.push({from:e.from,insert:t.facet(o.c)})})),{userEvent:"input.indent"})),!0)},Ie=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Pe(t,((e,n)=>{let i=/^\s*/.exec(e.text)[0];if(!i)return;let a=(0,r.IS)(i,t.tabSize),s=0,l=(0,o.SS)(t,Math.max(0,a-(0,o.y1)(t)));for(;sq(e,(t=>X(e.state,t,!U(e)))),shift:e=>ie(e,(t=>X(e.state,t,!U(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>q(e,(t=>X(e.state,t,U(e)))),shift:e=>ie(e,(t=>X(e.state,t,U(e))))},{key:"Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return Ee(t,n,!1)}},{key:"Shift-Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return $e(t,n,!1)}},{key:"Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return Ee(t,n,!0)}},{key:"Shift-Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return $e(t,n,!0)}},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e,i=t.selection,o=null;return i.ranges.length>1?o=r.jT.create([i.main]):i.main.empty||(o=r.jT.create([r.jT.cursor(i.main.head)])),!!o&&(n(Q(t,o)),!0)}},{key:"Mod-Enter",run:Ae(!0)},{key:"Alt-l",mac:"Ctrl-l",run:e=>{let{state:t,dispatch:n}=e,i=Te(t).map((e=>{let{from:n,to:i}=e;return r.jT.range(n,Math.min(i+1,t.doc.length))}));return n(t.update({selection:r.jT.create(i),userEvent:"select"})),!0}},{key:"Mod-i",run:e=>{let{state:t,dispatch:n}=e,i=M(t.selection,(e=>{var n;for(let i=(0,o.qz)(t).resolveStack(e.from,1);i;i=i.next){let{node:t}=i;if((t.from=e.to||t.to>e.to&&t.from<=e.from)&&(null===(n=t.parent)||void 0===n?void 0:n.parent))return r.jT.range(t.to,t.from)}return e}));return n(Q(t,i)),!0},preventDefault:!0},{key:"Mod-[",run:Ie},{key:"Mod-]",run:Re},{key:"Mod-Alt-\\",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=Object.create(null),i=new o.Gn(t,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}}),a=Pe(t,((e,n,a)=>{let s=(0,o.K0)(i,e.from);if(null==s)return;/\S/.test(e.text)||(s=0);let l=/^\s*/.exec(e.text)[0],c=(0,o.SS)(t,s);(l!=c||a.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Te(t).map((e=>{let{from:n,to:r}=e;return n>0?n--:re.moveVertically(t,!0))).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:e=>{let{state:t,dispatch:n}=e;return re(t,n,!1)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=d(e.state,n.from);return r.line?l(e):!!r.block&&u(e)}},{key:"Alt-A",run:c}].concat([{key:"ArrowLeft",run:F,shift:ae,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>V(e,!U(e)),shift:e=>le(e,!U(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>q(e,(t=>ne(e,t,!U(e)))),shift:e=>ie(e,(t=>ne(e,t,!U(e)))),preventDefault:!0},{key:"ArrowRight",run:j,shift:se,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>V(e,U(e)),shift:e=>le(e,U(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>q(e,(t=>ne(e,t,U(e)))),shift:e=>ie(e,(t=>ne(e,t,U(e)))),preventDefault:!0},{key:"ArrowUp",run:H,shift:ue,preventDefault:!0},{mac:"Cmd-ArrowUp",run:pe,shift:be},{mac:"Ctrl-ArrowUp",run:ee,shift:fe},{key:"ArrowDown",run:Y,shift:de,preventDefault:!0},{mac:"Cmd-ArrowDown",run:ge,shift:ve},{mac:"Ctrl-ArrowDown",run:te,shift:me},{key:"PageUp",run:ee,shift:fe},{key:"PageDown",run:te,shift:me},{key:"Home",run:e=>q(e,(t=>ne(e,t,!1))),shift:e=>ie(e,(t=>ne(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:pe,shift:be},{key:"End",run:e=>q(e,(t=>ne(e,t,!0))),shift:e=>ie(e,(t=>ne(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:ge,shift:ve},{key:"Enter",run:Ce},{key:"Mod-a",run:e=>{let{state:t,dispatch:n}=e;return n(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:Oe,shift:Oe},{key:"Delete",run:xe},{key:"Mod-Backspace",mac:"Alt-Backspace",run:_e},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>Se(e,!0)},{mac:"Mod-Backspace",run:e=>ye(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>ye(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.headq(e,(t=>r.jT.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>ie(e,(t=>r.jT.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>q(e,(t=>r.jT.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>ie(e,(t=>r.jT.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:xe},{key:"Ctrl-h",run:Oe},{key:"Ctrl-k",run:e=>ye(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let i=t.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:r.xv.of(["",""])},range:r.jT.cursor(e.from)})));return n(t.update(i,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let i=t.changeByRange((e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,i=t.doc.lineAt(n),o=n==i.from?n-1:(0,r.cp)(i.text,n-i.from,!1)+i.from,a=n==i.to?n+1:(0,r.cp)(i.text,n-i.from,!0)+i.from;return{changes:{from:o,to:a,insert:t.doc.slice(n,a).append(t.doc.slice(o,n))},range:r.jT.cursor(a)}}));return!i.changes.empty&&(n(t.update(i,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:te}].map((e=>({mac:e.key,run:e.run,shift:e.shift}))))),ze={key:"Tab",run:Re,shift:Ie}},45004:(e,t,n)=>{n.r(t),n.d(t,{angular:()=>T,angularLanguage:()=>S});var r=n(94019),i=n(49262),o=n(72351),a=n(60994),s=n(31330),l=n(48551);const c=new l.Jq((e=>{let t=e.pos;for(;;){if(10==e.next){e.advance();break}if(123==e.next&&123==e.peek(1)||e.next<0)break;e.advance()}e.pos>t&&e.acceptToken(1)}));function u(e,t,n){return new l.Jq((r=>{let i=r.pos;for(;r.next!=e&&r.next>=0&&(n||38!=r.next&&(123!=r.next||123!=r.peek(1)));)r.advance();r.pos>i&&r.acceptToken(t)}))}const d=u(39,33,!1),h=u(34,34,!1),f=u(39,35,!0),m=u(34,36,!0),p=l.WQ.deserialize({version:14,states:"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO<"InterpolationContent"==e.name?v:null))})},w={parser:b.configure({wrap:(0,s.FE)(((e,t)=>{var n;return"InterpolationContent"==e.name?v:"AttributeInterpolation"!=e.name?null:"StatementAttributeValue"==(null===(n=e.node.parent)||void 0===n?void 0:n.name)?y:v})),top:"Attribute"})},O=(0,i.html)();function x(e){return e.configure({wrap:(0,s.FE)(_)},"angular")}const S=x(O.language);function _(e,t){switch(e.name){case"Attribute":return/^[*#(\[]|\{\{/.test(t.read(e.from,e.to))?w:null;case"Text":return k}return null}function T(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=O;if(e.base){if("html"!=e.base.language.name||!(e.base.language instanceof r.qp))throw new RangeError("The base option must be the result of calling html(...)");t=e.base}return new r.ri(t.language==O.language?S:x(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/})])}},12840:(e,t,n)=>{n.r(t),n.d(t,{cpp:()=>a,cppLanguage:()=>o});var r=n(5993),i=n(94019);const o=i.qp.define({name:"cpp",parser:r.E.configure({props:[i.uj.add({IfStatement:(0,i.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,i.tC)({except:/^\s*({|catch)\b/}),LabeledStatement:i.ze,CaseStatement:e=>e.baseIndent+e.unit,BlockComment:()=>null,CompoundStatement:(0,i.vw)({closing:"}"}),Statement:(0,i.tC)({except:/^{/})}),i.x0.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":i.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function a(){return new i.ri(o)}},1800:(e,t,n)=>{n.r(t),n.d(t,{css:()=>k,cssCompletionSource:()=>v,cssLanguage:()=>y,defineCSSCompletionSource:()=>b});var r=n(73690),i=n(94019),o=n(31330);let a=null;function s(){if(!a&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],n=new Set;for(let r in e)"cssText"!=r&&"cssFloat"!=r&&"string"==typeof e[r]&&(/[A-Z]/.test(r)&&(r=r.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),n.has(r)||(t.push(r),n.add(r)));a=t.sort().map((e=>({type:"property",label:e})))}return a||[]}const l=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),c=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),u=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),d=/^(\w[\w-]*|-\w[\w-]*|)$/,h=/^-(-[\w-]*)?$/;const f=new o.hr,m=["Declaration"];function p(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function g(e,t,n){if(t.to-t.from>4096){let r=f.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(o.vj.IncludeAnonymous);if(s.firstChild())do{for(let t of g(e,s.node,n))a.has(t.label)||(a.add(t.label),i.push(t))}while(s.nextSibling());return f.set(t,i),i}{let r=[],i=new Set;return t.cursor().iterate((t=>{var o;if(n(t)&&t.matchContext(m)&&":"==(null===(o=t.node.nextSibling)||void 0===o?void 0:o.name)){let n=e.sliceString(t.from,t.to);i.has(n)||(i.add(n),r.push({label:n,type:"variable"}))}})),r}}const b=e=>t=>{let{state:n,pos:r}=t,o=(0,i.qz)(n).resolveInner(r,-1),a=o.type.isError&&o.from==o.to-1&&"-"==n.doc.sliceString(o.from,o.to);if("PropertyName"==o.name||(a||"TagName"==o.name)&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:s(),validFor:d};if("ValueName"==o.name)return{from:o.from,options:c,validFor:d};if("PseudoClassName"==o.name)return{from:o.from,options:l,validFor:d};if(e(o)||(t.explicit||a)&&function(e,t){var n;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let r=null===(n=e.parent)||void 0===n?void 0:n.firstChild;return"Callee"==(null===r||void 0===r?void 0:r.name)&&"var"==t.sliceString(r.from,r.to)}(o,n.doc))return{from:e(o)||a?o.from:r,options:g(n.doc,p(o),e),validFor:h};if("TagName"==o.name){for(let{parent:e}=o;e;e=e.parent)if("Block"==e.name)return{from:o.from,options:s(),validFor:d};return{from:o.from,options:u,validFor:d}}if(!t.explicit)return null;let f=o.resolve(r),m=f.childBefore(r);return m&&":"==m.name&&"PseudoClassSelector"==f.name?{from:r,options:l,validFor:d}:m&&":"==m.name&&"Declaration"==f.name||"ArgList"==f.name?{from:r,options:c,validFor:d}:"Block"==f.name||"Styles"==f.name?{from:r,options:s(),validFor:d}:null},v=b((e=>"VariableName"==e.name)),y=i.qp.define({name:"css",parser:r.E.configure({props:[i.uj.add({Declaration:(0,i.tC)()}),i.x0.add({"Block KeyframeList":i.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function k(){return new i.ri(y,y.data.of({autocomplete:v}))}},49262:(e,t,n)=>{n.r(t),n.d(t,{autoCloseTags:()=>N,html:()=>D,htmlCompletionSource:()=>E,htmlCompletionSourceWith:()=>$,htmlLanguage:()=>I,htmlPlain:()=>R});var r=n(21194),i=n(1800),o=n(72351),a=n(50389),s=n(45224),l=n(94019);const c=["_blank","_self","_top","_parent"],u=["ascii","utf-8","utf-16","latin1","latin1"],d=["get","post","put","delete"],h=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],f=["true","false"],m={},p={a:{attrs:{href:null,ping:null,type:null,media:null,target:c,hreflang:null}},abbr:m,address:m,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:m,aside:m,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:m,base:{attrs:{href:null,target:c}},bdi:m,bdo:m,blockquote:{attrs:{cite:null}},body:m,br:m,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:h,formmethod:d,formnovalidate:["novalidate"],formtarget:c,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:m,center:m,cite:m,code:m,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:m,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:m,div:m,dl:m,dt:m,em:m,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:m,figure:m,footer:m,form:{attrs:{action:null,name:null,"accept-charset":u,autocomplete:["on","off"],enctype:h,method:d,novalidate:["novalidate"],target:c}},h1:m,h2:m,h3:m,h4:m,h5:m,h6:m,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:m,hgroup:m,hr:m,html:{attrs:{manifest:null}},i:m,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:h,formmethod:d,formnovalidate:["novalidate"],formtarget:c,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:m,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:m,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:m,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:u,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:m,noscript:m,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:m,param:{attrs:{name:null,value:null}},pre:m,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:m,rt:m,ruby:m,samp:m,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:u}},section:m,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:m,source:{attrs:{src:null,type:null,media:null}},span:m,strong:m,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:m,summary:m,sup:m,table:m,tbody:m,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:m,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:m,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:m,time:{attrs:{datetime:null}},title:m,tr:m,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:m,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:m},g={accesskey:null,class:null,contenteditable:f,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:f,autocorrect:f,autocapitalize:f,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":f,"aria-autocomplete":["inline","list","both","none"],"aria-busy":f,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":f,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":f,"aria-hidden":f,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":f,"aria-multiselectable":f,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":f,"aria-relevant":null,"aria-required":f,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},b="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e=>"on"+e));for(let L of b)g[L]=null;class v{constructor(e,t){this.tags=Object.assign(Object.assign({},p),e),this.globalAttrs=Object.assign(Object.assign({},g),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function y(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;if(!t)return"";let r=t.firstChild,i=r&&r.getChild("TagName");return i?e.sliceString(i.from,Math.min(i.to,n)):""}function k(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function w(e,t,n){let r=n.tags[y(e,k(t))];return(null===r||void 0===r?void 0:r.children)||n.allTags}function O(e,t){let n=[];for(let r=k(t);r&&!r.type.isTop;r=k(r.parent)){let i=y(e,r);if(i&&"CloseTag"==r.lastChild.name)break;i&&n.indexOf(i)<0&&("EndTag"==t.name||t.from>=r.firstChild.to)&&n.push(i)}return n}v.default=new v;const x=/^[:\-\.\w\u00b7-\uffff]*$/;function S(e,t,n,r,i){let o=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",a=k(n,!0);return{from:r,to:i,options:w(e.doc,a,t).map((e=>({label:e,type:"type"}))).concat(O(e.doc,n).map(((e,t)=>({label:"/"+e,apply:"/"+e+o,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function _(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:O(e.doc,t).map(((e,t)=>({label:e,apply:e+i,type:"type",boost:99-t}))),validFor:x}}function T(e,t){let{state:n,pos:r}=t,i=(0,l.qz)(n).resolveInner(r,-1),o=i.resolve(r);for(let a,s=r;o==i&&(a=i.childBefore(s));){let e=a.lastChild;if(!e||!e.type.isError||e.from({label:e,type:"property"}))),validFor:x}}(n,e,i,"AttributeName"==i.name?i.from:r,r):"Is"==i.name||"AttributeValue"==i.name||"UnquotedAttributeValue"==i.name?function(e,t,n,r,i){var o;let a,s=null===(o=n.parent)||void 0===o?void 0:o.getChild("AttributeName"),l=[];if(s){let o=e.sliceDoc(s.from,s.to),c=t.globalAttrs[o];if(!c){let r=k(n),i=r?t.tags[y(e.doc,r)]:null;c=(null===i||void 0===i?void 0:i.attrs)&&i.attrs[o]}if(c){let t=e.sliceDoc(r,i).toLowerCase(),n='"',o='"';/^['"]/.test(t)?(a='"'==t[0]?/^[^"]*$/:/^[^']*$/,n="",o=e.sliceDoc(i,i+1)==t[0]?"":t[0],t=t.slice(1),r++):a=/^[^\s<>='"]*$/;for(let e of c)l.push({label:e,apply:n+e+o,type:"constant"})}}return{from:r,to:i,options:l,validFor:a}}(n,e,i,"Is"==i.name?r:i.from,r):!t.explicit||"Element"!=o.name&&"Text"!=o.name&&"Document"!=o.name?null:function(e,t,n,r){let i=[],o=0;for(let a of w(e.doc,n,t))i.push({label:"<"+a,type:"type"});for(let a of O(e.doc,n))i.push({label:"",type:"type",boost:99-o++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(n,e,i,r)}function E(e){return T(v.default,e)}function $(e){let{extraTags:t,extraGlobalAttributes:n}=e,r=n||t?new v(t,n):v.default;return e=>T(r,e)}const C=o.javascriptLanguage.parser.configure({top:"SingleExpression"}),A=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:o.typescriptLanguage.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:o.jsxLanguage.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:o.tsxLanguage.parser},{tag:"script",attrs:e=>"importmap"==e.type||"speculationrules"==e.type,parser:C},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:o.javascriptLanguage.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:i.cssLanguage.parser}],P=[{name:"style",parser:i.cssLanguage.parser.configure({top:"Styles"})}].concat(b.map((e=>({name:e,parser:o.javascriptLanguage.parser})))),R=l.qp.define({name:"html",parser:r.E.configure({props:[l.uj.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),I=R.configure({wrap:(0,r.X)(A,P)});function D(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n="";!1===t.matchClosingTags&&(n="noMatch"),!0===t.selfClosingTags&&(n=(n?n+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(e=(0,r.X)((t.nestedLanguages||[]).concat(A),(t.nestedAttributes||[]).concat(P)));let a=e?R.configure({wrap:e,dialect:n}):n?I.configure({dialect:n}):I;return new l.ri(a,[I.data.of({autocomplete:$(t)}),!1!==t.autoCloseTags?N:[],(0,o.javascript)().support,(0,i.css)().support])}const z=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),N=a.tk.inputHandler.of(((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!I.isActiveAt(e.state,t,-1))return!1;let o=i(),{state:a}=o,c=a.changeByRange((e=>{var t,n,i;let o,c=a.doc.sliceString(e.from-1,e.to)==r,{head:u}=e,d=(0,l.qz)(a).resolveInner(u-1,-1);if("TagName"!=d.name&&"StartTag"!=d.name||(d=d.parent),c&&">"==r&&"OpenTag"==d.name){if("CloseTag"!=(null===(n=null===(t=d.parent)||void 0===t?void 0:t.lastChild)||void 0===n?void 0:n.name)&&(o=y(a.doc,d.parent,u))&&!z.has(o)){return{range:e,changes:{from:u,to:u+(">"===a.doc.sliceString(u,u+1)?1:0),insert:"")}}}}else if(c&&"/"==r&&"IncompleteCloseTag"==d.name){let e=d.parent;if(d.from==u-2&&"CloseTag"!=(null===(i=e.lastChild)||void 0===i?void 0:i.name)&&(o=y(a.doc,e,u))&&!z.has(o)){let e=u+(">"===a.doc.sliceString(u,u+1)?1:0),t="".concat(o,">");return{range:s.jT.cursor(u+t.length,-1),changes:{from:u,to:e,insert:t}}}}return{range:e}}));return!c.changes.empty&&(e.dispatch([o,a.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))},68168:(e,t,n)=>{n.r(t),n.d(t,{java:()=>a,javaLanguage:()=>o});var r=n(31044),i=n(94019);const o=i.qp.define({name:"java",parser:r.E.configure({props:[i.uj.add({IfStatement:(0,i.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,i.tC)({except:/^\s*({|catch|finally)\b/}),LabeledStatement:i.ze,SwitchBlock:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:(0,i.vw)({closing:"}"}),BlockComment:()=>null,Statement:(0,i.tC)({except:/^{/})}),i.x0.add({"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer":i.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function a(){return new i.ri(o)}},72351:(e,t,n)=>{n.r(t),n.d(t,{autoCloseTags:()=>D,completionPath:()=>w,esLint:()=>z,javascript:()=>P,javascriptLanguage:()=>x,jsxLanguage:()=>T,localCompletionSource:()=>y,scopeCompletionSource:()=>O,snippets:()=>c,tsxLanguage:()=>E,typescriptLanguage:()=>_,typescriptSnippets:()=>u});var r=n(36374),i=n(94019),o=n(45224),a=n(50389),s=n(76391),l=n(31330);const c=[(0,s.Gn)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,s.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,s.Gn)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,s.Gn)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,s.Gn)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,s.Gn)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,s.Gn)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,s.Gn)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,s.Gn)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,s.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,s.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],u=c.concat([(0,s.Gn)("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),(0,s.Gn)("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),(0,s.Gn)("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),d=new l.hr,h=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function f(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const m=["FunctionDeclaration"],p={FunctionDeclaration:f("function"),ClassDeclaration:f("class"),ClassExpression:()=>!0,EnumDeclaration:f("constant"),TypeAliasDeclaration:f("type"),NamespaceDeclaration:f("namespace"),VariableDefinition(e,t){e.matchContext(m)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function g(e,t){let n=d.get(t);if(n)return n;let r=[],i=!0;function o(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(l.vj.IncludeAnonymous).iterate((t=>{if(i)i=!1;else if(t.name){let e=p[t.name];if(e&&e(t,o)||h.has(t.name))return!1}else if(t.to-t.from>8192){for(let n of g(e,t.node))r.push(n);return!1}})),d.set(t,r),r}const b=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,v=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function y(e){let t=(0,i.qz)(e.state).resolveInner(e.pos,-1);if(v.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&b.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)h.has(i.name)&&(r=r.concat(g(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:b}}function k(e,t,n){var r;let i=[];for(;;){let o,a=t.firstChild;if("VariableName"==(null===a||void 0===a?void 0:a.name))return i.push(e(a)),{path:i.reverse(),name:n};if("MemberExpression"!=(null===a||void 0===a?void 0:a.name)||"PropertyName"!=(null===(r=o=a.lastChild)||void 0===r?void 0:r.name))return null;i.push(e(o)),t=a}}function w(e){let t=t=>e.state.doc.sliceString(t.from,t.to),n=(0,i.qz)(e.state).resolveInner(e.pos,-1);return"PropertyName"==n.name?k(t,n.parent,t(n)):"."!=n.name&&"?."!=n.name||"MemberExpression"!=n.parent.name?v.indexOf(n.name)>-1?null:"VariableName"==n.name||n.to-n.from<20&&b.test(t(n))?{path:[],name:t(n)}:"MemberExpression"==n.name?k(t,n,""):e.explicit?{path:[],name:""}:null:k(t,n.parent,"")}function O(e){let t=new Map;return n=>{let r=w(n);if(!r)return null;let i=e;for(let e of r.path)if(i=i[e],!i)return null;let o=t.get(i);return o||t.set(i,o=function(e,t){let n=[],r=new Set;for(let o=0;;o++){for(let s of(Object.getOwnPropertyNames||Object.keys)(e)){if(!/^[a-zA-Z_$\xaa-\uffdc][\w$\xaa-\uffdc]*$/.test(s)||r.has(s))continue;let a;r.add(s);try{a=e[s]}catch(i){continue}n.push({label:s,type:"function"==typeof a?/^[A-Z]/.test(s)?"class":t?"function":"method":t?"variable":"property",boost:-o})}let a=Object.getPrototypeOf(e);if(!a)return n;e=a}}(i,!r.path.length)),{from:n.pos-r.name.length,options:o,validFor:b}}}const x=i.qp.define({name:"javascript",parser:r.E.configure({props:[i.uj.add({IfStatement:(0,i.tC)({except:/^\s*({|else\b)/}),TryStatement:(0,i.tC)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:i.ze,SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},Block:(0,i.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,i.tC)({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),i.x0.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":i.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),S={test:e=>/^JSX/.test(e.name),facet:(0,i.kU)({commentTokens:{block:{open:"{/*",close:"*/}"}}})},_=x.configure({dialect:"ts"},"typescript"),T=x.configure({dialect:"jsx",props:[i.KC.add((e=>e.isTop?[S]:void 0))]}),E=x.configure({dialect:"jsx ts",props:[i.KC.add((e=>e.isTop?[S]:void 0))]},"typescript");let $=e=>({label:e,type:"keyword"});const C="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map($),A=C.concat(["declare","implements","private","protected","public"].map($));function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.jsx?e.typescript?E:T:e.typescript?_:x,n=e.typescript?u.concat(A):c.concat(C);return new i.ri(t,[x.data.of({autocomplete:(0,s.eC)(v,(0,s.Mb)(n))}),x.data.of({autocomplete:y}),e.jsx?D:[]])}function R(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;for(let r=null===t||void 0===t?void 0:t.firstChild;r;r=r.nextSibling)if("JSXIdentifier"==r.name||"JSXBuiltin"==r.name||"JSXNamespacedName"==r.name||"JSXMemberExpression"==r.name)return e.sliceString(r.from,Math.min(r.to,n));return""}const I="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),D=a.tk.inputHandler.of(((e,t,n,r,a)=>{if((I?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||">"!=r&&"/"!=r||!x.isActiveAt(e.state,t,-1))return!1;let s=a(),{state:l}=s,c=l.changeByRange((e=>{var t;let n,{head:a}=e,s=(0,i.qz)(l).resolveInner(a-1,-1);if("JSXStartTag"==s.name&&(s=s.parent),l.doc.sliceString(a-1,a)!=r||"JSXAttributeValue"==s.name&&s.to>a);else{if(">"==r&&"JSXFragmentTag"==s.name)return{range:e,changes:{from:a,insert:""}};if("/"==r&&"JSXStartCloseTag"==s.name){let e=s.parent,r=e.parent;if(r&&e.from==a-2&&((n=R(l.doc,r.firstChild,a))||"JSXFragmentTag"==(null===(t=r.firstChild)||void 0===t?void 0:t.name))){let e="".concat(n,">");return{range:o.jT.cursor(a+e.length,-1),changes:{from:a,insert:e}}}}else if(">"==r){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(s);if(t&&!/^\/?>|^<\//.test(l.doc.sliceString(a,a+2))&&(n=R(l.doc,t,a)))return{range:e,changes:{from:a,insert:"")}}}}return{range:e}}));return!c.changes.empty&&(e.dispatch([s,l.update(c,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));function z(e,t){return t||(t={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:!0,node:!0,es6:!0,es2015:!0,es2017:!0,es2020:!0},rules:{}},e.getRules().forEach(((e,n)=>{e.meta.docs.recommended&&(t.rules[n]=2)}))),n=>{let{state:r}=n,i=[];for(let{from:o,to:a}of x.findRegions(r)){let n=r.doc.lineAt(o),s={line:n.number-1,col:o-n.from,pos:o};for(let l of e.verify(r.sliceDoc(o,a),t))i.push(L(l,r.doc,s))}return i}}function N(e,t,n,r){return n.line(e+r.line).from+t+(1==e?r.col-1:-1)}function L(e,t,n){let r=N(e.line,e.column,t,n),i={from:r,to:null!=e.endLine&&1!=e.endColumn?N(e.endLine,e.endColumn,t,n):r,message:e.message,source:e.ruleId?"eslint:"+e.ruleId:"eslint",severity:1==e.severity?"warning":"error"};if(e.fix){let{range:t,text:o}=e.fix,a=t[0]+n.pos-r,s=t[1]+n.pos-r;i.actions=[{name:"fix",apply(e,t){e.dispatch({changes:{from:t+a,to:t+s,insert:o},scrollIntoView:!0})}}]}return i}},63723:(e,t,n)=>{n.r(t),n.d(t,{json:()=>s,jsonLanguage:()=>a,jsonParseLinter:()=>o});var r=n(49515),i=n(94019);const o=()=>e=>{try{JSON.parse(e.state.doc.toString())}catch(t){if(!(t instanceof SyntaxError))throw t;const n=function(e,t){let n;return(n=e.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=e.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0}(t,e.state.doc);return[{from:n,message:t.message,severity:"error",to:n}]}return[]};const a=i.qp.define({name:"json",parser:r.E.configure({props:[i.uj.add({Object:(0,i.tC)({except:/^\s*\}/}),Array:(0,i.tC)({except:/^\s*\]/})}),i.x0.add({"Object Array":i.Dv})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function s(){return new i.ri(a)}},68192:(e,t,n)=>{n.r(t),n.d(t,{less:()=>v,lessCompletionSource:()=>b,lessLanguage:()=>g});var r=n(94019),i=n(1800),o=n(48551),a=n(60994);const s=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function l(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const c=new o.Jq(((e,t)=>{if(40==e.next){let t=e.peek(-1);(l(t)||(n=t)>=48&&n<=57||95==t||45==t)&&e.acceptToken(2,1)}var n})),u=new o.Jq((e=>{if(s.indexOf(e.peek(-1))>-1){let{next:t}=e;(l(t)||95==t||35==t||46==t||91==t||58==t||45==t)&&e.acceptToken(110)}})),d=new o.Jq((e=>{if(s.indexOf(e.peek(-1))<0){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),l(t)){do{e.advance()}while(l(e.next));e.acceptToken(1)}}})),h=(0,a.Gv)({"import charset namespace keyframes media supports when":a.pJ.definitionKeyword,"from to selector":a.pJ.keyword,NamespaceName:a.pJ.namespace,KeyframeName:a.pJ.labelName,TagName:a.pJ.tagName,ClassName:a.pJ.className,PseudoClassName:a.pJ.constant(a.pJ.className),IdName:a.pJ.labelName,"FeatureName PropertyName PropertyVariable":a.pJ.propertyName,AttributeName:a.pJ.attributeName,NumberLiteral:a.pJ.number,KeywordQuery:a.pJ.keyword,UnaryQueryOp:a.pJ.operatorKeyword,"CallTag ValueName":a.pJ.atom,VariableName:a.pJ.variableName,"AtKeyword Interpolation":a.pJ.special(a.pJ.variableName),Callee:a.pJ.operatorKeyword,Unit:a.pJ.unit,"UniversalSelector NestingSelector":a.pJ.definitionOperator,MatchOp:a.pJ.compareOperator,"ChildOp SiblingOp, LogicOp":a.pJ.logicOperator,BinOp:a.pJ.arithmeticOperator,Important:a.pJ.modifier,"Comment LineComment":a.pJ.blockComment,ColorLiteral:a.pJ.color,"ParenthesizedContent StringLiteral":a.pJ.string,Escape:a.pJ.special(a.pJ.string),": ...":a.pJ.punctuation,"PseudoOp #":a.pJ.derefOperator,"; ,":a.pJ.separator,"( )":a.pJ.paren,"[ ]":a.pJ.squareBracket,"{ }":a.pJ.brace}),f={__proto__:null,lang:40,"nth-child":40,"nth-last-child":40,"nth-of-type":40,"nth-last-of-type":40,dir:40,"host-context":40,and:244,or:244,not:74,only:74,url:86,"url-prefix":86,domain:86,regexp:86,when:117,selector:142,from:172,to:174},m={__proto__:null,"@import":126,"@plugin":126,"@media":152,"@charset":156,"@namespace":160,"@keyframes":166,"@supports":178},p=o.WQ.deserialize({version:14,states:"@^O!gQWOOO!nQaO'#CeOOQP'#Cd'#CdO$RQWO'#CgO$xQaO'#EaO%cQWO'#CiO%kQWO'#DZO%pQWO'#D^O%uQaO'#DfOOQP'#Es'#EsO'YQWO'#DlO'yQWO'#DyO(QQWO'#D{O(xQWO'#D}O)TQWO'#EQO'bQWO'#EWO)YQ`O'#FTO)]Q`O'#FTO)hQ`O'#FTO)vQWO'#EYOOQO'#Er'#ErOOQO'#FV'#FVOOQO'#Ec'#EcO){QWO'#EqO*WQWO'#EqQOQWOOOOQP'#Ch'#ChOOQP,59R,59RO$RQWO,59RO*bQWO'#EdO+PQWO,58|O+_QWO,59TO%kQWO,59uO%pQWO,59xO*bQWO,59{O*bQWO,59}OOQO'#De'#DeO*bQWO,5:OO,bQpO'#E}O,iQWO'#DkOOQO,58|,58|O(QQWO,58|O,pQWO,5:{OOQO,5:{,5:{OOQT'#Cl'#ClO-UQeO,59TO.cQ[O,59TOOQP'#D]'#D]OOQP,59u,59uOOQO'#D_'#D_O.hQpO,59xOOQO'#EZ'#EZO.pQ`O,5;oOOQO,5;o,5;oO/OQWO,5:WO/VQWO,5:WOOQS'#Dn'#DnO/rQWO'#DsO/yQ!fO'#FRO0eQWO'#DtOOQS'#FS'#FSO+YQWO,5:eO'bQWO'#DrOOQS'#Cu'#CuO(QQWO'#CwO0jQ!hO'#CyO2^Q!fO,5:gO2oQWO'#DWOOQS'#Ex'#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({Block:r.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"@-"}}),b=(0,i.defineCSSCompletionSource)((e=>"VariableName"==e.name||"AtKeyword"==e.name));function v(){return new r.ri(g,g.data.of({autocomplete:b}))}},17175:(e,t,n)=>{n.d(t,{h:()=>a});var r=n(47122),i=n(94019);const o=i.qp.define({name:"lezer",parser:r.E.configure({props:[i.x0.add({"Body TokensBody SkipBody PrecedenceBody":i.Dv})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/}});function a(){return new i.ri(o)}},39887:(e,t,n)=>{n.d(t,{Xu:()=>E});var r=n(94019),i=n(49262),o=n(60994),a=n(31330),s=n(48551);const l=new s.Jq((e=>{let t=e.pos;for(;;){let{next:n}=e;if(n<0)break;if(123==n){let n=e.peek(1);if(123==n){if(e.pos>t)break;return void e.acceptToken(1,2)}if(37==n){if(e.pos>t)break;let n=2,r=2;for(;;){let t=e.peek(n);if(32==t||10==t)++n;else if(35==t)for(++n;;){let t=e.peek(n);if(t<0||10==t)break;n++}else{if(45!=t||2!=r){let i=101==t&&110==e.peek(n+1)&&100==e.peek(n+2);return void e.acceptToken(i?3:2,r)}r=++n}}}}if(e.advance(),10==n)break}e.pos>t&&e.acceptToken(180)}));function c(e,t,n){return new s.Jq((r=>{let i=r.pos;for(;;){let{next:t}=r;if(123==t&&37==r.peek(1)){let t=2;for(;;t++){let e=r.peek(t);if(32!=e&&10!=e)break}let a="";for(;;t++){let e=r.peek(t);if(!((o=e)>=65&&o<=90||o>=97&&o<=122))break;a+=String.fromCharCode(e)}if(a==e){if(r.pos>i)break;r.acceptToken(n,2);break}}else if(t<0)break;if(r.advance(),10==t)break}var o;r.pos>i&&r.acceptToken(t)}))}const u=c("endcomment",182,5),d=c("endraw",181,4),h={__proto__:null,contains:32,or:36,and:36,true:50,false:50,empty:52,forloop:54,tablerowloop:56,continue:58,in:128,with:194,for:196,as:198,if:234,endif:238,unless:244,endunless:248,elsif:252,else:256,case:262,endcase:266,when:270,endfor:278,tablerow:284,endtablerow:288,break:292,cycle:298,echo:302,render:306,include:312,assign:316,capture:322,endcapture:326,increment:330,decrement:334},f={__proto__:null,if:82,endif:86,elsif:90,else:94,unless:100,endunless:104,case:110,endcase:114,when:118,for:126,endfor:136,tablerow:142,endtablerow:146,break:150,continue:154,cycle:158,comment:164,endcomment:170,raw:176,endraw:182,echo:186,render:190,include:202,assign:206,capture:212,endcapture:216,increment:220,decrement:224,liquid:228},m=s.WQ.deserialize({version:14,states:"GYQYOPOOOOOP'#F{'#F{OeOXO'#CdOsQWO'#CfO!bQ`O'#DQO#{OPO'#DTO$ZOPO'#D^O$iOPO'#DcO$wOPO'#DkO%VOPO'#DsO%eOSO'#EOO%jOQO'#EUO%oOPO'#EhOOOP'#G`'#G`OOOP'#G]'#G]OOOP'#Fz'#FzQYOPOOOOOP-E9y-E9yOOQO'#Cg'#CgO&`QpO,59QO&gQpO'#G^OsQWO'#CsOOQO'#G^'#G^OOOP,59l,59lO)PQWO,59lOsQWO,59pOsQWO,59tO)WQWO,59vOsQWO,59yOsQWO,5:OOsQWO,5:SO!]QWO,5:WO!]QWO,5:`O)]QWO,5:dO)bQWO,5:fO)gQWO,5:hO)lQWO,5:kO)qQWO,5:qOsQWO,5:vOsQWO,5:xOsQWO,5;OOsQWO,5;QOsQWO,5;TOsQWO,5;XOsQWO,5;ZO+QQWO,5;]O+XOPO'#CdOOOP,59o,59oO#{OPO,59oO+gQ`O'#DWOOOP,59x,59xO$ZOPO,59xO+lQ`O'#DaOOOP,59},59}O$iOPO,59}O+qQ`O'#DfOOOP,5:V,5:VO$wOPO,5:VO+vQ`O'#DqOOOP,5:_,5:_O%VOPO,5:_O+{Q`O'#DvOOOS'#GQ'#GQO,QOSO'#ERO,YOSO,5:jOOOQ'#GR'#GRO,_OQO'#EXO,gOQO,5:pOOOP,5;S,5;SO%oOPO,5;SO,lQ`O'#EkOOOP-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O,5;nOClQpO,5;rOE_QWO,5;uOEdQWO,5;yOEiQWO,5dOOOPAN>dAN>dO!5aQWOAN>lOOOPAN>lAN>lO!5iQWOAN>tOOOPAN>tAN>tOsQWO1G0fO!]QWO1G0fO!5qQpO7+&{O!7QQpO7+'PO!8aQWO7+'WO!:TQWO,5h[e]||-1},{term:37,get:e=>f[e]||-1}],tokenPrec:0});function p(e,t){return e.split(" ").map((e=>({label:e,type:t})))}const g=p("abs append at_least at_most capitalize ceil compact concat date default divided_by downcase escape escape_once first floor join last lstrip map minus modulo newline_to_br plus prepend remove remove_first replace replace_first reverse round rstrip size slice sort sort_natural split strip strip_html strip_newlines sum times truncate truncatewords uniq upcase url_decode url_encode where","function"),b=p("cycle comment endcomment raw endraw echo increment decrement liquid if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue assign capture endcapture render include","keyword"),v=p("empty forloop tablerowloop in with as contains","keyword"),y=p("first index index0 last length rindex","property"),k=p("col col0 col_first col_last first index index0 last length rindex rindex0 row","property");function w(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.filters?e.filters.concat(g):g,n=e.tags?e.tags.concat(b):b,i=e.variables?e.variables.concat(v):v,{properties:o}=e;return e=>{var a;let s=function(e){var t;let{state:n,pos:i}=e,o=(0,r.qz)(n).resolveInner(i,-1).enterUnfinishedNodesBefore(i),a=(null===(t=o.childBefore(i))||void 0===t?void 0:t.name)||o.name;if("FilterName"==o.name)return{type:"filter",node:o};if(e.explicit&&"|"==a)return{type:"filter"};if("TagName"==o.name)return{type:"tag",node:o};if(e.explicit&&"{%"==a)return{type:"tag"};if("PropertyName"==o.name&&"MemberExpression"==o.parent.name)return{type:"property",node:o,target:o.parent};if("."==o.name&&"MemberExpression"==o.parent.name)return{type:"property",target:o.parent};if("MemberExpression"==o.name&&"."==a)return{type:"property",target:o};if("VariableName"==o.name)return{type:"expression",from:o.from};let s=e.matchBefore(/[\w\u00c0-\uffff]+$/);return s?{type:"expression",from:s.from}:e.explicit&&"CommentText"!=o.name&&"StringLiteral"!=o.name&&"NumberLiteral"!=o.name&&"InlineComment"!=o.name?{type:"expression"}:null}(e);if(!s)return null;let l,c=null!==(a=s.from)&&void 0!==a?a:s.node?s.node.from:e.pos;return l="filter"==s.type?t:"tag"==s.type?n:"expression"==s.type?i:function(e,t,n){let r=[];for(;;){let n=t.getChild("Expression");if(!n)return[];if("forloop"==n.name)return r.length?[]:y;if("tablerowloop"==n.name)return r.length?[]:k;if("VariableName"==n.name){r.unshift(e.sliceDoc(n.from,n.to));break}if("MemberExpression"!=n.name)return[];{let i=n.getChild("PropertyName");i&&r.unshift(e.sliceDoc(i.from,i.to)),t=n}}return n?n(r,e):[]}(e.state,s.target,o),l.length?{options:l,from:c,validFor:/^[\w\u00c0-\uffff]*$/}:null}}function O(e){return t=>{let n=e.test(t.textAfter);return t.lineIndent(t.node.from)+(n?0:t.unit)}}const x=r.qp.define({name:"liquid",parser:m.configure({props:[(0,o.Gv)({"cycle comment endcomment raw endraw echo increment decrement liquid in with as":o.pJ.keyword,"empty forloop tablerowloop":o.pJ.atom,"if elsif else endif unless endunless case endcase for endfor tablerow endtablerow break continue":o.pJ.controlKeyword,"assign capture endcapture":o.pJ.definitionKeyword,contains:o.pJ.operatorKeyword,"render include":o.pJ.moduleKeyword,VariableName:o.pJ.variableName,TagName:o.pJ.tagName,FilterName:o.pJ.function(o.pJ.variableName),PropertyName:o.pJ.propertyName,CompareOp:o.pJ.compareOperator,AssignOp:o.pJ.definitionOperator,LogicOp:o.pJ.logicOperator,NumberLiteral:o.pJ.number,StringLiteral:o.pJ.string,BooleanLiteral:o.pJ.bool,InlineComment:o.pJ.lineComment,CommentText:o.pJ.blockComment,"{% %} {{ }}":o.pJ.brace,"( )":o.pJ.paren,".":o.pJ.derefOperator,", .. : |":o.pJ.punctuation}),r.uj.add({Tag:(0,r.vw)({closing:"%}"}),"UnlessDirective ForDirective TablerowDirective CaptureDirective":O(/^\s*(\{%-?\s*)?end\w/),IfDirective:O(/^\s*(\{%-?\s*)?(endif|else|elsif)\b/),CaseDirective:O(/^\s*(\{%-?\s*)?(endcase|when)\b/)}),r.x0.add({"UnlessDirective ForDirective TablerowDirective CaptureDirective IfDirective CaseDirective RawDirective Comment"(e){let t=e.firstChild,n=e.lastChild;return t&&"Tag"==t.name?{from:t.to,to:"EndTag"==n.name?n.from:e.to}:null}})]}),languageData:{commentTokens:{line:"#"},indentOnInput:/^\s*{%-?\s*(?:end|elsif|else|when|)$/}}),S=(0,i.html)();function _(e){return x.configure({wrap:(0,a.FE)((t=>t.type.isTop?{parser:e.parser,overlay:e=>"Text"==e.name||"RawText"==e.name}:null))},"liquid")}const T=_(S.language);function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.base||S,n=t.language==S.language?T:_(t.language);return new r.ri(n,[t.support,n.data.of({autocomplete:w(e)}),t.language.data.of({closeBrackets:{brackets:["{"]}})])}},83132:(e,t,n)=>{n.r(t),n.d(t,{commonmarkLanguage:()=>b,deleteMarkupBackward:()=>T,insertNewlineContinueMarkup:()=>S,markdown:()=>C,markdownKeymap:()=>E,markdownLanguage:()=>v});var r=n(45224),i=n(50389),o=n(94019),a=n(76391),s=n(62597),l=n(49262),c=n(31330);const u=(0,o.kU)({commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}}}),d=new c.md,h=s.E2.configure({props:[o.x0.add((e=>!e.is("Block")||e.is("Document")||null!=f(e)?void 0:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to}))),d.add(f),o.uj.add({Document:()=>null}),o.pp.add({Document:u})]});function f(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function m(e,t){let n=e;for(;;){let e,r=n.nextSibling;if(!r||null!=(e=f(r.type))&&e<=t)break;n=r}return n.to}const p=o.rs.of(((e,t,n)=>{for(let r=(0,o.qz)(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:t}}return null}));function g(e){return new o.SQ(u,e,[p],"markdown")}const b=g(h),v=g(h.configure([s.z7,s.ar,s.$2,s.dy]));class y{constructor(e,t,n,r,i,o,a){this.node=e,this.from=t,this.to=n,this.spaceBefore=r,this.spaceAfter=i,this.type=o,this.item=a}blank(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.spaceBefore+("Blockquote"==this.node.name?">":"");if(null!=e){for(;n.length0;r--)n+=" ";return n+(t?this.spaceAfter:"")}marker(e,t){let n="OrderedList"==this.node.name?String(+w(this.item,e)[2]+t):"";return this.spaceBefore+n+this.type+this.spaceAfter}}function k(e,t){let n=[];for(let i=e;i&&"Document"!=i.name;i=i.parent)"ListItem"!=i.name&&"Blockquote"!=i.name&&"FencedCode"!=i.name||n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let e,o=n[i],a=t.lineAt(o.from),s=o.from-a.from;if("FencedCode"==o.name)r.push(new y(o,s,s,"","","",null));else if("Blockquote"==o.name&&(e=/^ *>( ?)/.exec(a.text.slice(s))))r.push(new y(o,s,s+e[0].length,"",e[1],">",null));else if("ListItem"==o.name&&"OrderedList"==o.parent.name&&(e=/^( *)\d+([.)])( *)/.exec(a.text.slice(s)))){let t=e[3],n=e[0].length;t.length>=4&&(t=t.slice(0,t.length-4),n-=4),r.push(new y(o.parent,s,s+n,e[1],t,e[2],o))}else if("ListItem"==o.name&&"BulletList"==o.parent.name&&(e=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(a.text.slice(s)))){let t=e[4],n=e[0].length;t.length>4&&(t=t.slice(0,t.length-4),n-=4);let i=e[2];e[3]&&(i+=e[3].replace(/[xX]/," ")),r.push(new y(o.parent,s,s+n,e[1],t,i,o))}}return r}function w(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function O(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;for(let i=-1,o=e;;){if("ListItem"==o.name){let e=w(o,t),a=+e[2];if(i>=0){if(a!=i+1)return;n.push({from:o.from+e[1].length,to:o.from+e[0].length,insert:String(i+2+r)})}i=a}let e=o.nextSibling;if(!e)break;o=e}}function x(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||"\t"!=t.facet(o.c))return e;let i="";for(let o=(0,r.IS)(e,4,n);o>0;)o>=4?(i+="\t",o-=4):(i+=" ",o--);return i+e.slice(n)}const S=e=>{let{state:t,dispatch:n}=e,i=(0,o.qz)(t),{doc:a}=t,s=null,l=t.changeByRange((e=>{if(!e.empty||!v.isActiveAt(t,e.from))return s={range:e};let n=e.from,o=a.lineAt(n),l=k(i.resolveInner(n,-1),a);for(;l.length&&l[l.length-1].from>n-o.from;)l.pop();if(!l.length)return s={range:e};let c=l[l.length-1];if(c.to-c.spaceAfter.length>n-o.from)return s={range:e};let u=n>=c.to-c.spaceAfter.length&&!/\S/.test(o.text.slice(c.to));if(c.item&&u){if(c.node.firstChild.to>=n||o.from>0&&!/[^\s>]/.test(a.lineAt(o.from-1).text)){let e,t=l.length>1?l[l.length-2]:null,i="";t&&t.item?(e=o.from+t.from,i=t.marker(a,1)):e=o.from+(t?t.to:0);let s=[{from:e,to:n,insert:i}];return"OrderedList"==c.node.name&&O(c.item,a,s,-2),t&&"OrderedList"==t.node.name&&O(t.item,a,s),{range:r.jT.cursor(e+i.length),changes:s}}{let e="";for(let t=0,n=l.length-2;t<=n;t++)e+=l[t].blank(t\s*$/.exec(n.text);if(r&&r.index==c.from){let i=t.changes([{from:n.from+r.index,to:n.to},{from:o.from+c.from,to:o.to}]);return{range:e.map(i),changes:i}}}let d=[];"OrderedList"==c.node.name&&O(c.item,a,d);let h=c.item&&c.item.from]*/.exec(o.text)[0].length>=c.to)for(let t=0,i=l.length-1;t<=i;t++)f+=t!=i||h?l[t].blank(to.from&&/\s/.test(o.text.charAt(m-o.from-1));)m--;return f=x(f,t),d.push({from:m,to:n,insert:t.lineBreak+f}),{range:r.jT.cursor(m+f.length+1),changes:d}}));return!s&&(n(t.update(l,{scrollIntoView:!0,userEvent:"input"})),!0)};function _(e){return"QuoteMark"==e.name||"ListMark"==e.name}const T=e=>{let{state:t,dispatch:n}=e,i=(0,o.qz)(t),a=null,s=t.changeByRange((e=>{let n=e.from,{doc:o}=t;if(e.empty&&v.isActiveAt(t,e.from)){let e=o.lineAt(n),a=k(function(e,t){let n=e.resolveInner(t,-1),r=t;_(n)&&(r=n.from,n=n.parent);for(let i;i=n.childBefore(r);)if(_(i))r=i.from;else{if("OrderedList"!=i.name&&"BulletList"!=i.name)break;n=i.lastChild,r=n.to}return n}(i,n),o);if(a.length){let i=a[a.length-1],o=i.to-i.spaceAfter.length+(i.spaceAfter?1:0);if(n-e.from>o&&!/\S/.test(e.text.slice(o,n-e.from)))return{range:r.jT.cursor(e.from+o),changes:{from:e.from+o,to:n}};if(n-e.from==o&&(!i.item||e.from<=i.item.from||!/\S/.test(e.text.slice(0,i.to)))){let o=e.from+i.from;if(i.item&&i.node.from0&&void 0!==arguments[0]?arguments[0]:{},{codeLanguages:t,defaultCodeLanguage:n,addKeymap:a=!0,base:{parser:l}=b,completeHTMLTags:c=!0}=e;if(!(l instanceof s.xj))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let u,d=e.extensions?[e.extensions]:[],h=[$.support];n instanceof o.ri?(h.push(n.support),u=n.language):n&&(u=n);let f=t||u?(m=t,p=u,e=>{if(e&&m){let t=null;if(e=/\S*/.exec(e)[0],t="function"==typeof m?m(e):o.c6.matchLanguageName(m,e,!0),t instanceof o.c6)return t.support?t.support.language.parser:o.Be.getSkippingParser(t.load());if(t)return t.parser}return p?p.parser:null}):void 0;var m,p;d.push((0,s.zY)({codeParser:f,htmlParser:$.language.parser})),a&&h.push(r.Wl.high(i.$f.of(E)));let v=g(l.configure(d));return c&&h.push(v.data.of({autocomplete:A})),new o.ri(v,h)}function A(e){let{state:t,pos:n}=e,r=/<[:\-\.\w\u00b7-\uffff]*$/.exec(t.sliceDoc(n-25,n));if(!r)return null;let i=(0,o.qz)(t).resolveInner(n,-1);for(;i&&!i.type.isTop;){if("CodeBlock"==i.name||"FencedCode"==i.name||"ProcessingInstructionBlock"==i.name||"CommentBlock"==i.name||"Link"==i.name||"Image"==i.name)return null;i=i.parent}return{from:n-r[0].length,to:n,options:R(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let P=null;function R(){if(P)return P;let e=(0,l.htmlCompletionSource)(new a.TK(r.yy.create({extensions:$}),0,!0));return P=e?e.options:[]}},40923:(e,t,n)=>{n.r(t),n.d(t,{php:()=>l,phpLanguage:()=>s});var r=n(22472),i=n(31330),o=n(49262),a=n(94019);const s=a.qp.define({name:"php",parser:r.E.configure({props:[a.uj.add({IfStatement:(0,a.tC)({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:(0,a.tC)({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:e=>{let t=e.textAfter,n=/^\s*\}/.test(t),r=/^\s*(case|default)\b/.test(t);return e.baseIndent+(n?0:r?1:2)*e.unit},ColonBlock:e=>e.baseIndent+e.unit,"Block EnumBody DeclarationList":(0,a.vw)({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"String BlockComment":()=>null,Statement:(0,a.tC)({except:/^({|end(for|foreach|switch|while)\b)/})}),a.x0.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":a.Dv,ColonBlock:e=>({from:e.from+1,to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function l(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[];if(null===t.baseLanguage);else if(t.baseLanguage)e=t.baseLanguage;else{let t=(0,o.html)({matchClosingTags:!1});n.push(t.support),e=t.language}return new a.ri(s.configure({wrap:e&&(0,i.FE)((t=>t.type.isTop?{parser:e.parser,overlay:e=>"Text"==e.name}:null)),top:t.plain?"Program":"Template"}),n)}},65108:(e,t,n)=>{n.r(t),n.d(t,{globalCompletion:()=>b,localCompletionSource:()=>m,python:()=>k,pythonLanguage:()=>y});var r=n(81537),i=n(94019),o=n(31330),a=n(76391);const s=new o.hr,l=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function c(e){return(t,n,r)=>{if(r)return!1;let i=t.node.getChild("VariableName");return i&&n(i,e),!0}}const u={FunctionDefinition:c("function"),ClassDefinition:c("class"),ForStatement(e,t,n){if(n)for(let r=e.node.firstChild;r;r=r.nextSibling)if("VariableName"==r.name)t(r,"variable");else if("in"==r.name)break},ImportStatement(e,t){var n,r;let{node:i}=e,o="from"==(null===(n=i.firstChild)||void 0===n?void 0:n.name);for(let a=i.getChild("import");a;a=a.nextSibling)"VariableName"==a.name&&"as"!=(null===(r=a.nextSibling)||void 0===r?void 0:r.name)&&t(a,o?"variable":"namespace")},AssignStatement(e,t){for(let n=e.node.firstChild;n;n=n.nextSibling)if("VariableName"==n.name)t(n,"variable");else if(":"==n.name||"AssignOp"==n.name)break},ParamList(e,t){for(let n=null,r=e.node.firstChild;r;r=r.nextSibling)"VariableName"!=r.name||n&&/\*|AssignOp/.test(n.name)||t(r,"variable"),n=r},CapturePattern:c("variable"),AsPattern:c("variable"),__proto__:null};function d(e,t){let n=s.get(t);if(n)return n;let r=[],i=!0;function a(t,n){let i=e.sliceString(t.from,t.to);r.push({label:i,type:n})}return t.cursor(o.vj.IncludeAnonymous).iterate((t=>{if(t.name){let e=u[t.name];if(e&&e(t,a,i)||!i&&l.has(t.name))return!1;i=!1}else if(t.to-t.from>8192){for(let n of d(e,t.node))r.push(n);return!1}})),s.set(t,r),r}const h=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/,f=["String","FormatString","Comment","PropertyName"];function m(e){let t=(0,i.qz)(e.state).resolveInner(e.pos,-1);if(f.indexOf(t.name)>-1)return null;let n="VariableName"==t.name||t.to-t.from<20&&h.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)l.has(i.name)&&(r=r.concat(d(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:h}}const p=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map((e=>({label:e,type:"constant"}))).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map((e=>({label:e,type:"type"})))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map((e=>({label:e,type:"class"})))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map((e=>({label:e,type:"function"})))),g=[(0,a.Gn)("def ${name}(${params}):\n\t${}",{label:"def",detail:"function",type:"keyword"}),(0,a.Gn)("for ${name} in ${collection}:\n\t${}",{label:"for",detail:"loop",type:"keyword"}),(0,a.Gn)("while ${}:\n\t${}",{label:"while",detail:"loop",type:"keyword"}),(0,a.Gn)("try:\n\t${}\nexcept ${error}:\n\t${}",{label:"try",detail:"/ except block",type:"keyword"}),(0,a.Gn)("if ${}:\n\t\n",{label:"if",detail:"block",type:"keyword"}),(0,a.Gn)("if ${}:\n\t${}\nelse:\n\t${}",{label:"if",detail:"/ else block",type:"keyword"}),(0,a.Gn)("class ${name}:\n\tdef __init__(self, ${params}):\n\t\t\t${}",{label:"class",detail:"definition",type:"keyword"}),(0,a.Gn)("import ${module}",{label:"import",detail:"statement",type:"keyword"}),(0,a.Gn)("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})],b=(0,a.eC)(f,(0,a.Mb)(p.concat(g)));function v(e,t){let n=e.baseIndentFor(t),r=e.lineAt(e.pos,-1),i=r.from+r.text.length;return/^\s*($|#)/.test(r.text)&&e.node.ton?null:n+e.unit}const y=i.qp.define({name:"python",parser:r.E.configure({props:[i.uj.add({Body:e=>{var t;return null!==(t=v(e,e.node))&&void 0!==t?t:e.continue()},IfStatement:e=>/^\s*(else:|elif )/.test(e.textAfter)?e.baseIndent:e.continue(),TryStatement:e=>/^\s*(except |finally:|else:)/.test(e.textAfter)?e.baseIndent:e.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":(0,i.vw)({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":(0,i.vw)({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":(0,i.vw)({closing:"]"}),"String FormatString":()=>null,Script:e=>{if(e.pos+/\s*/.exec(e.textAfter)[0].length>=e.node.to){let t=null;for(let n=e.node,r=n.to;n=n.lastChild,n&&n.to==r;)"Body"==n.type.name&&(t=n);if(t){let n=v(e,t);if(null!=n)return n}}return e.continue()}}),i.x0.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":i.Dv,Body:(e,t)=>({from:e.from+1,to:e.to-(e.to==t.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function k(){return new i.ri(y,[y.data.of({autocomplete:m}),y.data.of({autocomplete:b})])}},2118:(e,t,n)=>{n.r(t),n.d(t,{rust:()=>a,rustLanguage:()=>o});var r=n(41112),i=n(94019);const o=i.qp.define({name:"rust",parser:r.E.configure({props:[i.uj.add({IfExpression:(0,i.tC)({except:/^\s*({|else\b)/}),"String BlockComment":()=>null,AttributeItem:e=>e.continue(),"Statement MatchArm":(0,i.tC)()}),i.x0.add((e=>/(Block|edTokens|List)$/.test(e.name)?i.Dv:"BlockComment"==e.name?e=>({from:e.from+2,to:e.to-2}):void 0))]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:\{|\})$/,closeBrackets:{stringPrefixes:["b","r","br"]}}});function a(){return new i.ri(o)}},6757:(e,t,n)=>{n.r(t),n.d(t,{sass:()=>c,sassCompletionSource:()=>l,sassLanguage:()=>a});var r=n(97324),i=n(94019),o=n(1800);const a=i.qp.define({name:"sass",parser:r.E.configure({props:[i.x0.add({Block:i.Dv,Comment:(e,t)=>({from:e.from+2,to:"*/"==t.sliceDoc(e.to-2,e.to)?e.to-2:e.to})}),i.uj.add({Declaration:(0,i.tC)()})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*\}$/,wordChars:"$-"}}),s=a.configure({dialect:"indented",props:[i.uj.add({"Block RuleSet":e=>e.baseIndent+e.unit}),i.x0.add({Block:e=>({from:e.from,to:e.to})})]}),l=(0,o.defineCSSCompletionSource)((e=>"VariableName"==e.name||"SassVariableName"==e.name));function c(e){return new i.ri((null===e||void 0===e?void 0:e.indented)?s:a,a.data.of({autocomplete:l}))}},97616:(e,t,n)=>{n.r(t),n.d(t,{Cassandra:()=>ee,MSSQL:()=>J,MariaSQL:()=>Y,MySQL:()=>H,PLSQL:()=>te,PostgreSQL:()=>V,SQLDialect:()=>Q,SQLite:()=>K,StandardSQL:()=>j,keywordCompletion:()=>W,keywordCompletionSource:()=>q,schemaCompletion:()=>U,schemaCompletionSource:()=>B,sql:()=>F});var r=n(94019),i=n(60994),o=n(48551),a=n(76391);const s=5,l=6,c=20,u=21,d=24;function h(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function f(e,t,n){for(let r=!1;;){if(e.next<0)return;if(e.next==t&&!r)return void e.advance();r=n&&!r&&92==e.next,e.advance()}}function m(e,t){for(;95==e.next||h(e.next);)null!=t&&(t+=String.fromCharCode(e.next)),e.advance();return t}function p(e,t){for(;48==e.next||49==e.next;)e.advance();t&&e.next==t&&e.advance()}function g(e,t){for(;;){if(46==e.next){if(t)break;t=!0}else if(e.next<48||e.next>57)break;e.advance()}if(69==e.next||101==e.next)for(e.advance(),43!=e.next&&45!=e.next||e.advance();e.next>=48&&e.next<=57;)e.advance()}function b(e){for(;!(e.next<0||10==e.next);)e.advance()}function v(e,t){for(let n=0;n!=&|~^/",specialVar:"?",identifierQuotes:'"',words:k(O,w)};function S(e){return new o.Jq((t=>{var n;let{next:r}=t;if(t.advance(),v(r,y)){for(;v(t.next,y);)t.advance();t.acceptToken(36)}else if(36==r&&36==t.next&&e.doubleDollarQuotedStrings)!function(e){for(;;){if(e.next<0||e.peek(1)<0)return;if(36==e.next&&36==e.peek(1))return void e.advance(2);e.advance()}}(t),t.acceptToken(3);else if(39==r||34==r&&e.doubleQuotedStrings)f(t,r,e.backslashEscapes),t.acceptToken(3);else if(35==r&&e.hashComments||47==r&&47==t.next&&e.slashComments)b(t),t.acceptToken(1);else if(45!=r||45!=t.next||e.spaceAfterDashes&&32!=t.peek(1))if(47==r&&42==t.next){t.advance();for(let e=1;;){let n=t.next;if(t.next<0)break;if(t.advance(),42==n&&47==t.next){if(e--,t.advance(),!e)break}else 47==n&&42==t.next&&(e++,t.advance())}t.acceptToken(2)}else if(101!=r&&69!=r||39!=t.next)if(110!=r&&78!=r||39!=t.next||!e.charSetCasts)if(95==r&&e.charSetCasts)for(let o=0;;o++){if(39==t.next&&o>1){t.advance(),f(t,39,e.backslashEscapes),t.acceptToken(3);break}if(!h(t.next))break;t.advance()}else if(e.plsqlQuotingMechanism&&(113==r||81==r)&&39==t.next&&t.peek(1)>0&&!v(t.peek(1),y)){let e=t.peek(1);t.advance(2),function(e,t){let n="[{<(".indexOf(String.fromCharCode(t)),r=n<0?t:"]}>)".charCodeAt(n);for(;;){if(e.next<0)return;if(e.next==r&&39==e.peek(1))return void e.advance(2);e.advance()}}(t,e),t.acceptToken(3)}else if(40==r)t.acceptToken(7);else if(41==r)t.acceptToken(8);else if(123==r)t.acceptToken(9);else if(125==r)t.acceptToken(10);else if(91==r)t.acceptToken(11);else if(93==r)t.acceptToken(12);else if(59==r)t.acceptToken(13);else if(e.unquotedBitLiterals&&48==r&&98==t.next)t.advance(),p(t),t.acceptToken(22);else if(98!=r&&66!=r||39!=t.next&&34!=t.next){if(48==r&&(120==t.next||88==t.next)||(120==r||88==r)&&39==t.next){let e=39==t.next;for(t.advance();(i=t.next)>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70;)t.advance();e&&39==t.next&&t.advance(),t.acceptToken(4)}else if(46==r&&t.next>=48&&t.next<=57)g(t,!0),t.acceptToken(4);else if(46==r)t.acceptToken(14);else if(r>=48&&r<=57)g(t,!1),t.acceptToken(4);else if(v(r,e.operatorChars)){for(;v(t.next,e.operatorChars);)t.advance();t.acceptToken(15)}else if(v(r,e.specialVar))t.next==r&&t.advance(),function(e){if(39==e.next||34==e.next||96==e.next){let t=e.next;e.advance(),f(e,t,!1)}else m(e)}(t),t.acceptToken(17);else if(v(r,e.identifierQuotes))f(t,r,!1),t.acceptToken(19);else if(58==r||44==r)t.acceptToken(16);else if(h(r)){let i=m(t,String.fromCharCode(r));t.acceptToken(46==t.next?18:null!==(n=e.words[i.toLowerCase()])&&void 0!==n?n:18)}}else{const n=t.next;t.advance(),e.treatBitsAsBytes?(f(t,n,e.backslashEscapes),t.acceptToken(23)):(p(t,n),t.acceptToken(22))}else t.advance(),f(t,39,e.backslashEscapes),t.acceptToken(3);else t.advance(),f(t,39,!0);else b(t),t.acceptToken(1);var i}))}const _=S(x),T=o.WQ.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"\u26a0 LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,_],topRules:{Script:[0,25]},tokenPrec:0});function E(e){let t=e.cursor().moveTo(e.from,-1);for(;/Comment/.test(t.name);)t.moveTo(t.from,-1);return t.node}function $(e,t){let n=e.sliceString(t.from,t.to),r=/^([`'"])(.*)\1$/.exec(n);return r?r[2]:n}function C(e){return e&&("Identifier"==e.name||"QuotedIdentifier"==e.name)}function A(e,t){if("CompositeIdentifier"==t.name){let n=[];for(let r=t.firstChild;r;r=r.nextSibling)C(r)&&n.push($(e,r));return n}return[$(e,t)]}function P(e,t){for(let n=[];;){if(!t||"."!=t.name)return n;let r=E(t);if(!C(r))return n;n.unshift($(e,r)),t=E(r)}}function R(e,t){let n=(0,r.qz)(e).resolveInner(t,-1),i=function(e,t){let n;for(let i=t;!n;i=i.parent){if(!i)return null;"Statement"==i.name&&(n=i)}let r=null;for(let i=n.firstChild,o=!1,a=null;i;i=i.nextSibling){let t="Keyword"==i.name?e.sliceString(i.from,i.to).toLowerCase():null,n=null;if(o)if("as"==t&&a&&C(i.nextSibling))n=$(e,i.nextSibling);else{if(t&&I.has(t))break;a&&C(i)&&(n=$(e,i))}else o="from"==t;n&&(r||(r=Object.create(null)),r[n]=A(e,a)),a=/Identifier$/.test(i.name)?i:null}return r}(e.doc,n);return"Identifier"==n.name||"QuotedIdentifier"==n.name||"Keyword"==n.name?{from:n.from,quoted:"QuotedIdentifier"==n.name?e.doc.sliceString(n.from,n.from+1):null,parents:P(e.doc,E(n)),aliases:i}:"."==n.name?{from:t,quoted:null,parents:P(e.doc,n),aliases:i}:{from:t,quoted:null,parents:[],empty:!0,aliases:i}}const I=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));const D=/^\w*$/,z=/^[`'"]?\w*[`'"]?$/;class N{constructor(){this.list=[],this.children=void 0}child(e,t){let n=this.children||(this.children=Object.create(null)),r=n[e];return r||(e&&this.list.push(L(e,"type",t)),n[e]=new N)}addCompletions(e){for(let t of e){let e=this.list.findIndex((e=>e.label==t.label));e>-1?this.list[e]=t:this.list.push(t)}}}function L(e,t,n){return/[^\w\xb5-\uffff]/.test(e)?{label:e,type:t,apply:n+e+n}:{label:e,type:t}}let M=T.configure({props:[r.uj.add({Statement:(0,r.tC)()}),r.x0.add({Statement:e=>({from:e.firstChild.to,to:e.to}),BlockComment:e=>({from:e.from+2,to:e.to-2})}),(0,i.Gv)({Keyword:i.pJ.keyword,Type:i.pJ.typeName,Builtin:i.pJ.standard(i.pJ.name),Bits:i.pJ.number,Bytes:i.pJ.string,Bool:i.pJ.bool,Null:i.pJ.null,Number:i.pJ.number,String:i.pJ.string,Identifier:i.pJ.name,QuotedIdentifier:i.pJ.special(i.pJ.string),SpecialVar:i.pJ.special(i.pJ.name),LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,Operator:i.pJ.operator,"Semi Punctuation":i.pJ.punctuation,"( )":i.pJ.paren,"{ }":i.pJ.brace,"[ ]":i.pJ.squareBracket})]});class Q{constructor(e,t,n){this.dialect=e,this.language=t,this.spec=n}get extension(){return this.language.extension}static define(e){let t=function(e,t,n,r){let i={};for(let o in x)i[o]=(e.hasOwnProperty(o)?e:x)[o];return t&&(i.words=k(t,n||"",r)),i}(e,e.keywords,e.types,e.builtin),n=r.qp.define({name:"sql",parser:M.configure({tokenizers:[{from:_,to:S(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new Q(t,n,e)}}function q(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(e,t){let n=Object.keys(e).map((n=>({label:t?n.toUpperCase():n,type:e[n]==u?"type":e[n]==c?"keyword":"variable",boost:-1})));return(0,a.eC)(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],(0,a.Mb)(n))}(e.dialect.words,t)}function W(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.language.data.of({autocomplete:q(e,t)})}function B(e){return e.schema?function(e,t,n,r,i,o){var a;let s=new N,l=(null===(a=null===o||void 0===o?void 0:o.spec.identifierQuotes)||void 0===a?void 0:a[0])||'"',c=s.child(i||"",l);for(let u in e){let t=u.replace(/\\?\./g,(e=>"."==e?"\0":e)).split("\0"),n=1==t.length?c:s;for(let e of t)n=n.child(e.replace(/\\\./g,"."),l);for(let r of e[u])r&&n.list.push("string"==typeof r?L(r,"property",l):r)}return t&&c.addCompletions(t),n&&s.addCompletions(n),s.addCompletions(c.list),r&&s.addCompletions(c.child(r,l).list),e=>{let{parents:t,from:n,quoted:i,empty:o,aliases:a}=R(e.state,e.pos);if(o&&!e.explicit)return null;a&&1==t.length&&(t=a[t[0]]||t);let u=s;for(let p of t){for(;!u.children||!u.children[p];)if(u==s)u=c;else{if(u!=c||!r)return null;u=u.child(r,l)}u=u.child(p,l)}let d=i&&e.state.sliceDoc(e.pos,e.pos+1)==i,h=u.list;return u==s&&a&&(h=h.concat(Object.keys(a).map((e=>({label:e,type:"constant"}))))),{from:n,to:d?e.pos+1:void 0,options:(f=i,m=h,f?m.map((e=>Object.assign(Object.assign({},e),{label:f+e.label+f,apply:void 0}))):m),validFor:i?z:D};var f,m}}(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema,e.dialect||j):()=>null}function U(e){return e.schema?(e.dialect||j).language.data.of({autocomplete:B(e)}):[]}function F(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.dialect||j;return new r.ri(t.language,[U(e),W(t,!!e.upperCaseKeywords)])}const j=Q.define({}),V=Q.define({charSetCasts:!0,doubleDollarQuotedStrings:!0,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:O+"a abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom c cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion g generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull k key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower m mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner p parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time t table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:w+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"}),G="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill",X=w+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed",Z="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee",H=Q.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:O+"group_concat "+G,types:X,builtin:Z}),Y=Q.define({operatorChars:"*+-%<>!=&|^",charSetCasts:!0,doubleQuotedStrings:!0,unquotedBitLiterals:!0,hashComments:!0,spaceAfterDashes:!0,specialVar:"@?",identifierQuotes:"`",keywords:O+"always generated groupby_concat hard persistent shutdown soft virtual "+G,types:X,builtin:Z}),J=Q.define({keywords:O+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:w+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"}),K=Q.define({keywords:O+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:w+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"}),ee=Q.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:w+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:!0}),te=Q.define({keywords:O+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:w+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:!0,charSetCasts:!0,plsqlQuotingMechanism:!0})},69085:(e,t,n)=>{n.r(t),n.d(t,{vue:()=>y,vueLanguage:()=>b});var r=n(94019),i=n(49262),o=n(72351),a=n(60994),s=n(31330),l=n(48551);const c=l.WQ.deserialize({version:14,states:"%pOVOWOOObQPOOOpOSO'#C_OOOO'#Cp'#CpQVOWOOQxQPOOO!TQQOOQ!YQPOOOOOO,58y,58yO!_OSO,58yOOOO-E6n-E6nO!dQQO'#CqQ{QPOOO!iQPOOQ{QPOOO!qQPOOOOOO1G.e1G.eOOQO,59],59]OOQO-E6o-E6oO!yOpO'#CiO#RO`O'#CiQOQPOOO#ZO#tO'#CmO#fO!bO'#CmOOQO,59T,59TO#qOpO,59TO#vO`O,59TOOOO'#Cr'#CrO#{O#tO,59XOOQO,59X,59XOOOO'#Cs'#CsO$WO!bO,59XOOQO1G.o1G.oOOOO-E6p-E6pOOQO1G.s1G.sOOOO-E6q-E6q",stateData:"$g~OjOS~OQROUROkQO~OWTOXUOZUO`VO~OSXOTWO~OXUO[]OlZO~OY^O~O[_O~OT`O~OYaO~OmcOodO~OmfOogO~O^iOnhO~O_jOphO~ObkOqkOrmO~OcnOsnOtmO~OnpO~OppO~ObkOqkOrrO~OcnOsnOtrO~OWX`~",goto:"!^hPPPiPPPPPPPPPmPPPpPPsy!Q!WTROSRe]Re_QSORYSS[T^Rb[QlfRqlQogRso",nodeNames:"\u26a0 Content Text Interpolation InterpolationContent }} Entity Attribute VueAttributeName : Identifier @ Is ScriptAttributeValue AttributeScript AttributeScript AttributeName AttributeValue Entity Entity",maxTerm:36,skippedNodes:[0],repeatNodeCount:4,tokenData:"'y~RdXY!aYZ!a]^!apq!ars!rwx!w}!O!|!O!P#t!Q![#y![!]$s!_!`%g!b!c%l!c!}#y#R#S#y#T#j#y#j#k%q#k#o#y%W;'S#y;'S;:j$m<%lO#y~!fSj~XY!aYZ!a]^!apq!a~!wOm~~!|Oo~!b#RX`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|!b#qP;=`<%l!|~#yOl~%W$QXY#t`!b}!O!|!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y%W$pP;=`<%l#y~$zXX~`!b}!O!|!Q![!|![!]!|!c!}!|#R#S!|#T#o!|%W;'S!|;'S;:j#n<%lO!|~%lO[~~%qOZ~%W%xXY#t`!b}!O&e!Q![#y![!]!|!c!}#y#R#S#y#T#o#y%W;'S#y;'S;:j$m<%lO#y!b&jX`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|!b'^XW!b`!b}!O!|!Q![!|![!]!|!c!}'V#R#S!|#T#o'V%W;'S!|;'S;:j#n<%lO!|",tokenizers:[6,7,new l.RA("b~RP#q#rU~XP#q#r[~aOT~~",17,4),new l.RA("!k~RQvwX#o#p!_~^TU~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOU~~![P;=`<%lm~!bP#o#p!e~!jOk~~",72,2),new l.RA("[~RPwxU~ZOp~~",11,15),new l.RA("[~RPrsU~ZOn~~",11,14),new l.RA("!e~RQvwXwx!_~^Tc~Opmq!]m!^;'Sm;'S;=`!X<%lOm~pUOpmq!]m!]!^!S!^;'Sm;'S;=`!X<%lOm~!XOc~~![P;=`<%lm~!dOt~~",66,35),new l.RA("!e~RQrsXvw^~^Or~~cTb~Oprq!]r!^;'Sr;'S;=`!^<%lOr~uUOprq!]r!]!^!X!^;'Sr;'S;=`!^<%lOr~!^Ob~~!aP;=`<%lr~",66,33)],topRules:{Content:[0,1],Attribute:[1,7]},tokenPrec:157}),u=o.javascriptLanguage.parser.configure({top:"SingleExpression"}),d=c.configure({props:[(0,a.Gv)({Text:a.pJ.content,Is:a.pJ.definitionOperator,AttributeName:a.pJ.attributeName,VueAttributeName:a.pJ.keyword,Identifier:a.pJ.variableName,"AttributeValue ScriptAttributeValue":a.pJ.attributeValue,Entity:a.pJ.character,"{{ }}":a.pJ.brace,"@ :":a.pJ.punctuation})]}),h={parser:u},f={parser:d.configure({wrap:(0,s.FE)(((e,t)=>"InterpolationContent"==e.name?h:null))})},m={parser:d.configure({wrap:(0,s.FE)(((e,t)=>"AttributeScript"==e.name?h:null)),top:"Attribute"})},p=(0,i.html)();function g(e){return e.configure({dialect:"selfClosing",wrap:(0,s.FE)(v)},"vue")}const b=g(p.language);function v(e,t){switch(e.name){case"Attribute":return/^(@|:|v-)/.test(t.read(e.from,e.from+2))?m:null;case"Text":return f}return null}function y(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=p;if(e.base){if("html"!=e.base.language.name||!(e.base.language instanceof r.qp))throw new RangeError("The base option must be the result of calling html(...)");t=e.base}return new r.ri(t.language==p.language?b:g(t.language),[t.support,t.language.data.of({closeBrackets:{brackets:["{",'"']}})])}},8594:(e,t,n)=>{n.r(t),n.d(t,{wast:()=>c,wastLanguage:()=>l});var r=n(94019),i=n(60994),o=n(48551);const a={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34},s=o.WQ.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"\u26a0 LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"/Q~R^XY}YZ}]^}pq}rs!Stu!qxy&Vyz'S{|'X}!O'X!Q!R'b!R![)_!]!^,{#T#o-^~!SO_~~!VTOr!Srs!fs#O!S#O#P!k#P~!S~!kOZ~~!nPO~!S~!tiqr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~$hiV~qr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~&[PT~!]!^&_~&bRO!]&_!]!^&k!^~&_~&nTOy&_yz&}z!]&_!]!^&k!^~&_~'SOQ~~'XOS~~'[Q!Q!R'b!R![)_~'gUY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j#l#m)y~(ORY~!Q![(X!g!h(j#X#Y(j~(^SY~!Q![(X!g!h(j#R#S)X#X#Y(j~(mR{|(v}!O(v!Q![(|~(yP!Q![(|~)RQY~!Q![(|#R#S(v~)[P!Q![(X~)dTY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j~)vP!Q![)_~)|R!Q![*V!c!i*V#T#Z*V~*[VY~!O!P*q!Q![*V!c!i*V!r!s+n#R#S)y#T#Z*V#d#e+n~*vTY~!Q![+V!c!i+V!r!s+n#T#Z+V#d#e+n~+[UY~!Q![+V!c!i+V!r!s+n#R#S,o#T#Z+V#d#e+n~+qT{|,Q}!O,Q!Q![,^!c!i,^#T#Z,^~,TR!Q![,^!c!i,^#T#Z,^~,cSY~!Q![,^!c!i,^#R#S,Q#T#Z,^~,rR!Q![+V!c!i+V#T#Z+V~-OP!]!^-R~-WQP~OY-RZ~-R~-ciX~qr-^st-^tu-^uv-^vw-^wx-^z{-^{|-^}!O-^!O!P-^!P!Q-^!Q![-^![!]-^!^!_-^!_!`-^!`!a-^!a!b-^!b!c-^!c!}-^#Q#R-^#R#S-^#S#T-^#T#o-^#p#q-^#r#s-^",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:e=>a[e]||-1}],tokenPrec:0}),l=r.qp.define({name:"wast",parser:s.configure({props:[r.uj.add({App:(0,r.vw)({closing:")",align:!1})}),r.x0.add({App:r.Dv,BlockComment:e=>({from:e.from+2,to:e.to-2})}),(0,i.Gv)({Keyword:i.pJ.keyword,Type:i.pJ.typeName,Number:i.pJ.number,String:i.pJ.string,Identifier:i.pJ.variableName,LineComment:i.pJ.lineComment,BlockComment:i.pJ.blockComment,"( )":i.pJ.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function c(){return new r.ri(l)}},18268:(e,t,n)=>{n.r(t),n.d(t,{completeFromSchema:()=>h,xml:()=>m,xmlLanguage:()=>f});var r=n(77880),i=n(94019);function o(e,t){let n=t&&t.getChild("TagName");return n?e.sliceString(n.from,n.to):""}function a(e,t){let n=t&&t.firstChild;return n&&"OpenTag"==n.name?o(e,n):""}function s(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}class l{constructor(e,t,n){this.attrs=t,this.attrValues=n,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const c=/^[:\-\.\w\u00b7-\uffff]*$/;function u(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function d(e){return"string"==typeof e?{label:'"'.concat(e,'"'),type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:'"'.concat(e.label,'"')})}function h(e,t){let n=[],r=[],h=Object.create(null);for(let i of t){let e=u(i);n.push(e),i.global&&r.push(e),i.values&&(h[i.name]=i.values.map(d))}let f=[],m=[],p=Object.create(null);for(let i of e){let e=r,t=h;i.attributes&&(e=e.concat(i.attributes.map((e=>"string"==typeof e?n.find((t=>t.label==e))||{label:e,type:"property"}:(e.values&&(t==h&&(t=Object.create(t)),t[e.name]=e.values.map(d)),u(e))))));let o=new l(i,e,t);p[o.name]=o,f.push(o),i.top&&m.push(o)}m.length||(m=f);for(let i=0;i{var t;let{doc:n}=e.state,l=function(e,t){var n;let r=(0,i.qz)(e).resolveInner(t,-1),o=null;for(let i=r;!o&&i.parent;i=i.parent)"OpenTag"!=i.name&&"CloseTag"!=i.name&&"SelfClosingTag"!=i.name&&"MismatchedCloseTag"!=i.name||(o=i);if(o&&(o.to>t||o.lastChild.type.isError)){let e=o.parent;if("TagName"==r.name)return"CloseTag"==o.name||"MismatchedCloseTag"==o.name?{type:"closeTag",from:r.from,context:e}:{type:"openTag",from:r.from,context:s(e)};if("AttributeName"==r.name)return{type:"attrName",from:r.from,context:o};if("AttributeValue"==r.name)return{type:"attrValue",from:r.from,context:o};let n=r==o||"Attribute"==r.name?r.childBefore(t):r;return"StartTag"==(null===n||void 0===n?void 0:n.name)?{type:"openTag",from:t,context:s(e)}:"StartCloseTag"==(null===n||void 0===n?void 0:n.name)&&n.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null===n||void 0===n?void 0:n.name)?{type:"attrValue",from:t,context:o}:n?{type:"attrName",from:t,context:o}:null}if("StartCloseTag"==r.name)return{type:"closeTag",from:t,context:r.parent};for(;r.parent&&r.to==t&&!(null===(n=r.lastChild)||void 0===n?void 0:n.type.isError);)r=r.parent;return"Element"==r.name||"Text"==r.name||"Document"==r.name?{type:"tag",from:t,context:"Element"==r.name?r:s(r)}:null}(e.state,e.pos);if(!l||"tag"==l.type&&!e.explicit)return null;let{type:u,from:d,context:g}=l;if("openTag"==u){let e=m,t=a(n,g);if(t){let n=p[t];e=(null===n||void 0===n?void 0:n.children)||f}return{from:d,options:e.map((e=>e.completion)),validFor:c}}if("closeTag"==u){let r=a(n,g);return r?{from:d,to:e.pos+(">"==n.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=p[r])||void 0===t?void 0:t.closeNameCompletion)||{label:r+">",type:"type"}],validFor:c}:null}if("attrName"==u){let e=p[o(n,g)];return{from:d,options:(null===e||void 0===e?void 0:e.attrs)||r,validFor:c}}if("attrValue"==u){let t=function(e,t,n){let r=t&&t.getChildren("Attribute").find((e=>e.from<=n&&e.to>=n)),i=r&&r.getChild("AttributeName");return i?e.sliceString(i.from,i.to):""}(n,g,d);if(!t)return null;let r=p[o(n,g)],i=((null===r||void 0===r?void 0:r.attrValues)||h)[t];return i&&i.length?{from:d,to:e.pos+('"'==n.sliceString(e.pos,e.pos+1)?1:0),options:i,validFor:/^"[^"]*"?$/}:null}if("tag"==u){let t=a(n,g),r=p[t],i=[],s=g&&g.lastChild;!t||s&&"CloseTag"==s.name&&o(n,s)==t||i.push(r?r.closeCompletion:{label:"",type:"type",boost:2});let l=i.concat(((null===r||void 0===r?void 0:r.children)||(g?f:m)).map((e=>e.openCompletion)));if(g&&(null===r||void 0===r?void 0:r.text.length)){let t=g.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(l=l.concat(r.text))}return{from:d,options:l,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const f=i.qp.define({name:"xml",parser:r.E.configure({props:[i.uj.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),i.x0.add({Element(e){let t=e.firstChild,n=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==n.name?n.from:e.to}:null}}),i.a0.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new i.ri(f,f.data.of({autocomplete:h(e.elements||[],e.attributes||[])}))}},52949:(e,t,n)=>{n.d(t,{M:()=>a});var r=n(94019);function i(e){return new r.ri(r.il.define(e))}function o(e){return Promise.resolve().then(n.bind(n,97616)).then((t=>t.sql({dialect:t[e]})))}const a=[r.c6.of({name:"C",extensions:["c","h","ino"],load:()=>Promise.resolve().then(n.bind(n,12840)).then((e=>e.cpp()))}),r.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>Promise.resolve().then(n.bind(n,12840)).then((e=>e.cpp()))}),r.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>o("Cassandra")}),r.c6.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(n.bind(n,1800)).then((e=>e.css()))}),r.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(n.bind(n,49262)).then((e=>e.html()))}),r.c6.of({name:"Java",extensions:["java"],load:()=>Promise.resolve().then(n.bind(n,68168)).then((e=>e.java()))}),r.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(n.bind(n,72351)).then((e=>e.javascript()))}),r.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>Promise.resolve().then(n.bind(n,63723)).then((e=>e.json()))}),r.c6.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(n.bind(n,72351)).then((e=>e.javascript({jsx:!0})))}),r.c6.of({name:"LESS",extensions:["less"],load:()=>Promise.resolve().then(n.bind(n,68192)).then((e=>e.less()))}),r.c6.of({name:"MariaDB SQL",load:()=>o("MariaSQL")}),r.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(n.bind(n,83132)).then((e=>e.markdown()))}),r.c6.of({name:"MS SQL",load:()=>o("MSSQL")}),r.c6.of({name:"MySQL",load:()=>o("MySQL")}),r.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>Promise.resolve().then(n.bind(n,40923)).then((e=>e.php()))}),r.c6.of({name:"PLSQL",extensions:["pls"],load:()=>o("PLSQL")}),r.c6.of({name:"PostgreSQL",load:()=>o("PostgreSQL")}),r.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>Promise.resolve().then(n.bind(n,65108)).then((e=>e.python()))}),r.c6.of({name:"Rust",extensions:["rs"],load:()=>Promise.resolve().then(n.bind(n,2118)).then((e=>e.rust()))}),r.c6.of({name:"Sass",extensions:["sass"],load:()=>Promise.resolve().then(n.bind(n,6757)).then((e=>e.sass({indented:!0})))}),r.c6.of({name:"SCSS",extensions:["scss"],load:()=>Promise.resolve().then(n.bind(n,6757)).then((e=>e.sass()))}),r.c6.of({name:"SQL",extensions:["sql"],load:()=>o("StandardSQL")}),r.c6.of({name:"SQLite",load:()=>o("SQLite")}),r.c6.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(n.bind(n,72351)).then((e=>e.javascript({jsx:!0,typescript:!0})))}),r.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:()=>Promise.resolve().then(n.bind(n,72351)).then((e=>e.javascript({typescript:!0})))}),r.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>Promise.resolve().then(n.bind(n,8594)).then((e=>e.wast()))}),r.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>Promise.resolve().then(n.bind(n,18268)).then((e=>e.xml()))}),r.c6.of({name:"APL",extensions:["dyalog","apl"],load:()=>Promise.resolve().then(n.bind(n,34413)).then((e=>i(e.apl)))}),r.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>Promise.resolve().then(n.bind(n,74588)).then((e=>i(e.asciiArmor)))}),r.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>n.e(7474).then(n.bind(n,6557)).then((e=>i(e.asn1({}))))}),r.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>Promise.resolve().then(n.bind(n,12795)).then((e=>i(e.asterisk)))}),r.c6.of({name:"Brainfuck",extensions:["b","bf"],load:()=>Promise.resolve().then(n.bind(n,5462)).then((e=>i(e.brainfuck)))}),r.c6.of({name:"Cobol",extensions:["cob","cpy"],load:()=>Promise.resolve().then(n.bind(n,35275)).then((e=>i(e.cobol)))}),r.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>Promise.resolve().then(n.bind(n,80996)).then((e=>i(e.csharp)))}),r.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>n.e(7474).then(n.bind(n,29018)).then((e=>i(e.clojure)))}),r.c6.of({name:"ClojureScript",extensions:["cljs"],load:()=>n.e(7474).then(n.bind(n,29018)).then((e=>i(e.clojure)))}),r.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>n.e(7474).then(n.bind(n,65714)).then((e=>i(e.gss)))}),r.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>Promise.resolve().then(n.bind(n,64809)).then((e=>i(e.cmake)))}),r.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>Promise.resolve().then(n.bind(n,14505)).then((e=>i(e.coffeeScript)))}),r.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>Promise.resolve().then(n.bind(n,85765)).then((e=>i(e.commonLisp)))}),r.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>Promise.resolve().then(n.bind(n,86195)).then((e=>i(e.cypher)))}),r.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>n.e(7474).then(n.bind(n,2472)).then((e=>i(e.cython)))}),r.c6.of({name:"Crystal",extensions:["cr"],load:()=>Promise.resolve().then(n.bind(n,70153)).then((e=>i(e.crystal)))}),r.c6.of({name:"D",extensions:["d"],load:()=>Promise.resolve().then(n.bind(n,72789)).then((e=>i(e.d)))}),r.c6.of({name:"Dart",extensions:["dart"],load:()=>Promise.resolve().then(n.bind(n,80996)).then((e=>i(e.dart)))}),r.c6.of({name:"diff",extensions:["diff","patch"],load:()=>Promise.resolve().then(n.bind(n,55411)).then((e=>i(e.diff)))}),r.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>Promise.resolve().then(n.bind(n,46857)).then((e=>i(e.dockerFile)))}),r.c6.of({name:"DTD",extensions:["dtd"],load:()=>Promise.resolve().then(n.bind(n,80882)).then((e=>i(e.dtd)))}),r.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>Promise.resolve().then(n.bind(n,24735)).then((e=>i(e.dylan)))}),r.c6.of({name:"EBNF",load:()=>Promise.resolve().then(n.bind(n,99795)).then((e=>i(e.ebnf)))}),r.c6.of({name:"ECL",extensions:["ecl"],load:()=>Promise.resolve().then(n.bind(n,50073)).then((e=>i(e.ecl)))}),r.c6.of({name:"edn",extensions:["edn"],load:()=>n.e(7474).then(n.bind(n,29018)).then((e=>i(e.clojure)))}),r.c6.of({name:"Eiffel",extensions:["e"],load:()=>Promise.resolve().then(n.bind(n,22580)).then((e=>i(e.eiffel)))}),r.c6.of({name:"Elm",extensions:["elm"],load:()=>Promise.resolve().then(n.bind(n,80174)).then((e=>i(e.elm)))}),r.c6.of({name:"Erlang",extensions:["erl"],load:()=>Promise.resolve().then(n.bind(n,4318)).then((e=>i(e.erlang)))}),r.c6.of({name:"Esper",load:()=>n.e(7474).then(n.bind(n,27170)).then((e=>i(e.esper)))}),r.c6.of({name:"Factor",extensions:["factor"],load:()=>Promise.resolve().then(n.bind(n,60244)).then((e=>i(e.factor)))}),r.c6.of({name:"FCL",load:()=>Promise.resolve().then(n.bind(n,87748)).then((e=>i(e.fcl)))}),r.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>Promise.resolve().then(n.bind(n,67454)).then((e=>i(e.forth)))}),r.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>Promise.resolve().then(n.bind(n,882)).then((e=>i(e.fortran)))}),r.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>n.e(7474).then(n.bind(n,29797)).then((e=>i(e.fSharp)))}),r.c6.of({name:"Gas",extensions:["s"],load:()=>Promise.resolve().then(n.bind(n,95123)).then((e=>i(e.gas)))}),r.c6.of({name:"Gherkin",extensions:["feature"],load:()=>Promise.resolve().then(n.bind(n,4487)).then((e=>i(e.gherkin)))}),r.c6.of({name:"Go",extensions:["go"],load:()=>Promise.resolve().then(n.bind(n,37151)).then((e=>i(e.go)))}),r.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>Promise.resolve().then(n.bind(n,9063)).then((e=>i(e.groovy)))}),r.c6.of({name:"Haskell",extensions:["hs"],load:()=>Promise.resolve().then(n.bind(n,56260)).then((e=>i(e.haskell)))}),r.c6.of({name:"Haxe",extensions:["hx"],load:()=>Promise.resolve().then(n.bind(n,59205)).then((e=>i(e.haxe)))}),r.c6.of({name:"HXML",extensions:["hxml"],load:()=>Promise.resolve().then(n.bind(n,59205)).then((e=>i(e.hxml)))}),r.c6.of({name:"HTTP",load:()=>Promise.resolve().then(n.bind(n,89532)).then((e=>i(e.http)))}),r.c6.of({name:"IDL",extensions:["pro"],load:()=>Promise.resolve().then(n.bind(n,63424)).then((e=>i(e.idl)))}),r.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>n.e(7474).then(n.bind(n,40717)).then((e=>i(e.jsonld)))}),r.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>Promise.resolve().then(n.bind(n,85438)).then((e=>i(e.jinja2)))}),r.c6.of({name:"Julia",extensions:["jl"],load:()=>Promise.resolve().then(n.bind(n,55439)).then((e=>i(e.julia)))}),r.c6.of({name:"Kotlin",extensions:["kt"],load:()=>Promise.resolve().then(n.bind(n,80996)).then((e=>i(e.kotlin)))}),r.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>Promise.resolve().then(n.bind(n,83049)).then((e=>i(e.liveScript)))}),r.c6.of({name:"Lua",extensions:["lua"],load:()=>Promise.resolve().then(n.bind(n,52488)).then((e=>i(e.lua)))}),r.c6.of({name:"mIRC",extensions:["mrc"],load:()=>Promise.resolve().then(n.bind(n,42458)).then((e=>i(e.mirc)))}),r.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>Promise.resolve().then(n.bind(n,4590)).then((e=>i(e.mathematica)))}),r.c6.of({name:"Modelica",extensions:["mo"],load:()=>Promise.resolve().then(n.bind(n,43720)).then((e=>i(e.modelica)))}),r.c6.of({name:"MUMPS",extensions:["mps"],load:()=>Promise.resolve().then(n.bind(n,66794)).then((e=>i(e.mumps)))}),r.c6.of({name:"Mbox",extensions:["mbox"],load:()=>Promise.resolve().then(n.bind(n,69328)).then((e=>i(e.mbox)))}),r.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>Promise.resolve().then(n.bind(n,12650)).then((e=>i(e.nginx)))}),r.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>Promise.resolve().then(n.bind(n,32636)).then((e=>i(e.nsis)))}),r.c6.of({name:"NTriples",extensions:["nt","nq"],load:()=>Promise.resolve().then(n.bind(n,56913)).then((e=>i(e.ntriples)))}),r.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>Promise.resolve().then(n.bind(n,80996)).then((e=>i(e.objectiveC)))}),r.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>Promise.resolve().then(n.bind(n,80996)).then((e=>i(e.objectiveCpp)))}),r.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>n.e(7474).then(n.bind(n,29797)).then((e=>i(e.oCaml)))}),r.c6.of({name:"Octave",extensions:["m"],load:()=>Promise.resolve().then(n.bind(n,81430)).then((e=>i(e.octave)))}),r.c6.of({name:"Oz",extensions:["oz"],load:()=>Promise.resolve().then(n.bind(n,87987)).then((e=>i(e.oz)))}),r.c6.of({name:"Pascal",extensions:["p","pas"],load:()=>Promise.resolve().then(n.bind(n,67620)).then((e=>i(e.pascal)))}),r.c6.of({name:"Perl",extensions:["pl","pm"],load:()=>Promise.resolve().then(n.bind(n,35833)).then((e=>i(e.perl)))}),r.c6.of({name:"Pig",extensions:["pig"],load:()=>Promise.resolve().then(n.bind(n,40152)).then((e=>i(e.pig)))}),r.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>Promise.resolve().then(n.bind(n,85993)).then((e=>i(e.powerShell)))}),r.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>Promise.resolve().then(n.bind(n,67112)).then((e=>i(e.properties)))}),r.c6.of({name:"ProtoBuf",extensions:["proto"],load:()=>Promise.resolve().then(n.bind(n,58668)).then((e=>i(e.protobuf)))}),r.c6.of({name:"Puppet",extensions:["pp"],load:()=>Promise.resolve().then(n.bind(n,23502)).then((e=>i(e.puppet)))}),r.c6.of({name:"Q",extensions:["q"],load:()=>Promise.resolve().then(n.bind(n,45526)).then((e=>i(e.q)))}),r.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>Promise.resolve().then(n.bind(n,2018)).then((e=>i(e.r)))}),r.c6.of({name:"RPM Changes",load:()=>n.e(7474).then(n.bind(n,19528)).then((e=>i(e.rpmChanges)))}),r.c6.of({name:"RPM Spec",extensions:["spec"],load:()=>n.e(7474).then(n.bind(n,19528)).then((e=>i(e.rpmSpec)))}),r.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:()=>Promise.resolve().then(n.bind(n,82654)).then((e=>i(e.ruby)))}),r.c6.of({name:"SAS",extensions:["sas"],load:()=>Promise.resolve().then(n.bind(n,94888)).then((e=>i(e.sas)))}),r.c6.of({name:"Scala",extensions:["scala"],load:()=>Promise.resolve().then(n.bind(n,80996)).then((e=>i(e.scala)))}),r.c6.of({name:"Scheme",extensions:["scm","ss"],load:()=>Promise.resolve().then(n.bind(n,90031)).then((e=>i(e.scheme)))}),r.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>Promise.resolve().then(n.bind(n,578)).then((e=>i(e.shell)))}),r.c6.of({name:"Sieve",extensions:["siv","sieve"],load:()=>Promise.resolve().then(n.bind(n,21308)).then((e=>i(e.sieve)))}),r.c6.of({name:"Smalltalk",extensions:["st"],load:()=>Promise.resolve().then(n.bind(n,3459)).then((e=>i(e.smalltalk)))}),r.c6.of({name:"Solr",load:()=>Promise.resolve().then(n.bind(n,14288)).then((e=>i(e.solr)))}),r.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>n.e(7474).then(n.bind(n,29797)).then((e=>i(e.sml)))}),r.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>Promise.resolve().then(n.bind(n,69830)).then((e=>i(e.sparql)))}),r.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>Promise.resolve().then(n.bind(n,62817)).then((e=>i(e.spreadsheet)))}),r.c6.of({name:"Squirrel",extensions:["nut"],load:()=>Promise.resolve().then(n.bind(n,80996)).then((e=>i(e.squirrel)))}),r.c6.of({name:"Stylus",extensions:["styl"],load:()=>Promise.resolve().then(n.bind(n,86381)).then((e=>i(e.stylus)))}),r.c6.of({name:"Swift",extensions:["swift"],load:()=>Promise.resolve().then(n.bind(n,91990)).then((e=>i(e.swift)))}),r.c6.of({name:"sTeX",load:()=>Promise.resolve().then(n.bind(n,82852)).then((e=>i(e.stex)))}),r.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>Promise.resolve().then(n.bind(n,82852)).then((e=>i(e.stex)))}),r.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>Promise.resolve().then(n.bind(n,84189)).then((e=>i(e.verilog)))}),r.c6.of({name:"Tcl",extensions:["tcl"],load:()=>Promise.resolve().then(n.bind(n,37248)).then((e=>i(e.tcl)))}),r.c6.of({name:"Textile",extensions:["textile"],load:()=>Promise.resolve().then(n.bind(n,81731)).then((e=>i(e.textile)))}),r.c6.of({name:"TiddlyWiki",load:()=>Promise.resolve().then(n.bind(n,14165)).then((e=>i(e.tiddlyWiki)))}),r.c6.of({name:"Tiki wiki",load:()=>Promise.resolve().then(n.bind(n,56534)).then((e=>i(e.tiki)))}),r.c6.of({name:"TOML",extensions:["toml"],load:()=>Promise.resolve().then(n.bind(n,67934)).then((e=>i(e.toml)))}),r.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>Promise.resolve().then(n.bind(n,59328)).then((e=>i(e.troff)))}),r.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>Promise.resolve().then(n.bind(n,21249)).then((e=>i(e.ttcn)))}),r.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>n.e(7474).then(n.bind(n,70872)).then((e=>i(e.ttcnCfg)))}),r.c6.of({name:"Turtle",extensions:["ttl"],load:()=>Promise.resolve().then(n.bind(n,16071)).then((e=>i(e.turtle)))}),r.c6.of({name:"Web IDL",extensions:["webidl"],load:()=>Promise.resolve().then(n.bind(n,18328)).then((e=>i(e.webIDL)))}),r.c6.of({name:"VB.NET",extensions:["vb"],load:()=>Promise.resolve().then(n.bind(n,93785)).then((e=>i(e.vb)))}),r.c6.of({name:"VBScript",extensions:["vbs"],load:()=>Promise.resolve().then(n.bind(n,80457)).then((e=>i(e.vbScript)))}),r.c6.of({name:"Velocity",extensions:["vtl"],load:()=>Promise.resolve().then(n.bind(n,46923)).then((e=>i(e.velocity)))}),r.c6.of({name:"Verilog",extensions:["v"],load:()=>Promise.resolve().then(n.bind(n,84189)).then((e=>i(e.verilog)))}),r.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>Promise.resolve().then(n.bind(n,18879)).then((e=>i(e.vhdl)))}),r.c6.of({name:"XQuery",extensions:["xy","xquery"],load:()=>Promise.resolve().then(n.bind(n,64758)).then((e=>i(e.xQuery)))}),r.c6.of({name:"Yacas",extensions:["ys"],load:()=>Promise.resolve().then(n.bind(n,25848)).then((e=>i(e.yacas)))}),r.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>Promise.resolve().then(n.bind(n,69831)).then((e=>i(e.yaml)))}),r.c6.of({name:"Z80",extensions:["z80"],load:()=>Promise.resolve().then(n.bind(n,85688)).then((e=>i(e.z80)))}),r.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>Promise.resolve().then(n.bind(n,64745)).then((e=>i(e.mscgen)))}),r.c6.of({name:"X\xf9",extensions:["xu"],load:()=>Promise.resolve().then(n.bind(n,64745)).then((e=>i(e.xu)))}),r.c6.of({name:"MsGenny",extensions:["msgenny"],load:()=>Promise.resolve().then(n.bind(n,64745)).then((e=>i(e.msgenny)))}),r.c6.of({name:"Vue",extensions:["vue"],load:()=>Promise.resolve().then(n.bind(n,69085)).then((e=>e.vue()))}),r.c6.of({name:"Angular Template",load:()=>Promise.resolve().then(n.bind(n,45004)).then((e=>e.angular()))})]},94019:(e,t,n)=>{n.d(t,{Be:()=>v,Dv:()=>G,Gn:()=>R,K0:()=>P,KC:()=>d,QN:()=>we,Qf:()=>ge,R_:()=>Se,SQ:()=>h,SS:()=>A,Um:()=>Le,a0:()=>De,c:()=>$,c6:()=>T,dK:()=>S,e7:()=>oe,il:()=>Ue,kU:()=>u,mi:()=>me,n$:()=>Ie,nF:()=>ke,nY:()=>F,pp:()=>c,qp:()=>m,qz:()=>p,ri:()=>_,rs:()=>j,tC:()=>B,uj:()=>I,vw:()=>Q,x0:()=>V,y1:()=>C,ze:()=>W});var r,i=n(31330),o=n(45224),a=n(50389),s=n(60994),l=n(65694);const c=new i.md;function u(e){return o.r$.define({combine:e?t=>t.concat(e):void 0})}const d=new i.md;class h{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";this.data=e,this.name=r,o.yy.prototype.hasOwnProperty("tree")||Object.defineProperty(o.yy.prototype,"tree",{get(){return p(this)}}),this.parser=t,this.extension=[S.of(this),o.yy.languageData.of(((e,t,n)=>{let r=f(e,t,n),i=r.type.prop(c);if(!i)return[];let o=e.facet(i),a=r.type.prop(d);if(a){let i=r.resolve(t-r.from,n);for(let t of a)if(t.test(i,e)){let n=e.facet(t.facet);return"replace"==t.type?n:n.concat(o)}}return o}))].concat(n)}isActiveAt(e,t){return f(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1).type.prop(c)==this.data}findRegions(e){let t=e.facet(S);if((null===t||void 0===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(c)==this.data)return void n.push({from:t,to:t+e.length});let o=e.prop(i.md.mounted);if(o){if(o.tree.prop(c)==this.data){if(o.overlay)for(let e of o.overlay)n.push({from:e.from+t,to:e.to+t});else n.push({from:t,to:t+e.length});return}if(o.overlay){let e=n.length;if(r(o.tree,o.overlay[0].from+t),n.length>e)return}}for(let n=0;ne.isTop?t:void 0))]}),e.name)}configure(e,t){return new m(this.data,this.parser.configure(e),t||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function p(e){let t=e.field(h.state,!1);return t?t.tree:i.mp.empty}class g{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=this.cursorPos?this.doc.sliceString(e,t):this.string.slice(e-n,t-n)}}let b=null;class v{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;this.parser=e,this.state=t,this.fragments=n,this.tree=r,this.treeLen=i,this.viewport=o,this.skipped=a,this.scheduleOn=s,this.parse=null,this.tempSkipped=[]}static create(e,t,n){return new v(e,t,[],i.mp.empty,0,n,[],null)}startParse(){return this.parser.startParse(new g(this.state.doc),this.fragments)}work(e,t){return null!=t&&t>=this.state.doc.length&&(t=void 0),this.tree!=i.mp.empty&&this.isDone(null!==t&&void 0!==t?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.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(i.i9.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let t=b;b=this;try{return e()}finally{b=t}}withoutTempSkipped(e){for(let t;t=this.tempSkipped.pop();)e=y(e,t.from,t.to);return e}changes(e,t){let{fragments:n,tree:r,treeLen:o,viewport:a,skipped:s}=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=i.i9.applyChanges(n,t),r=i.mp.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){s=[];for(let t of this.skipped){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);ne.from&&(this.fragments=y(this.fragments,t,r),this.skipped.splice(n--,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 i._b{createParse(t,n,r){let o=r[0].from,a=r[r.length-1].to;return{parsedPos:o,advance(){let t=b;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 i.mp(i.Jq.none,[],[],a-o)},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 b}}function y(e,t,n){return i.i9.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class k{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 k(t)}static init(e){let t=Math.min(3e3,e.doc.length),n=v.create(e.facet(S).parser,e,{from:0,to:t});return n.work(20,t)||n.takeTree(),new k(n)}}h.state=o.QQ.define({create:k.init,update(e,t){for(let n of t.effects)if(n.is(h.setState))return n.value;return t.startState.facet(S)!=t.state.facet(S)?k.init(t.state):e.apply(t)}});let w=e=>{let t=setTimeout((()=>e()),500);return()=>clearTimeout(t)};"undefined"!=typeof requestIdleCallback&&(w=e=>{let t=-1,n=setTimeout((()=>{t=requestIdleCallback(e,{timeout:400})}),100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const O="undefined"!=typeof navigator&&(null===(r=navigator.scheduling)||void 0===r?void 0:r.isInputPending)?()=>navigator.scheduling.isInputPending():null,x=a.lg.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(h.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(h.state);t.tree==t.context.tree&&t.context.isDone(e.doc.length)||(this.working=w(this.work))}work(e){this.working=null;let t=Date.now();if(this.chunkEndr+1e3,s=i.context.work((()=>O&&O()||Date.now()>o),r+(a?0:1e5));this.chunkBudget-=Date.now()-t,(s||this.chunkBudget<=0)&&(i.context.takeTree(),this.view.dispatch({effects:h.setState.of(new k(i.context))})),this.chunkBudget>0&&(!s||a)&&this.scheduleWork(),this.checkAsyncSchedule(i.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then((()=>this.scheduleWork())).catch((e=>(0,a.OO)(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()}}}),S=o.r$.define({combine:e=>e.length?e[0]:null,enables:e=>[h.state,x,a.tk.contentAttributes.compute([e],(t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}}))]});class _{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.language=e,this.support=t,this.extension=[e,t]}}class T{constructor(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:void 0;this.name=e,this.alias=t,this.extensions=n,this.filename=r,this.loadFunc=i,this.support=o,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((e=>this.support=e),(e=>{throw this.loading=null,e})))}static of(e){let{load:t,support:n}=e;if(!t){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");t=()=>Promise.resolve(n)}return new T(e.name,(e.alias||[]).concat(e.name).map((e=>e.toLowerCase())),e.extensions||[],e.filename,t,n)}static matchFilename(e,t){for(let r of e)if(r.filename&&r.filename.test(t))return r;let n=/\.([^.]+)$/.exec(t);if(n)for(let r of e)if(r.extensions.indexOf(n[1])>-1)return r;return null}static matchLanguageName(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];t=t.toLowerCase();for(let r of e)if(r.alias.some((e=>e==t)))return r;if(n)for(let r of e)for(let e of r.alias){let n=t.indexOf(e);if(n>-1&&(e.length>2||!/\w/.test(t[n-1])&&!/\w/.test(t[n+e.length])))return r}return null}}const E=o.r$.define(),$=o.r$.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 C(e){let t=e.facet($);return 9==t.charCodeAt(0)?e.tabSize*t.length:t.length}function A(e,t){let n="",r=e.tabSize,i=e.facet($)[0];if("\t"==i){for(;t>=r;)n+="\t",t-=r;i=" "}for(let o=0;o=t?function(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let e=[];for(let t=i;t!=r.node;t=t.parent)e.push(t);for(let t=e.length-1;t>=0;t--)r={node:e[t],next:r}}return D(r,e,n)}(e,n,t):null}class R{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.state=e,this.options=t,this.unit=C(e)}lineAt(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.state.doc.lineAt(e),{simulateBreak:r,simulateDoubleBreak:i}=this.options;return null!=r&&r>=n.from&&r<=n.to?i&&r==e?{text:"",from:e}:(t<0?r1&&void 0!==arguments[1]?arguments[1]:1;if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:n,from:r}=this.lineAt(e,t);return n.slice(e-r,Math.min(n.length,e+100-r))}column(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:n,from:r}=this.lineAt(e,t),i=this.countColumn(n,e-r),o=this.options.overrideIndentation?this.options.overrideIndentation(r):-1;return o>-1&&(i+=o-this.countColumn(n,n.search(/\S|$/))),i}countColumn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.length;return(0,o.IS)(e,this.state.tabSize,t)}lineIndent(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,{text:n,from:r}=this.lineAt(e,t),i=this.options.overrideIndentation;if(i){let e=i(r);if(e>-1)return e}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const I=new i.md;function D(e,t,n){for(let r=e;r;r=r.next){let e=z(r.node);if(e)return e(L.create(t,n,r))}return 0}function z(e){let t=e.type.prop(I);if(t)return t;let n,r=e.firstChild;if(r&&(n=r.type.prop(i.md.closedBy))){let t=e.lastChild,r=t&&n.indexOf(t.name)>-1;return e=>q(e,!0,1,void 0,r&&!function(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}(e)?t.from:void 0)}return null==e.parent?N:null}function N(){return 0}class L extends R{constructor(e,t,n){super(e.state,e.options),this.base=e,this.pos=t,this.context=n}get node(){return this.context.node}static create(e,t,n){return new L(e,t,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let t=this.state.doc.lineAt(e.from);for(;;){let n=e.resolve(t.from);for(;n.parent&&n.parent.from==n.from;)n=n.parent;if(M(n,e))break;t=this.state.doc.lineAt(n.from)}return this.lineIndent(t.from)}continue(){return D(this.context.next,this.base,this.pos)}}function M(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Q(e){let{closing:t,align:n=!0,units:r=1}=e;return e=>q(e,n,r,t)}function q(e,t,n,r,i){let o=e.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==e.pos+a,l=t?function(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,o=e.state.doc.lineAt(n.from),a=null==i||i<=o.from?o.to:Math.min(o.to,i);for(let s=n.to;;){let e=t.childAfter(s);if(!e||e==r)return null;if(!e.type.isSkipped)return e.frome.baseIndent;function B(){let{except:e,units:t=1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const U=200;function F(){return o.yy.transactionFilter.of((e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+U)return e;let o=n.sliceString(i.from,r);if(!t.some((e=>e.test(o))))return e;let{state:a}=e,s=-1,l=[];for(let{head:c}of a.selection.ranges){let e=a.doc.lineAt(c);if(e.from==s)continue;s=e.from;let t=P(a,e.from);if(null==t)continue;let n=/^\s*/.exec(e.text)[0],r=A(a,t);n!=r&&l.push({from:e.from,to:e.from+n.length,insert:r})}return l.length?[e,{changes:l,sequential:!0}]:e}))}const j=o.r$.define(),V=new i.md;function G(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(i&&a.from=t&&r.to>n&&(i=r)}}return i}(e,t,n)}function H(e,t){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);return n>=r?void 0:{from:n,to:r}}const Y=o.Py.define({map:H}),J=o.Py.define({map:H});function K(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some((e=>e.from<=n&&e.to>=n))||t.push(e.lineBlockAt(n));return t}const ee=o.QQ.define({create:()=>a.p.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(Y)&&!ne(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(se),i=r?a.p.replace({widget:new de(r(t.state,n.value))}):ue;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(J)&&(e=e.update({filter:(e,t)=>n.value.from!=e||n.value.to!=t,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,((e,t)=>{er&&(n=!0)})),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(e,t)=>t<=r||e>=r}))}return e},provide:e=>a.tk.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,((e,t)=>{n.push(e,t)})),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>e)&&(i={from:e,to:t})})),i}function ne(e,t,n){let r=!1;return e.between(t,t,((e,i)=>{e==t&&i==n&&(r=!0)})),r}function re(e,t){return e.field(ee,!1)?t:t.concat(o.Py.appendConfig.of(le()))}function ie(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return a.tk.announce.of("".concat(e.state.phrase(n?"Folded lines":"Unfolded lines")," ").concat(r," ").concat(e.state.phrase("to")," ").concat(i,"."))}const oe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:e=>{for(let t of K(e)){let n=Z(e.state,t.from,t.to);if(n)return e.dispatch({effects:re(e.state,[Y.of(n),ie(e,n)])}),!0}return!1}},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:e=>{if(!e.state.field(ee,!1))return!1;let t=[];for(let n of K(e)){let r=te(e.state,n.from,n.to);r&&t.push(J.of(r),ie(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0}},{key:"Ctrl-Alt-[",run:e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(ee,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,((e,t)=>{n.push(J.of({from:e,to:t}))})),e.dispatch({effects:n}),!0}}],ae={placeholderDOM:null,preparePlaceholder:null,placeholderText:"\u2026"},se=o.r$.define({combine:e=>(0,o.BO)(e,ae)});function le(e){let t=[ee,pe];return e&&t.push(se.of(e)),t}function ce(e,t){let{state:n}=e,r=n.facet(se),i=t=>{let n=e.lineBlockAt(e.posAtDOM(t.target)),r=te(e.state,n.from,n.to);r&&e.dispatch({effects:J.of(r)}),t.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const ue=a.p.replace({widget:new class extends a.l9{toDOM(e){return ce(e,null)}}});class de extends a.l9{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return ce(e,this.value)}}const he={openText:"\u2304",closedText:"\u203a",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class fe extends a.SJ{constructor(e,t){super(),this.config=e,this.open=t}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let t=document.createElement("span");return t.textContent=this.open?this.config.openText:this.config.closedText,t.title=e.state.phrase(this.open?"Fold line":"Unfold line"),t}}function me(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign(Object.assign({},he),e),n=new fe(t,!0),r=new fe(t,!1),i=a.lg.fromClass(class{constructor(e){this.from=e.viewport.from,this.markers=this.buildMarkers(e)}update(e){(e.docChanged||e.viewportChanged||e.startState.facet(S)!=e.state.facet(S)||e.startState.field(ee,!1)!=e.state.field(ee,!1)||p(e.startState)!=p(e.state)||t.foldingChanged(e))&&(this.markers=this.buildMarkers(e.view))}buildMarkers(e){let t=new o.f_;for(let i of e.viewportLineBlocks){let o=te(e.state,i.from,i.to)?r:Z(e.state,i.from,i.to)?n:null;o&&t.add(i.from,i.from,o)}return t.finish()}}),{domEventHandlers:s}=t;return[i,(0,a.v5)({class:"cm-foldGutter",markers(e){var t;return(null===(t=e.plugin(i))||void 0===t?void 0:t.markers)||o.Xs.empty},initialSpacer:()=>new fe(t,!1),domEventHandlers:Object.assign(Object.assign({},s),{click:(e,t,n)=>{if(s.click&&s.click(e,t,n))return!0;let r=te(e.state,t.from,t.to);if(r)return e.dispatch({effects:J.of(r)}),!0;let i=Z(e.state,t.from,t.to);return!!i&&(e.dispatch({effects:Y.of(i)}),!0)}})}),le()]}const pe=a.tk.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class ge{constructor(e,t){let n;function r(e){let t=l.V.newName();return(n||(n=Object.create(null)))["."+t]=e,t}this.specs=e;const i="string"==typeof t.all?t.all:t.all?r(t.all):void 0,o=t.scope;this.scope=o instanceof h?e=>e.prop(c)==o.data:o?e=>e==o:void 0,this.style=(0,s.QR)(e.map((e=>({tag:e.tag,class:e.class||r(Object.assign({},e,{tag:null}))}))),{all:i}).style,this.module=n?new l.V(n):null,this.themeType=t.themeType}static define(e,t){return new ge(e,t||{})}}const be=o.r$.define(),ve=o.r$.define({combine:e=>e.length?[e[0]]:null});function ye(e){let t=e.facet(be);return t.length?t:e.facet(ve)}function ke(e,t){let n,r=[xe];return e instanceof ge&&(e.module&&r.push(a.tk.styleModule.of(e.module)),n=e.themeType),(null===t||void 0===t?void 0:t.fallback)?r.push(ve.of(e)):n?r.push(be.computeN([a.tk.darkTheme],(t=>t.facet(a.tk.darkTheme)==("dark"==n)?[e]:[]))):r.push(be.of(e)),r}function we(e,t,n){let r=ye(e),i=null;if(r)for(let o of r)if(!o.scope||n&&o.scope(n)){let e=o.style(t);e&&(i=i?i+" "+e:e)}return i}class Oe{constructor(e){this.markCache=Object.create(null),this.tree=p(e.state),this.decorations=this.buildDeco(e,ye(e.state))}update(e){let t=p(e.state),n=ye(e.state),r=n!=ye(e.startState);t.length{n.add(e,t,this.markCache[r]||(this.markCache[r]=a.p.mark({class:r})))}),r,i);return n.finish()}}const xe=o.Wl.high(a.lg.fromClass(Oe,{decorations:e=>e.decorations})),Se=ge.define([{tag:s.pJ.meta,color:"#404740"},{tag:s.pJ.link,textDecoration:"underline"},{tag:s.pJ.heading,textDecoration:"underline",fontWeight:"bold"},{tag:s.pJ.emphasis,fontStyle:"italic"},{tag:s.pJ.strong,fontWeight:"bold"},{tag:s.pJ.strikethrough,textDecoration:"line-through"},{tag:s.pJ.keyword,color:"#708"},{tag:[s.pJ.atom,s.pJ.bool,s.pJ.url,s.pJ.contentSeparator,s.pJ.labelName],color:"#219"},{tag:[s.pJ.literal,s.pJ.inserted],color:"#164"},{tag:[s.pJ.string,s.pJ.deleted],color:"#a11"},{tag:[s.pJ.regexp,s.pJ.escape,s.pJ.special(s.pJ.string)],color:"#e40"},{tag:s.pJ.definition(s.pJ.variableName),color:"#00f"},{tag:s.pJ.local(s.pJ.variableName),color:"#30a"},{tag:[s.pJ.typeName,s.pJ.namespace],color:"#085"},{tag:s.pJ.className,color:"#167"},{tag:[s.pJ.special(s.pJ.variableName),s.pJ.macroName],color:"#256"},{tag:s.pJ.definition(s.pJ.propertyName),color:"#00c"},{tag:s.pJ.comment,color:"#940"},{tag:s.pJ.invalid,color:"#f00"}]),_e=a.tk.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Te=1e4,Ee="()[]{}",$e=o.r$.define({combine:e=>(0,o.BO)(e,{afterCursor:!0,brackets:Ee,maxScanDistance:Te,renderMatch:Pe})}),Ce=a.p.mark({class:"cm-matchingBracket"}),Ae=a.p.mark({class:"cm-nonmatchingBracket"});function Pe(e){let t=[],n=e.matched?Ce:Ae;return t.push(n.range(e.start.from,e.start.to)),e.end&&t.push(n.range(e.end.from,e.end.to)),t}const Re=[o.QQ.define({create:()=>a.p.none,update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet($e);for(let i of t.state.selection.ranges){if(!i.empty)continue;let e=Le(t.state,i.head,-1,r)||i.head>0&&Le(t.state,i.head-1,1,r)||r.afterCursor&&(Le(t.state,i.head,1,r)||i.heada.tk.decorations.from(e)}),_e];function Ie(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[$e.of(e),Re]}const De=new i.md;function ze(e,t,n){let r=e.prop(t<0?i.md.openedBy:i.md.closedBy);if(r)return r;if(1==e.name.length){let r=n.indexOf(e.name);if(r>-1&&r%2==(t<0?1:0))return[n[r+t]]}return null}function Ne(e){let t=e.type.prop(De);return t?t(e.node):e}function Le(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.maxScanDistance||Te,o=r.brackets||Ee,a=p(e),s=a.resolveInner(t,n);for(let l=s;l;l=l.parent){let r=ze(l.type,n,o);if(r&&l.from0?t>=i.from&&ti.from&&t<=i.to))return Me(e,t,n,l,i,r,o)}}return function(e,t,n,r,i,o,a){let s=n<0?e.sliceDoc(t-1,t):e.sliceDoc(t,t+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let c={from:n<0?t-1:t,to:n>0?t+1:t},u=e.doc.iterRange(t,n>0?e.doc.length:0),d=0;for(let h=0;!u.next().done&&h<=o;){let e=u.value;n<0&&(h+=e.length);let o=t+h*n;for(let t=n>0?0:e.length-1,s=n>0?e.length:-1;t!=s;t+=n){let s=a.indexOf(e[t]);if(!(s<0||r.resolveInner(o+t,1).type!=i))if(s%2==0==n>0)d++;else{if(1==d)return{start:c,end:{from:o+t,to:o+t+1},matched:s>>1==l>>1};d--}}n>0&&(h+=e.length)}return u.done?{start:c,matched:!1}:null}(e,t,n,a,s.type,i,o)}function Me(e,t,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},c=0,u=null===s||void 0===s?void 0:s.cursor();if(u&&(n<0?u.childBefore(r.from):u.childAfter(r.to)))do{if(n<0?u.to<=r.from:u.from>=r.to){if(0==c&&o.indexOf(u.type.name)>-1&&u.from3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);let o=i;for(let a=r;a=this.string.length}sol(){return 0==this.pos}peek(){return this.string.charAt(this.pos)||void 0}next(){if(this.post}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.lastColumnPosn?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 We(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 Be=new WeakMap;class Ue extends h{constructor(e){let t,n=u(e.languageData),r={name:(o=e).name||"",token:o.token,blankLine:o.blankLine||(()=>{}),startState:o.startState||(()=>!0),copyState:o.copyState||We,indent:o.indent||(()=>null),languageData:o.languageData||{},tokenTable:o.tokenTable||Xe};var o;super(n,new class extends i._b{createParse(e,n,r){return new Ve(t,e,n,r)}},[E.of(((e,t)=>this.getIndent(e,t)))],e.name),this.topNode=function(e){let t=i.Jq.define({id:Ze.length,name:"Document",props:[c.add((()=>e))],top:!0});return Ze.push(t),t}(n),t=this,this.streamParser=r,this.stateAfter=new i.md({perNode:!0}),this.tokenTable=e.tokenTable?new Ke(r.tokenTable):et}static define(e){return new Ue(e)}getIndent(e,t){let n,r=p(e.state),i=r.resolve(t);for(;i&&i.type!=this.topNode;)i=i.parent;if(!i)return null;let{overrideIndentation:o}=e.options;o&&(n=Be.get(e.state),null!=n&&n1e4)return null;for(;a=r&&n+t.length<=o&&t.prop(e.stateAfter);if(a)return{state:e.streamParser.copyState(a),pos:n+t.length};for(let s=t.children.length-1;s>=0;s--){let a=t.children[s],l=n+t.positions[s],c=a instanceof i.mp&&l=t.length)return t;o||t.type!=e.topNode||(o=!0);for(let a=t.children.length-1;a>=0;a--){let s,l=t.positions[a],c=t.children[a];if(ln&&Fe(e,i.tree,0-i.offset,n,o);if(a&&(t=je(e,i.tree,n+i.offset,a.pos+i.offset,!1)))return{state:a.state,tree:t}}return{state:e.streamParser.startState(r?C(r):4),tree:i.mp.empty}}(e,n,a,null===o||void 0===o?void 0:o.state);this.state=s,this.parsedPos=this.chunkStart=a+l.length;for(let i=0;i=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 r=this.rangeIndex;;){let e=this.ranges[r].to;if(e>=n)break;if(t=t.slice(0,e-(n-t.length)),r++,r==this.ranges.length)break;let i=this.ranges[r].from,o=this.lineAfter(i);t+=o,n=i+o.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].to1){t+=i=this.skipGapsTo(t,i,1);let e=this.chunk.length;n+=i=this.skipGapsTo(n,i,-1),r+=this.chunk.length-e}return this.chunk.push(e,t,n,r),i}parseLine(e){let{line:t,end:n}=this.nextLine(),r=0,{streamParser:i}=this.lang,o=new qe(t,e?e.state.tabSize:4,e?C(e.state):2);if(o.eol())i.blankLine(this.state,o.indentUnit);else for(;!o.eol();){let e=Ge(i.token,o,this.state);if(e&&(r=this.emitToken(this.lang.tokenTable.resolve(e),this.parsedPos+o.start,this.parsedPos+o.pos,4,r)),o.start>1e4)break}this.parsedPos=n,this.moveRangeIndex(),this.parsedPost.start)return r}throw new Error("Stream parser failed to advance stream.")}const Xe=Object.create(null),Ze=[i.Jq.none],He=new i.Lj(Ze),Ye=[],Je=Object.create(null);for(let[rt,it]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"]])Je[rt]=nt(Xe,it);class Ke{constructor(e){this.extra=e,this.table=Object.assign(Object.create(null),Je)}resolve(e){return e?this.table[e]||(this.table[e]=nt(this.extra,e)):0}}const et=new Ke(Xe);function tt(e,t){Ye.indexOf(e)>-1||(Ye.push(e),console.warn(t))}function nt(e,t){let n=[];for(let i of t.split(" ")){let t=[];for(let n of i.split(".")){let r=e[n]||s.pJ[n];r?"function"==typeof r?t.length?t=t.map(r):tt(n,"Modifier ".concat(n," used at start of tag")):t.length?tt(n,"Tag ".concat(n," used as modifier")):t=Array.isArray(r)?r:[r]:tt(n,"Unknown highlighting tag ".concat(n))}for(let e of t)n.push(e)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),o=i.Jq.define({id:Ze.length,name:r,props:[(0,s.Gv)({[r]:n})]});return Ze.push(o),o.id}},34413:(e,t,n)=>{n.r(t),n.d(t,{apl:()=>c});var r={"+":["conjugate","add"],"\u2212":["negate","subtract"],"\xd7":["signOf","multiply"],"\xf7":["reciprocal","divide"],"\u2308":["ceiling","greaterOf"],"\u230a":["floor","lesserOf"],"\u2223":["absolute","residue"],"\u2373":["indexGenerate","indexOf"],"?":["roll","deal"],"\u22c6":["exponentiate","toThePowerOf"],"\u235f":["naturalLog","logToTheBase"],"\u25cb":["piTimes","circularFuncs"],"!":["factorial","binomial"],"\u2339":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"\u2264":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"\u2265":[null,"greaterThanOrEqual"],"\u2260":[null,"notEqual"],"\u2261":["depth","match"],"\u2262":[null,"notMatch"],"\u2208":["enlist","membership"],"\u2377":[null,"find"],"\u222a":["unique","union"],"\u2229":[null,"intersection"],"\u223c":["not","without"],"\u2228":[null,"or"],"\u2227":[null,"and"],"\u2371":[null,"nor"],"\u2372":[null,"nand"],"\u2374":["shapeOf","reshape"],",":["ravel","catenate"],"\u236a":[null,"firstAxisCatenate"],"\u233d":["reverse","rotate"],"\u2296":["axis1Reverse","axis1Rotate"],"\u2349":["transpose",null],"\u2191":["first","take"],"\u2193":[null,"drop"],"\u2282":["enclose","partitionWithAxis"],"\u2283":["diclose","pick"],"\u2337":[null,"index"],"\u234b":["gradeUp",null],"\u2352":["gradeDown",null],"\u22a4":["encode",null],"\u22a5":["decode",null],"\u2355":["format","formatByExample"],"\u234e":["execute",null],"\u22a3":["stop","left"],"\u22a2":["pass","right"]},i=/[\.\/\u233f\u2340\xa8\u2363]/,o=/\u236c/,a=/[\+\u2212\xd7\xf7\u2308\u230a\u2223\u2373\?\u22c6\u235f\u25cb!\u2339<\u2264=>\u2265\u2260\u2261\u2262\u2208\u2377\u222a\u2229\u223c\u2228\u2227\u2371\u2372\u2374,\u236a\u233d\u2296\u2349\u2191\u2193\u2282\u2283\u2337\u234b\u2352\u22a4\u22a5\u2355\u234e\u22a3\u22a2]/,s=/\u2190/,l=/[\u235d#].*$/;const c={name:"apl",startState:function(){return{prev:!1,func:!1,op:!1,string:!1,escape:!1}},token:function(e,t){var n;return e.eatSpace()?null:'"'===(n=e.next())||"'"===n?(e.eatWhile(function(e){var t;return t=!1,function(n){return t=n,n!==e||"\\"===t}}(n)),e.next(),t.prev=!0,"string"):/[\[{\(]/.test(n)?(t.prev=!1,null):/[\]}\)]/.test(n)?(t.prev=!0,null):o.test(n)?(t.prev=!1,"atom"):/[\xaf\d]/.test(n)?(t.func?(t.func=!1,t.prev=!1):t.prev=!0,e.eatWhile(/[\w\.]/),"number"):i.test(n)||s.test(n)?"operator":a.test(n)?(t.func=!0,t.prev=!1,r[n]?"variableName.function.standard":"variableName.function"):l.test(n)?(e.skipToEnd(),"comment"):"\u2218"===n&&"."===e.peek()?(e.next(),"variableName.function"):(e.eatWhile(/[\w\$_]/),t.prev=!0,"keyword")}}},74588:(e,t,n)=>{function r(e){var t=e.match(/^\s*\S/);return e.skipToEnd(),t?"error":null}n.r(t),n.d(t,{asciiArmor:()=>i});const i={name:"asciiarmor",token:function(e,t){var n;if("top"==t.state)return e.sol()&&(n=e.match(/^-----BEGIN (.*)?-----\s*$/))?(t.state="headers",t.type=n[1],"tag"):r(e);if("headers"==t.state){if(e.sol()&&e.match(/^\w+:/))return t.state="header","atom";var i=r(e);return i&&(t.state="body"),i}return"header"==t.state?(e.skipToEnd(),t.state="headers","string"):"body"==t.state?e.sol()&&(n=e.match(/^-----END (.*)?-----\s*$/))?n[1]!=t.type?"error":(t.state="end","tag"):e.eatWhile(/[A-Za-z0-9+\/=]/)?null:(e.next(),"error"):"end"==t.state?r(e):void 0},blankLine:function(e){"headers"==e.state&&(e.state="body")},startState:function(){return{state:"top",type:null}}}},6557:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;ro});const i={keywords:r("DEFINITIONS OBJECTS IF DERIVED INFORMATION ACTION REPLY ANY NAMED CHARACTERIZED BEHAVIOUR REGISTERED WITH AS IDENTIFIED CONSTRAINED BY PRESENT BEGIN IMPORTS FROM UNITS SYNTAX MIN-ACCESS MAX-ACCESS MINACCESS MAXACCESS REVISION STATUS DESCRIPTION SEQUENCE SET COMPONENTS OF CHOICE DistinguishedName ENUMERATED SIZE MODULE END INDEX AUGMENTS EXTENSIBILITY IMPLIED EXPORTS"),cmipVerbs:r("ACTIONS ADD GET NOTIFICATIONS REPLACE REMOVE"),compareTypes:r("OPTIONAL DEFAULT MANAGED MODULE-TYPE MODULE_IDENTITY MODULE-COMPLIANCE OBJECT-TYPE OBJECT-IDENTITY OBJECT-COMPLIANCE MODE CONFIRMED CONDITIONAL SUBORDINATE SUPERIOR CLASS TRUE FALSE NULL TEXTUAL-CONVENTION"),status:r("current deprecated mandatory obsolete"),tags:r("APPLICATION AUTOMATIC EXPLICIT IMPLICIT PRIVATE TAGS UNIVERSAL"),storage:r("BOOLEAN INTEGER OBJECT IDENTIFIER BIT OCTET STRING UTCTime InterfaceIndex IANAifType CMIP-Attribute REAL PACKAGE PACKAGES IpAddress PhysAddress NetworkAddress BITS BMPString TimeStamp TimeTicks TruthValue RowStatus DisplayString GeneralString GraphicString IA5String NumericString PrintableString SnmpAdminString TeletexString UTF8String VideotexString VisibleString StringStore ISO646String T61String UniversalString Unsigned32 Integer32 Gauge Gauge32 Counter Counter32 Counter64"),modifier:r("ATTRIBUTE ATTRIBUTES MANDATORY-GROUP MANDATORY-GROUPS GROUP GROUPS ELEMENTS EQUALITY ORDERING SUBSTRINGS DEFINED"),accessTypes:r("not-accessible accessible-for-notify read-only read-create read-write"),multiLineStrings:!0};function o(e){var t,n=e.keywords||i.keywords,r=e.cmipVerbs||i.cmipVerbs,o=e.compareTypes||i.compareTypes,a=e.status||i.status,s=e.tags||i.tags,l=e.storage||i.storage,c=e.modifier||i.modifier,u=e.accessTypes||i.accessTypes,d=e.multiLineStrings||i.multiLineStrings,h=!1!==e.indentStatements,f=/[\|\^]/;function m(e,i){var h,m=e.next();if('"'==m||"'"==m)return i.tokenize=(h=m,function(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if(n==h&&!r){var o=e.peek();o&&("b"!=(o=o.toLowerCase())&&"h"!=o&&"o"!=o||e.next()),i=!0;break}r=!r&&"\\"==n}return(i||!r&&!d)&&(t.tokenize=null),"string"}),i.tokenize(e,i);if(/[\[\]\(\){}:=,;]/.test(m))return t=m,"punctuation";if("-"==m&&e.eat("-"))return e.skipToEnd(),"comment";if(/\d/.test(m))return e.eatWhile(/[\w\.]/),"number";if(f.test(m))return e.eatWhile(f),"operator";e.eatWhile(/[\w\-]/);var p=e.current();return n.propertyIsEnumerable(p)?"keyword":r.propertyIsEnumerable(p)?"variableName":o.propertyIsEnumerable(p)?"atom":a.propertyIsEnumerable(p)?"comment":s.propertyIsEnumerable(p)?"typeName":l.propertyIsEnumerable(p)||c.propertyIsEnumerable(p)||u.propertyIsEnumerable(p)?"modifier":"variableName"}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function g(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new p(r,t,n,null,e.context)}function b(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}return{name:"asn1",startState:function(){return{tokenize:null,context:new p(-2,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,n){var r=n.context;if(e.sol()&&(null==r.align&&(r.align=!1),n.indented=e.indentation(),n.startOfLine=!0),e.eatSpace())return null;t=null;var i=(n.tokenize||m)(e,n);if("comment"==i)return i;if(null==r.align&&(r.align=!0),";"!=t&&":"!=t&&","!=t||"statement"!=r.type)if("{"==t)g(n,e.column(),"}");else if("["==t)g(n,e.column(),"]");else if("("==t)g(n,e.column(),")");else if("}"==t){for(;"statement"==r.type;)r=b(n);for("}"==r.type&&(r=b(n));"statement"==r.type;)r=b(n)}else t==r.type?b(n):h&&(("}"==r.type||"top"==r.type)&&";"!=t||"statement"==r.type&&"newstatement"==t)&&g(n,e.column(),"statement");else b(n);return n.startOfLine=!1,i},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"--"}}}}},12795:(e,t,n)=>{n.r(t),n.d(t,{asterisk:()=>a});var r=["exten","same","include","ignorepat","switch"],i=["#include","#exec"],o=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];const a={name:"asterisk",startState:function(){return{blockComment:!1,extenStart:!1,extenSame:!1,extenInclude:!1,extenExten:!1,extenPriority:!1,extenApplication:!1}},token:function(e,t){var n="";return e.eatSpace()?null:t.extenStart?(e.eatWhile(/[^\s]/),n=e.current(),/^=>?$/.test(n)?(t.extenExten=!0,t.extenStart=!1,"strong"):(t.extenStart=!1,e.skipToEnd(),"error")):t.extenExten?(t.extenExten=!1,t.extenPriority=!0,e.eatWhile(/[^,]/),t.extenInclude&&(e.skipToEnd(),t.extenPriority=!1,t.extenInclude=!1),t.extenSame&&(t.extenPriority=!1,t.extenSame=!1,t.extenApplication=!0),"tag"):t.extenPriority?(t.extenPriority=!1,t.extenApplication=!0,e.next(),t.extenSame?null:(e.eatWhile(/[^,]/),"number")):t.extenApplication?(e.eatWhile(/,/),","===(n=e.current())?null:(e.eatWhile(/\w/),n=e.current().toLowerCase(),t.extenApplication=!1,-1!==o.indexOf(n)?"def":null)):function(e,t){var n="",o=e.next();if(t.blockComment)return"-"==o&&e.match("-;",!0)?t.blockComment=!1:e.skipTo("--;")?(e.next(),e.next(),e.next(),t.blockComment=!1):e.skipToEnd(),"comment";if(";"==o)return e.match("--",!0)&&!e.match("-",!1)?(t.blockComment=!0,"comment"):(e.skipToEnd(),"comment");if("["==o)return e.skipTo("]"),e.eat("]"),"header";if('"'==o)return e.skipTo('"'),"string";if("'"==o)return e.skipTo("'"),"string.special";if("#"==o&&(e.eatWhile(/\w/),n=e.current(),-1!==i.indexOf(n)))return e.skipToEnd(),"strong";if("$"==o&&"{"==e.peek())return e.skipTo("}"),e.eat("}"),"variableName.special";if(e.eatWhile(/\w/),n=e.current(),-1!==r.indexOf(n)){switch(t.extenStart=!0,n){case"same":t.extenSame=!0;break;case"include":case"switch":case"ignorepat":t.extenInclude=!0}return"atom"}}(e,t)},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}}},5462:(e,t,n)=>{n.r(t),n.d(t,{brainfuck:()=>i});var r="><+-.,[]".split("");const i={name:"brainfuck",startState:function(){return{commentLine:!1,left:0,right:0,commentLoop:!1}},token:function(e,t){if(e.eatSpace())return null;e.sol()&&(t.commentLine=!1);var n=e.next().toString();return-1===r.indexOf(n)?(t.commentLine=!0,e.eol()&&(t.commentLine=!1),"comment"):!0===t.commentLine?(e.eol()&&(t.commentLine=!1),"comment"):"]"===n||"["===n?("["===n?t.left++:t.right++,"bracket"):"+"===n||"-"===n?"keyword":"<"===n||">"===n?"atom":"."===n||","===n?"def":void(e.eol()&&(t.commentLine=!1))}}},80996:(e,t,n)=>{function r(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=i,this.prev=o}function i(e,t,n,i){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=n&&(o=e.context.indented),e.context=new r(o,t,n,i,null,e.context)}function o(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function a(e,t,n){return"variable"==t.prevToken||"type"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function s(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function l(e){var t,n,l=e.statementIndentUnit,c=e.dontAlignCalls,d=e.keywords||{},h=e.types||{},f=e.builtin||{},m=e.blockKeywords||{},p=e.defKeywords||{},g=e.atoms||{},b=e.hooks||{},v=e.multiLineStrings,y=!1!==e.indentStatements,k=!1!==e.indentSwitch,w=e.namespaceSeparator,O=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,x=e.numberStart||/[\d\.]/,S=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,_=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,T=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/,E=e.isReservedIdentifier||!1;function $(e,r){var i,o=e.next();if(b[o]){var a=b[o](e,r);if(!1!==a)return a}if('"'==o||"'"==o)return r.tokenize=(i=o,function(e,t){for(var n,r=!1,o=!1;null!=(n=e.next());){if(n==i&&!r){o=!0;break}r=!r&&"\\"==n}return(o||!r&&!v)&&(t.tokenize=null),"string"}),r.tokenize(e,r);if(x.test(o)){if(e.backUp(1),e.match(S))return"number";e.next()}if(O.test(o))return t=o,null;if("/"==o){if(e.eat("*"))return r.tokenize=C,C(e,r);if(e.eat("/"))return e.skipToEnd(),"comment"}if(_.test(o)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(_););return"operator"}if(e.eatWhile(T),w)for(;e.match(w);)e.eatWhile(T);var s=e.current();return u(d,s)?(u(m,s)&&(t="newstatement"),u(p,s)&&(n=!0),"keyword"):u(h,s)?"type":u(f,s)||E&&E(s)?(u(m,s)&&(t="newstatement"),"builtin"):u(g,s)?"atom":"variable"}function C(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function A(t,n){e.typeFirstDefinitions&&t.eol()&&s(n.context)&&(n.typeAtEndOfLine=a(t,n,t.pos))}return{name:e.name,startState:function(e){return{tokenize:null,context:new r(-e,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(r,l){var c=l.context;if(r.sol()&&(null==c.align&&(c.align=!1),l.indented=r.indentation(),l.startOfLine=!0),r.eatSpace())return A(r,l),null;t=n=null;var u=(l.tokenize||$)(r,l);if("comment"==u||"meta"==u)return u;if(null==c.align&&(c.align=!0),";"==t||":"==t||","==t&&r.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==l.context.type;)o(l);else if("{"==t)i(l,r.column(),"}");else if("["==t)i(l,r.column(),"]");else if("("==t)i(l,r.column(),")");else if("}"==t){for(;"statement"==c.type;)c=o(l);for("}"==c.type&&(c=o(l));"statement"==c.type;)c=o(l)}else t==c.type?o(l):y&&(("}"==c.type||"top"==c.type)&&";"!=t||"statement"==c.type&&"newstatement"==t)&&i(l,r.column(),"statement",r.current());if("variable"==u&&("def"==l.prevToken||e.typeFirstDefinitions&&a(r,l,r.start)&&s(l.context)&&r.match(/^\s*\(/,!1))&&(u="def"),b.token){var d=b.token(r,l,u);void 0!==d&&(u=d)}return"def"==u&&!1===e.styleDefs&&(u="variable"),l.startOfLine=!1,l.prevToken=n?"def":u||t,A(r,l),u},indent:function(t,n,r){if(t.tokenize!=$&&null!=t.tokenize||t.typeAtEndOfLine&&s(t.context))return null;var i=t.context,o=n&&n.charAt(0),a=o==i.type;if("statement"==i.type&&"}"==o&&(i=i.prev),e.dontIndentStatements)for(;"statement"==i.type&&e.dontIndentStatements.test(i.info);)i=i.prev;if(b.indent){var u=b.indent(t,i,n,r.unit);if("number"==typeof u)return u}var d=i.prev&&"switch"==i.prev.info;if(e.allmanIndentation&&/[{(]/.test(o)){for(;"top"!=i.type&&"}"!=i.type;)i=i.prev;return i.indented}return"statement"==i.type?i.indented+("{"==o?0:l||r.unit):!i.align||c&&")"==i.type?")"!=i.type||a?i.indented+(a?0:r.unit)+(a||!d||/^(?:case|default)\b/.test(n)?0:r.unit):i.indented+(l||r.unit):i.column+(a?0:1)},languageData:{indentOnInput:k?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Object.keys(d).concat(Object.keys(h)).concat(Object.keys(f)).concat(Object.keys(g)),...e.languageData}}}function c(e){for(var t={},n=e.split(" "),r=0;rC,ceylon:()=>F,clike:()=>l,cpp:()=>A,csharp:()=>R,dart:()=>H,java:()=>P,kotlin:()=>N,nesC:()=>M,objectiveC:()=>Q,objectiveCpp:()=>q,scala:()=>z,shader:()=>L,squirrel:()=>W});var d="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile inline restrict asm fortran",h="alignas alignof and and_eq audit axiom bitand bitor catch class compl concept constexpr const_cast decltype delete dynamic_cast explicit export final friend import module mutable namespace new noexcept not not_eq operator or or_eq override private protected public reinterpret_cast requires static_assert static_cast template this thread_local throw try typeid typename using virtual xor xor_eq",f="bycopy byref in inout oneway out self super atomic nonatomic retain copy readwrite readonly strong weak assign typeof nullable nonnull null_resettable _cmd @interface @implementation @end @protocol @encode @property @synthesize @dynamic @class @public @package @private @protected @required @optional @try @catch @finally @import @selector @encode @defs @synchronized @autoreleasepool @compatibility_alias @available",m="FOUNDATION_EXPORT FOUNDATION_EXTERN NS_INLINE NS_FORMAT_FUNCTION NS_RETURNS_RETAINEDNS_ERROR_ENUM NS_RETURNS_NOT_RETAINED NS_RETURNS_INNER_POINTER NS_DESIGNATED_INITIALIZER NS_ENUM NS_OPTIONS NS_REQUIRES_NIL_TERMINATION NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_SWIFT_NAME NS_REFINED_FOR_SWIFT",p=c("int long char short double float unsigned signed void bool"),g=c("SEL instancetype id Class Protocol BOOL");function b(e){return u(p,e)||/.+_t$/.test(e)}function v(e){return b(e)||u(g,e)}var y="case do else for if switch while struct enum union",k="struct enum union";function w(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=w;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function O(e,t){return"type"==t.prevToken&&"type"}function x(e){return!(!e||e.length<2)&&("_"==e[0]&&("_"==e[1]||e[1]!==e[1].toLowerCase()))}function S(e){return e.eatWhile(/[\w\.']/),"number"}function _(e,t){if(e.backUp(1),e.match(/^(?:R|u8R|uR|UR|LR)/)){var n=e.match(/^"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=$,$(e,t))}return e.match(/^(?:u8|u|U|L)/)?!!e.match(/^["']/,!1)&&"string":(e.next(),!1)}function T(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function E(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function $(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}const C=l({name:"c",keywords:c(d),types:b,blockKeywords:c(y),defKeywords:c(k),typeFirstDefinitions:!0,atoms:c("NULL true false"),isReservedIdentifier:x,hooks:{"#":w,"*":O}}),A=l({name:"cpp",keywords:c(d+" "+h),types:b,blockKeywords:c(y+" class try catch"),defKeywords:c(k+" class namespace"),typeFirstDefinitions:!0,atoms:c("true false NULL nullptr"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,isReservedIdentifier:x,hooks:{"#":w,"*":O,u:_,U:_,L:_,R:_,0:S,1:S,2:S,3:S,4:S,5:S,6:S,7:S,8:S,9:S,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&T(e.current()))return"def"}},namespaceSeparator:"::"}),P=l({name:"java",keywords:c("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:c("var byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:c("catch class do else finally for if switch try while"),defKeywords:c("class interface enum @interface"),typeFirstDefinitions:!0,atoms:c("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")},'"':function(e,t){return!!e.match(/""$/)&&(t.tokenize=I,t.tokenize(e,t))}}}),R=l({name:"csharp",keywords:c("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in init interface internal is lock namespace new operator out override params private protected public readonly record ref required return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:c("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:c("catch class do else finally for foreach if struct switch try while"),defKeywords:c("class interface namespace record struct var"),typeFirstDefinitions:!0,atoms:c("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=E,E(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}});function I(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function D(e){return function(t,n){for(var r;r=t.next();){if("*"==r&&t.eat("/")){if(1==e){n.tokenize=null;break}return n.tokenize=D(e-1),n.tokenize(t,n)}if("/"==r&&t.eat("*"))return n.tokenize=D(e+1),n.tokenize(t,n)}return"comment"}}const z=l({name:"scala",keywords:c("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:c("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:c("catch class enum do else finally for forSome if match switch try while"),defKeywords:c("class enum def object package trait type val var"),atoms:c("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=I,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"character":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},"=":function(e,t){var n=t.context;return!("}"!=n.type||!n.align||!e.eat(">"))&&(t.context=new r(n.indented,n.column,n.type,n.info,null,n.prev),"operator")},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=D(1),t.tokenize(e,t))}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});const N=l({name:"kotlin",keywords:c("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam"),types:c("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:c("catch class do else finally for if where try while enum"),defKeywords:c("class val var object interface fun"),atoms:c("true false null this"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},"*":function(e,t){return"."==t.prevToken?"variable":"operator"},'"':function(e,t){var n;return t.tokenize=(n=e.match('""'),function(e,t){for(var r,i=!1,o=!1;!e.eol();){if(!n&&!i&&e.match('"')){o=!0;break}if(n&&e.match('"""')){o=!0;break}r=e.next(),!i&&"$"==r&&e.match("{")&&e.skipTo("}"),i=!i&&"\\"==r&&!n}return!o&&n||(t.tokenize=null),"string"}),t.tokenize(e,t)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=D(1),t.tokenize(e,t))},indent:function(e,t,n,r){var i=n&&n.charAt(0);return"}"!=e.prevToken&&")"!=e.prevToken||""!=n?"operator"==e.prevToken&&"}"!=n&&"}"!=e.context.type||"variable"==e.prevToken&&"."==i||("}"==e.prevToken||")"==e.prevToken)&&"."==i?2*r+t.indented:t.align&&"}"==t.type?t.indented+(e.context.type==(n||"").charAt(0)?0:r):void 0:e.indented}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}}),L=l({name:"shader",keywords:c("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:c("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:c("for while do if else struct"),builtin:c("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:c("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":w}}),M=l({name:"nesc",keywords:c(d+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:b,blockKeywords:c(y),atoms:c("null true false"),hooks:{"#":w}}),Q=l({name:"objectivec",keywords:c(d+" "+f),types:v,builtin:c(m),blockKeywords:c(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:c(k+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:c("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":w,"*":O}}),q=l({name:"objectivecpp",keywords:c(d+" "+f+" "+h),types:v,builtin:c(m),blockKeywords:c(y+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:c(k+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:c("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":w,"*":O,u:_,U:_,L:_,R:_,0:S,1:S,2:S,3:S,4:S,5:S,6:S,7:S,8:S,9:S,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&T(e.current()))return"def"}},namespaceSeparator:"::"}),W=l({name:"squirrel",keywords:c("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:b,blockKeywords:c("case catch class else for foreach if switch try while"),defKeywords:c("function local class"),typeFirstDefinitions:!0,atoms:c("true false null"),hooks:{"#":w}});var B=null;function U(e){return function(t,n){for(var r,i=!1,o=!1;!t.eol();){if(!i&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!i&&t.match("``")){B=U(e),o=!0;break}r=t.next(),i="single"==e&&!i&&"\\"==r}return o&&(n.tokenize=null),"string"}}const F=l({name:"ceylon",keywords:c("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:c("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:c("class dynamic function interface module object package value"),builtin:c("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:c("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=U(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!B||!e.match("`"))&&(t.tokenize=B,B=null,t.tokenize(e,t))},"'":function(e){return e.match(/^(\\[^'\s]+|[^\\'])'/)?"string.special":(e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom")},token:function(e,t,n){if(("variable"==n||"type"==n)&&"."==t.prevToken)return"variableName.special"}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function j(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function V(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function G(e,t,n,r){var i=!1;if(t.eat(e)){if(!t.eat(e))return"string";i=!0}function o(t,n){for(var o=!1;!t.eol();){if(!r&&!o&&"$"==t.peek())return j(n),n.tokenize=X,"string";var a=t.next();if(a==e&&!o&&(!i||t.match(e+e))){n.tokenize=null;break}o=!r&&!o&&"\\"==a}return"string"}return n.tokenize=o,o(t,n)}function X(e,t){return e.eat("$"),e.eat("{")?t.tokenize=null:t.tokenize=Z,null}function Z(e,t){return e.eatWhile(/[\w_]/),t.tokenize=V(t),"variable"}const H=l({name:"dart",keywords:c("this super static final const abstract class extends external factory implements mixin get native set typedef with enum throw rethrow assert break case continue default in return new deferred async await covariant try catch finally do else for if switch while import library export part of show hide is as extension on yield late required sealed base interface when inline"),blockKeywords:c("try catch finally do else for if switch while"),builtin:c("void bool num int double dynamic var String Null Never"),atoms:c("true false null"),hooks:{"@":function(e){return e.eatWhile(/[\w\$_\.]/),"meta"},"'":function(e,t){return G("'",e,t,!1)},'"':function(e,t){return G('"',e,t,!1)},r:function(e,t){var n=e.peek();return("'"==n||'"'==n)&&G(e.next(),e,t,!0)},"}":function(e,t){return function(e){return e.interpolationStack?e.interpolationStack.length:0}(t)>0&&(t.tokenize=V(t),null)},"/":function(e,t){return!!e.eat("*")&&(t.tokenize=D(1),t.tokenize(e,t))},token:function(e,t,n){if("variable"==n&&RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g").test(e.current()))return"type"}}})},29018:(e,t,n)=>{n.r(t),n.d(t,{clojure:()=>y});var r=["false","nil","true"],i=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"],o=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"],a=b(r),s=b(i),l=b(o),c=b(["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"]),u=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/,d=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/,h=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/,f=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function m(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(d))return[null,"number"];if(e.match(h))return[null,"string.special"];if(e.eat(/^"/))return(t.tokenize=p)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/))return e.skipToEnd(),["space","comment"];if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(f),r=n&&n[0];return r?"comment"===r&&"("===t.lastToken?(t.tokenize=g)(e,t):v(r,a)||":"===r.charAt(0)?["symbol","atom"]:v(r,s)||v(r,l)?["symbol","keyword"]:"("===t.lastToken?["symbol","builtin"]:["symbol","variable"]:(e.next(),e.eatWhile((function(e){return!v(e,u)})),[null,"error"])}function p(e,t){for(var n,r=!1;n=e.next();){if('"'===n&&!r){t.tokenize=m;break}r=!r&&"\\"===n}return[null,"string"]}function g(e,t){for(var n,r=1;n=e.next();)if(")"===n&&r--,"("===n&&r++,0===r){e.backUp(1),t.tokenize=m;break}return["space","comment"]}function b(e){for(var t={},n=0;n{n.r(t),n.d(t,{cmake:()=>o});var r=/({)?[a-zA-Z0-9_]+(})?/;function i(e,t){for(var n,r,i=!1;!e.eol()&&(n=e.next())!=t.pending;){if("$"===n&&"\\"!=r&&'"'==t.pending){i=!0;break}r=n}return i&&e.backUp(1),n==t.pending?t.continueString=!1:t.continueString=!0,"string"}const o={name:"cmake",startState:function(){var e={inDefinition:!1,inInclude:!1,continueString:!1,pending:!1};return e},token:function(e,t){return e.eatSpace()?null:function(e,t){var n=e.next();return"$"===n?e.match(r)?"variableName.special":"variable":t.continueString?(e.backUp(1),i(e,t)):e.match(/(\s+)?\w+\(/)||e.match(/(\s+)?\w+\ \(/)?(e.backUp(1),"def"):"#"==n?(e.skipToEnd(),"comment"):"'"==n||'"'==n?(t.pending=n,i(e,t)):"("==n||")"==n?"bracket":n.match(/[0-9]/)?"number":(e.eatWhile(/[\w-]/),null)}(e,t)}}},35275:(e,t,n)=>{n.r(t),n.d(t,{cobol:()=>u});var r="string",i="atom";function o(e){for(var t={},n=e.split(" "),r=0;r >= "),c={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};const u={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=6),e.eatSpace())return null;var n=null;if("string"===t.mode){for(var o=!1;null!=(o=e.next());)if(('"'==o||"'"==o)&&!e.match(/['"]/,!1)){t.mode=!1;break}n=r}else{var u=e.next(),d=e.column();if(d>=0&&d<=5)n="def";else if(d>=72&&d<=79)e.skipToEnd(),n="header";else if("*"==u&&6==d)e.skipToEnd(),n="comment";else if('"'==u||"'"==u)t.mode="string",n=r;else if("'"!=u||c.digit_or_colon.test(e.peek()))if("."==u)n="link";else if(function(e,t){return"0"===e&&t.eat(/x/i)?(t.eatWhile(c.hex),!0):("+"!=e&&"-"!=e||!c.digit.test(t.peek())||(t.eat(c.sign),e=t.next()),!!c.digit.test(e)&&(t.eat(e),t.eatWhile(c.digit),"."==t.peek()&&(t.eat("."),t.eatWhile(c.digit)),t.eat(c.exponent)&&(t.eat(c.sign),t.eatWhile(c.digit)),!0))}(u,e))n="number";else{if(e.current().match(c.symbol))for(;d<71&&void 0!==e.eat(c.symbol);)d++;n=s&&s.propertyIsEnumerable(e.current().toUpperCase())?"keyword":l&&l.propertyIsEnumerable(e.current().toUpperCase())?"builtin":a&&a.propertyIsEnumerable(e.current().toUpperCase())?i:null}else n=i}return n},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent}}},14505:(e,t,n)=>{n.r(t),n.d(t,{coffeeScript:()=>k});var r="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var o=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/,a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/,s=/^[_A-Za-z$][_A-Za-z$0-9]*/,l=/^@[_A-Za-z$][_A-Za-z$0-9]*/,c=i(["and","or","not","is","isnt","in","instanceof","typeof"]),u=["for","while","loop","if","unless","else","switch","try","catch","finally","class"],d=i(u.concat(["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"]));u=i(u);var h=/^('{3}|\"{3}|['\"])/,f=/^(\/{3}|\/)/,m=i(["Infinity","NaN","undefined","null","true","false","on","off","yes","no"]);function p(e,t){if(e.sol()){null===t.scope.align&&(t.scope.align=!1);var n=t.scope.offset;if(e.eatSpace()){var i=e.indentation();return i>n&&"coffee"==t.scope.type?"indent":i0&&y(e,t)}if(e.eatSpace())return null;var u=e.peek();if(e.match("####"))return e.skipToEnd(),"comment";if(e.match("###"))return t.tokenize=b,t.tokenize(e,t);if("#"===u)return e.skipToEnd(),"comment";if(e.match(/^-?[0-9\.]/,!1)){var p=!1;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)&&(p=!0),e.match(/^-?\d+\.\d*/)&&(p=!0),e.match(/^-?\.\d+/)&&(p=!0),p)return"."==e.peek()&&e.backUp(1),"number";var v=!1;if(e.match(/^-?0x[0-9a-f]+/i)&&(v=!0),e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)&&(v=!0),e.match(/^-?0(?![\dx])/i)&&(v=!0),v)return"number"}if(e.match(h))return t.tokenize=g(e.current(),!1,"string"),t.tokenize(e,t);if(e.match(f)){if("/"!=e.current()||e.match(/^.*\//,!1))return t.tokenize=g(e.current(),!0,"string.special"),t.tokenize(e,t);e.backUp(1)}return e.match(o)||e.match(c)?"operator":e.match(a)?"punctuation":e.match(m)?"atom":e.match(l)||t.prop&&e.match(s)?"property":e.match(d)?"keyword":e.match(s)?"variable":(e.next(),r)}function g(e,t,n){return function(r,i){for(;!r.eol();)if(r.eatWhile(/[^'"\/\\]/),r.eat("\\")){if(r.next(),t&&r.eol())return n}else{if(r.match(e))return i.tokenize=p,n;r.eat(/['"\/]/)}return t&&(i.tokenize=p),n}}function b(e,t){for(;!e.eol();){if(e.eatWhile(/[^#]/),e.match("###")){t.tokenize=p;break}e.eatWhile("#")}return"comment"}function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"coffee";for(var r=0,i=!1,o=null,a=t.scope;a;a=a.prev)if("coffee"===a.type||"}"==a.type){r=a.offset+e.indentUnit;break}"coffee"!==n?(i=null,o=e.column()+e.current().length):t.scope.align&&(t.scope.align=!1),t.scope={offset:r,type:n,prev:t.scope,align:i,alignOffset:o}}function y(e,t){if(t.scope.prev){if("coffee"===t.scope.type){for(var n=e.indentation(),r=!1,i=t.scope;i;i=i.prev)if(n===i.offset){r=!0;break}if(!r)return!0;for(;t.scope.prev&&t.scope.offset!==n;)t.scope=t.scope.prev;return!1}return t.scope=t.scope.prev,!1}}const k={name:"coffeescript",startState:function(){return{tokenize:p,scope:{offset:0,type:"coffee",prev:null,align:!1},prop:!1,dedent:0}},token:function(e,t){var n=null===t.scope.align&&t.scope;n&&e.sol()&&(n.align=!1);var i=function(e,t){var n=t.tokenize(e,t),i=e.current();"return"===i&&(t.dedent=!0),(("->"===i||"=>"===i)&&e.eol()||"indent"===n)&&v(e,t);var o="[({".indexOf(i);if(-1!==o&&v(e,t,"])}".slice(o,o+1)),u.exec(i)&&v(e,t),"then"==i&&y(e,t),"dedent"===n&&y(e,t))return r;if(-1!==(o="])}".indexOf(i))){for(;"coffee"==t.scope.type&&t.scope.prev;)t.scope=t.scope.prev;t.scope.type==i&&(t.scope=t.scope.prev)}return t.dedent&&e.eol()&&("coffee"==t.scope.type&&t.scope.prev&&(t.scope=t.scope.prev),t.dedent=!1),"indent"==n||"dedent"==n?null:n}(e,t);return i&&"comment"!=i&&(n&&(n.align=!0),t.prop="punctuation"==i&&"."==e.current()),i},indent:function(e,t){if(e.tokenize!=p)return 0;var n=e.scope,r=t&&"])}".indexOf(t.charAt(0))>-1;if(r)for(;"coffee"==n.type&&n.prev;)n=n.prev;var i=r&&n.type===t.charAt(0);return n.align?n.alignOffset-(i?1:0):(i?n.prev:n).offset},languageData:{commentTokens:{line:"#"}}}},85765:(e,t,n)=>{n.r(t),n.d(t,{commonLisp:()=>h});var r,i=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/,o=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/,a=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/,s=/[^\s'`,@()\[\]";]/;function l(e){for(var t;t=e.next();)if("\\"==t)e.next();else if(!s.test(t)){e.backUp(1);break}return e.current()}function c(e,t){if(e.eatSpace())return r="ws",null;if(e.match(a))return"number";var n;if("\\"==(n=e.next())&&(n=e.next()),'"'==n)return(t.tokenize=u)(e,t);if("("==n)return r="open","bracket";if(")"==n||"]"==n)return r="close","bracket";if(";"==n)return e.skipToEnd(),r="ws","comment";if(/['`,@]/.test(n))return null;if("|"==n)return e.skipTo("|")?(e.next(),"variableName"):(e.skipToEnd(),"error");if("#"==n)return"("==(n=e.next())?(r="open","bracket"):/[+\-=\.']/.test(n)||/\d/.test(n)&&e.match(/^\d*#/)?null:"|"==n?(t.tokenize=d)(e,t):":"==n?(l(e),"meta"):"\\"==n?(e.next(),l(e),"string.special"):"error";var s=l(e);return"."==s?null:(r="symbol","nil"==s||"t"==s||":"==s.charAt(0)?"atom":"open"==t.lastType&&(i.test(s)||o.test(s))?"keyword":"&"==s.charAt(0)?"variableName.special":"variableName")}function u(e,t){for(var n,r=!1;n=e.next();){if('"'==n&&!r){t.tokenize=c;break}r=!r&&"\\"==n}return"string"}function d(e,t){for(var n,i;n=e.next();){if("#"==n&&"|"==i){t.tokenize=c;break}i=n}return r="ws","comment"}const h={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:c}},token:function(e,t){e.sol()&&"number"!=typeof t.ctx.indentTo&&(t.ctx.indentTo=t.ctx.start+1),r=null;var n=t.tokenize(e,t);return"ws"!=r&&(null==t.ctx.indentTo?"symbol"==r&&o.test(e.current())?t.ctx.indentTo=t.ctx.start+e.indentUnit:t.ctx.indentTo="next":"next"==t.ctx.indentTo&&(t.ctx.indentTo=e.column()),t.lastType=r),"open"==r?t.ctx={prev:t.ctx,start:e.column(),indentTo:null}:"close"==r&&(t.ctx=t.ctx.prev||t.ctx),n},indent:function(e){var t=e.ctx.indentTo;return"number"==typeof t?t:e.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}}},70153:(e,t,n)=>{function r(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function i(e,t,n){return n.tokenize.push(e),e(t,n)}n.r(t),n.d(t,{crystal:()=>E});var o=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/,a=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/,s=/^(?:\[\][?=]?)/,l=/^(?:\.(?:\.{2})?|->|[?:])/,c=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,u=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/,d=r(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]),h=r(["true","false","nil","self"]),f=r(["def","fun","macro","class","module","struct","lib","enum","union","do","for"]),m=r(["if","unless","case","while","until","begin","then"]),p=["end","else","elsif","rescue","ensure"],g=r(p),b=["\\)","\\}","\\]"],v=new RegExp("^(?:"+b.join("|")+")$"),y={def:S,fun:S,macro:function(e,t){if(e.eatSpace())return null;var n;if(n=e.match(c)){if("def"==n)return"keyword";e.eat(/[?!]/)}return t.tokenize.pop(),"def"},class:_,module:_,struct:_,lib:_,enum:_,union:_},k={"[":"]","{":"}","(":")","<":">"};function w(e,t){if(e.eatSpace())return null;if("\\"!=t.lastToken&&e.match("{%",!1))return i(x("%","%"),e,t);if("\\"!=t.lastToken&&e.match("{{",!1))return i(x("{","}"),e,t);if("#"==e.peek())return e.skipToEnd(),"comment";var n;if(e.match(c))return e.eat(/[?!]/),n=e.current(),e.eat(":")?"atom":"."==t.lastToken?"property":d.test(n)?(f.test(n)?"fun"==n&&t.blocks.indexOf("lib")>=0||"def"==n&&"abstract"==t.lastToken||(t.blocks.push(n),t.currentIndent+=1):"operator"!=t.lastStyle&&t.lastStyle||!m.test(n)?"end"==n&&(t.blocks.pop(),t.currentIndent-=1):(t.blocks.push(n),t.currentIndent+=1),y.hasOwnProperty(n)&&t.tokenize.push(y[n]),"keyword"):h.test(n)?"atom":"variable";if(e.eat("@"))return"["==e.peek()?i(O("[","]","meta"),e,t):(e.eat("@"),e.match(c)||e.match(u),"propertyName");if(e.match(u))return"tag";if(e.eat(":"))return e.eat('"')?i(T('"',"atom",!1),e,t):e.match(c)||e.match(u)||e.match(o)||e.match(a)||e.match(s)?"atom":(e.eat(":"),"operator");if(e.eat('"'))return i(T('"',"string",!0),e,t);if("%"==e.peek()){var r,p="string",g=!0;if(e.match("%r"))p="string.special",r=e.next();else if(e.match("%w"))g=!1,r=e.next();else if(e.match("%q"))g=!1,r=e.next();else if(r=e.match(/^%([^\w\s=])/))r=r[1];else{if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/))return"meta";if(e.eat("%"))return"operator"}return k.hasOwnProperty(r)&&(r=k[r]),i(T(r,p,g),e,t)}return(n=e.match(/^<<-('?)([A-Z]\w*)\1/))?i(function(e,t){return function(n,r){if(n.sol()&&(n.eatSpace(),n.match(e)))return r.tokenize.pop(),"string";for(var i=!1;n.peek();)if(i)n.next(),i=!1;else{if(n.match("{%",!1))return r.tokenize.push(x("%","%")),"string";if(n.match("{{",!1))return r.tokenize.push(x("{","}")),"string";if(t&&n.match("#{",!1))return r.tokenize.push(O("#{","}","meta")),"string";i=t&&"\\"==n.next()}return"string"}}(n[2],!n[1]),e,t):e.eat("'")?(e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/),e.eat("'"),"atom"):e.eat("0")?(e.eat("x")?e.match(/^[0-9a-fA-F_]+/):e.eat("o")?e.match(/^[0-7_]+/):e.eat("b")&&e.match(/^[01_]+/),"number"):e.eat(/^\d/)?(e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/),"number"):e.match(o)?(e.eat("="),"operator"):e.match(a)||e.match(l)?"operator":(n=e.match(/[({[]/,!1))?i(O(n=n[0],k[n],null),e,t):e.eat("\\")?(e.next(),"meta"):(e.next(),null)}function O(e,t,n,r){return function(i,o){if(!r&&i.match(e))return o.tokenize[o.tokenize.length-1]=O(e,t,n,!0),o.currentIndent+=1,n;var a=w(i,o);return i.current()===t&&(o.tokenize.pop(),o.currentIndent-=1,a=n),a}}function x(e,t,n){return function(r,i){return!n&&r.match("{"+e)?(i.currentIndent+=1,i.tokenize[i.tokenize.length-1]=x(e,t,!0),"meta"):r.match(t+"}")?(i.currentIndent-=1,i.tokenize.pop(),"meta"):w(r,i)}}function S(e,t){return e.eatSpace()?null:(e.match(c)?e.eat(/[!?]/):e.match(o)||e.match(a)||e.match(s),t.tokenize.pop(),"def")}function _(e,t){return e.eatSpace()?null:(e.match(u),t.tokenize.pop(),"def")}function T(e,t,n){return function(r,i){for(var o=!1;r.peek();)if(o)r.next(),o=!1;else{if(r.match("{%",!1))return i.tokenize.push(x("%","%")),t;if(r.match("{{",!1))return i.tokenize.push(x("{","}")),t;if(n&&r.match("#{",!1))return i.tokenize.push(O("#{","}","meta")),t;var a=r.next();if(a==e)return i.tokenize.pop(),t;o=n&&"\\"==a}return t}}const E={name:"crystal",startState:function(){return{tokenize:[w],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t),r=e.current();return n&&"comment"!=n&&(t.lastToken=r,t.lastStyle=n),n},indent:function(e,t,n){return t=t.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,""),g.test(t)||v.test(t)?n.unit*(e.currentIndent-1):n.unit*e.currentIndent},languageData:{indentOnInput:r(b.concat(p),!0),commentTokens:{line:"#"}}}},65714:(e,t,n)=>{function r(e){var t,n,r=(e={...T,...e}).inline,i=e.tokenHooks,o=e.documentTypes||{},a=e.mediaTypes||{},s=e.mediaFeatures||{},l=e.mediaValueKeywords||{},c=e.propertyKeywords||{},u=e.nonStandardPropertyKeywords||{},d=e.fontProperties||{},h=e.counterDescriptors||{},f=e.colorKeywords||{},m=e.valueKeywords||{},p=e.allowNested,g=e.lineComment,b=!0===e.supportsAtComponent,v=!1!==e.highlightNonStandardPropertyKeywords;function y(e,n){return t=n,e}function k(e,t){var n=e.next();if(i[n]){var r=i[n](e,t);if(!1!==r)return r}return"@"==n?(e.eatWhile(/[\w\\\-]/),y("def",e.current())):"="==n||("~"==n||"|"==n)&&e.eat("=")?y(null,"compare"):'"'==n||"'"==n?(t.tokenize=w(n),t.tokenize(e,t)):"#"==n?(e.eatWhile(/[\w\\\-]/),y("atom","hash")):"!"==n?(e.match(/^\s*\w*/),y("keyword","important")):/\d/.test(n)||"."==n&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),y("number","unit")):"-"!==n?/[,+>*\/]/.test(n)?y(null,"select-op"):"."==n&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?y("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(n)?y(null,n):e.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())&&(t.tokenize=O),y("variableName.function","variable")):/[\w\\\-]/.test(n)?(e.eatWhile(/[\w\\\-]/),y("property","word")):y(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),y("number","unit")):e.match(/^-[\w\\\-]*/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?y("def","variable-definition"):y("variableName","variable")):e.match(/^\w+-/)?y("meta","meta"):void 0}function w(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),y("string","string")}}function O(e,t){return e.next(),e.match(/^\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=w(")"),y(null,"(")}function x(e,t,n){this.type=e,this.indent=t,this.prev=n}function _(e,t,n,r){return e.context=new x(n,t.indentation()+(!1===r?0:t.indentUnit),e.context),n}function E(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function $(e,t,n){return P[n.context.type](e,t,n)}function C(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return $(e,t,n)}function A(e){var t=e.current().toLowerCase();n=m.hasOwnProperty(t)?"atom":f.hasOwnProperty(t)?"keyword":"variable"}var P={top:function(e,t,r){if("{"==e)return _(r,t,"block");if("}"==e&&r.context.prev)return E(r);if(b&&/@component/i.test(e))return _(r,t,"atComponentBlock");if(/^@(-moz-)?document$/i.test(e))return _(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(e))return _(r,t,"atBlock");if(/^@(font-face|counter-style)/i.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return _(r,t,"at");if("hash"==e)n="builtin";else if("word"==e)n="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return _(r,t,"interpolation");if(":"==e)return"pseudo";if(p&&"("==e)return _(r,t,"parens")}return r.context.type},block:function(e,t,r){if("word"==e){var i=t.current().toLowerCase();return c.hasOwnProperty(i)?(n="property","maybeprop"):u.hasOwnProperty(i)?(n=v?"string.special":"property","maybeprop"):p?(n=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(n="error","maybeprop")}return"meta"==e?"block":p||"hash"!=e&&"qualifier"!=e?P.top(e,t,r):(n="error","block")},maybeprop:function(e,t,n){return":"==e?_(n,t,"prop"):$(e,t,n)},prop:function(e,t,r){if(";"==e)return E(r);if("{"==e&&p)return _(r,t,"propBlock");if("}"==e||"{"==e)return C(e,t,r);if("("==e)return _(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(t.current())){if("word"==e)A(t);else if("interpolation"==e)return _(r,t,"interpolation")}else n="error";return"prop"},propBlock:function(e,t,r){return"}"==e?E(r):"word"==e?(n="property","maybeprop"):r.context.type},parens:function(e,t,n){return"{"==e||"}"==e?C(e,t,n):")"==e?E(n):"("==e?_(n,t,"parens"):"interpolation"==e?_(n,t,"interpolation"):("word"==e&&A(t),"parens")},pseudo:function(e,t,r){return"meta"==e?"pseudo":"word"==e?(n="variableName.constant",r.context.type):$(e,t,r)},documentTypes:function(e,t,r){return"word"==e&&o.hasOwnProperty(t.current())?(n="tag",r.context.type):P.atBlock(e,t,r)},atBlock:function(e,t,r){if("("==e)return _(r,t,"atBlock_parens");if("}"==e||";"==e)return C(e,t,r);if("{"==e)return E(r)&&_(r,t,p?"block":"top");if("interpolation"==e)return _(r,t,"interpolation");if("word"==e){var i=t.current().toLowerCase();n="only"==i||"not"==i||"and"==i||"or"==i?"keyword":a.hasOwnProperty(i)?"attribute":s.hasOwnProperty(i)?"property":l.hasOwnProperty(i)?"keyword":c.hasOwnProperty(i)?"property":u.hasOwnProperty(i)?v?"string.special":"property":m.hasOwnProperty(i)?"atom":f.hasOwnProperty(i)?"keyword":"error"}return r.context.type},atComponentBlock:function(e,t,r){return"}"==e?C(e,t,r):"{"==e?E(r)&&_(r,t,p?"block":"top",!1):("word"==e&&(n="error"),r.context.type)},atBlock_parens:function(e,t,n){return")"==e?E(n):"{"==e||"}"==e?C(e,t,n,2):P.atBlock(e,t,n)},restricted_atBlock_before:function(e,t,r){return"{"==e?_(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(n="variable","restricted_atBlock_before"):$(e,t,r)},restricted_atBlock:function(e,t,r){return"}"==e?(r.stateArg=null,E(r)):"word"==e?(n="@font-face"==r.stateArg&&!d.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!h.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},keyframes:function(e,t,r){return"word"==e?(n="variable","keyframes"):"{"==e?_(r,t,"top"):$(e,t,r)},at:function(e,t,r){return";"==e?E(r):"{"==e||"}"==e?C(e,t,r):("word"==e?n="tag":"hash"==e&&(n="builtin"),"at")},interpolation:function(e,t,r){return"}"==e?E(r):"{"==e||";"==e?C(e,t,r):("word"==e?n="variable":"variable"!=e&&"("!=e&&")"!=e&&(n="error"),"interpolation")}};return{name:e.name,startState:function(){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new x(r?"block":"top",0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var i=(r.tokenize||k)(e,r);return i&&"object"==typeof i&&(t=i[1],i=i[0]),n=i,"comment"!=t&&(r.state=P[r.state](t,e,r)),n},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent;return"prop"!=r.type||"}"!=i&&")"!=i||(r=r.prev),r.prev&&("}"!=i||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=i||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=i||"at"!=r.type&&"atBlock"!=r.type)||(o=Math.max(0,r.indent-n.unit)):o=(r=r.prev).indent),o},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:g,block:{open:"/*",close:"*/"}},autocomplete:S}}}function i(e){for(var t={},n=0;nE,gss:()=>P,keywords:()=>_,less:()=>A,mkCSS:()=>r,sCSS:()=>C});var o=["domain","regexp","url","url-prefix"],a=i(o),s=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],l=i(s),c=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],u=i(c),d=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],h=i(d),f=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],m=i(f),p=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],g=i(p),b=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],v=i(b),y=i(["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"]),k=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],w=i(k),O=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=i(O),S=o.concat(s).concat(c).concat(d).concat(f).concat(p).concat(k).concat(O);const _={properties:f,colors:k,fonts:b,values:O,all:S},T={documentTypes:a,mediaTypes:l,mediaFeatures:u,mediaValueKeywords:h,propertyKeywords:m,nonStandardPropertyKeywords:g,fontProperties:v,counterDescriptors:y,colorKeywords:w,valueKeywords:x,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=$,$(e,t))}}},E=r({name:"css"});function $(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}const C=r({name:"scss",mediaTypes:l,mediaFeatures:u,mediaValueKeywords:h,propertyKeywords:m,nonStandardPropertyKeywords:g,colorKeywords:w,valueKeywords:x,fontProperties:v,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=$,$(e,t)):["operator","operator"]},":":function(e){return!!e.match(/^\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["def","variable-definition"]:["variableName.special","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}}}),A=r({name:"less",mediaTypes:l,mediaFeatures:u,mediaValueKeywords:h,propertyKeywords:m,nonStandardPropertyKeywords:g,colorKeywords:w,valueKeywords:x,fontProperties:v,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=$,$(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["def","variable-definition"]:["variableName","variable"])},"&":function(){return["atom","atom"]}}}),P=r({name:"gss",documentTypes:a,mediaTypes:l,mediaFeatures:u,propertyKeywords:m,nonStandardPropertyKeywords:g,fontProperties:v,counterDescriptors:y,colorKeywords:w,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=$,$(e,t))}}})},86195:(e,t,n)=>{n.r(t),n.d(t,{cypher:()=>f});var r,i=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")},o=function(e){r=null;var t=e.next();if('"'===t)return e.match(/^.*?"/),"string";if("'"===t)return e.match(/^.*?'/),"string";if(/[{}\(\),\.;\[\]]/.test(t))return r=t,"punctuation";if("/"===t&&e.eat("/"))return e.skipToEnd(),"comment";if(h.test(t))return e.eatWhile(h),null;if(e.eatWhile(/[_\w\d]/),e.eat(":"))return e.eatWhile(/[\w\d_\-]/),"atom";var n=e.current();return l.test(n)?"builtin":c.test(n)?"def":u.test(n)||d.test(n)?"keyword":"variable"},a=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}},s=function(e){return e.indent=e.context.indent,e.context=e.context.prev},l=i(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]),c=i(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]),u=i(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]),d=i(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]),h=/[*+\-<>=&|~%^]/;const f={name:"cypher",startState:function(){return{tokenize:o,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!==n&&t.context&&null==t.context.align&&"pattern"!==t.context.type&&(t.context.align=!0),"("===r)a(t,")",e.column());else if("["===r)a(t,"]",e.column());else if("{"===r)a(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"===t.context.type;)s(t);t.context&&r===t.context.type&&s(t)}else"."===r&&t.context&&"pattern"===t.context.type?s(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?a(t,"pattern",e.column()):"pattern"!==t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"===i.type;)i=i.prev;var o=i&&r===i.type;return i?"keywords"===i.type?null:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0}}},72789:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rw});var i="body catch class do else enum for foreach foreach_reverse if in interface mixin out scope struct switch try union unittest version while with";const o={keywords:r("abstract alias align asm assert auto break case cast cdouble cent cfloat const continue debug default delegate delete deprecated export extern final finally function goto immutable import inout invariant is lazy macro module new nothrow override package pragma private protected public pure ref return shared short static super synchronized template this throw typedef typeid typeof volatile __FILE__ __LINE__ __gshared __traits __vector __parameters "+i),blockKeywords:r(i),builtin:r("bool byte char creal dchar double float idouble ifloat int ireal long real short ubyte ucent uint ulong ushort wchar wstring void size_t sizediff_t"),atoms:r("exit failure success true false null"),hooks:{"@":function(e,t){return e.eatWhile(/[\w\$_]/),"meta"}}};var a,s=o.statementIndentUnit,l=o.keywords,c=o.builtin,u=o.blockKeywords,d=o.atoms,h=o.hooks,f=o.multiLineStrings,m=/[+\-*&%=<>!?|\/]/;function p(e,t){var n,r=e.next();if(h[r]){var i=h[r](e,t);if(!1!==i)return i}if('"'==r||"'"==r||"`"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return(o||!i&&!f)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return a=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("+"))return t.tokenize=b,b(e,t);if(e.eat("*"))return t.tokenize=g,g(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(m.test(r))return e.eatWhile(m),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return l.propertyIsEnumerable(o)?(u.propertyIsEnumerable(o)&&(a="newstatement"),"keyword"):c.propertyIsEnumerable(o)?(u.propertyIsEnumerable(o)&&(a="newstatement"),"builtin"):d.propertyIsEnumerable(o)?"atom":"variable"}function g(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function b(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="+"==n}return"comment"}function v(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function y(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new v(r,t,n,null,e.context)}function k(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const w={name:"d",startState:function(e){return{tokenize:null,context:new v(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;a=null;var r=(t.tokenize||p)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=a&&":"!=a&&","!=a||"statement"!=n.type)if("{"==a)y(t,e.column(),"}");else if("["==a)y(t,e.column(),"]");else if("("==a)y(t,e.column(),")");else if("}"==a){for(;"statement"==n.type;)n=k(t);for("}"==n.type&&(n=k(t));"statement"==n.type;)n=k(t)}else a==n.type?k(t):(("}"==n.type||"top"==n.type)&&";"!=a||"statement"==n.type&&"newstatement"==a)&&y(t,e.column(),"statement");else k(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=p&&null!=e.tokenize)return null;var r=e.context,i=t&&t.charAt(0);"statement"==r.type&&"}"==i&&(r=r.prev);var o=i==r.type;return"statement"==r.type?r.indented+("{"==i?0:s||n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}},55411:(e,t,n)=>{n.r(t),n.d(t,{diff:()=>i});var r={"+":"inserted","-":"deleted","@":"meta"};const i={name:"diff",token:function(e){var t=e.string.search(/[\t ]+?$/);if(!e.sol()||0===t)return e.skipToEnd(),("error "+(r[e.string.charAt(0)]||"")).replace(/ $/,"");var n=r[e.peek()]||e.skipToEnd();return-1===t?e.skipToEnd():e.pos=t,n}}},46857:(e,t,n)=>{n.r(t),n.d(t,{dockerFile:()=>f});var r=n(87834),i="from",o=new RegExp("^(\\s*)\\b("+i+")\\b","i"),a=["run","cmd","entrypoint","shell"],s=new RegExp("^(\\s*)("+a.join("|")+")(\\s+\\[)","i"),l="expose",c=new RegExp("^(\\s*)("+l+")(\\s+)","i"),u="("+[i,l].concat(a).concat(["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"]).join("|")+")",d=new RegExp("^(\\s*)"+u+"(\\s*)(#.*)?$","i"),h=new RegExp("^(\\s*)"+u+"(\\s+)","i");const f=(0,r.Q)({start:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:o,token:[null,"keyword"],sol:!0,next:"from"},{regex:d,token:[null,"keyword",null,"error"],sol:!0},{regex:s,token:[null,"keyword",null],sol:!0,next:"array"},{regex:c,token:[null,"keyword",null],sol:!0,next:"expose"},{regex:h,token:[null,"keyword",null],sol:!0,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:!0}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:!0}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:!0,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}})},80882:(e,t,n)=>{var r;function i(e,t){return r=t,e}function o(e,t){var n,r,s,l=e.next();if("<"!=l||!e.eat("!")){if("<"==l&&e.eat("?"))return t.tokenize=(r="meta",s="?>",function(e,t){for(;!e.eol();){if(e.match(s)){t.tokenize=o;break}e.next()}return r}),i("meta",l);if("#"==l&&e.eatWhile(/[\w]/))return i("atom","tag");if("|"==l)return i("keyword","separator");if(l.match(/[\(\)\[\]\-\.,\+\?>]/))return i(null,l);if(l.match(/[\[\]]/))return i("rule",l);if('"'==l||"'"==l)return t.tokenize=(n=l,function(e,t){for(var r,a=!1;null!=(r=e.next());){if(r==n&&!a){t.tokenize=o;break}a=!a&&"\\"==r}return i("string","tag")}),t.tokenize(e,t);if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var c=e.current();return null!==c.substr(c.length-1,c.length).match(/\?|\+/)&&e.backUp(1),i("tag","tag")}return"%"==l||"*"==l?i("number","number"):(e.eatWhile(/[\w\\\-_%.{,]/),i(null,null))}return e.eatWhile(/[\-]/)?(t.tokenize=a,a(e,t)):e.eatWhile(/[\w]/)?i("keyword","doindent"):void 0}function a(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=o;break}r="-"==n?r+1:0}return i("comment","comment")}n.r(t),n.d(t,{dtd:()=>s});const s={name:"dtd",startState:function(){return{tokenize:o,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t),i=t.stack[t.stack.length-1];return"["==e.current()||"doindent"===r||"["==r?t.stack.push("rule"):"endtag"===r?t.stack[t.stack.length-1]="endtag":"]"==e.current()||"]"==r||">"==r&&"rule"==i?t.stack.pop():"["==r&&t.stack.push("["),n},indent:function(e,t,n){var i=e.stack.length;return"]"===t.charAt(0)?i--:">"===t.substr(t.length-1,t.length)&&("<"===t.substr(0,1)||"doindent"==r&&t.length>1||("doindent"==r?i--:">"==r&&t.length>1||"tag"==r&&">"!==t||("tag"==r&&"rule"==e.stack[e.stack.length-1]?i--:"tag"==r?i++:">"===t&&"rule"==e.stack[e.stack.length-1]&&">"===r?i--:">"===t&&"rule"==e.stack[e.stack.length-1]||("<"!==t.substr(0,1)&&">"===t.substr(0,1)?i-=1:">"===t||(i-=1)))),null!=r&&"]"!=r||i--),e.baseIndent+i*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}}},24735:(e,t,n)=>{function r(e,t){for(var n=0;nv});var o={unnamedDefinition:["interface"],namedDefinition:["module","library","macro","C-struct","C-union","C-function","C-callable-wrapper"],typeParameterizedDefinition:["class","C-subtype","C-mapped-subtype"],otherParameterizedDefinition:["method","function","C-variable","C-address"],constantSimpleDefinition:["constant"],variableSimpleDefinition:["variable"],otherSimpleDefinition:["generic","domain","C-pointer-type","table"],statement:["if","block","begin","method","case","for","select","when","unless","until","while","iterate","profiling","dynamic-bind"],separator:["finally","exception","cleanup","else","elseif","afterwards"],other:["above","below","by","from","handler","in","instance","let","local","otherwise","slot","subclass","then","to","keyed-by","virtual"],signalingCalls:["signal","error","cerror","break","check-type","abort"]};o.otherDefinition=o.unnamedDefinition.concat(o.namedDefinition).concat(o.otherParameterizedDefinition),o.definition=o.typeParameterizedDefinition.concat(o.otherDefinition),o.parameterizedDefinition=o.typeParameterizedDefinition.concat(o.otherParameterizedDefinition),o.simpleDefinition=o.constantSimpleDefinition.concat(o.variableSimpleDefinition).concat(o.otherSimpleDefinition),o.keyword=o.statement.concat(o.separator).concat(o.other);var a="[-_a-zA-Z?!*@<>$%]+",s=new RegExp("^"+a),l={symbolKeyword:a+":",symbolClass:"<"+a+">",symbolGlobal:"\\*"+a+"\\*",symbolConstant:"\\$"+a},c={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var u in l)l.hasOwnProperty(u)&&(l[u]=new RegExp("^"+l[u]));l.keyword=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var d={keyword:"keyword",definition:"def",simpleDefinition:"def",signalingCalls:"builtin"},h={},f={};function m(e,t,n){return t.tokenize=n,n(e,t)}function p(e,t){var n=e.peek();if("'"==n||'"'==n)return e.next(),m(e,t,b(n,"string"));if("/"==n){if(e.next(),e.eat("*"))return m(e,t,g);if(e.eat("/"))return e.skipToEnd(),"comment";e.backUp(1)}else if(/[+\-\d\.]/.test(n)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/))return"number"}else{if("#"==n)return e.next(),'"'==(n=e.peek())?(e.next(),m(e,t,b('"',"string"))):"b"==n?(e.next(),e.eatWhile(/[01]/),"number"):"x"==n?(e.next(),e.eatWhile(/[\da-f]/i),"number"):"o"==n?(e.next(),e.eatWhile(/[0-7]/),"number"):"#"==n?(e.next(),"punctuation"):"["==n||"("==n?(e.next(),"bracket"):e.match(/f|t|all-keys|include|key|next|rest/i)?"atom":(e.eatWhile(/[-a-zA-Z]/),"error");if("~"==n)return e.next(),"="==(n=e.peek())?(e.next(),"="==(n=e.peek())?(e.next(),"operator"):"operator"):"operator";if(":"==n){if(e.next(),"="==(n=e.peek()))return e.next(),"operator";if(":"==n)return e.next(),"punctuation"}else{if(-1!="[](){}".indexOf(n))return e.next(),"bracket";if(-1!=".,".indexOf(n))return e.next(),"punctuation";if(e.match("end"))return"keyword"}}for(var r in l)if(l.hasOwnProperty(r)){var o=l[r];if(o instanceof Array&&i(o,(function(t){return e.match(t)}))||e.match(o))return c[r]}return/[+\-*\/^=<>&|]/.test(n)?(e.next(),"operator"):e.match("define")?"def":(e.eatWhile(/[\w\-]/),h.hasOwnProperty(e.current())?f[e.current()]:e.current().match(s)?"variable":(e.next(),"variableName.standard"))}function g(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if("/"==n&&r){if(!(o>0)){t.tokenize=p;break}o--}else"*"==n&&i&&o++;r="*"==n,i="/"==n}return"comment"}function b(e,t){return function(n,r){for(var i,o=!1,a=!1;null!=(i=n.next());){if(i==e&&!o){a=!0;break}o=!o&&"\\"==i}return!a&&o||(r.tokenize=p),t}}r(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){r(o[e],(function(t){h[t]=e,f[t]=d[e]}))}));const v={name:"dylan",startState:function(){return{tokenize:p,currentIndent:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}}},99795:(e,t,n)=>{n.r(t),n.d(t,{ebnf:()=>l});var r=0,i=1,o=0,a=1,s=2;const l={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:!0,localState:null,stack:[],inDefinition:!1}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'==e.peek()||"'"==e.peek()?(t.stringType=e.peek(),e.next(),t.stack.unshift(a)):e.match("/*")?(t.stack.unshift(o),t.commentType=r):e.match("(*")&&(t.stack.unshift(o),t.commentType=i)),t.stack[0]){case a:for(;t.stack[0]===a&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string";case o:for(;t.stack[0]===o&&!e.eol();)t.commentType===r&&e.match("*/")||t.commentType===i&&e.match("*)")?(t.stack.shift(),t.commentType=null):e.match(/^.[^\*]*/);return"comment";case s:for(;t.stack[0]===s&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(".")||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift(s),"bracket";case":":case"|":case";":return e.next(),"operator";case"%":if(e.match("%%"))return"header";if(e.match(/[%][A-Za-z]+/))return"keyword";if(e.match(/[%][}]/))return"bracket";break;case"/":if(e.match(/[\/][A-Za-z]+/))return"keyword";case"\\":if(e.match(/[\][a-z]+/))return"string.special";case".":if(e.match("."))return"atom";case"*":case"-":case"+":case"^":if(e.match(n))return"atom";case"$":if(e.match("$$"))return"builtin";if(e.match(/[$][0-9]+/))return"variableName.special";case"<":if(e.match(/<<[a-zA-Z_]+>>/))return"builtin"}return e.match("//")?(e.skipToEnd(),"comment"):e.match("return")?"operator":e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)?e.match(/(?=[\(.])/)?"variable":e.match(/(?=[\s\n]*[:=])/)?"def":"variableName.special":-1!=["[","]","(",")"].indexOf(e.peek())?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}},50073:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;ry});var i,o=r("abs acos allnodes ascii asin asstring atan atan2 ave case choose choosen choosesets clustersize combine correlation cos cosh count covariance cron dataset dedup define denormalize distribute distributed distribution ebcdic enth error evaluate event eventextra eventname exists exp failcode failmessage fetch fromunicode getisvalid global graph group hash hash32 hash64 hashcrc hashmd5 having if index intformat isvalid iterate join keyunicode length library limit ln local log loop map matched matchlength matchposition matchtext matchunicode max merge mergejoin min nolocal nonempty normalize parse pipe power preload process project pull random range rank ranked realformat recordof regexfind regexreplace regroup rejected rollup round roundup row rowdiff sample set sin sinh sizeof soapcall sort sorted sqrt stepped stored sum table tan tanh thisnode topn tounicode transfer trim truncate typeof ungroup unicodeorder variance which workunit xmldecode xmlencode xmltext xmlunicode"),a=r("apply assert build buildindex evaluate fail keydiff keypatch loadxml nothor notify output parallel sequential soapcall wait"),s=r("__compressed__ all and any as atmost before beginc++ best between case const counter csv descend encrypt end endc++ endmacro except exclusive expire export extend false few first flat from full function group header heading hole ifblock import in interface joined keep keyed last left limit load local locale lookup macro many maxcount maxlength min skew module named nocase noroot noscan nosort not of only opt or outer overwrite packed partition penalty physicallength pipe quote record relationship repeat return right scan self separator service shared skew skip sql store terminator thor threshold token transform trim true type unicodeorder unsorted validate virtual whole wild within xml xpath"),l=r("ascii big_endian boolean data decimal ebcdic integer pattern qstring real record rule set of string token udecimal unicode unsigned varstring varunicode"),c=r("checkpoint deprecated failcode failmessage failure global independent onwarning persist priority recovery stored success wait when"),u=r("catch class do else finally for if switch try while"),d=r("true false null"),h={"#":function(e,t){return!!t.startOfLine&&(e.skipToEnd(),"meta")}},f=/[+\-*&%=<>!?|\/]/;function m(e,t){var n,r=e.next();if(h[r]){var g=h[r](e,t);if(!1!==g)return g}if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=m),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\:\.]/.test(r))return i=r,null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return t.tokenize=p,p(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(f.test(r))return e.eatWhile(f),"operator";e.eatWhile(/[\w\$_]/);var b=e.current().toLowerCase();if(o.propertyIsEnumerable(b))return u.propertyIsEnumerable(b)&&(i="newstatement"),"keyword";if(a.propertyIsEnumerable(b))return u.propertyIsEnumerable(b)&&(i="newstatement"),"variable";if(s.propertyIsEnumerable(b))return u.propertyIsEnumerable(b)&&(i="newstatement"),"modifier";if(l.propertyIsEnumerable(b))return u.propertyIsEnumerable(b)&&(i="newstatement"),"type";if(c.propertyIsEnumerable(b))return u.propertyIsEnumerable(b)&&(i="newstatement"),"builtin";for(var v=b.length-1;v>=0&&(!isNaN(b[v])||"_"==b[v]);)--v;if(v>0){var y=b.substr(0,v+1);if(l.propertyIsEnumerable(y))return u.propertyIsEnumerable(y)&&(i="newstatement"),"type"}return d.propertyIsEnumerable(b)?"atom":null}function p(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return"comment"}function g(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function b(e,t,n){return e.context=new g(e.indented,t,n,null,e.context)}function v(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const y={name:"ecl",startState:function(e){return{tokenize:null,context:new g(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;i=null;var r=(t.tokenize||m)(e,t);if("comment"==r||"meta"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i||"statement"!=n.type)if("{"==i)b(t,e.column(),"}");else if("["==i)b(t,e.column(),"]");else if("("==i)b(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=v(t);for("}"==n.type&&(n=v(t));"statement"==n.type;)n=v(t)}else i==n.type?v(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&b(t,e.column(),"statement");else v(t);return t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=m&&null!=e.tokenize)return 0;var r=e.context,i=t&&t.charAt(0);"statement"==r.type&&"}"==i&&(r=r.prev);var o=i==r.type;return"statement"==r.type?r.indented+("{"==i?0:n.unit):r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/}}},22580:(e,t,n)=>{function r(e){for(var t={},n=0,r=e.length;ns});var i=r(["note","across","when","variant","until","unique","undefine","then","strip","select","retry","rescue","require","rename","reference","redefine","prefix","once","old","obsolete","loop","local","like","is","inspect","infix","include","if","frozen","from","external","export","ensure","end","elseif","else","do","creation","create","check","alias","agent","separate","invariant","inherit","indexing","feature","expanded","deferred","class","Void","True","Result","Precursor","False","Current","create","attached","detachable","as","and","implies","not","or"]),o=r([":=","and then","and","or","<<",">>"]);function a(e,t){if(e.eatSpace())return null;var n,r,i,o=e.next();return'"'==o||"'"==o?function(e,t,n){return n.tokenize.push(e),e(t,n)}((n=o,r="string",function(e,t){for(var o,a=!1;null!=(o=e.next());){if(o==n&&(i||!a)){t.tokenize.pop();break}a=!a&&"%"==o}return r}),e,t):"-"==o&&e.eat("-")?(e.skipToEnd(),"comment"):":"==o&&e.eat("=")?"operator":/[0-9]/.test(o)?(e.eatWhile(/[xXbBCc0-9\.]/),e.eat(/[\?\!]/),"variable"):/[a-zA-Z_0-9]/.test(o)?(e.eatWhile(/[a-zA-Z_0-9]/),e.eat(/[\?\!]/),"variable"):/[=+\-\/*^%<>~]/.test(o)?(e.eatWhile(/[=+\-\/*^%<>~]/),"operator"):null}const s={name:"eiffel",startState:function(){return{tokenize:[a]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t);if("variable"==n){var r=e.current();n=i.propertyIsEnumerable(e.current())?"keyword":o.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(r)?"tag":/^0[bB][0-1]+$/g.test(r)||/^0[cC][0-7]+$/g.test(r)||/^0[xX][a-fA-F0-9]+$/g.test(r)||/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(r)||/^[0-9]+$/g.test(r)?"number":"variable"}return n},languageData:{commentTokens:{line:"--"}}}},80174:(e,t,n)=>{function r(e,t,n){return t(n),n(e,t)}n.r(t),n.d(t,{elm:()=>y});var i=/[a-z]/,o=/[A-Z]/,a=/[a-zA-Z0-9_]/,s=/[0-9]/,l=/[0-9A-Fa-f]/,c=/[-&*+.\\/<>=?^|:]/,u=/[(),[\]{}]/,d=/[ \v\f]/;function h(){return function(e,t){if(e.eatWhile(d))return null;var n=e.next();if(u.test(n))return"{"===n&&e.eat("-")?r(e,t,f(1)):"["===n&&e.match("glsl|")?r(e,t,b):"builtin";if("'"===n)return r(e,t,g);if('"'===n)return e.eat('"')?e.eat('"')?r(e,t,m):"string":r(e,t,p);if(o.test(n))return e.eatWhile(a),"type";if(i.test(n)){var h=1===e.pos;return e.eatWhile(a),h?"def":"variable"}if(s.test(n)){if("0"===n){if(e.eat(/[xX]/))return e.eatWhile(l),"number"}else e.eatWhile(s);return e.eat(".")&&e.eatWhile(s),e.eat(/[eE]/)&&(e.eat(/[-+]/),e.eatWhile(s)),"number"}return c.test(n)?"-"===n&&e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(c),"keyword"):"_"===n?"keyword":"error"}}function f(e){return 0==e?h():function(t,n){for(;!t.eol();){var r=t.next();if("{"==r&&t.eat("-"))++e;else if("-"==r&&t.eat("}")&&0===--e)return n(h()),"comment"}return n(f(e)),"comment"}}function m(e,t){for(;!e.eol();){if('"'===e.next()&&e.eat('"')&&e.eat('"'))return t(h()),"string"}return"string"}function p(e,t){for(;e.skipTo('\\"');)e.next(),e.next();return e.skipTo('"')?(e.next(),t(h()),"string"):(e.skipToEnd(),t(h()),"error")}function g(e,t){for(;e.skipTo("\\'");)e.next(),e.next();return e.skipTo("'")?(e.next(),t(h()),"string"):(e.skipToEnd(),t(h()),"error")}function b(e,t){for(;!e.eol();){if("|"===e.next()&&e.eat("]"))return t(h()),"string"}return"string"}var v={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const y={name:"elm",startState:function(){return{f:h()}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return v.hasOwnProperty(r)?"keyword":n},languageData:{commentTokens:{line:"--"}}}},4318:(e,t,n)=>{n.r(t),n.d(t,{erlang:()=>R});var r=["-type","-spec","-export_type","-opaque"],i=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"],o=/[\->,;]/,a=["->",";",","],s=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"],l=/[\+\-\*\/<>=\|:!]/,c=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"],u=/[<\(\[\{]/,d=["<<","(","[","{"],h=/[>\)\]\}]/,f=["}","]",")",">>"],m=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"],p=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"],g=/[\w@\xd8-\xde\xc0-\xd6\xdf-\xf6\xf8-\xff]/,b=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function v(e,t,n){if(1==e.current().length&&t.test(e.current())){for(e.backUp(1);t.test(e.peek());)if(e.next(),x(e.current(),n))return!0;e.backUp(e.current().length-1)}return!1}function y(e,t,n){if(1==e.current().length&&t.test(e.current())){for(;t.test(e.peek());)e.next();for(;01&&"fun"===e[t].type&&"fun"===e[t-1].token)return e.slice(0,t-1);switch(e[t].token){case"}":return $(e,{g:["{"]});case"]":return $(e,{i:["["]});case")":return $(e,{i:["("]});case">>":return $(e,{i:["<<"]});case"end":return $(e,{i:["begin","case","fun","if","receive","try"]});case",":return $(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return $(e,{r:["when"],m:["try","if","case","receive"]});case";":return $(e,{E:["case","fun","if","receive","try","when"]});case"catch":return $(e,{e:["try"]});case"of":return $(e,{e:["case"]});case"after":return $(e,{e:["receive","try"]});default:return e}}(e.tokenStack))}(e,function(e,t){return _(t.current(),t.column(),t.indentation(),e)}(n,t)),n){case"atom":case"boolean":return"atom";case"attribute":return"attribute";case"builtin":return"builtin";case"close_paren":case"colon":case"dot":case"open_paren":case"separator":default:return null;case"comment":return"comment";case"error":return"error";case"fun":return"meta";case"function":return"tag";case"guard":return"property";case"keyword":return"keyword";case"macro":return"macroName";case"number":return"number";case"operator":return"operator";case"record":return"bracket";case"string":return"string";case"type":return"def";case"variable":return"variable"}}function _(e,t,n,r){return{token:e,column:t,indent:n,type:r}}function T(e){return _(e,0,0,e)}function E(e,t){var n=e.tokenStack.length,r=t||1;return!(n({tokenStack:[],in_string:!1,in_atom:!1}),token:function(e,t){if(t.in_string)return t.in_string=!k(e),S(t,e,"string");if(t.in_atom)return t.in_atom=!w(e),S(t,e,"atom");if(e.eatSpace())return S(t,e,"whitespace");if(!E(t)&&e.match(/-\s*[a-z\xdf-\xf6\xf8-\xff][\w\xd8-\xde\xc0-\xd6\xdf-\xf6\xf8-\xff]*/))return x(e.current(),r)?S(t,e,"type"):S(t,e,"attribute");var n=e.next();if("%"==n)return e.skipToEnd(),S(t,e,"comment");if(":"==n)return S(t,e,"colon");if("?"==n)return e.eatSpace(),e.eatWhile(g),S(t,e,"macro");if("#"==n)return e.eatSpace(),e.eatWhile(g),S(t,e,"record");if("$"==n)return"\\"!=e.next()||e.match(b)?S(t,e,"number"):S(t,e,"error");if("."==n)return S(t,e,"dot");if("'"==n){if(!(t.in_atom=!w(e))){if(e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),S(t,e,"fun");if(e.match(/\s*\(/,!1)||e.match(/\s*:/,!1))return S(t,e,"function")}return S(t,e,"atom")}if('"'==n)return t.in_string=!k(e),S(t,e,"string");if(/[A-Z_\xd8-\xde\xc0-\xd6]/.test(n))return e.eatWhile(g),S(t,e,"variable");if(/[a-z_\xdf-\xf6\xf8-\xff]/.test(n)){if(e.eatWhile(g),e.match(/\s*\/\s*[0-9]/,!1))return e.match(/\s*\/\s*[0-9]/,!0),S(t,e,"fun");var O=e.current();return x(O,i)?S(t,e,"keyword"):x(O,s)?S(t,e,"operator"):e.match(/\s*\(/,!1)?!x(O,p)||":"==E(t).token&&"erlang"!=E(t,2).token?x(O,m)?S(t,e,"guard"):S(t,e,"function"):S(t,e,"builtin"):":"==function(e){var t=e.match(/^\s*([^\s%])/,!1);return t?t[1]:""}(e)?S(t,e,"erlang"==O?"builtin":"function"):x(O,["true","false"])?S(t,e,"boolean"):S(t,e,"atom")}var _=/[0-9]/;return _.test(n)?(e.eatWhile(_),e.eat("#")?e.eatWhile(/[0-9a-zA-Z]/)||e.backUp(1):e.eat(".")&&(e.eatWhile(_)?e.eat(/[eE]/)&&(e.eat(/[-+]/)?e.eatWhile(_)||e.backUp(2):e.eatWhile(_)||e.backUp(1)):e.backUp(1)),S(t,e,"number")):v(e,u,d)?S(t,e,"open_paren"):v(e,h,f)?S(t,e,"close_paren"):y(e,o,a)?S(t,e,"separator"):y(e,l,c)?S(t,e,"operator"):S(t,e,null)},indent:function(e,t,n){var r,i=function(e){var t=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return P(t)&&0===t.index?t[0]:""}(t),o=E(e,1),a=E(e,2);return e.in_string||e.in_atom?null:a?"when"==o.token?o.column+n.unit:"when"===i&&"function"===a.type?a.indent+n.unit:"("===i&&"fun"===o.token?o.column+3:"catch"===i&&(r=C(e,["try"]))?r.column:x(i,["end","after","of"])?(r=C(e,["begin","case","fun","if","receive","try"]))?r.column:null:x(i,f)?(r=C(e,d))?r.column:null:x(o.token,[",","|","||"])||x(i,[",","|","||"])?(r=function(e){var t=e.tokenStack.slice(0,-1),n=A(t,"type",["open_paren"]);return!!P(t[n])&&t[n]}(e))?r.column+r.token.length:n.unit:"->"==o.token?x(a.token,["receive","case","if","try"])?a.column+n.unit+n.unit:a.column+n.unit:x(o.token,d)?o.column+o.token.length:(r=function(e){var t=e.tokenStack,n=A(t,"type",["open_paren","separator","keyword"]),r=A(t,"type",["operator"]);return P(n)&&P(r)&&n{n.r(t),n.d(t,{factor:()=>r});const r=(0,n(87834).Q)({start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{name:"factor",dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}})},87748:(e,t,n)=>{n.r(t),n.d(t,{fcl:()=>d});var r={term:!0,method:!0,accu:!0,rule:!0,then:!0,is:!0,and:!0,or:!0,if:!0,default:!0},i={var_input:!0,var_output:!0,fuzzify:!0,defuzzify:!0,function_block:!0,ruleblock:!0},o={end_ruleblock:!0,end_defuzzify:!0,end_function_block:!0,end_fuzzify:!0,end_var:!0},a={true:!0,false:!0,nan:!0,real:!0,min:!0,max:!0,cog:!0,cogs:!0},s=/[+\-*&^%:=<>!|\/]/;function l(e,t){var n=e.next();if(/[\d\.]/.test(n))return"."==n?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==n?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if("/"==n||"("==n){if(e.eat("*"))return t.tokenize=c,c(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(s.test(n))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var l=e.current().toLowerCase();return r.propertyIsEnumerable(l)||i.propertyIsEnumerable(l)||o.propertyIsEnumerable(l)?"keyword":a.propertyIsEnumerable(l)?"atom":"variable"}function c(e,t){for(var n,r=!1;n=e.next();){if(("/"==n||")"==n)&&r){t.tokenize=l;break}r="*"==n}return"comment"}function u(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}const d={name:"fcl",startState:function(e){return{tokenize:null,context:new u(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;var r=(t.tokenize||l)(e,t);if("comment"==r)return r;null==n.align&&(n.align=!0);var a=e.current().toLowerCase();return i.propertyIsEnumerable(a)?function(e,t,n){e.context=new u(e.indented,t,n,null,e.context)}(t,e.column(),"end_block"):o.propertyIsEnumerable(a)&&function(e){if(e.context.prev)"end_block"==e.context.type&&(e.indented=e.context.indented),e.context=e.context.prev}(t),t.startOfLine=!1,r},indent:function(e,t,n){if(e.tokenize!=l&&null!=e.tokenize)return 0;var r=e.context,i=o.propertyIsEnumerable(t);return r.align?r.column+(i?0:1):r.indented+(i?0:n.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}}},67454:(e,t,n)=>{function r(e){var t=[];return e.split(" ").forEach((function(e){t.push({name:e})})),t}n.r(t),n.d(t,{forth:()=>s});var i=r("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL"),o=r("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function a(e,t){var n;for(n=e.length-1;n>=0;n--)if(e[n].name===t.toUpperCase())return e[n]}const s={name:"forth",startState:function(){return{state:"",base:10,coreWordList:i,immediateWordList:o,wordList:[]}},token:function(e,t){var n;if(e.eatSpace())return null;if(""===t.state){if(e.match(/^(\]|:NONAME)(\s|$)/i))return t.state=" compilation","builtin";if(n=e.match(/^(\:)\s+(\S+)(\s|$)+/))return t.wordList.push({name:n[2].toUpperCase()}),t.state=" compilation","def";if(n=e.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i))return t.wordList.push({name:n[2].toUpperCase()}),"def";if(n=e.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/))return"builtin"}else{if(e.match(/^(\;|\[)(\s)/))return t.state="",e.backUp(1),"builtin";if(e.match(/^(\;|\[)($)/))return t.state="","builtin";if(e.match(/^(POSTPONE)\s+\S+(\s|$)+/))return"builtin"}return(n=e.match(/^(\S+)(\s+|$)/))?void 0!==a(t.wordList,n[1])?"variable":"\\"===n[1]?(e.skipToEnd(),"comment"):void 0!==a(t.coreWordList,n[1])?"builtin":void 0!==a(t.immediateWordList,n[1])?"keyword":"("===n[1]?(e.eatWhile((function(e){return")"!==e})),e.eat(")"),"comment"):".("===n[1]?(e.eatWhile((function(e){return")"!==e})),e.eat(")"),"string"):'S"'===n[1]||'."'===n[1]||'C"'===n[1]?(e.eatWhile((function(e){return'"'!==e})),e.eat('"'),"string"):n[1]-68719476735?"number":"atom":void 0}}},882:(e,t,n)=>{function r(e){for(var t={},n=0;nu});var i=r(["abstract","accept","allocatable","allocate","array","assign","asynchronous","backspace","bind","block","byte","call","case","class","close","common","contains","continue","cycle","data","deallocate","decode","deferred","dimension","do","elemental","else","encode","end","endif","entry","enumerator","equivalence","exit","external","extrinsic","final","forall","format","function","generic","go","goto","if","implicit","import","include","inquire","intent","interface","intrinsic","module","namelist","non_intrinsic","non_overridable","none","nopass","nullify","open","optional","options","parameter","pass","pause","pointer","print","private","program","protected","public","pure","read","recursive","result","return","rewind","save","select","sequence","stop","subroutine","target","then","to","type","use","value","volatile","where","while","write"]),o=r(["abort","abs","access","achar","acos","adjustl","adjustr","aimag","aint","alarm","all","allocated","alog","amax","amin","amod","and","anint","any","asin","associated","atan","besj","besjn","besy","besyn","bit_size","btest","cabs","ccos","ceiling","cexp","char","chdir","chmod","clog","cmplx","command_argument_count","complex","conjg","cos","cosh","count","cpu_time","cshift","csin","csqrt","ctime","c_funloc","c_loc","c_associated","c_null_ptr","c_null_funptr","c_f_pointer","c_null_char","c_alert","c_backspace","c_form_feed","c_new_line","c_carriage_return","c_horizontal_tab","c_vertical_tab","dabs","dacos","dasin","datan","date_and_time","dbesj","dbesj","dbesjn","dbesy","dbesy","dbesyn","dble","dcos","dcosh","ddim","derf","derfc","dexp","digits","dim","dint","dlog","dlog","dmax","dmin","dmod","dnint","dot_product","dprod","dsign","dsinh","dsin","dsqrt","dtanh","dtan","dtime","eoshift","epsilon","erf","erfc","etime","exit","exp","exponent","extends_type_of","fdate","fget","fgetc","float","floor","flush","fnum","fputc","fput","fraction","fseek","fstat","ftell","gerror","getarg","get_command","get_command_argument","get_environment_variable","getcwd","getenv","getgid","getlog","getpid","getuid","gmtime","hostnm","huge","iabs","iachar","iand","iargc","ibclr","ibits","ibset","ichar","idate","idim","idint","idnint","ieor","ierrno","ifix","imag","imagpart","index","int","ior","irand","isatty","ishft","ishftc","isign","iso_c_binding","is_iostat_end","is_iostat_eor","itime","kill","kind","lbound","len","len_trim","lge","lgt","link","lle","llt","lnblnk","loc","log","logical","long","lshift","lstat","ltime","matmul","max","maxexponent","maxloc","maxval","mclock","merge","move_alloc","min","minexponent","minloc","minval","mod","modulo","mvbits","nearest","new_line","nint","not","or","pack","perror","precision","present","product","radix","rand","random_number","random_seed","range","real","realpart","rename","repeat","reshape","rrspacing","rshift","same_type_as","scale","scan","second","selected_int_kind","selected_real_kind","set_exponent","shape","short","sign","signal","sinh","sin","sleep","sngl","spacing","spread","sqrt","srand","stat","sum","symlnk","system","system_clock","tan","tanh","time","tiny","transfer","transpose","trim","ttynam","ubound","umask","unlink","unpack","verify","xor","zabs","zcos","zexp","zlog","zsin","zsqrt"]),a=r(["c_bool","c_char","c_double","c_double_complex","c_float","c_float_complex","c_funptr","c_int","c_int16_t","c_int32_t","c_int64_t","c_int8_t","c_int_fast16_t","c_int_fast32_t","c_int_fast64_t","c_int_fast8_t","c_int_least16_t","c_int_least32_t","c_int_least64_t","c_int_least8_t","c_intmax_t","c_intptr_t","c_long","c_long_double","c_long_double_complex","c_long_long","c_ptr","c_short","c_signed_char","c_size_t","character","complex","double","integer","logical","real"]),s=/[+\-*&=<>\/\:]/,l=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function c(e,t){if(e.match(l))return"operator";var n,r=e.next();if("!"==r)return e.skipToEnd(),"comment";if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]\(\),]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if(s.test(r))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_]/);var c=e.current().toLowerCase();return i.hasOwnProperty(c)?"keyword":o.hasOwnProperty(c)||a.hasOwnProperty(c)?"builtin":"variable"}const u={name:"fortran",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||c)(e,t);return n}}},95123:(e,t,n)=>{function r(e){var t=[],n="",r={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"},i={};function o(e,t){for(var n,r=!1;null!=(n=e.next());){if("/"===n&&r){t.tokenize=null;break}r="*"===n}return"comment"}return"x86"===e?(n="#",i.al="variable",i.ah="variable",i.ax="variable",i.eax="variableName.special",i.rax="variableName.special",i.bl="variable",i.bh="variable",i.bx="variable",i.ebx="variableName.special",i.rbx="variableName.special",i.cl="variable",i.ch="variable",i.cx="variable",i.ecx="variableName.special",i.rcx="variableName.special",i.dl="variable",i.dh="variable",i.dx="variable",i.edx="variableName.special",i.rdx="variableName.special",i.si="variable",i.esi="variableName.special",i.rsi="variableName.special",i.di="variable",i.edi="variableName.special",i.rdi="variableName.special",i.sp="variable",i.esp="variableName.special",i.rsp="variableName.special",i.bp="variable",i.ebp="variableName.special",i.rbp="variableName.special",i.ip="variable",i.eip="variableName.special",i.rip="variableName.special",i.cs="keyword",i.ds="keyword",i.ss="keyword",i.es="keyword",i.fs="keyword",i.gs="keyword"):"arm"!==e&&"armv6"!==e||(n="@",r.syntax="builtin",i.r0="variable",i.r1="variable",i.r2="variable",i.r3="variable",i.r4="variable",i.r5="variable",i.r6="variable",i.r7="variable",i.r8="variable",i.r9="variable",i.r10="variable",i.r11="variable",i.r12="variable",i.sp="variableName.special",i.lr="variableName.special",i.pc="variableName.special",i.r13=i.sp,i.r14=i.lr,i.r15=i.pc,t.push((function(e,t){if("#"===e)return t.eatWhile(/\w/),"number"}))),{name:"gas",startState:function(){return{tokenize:null}},token:function(e,a){if(a.tokenize)return a.tokenize(e,a);if(e.eatSpace())return null;var s,l,c=e.next();if("/"===c&&e.eat("*"))return a.tokenize=o,o(e,a);if(c===n)return e.skipToEnd(),"comment";if('"'===c)return function(e,t){for(var n,r=!1;null!=(n=e.next());){if(n===t&&!r)return!1;r=!r&&"\\"===n}}(e,'"'),"string";if("."===c)return e.eatWhile(/\w/),l=e.current().toLowerCase(),(s=r[l])||null;if("="===c)return e.eatWhile(/\w/),"tag";if("{"===c)return"bracket";if("}"===c)return"bracket";if(/\d/.test(c))return"0"===c&&e.eat("x")?(e.eatWhile(/[0-9a-fA-F]/),"number"):(e.eatWhile(/\d/),"number");if(/\w/.test(c))return e.eatWhile(/\w/),e.eat(":")?"tag":(l=e.current().toLowerCase(),(s=i[l])||null);for(var u=0;ui,gasArm:()=>o});const i=r("x86"),o=r("arm")},4487:(e,t,n)=>{n.r(t),n.d(t,{gherkin:()=>r});const r={name:"gherkin",startState:function(){return{lineNumber:0,tableHeaderLine:!1,allowFeature:!0,allowBackground:!1,allowScenario:!1,allowSteps:!1,allowPlaceholders:!1,allowMultilineArgument:!1,inMultilineString:!1,inMultilineTable:!1,inKeywordLine:!1}},token:function(e,t){if(e.sol()&&(t.lineNumber++,t.inKeywordLine=!1,t.inMultilineTable&&(t.tableHeaderLine=!1,e.match(/\s*\|/,!1)||(t.allowMultilineArgument=!1,t.inMultilineTable=!1))),e.eatSpace(),t.allowMultilineArgument){if(t.inMultilineString)return e.match('"""')?(t.inMultilineString=!1,t.allowMultilineArgument=!1):e.match(/.*/),"string";if(t.inMultilineTable)return e.match(/\|\s*/)?"bracket":(e.match(/[^\|]*/),t.tableHeaderLine?"header":"string");if(e.match('"""'))return t.inMultilineString=!0,"string";if(e.match("|"))return t.inMultilineTable=!0,t.tableHeaderLine=!0,"bracket"}return e.match(/#.*/)?"comment":!t.inKeywordLine&&e.match(/@\S+/)?"tag":!t.inKeywordLine&&t.allowFeature&&e.match(/(\u6a5f\u80fd|\u529f\u80fd|\u30d5\u30a3\u30fc\u30c1\u30e3|\uae30\ub2a5|\u0e42\u0e04\u0e23\u0e07\u0e2b\u0e25\u0e31\u0e01|\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16|\u0e04\u0e27\u0e32\u0e21\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e17\u0e32\u0e07\u0e18\u0e38\u0e23\u0e01\u0e34\u0e08|\u0cb9\u0cc6\u0c9a\u0ccd\u0c9a\u0cb3|\u0c17\u0c41\u0c23\u0c2e\u0c41|\u0a2e\u0a41\u0a39\u0a3e\u0a02\u0a26\u0a30\u0a3e|\u0a28\u0a15\u0a36 \u0a28\u0a41\u0a39\u0a3e\u0a30|\u0a16\u0a3e\u0a38\u0a40\u0a05\u0a24|\u0930\u0942\u092a \u0932\u0947\u0916|\u0648\u0650\u06cc\u0698\u06af\u06cc|\u062e\u0627\u0635\u064a\u0629|\u05ea\u05db\u05d5\u05e0\u05d4|\u0424\u0443\u043d\u043a\u0446\u0456\u043e\u043d\u0430\u043b|\u0424\u0443\u043d\u043a\u0446\u0438\u044f|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u043d\u043e\u0441\u0442|\u0424\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b|\u04ae\u0437\u0435\u043d\u0447\u04d9\u043b\u0435\u043a\u043b\u0435\u043b\u0435\u043a|\u0421\u0432\u043e\u0439\u0441\u0442\u0432\u043e|\u041e\u0441\u043e\u0431\u0438\u043d\u0430|\u041c\u04e9\u043c\u043a\u0438\u043d\u043b\u0435\u043a|\u041c\u043e\u0433\u0443\u045b\u043d\u043e\u0441\u0442|\u039b\u03b5\u03b9\u03c4\u03bf\u03c5\u03c1\u03b3\u03af\u03b1|\u0394\u03c5\u03bd\u03b1\u03c4\u03cc\u03c4\u03b7\u03c4\u03b1|W\u0142a\u015bciwo\u015b\u0107|Vlastnos\u0165|Trajto|T\xednh n\u0103ng|Savyb\u0117|Pretty much|Po\u017eiadavka|Po\u017eadavek|Potrzeba biznesowa|\xd6zellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogu\u0107nost|Mogucnost|Jellemz\u0151|Hw\xe6t|Hwaet|Funzionalit\xe0|Funktionalit\xe9it|Funktionalit\xe4t|Funkcja|Funkcionalnost|Funkcionalit\u0101te|Funkcia|Fungsi|Functionaliteit|Func\u021bionalitate|Func\u0163ionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalit\xe9|Fitur|F\u012b\u010da|Feature|Eiginleiki|Egenskap|Egenskab|Caracter\xedstica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)?(t.allowScenario=!0,t.allowBackground=!0,t.allowPlaceholders=!1,t.allowSteps=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowBackground&&e.match(/(\u80cc\u666f|\ubc30\uacbd|\u0e41\u0e19\u0e27\u0e04\u0e34\u0e14|\u0cb9\u0cbf\u0ca8\u0ccd\u0ca8\u0cc6\u0cb2\u0cc6|\u0c28\u0c47\u0c2a\u0c25\u0c4d\u0c2f\u0c02|\u0a2a\u0a3f\u0a1b\u0a4b\u0a15\u0a5c|\u092a\u0943\u0937\u094d\u0920\u092d\u0942\u092e\u093f|\u0632\u0645\u06cc\u0646\u0647|\u0627\u0644\u062e\u0644\u0641\u064a\u0629|\u05e8\u05e7\u05e2|\u0422\u0430\u0440\u0438\u0445|\u041f\u0440\u0435\u0434\u044b\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u0440\u0435\u0434\u0438\u0441\u0442\u043e\u0440\u0438\u044f|\u041f\u043e\u0437\u0430\u0434\u0438\u043d\u0430|\u041f\u0435\u0440\u0435\u0434\u0443\u043c\u043e\u0432\u0430|\u041e\u0441\u043d\u043e\u0432\u0430|\u041a\u043e\u043d\u0442\u0435\u043a\u0441\u0442|\u041a\u0435\u0440\u0435\u0448|\u03a5\u03c0\u03cc\u03b2\u03b1\u03b8\u03c1\u03bf|Za\u0142o\u017cenia|Yo\-ho\-ho|Tausta|Taust|Situ\u0101cija|Rerefons|Pozadina|Pozadie|Pozad\xed|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|H\xe1tt\xe9r|Hannergrond|Grundlage|Ge\xe7mi\u015f|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cen\xe1rio de Fundo|Cenario de Fundo|Cefndir|B\u1ed1i c\u1ea3nh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|\xc6r|Aer|Achtergrond):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(\u5834\u666f\u5927\u7db1|\u573a\u666f\u5927\u7eb2|\u5287\u672c\u5927\u7db1|\u5267\u672c\u5927\u7eb2|\u30c6\u30f3\u30d7\u30ec|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8|\u30b7\u30ca\u30ea\u30aa\u30c6\u30f3\u30d7\u30ec|\u30b7\u30ca\u30ea\u30aa\u30a2\u30a6\u30c8\u30e9\u30a4\u30f3|\uc2dc\ub098\ub9ac\uc624 \uac1c\uc694|\u0e2a\u0e23\u0e38\u0e1b\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e42\u0e04\u0e23\u0e07\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0cb5\u0cbf\u0cb5\u0cb0\u0ca3\u0cc6|\u0c15\u0c25\u0c28\u0c02|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a30\u0a42\u0a2a \u0a30\u0a47\u0a16\u0a3e|\u0a2a\u0a1f\u0a15\u0a25\u0a3e \u0a22\u0a3e\u0a02\u0a1a\u0a3e|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f \u0930\u0942\u092a\u0930\u0947\u0916\u093e|\u0633\u064a\u0646\u0627\u0631\u064a\u0648 \u0645\u062e\u0637\u0637|\u0627\u0644\u06af\u0648\u06cc \u0633\u0646\u0627\u0631\u06cc\u0648|\u05ea\u05d1\u05e0\u05d9\u05ea \u05ea\u05e8\u05d7\u05d9\u05e9|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439\u043d\u044b\u04a3 \u0442\u04e9\u0437\u0435\u043b\u0435\u0448\u0435|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430\u0441\u0438|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0456\u044e|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u044f|\u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0430|\u0421\u043a\u0438\u0446\u0430|\u0420\u0430\u043c\u043a\u0430 \u043d\u0430 \u0441\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u041a\u043e\u043d\u0446\u0435\u043f\u0442|\u03a0\u03b5\u03c1\u03b9\u03b3\u03c1\u03b1\u03c6\u03ae \u03a3\u03b5\u03bd\u03b1\u03c1\u03af\u03bf\u03c5|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hw\xe6r swa|Swa hwaer swa|Struktura scenarija|Structur\u0103 scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo tasla\u011f\u0131|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scen\u0101rijs p\u0113c parauga|Scenarijaus \u0161ablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Sc\xe9nario|Plan du sc\xe9nario|Osnova sc\xe9n\xe1\u0159e|Osnova Scen\xe1ra|N\xe1\u010drt Scen\xe1ru|N\xe1\u010drt Sc\xe9n\xe1\u0159e|N\xe1\u010drt Scen\xe1ra|MISHUN SRSLY|Menggariskan Senario|L\xfdsing D\xe6ma|L\xfdsing Atbur\xf0ar\xe1sar|Konturo de la scenaro|Koncept|Khung t\xecnh hu\u1ed1ng|Khung k\u1ecbch b\u1ea3n|Forgat\xf3k\xf6nyv v\xe1zlat|Esquema do Cen\xe1rio|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delinea\xe7\xe3o do Cen\xe1rio|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)?(t.allowPlaceholders=!0,t.allowSteps=!0,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):t.allowScenario&&e.match(/(\u4f8b\u5b50|\u4f8b|\u30b5\u30f3\u30d7\u30eb|\uc608|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0e0a\u0e38\u0e14\u0e02\u0e2d\u0e07\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07|\u0c89\u0ca6\u0cbe\u0cb9\u0cb0\u0ca3\u0cc6\u0c97\u0cb3\u0cc1|\u0c09\u0c26\u0c3e\u0c39\u0c30\u0c23\u0c32\u0c41|\u0a09\u0a26\u0a3e\u0a39\u0a30\u0a28\u0a3e\u0a02|\u0909\u0926\u093e\u0939\u0930\u0923|\u0646\u0645\u0648\u0646\u0647 \u0647\u0627|\u0627\u0645\u062b\u0644\u0629|\u05d3\u05d5\u05d2\u05de\u05d0\u05d5\u05ea|\u04ae\u0440\u043d\u04d9\u043a\u043b\u04d9\u0440|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0458\u0438|\u041f\u0440\u0438\u043c\u0435\u0440\u044b|\u041f\u0440\u0438\u043c\u0435\u0440\u0438|\u041f\u0440\u0438\u043a\u043b\u0430\u0434\u0438|\u041c\u0438\u0441\u043e\u043b\u043b\u0430\u0440|\u041c\u0438\u0441\u0430\u043b\u043b\u0430\u0440|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03b1|\u03a0\u03b1\u03c1\u03b1\u03b4\u03b5\u03af\u03b3\u03bc\u03b1\u03c4\u03b1|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se \xfee|Se the|Se \xf0e|Scenarios|Scenariji|Scenarijai|Przyk\u0142ady|Primjeri|Primeri|P\u0159\xedklady|Pr\xedklady|Piem\u0113ri|P\xe9ld\xe1k|Pavyzd\u017eiai|Paraugs|\xd6rnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|D\u1eef li\u1ec7u|Dead men tell no tales|D\xe6mi|Contoh|Cen\xe1rios|Cenarios|Beispiller|Beispiele|Atbur\xf0ar\xe1sir):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!0,"keyword"):!t.inKeywordLine&&t.allowScenario&&e.match(/(\u5834\u666f|\u573a\u666f|\u5287\u672c|\u5267\u672c|\u30b7\u30ca\u30ea\u30aa|\uc2dc\ub098\ub9ac\uc624|\u0e40\u0e2b\u0e15\u0e38\u0e01\u0e32\u0e23\u0e13\u0e4c|\u0c95\u0ca5\u0cbe\u0cb8\u0cbe\u0cb0\u0cbe\u0c82\u0cb6|\u0c38\u0c28\u0c4d\u0c28\u0c3f\u0c35\u0c47\u0c36\u0c02|\u0a2a\u0a1f\u0a15\u0a25\u0a3e|\u092a\u0930\u093f\u0926\u0943\u0936\u094d\u092f|\u0633\u064a\u0646\u0627\u0631\u064a\u0648|\u0633\u0646\u0627\u0631\u06cc\u0648|\u05ea\u05e8\u05d7\u05d9\u05e9|\u0421\u0446\u0435\u043d\u0430\u0440\u0456\u0439|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u043e|\u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439|\u041f\u0440\u0438\u043c\u0435\u0440|\u03a3\u03b5\u03bd\u03ac\u03c1\u03b9\u03bf|T\xecnh hu\u1ed1ng|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Sc\xe9nario|Scenario|Scenarijus|Scen\u0101rijs|Scenarij|Scenarie|Sc\xe9n\xe1\u0159|Scen\xe1r|Primer|MISHUN|K\u1ecbch b\u1ea3n|Keadaan|Heave to|Forgat\xf3k\xf6nyv|Escenario|Escenari|Cen\xe1rio|Cenario|Awww, look mate|Atbur\xf0ar\xe1s):/)?(t.allowPlaceholders=!1,t.allowSteps=!0,t.allowBackground=!1,t.allowMultilineArgument=!1,t.inKeywordLine=!0,"keyword"):!t.inKeywordLine&&t.allowSteps&&e.match(/(\u90a3\u9ebc|\u90a3\u4e48|\u800c\u4e14|\u7576|\u5f53|\u5e76\u4e14|\u540c\u6642|\u540c\u65f6|\u524d\u63d0|\u5047\u8bbe|\u5047\u8a2d|\u5047\u5b9a|\u5047\u5982|\u4f46\u662f|\u4f46\u3057|\u4e26\u4e14|\u3082\u3057|\u306a\u3089\u3070|\u305f\u3060\u3057|\u3057\u304b\u3057|\u304b\u3064|\ud558\uc9c0\ub9cc|\uc870\uac74|\uba3c\uc800|\ub9cc\uc77c|\ub9cc\uc57d|\ub2e8|\uadf8\ub9ac\uace0|\uadf8\ub7ec\uba74|\u0e41\u0e25\u0e30 |\u0e40\u0e21\u0e37\u0e48\u0e2d |\u0e41\u0e15\u0e48 |\u0e14\u0e31\u0e07\u0e19\u0e31\u0e49\u0e19 |\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e2b\u0e49 |\u0cb8\u0ccd\u0ca5\u0cbf\u0ca4\u0cbf\u0caf\u0ca8\u0ccd\u0ca8\u0cc1 |\u0cae\u0ca4\u0ccd\u0ca4\u0cc1 |\u0ca8\u0cbf\u0cd5\u0ca1\u0cbf\u0ca6 |\u0ca8\u0c82\u0ca4\u0cb0 |\u0c86\u0ca6\u0cb0\u0cc6 |\u0c2e\u0c30\u0c3f\u0c2f\u0c41 |\u0c1a\u0c46\u0c2a\u0c4d\u0c2a\u0c2c\u0c21\u0c3f\u0c28\u0c26\u0c3f |\u0c15\u0c3e\u0c28\u0c3f |\u0c08 \u0c2a\u0c30\u0c3f\u0c38\u0c4d\u0c25\u0c3f\u0c24\u0c3f\u0c32\u0c4b |\u0c05\u0c2a\u0c4d\u0c2a\u0c41\u0c21\u0c41 |\u0a2a\u0a30 |\u0a24\u0a26 |\u0a1c\u0a47\u0a15\u0a30 |\u0a1c\u0a3f\u0a35\u0a47\u0a02 \u0a15\u0a3f |\u0a1c\u0a26\u0a4b\u0a02 |\u0a05\u0a24\u0a47 |\u092f\u0926\u093f |\u092a\u0930\u0928\u094d\u0924\u0941 |\u092a\u0930 |\u0924\u092c |\u0924\u0926\u093e |\u0924\u0925\u093e |\u091c\u092c |\u091a\u0942\u0902\u0915\u093f |\u0915\u093f\u0928\u094d\u0924\u0941 |\u0915\u0926\u093e |\u0914\u0930 |\u0905\u0917\u0930 |\u0648 |\u0647\u0646\u06af\u0627\u0645\u06cc |\u0645\u062a\u0649 |\u0644\u0643\u0646 |\u0639\u0646\u062f\u0645\u0627 |\u062b\u0645 |\u0628\u0641\u0631\u0636 |\u0628\u0627 \u0641\u0631\u0636 |\u0627\u0645\u0627 |\u0627\u0630\u0627\u064b |\u0622\u0646\u06af\u0627\u0647 |\u05db\u05d0\u05e9\u05e8 |\u05d5\u05d2\u05dd |\u05d1\u05d4\u05d9\u05e0\u05ea\u05df |\u05d0\u05d6\u05d9 |\u05d0\u05d6 |\u05d0\u05d1\u05dc |\u042f\u043a\u0449\u043e |\u04ba\u04d9\u043c |\u0423\u043d\u0434\u0430 |\u0422\u043e\u0434\u0456 |\u0422\u043e\u0433\u0434\u0430 |\u0422\u043e |\u0422\u0430\u043a\u0436\u0435 |\u0422\u0430 |\u041f\u0443\u0441\u0442\u044c |\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e, \u0449\u043e |\u041f\u0440\u0438\u043f\u0443\u0441\u0442\u0438\u043c\u043e |\u041e\u043d\u0434\u0430 |\u041d\u043e |\u041d\u0435\u0445\u0430\u0439 |\u041d\u04d9\u0442\u0438\u0497\u04d9\u0434\u04d9 |\u041b\u0435\u043a\u0438\u043d |\u041b\u04d9\u043a\u0438\u043d |\u041a\u043e\u043b\u0438 |\u041a\u043e\u0433\u0434\u0430 |\u041a\u043e\u0433\u0430\u0442\u043e |\u041a\u0430\u0434\u0430 |\u041a\u0430\u0434 |\u041a \u0442\u043e\u043c\u0443 \u0436\u0435 |\u0406 |\u0418 |\u0417\u0430\u0434\u0430\u0442\u043e |\u0417\u0430\u0434\u0430\u0442\u0438 |\u0417\u0430\u0434\u0430\u0442\u0435 |\u0415\u0441\u043b\u0438 |\u0414\u043e\u043f\u0443\u0441\u0442\u0438\u043c |\u0414\u0430\u043d\u043e |\u0414\u0430\u0434\u0435\u043d\u043e |\u0412\u04d9 |\u0412\u0430 |\u0411\u0438\u0440\u043e\u043a |\u04d8\u043c\u043c\u0430 |\u04d8\u0439\u0442\u0438\u043a |\u04d8\u0433\u04d9\u0440 |\u0410\u043c\u043c\u043e |\u0410\u043b\u0438 |\u0410\u043b\u0435 |\u0410\u0433\u0430\u0440 |\u0410 \u0442\u0430\u043a\u043e\u0436 |\u0410 |\u03a4\u03cc\u03c4\u03b5 |\u038c\u03c4\u03b1\u03bd |\u039a\u03b1\u03b9 |\u0394\u03b5\u03b4\u03bf\u03bc\u03ad\u03bd\u03bf\u03c5 |\u0391\u03bb\u03bb\u03ac |\xdeurh |\xdeegar |\xdea \xfee |\xde\xe1 |\xdea |Zatati |Zak\u0142adaj\u0105c |Zadato |Zadate |Zadano |Zadani |Zadan |Za p\u0159edpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |V\xe0 |Und |Un |ugeholl |Too right |Thurh |Th\xec |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |\u0218i |\u015ei |Si |Sed |Se |S\xe5 |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokia\u013e |Per\xf2 |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nh\u01b0ng |N\xe4r |N\xe5r |Mutta |Men |Mas |Maka |Majd |Maj\u0105c |Mais |Maar |m\xe4 |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Ke\u010f |Kdy\u017e |Kaj |Kai |Kada |Kad |Je\u017celi |Je\u015bli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |\xc9tant donn\xe9s |Etant donn\xe9s |\xc9tant donn\xe9es |Etant donn\xe9es |\xc9tant donn\xe9e |Etant donn\xe9e |\xc9tant donn\xe9 |Etant donn\xe9 |Et |\xc9s |Entonces |Ent\xf3n |Ent\xe3o |Entao |En |E\u011fer ki |Ef |Eeldades |E |\xd0urh |Duota |Dun |Donita\u0135o |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Da\u021bi fiind |Da\u0163i fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |\xd0a \xf0e |\xd0a |Cuando |Cho |Cando |C\xe2nd |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Bi\u1ebft |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |At\xe8s |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A z\xe1rove\u0148 |A tie\u017e |A taktie\u017e |A tak\xe9 |A |a |7 |\* )/)?(t.inStep=!0,t.allowPlaceholders=!0,t.allowMultilineArgument=!0,t.inKeywordLine=!0,"keyword"):e.match(/"[^"]*"?/)?"string":t.allowPlaceholders&&e.match(/<[^>]*>?/)?"variable":(e.next(),e.eatWhile(/[^@"<#]/),null)}}},37151:(e,t,n)=>{n.r(t),n.d(t,{go:()=>h});var r,i={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0,any:!0,comparable:!0},o={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},a=/[+\-*&^%:=<>!|\/]/;function s(e,t){var n,c=e.next();if('"'==c||"'"==c||"`"==c)return t.tokenize=(n=c,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"`"!=n&&"\\"==r}return(o||!i&&"`"!=n)&&(t.tokenize=s),"string"}),t.tokenize(e,t);if(/[\d\.]/.test(c))return"."==c?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==c?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(c))return r=c,null;if("/"==c){if(e.eat("*"))return t.tokenize=l,l(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(a.test(c))return e.eatWhile(a),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var u=e.current();return i.propertyIsEnumerable(u)?("case"!=u&&"default"!=u||(r="case"),"keyword"):o.propertyIsEnumerable(u)?"atom":"variable"}function l(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=s;break}r="*"==n}return"comment"}function c(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function u(e,t,n){return e.context=new c(e.indented,t,n,null,e.context)}function d(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}const h={name:"go",startState:function(e){return{tokenize:null,context:new c(-e,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==n.type&&(n.type="}")),e.eatSpace())return null;r=null;var i=(t.tokenize||s)(e,t);return"comment"==i||(null==n.align&&(n.align=!0),"{"==r?u(t,e.column(),"}"):"["==r?u(t,e.column(),"]"):"("==r?u(t,e.column(),")"):"case"==r?n.type="case":("}"==r&&"}"==n.type||r==n.type)&&d(t),t.startOfLine=!1),i},indent:function(e,t,n){if(e.tokenize!=s&&null!=e.tokenize)return null;var r=e.context,i=t&&t.charAt(0);if("case"==r.type&&/^(?:case|default)\b/.test(t))return r.indented;var o=i==r.type;return r.align?r.column+(o?0:1):r.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s([{}]|case |default\s*:)$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}},9063:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rv});var i,o=r("abstract as assert boolean break byte case catch char class const continue def default do double else enum extends final finally float for goto if implements import in instanceof int interface long native new package private protected public return short static strictfp super switch synchronized threadsafe throw throws trait transient try void volatile while"),a=r("catch class def do else enum finally for if interface switch trait try while"),s=r("return break continue"),l=r("null true false this");function c(e,t){var n=e.next();if('"'==n||"'"==n)return u(n,e,t);if(/[\[\]{}\(\),;\:\.]/.test(n))return i=n,null;if(/\d/.test(n))return e.eatWhile(/[\w\.]/),e.eat(/eE/)&&(e.eat(/\+\-/),e.eatWhile(/\d/)),"number";if("/"==n){if(e.eat("*"))return t.tokenize.push(f),f(e,t);if(e.eat("/"))return e.skipToEnd(),"comment";if(m(t.lastToken,!1))return u(n,e,t)}if("-"==n&&e.eat(">"))return i="->",null;if(/[+\-*&%=<>!?|\/~]/.test(n))return e.eatWhile(/[+\-*&%=<>|~]/),"operator";if(e.eatWhile(/[\w\$_]/),"@"==n)return e.eatWhile(/[\w\$_\.]/),"meta";if("."==t.lastToken)return"property";if(e.eat(":"))return i="proplabel","property";var r=e.current();return l.propertyIsEnumerable(r)?"atom":o.propertyIsEnumerable(r)?(a.propertyIsEnumerable(r)?i="newstatement":s.propertyIsEnumerable(r)&&(i="standalone"),"keyword"):"variable"}function u(e,t,n){var r=!1;if("/"!=e&&t.eat(e)){if(!t.eat(e))return"string";r=!0}function i(t,n){for(var i,o=!1,a=!r;null!=(i=t.next());){if(i==e&&!o){if(!r)break;if(t.match(e+e)){a=!0;break}}if('"'==e&&"$"==i&&!o){if(t.eat("{"))return n.tokenize.push(d()),"string";if(t.match(/^\w/,!1))return n.tokenize.push(h),"string"}o=!o&&"\\"==i}return a&&n.tokenize.pop(),"string"}return n.tokenize.push(i),i(t,n)}function d(){var e=1;function t(t,n){if("}"==t.peek()){if(0==--e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)}else"{"==t.peek()&&e++;return c(t,n)}return t.isBase=!0,t}function h(e,t){var n=e.match(/^(\.|[\w\$_]+)/);return n?"."==n[0]?null:"variable":(t.tokenize.pop(),t.tokenize[t.tokenize.length-1](e,t))}function f(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize.pop();break}r="*"==n}return"comment"}function m(e,t){return!e||"operator"==e||"->"==e||/[\.\[\{\(,;:]/.test(e)||"newstatement"==e||"keyword"==e||"proplabel"==e||"standalone"==e&&!t}function p(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function g(e,t,n){return e.context=new p(e.indented,t,n,null,e.context)}function b(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}c.isBase=!0;const v={name:"groovy",startState:function(e){return{tokenize:[c],context:new p(-e,0,"top",!1),indented:0,startOfLine:!0,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"statement"!=n.type||m(t.lastToken,!0)||(b(t),n=t.context)),e.eatSpace())return null;i=null;var r=t.tokenize[t.tokenize.length-1](e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=i&&":"!=i||"statement"!=n.type)if("->"==i&&"statement"==n.type&&"}"==n.prev.type)b(t),t.context.align=!1;else if("{"==i)g(t,e.column(),"}");else if("["==i)g(t,e.column(),"]");else if("("==i)g(t,e.column(),")");else if("}"==i){for(;"statement"==n.type;)n=b(t);for("}"==n.type&&(n=b(t));"statement"==n.type;)n=b(t)}else i==n.type?b(t):("}"==n.type||"top"==n.type||"statement"==n.type&&"newstatement"==i)&&g(t,e.column(),"statement");else b(t);return t.startOfLine=!1,t.lastToken=i||r,r},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),i=e.context;"statement"!=i.type||m(e.lastToken,!0)||(i=i.prev);var o=r==i.type;return"statement"==i.type?i.indented+("{"==r?0:n.unit):i.align?i.column+(o?0:1):i.indented+(o?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}},56260:(e,t,n)=>{function r(e,t,n){return t(n),n(e,t)}n.r(t),n.d(t,{haskell:()=>v});var i=/[a-z_]/,o=/[A-Z]/,a=/\d/,s=/[0-9A-Fa-f]/,l=/[0-7]/,c=/[a-z_A-Z0-9'\xa1-\uffff]/,u=/[-!#$%&*+.\/<=>?@\\^|~:]/,d=/[(),;[\]`{}]/,h=/[ \t\v\f]/;function f(e,t){if(e.eatWhile(h))return null;var n=e.next();if(d.test(n)){if("{"==n&&e.eat("-")){var f="comment";return e.eat("#")&&(f="meta"),r(e,t,m(f,1))}return null}if("'"==n)return e.eat("\\"),e.next(),e.eat("'")?"string":"error";if('"'==n)return r(e,t,p);if(o.test(n))return e.eatWhile(c),e.eat(".")?"qualifier":"type";if(i.test(n))return e.eatWhile(c),"variable";if(a.test(n)){if("0"==n){if(e.eat(/[xX]/))return e.eatWhile(s),"integer";if(e.eat(/[oO]/))return e.eatWhile(l),"number"}e.eatWhile(a);f="number";return e.match(/^\.\d+/)&&(f="number"),e.eat(/[eE]/)&&(f="number",e.eat(/[-+]/),e.eatWhile(a)),f}return"."==n&&e.eat(".")?"keyword":u.test(n)?"-"==n&&e.eat(/-/)&&(e.eatWhile(/-/),!e.eat(u))?(e.skipToEnd(),"comment"):(e.eatWhile(u),"variable"):"error"}function m(e,t){return 0==t?f:function(n,r){for(var i=t;!n.eol();){var o=n.next();if("{"==o&&n.eat("-"))++i;else if("-"==o&&n.eat("}")&&0==--i)return r(f),e}return r(m(e,i)),e}}function p(e,t){for(;!e.eol();){var n=e.next();if('"'==n)return t(f),"string";if("\\"==n){if(e.eol()||e.eat(h))return t(g),"string";e.eat("&")||e.next()}}return t(f),"error"}function g(e,t){return e.eat("\\")?r(e,t,p):(e.next(),t(f),"error")}var b=function(){var e={};function t(t){return function(){for(var n=0;n","@","~","=>"),t("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**"),t("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True"),t("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3"),e}();const v={name:"haskell",startState:function(){return{f:f}},copyState:function(e){return{f:e.f}},token:function(e,t){var n=t.f(e,(function(e){t.f=e})),r=e.current();return b.hasOwnProperty(r)?b[r]:n},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}}},59205:(e,t,n)=>{function r(e){return{type:e,style:"keyword"}}n.r(t),n.d(t,{haxe:()=>ie,hxml:()=>oe});var i,o=r("keyword a"),a=r("keyword b"),s=r("keyword c"),l=r("operator"),c={type:"atom",style:"atom"},u={type:"attribute",style:"attribute"},d=r("typedef"),h={if:o,while:o,else:a,do:a,try:a,return:s,break:s,continue:s,new:s,throw:s,var:r("var"),inline:u,static:u,using:r("import"),public:u,private:u,cast:r("cast"),import:r("import"),macro:r("macro"),function:r("function"),catch:r("catch"),untyped:r("untyped"),callback:r("cb"),for:r("for"),switch:r("switch"),case:r("case"),default:r("default"),in:l,never:r("property_access"),trace:r("trace"),class:d,abstract:d,enum:d,interface:d,typedef:d,extends:d,implements:d,dynamic:d,true:c,false:c,null:c},f=/[+\-*&%=<>!?|]/;function m(e,t,n){return t.tokenize=n,n(e,t)}function p(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t&&!r)return!0;r=!r&&"\\"==n}}function g(e,t,n){return d=e,i=n,t}function b(e,t){var n=e.next();if('"'==n||"'"==n)return m(e,t,(r=n,function(e,t){return p(e,r)&&(t.tokenize=b),g("string","string")}));if(/[\[\]{}\(\),;\:\.]/.test(n))return g(n);if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),g("number","number");if(/\d/.test(n)||"-"==n&&e.eat(/\d/))return e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/),g("number","number");if(t.reAllowed&&"~"==n&&e.eat(/\//))return p(e,"/"),e.eatWhile(/[gimsu]/),g("regexp","string.special");if("/"==n)return e.eat("*")?m(e,t,v):e.eat("/")?(e.skipToEnd(),g("comment","comment")):(e.eatWhile(f),g("operator",null,e.current()));if("#"==n)return e.skipToEnd(),g("conditional","meta");if("@"==n)return e.eat(/:/),e.eatWhile(/[\w_]/),g("metadata","meta");if(f.test(n))return e.eatWhile(f),g("operator",null,e.current());if(/[A-Z]/.test(n))return e.eatWhile(/[\w_<>]/),g("type","type",i=e.current());e.eatWhile(/[\w_]/);var r,i=e.current(),o=h.propertyIsEnumerable(i)&&h[i];return o&&t.kwAllowed?g(o.type,o.style,i):g("variable","variable",i)}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=b;break}r="*"==n}return g("comment","comment")}var y={atom:!0,number:!0,variable:!0,string:!0,regexp:!0};function k(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function w(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0}function O(e,t){if(/[a-z]/.test(t.charAt(0)))return!1;for(var n=e.importedtypes.length,r=0;r=0;e--)S.cc.push(arguments[e])}function T(){return _.apply(null,arguments),!0}function E(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function $(e){var t=S.state;if(t.context){if(S.marked="def",E(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(E(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var C={name:"this",next:null};function A(){S.state.context||(S.state.localVars=C),S.state.context={prev:S.state.context,vars:S.state.localVars}}function P(){S.state.localVars=S.state.context.vars,S.state.context=S.state.context.prev}function R(e,t){var n=function(){var n=S.state;n.lexical=new k(n.indented,S.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function I(){var e=S.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function D(e){return function t(n){return n==e?T():";"==e?_():T(t)}}function z(e){return"@"==e?T(q):"var"==e?T(R("vardef"),Z,D(";"),I):"keyword a"==e?T(R("form"),N,z,I):"keyword b"==e?T(R("form"),z,I):"{"==e?T(R("}"),A,X,I,P):";"==e?T():"attribute"==e?T(Q):"function"==e?T(K):"for"==e?T(R("form"),D("("),R(")"),Y,D(")"),I,z,I):"variable"==e?T(R("stat"),F):"switch"==e?T(R("form"),N,R("}","switch"),D("{"),X,I,I):"case"==e?T(N,D(":")):"default"==e?T(D(":")):"catch"==e?T(R("form"),A,D("("),re,D(")"),z,I,P):"import"==e?T(B,D(";")):"typedef"==e?T(U):_(R("stat"),N,D(";"),I)}function N(e){return y.hasOwnProperty(e)||"type"==e?T(M):"function"==e?T(K):"keyword c"==e?T(L):"("==e?T(R(")"),L,D(")"),I,M):"operator"==e?T(N):"["==e?T(R("]"),G(L,"]"),I,M):"{"==e?T(R("}"),G(V,"}"),I,M):T()}function L(e){return e.match(/[;\}\)\],]/)?_():_(N)}function M(e,t){return"operator"==e&&/\+\+|--/.test(t)?T(M):"operator"==e||":"==e?T(N):";"!=e?"("==e?T(R(")"),G(N,")"),I,M):"."==e?T(j,M):"["==e?T(R("]"),N,D("]"),I,M):void 0:void 0}function Q(e){return"attribute"==e?T(Q):"function"==e?T(K):"var"==e?T(Z):void 0}function q(e){return":"==e||"variable"==e?T(q):"("==e?T(R(")"),G(W,")"),I,z):void 0}function W(e){if("variable"==e)return T()}function B(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(x(t),T()):"variable"==e||"property"==e||"."==e||"*"==t?T(B):void 0}function U(e,t){return"variable"==e&&/[A-Z]/.test(t.charAt(0))?(x(t),T()):"type"==e&&/[A-Z]/.test(t.charAt(0))?T():void 0}function F(e){return":"==e?T(I,z):_(M,D(";"),I)}function j(e){if("variable"==e)return S.marked="property",T()}function V(e){if("variable"==e&&(S.marked="property"),y.hasOwnProperty(e))return T(D(":"),N)}function G(e,t){function n(r){return","==r?T(e,n):r==t?T():T(D(t))}return function(r){return r==t?T():_(e,n)}}function X(e){return"}"==e?T():_(z,X)}function Z(e,t){return"variable"==e?($(t),T(ee,H)):T()}function H(e,t){return"="==t?T(N,H):","==e?T(Z):void 0}function Y(e,t){return"variable"==e?($(t),T(J,N)):_()}function J(e,t){if("in"==t)return T()}function K(e,t){return"variable"==e||"type"==e?($(t),T(K)):"new"==t?T(K):"("==e?T(R(")"),A,G(re,")"),I,ee,z,P):void 0}function ee(e){if(":"==e)return T(te)}function te(e){return"type"==e||"variable"==e?T():"{"==e?T(R("}"),G(ne,"}"),I):void 0}function ne(e){if("variable"==e)return T(ee)}function re(e,t){if("variable"==e)return $(t),T(ee)}P.lex=!0,I.lex=!0;const ie={name:"haxe",startState:function(e){return{tokenize:b,reAllowed:!0,kwAllowed:!0,cc:[],lexical:new k(-e,0,"block",!1),importedtypes:["Int","Float","String","Void","Std","Bool","Dynamic","Array"],context:null,indented:0}},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"==d?n:(t.reAllowed=!("operator"!=d&&"keyword c"!=d&&!d.match(/^[\[{}\(,;:]$/)),t.kwAllowed="."!=d,function(e,t,n,r,i){var o=e.cc;for(S.state=e,S.stream=i,S.marked=null,S.cc=o,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((o.length?o.pop():z)(n,r)){for(;o.length&&o[o.length-1].lex;)o.pop()();return S.marked?S.marked:"variable"==n&&w(e,r)?"variableName.local":"variable"==n&&O(e,r)?"variableName.special":t}}(t,n,d,i,e))},indent:function(e,t,n){if(e.tokenize!=b)return 0;var r=t&&t.charAt(0),i=e.lexical;"stat"==i.type&&"}"==r&&(i=i.prev);var o=i.type,a=r==o;return"vardef"==o?i.indented+4:"form"==o&&"{"==r?i.indented:"stat"==o||"form"==o?i.indented+n.unit:"switch"!=i.info||a?i.align?i.column+(a?0:1):i.indented+(a?0:n.unit):i.indented+(/^(?:case|default)\b/.test(t)?n.unit:2*n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}},oe={name:"hxml",startState:function(){return{define:!1,inString:!1}},token:function(e,t){var n=e.peek(),r=e.sol();if("#"==n)return e.skipToEnd(),"comment";if(r&&"-"==n){var i="variable-2";return e.eat(/-/),"-"==e.peek()&&(e.eat(/-/),i="keyword a"),"D"==e.peek()&&(e.eat(/[D]/),i="keyword c",t.define=!0),e.eatWhile(/[A-Z]/i),i}n=e.peek();return 0==t.inString&&"'"==n&&(t.inString=!0,e.next()),1==t.inString?(e.skipTo("'")||e.skipToEnd(),"'"==e.peek()&&(e.next(),t.inString=!1),"string"):(e.next(),null)},languageData:{commentTokens:{line:"#"}}}},89532:(e,t,n)=>{function r(e,t){return e.skipToEnd(),t.cur=c,"error"}function i(e,t){return e.match(/^HTTP\/\d\.\d/)?(t.cur=o,"keyword"):e.match(/^[A-Z]+/)&&/[ \t]/.test(e.peek())?(t.cur=s,"keyword"):r(e,t)}function o(e,t){var n=e.match(/^\d+/);if(!n)return r(e,t);t.cur=a;var i=Number(n[0]);return i>=100&&i<400?"atom":"error"}function a(e,t){return e.skipToEnd(),t.cur=c,null}function s(e,t){return e.eatWhile(/\S/),t.cur=l,"string.special"}function l(e,t){return e.match(/^HTTP\/\d\.\d$/)?(t.cur=c,"keyword"):r(e,t)}function c(e){return e.sol()&&!e.eat(/[ \t]/)?e.match(/^.*?:/)?"atom":(e.skipToEnd(),"error"):(e.skipToEnd(),"string")}function u(e){return e.skipToEnd(),null}n.r(t),n.d(t,{http:()=>d});const d={name:"http",token:function(e,t){var n=t.cur;return n!=c&&n!=u&&e.eatSpace()?null:n(e,t)},blankLine:function(e){e.cur=u},startState:function(){return{cur:i}}}},63424:(e,t,n)=>{function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}n.r(t),n.d(t,{idl:()=>d});var i=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"],o=r(i),a=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"],s=r(a),l=new RegExp("^[_a-z\xa1-\uffff][_a-z0-9\xa1-\uffff]*","i"),c=/[+\-*&=<>\/@#~$]/,u=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");const d={name:"idl",token:function(e){return function(e){if(e.eatSpace())return null;if(e.match(";"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(s)?"keyword":e.match(o)?"builtin":e.match(l)?"variable":e.match(c)||e.match(u)?"operator":(e.next(),null)}(e)},languageData:{autocomplete:i.concat(a)}}},40717:(e,t,n)=>{function r(e){var t,n,r=e.statementIndent,i=e.jsonld,o=e.json||i,a=e.typescript,s=e.wordCharacters||/[\w$\xa1-\uffff]/,l=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),n=e("keyword b"),r=e("keyword c"),i=e("keyword d"),o=e("operator"),a={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:n,do:n,try:n,finally:n,return:i,break:i,continue:i,new:e("new"),delete:r,void:r,throw:r,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:o,typeof:o,instanceof:o,true:a,false:a,null:a,undefined:a,NaN:a,Infinity:a,this:e("this"),class:e("class"),super:e("atom"),yield:r,export:e("export"),import:e("import"),extends:r,await:r}}(),c=/[+\-*&%=<>!?|~^@]/,u=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function d(e,r,i){return t=e,n=i,r}function h(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){var r,o=!1;if(i&&"@"==e.peek()&&e.match(u))return t.tokenize=h,d("jsonld-keyword","meta");for(;null!=(r=e.next())&&(r!=n||o);)o=!o&&"\\"==r;return o||(t.tokenize=h),d("string","string")}),t.tokenize(e,t);if("."==r&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return d("number","number");if("."==r&&e.match(".."))return d("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(r))return d(r);if("="==r&&e.eat(">"))return d("=>","operator");if("0"==r&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return d("number","number");if(/\d/.test(r))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),d("number","number");if("/"==r)return e.eat("*")?(t.tokenize=f,f(e,t)):e.eat("/")?(e.skipToEnd(),d("comment","comment")):function(e,t,n){return t.tokenize==h&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(n||0)))}(e,t,1)?(function(e){for(var t,n=!1,r=!1;null!=(t=e.next());){if(!n){if("/"==t&&!r)return;"["==t?r=!0:r&&"]"==t&&(r=!1)}n=!n&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),d("regexp","string.special")):(e.eat("="),d("operator","operator",e.current()));if("`"==r)return t.tokenize=m,m(e,t);if("#"==r&&"!"==e.peek())return e.skipToEnd(),d("meta","meta");if("#"==r&&e.eatWhile(s))return d("variable","property");if("<"==r&&e.match("!--")||"-"==r&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),d("comment","comment");if(c.test(r))return">"==r&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=r&&"="!=r||e.eat("="):/[<>*+\-|&?]/.test(r)&&(e.eat(r),">"==r&&e.eat(r))),"?"==r&&e.eat(".")?d("."):d("operator","operator",e.current());if(s.test(r)){e.eatWhile(s);var o=e.current();if("."!=t.lastType){if(l.propertyIsEnumerable(o)){var a=l[o];return d(a.type,a.style,o)}if("async"==o&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return d("async","keyword",o)}return d("variable","variable",o)}}function f(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=h;break}r="*"==n}return d("comment","comment")}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if(!r&&("`"==n||"$"==n&&e.eat("{"))){t.tokenize=h;break}r=!r&&"\\"==n}return d("quasi","string.special",e.current())}var p="([{}])";function g(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var n=e.string.indexOf("=>",e.start);if(!(n<0)){if(a){var r=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,n));r&&(n=r.index)}for(var i=0,o=!1,l=n-1;l>=0;--l){var c=e.string.charAt(l),u=p.indexOf(c);if(u>=0&&u<3){if(!i){++l;break}if(0==--i){"("==c&&(o=!0);break}}else if(u>=3&&u<6)++i;else if(s.test(c))o=!0;else if(/["'\/`]/.test(c))for(;;--l){if(0==l)return;if(e.string.charAt(l-1)==c&&"\\"!=e.string.charAt(l-2)){l--;break}}else if(o&&!i){++l;break}}o&&!i&&(t.fatArrowAt=l)}}var b={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function v(e,t,n,r,i,o){this.indented=e,this.column=t,this.type=n,this.prev=i,this.info=o,null!=r&&(this.align=r)}function y(e,t){for(var n=e.localVars;n;n=n.next)if(n.name==t)return!0;for(var r=e.context;r;r=r.prev)for(n=r.vars;n;n=n.next)if(n.name==t)return!0}var k={state:null,column:null,marked:null,cc:null};function w(){for(var e=arguments.length-1;e>=0;e--)k.cc.push(arguments[e])}function O(){return w.apply(null,arguments),!0}function x(e,t){for(var n=t;n;n=n.next)if(n.name==e)return!0;return!1}function S(t){var n=k.state;if(k.marked="def",n.context)if("var"==n.lexical.info&&n.context&&n.context.block){var r=_(t,n.context);if(null!=r)return void(n.context=r)}else if(!x(t,n.localVars))return void(n.localVars=new $(t,n.localVars));e.globalVars&&!x(t,n.globalVars)&&(n.globalVars=new $(t,n.globalVars))}function _(e,t){if(t){if(t.block){var n=_(e,t.prev);return n?n==t.prev?t:new E(n,t.vars,!0):null}return x(e,t.vars)?t:new E(t.prev,new $(e,t.vars),!1)}return null}function T(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function E(e,t,n){this.prev=e,this.vars=t,this.block=n}function $(e,t){this.name=e,this.next=t}var C=new $("this",new $("arguments",null));function A(){k.state.context=new E(k.state.context,k.state.localVars,!1),k.state.localVars=C}function P(){k.state.context=new E(k.state.context,k.state.localVars,!0),k.state.localVars=null}function R(){k.state.localVars=k.state.context.vars,k.state.context=k.state.context.prev}function I(e,t){var n=function(){var n=k.state,r=n.indented;if("stat"==n.lexical.type)r=n.lexical.indented;else for(var i=n.lexical;i&&")"==i.type&&i.align;i=i.prev)r=i.indented;n.lexical=new v(r,k.stream.column(),e,null,n.lexical,t)};return n.lex=!0,n}function D(){var e=k.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function z(e){return function t(n){return n==e?O():";"==e||"}"==n||")"==n||"]"==n?w():O(t)}}function N(e,t){return"var"==e?O(I("vardef",t),ke,z(";"),D):"keyword a"==e?O(I("form"),q,N,D):"keyword b"==e?O(I("form"),N,D):"keyword d"==e?k.stream.match(/^\s*$/,!1)?O():O(I("stat"),B,z(";"),D):"debugger"==e?O(z(";")):"{"==e?O(I("}"),P,ie,D,R):";"==e?O():"if"==e?("else"==k.state.lexical.info&&k.state.cc[k.state.cc.length-1]==D&&k.state.cc.pop()(),O(I("form"),q,N,D,Te)):"function"==e?O(Ae):"for"==e?O(I("form"),P,Ee,N,R,D):"class"==e||a&&"interface"==t?(k.marked="keyword",O(I("form","class"==e?e:t),ze,D)):"variable"==e?a&&"declare"==t?(k.marked="keyword",O(N)):a&&("module"==t||"enum"==t||"type"==t)&&k.stream.match(/^\s*\w/,!1)?(k.marked="keyword","enum"==t?O(Ge):"type"==t?O(Re,z("operator"),ce,z(";")):O(I("form"),we,z("{"),I("}"),ie,D,D)):a&&"namespace"==t?(k.marked="keyword",O(I("form"),M,N,D)):a&&"abstract"==t?(k.marked="keyword",O(N)):O(I("stat"),Y):"switch"==e?O(I("form"),q,z("{"),I("}","switch"),P,ie,D,D,R):"case"==e?O(M,z(":")):"default"==e?O(z(":")):"catch"==e?O(I("form"),A,L,N,D,R):"export"==e?O(I("stat"),Qe,D):"import"==e?O(I("stat"),We,D):"async"==e?O(N):"@"==t?O(M,N):w(I("stat"),M,z(";"),D)}function L(e){if("("==e)return O(Ie,z(")"))}function M(e,t){return W(e,t,!1)}function Q(e,t){return W(e,t,!0)}function q(e){return"("!=e?w():O(I(")"),B,z(")"),D)}function W(e,t,n){if(k.state.fatArrowAt==k.stream.start){var r=n?X:G;if("("==e)return O(A,I(")"),ne(Ie,")"),D,z("=>"),r,R);if("variable"==e)return w(A,we,z("=>"),r,R)}var i=n?F:U;return b.hasOwnProperty(e)?O(i):"function"==e?O(Ae,i):"class"==e||a&&"interface"==t?(k.marked="keyword",O(I("form"),De,D)):"keyword c"==e||"async"==e?O(n?Q:M):"("==e?O(I(")"),B,z(")"),D,i):"operator"==e||"spread"==e?O(n?Q:M):"["==e?O(I("]"),Ve,D,i):"{"==e?re(K,"}",null,i):"quasi"==e?w(j,i):"new"==e?O(function(e){return function(t){return"."==t?O(e?H:Z):"variable"==t&&a?O(be,e?F:U):w(e?Q:M)}}(n)):O()}function B(e){return e.match(/[;\}\)\],]/)?w():w(M)}function U(e,t){return","==e?O(B):F(e,t,!1)}function F(e,t,n){var r=0==n?U:F,i=0==n?M:Q;return"=>"==e?O(A,n?X:G,R):"operator"==e?/\+\+|--/.test(t)||a&&"!"==t?O(r):a&&"<"==t&&k.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?O(I(">"),ne(ce,">"),D,r):"?"==t?O(M,z(":"),i):O(i):"quasi"==e?w(j,r):";"!=e?"("==e?re(Q,")","call",r):"."==e?O(J,r):"["==e?O(I("]"),B,z("]"),D,r):a&&"as"==t?(k.marked="keyword",O(ce,r)):"regexp"==e?(k.state.lastType=k.marked="operator",k.stream.backUp(k.stream.pos-k.stream.start-1),O(i)):void 0:void 0}function j(e,t){return"quasi"!=e?w():"${"!=t.slice(t.length-2)?O(j):O(B,V)}function V(e){if("}"==e)return k.marked="string.special",k.state.tokenize=m,O(j)}function G(e){return g(k.stream,k.state),w("{"==e?N:M)}function X(e){return g(k.stream,k.state),w("{"==e?N:Q)}function Z(e,t){if("target"==t)return k.marked="keyword",O(U)}function H(e,t){if("target"==t)return k.marked="keyword",O(F)}function Y(e){return":"==e?O(D,N):w(U,z(";"),D)}function J(e){if("variable"==e)return k.marked="property",O()}function K(e,t){return"async"==e?(k.marked="property",O(K)):"variable"==e||"keyword"==k.style?(k.marked="property","get"==t||"set"==t?O(ee):(a&&k.state.fatArrowAt==k.stream.start&&(n=k.stream.match(/^\s*:\s*/,!1))&&(k.state.fatArrowAt=k.stream.pos+n[0].length),O(te))):"number"==e||"string"==e?(k.marked=i?"property":k.style+" property",O(te)):"jsonld-keyword"==e?O(te):a&&T(t)?(k.marked="keyword",O(K)):"["==e?O(M,oe,z("]"),te):"spread"==e?O(Q,te):"*"==t?(k.marked="keyword",O(K)):":"==e?w(te):void 0;var n}function ee(e){return"variable"!=e?w(te):(k.marked="property",O(Ae))}function te(e){return":"==e?O(Q):"("==e?w(Ae):void 0}function ne(e,t,n){function r(i,o){if(n?n.indexOf(i)>-1:","==i){var a=k.state.lexical;return"call"==a.info&&(a.pos=(a.pos||0)+1),O((function(n,r){return n==t||r==t?w():w(e)}),r)}return i==t||o==t?O():n&&n.indexOf(";")>-1?w(e):O(z(t))}return function(n,i){return n==t||i==t?O():w(e,r)}}function re(e,t,n){for(var r=3;r"),ce):"quasi"==e?w(fe,ge):void 0}function ue(e){if("=>"==e)return O(ce)}function de(e){return e.match(/[\}\)\]]/)?O():","==e||";"==e?O(de):w(he,de)}function he(e,t){return"variable"==e||"keyword"==k.style?(k.marked="property",O(he)):"?"==t||"number"==e||"string"==e?O(he):":"==e?O(ce):"["==e?O(z("variable"),ae,z("]"),he):"("==e?w(Pe,he):e.match(/[;\}\)\],]/)?void 0:O()}function fe(e,t){return"quasi"!=e?w():"${"!=t.slice(t.length-2)?O(fe):O(ce,me)}function me(e){if("}"==e)return k.marked="string.special",k.state.tokenize=m,O(fe)}function pe(e,t){return"variable"==e&&k.stream.match(/^\s*[?:]/,!1)||"?"==t?O(pe):":"==e?O(ce):"spread"==e?O(pe):w(ce)}function ge(e,t){return"<"==t?O(I(">"),ne(ce,">"),D,ge):"|"==t||"."==e||"&"==t?O(ce):"["==e?O(ce,z("]"),ge):"extends"==t||"implements"==t?(k.marked="keyword",O(ce)):"?"==t?O(ce,z(":"),ce):void 0}function be(e,t){if("<"==t)return O(I(">"),ne(ce,">"),D,ge)}function ve(){return w(ce,ye)}function ye(e,t){if("="==t)return O(ce)}function ke(e,t){return"enum"==t?(k.marked="keyword",O(Ge)):w(we,oe,Se,_e)}function we(e,t){return a&&T(t)?(k.marked="keyword",O(we)):"variable"==e?(S(t),O()):"spread"==e?O(we):"["==e?re(xe,"]"):"{"==e?re(Oe,"}"):void 0}function Oe(e,t){return"variable"!=e||k.stream.match(/^\s*:/,!1)?("variable"==e&&(k.marked="property"),"spread"==e?O(we):"}"==e?w():"["==e?O(M,z("]"),z(":"),Oe):O(z(":"),we,Se)):(S(t),O(Se))}function xe(){return w(we,Se)}function Se(e,t){if("="==t)return O(Q)}function _e(e){if(","==e)return O(ke)}function Te(e,t){if("keyword b"==e&&"else"==t)return O(I("form","else"),N,D)}function Ee(e,t){return"await"==t?O(Ee):"("==e?O(I(")"),$e,D):void 0}function $e(e){return"var"==e?O(ke,Ce):"variable"==e?O(Ce):w(Ce)}function Ce(e,t){return")"==e?O():";"==e?O(Ce):"in"==t||"of"==t?(k.marked="keyword",O(M,Ce)):w(M,Ce)}function Ae(e,t){return"*"==t?(k.marked="keyword",O(Ae)):"variable"==e?(S(t),O(Ae)):"("==e?O(A,I(")"),ne(Ie,")"),D,se,N,R):a&&"<"==t?O(I(">"),ne(ve,">"),D,Ae):void 0}function Pe(e,t){return"*"==t?(k.marked="keyword",O(Pe)):"variable"==e?(S(t),O(Pe)):"("==e?O(A,I(")"),ne(Ie,")"),D,se,R):a&&"<"==t?O(I(">"),ne(ve,">"),D,Pe):void 0}function Re(e,t){return"keyword"==e||"variable"==e?(k.marked="type",O(Re)):"<"==t?O(I(">"),ne(ve,">"),D):void 0}function Ie(e,t){return"@"==t&&O(M,Ie),"spread"==e?O(Ie):a&&T(t)?(k.marked="keyword",O(Ie)):a&&"this"==e?O(oe,Se):w(we,oe,Se)}function De(e,t){return"variable"==e?ze(e,t):Ne(e,t)}function ze(e,t){if("variable"==e)return S(t),O(Ne)}function Ne(e,t){return"<"==t?O(I(">"),ne(ve,">"),D,Ne):"extends"==t||"implements"==t||a&&","==e?("implements"==t&&(k.marked="keyword"),O(a?ce:M,Ne)):"{"==e?O(I("}"),Le,D):void 0}function Le(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||a&&T(t))&&k.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1)?(k.marked="keyword",O(Le)):"variable"==e||"keyword"==k.style?(k.marked="property",O(Me,Le)):"number"==e||"string"==e?O(Me,Le):"["==e?O(M,oe,z("]"),Me,Le):"*"==t?(k.marked="keyword",O(Le)):a&&"("==e?w(Pe,Le):";"==e||","==e?O(Le):"}"==e?O():"@"==t?O(M,Le):void 0}function Me(e,t){if("!"==t||"?"==t)return O(Me);if(":"==e)return O(ce,Se);if("="==t)return O(Q);var n=k.state.lexical.prev;return w(n&&"interface"==n.info?Pe:Ae)}function Qe(e,t){return"*"==t?(k.marked="keyword",O(je,z(";"))):"default"==t?(k.marked="keyword",O(M,z(";"))):"{"==e?O(ne(qe,"}"),je,z(";")):w(N)}function qe(e,t){return"as"==t?(k.marked="keyword",O(z("variable"))):"variable"==e?w(Q,qe):void 0}function We(e){return"string"==e?O():"("==e?w(M):"."==e?w(U):w(Be,Ue,je)}function Be(e,t){return"{"==e?re(Be,"}"):("variable"==e&&S(t),"*"==t&&(k.marked="keyword"),O(Fe))}function Ue(e){if(","==e)return O(Be,Ue)}function Fe(e,t){if("as"==t)return k.marked="keyword",O(Be)}function je(e,t){if("from"==t)return k.marked="keyword",O(M)}function Ve(e){return"]"==e?O():w(ne(Q,"]"))}function Ge(){return w(I("form"),we,z("{"),I("}"),ne(Xe,"}"),D,D)}function Xe(){return w(we,Se)}return A.lex=P.lex=!0,R.lex=!0,D.lex=!0,{name:e.name,startState:function(t){var n={tokenize:h,lastType:"sof",cc:[],lexical:new v(-t,0,"block",!1),localVars:e.localVars,context:e.localVars&&new E(null,null,!1),indented:0};return e.globalVars&&"object"==typeof e.globalVars&&(n.globalVars=e.globalVars),n},token:function(e,r){if(e.sol()&&(r.lexical.hasOwnProperty("align")||(r.lexical.align=!1),r.indented=e.indentation(),g(e,r)),r.tokenize!=f&&e.eatSpace())return null;var i=r.tokenize(e,r);return"comment"==t?i:(r.lastType="operator"!=t||"++"!=n&&"--"!=n?t:"incdec",function(e,t,n,r,i){var a=e.cc;for(k.state=e,k.stream=i,k.marked=null,k.cc=a,k.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;)if((a.length?a.pop():o?M:N)(n,r)){for(;a.length&&a[a.length-1].lex;)a.pop()();return k.marked?k.marked:"variable"==n&&y(e,r)?"variableName.local":t}}(r,i,t,n,e))},indent:function(t,n,i){if(t.tokenize==f||t.tokenize==m)return null;if(t.tokenize!=h)return 0;var o,a=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var l=t.cc.length-1;l>=0;--l){var u=t.cc[l];if(u==D)s=s.prev;else if(u!=Te&&u!=R)break}for(;("stat"==s.type||"form"==s.type)&&("}"==a||(o=t.cc[t.cc.length-1])&&(o==U||o==F)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;r&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var d=s.type,p=a==d;return"vardef"==d?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==d&&"{"==a?s.indented:"form"==d?s.indented+i.unit:"stat"==d?s.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||c.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?r||i.unit:0):"switch"!=s.info||p||0==e.doubleIndentSwitch?s.align?s.column+(p?0:1):s.indented+(p?0:i.unit):s.indented+(/^(?:case|default)\b/.test(n)?i.unit:2*i.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:o?void 0:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}n.r(t),n.d(t,{javascript:()=>i,json:()=>o,jsonld:()=>a,typescript:()=>s});const i=r({name:"javascript"}),o=r({name:"json",json:!0}),a=r({name:"json",jsonld:!0}),s=r({name:"typescript",typescript:!0})},85438:(e,t,n)=>{n.r(t),n.d(t,{jinja2:()=>c});var r=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],i=/^[+\-*&%=<>!?|~^]/,o=/^[:\[\(\{]/,a=["true","false"],s=/^(\d[+\-\*\/])?\d+(\.\d+)?/;function l(e,t){var n=e.peek();if(t.incomment)return e.skipTo("#}")?(e.eatWhile(/\#|}/),t.incomment=!1):e.skipToEnd(),"comment";if(t.intag){if(t.operator){if(t.operator=!1,e.match(a))return"atom";if(e.match(s))return"number"}if(t.sign){if(t.sign=!1,e.match(a))return"atom";if(e.match(s))return"number"}if(t.instring)return n==t.instring&&(t.instring=!1),e.next(),"string";if("'"==n||'"'==n)return t.instring=n,e.next(),"string";if(t.inbraces>0&&")"==n)e.next(),t.inbraces--;else if("("==n)e.next(),t.inbraces++;else if(t.inbrackets>0&&"]"==n)e.next(),t.inbrackets--;else if("["==n)e.next(),t.inbrackets++;else{if(!t.lineTag&&(e.match(t.intag+"}")||e.eat("-")&&e.match(t.intag+"}")))return t.intag=!1,"tag";if(e.match(i))return t.operator=!0,"operator";if(e.match(o))t.sign=!0;else{if(1==e.column()&&t.lineTag&&e.match(r))return"keyword";if(e.eat(" ")||e.sol()){if(e.match(r))return"keyword";if(e.match(a))return"atom";if(e.match(s))return"number";e.sol()&&e.next()}else e.next()}}return"variable"}if(e.eat("{")){if(e.eat("#"))return t.incomment=!0,e.skipTo("#}")?(e.eatWhile(/\#|}/),t.incomment=!1):e.skipToEnd(),"comment";if(n=e.eat(/\{|%/))return t.intag=n,t.inbraces=0,t.inbrackets=0,"{"==n&&(t.intag="}"),e.eat("-"),"tag"}else if(e.eat("#")){if("#"==e.peek())return e.skipToEnd(),"comment";if(!e.eol())return t.intag=!0,t.lineTag=!0,t.inbraces=0,t.inbrackets=0,"tag"}e.next()}r=new RegExp("(("+r.join(")|(")+"))\\b"),a=new RegExp("(("+a.join(")|(")+"))\\b");const c={name:"jinja2",startState:function(){return{tokenize:l,inbrackets:0,inbraces:0}},token:function(e,t){var n=t.tokenize(e,t);return e.eol()&&t.lineTag&&!t.instring&&0==t.inbraces&&0==t.inbrackets&&(t.intag=!1,t.lineTag=!1),n},languageData:{commentTokens:{block:{open:"{#",close:"#}",line:"##"}}}}},55439:(e,t,n)=>{function r(e,t,n){return"undefined"===typeof n&&(n=""),"undefined"===typeof t&&(t="\\b"),new RegExp("^"+n+"(("+e.join(")|(")+"))"+t)}n.r(t),n.d(t,{julia:()=>T});var i=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"],o=r(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],""),a=/^[;,()[\]{}]/,s=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/,l=r(["\\\\[0-7]{1,3}","\\\\x[A-Fa-f0-9]{1,2}","\\\\[abefnrtv0%?'\"\\\\]","([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])"],"'"),c=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"],u=["true","false","nothing","NaN","Inf"],d=r(["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"]),h=r(["end","else","elseif","catch","finally"]),f=r(c),m=r(u),p=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,g=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/,b=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/,v=r(i,"","@"),y=r(i,"",":");function k(e){return e.nestedArrays>0}function w(e,t){return"undefined"===typeof t&&(t=0),e.scopes.length<=t?null:e.scopes[e.scopes.length-(t+1)]}function O(e,t){if(e.match("#=",!1))return t.tokenize=S,t.tokenize(e,t);var n=t.leavingExpr;if(e.sol()&&(n=!1),t.leavingExpr=!1,n&&e.match(/^'+/))return"operator";if(e.match(/\.{4,}/))return"error";if(e.match(/\.{1,3}/))return"operator";if(e.eatSpace())return null;var r,i=e.peek();if("#"===i)return e.skipToEnd(),"comment";if("["===i&&(t.scopes.push("["),t.nestedArrays++),"("===i&&(t.scopes.push("("),t.nestedGenerators++),k(t)&&"]"===i){for(;t.scopes.length&&"["!==w(t);)t.scopes.pop();t.scopes.pop(),t.nestedArrays--,t.leavingExpr=!0}if(function(e){return e.nestedGenerators>0}(t)&&")"===i){for(;t.scopes.length&&"("!==w(t);)t.scopes.pop();t.scopes.pop(),t.nestedGenerators--,t.leavingExpr=!0}if(k(t)){if("end"==t.lastToken&&e.match(":"))return"operator";if(e.match("end"))return"number"}if((r=e.match(d,!1))&&t.scopes.push(r[0]),e.match(h,!1)&&t.scopes.pop(),e.match(/^::(?![:\$])/))return t.tokenize=x,t.tokenize(e,t);if(!n&&(e.match(g)||e.match(y)))return"builtin";if(e.match(o))return"operator";if(e.match(/^\.?\d/,!1)){var l=RegExp(/^im\b/),c=!1;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)&&(c=!0),e.match(/^0x[0-9a-f_]+/i)&&(c=!0),e.match(/^0b[01_]+/i)&&(c=!0),e.match(/^0o[0-7_]+/i)&&(c=!0),e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)&&(c=!0),e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)&&(c=!0),c)return e.match(l),t.leavingExpr=!0,"number"}if(e.match("'"))return t.tokenize=_,t.tokenize(e,t);if(e.match(b))return t.tokenize=function(e){'"""'===e.substr(-3)?e='"""':'"'===e.substr(-1)&&(e='"');function t(t,n){if(t.eat("\\"))t.next();else{if(t.match(e))return n.tokenize=O,n.leavingExpr=!0,"string";t.eat(/[`"]/)}return t.eatWhile(/[^\\`"]/),"string"}return t}(e.current()),t.tokenize(e,t);if(e.match(p)||e.match(v))return"meta";if(e.match(a))return null;if(e.match(f))return"keyword";if(e.match(m))return"builtin";var u=t.isDefinition||"function"==t.lastToken||"macro"==t.lastToken||"type"==t.lastToken||"struct"==t.lastToken||"immutable"==t.lastToken;return e.match(s)?u?"."===e.peek()?(t.isDefinition=!0,"variable"):(t.isDefinition=!1,"def"):(t.leavingExpr=!0,"variable"):(e.next(),"error")}function x(e,t){return e.match(/.*?(?=[,;{}()=\s]|$)/),e.match("{")?t.nestedParameters++:e.match("}")&&t.nestedParameters>0&&t.nestedParameters--,t.nestedParameters>0?e.match(/.*?(?={|})/)||e.next():0==t.nestedParameters&&(t.tokenize=O),"builtin"}function S(e,t){return e.match("#=")&&t.nestedComments++,e.match(/.*?(?=(#=|=#))/)||e.skipToEnd(),e.match("=#")&&(t.nestedComments--,0==t.nestedComments&&(t.tokenize=O)),"comment"}function _(e,t){var n,r=!1;if(e.match(l))r=!0;else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){((i=parseInt(n[1],16))<=55295||i>=57344)&&(r=!0,e.next())}else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var i;(i=parseInt(n[1],16))<=1114111&&(r=!0,e.next())}return r?(t.leavingExpr=!0,t.tokenize=O,"string"):(e.match(/^[^']+(?=')/)||e.skipToEnd(),e.match("'")&&(t.tokenize=O),"error")}const T={name:"julia",startState:function(){return{tokenize:O,scopes:[],lastToken:null,leavingExpr:!1,isDefinition:!1,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var n=t.tokenize(e,t),r=e.current();return r&&n&&(t.lastToken=r),n},indent:function(e,t,n){var r=0;return("]"===t||")"===t||/^end\b/.test(t)||/^else/.test(t)||/^catch\b/.test(t)||/^elseif\b/.test(t)||/^finally/.test(t))&&(r=-1),(e.scopes.length+r)*n.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:c.concat(u)}}},83049:(e,t,n)=>{n.r(t),n.d(t,{liveScript:()=>m});var r=function(e,t){var n=t.next||"start";if(n){t.next=t.next;var r=l[n];if(r.splice){for(var i=0;i|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+i+")?))\\s*$"),a="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))",s={token:"string",regex:".+"},l={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+a},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+a},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+a},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+a},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+a},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+a},{token:"variableName",regex:i+"\\s*:(?![:=])"},{token:"variableName",regex:i},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:i,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},s],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},s],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},s],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},s],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},s],words:[{token:"string",regex:".*?\\]>",next:"key"},s]};for(var c in l){var u=l[c];if(u.splice)for(var d=0,h=u.length;d{function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}n.r(t),n.d(t,{lua:()=>h});var i=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]),o=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]),a=r(["function","if","repeat","do","\\(","{"]),s=r(["end","until","\\)","}"]),l=new RegExp("^(?:"+["end","until","\\)","}","else","elseif"].join("|")+")","i");function c(e){for(var t=0;e.eat("=");)++t;return e.eat("["),t}function u(e,t){var n,r=e.next();return"-"==r&&e.eat("-")?e.eat("[")&&e.eat("[")?(t.cur=d(c(e),"comment"))(e,t):(e.skipToEnd(),"comment"):'"'==r||"'"==r?(t.cur=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.cur=u),"string"}))(e,t):"["==r&&/[\[=]/.test(e.peek())?(t.cur=d(c(e),"string"))(e,t):/\d/.test(r)?(e.eatWhile(/[\w.%]/),"number"):/[\w_]/.test(r)?(e.eatWhile(/[\w\\\-_.]/),"variable"):null}function d(e,t){return function(n,r){for(var i,o=null;null!=(i=n.next());)if(null==o)"]"==i&&(o=0);else if("="==i)++o;else{if("]"==i&&o==e){r.cur=u;break}o=null}return t}}const h={name:"lua",startState:function(){return{basecol:0,indentDepth:0,cur:u}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t),r=e.current();return"variable"==n&&(o.test(r)?n="keyword":i.test(r)&&(n="builtin")),"comment"!=n&&"string"!=n&&(a.test(r)?++t.indentDepth:s.test(r)&&--t.indentDepth),n},indent:function(e,t,n){var r=l.test(t);return e.basecol+n.unit*(e.indentDepth-(r?1:0))},languageData:{indentOnInput:/^\s*(?:end|until|else|\)|\})$/,commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}}},4590:(e,t,n)=>{n.r(t),n.d(t,{mathematica:()=>h});var r="[a-zA-Z\\$][a-zA-Z0-9\\$]*",i="(?:\\.\\d+|\\d+\\.\\d*|\\d+)",o="(?:`(?:`?"+i+")?)",a=new RegExp("(?:(?:\\d+)(?:\\^\\^(?:\\.\\w+|\\w+\\.\\w*|\\w+)"+o+"?(?:\\*\\^[+-]?\\d+)?))"),s=new RegExp("(?:"+i+o+"?(?:\\*\\^[+-]?\\d+)?)"),l=new RegExp("(?:`?)(?:"+r+")(?:`(?:"+r+"))*(?:`?)");function c(e,t){var n;return'"'===(n=e.next())?(t.tokenize=u,t.tokenize(e,t)):"("===n&&e.eat("*")?(t.commentLevel++,t.tokenize=d,t.tokenize(e,t)):(e.backUp(1),e.match(a,!0,!1)||e.match(s,!0,!1)?"number":e.match(/(?:In|Out)\[[0-9]*\]/,!0,!1)?"atom":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,!0,!1)?"meta":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,!0,!1)?"string.special":e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)||e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,!0,!1)||e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,!0,!1)?"variableName.special":e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,!0,!1)?"character":e.match(/(?:\[|\]|{|}|\(|\))/,!0,!1)?"bracket":e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,!0,!1)?"variableName.constant":e.match(l,!0,!1)?"keyword":e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,!0,!1)?"operator":(e.next(),"error"))}function u(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=c),"string"}function d(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=c),"comment"}const h={name:"mathematica",startState:function(){return{tokenize:c,commentLevel:0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}}},69328:(e,t,n)=>{n.r(t),n.d(t,{mbox:()=>m});var r=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],i=["Date","Subject","Comments","Keywords","Resent-Date"],o=/^[ \t]/,a=/^From /,s=new RegExp("^("+r.join("|")+"): "),l=new RegExp("^("+i.join("|")+"): "),c=/^[^:]+:/,u=/^[^ ]+@[^ ]+/,d=/^.*?(?=[^ ]+?@[^ ]+)/,h=/^<.*?>/,f=/^.*?(?=<.*>)/;const m={name:"mbox",startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:function(e,t){if(e.sol()){if(t.inSeparator=!1,t.inHeader&&e.match(o))return null;if(t.inHeader=!1,t.header=null,e.match(a))return t.inHeaders=!0,t.inSeparator=!0,"atom";var n,r=!1;return(n=e.match(l))||(r=!0)&&(n=e.match(s))?(t.inHeaders=!0,t.inHeader=!0,t.emailPermitted=r,t.header=n[1],"atom"):t.inHeaders&&(n=e.match(c))?(t.inHeader=!0,t.emailPermitted=!0,t.header=n[1],"atom"):(t.inHeaders=!1,e.skipToEnd(),null)}if(t.inSeparator)return e.match(u)?"link":(e.match(d)||e.skipToEnd(),"atom");if(t.inHeader){var i=function(e){return"Subject"===e?"header":"string"}(t.header);if(t.emailPermitted){if(e.match(h))return i+" link";if(e.match(f))return i}return e.skipToEnd(),i}return e.skipToEnd(),null},blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1},languageData:{autocomplete:r.concat(i)}}},42458:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rh});var i=r("$! $$ $& $? $+ $abook $abs $active $activecid $activewid $address $addtok $agent $agentname $agentstat $agentver $alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime $asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind $binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes $chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color $com $comcall $comchan $comerr $compact $compress $comval $cos $count $cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight $dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress $deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll $dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error $eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir $finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve $fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt $group $halted $hash $height $hfind $hget $highlight $hnick $hotline $hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil $inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect $insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile $isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive $lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock $lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer $maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext $menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode $modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile $nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly $opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree $pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo $readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex $reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline $sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin $site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname $sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped $syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp $timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel $ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver $version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor"),o=r("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice away background ban bcopy beep bread break breplace bset btrunc bunset bwrite channel clear clearall cline clipboard close cnick color comclose comopen comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver debug dec describe dialog did didtok disable disconnect dlevel dline dll dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable events exit fclose filter findtext finger firewall flash flist flood flush flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear ialmark identd if ignore iline inc invite iuser join kick linesep links list load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice qme qmsg query queryn quit raw reload remini remote remove rename renwin reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini say scid scon server set showmirc signam sline sockaccept sockclose socklist socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs elseif else goto menu nicklist status title icon size option text edit button check radio box scroll list combo link tab item"),a=r("if elseif else and not or eq ne in ni for foreach while switch"),s=/[+\-*&%=<>!?^\/\|]/;function l(e,t,n){return t.tokenize=n,n(e,t)}function c(e,t){var n=t.beforeParams;t.beforeParams=!1;var r=e.next();if(/[\[\]{}\(\),\.]/.test(r))return"("==r&&n?t.inParams=!0:")"==r&&(t.inParams=!1),null;if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("\\"==r)return e.eat("\\"),e.eat(/./),"number";if("/"==r&&e.eat("*"))return l(e,t,u);if(";"==r&&e.match(/ *\( *\(/))return l(e,t,d);if(";"!=r||t.inParams){if('"'==r)return e.eat(/"/),"keyword";if("$"==r)return e.eatWhile(/[$_a-z0-9A-Z\.:]/),i&&i.propertyIsEnumerable(e.current().toLowerCase())?"keyword":(t.beforeParams=!0,"builtin");if("%"==r)return e.eatWhile(/[^,\s()]/),t.beforeParams=!0,"string";if(s.test(r))return e.eatWhile(s),"operator";e.eatWhile(/[\w\$_{}]/);var c=e.current().toLowerCase();return o&&o.propertyIsEnumerable(c)?"keyword":a&&a.propertyIsEnumerable(c)?(t.beforeParams=!0,"keyword"):null}return e.skipToEnd(),"comment"}function u(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=c;break}r="*"==n}return"comment"}function d(e,t){for(var n,r=0;n=e.next();){if(";"==n&&2==r){t.tokenize=c;break}")"==n?r++:" "!=n&&(r=0)}return"meta"}const h={name:"mirc",startState:function(){return{tokenize:c,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}},29797:(e,t,n)=>{function r(e){var t={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"},n=e.extraWords||{};for(var r in n)n.hasOwnProperty(r)&&(t[r]=e.extraWords[r]);var i=[];for(var o in t)i.push(o);function a(n,r){var i=n.next();if('"'===i)return r.tokenize=s,r.tokenize(n,r);if("{"===i&&n.eat("|"))return r.longString=!0,r.tokenize=c,r.tokenize(n,r);if("("===i&&n.match(/^\*(?!\))/))return r.commentLevel++,r.tokenize=l,r.tokenize(n,r);if("~"===i||"?"===i)return n.eatWhile(/\w/),"variableName.special";if("`"===i)return n.eatWhile(/\w/),"quote";if("/"===i&&e.slashComments&&n.eat("/"))return n.skipToEnd(),"comment";if(/\d/.test(i))return"0"===i&&n.eat(/[bB]/)&&n.eatWhile(/[01]/),"0"===i&&n.eat(/[xX]/)&&n.eatWhile(/[0-9a-fA-F]/),"0"===i&&n.eat(/[oO]/)?n.eatWhile(/[0-7]/):(n.eatWhile(/[\d_]/),n.eat(".")&&n.eatWhile(/[\d]/),n.eat(/[eE]/)&&n.eatWhile(/[\d\-+]/)),"number";if(/[+\-*&%=<>!?|@\.~:]/.test(i))return"operator";if(/[\w\xa1-\uffff]/.test(i)){n.eatWhile(/[\w\xa1-\uffff]/);var o=n.current();return t.hasOwnProperty(o)?t[o]:"variable"}return null}function s(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=a),"string"}function l(e,t){for(var n,r;t.commentLevel>0&&null!=(r=e.next());)"("===n&&"*"===r&&t.commentLevel++,"*"===n&&")"===r&&t.commentLevel--,n=r;return t.commentLevel<=0&&(t.tokenize=a),"comment"}function c(e,t){for(var n,r;t.longString&&null!=(r=e.next());)"|"===n&&"}"===r&&(t.longString=!1),n=r;return t.longString||(t.tokenize=a),"string"}return{startState:function(){return{tokenize:a,commentLevel:0,longString:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{autocomplete:i,commentTokens:{line:e.slashComments?"//":void 0,block:{open:"(*",close:"*)"}}}}}n.r(t),n.d(t,{fSharp:()=>o,oCaml:()=>i,sml:()=>a});const i=r({name:"ocaml",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}}),o=r({name:"fsharp",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:!0}),a=r({name:"sml",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:!0})},43720:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rv});var i=r("algorithm and annotation assert block break class connect connector constant constrainedby der discrete each else elseif elsewhen encapsulated end enumeration equation expandable extends external false final flow for function if import impure in initial inner input loop model not operator or outer output package parameter partial protected public pure record redeclare replaceable return stream then true type when while within"),o=r("abs acos actualStream asin atan atan2 cardinality ceil cos cosh delay div edge exp floor getInstanceName homotopy inStream integer log log10 mod pre reinit rem semiLinear sign sin sinh spatialDistribution sqrt tan tanh"),a=r("Real Boolean Integer String"),s=[].concat(Object.keys(i),Object.keys(o),Object.keys(a)),l=/[;=\(:\),{}.*<>+\-\/^\[\]]/,c=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/,u=/[0-9]/,d=/[_a-zA-Z]/;function h(e,t){return e.skipToEnd(),t.tokenize=null,"comment"}function f(e,t){for(var n,r=!1;n=e.next();){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return"comment"}function m(e,t){for(var n,r=!1;null!=(n=e.next());){if('"'==n&&!r){t.tokenize=null,t.sol=!1;break}r=!r&&"\\"==n}return"string"}function p(e,t){for(e.eatWhile(u);e.eat(u)||e.eat(d););var n=e.current();return!t.sol||"package"!=n&&"model"!=n&&"when"!=n&&"connector"!=n?t.sol&&"end"==n&&t.level>0&&t.level--:t.level++,t.tokenize=null,t.sol=!1,i.propertyIsEnumerable(n)?"keyword":o.propertyIsEnumerable(n)?"builtin":a.propertyIsEnumerable(n)?"atom":"variable"}function g(e,t){for(;e.eat(/[^']/););return t.tokenize=null,t.sol=!1,e.eat("'")?"variable":"error"}function b(e,t){return e.eatWhile(u),e.eat(".")&&e.eatWhile(u),(e.eat("e")||e.eat("E"))&&(e.eat("-")||e.eat("+"),e.eatWhile(u)),t.tokenize=null,t.sol=!1,"number"}const v={name:"modelica",startState:function(){return{tokenize:null,level:0,sol:!0}},token:function(e,t){if(null!=t.tokenize)return t.tokenize(e,t);if(e.sol()&&(t.sol=!0),e.eatSpace())return t.tokenize=null,null;var n=e.next();if("/"==n&&e.eat("/"))t.tokenize=h;else if("/"==n&&e.eat("*"))t.tokenize=f;else{if(c.test(n+e.peek()))return e.next(),t.tokenize=null,"operator";if(l.test(n))return t.tokenize=null,"operator";if(d.test(n))t.tokenize=p;else if("'"==n&&e.peek()&&"'"!=e.peek())t.tokenize=g;else if('"'==n)t.tokenize=m;else{if(!u.test(n))return t.tokenize=null,"error";t.tokenize=b}}return t.tokenize(e,t)},indent:function(e,t,n){if(null!=e.tokenize)return null;var r=e.level;return/(algorithm)/.test(t)&&r--,/(equation)/.test(t)&&r--,/(initial algorithm)/.test(t)&&r--,/(initial equation)/.test(t)&&r--,/(end)/.test(t)&&r--,r>0?n.unit*r:0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:s}}},64745:(e,t,n)=>{function r(e){return{name:"mscgen",startState:c,copyState:u,token:(t=e,function(e,n){if(e.match(l(t.brackets),!0,!0))return"bracket";if(!n.inComment){if(e.match(/\/\*[^\*\/]*/,!0,!0))return n.inComment=!0,"comment";if(e.match(l(t.singlecomment),!0,!0))return e.skipToEnd(),"comment"}if(n.inComment)return e.match(/[^\*\/]*\*\//,!0,!0)?n.inComment=!1:e.skipToEnd(),"comment";if(!n.inString&&e.match(/\"(\\\"|[^\"])*/,!0,!0))return n.inString=!0,"string";if(n.inString)return e.match(/[^\"]*\"/,!0,!0)?n.inString=!1:e.skipToEnd(),"string";if(t.keywords&&e.match(s(t.keywords),!0,!0))return"keyword";if(e.match(s(t.options),!0,!0))return"keyword";if(e.match(s(t.arcsWords),!0,!0))return"keyword";if(e.match(l(t.arcsOthers),!0,!0))return"keyword";if(t.operators&&e.match(l(t.operators),!0,!0))return"operator";if(t.constants&&e.match(l(t.constants),!0,!0))return"variable";if(!t.inAttributeList&&t.attributes&&e.match("[",!0,!0))return t.inAttributeList=!0,"bracket";if(t.inAttributeList){if(null!==t.attributes&&e.match(s(t.attributes),!0,!0))return"attribute";if(e.match("]",!0,!0))return t.inAttributeList=!1,"bracket"}return e.next(),null}),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}};var t}n.r(t),n.d(t,{mscgen:()=>i,msgenny:()=>o,xu:()=>a});const i=r({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),o=r({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]}),a=r({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function s(e){return new RegExp("^\\b("+e.join("|")+")\\b","i")}function l(e){return new RegExp("^(?:"+e.join("|")+")","i")}function c(){return{inComment:!1,inString:!1,inAttributeList:!1,inScript:!1}}function u(e){return{inComment:e.inComment,inString:e.inString,inAttributeList:e.inAttributeList,inScript:e.inScript}}},66794:(e,t,n)=>{function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}n.r(t),n.d(t,{mumps:()=>d});var i=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]"),o=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))"),a=new RegExp("^[\\.,:]"),s=new RegExp("[()]"),l=new RegExp("^[%A-Za-z][A-Za-z0-9]*"),c=r(["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"]),u=r(["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"]);const d={name:"mumps",startState:function(){return{label:!1,commandMode:0}},token:function(e,t){var n=function(e,t){e.sol()&&(t.label=!0,t.commandMode=0);var n=e.peek();return" "==n||"\t"==n?(t.label=!1,0==t.commandMode?t.commandMode=1:(t.commandMode<0||2==t.commandMode)&&(t.commandMode=0)):"."!=n&&t.commandMode>0&&(t.commandMode=":"==n?-1:2),"("!==n&&"\t"!==n||(t.label=!1),";"===n?(e.skipToEnd(),"comment"):e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/)?"number":'"'==n?e.skipTo('"')?(e.next(),"string"):(e.skipToEnd(),"error"):e.match(o)||e.match(i)?"operator":e.match(a)?null:s.test(n)?(e.next(),"bracket"):t.commandMode>0&&e.match(u)?"controlKeyword":e.match(c)?"builtin":e.match(l)?"variable":"$"===n||"^"===n?(e.next(),"builtin"):"@"===n?(e.next(),"string.special"):/[\w%]/.test(n)?(e.eatWhile(/[\w%]/),"variable"):(e.next(),"error")}(e,t);return t.label?"tag":n}}},12650:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rh});var i,o=r("break return rewrite set accept_mutex accept_mutex_delay access_log add_after_body add_before_body add_header addition_types aio alias allow ancient_browser ancient_browser_value auth_basic auth_basic_user_file auth_http auth_http_header auth_http_timeout autoindex autoindex_exact_size autoindex_localtime charset charset_types client_body_buffer_size client_body_in_file_only client_body_in_single_buffer client_body_temp_path client_body_timeout client_header_buffer_size client_header_timeout client_max_body_size connection_pool_size create_full_put_path daemon dav_access dav_methods debug_connection debug_points default_type degradation degrade deny devpoll_changes devpoll_events directio directio_alignment empty_gif env epoll_events error_log eventport_events expires fastcgi_bind fastcgi_buffer_size fastcgi_buffers fastcgi_busy_buffers_size fastcgi_cache fastcgi_cache_key fastcgi_cache_methods fastcgi_cache_min_uses fastcgi_cache_path fastcgi_cache_use_stale fastcgi_cache_valid fastcgi_catch_stderr fastcgi_connect_timeout fastcgi_hide_header fastcgi_ignore_client_abort fastcgi_ignore_headers fastcgi_index fastcgi_intercept_errors fastcgi_max_temp_file_size fastcgi_next_upstream fastcgi_param fastcgi_pass_header fastcgi_pass_request_body fastcgi_pass_request_headers fastcgi_read_timeout fastcgi_send_lowat fastcgi_send_timeout fastcgi_split_path_info fastcgi_store fastcgi_store_access fastcgi_temp_file_write_size fastcgi_temp_path fastcgi_upstream_fail_timeout fastcgi_upstream_max_fails flv geoip_city geoip_country google_perftools_profiles gzip gzip_buffers gzip_comp_level gzip_disable gzip_hash gzip_http_version gzip_min_length gzip_no_buffer gzip_proxied gzip_static gzip_types gzip_vary gzip_window if_modified_since ignore_invalid_headers image_filter image_filter_buffer image_filter_jpeg_quality image_filter_transparency imap_auth imap_capabilities imap_client_buffer index ip_hash keepalive_requests keepalive_timeout kqueue_changes kqueue_events large_client_header_buffers limit_conn limit_conn_log_level limit_rate limit_rate_after limit_req limit_req_log_level limit_req_zone limit_zone lingering_time lingering_timeout lock_file log_format log_not_found log_subrequest map_hash_bucket_size map_hash_max_size master_process memcached_bind memcached_buffer_size memcached_connect_timeout memcached_next_upstream memcached_read_timeout memcached_send_timeout memcached_upstream_fail_timeout memcached_upstream_max_fails merge_slashes min_delete_depth modern_browser modern_browser_value msie_padding msie_refresh multi_accept open_file_cache open_file_cache_errors open_file_cache_events open_file_cache_min_uses open_file_cache_valid open_log_file_cache output_buffers override_charset perl perl_modules perl_require perl_set pid pop3_auth pop3_capabilities port_in_redirect postpone_gzipping postpone_output protocol proxy proxy_bind proxy_buffer proxy_buffer_size proxy_buffering proxy_buffers proxy_busy_buffers_size proxy_cache proxy_cache_key proxy_cache_methods proxy_cache_min_uses proxy_cache_path proxy_cache_use_stale proxy_cache_valid proxy_connect_timeout proxy_headers_hash_bucket_size proxy_headers_hash_max_size proxy_hide_header proxy_ignore_client_abort proxy_ignore_headers proxy_intercept_errors proxy_max_temp_file_size proxy_method proxy_next_upstream proxy_pass_error_message proxy_pass_header proxy_pass_request_body proxy_pass_request_headers proxy_read_timeout proxy_redirect proxy_send_lowat proxy_send_timeout proxy_set_body proxy_set_header proxy_ssl_session_reuse proxy_store proxy_store_access proxy_temp_file_write_size proxy_temp_path proxy_timeout proxy_upstream_fail_timeout proxy_upstream_max_fails random_index read_ahead real_ip_header recursive_error_pages request_pool_size reset_timedout_connection resolver resolver_timeout rewrite_log rtsig_overflow_events rtsig_overflow_test rtsig_overflow_threshold rtsig_signo satisfy secure_link_secret send_lowat send_timeout sendfile sendfile_max_chunk server_name_in_redirect server_names_hash_bucket_size server_names_hash_max_size server_tokens set_real_ip_from smtp_auth smtp_capabilities smtp_client_buffer smtp_greeting_delay so_keepalive source_charset ssi ssi_ignore_recycled_buffers ssi_min_file_chunk ssi_silent_errors ssi_types ssi_value_length ssl ssl_certificate ssl_certificate_key ssl_ciphers ssl_client_certificate ssl_crl ssl_dhparam ssl_engine ssl_prefer_server_ciphers ssl_protocols ssl_session_cache ssl_session_timeout ssl_verify_client ssl_verify_depth starttls stub_status sub_filter sub_filter_once sub_filter_types tcp_nodelay tcp_nopush thread_stack_size timeout timer_resolution types_hash_bucket_size types_hash_max_size underscores_in_headers uninitialized_variable_warn use user userid userid_domain userid_expires userid_mark userid_name userid_p3p userid_path userid_service valid_referers variables_hash_bucket_size variables_hash_max_size worker_connections worker_cpu_affinity worker_priority worker_processes worker_rlimit_core worker_rlimit_nofile worker_rlimit_sigpending worker_threads working_directory xclient xml_entities xslt_stylesheet xslt_typesdrew@li229-23"),a=r("http mail events server types location upstream charset_map limit_except if geo map"),s=r("include root server server_name listen internal proxy_pass memcached_pass fastcgi_pass try_files");function l(e,t){return i=t,e}function c(e,t){e.eatWhile(/[\w\$_]/);var n=e.current();if(o.propertyIsEnumerable(n))return"keyword";if(a.propertyIsEnumerable(n))return"controlKeyword";if(s.propertyIsEnumerable(n))return"controlKeyword";var r,i=e.next();return"@"==i?(e.eatWhile(/[\w\\\-]/),l("meta",e.current())):"/"==i&&e.eat("*")?(t.tokenize=u,u(e,t)):"<"==i&&e.eat("!")?(t.tokenize=d,d(e,t)):"="!=i?"~"!=i&&"|"!=i||!e.eat("=")?'"'==i||"'"==i?(t.tokenize=(r=i,function(e,t){for(var n,i=!1;null!=(n=e.next())&&(n!=r||i);)i=!i&&"\\"==n;return i||(t.tokenize=c),l("string","string")}),t.tokenize(e,t)):"#"==i?(e.skipToEnd(),l("comment","comment")):"!"==i?(e.match(/^\s*\w*/),l("keyword","important")):/\d/.test(i)?(e.eatWhile(/[\w.%]/),l("number","unit")):/[,.+>*\/]/.test(i)?l(null,"select-op"):/[;{}:\[\]]/.test(i)?l(null,i):(e.eatWhile(/[\w\\\-]/),l("variable","variable")):l(null,"compare"):void l(null,"compare")}function u(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=c;break}r="*"==n}return l("comment","comment")}function d(e,t){for(var n,r=0;null!=(n=e.next());){if(r>=2&&">"==n){t.tokenize=c;break}r="-"==n?r+1:0}return l("comment","comment")}const h={name:"nginx",startState:function(){return{tokenize:c,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;i=null;var n=t.tokenize(e,t),r=t.stack[t.stack.length-1];return"hash"==i&&"rule"==r?n="atom":"variable"==n&&("rule"==r?n="number":r&&"@media{"!=r||(n="tag")),"rule"==r&&/^[\{\};]$/.test(i)&&t.stack.pop(),"{"==i?"@media"==r?t.stack[t.stack.length-1]="@media{":t.stack.push("{"):"}"==i?t.stack.pop():"@media"==i?t.stack.push("@media"):"{"==r&&"comment"!=i&&t.stack.push("rule"),n},indent:function(e,t,n){var r=e.stack.length;return/^\}/.test(t)&&(r-="rule"==e.stack[e.stack.length-1]?2:1),e.baseIndent+r*n.unit},languageData:{indentOnInput:/^\s*\}$/}}},32636:(e,t,n)=>{n.r(t),n.d(t,{nsis:()=>r});const r=(0,n(87834).Q)({start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|assert|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:!0},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:!0},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:!0},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:!0},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:!0},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"keyword",dedent:!0},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:!0},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"keyword",dedent:!0},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variableName.constant"},{regex:/\$\([\!\w\.:-]+\)/,token:"atom"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"nsis",indentOnInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}})},56913:(e,t,n)=>{n.r(t),n.d(t,{ntriples:()=>b});var r=0,i=1,o=2,a=3,s=4,l=5,c=6,u=7,d=8,h=9,f=10,m=11,p=12;function g(e,t){var n,g=e.location;n=g==r&&"<"==t?i:g==r&&"_"==t?o:g==a&&"<"==t?s:g==l&&"<"==t?c:g==l&&"_"==t?u:g==l&&'"'==t?d:g==i&&">"==t||g==o&&" "==t?a:g==s&&">"==t?l:g==c&&">"==t||g==u&&" "==t||g==d&&'"'==t||g==h&&" "==t||g==f&&">"==t?m:g==d&&"@"==t?h:g==d&&"^"==t?f:" "!=t||g!=r&&g!=a&&g!=l&&g!=m?g==m&&"."==t?r:p:g,e.location=n}const b={name:"ntriples",startState:function(){return{location:r,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,t){var n=e.next();if("<"==n){g(t,n);var r="";return e.eatWhile((function(e){return"#"!=e&&">"!=e&&(r+=e,!0)})),t.uris.push(r),e.match("#",!1)?"variable":(e.next(),g(t,">"),"variable")}if("#"==n){var i="";return e.eatWhile((function(e){return">"!=e&&" "!=e&&(i+=e,!0)})),t.anchors.push(i),"url"}if(">"==n)return g(t,">"),"variable";if("_"==n){g(t,n);var o="";return e.eatWhile((function(e){return" "!=e&&(o+=e,!0)})),t.bnodes.push(o),e.next(),g(t," "),"builtin"}if('"'==n)return g(t,n),e.eatWhile((function(e){return'"'!=e})),e.next(),"@"!=e.peek()&&"^"!=e.peek()&&g(t,'"'),"string";if("@"==n){g(t,"@");var a="";return e.eatWhile((function(e){return" "!=e&&(a+=e,!0)})),t.langs.push(a),e.next(),g(t," "),"string.special"}if("^"==n){e.next(),g(t,"^");var s="";return e.eatWhile((function(e){return">"!=e&&(s+=e,!0)})),t.types.push(s),e.next(),g(t,">"),"variable"}" "==n&&g(t,n),"."==n&&g(t,n)}}},81430:(e,t,n)=>{function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{octave:()=>g});var i=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]"),o=new RegExp("^[\\(\\[\\{\\},:=;\\.]"),a=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))"),s=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))"),l=new RegExp("^((>>=)|(<<=))"),c=new RegExp("^[\\]\\)]"),u=new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*"),d=r(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]),h=r(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function f(e,t){return e.sol()||"'"!==e.peek()?(t.tokenize=p,p(e,t)):(e.next(),t.tokenize=p,"operator")}function m(e,t){return e.match(/^.*%}/)?(t.tokenize=p,"comment"):(e.skipToEnd(),"comment")}function p(e,t){if(e.eatSpace())return null;if(e.match("%{"))return t.tokenize=m,e.skipToEnd(),"comment";if(e.match(/^[%#]/))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/))return e.tokenize=p,"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/))return"number"}if(e.match(r(["nan","NaN","inf","Inf"])))return"number";var n=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);return n?n[1]?"string":"error":e.match(h)?"keyword":e.match(d)?"builtin":e.match(u)?"variable":e.match(i)||e.match(a)?"operator":e.match(o)||e.match(s)||e.match(l)?null:e.match(c)?(t.tokenize=f,null):(e.next(),"error")}const g={name:"octave",startState:function(){return{tokenize:p}},token:function(e,t){var n=t.tokenize(e,t);return"number"!==n&&"variable"!==n||(t.tokenize=f),n},languageData:{commentTokens:{line:"%"}}}},87987:(e,t,n)=>{function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{oz:()=>y});var i=/[\^@!\|<>#~\.\*\-\+\\/,=]/,o=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/,a=/(:::)|(\.\.\.)|(=<:)|(>=:)/,s=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"],l=["end"],c=r(["true","false","nil","unit"]),u=r(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]),d=r(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]),h=r(s),f=r(l);function m(e,t){if(e.eatSpace())return null;if(e.match(/[{}]/))return"bracket";if(e.match("[]"))return"keyword";if(e.match(a)||e.match(o))return"operator";if(e.match(c))return"atom";var n=e.match(d);if(n)return t.doInCurrentLine?t.doInCurrentLine=!1:t.currentIndent++,"proc"==n[0]||"fun"==n[0]?t.tokenize=b:"class"==n[0]?t.tokenize=p:"meth"==n[0]&&(t.tokenize=g),"keyword";if(e.match(h)||e.match(u))return"keyword";if(e.match(f))return t.currentIndent--,"keyword";var r,s=e.next();if('"'==s||"'"==s)return t.tokenize=(r=s,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return!o&&i||(t.tokenize=m),"string"}),t.tokenize(e,t);if(/[~\d]/.test(s)){if("~"==s){if(!/^[0-9]/.test(e.peek()))return null;if("0"==e.next()&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}return"0"==s&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/)?"number":null}return"%"==s?(e.skipToEnd(),"comment"):"/"==s&&e.eat("*")?(t.tokenize=v,v(e,t)):i.test(s)?"operator":(e.eatWhile(/\w/),"variable")}function p(e,t){return e.eatSpace()?null:(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=m,"type")}function g(e,t){return e.eatSpace()?null:(e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/),t.tokenize=m,"def")}function b(e,t){return e.eatSpace()?null:!t.hasPassedFirstStage&&e.eat("{")?(t.hasPassedFirstStage=!0,"bracket"):t.hasPassedFirstStage?(e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/),t.hasPassedFirstStage=!1,t.tokenize=m,"def"):(t.tokenize=m,null)}function v(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=m;break}r="*"==n}return"comment"}const y={name:"oz",startState:function(){return{tokenize:m,currentIndent:0,doInCurrentLine:!1,hasPassedFirstStage:!1}},token:function(e,t){return e.sol()&&(t.doInCurrentLine=0),t.tokenize(e,t)},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(f)||r.match(h)||r.match(/(\[])/)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{indentOnInut:function(){var e=s.concat(l);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}(),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}}},67620:(e,t,n)=>{n.r(t),n.d(t,{pascal:()=>c});var r=function(e){for(var t={},n=e.split(" "),r=0;r!?|\/]/;function a(e,t){var n,a=e.next();if("#"==a&&t.startOfLine)return e.skipToEnd(),"meta";if('"'==a||"'"==a)return t.tokenize=(n=a,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=null),"string"}),t.tokenize(e,t);if("("==a&&e.eat("*"))return t.tokenize=s,s(e,t);if("{"==a)return t.tokenize=l,l(e,t);if(/[\[\]\(\),;\:\.]/.test(a))return null;if(/\d/.test(a))return e.eatWhile(/[\w\.]/),"number";if("/"==a&&e.eat("/"))return e.skipToEnd(),"comment";if(o.test(a))return e.eatWhile(o),"operator";e.eatWhile(/[\w\$_]/);var c=e.current();return r.propertyIsEnumerable(c)?"keyword":i.propertyIsEnumerable(c)?"atom":"variable"}function s(e,t){for(var n,r=!1;n=e.next();){if(")"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function l(e,t){for(var n;n=e.next();)if("}"==n){t.tokenize=null;break}return"comment"}const c={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||a)(e,t);return n},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}}},35833:(e,t,n)=>{function r(e,t){return e.string.charAt(e.pos+(t||0))}function i(e,t){if(t){var n=e.pos-t;return e.string.substr(n>=0?n:0,t)}return e.string.substr(0,e.pos-1)}function o(e,t){var n=e.string.length,r=n-e.pos+1;return e.string.substr(e.pos,t&&t=(n=e.string.length-1)?e.pos=n:e.pos=r}n.r(t),n.d(t,{perl:()=>f});var s={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null},l="string.special",c=/[goseximacplud]/;function u(e,t,n,r,i){return t.chain=null,t.style=null,t.tail=null,t.tokenize=function(e,t){for(var o,a=!1,s=0;o=e.next();){if(o===n[s]&&!a)return void 0!==n[++s]?(t.chain=n[s],t.style=r,t.tail=i):i&&e.eatWhile(i),t.tokenize=h,r;a=!a&&"\\"==o}return r},t.tokenize(e,t)}function d(e,t,n){return t.tokenize=function(e,t){return e.string==n&&(t.tokenize=h),e.skipToEnd(),"string"},t.tokenize(e,t)}function h(e,t){if(e.eatSpace())return null;if(t.chain)return u(e,t,t.chain,t.style,t.tail);if(e.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(e.match(/^<<(?=[_a-zA-Z])/))return e.eatWhile(/\w/),d(e,t,e.current().substr(2));if(e.sol()&&e.match(/^\=item(?!\w)/))return d(e,t,"=cut");var n=e.next();if('"'==n||"'"==n){if(i(e,3)=="<<"+n){var h=e.pos;e.eatWhile(/\w/);var f=e.current().substr(1);if(f&&e.eat(n))return d(e,t,f);e.pos=h}return u(e,t,[n],"string")}if("q"==n&&(!(m=r(e,-2))||!/\w/.test(m)))if("x"==(m=r(e,0))){if("("==(m=r(e,1)))return a(e,2),u(e,t,[")"],l,c);if("["==m)return a(e,2),u(e,t,["]"],l,c);if("{"==m)return a(e,2),u(e,t,["}"],l,c);if("<"==m)return a(e,2),u(e,t,[">"],l,c);if(/[\^'"!~\/]/.test(m))return a(e,1),u(e,t,[e.eat(m)],l,c)}else if("q"==m){if("("==(m=r(e,1)))return a(e,2),u(e,t,[")"],"string");if("["==m)return a(e,2),u(e,t,["]"],"string");if("{"==m)return a(e,2),u(e,t,["}"],"string");if("<"==m)return a(e,2),u(e,t,[">"],"string");if(/[\^'"!~\/]/.test(m))return a(e,1),u(e,t,[e.eat(m)],"string")}else if("w"==m){if("("==(m=r(e,1)))return a(e,2),u(e,t,[")"],"bracket");if("["==m)return a(e,2),u(e,t,["]"],"bracket");if("{"==m)return a(e,2),u(e,t,["}"],"bracket");if("<"==m)return a(e,2),u(e,t,[">"],"bracket");if(/[\^'"!~\/]/.test(m))return a(e,1),u(e,t,[e.eat(m)],"bracket")}else if("r"==m){if("("==(m=r(e,1)))return a(e,2),u(e,t,[")"],l,c);if("["==m)return a(e,2),u(e,t,["]"],l,c);if("{"==m)return a(e,2),u(e,t,["}"],l,c);if("<"==m)return a(e,2),u(e,t,[">"],l,c);if(/[\^'"!~\/]/.test(m))return a(e,1),u(e,t,[e.eat(m)],l,c)}else if(/[\^'"!~\/(\[{<]/.test(m)){if("("==m)return a(e,1),u(e,t,[")"],"string");if("["==m)return a(e,1),u(e,t,["]"],"string");if("{"==m)return a(e,1),u(e,t,["}"],"string");if("<"==m)return a(e,1),u(e,t,[">"],"string");if(/[\^'"!~\/]/.test(m))return u(e,t,[e.eat(m)],"string")}if("m"==n&&((!(m=r(e,-2))||!/\w/.test(m))&&(m=e.eat(/[(\[{<\^'"!~\/]/)))){if(/[\^'"!~\/]/.test(m))return u(e,t,[m],l,c);if("("==m)return u(e,t,[")"],l,c);if("["==m)return u(e,t,["]"],l,c);if("{"==m)return u(e,t,["}"],l,c);if("<"==m)return u(e,t,[">"],l,c)}if("s"==n&&(!(m=/[\/>\]})\w]/.test(r(e,-2)))&&(m=e.eat(/[(\[{<\^'"!~\/]/))))return u(e,t,"["==m?["]","]"]:"{"==m?["}","}"]:"<"==m?[">",">"]:"("==m?[")",")"]:[m,m],l,c);if("y"==n&&(!(m=/[\/>\]})\w]/.test(r(e,-2)))&&(m=e.eat(/[(\[{<\^'"!~\/]/))))return u(e,t,"["==m?["]","]"]:"{"==m?["}","}"]:"<"==m?[">",">"]:"("==m?[")",")"]:[m,m],l,c);if("t"==n&&(!(m=/[\/>\]})\w]/.test(r(e,-2)))&&(m=e.eat("r"))&&(m=e.eat(/[(\[{<\^'"!~\/]/))))return u(e,t,"["==m?["]","]"]:"{"==m?["}","}"]:"<"==m?[">",">"]:"("==m?[")",")"]:[m,m],l,c);if("`"==n)return u(e,t,[n],"builtin");if("/"==n)return/~\s*$/.test(i(e))?u(e,t,[n],l,c):"operator";if("$"==n){h=e.pos;if(e.eatWhile(/\d/)||e.eat("{")&&e.eatWhile(/\d/)&&e.eat("}"))return"builtin";e.pos=h}if(/[$@%]/.test(n)){h=e.pos;if(e.eat("^")&&e.eat(/[A-Z]/)||!/[@$%&]/.test(r(e,-2))&&e.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var m=e.current();if(s[m])return"builtin"}e.pos=h}if(/[$@%&]/.test(n)&&(e.eatWhile(/[\w$]/)||e.eat("{")&&e.eatWhile(/[\w$]/)&&e.eat("}"))){m=e.current();return s[m]?"builtin":"variable"}if("#"==n&&"$"!=r(e,-2))return e.skipToEnd(),"comment";if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(n)){h=e.pos;if(e.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/),s[e.current()])return"operator";e.pos=h}if("_"==n&&1==e.pos){if("_END__"==o(e,6))return u(e,t,["\0"],"comment");if("_DATA__"==o(e,7))return u(e,t,["\0"],"builtin");if("_C__"==o(e,7))return u(e,t,["\0"],"string")}if(/\w/.test(n)){h=e.pos;if("{"==r(e,-2)&&("}"==r(e,0)||e.eatWhile(/\w/)&&"}"==r(e,0)))return"string";e.pos=h}if(/[A-Z]/.test(n)){var p=r(e,-2);h=e.pos;if(e.eatWhile(/[A-Z_]/),!/[\da-z]/.test(r(e,0)))return(m=s[e.current()])?(m[1]&&(m=m[0]),":"!=p?1==m?"keyword":2==m?"def":3==m?"atom":4==m?"operator":5==m?"builtin":"meta":"meta"):"meta";e.pos=h}if(/[a-zA-Z_]/.test(n)){p=r(e,-2);return e.eatWhile(/\w/),(m=s[e.current()])?(m[1]&&(m=m[0]),":"!=p?1==m?"keyword":2==m?"def":3==m?"atom":4==m?"operator":5==m?"builtin":"meta":"meta"):"meta"}return null}const f={name:"perl",startState:function(){return{tokenize:h,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||h)(e,t)},languageData:{commentTokens:{line:"#"},wordChars:"$"}}},40152:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rm});var i="ABS ACOS ARITY ASIN ATAN AVG BAGSIZE BINSTORAGE BLOOM BUILDBLOOM CBRT CEIL CONCAT COR COS COSH COUNT COUNT_STAR COV CONSTANTSIZE CUBEDIMENSIONS DIFF DISTINCT DOUBLEABS DOUBLEAVG DOUBLEBASE DOUBLEMAX DOUBLEMIN DOUBLEROUND DOUBLESUM EXP FLOOR FLOATABS FLOATAVG FLOATMAX FLOATMIN FLOATROUND FLOATSUM GENERICINVOKER INDEXOF INTABS INTAVG INTMAX INTMIN INTSUM INVOKEFORDOUBLE INVOKEFORFLOAT INVOKEFORINT INVOKEFORLONG INVOKEFORSTRING INVOKER ISEMPTY JSONLOADER JSONMETADATA JSONSTORAGE LAST_INDEX_OF LCFIRST LOG LOG10 LOWER LONGABS LONGAVG LONGMAX LONGMIN LONGSUM MAX MIN MAPSIZE MONITOREDUDF NONDETERMINISTIC OUTPUTSCHEMA PIGSTORAGE PIGSTREAMING RANDOM REGEX_EXTRACT REGEX_EXTRACT_ALL REPLACE ROUND SIN SINH SIZE SQRT STRSPLIT SUBSTRING SUM STRINGCONCAT STRINGMAX STRINGMIN STRINGSIZE TAN TANH TOBAG TOKENIZE TOMAP TOP TOTUPLE TRIM TEXTLOADER TUPLESIZE UCFIRST UPPER UTF8STORAGECONVERTER ",o="VOID IMPORT RETURNS DEFINE LOAD FILTER FOREACH ORDER CUBE DISTINCT COGROUP JOIN CROSS UNION SPLIT INTO IF OTHERWISE ALL AS BY USING INNER OUTER ONSCHEMA PARALLEL PARTITION GROUP AND OR NOT GENERATE FLATTEN ASC DESC IS STREAM THROUGH STORE MAPREDUCE SHIP CACHE INPUT OUTPUT STDERROR STDIN STDOUT LIMIT SAMPLE LEFT RIGHT FULL EQ GT LT GTE LTE NEQ MATCHES TRUE FALSE DUMP",a="BOOLEAN INT LONG FLOAT DOUBLE CHARARRAY BYTEARRAY BAG TUPLE MAP ",s=r(i),l=r(o),c=r(a),u=/[*+\-%<>=&?:\/!|]/;function d(e,t,n){return t.tokenize=n,n(e,t)}function h(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=f;break}r="*"==n}return"comment"}function f(e,t){var n,r=e.next();return'"'==r||"'"==r?d(e,t,(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){o=!0;break}i=!i&&"\\"==r}return!o&&i||(t.tokenize=f),"error"})):/[\[\]{}\(\),;\.]/.test(r)?null:/\d/.test(r)?(e.eatWhile(/[\w\.]/),"number"):"/"==r?e.eat("*")?d(e,t,h):(e.eatWhile(u),"operator"):"-"==r?e.eat("-")?(e.skipToEnd(),"comment"):(e.eatWhile(u),"operator"):u.test(r)?(e.eatWhile(u),"operator"):(e.eatWhile(/[\w\$_]/),l&&l.propertyIsEnumerable(e.current().toUpperCase())&&!e.eat(")")&&!e.eat(".")?"keyword":s&&s.propertyIsEnumerable(e.current().toUpperCase())?"builtin":c&&c.propertyIsEnumerable(e.current().toUpperCase())?"type":"variable")}const m={name:"pig",startState:function(){return{tokenize:f,startOfLine:!0}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{autocomplete:(i+a+o).split(" ")}}},85993:(e,t,n)=>{function r(e,t){for(var n=void 0!==(t=t||{}).prefix?t.prefix:"^",r=void 0!==t.suffix?t.suffix:"\\b",i=0;iO});var i="(?=[^A-Za-z\\d\\-_]|$)",o=/[\w\-:]/,a=r([/begin|break|catch|continue|data|default|do|dynamicparam/,/else|elseif|end|exit|filter|finally|for|foreach|from|function|if|in/,/param|process|return|switch|throw|trap|try|until|where|while/],{suffix:i}),s=r(["f",/b?not/,/[ic]?split/,"join",/is(not)?/,"as",/[ic]?(eq|ne|[gl][te])/,/[ic]?(not)?(like|match|contains)/,/[ic]?replace/,/b?(and|or|xor)/],{prefix:"-"}),l=r([s,/[+\-*\/%]=|\+\+|--|\.\.|[+\-*&^%:=!|\/]|<(?!#)|(?!#)>/],{suffix:""}),c=r([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""}),u=r([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""}),d={keyword:a,number:/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i,operator:l,builtin:r([/[A-Z]:|%|\?/i,c,u],{suffix:i}),punctuation:/[\[\]{},;`\\\.]|@[({]/,variable:/^[A-Za-z\_][A-Za-z\-\_\d]*\b/};function h(e,t){var n=t.returnStack[t.returnStack.length-1];if(n&&n.shouldReturnFrom(t))return t.tokenize=n.tokenize,t.returnStack.pop(),t.tokenize(e,t);if(e.eatSpace())return null;if(e.eat("("))return t.bracketNesting+=1,"punctuation";if(e.eat(")"))return t.bracketNesting-=1,"punctuation";for(var r in d)if(e.match(d[r]))return r;var i=e.next();if("'"===i)return function(e,t){var n;for(;null!=(n=e.peek());)if(e.next(),"'"===n&&!e.eat("'"))return t.tokenize=h,"string";return"error"}(e,t);if("$"===i)return y(e,t);if('"'===i)return f(e,t);if("<"===i&&e.eat("#"))return t.tokenize=v,v(e,t);if("#"===i)return e.skipToEnd(),"comment";if("@"===i){var a=e.eat(/["']/);if(a&&e.eol())return t.tokenize=w,t.startQuote=a[0],w(e,t);if(e.eol())return"error";if(e.peek().match(/[({]/))return"punctuation";if(e.peek().match(o))return y(e,t)}return"error"}function f(e,t){for(var n;null!=(n=e.peek());){if("$"===n)return t.tokenize=m,"string";if(e.next(),"`"!==n){if('"'===n&&!e.eat('"'))return t.tokenize=h,"string"}else e.next()}return"error"}function m(e,t){return b(e,t,f)}function p(e,t){return t.tokenize=w,t.startQuote='"',w(e,t)}function g(e,t){return b(e,t,p)}function b(e,t,n){if(e.match("$(")){var r=t.bracketNesting;return t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===r},tokenize:n}),t.tokenize=h,t.bracketNesting+=1,"punctuation"}return e.next(),t.returnStack.push({shouldReturnFrom:function(){return!0},tokenize:n}),t.tokenize=y,t.tokenize(e,t)}function v(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&">"==n){t.tokenize=h;break}r="#"===n}return"comment"}function y(e,t){var n=e.peek();return e.eat("{")?(t.tokenize=k,k(e,t)):void 0!=n&&n.match(o)?(e.eatWhile(o),t.tokenize=h,"variable"):(t.tokenize=h,"error")}function k(e,t){for(var n;null!=(n=e.next());)if("}"===n){t.tokenize=h;break}return"variable"}function w(e,t){var n=t.startQuote;if(e.sol()&&e.match(new RegExp(n+"@")))t.tokenize=h;else if('"'===n)for(;!e.eol();){var r=e.peek();if("$"===r)return t.tokenize=g,"string";e.next(),"`"===r&&e.next()}else e.skipToEnd();return"string"}const O={name:"powershell",startState:function(){return{returnStack:[],bracketNesting:0,tokenize:h}},token:function(e,t){return t.tokenize(e,t)},languageData:{commentTokens:{line:"#",block:{open:"<#",close:"#>"}}}}},67112:(e,t,n)=>{n.r(t),n.d(t,{properties:()=>r});const r={name:"properties",token:function(e,t){var n=e.sol()||t.afterSection,r=e.eol();if(t.afterSection=!1,n&&(t.nextMultiline?(t.inMultiline=!0,t.nextMultiline=!1):t.position="def"),r&&!t.nextMultiline&&(t.inMultiline=!1,t.position="def"),n)for(;e.eatSpace(););var i=e.next();return!n||"#"!==i&&"!"!==i&&";"!==i?n&&"["===i?(t.afterSection=!0,e.skipTo("]"),e.eat("]"),"header"):"="===i||":"===i?(t.position="quote",null):("\\"===i&&"quote"===t.position&&e.eol()&&(t.nextMultiline=!0),t.position):(t.position="comment",e.skipToEnd(),"comment")},startState:function(){return{position:"def",nextMultiline:!1,inMultiline:!1,afterSection:!1}}}},58668:(e,t,n)=>{n.r(t),n.d(t,{protobuf:()=>a});var r=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"],i=new RegExp("^(("+r.join(")|(")+"))\\b","i"),o=new RegExp("^[_A-Za-z\xa1-\uffff][_A-Za-z0-9\xa1-\uffff]*");const a={name:"protobuf",token:function(e){if(e.eatSpace())return null;if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(/^[0-9\.+-]/,!1)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}return e.match(/^"([^"]|(""))*"/)||e.match(/^'([^']|(''))*'/)?"string":e.match(i)?"keyword":e.match(o)?"variable":(e.next(),null)},languageData:{autocomplete:r}}},23502:(e,t,n)=>{n.r(t),n.d(t,{puppet:()=>s});var r={},i=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function o(e,t){for(var n=t.split(" "),i=0;i.*/,!1),s=e.match(/(\s+)?[\w:_]+(\s+)?{/,!1),l=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,!1),c=e.next();if("$"===c)return e.match(i)?t.continueString?"variableName.special":"variable":"error";if(t.continueString)return e.backUp(1),a(e,t);if(t.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/))return"def";e.match(/\s+{/),t.inDefinition=!1}return t.inInclude?(e.match(/(\s+)?\S+(\s+)?/),t.inInclude=!1,"def"):e.match(/(\s+)?\w+\(/)?(e.backUp(1),"def"):o?(e.match(/(\s+)?\w+/),"tag"):n&&r.hasOwnProperty(n)?(e.backUp(1),e.match(/[\w]+/),e.match(/\s+\S+\s+{/,!1)&&(t.inDefinition=!0),"include"==n&&(t.inInclude=!0),r[n]):/(^|\s+)[A-Z][\w:_]+/.test(n)?(e.backUp(1),e.match(/(^|\s+)[A-Z][\w:_]+/),"def"):s?(e.match(/(\s+)?[\w:_]+/),"def"):l?(e.match(/(\s+)?[@]{1,2}/),"atom"):"#"==c?(e.skipToEnd(),"comment"):"'"==c||'"'==c?(t.pending=c,a(e,t)):"{"==c||"}"==c?"bracket":"/"==c?(e.match(/^[^\/]*\//),"string.special"):c.match(/[0-9]/)?(e.eatWhile(/[0-9]+/),"number"):"="==c?(">"==e.peek()&&e.next(),"operator"):(e.eatWhile(/[\w-]/),null)}(e,t)}}},2472:(e,t,n)=>{function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{cython:()=>u,mkPython:()=>l,python:()=>c});var i=r(["and","or","not","is"]),o=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in","False","True"],a=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function s(e){return e.scopes[e.scopes.length-1]}function l(e){for(var t="error",n=e.delimiters||e.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,l=[e.singleOperators,e.doubleOperators,e.doubleDelimiters,e.tripleDelimiters,e.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],c=0;ci?k(e,n):o0&&w(e,n)&&(a+=" "+t),a}return y(e,n)}function y(r,o,a){if(r.eatSpace())return null;if(!a&&r.match(/^#.*/))return"comment";if(r.match(/^[0-9\.]/,!1)){var s=!1;if(r.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(s=!0),r.match(/^[\d_]+\.\d*/)&&(s=!0),r.match(/^\.\d+/)&&(s=!0),s)return r.eat(/J/i),"number";var c=!1;if(r.match(/^0x[0-9a-f_]+/i)&&(c=!0),r.match(/^0b[01_]+/i)&&(c=!0),r.match(/^0o[0-7_]+/i)&&(c=!0),r.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(r.eat(/J/i),c=!0),r.match(/^0(?![\dx])/i)&&(c=!0),c)return r.eat(/L/i),"number"}if(r.match(p))return-1!==r.current().toLowerCase().indexOf("f")?(o.tokenize=function(n,r){for(;"rubf".indexOf(n.charAt(0).toLowerCase())>=0;)n=n.substr(1);var i=1==n.length,o="string";function a(e){return function(t,n){var r=y(t,n,!0);return"punctuation"==r&&("{"==t.current()?n.tokenize=a(e+1):"}"==t.current()&&(n.tokenize=e>1?a(e-1):s)),r}}function s(s,l){for(;!s.eol();)if(s.eatWhile(/[^'"\{\}\\]/),s.eat("\\")){if(s.next(),i&&s.eol())return o}else{if(s.match(n))return l.tokenize=r,o;if(s.match("{{"))return o;if(s.match("{",!1))return l.tokenize=a(0),s.current()?o:l.tokenize(s,l);if(s.match("}}"))return o;if(s.match("}"))return t;s.eat(/['"]/)}if(i){if(e.singleLineStringErrors)return t;l.tokenize=r}return o}return s.isString=!0,s}(r.current(),o.tokenize),o.tokenize(r,o)):(o.tokenize=function(n,r){for(;"rubf".indexOf(n.charAt(0).toLowerCase())>=0;)n=n.substr(1);var i=1==n.length,o="string";function a(a,s){for(;!a.eol();)if(a.eatWhile(/[^'"\\]/),a.eat("\\")){if(a.next(),i&&a.eol())return o}else{if(a.match(n))return s.tokenize=r,o;a.eat(/['"]/)}if(i){if(e.singleLineStringErrors)return t;s.tokenize=r}return o}return a.isString=!0,a}(r.current(),o.tokenize),o.tokenize(r,o));for(var u=0;u1&&s(t).offset>n;){if("py"!=s(t).type)return!0;t.scopes.pop()}return s(t).offset!=n}function O(e,n){e.sol()&&(n.beginningOfLine=!0,n.dedent=!1);var r=n.tokenize(e,n),i=e.current();if(n.beginningOfLine&&"@"==i)return e.match(m,!1)?"meta":f?"operator":t;if(/\S/.test(i)&&(n.beginningOfLine=!1),"variable"!=r&&"builtin"!=r||"meta"!=n.lastToken||(r="meta"),"pass"!=i&&"return"!=i||(n.dedent=!0),"lambda"==i&&(n.lambda=!0),":"==i&&!n.lambda&&"py"==s(n).type&&e.match(/^\s*(?:#|$)/,!1)&&k(e,n),1==i.length&&!/string|comment/.test(r)){var o="[({".indexOf(i);if(-1!=o&&function(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+(u||e.indentUnit),type:n,align:r})}(e,n,"])}".slice(o,o+1)),-1!=(o="])}".indexOf(i))){if(s(n).type!=i)return t;n.indent=n.scopes.pop().offset-(u||e.indentUnit)}}return n.dedent&&e.eol()&&"py"==s(n).type&&n.scopes.length>1&&n.scopes.pop(),r}return{name:"python",startState:function(){return{tokenize:v,scopes:[{offset:0,type:"py",align:null}],indent:0,lastToken:null,lambda:!1,dedent:0}},token:function(e,n){var r=n.errorToken;r&&(n.errorToken=!1);var i=O(e,n);return i&&"comment"!=i&&(n.lastToken="keyword"==i||"punctuation"==i?e.current():i),"punctuation"==i&&(i=null),e.eol()&&n.lambda&&(n.lambda=!1),r?t:i},indent:function(e,t,n){if(e.tokenize!=v)return e.tokenize.isString?null:0;var r=s(e),i=r.type==t.charAt(0)||"py"==r.type&&!e.dedent&&/^(else:|elif |except |finally:)/.test(t);return null!=r.align?r.align-(i?1:0):r.offset-(i?u||n.unit:0)},languageData:{autocomplete:o.concat(a).concat(["exec","print"]),indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,commentTokens:{line:"#"},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}const c=l({}),u=l({extra_keywords:(d="by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE",d.split(" "))});var d},45526:(e,t,n)=>{n.r(t),n.d(t,{q:()=>f});var r,i=new RegExp("^("+["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"].join("|")+")$"),o=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function a(e,t){var n=e.sol(),l=e.next();if(r=null,n){if("/"==l)return(t.tokenize=s)(e,t);if("\\"==l)return e.eol()||/\s/.test(e.peek())?(e.skipToEnd(),/^\\\s*$/.test(e.current())?(t.tokenize=c)(e):t.tokenize=a,"comment"):(t.tokenize=a,"builtin")}if(/\s/.test(l))return"/"==e.peek()?(e.skipToEnd(),"comment"):"null";if('"'==l)return(t.tokenize=u)(e,t);if("`"==l)return e.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==l&&/\d/.test(e.peek())||/\d/.test(l)){var d=null;return e.backUp(1),e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/)?d="temporal":(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))&&(d="number"),!d||(l=e.peek())&&!o.test(l)?(e.next(),"error"):d}return/[A-Za-z]|\./.test(l)?(e.eatWhile(/[A-Za-z._\d]/),i.test(e.current())?"keyword":"variable"):/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(l)||/[{}\(\[\]\)]/.test(l)?null:"error"}function s(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=l)(e,t):t.tokenize=a,"comment"}function l(e,t){var n=e.sol()&&"\\"==e.peek();return e.skipToEnd(),n&&/^\\\s*$/.test(e.current())&&(t.tokenize=a),"comment"}function c(e){return e.skipToEnd(),"comment"}function u(e,t){for(var n,r=!1,i=!1;n=e.next();){if('"'==n&&!r){i=!0;break}r=!r&&"\\"==n}return i&&(t.tokenize=a),"string"}function d(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function h(e){e.indent=e.context.indent,e.context=e.context.prev}const f={name:"q",startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,t){e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation());var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==r)d(t,")",e.column());else if("["==r)d(t,"]",e.column());else if("{"==r)d(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"==t.context.type;)h(t);t.context&&r==t.context.type&&h(t)}else"."==r&&t.context&&"pattern"==t.context.type?h(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?d(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0}}},2018:(e,t,n)=>{function r(e){for(var t={},n=0;nb});var i,o=["NULL","NA","Inf","NaN","NA_integer_","NA_real_","NA_complex_","NA_character_","TRUE","FALSE"],a=["list","quote","bquote","eval","return","call","parse","deparse"],s=["if","else","repeat","while","function","for","in","next","break"],l=r(o),c=r(a),u=r(s),d=r(["if","else","repeat","while","function","for"]),h=/[+\-*\/^<>=!&|~$:]/;function f(e,t){i=null;var n,r=e.next();if("#"==r)return e.skipToEnd(),"comment";if("0"==r&&e.eat("x"))return e.eatWhile(/[\da-f]/i),"number";if("."==r&&e.eat(/\d/))return e.match(/\d*(?:e[+\-]?\d+)?/),"number";if(/\d/.test(r))return e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/),"number";if("'"==r||'"'==r)return t.tokenize=(n=r,function(e,t){if(e.eat("\\")){var r=e.next();return"x"==r?e.match(/^[a-f0-9]{2}/i):("u"==r||"U"==r)&&e.eat("{")&&e.skipTo("}")?e.next():"u"==r?e.match(/^[a-f0-9]{4}/i):"U"==r?e.match(/^[a-f0-9]{8}/i):/[0-7]/.test(r)&&e.match(/^[0-7]{1,2}/),"string.special"}for(var i;null!=(i=e.next());){if(i==n){t.tokenize=f;break}if("\\"==i){e.backUp(1);break}}return"string"}),"string";if("`"==r)return e.match(/[^`]+`/),"string.special";if("."==r&&e.match(/.(?:[.]|\d+)/))return"keyword";if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var o=e.current();return l.propertyIsEnumerable(o)?"atom":u.propertyIsEnumerable(o)?(d.propertyIsEnumerable(o)&&!e.match(/\s*if(\s+|$)/,!1)&&(i="block"),"keyword"):c.propertyIsEnumerable(o)?"builtin":"variable"}return"%"==r?(e.skipTo("%")&&e.next(),"variableName.special"):"<"==r&&e.eat("-")||"<"==r&&e.match("<-")||"-"==r&&e.match(/>>?/)||"="==r&&t.ctx.argList?"operator":h.test(r)?("$"==r||e.eatWhile(h),"operator"):/[\(\){}\[\];]/.test(r)?(i=r,";"==r?"punctuation":null):null}function m(e,t,n){e.ctx={type:t,indent:e.indent,flags:0,column:n.column(),prev:e.ctx}}function p(e,t){var n=e.ctx;e.ctx={type:n.type,indent:n.indent,flags:n.flags|t,column:n.column,prev:n.prev}}function g(e){e.indent=e.ctx.indent,e.ctx=e.ctx.prev}const b={name:"r",startState:function(e){return{tokenize:f,ctx:{type:"top",indent:-e,flags:2},indent:0,afterIdent:!1}},token:function(e,t){if(e.sol()&&(0==(3&t.ctx.flags)&&(t.ctx.flags|=2),4&t.ctx.flags&&g(t),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);return"comment"!=n&&0==(2&t.ctx.flags)&&p(t,1),";"!=i&&"{"!=i&&"}"!=i||"block"!=t.ctx.type||g(t),"{"==i?m(t,"}",e):"("==i?(m(t,")",e),t.afterIdent&&(t.ctx.argList=!0)):"["==i?m(t,"]",e):"block"==i?m(t,"block",e):i==t.ctx.type?g(t):"block"==t.ctx.type&&"comment"!=n&&p(t,4),t.afterIdent="variable"==n||"keyword"==n,n},indent:function(e,t,n){if(e.tokenize!=f)return 0;var r=t&&t.charAt(0),i=e.ctx,o=r==i.type;return 4&i.flags&&(i=i.prev),"block"==i.type?i.indent+("{"==r?0:n.unit):1&i.flags?i.column+(o?0:1):i.indent+(o?0:n.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:o.concat(a,s)}}},19528:(e,t,n)=>{n.r(t),n.d(t,{rpmChanges:()=>a,rpmSpec:()=>f});var r=/^-+$/,i=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /,o=/^[\w+.-]+@[\w.-]+/;const a={name:"rpmchanges",token:function(e){if(e.sol()){if(e.match(r))return"tag";if(e.match(i))return"tag"}return e.match(o)?"string":(e.next(),null)}};var s=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/,l=/^[a-zA-Z0-9()]+:/,c=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/,u=/^%(ifnarch|ifarch|if)/,d=/^%(else|endif)/,h=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;const f={name:"rpmspec",startState:function(){return{controlFlow:!1,macroParameters:!1,section:!1}},token:function(e,t){if("#"==e.peek())return e.skipToEnd(),"comment";if(e.sol()){if(e.match(l))return"header";if(e.match(c))return"atom"}if(e.match(/^\$\w+/))return"def";if(e.match(/^\$\{\w+\}/))return"def";if(e.match(d))return"keyword";if(e.match(u))return t.controlFlow=!0,"keyword";if(t.controlFlow){if(e.match(h))return"operator";if(e.match(/^(\d+)/))return"number";e.eol()&&(t.controlFlow=!1)}if(e.match(s))return e.eol()&&(t.controlFlow=!1),"number";if(e.match(/^%[\w]+/))return e.match("(")&&(t.macroParameters=!0),"keyword";if(t.macroParameters){if(e.match(/^\d+/))return"number";if(e.match(")"))return t.macroParameters=!1,"keyword"}return e.match(/^%\{\??[\w \-\:\!]+\}/)?(e.eol()&&(t.controlFlow=!1),"def"):(e.next(),null)}}},82654:(e,t,n)=>{function r(e){for(var t={},n=0,r=e.length;nb});var i,o=["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"],a=r(o),s=r(["def","class","case","for","while","until","module","catch","loop","proc","begin"]),l=r(["end","until"]),c={"[":"]","{":"}","(":")"},u={"]":"[","}":"{",")":"("};function d(e,t,n){return n.tokenize.push(e),e(t,n)}function h(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(g),"comment";if(e.eatSpace())return null;var n,r,o,a=e.next();if("`"==a||"'"==a||'"'==a)return d(p(a,"string",'"'==a||"`"==a),e,t);if("/"==a)return function(e){var t,n=e.pos,r=0,i=!1,o=!1;for(;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}(e)?d(p(a,"string.special",!0),e,t):"operator";if("%"==a){var s="string",l=!0;e.eat("s")?s="atom":e.eat(/[WQ]/)?s="string":e.eat(/[r]/)?s="string.special":e.eat(/[wxq]/)&&(s="string",l=!1);var u=e.eat(/[^\w\s=]/);return u?(c.propertyIsEnumerable(u)&&(u=c[u]),d(p(u,s,l,!0),e,t)):"operator"}if("#"==a)return e.skipToEnd(),"comment";if("<"==a&&(n=e.match(/^<([-~])[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return d((r=n[2],o=n[1],function(e,t){return o&&e.eatSpace(),e.match(r)?t.tokenize.pop():e.skipToEnd(),"string"}),e,t);if("0"==a)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(a))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==a){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==a)return e.eat("'")?d(p("'","atom",!1),e,t):e.eat('"')?d(p('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==a&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"propertyName";if("$"==a)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variableName.special";if(/[a-zA-Z_\xa1-\uffff]/.test(a))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"variable";if("|"!=a||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(a))return i=a,null;if("-"==a&&e.eat(">"))return"operator";if(/[=+\-\/*:\.^%<>~|]/.test(a)){var h=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=a||h||(i="."),"operator"}return null}return i="|",null}function f(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=f(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=f(e+1));return h(t,n)}}function m(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,h(t,n))}}function p(e,t,n,r){return function(i,o){var a,s=!1;for("read-quoted-paused"===o.context.type&&(o.context=o.context.prev,i.eat("}"));null!=(a=i.next());){if(a==e&&(r||!s)){o.tokenize.pop();break}if(n&&"#"==a&&!s){if(i.eat("{")){"}"==e&&(o.context={prev:o.context,type:"read-quoted-paused"}),o.tokenize.push(f());break}if(/[@\$]/.test(i.peek())){o.tokenize.push(m());break}}s=!s&&"\\"==a}return t}}function g(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}const b={name:"ruby",startState:function(e){return{tokenize:[h],indented:0,context:{type:"top",indented:-e},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){i=null,e.sol()&&(t.indented=e.indentation());var n,r=t.tokenize[t.tokenize.length-1](e,t),o=i;if("variable"==r){var c=e.current();"keyword"==(r="."==t.lastTok?"property":a.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(c)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable")&&(o=c,s.propertyIsEnumerable(c)?n="indent":l.propertyIsEnumerable(c)?n="dedent":"if"!=c&&"unless"!=c||e.column()!=e.indentation()?"do"==c&&t.context.indented{n.r(t),n.d(t,{sas:()=>l});var r={},i={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"},o=/(<=|>=|!=|<>)/,a=/[=\(:\),{}.*<>+\-\/^\[\]]/;function s(e,t,n){if(n)for(var i=t.split(" "),o=0;o{n.r(t),n.d(t,{scheme:()=>x});var r="comment",i="string",o="symbol",a="atom",s="number",l="bracket";function c(e){for(var t={},n=e.split(" "),r=0;rinteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?"),d=c("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function h(e,t,n){this.indent=e,this.type=t,this.prev=n}function f(e,t,n){e.indentStack=new h(t,n,e.indentStack)}var m=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i),p=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i),g=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i),b=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function v(e){return e.match(m)}function y(e){return e.match(p)}function k(e,t){return!0===t&&e.backUp(1),e.match(b)}function w(e){return e.match(g)}function O(e,t){for(var n,r=!1;null!=(n=e.next());){if(n==t.token&&!r){t.state.mode=!1;break}r=!r&&"\\"==n}}const x={name:"scheme",startState:function(){return{indentStack:null,indentation:0,mode:!1,sExprComment:!1,sExprQuote:!1}},token:function(e,t){if(null==t.indentStack&&e.sol()&&(t.indentation=e.indentation()),e.eatSpace())return null;var n=null;switch(t.mode){case"string":O(e,{token:'"',state:t}),n=i;break;case"symbol":O(e,{token:"|",state:t}),n=o;break;case"comment":for(var c,h=!1;null!=(c=e.next());){if("#"==c&&h){t.mode=!1;break}h="|"==c}n=r;break;case"s-expr-comment":if(t.mode=!1,"("!=e.peek()&&"["!=e.peek()){e.eatWhile(/[^\s\(\)\[\]]/),n=r;break}t.sExprComment=0;default:var m=e.next();if('"'==m)t.mode="string",n=i;else if("'"==m)"("==e.peek()||"["==e.peek()?("number"!=typeof t.sExprQuote&&(t.sExprQuote=0),n=a):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=a);else if("|"==m)t.mode="symbol",n=o;else if("#"==m)if(e.eat("|"))t.mode="comment",n=r;else if(e.eat(/[tf]/i))n=a;else if(e.eat(";"))t.mode="s-expr-comment",n=r;else{var p=null,g=!1,b=!0;e.eat(/[ei]/i)?g=!0:e.backUp(1),e.match(/^#b/i)?p=v:e.match(/^#o/i)?p=y:e.match(/^#x/i)?p=w:e.match(/^#d/i)?p=k:e.match(/^[-+0-9.]/,!1)?(b=!1,p=k):g||e.eat("#"),null!=p&&(b&&!g&&e.match(/^#[ei]/i),p(e)&&(n=s))}else if(/^[-+0-9.]/.test(m)&&k(e,!0))n=s;else if(";"==m)e.skipToEnd(),n=r;else if("("==m||"["==m){for(var x,S="",_=e.column();null!=(x=e.eat(/[^\s\(\[\;\)\]]/));)S+=x;S.length>0&&d.propertyIsEnumerable(S)?f(t,_+2,m):(e.eatSpace(),e.eol()||";"==e.peek()?f(t,_+1,m):f(t,_+e.current().length,m)),e.backUp(e.current().length-1),"number"==typeof t.sExprComment&&t.sExprComment++,"number"==typeof t.sExprQuote&&t.sExprQuote++,n=l}else")"==m||"]"==m?(n=l,null!=t.indentStack&&t.indentStack.type==(")"==m?"(":"[")&&(!function(e){e.indentStack=e.indentStack.prev}(t),"number"==typeof t.sExprComment&&0==--t.sExprComment&&(n=r,t.sExprComment=!1),"number"==typeof t.sExprQuote&&0==--t.sExprQuote&&(n=a,t.sExprQuote=!1))):(e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/),n=u&&u.propertyIsEnumerable(e.current())?"builtin":"variable")}return"number"==typeof t.sExprComment?r:"number"==typeof t.sExprQuote?a:n},indent:function(e){return null==e.indentStack?e.indentation:e.indentStack.indent},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"}}}},578:(e,t,n)=>{n.r(t),n.d(t,{shell:()=>f});var r={};function i(e,t){for(var n=0;n1&&e.eat("$");var n=e.next();return/['"({]/.test(n)?(t.tokens[0]=c(n,"("==n?"quote":"{"==n?"def":"string"),h(e,t)):(/\d/.test(n)||e.eatWhile(/\w/),t.tokens.shift(),"def")};function h(e,t){return(t.tokens[0]||l)(e,t)}const f={name:"shell",startState:function(){return{tokens:[]}},token:function(e,t){return h(e,t)},languageData:{autocomplete:o.concat(a,s),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}},21308:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rc});var i=r("if elsif else stop require"),o=r("true false not");function a(e,t){var n,r=e.next();if("/"==r&&e.eat("*"))return t.tokenize=l,l(e,t);if("#"===r)return e.skipToEnd(),"comment";if('"'==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1;null!=(r=e.next())&&(r!=n||i);)i=!i&&"\\"==r;return i||(t.tokenize=a),"string"}),t.tokenize(e,t);if("("==r)return t._indent.push("("),t._indent.push("{"),null;if("{"===r)return t._indent.push("{"),null;if(")"==r&&(t._indent.pop(),t._indent.pop()),"}"===r)return t._indent.pop(),null;if(","==r)return null;if(";"==r)return null;if(/[{}\(\),;]/.test(r))return null;if(/\d/.test(r))return e.eatWhile(/[\d]/),e.eat(/[KkMmGg]/),"number";if(":"==r)return e.eatWhile(/[a-zA-Z_]/),e.eatWhile(/[a-zA-Z0-9_]/),"operator";e.eatWhile(/\w/);var c=e.current();return"text"==c&&e.eat(":")?(t.tokenize=s,"string"):i.propertyIsEnumerable(c)?"keyword":o.propertyIsEnumerable(c)?"atom":null}function s(e,t){return t._multiLineString=!0,e.sol()?("."==e.next()&&e.eol()&&(t._multiLineString=!1,t.tokenize=a),"string"):(e.eatSpace(),"#"==e.peek()?(e.skipToEnd(),"comment"):(e.skipToEnd(),"string"))}function l(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=a;break}r="*"==n}return"comment"}const c={name:"sieve",startState:function(e){return{tokenize:a,baseIndent:e||0,_indent:[]}},token:function(e,t){return e.eatSpace()?null:(t.tokenize||a)(e,t)},indent:function(e,t,n){var r=e._indent.length;return t&&"}"==t[0]&&r--,r<0&&(r=0),r*n.unit},languageData:{indentOnInput:/^\s*\}$/}}},87834:(e,t,n)=>{function r(e){i(e,"start");var t={},n=e.languageData||{},r=!1;for(var l in e)if(l!=n&&e.hasOwnProperty(l))for(var c=t[l]=[],u=e[l],d=0;d2&&a.token&&"string"!=typeof a.token){n.pending=[];for(var c=2;c-1)return null;var i=n.indent.length-1,o=e[n.state];e:for(;;){for(var a=0;ar})},3459:(e,t,n)=>{n.r(t),n.d(t,{smalltalk:()=>f});var r=/[+\-\/\\*~<>=@%|&?!.,:;^]/,i=/true|false|nil|self|super|thisContext/,o=function(e,t){this.next=e,this.parent=t},a=function(e,t,n){this.name=e,this.context=t,this.eos=n},s=function(){this.context=new o(l,null),this.expectVariable=!0,this.indentation=0,this.userIndentationDelta=0};s.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var l=function(e,t,n){var s=new a(null,t,!1),l=e.next();return'"'===l?s=c(e,new o(c,t)):"'"===l?s=u(e,new o(u,t)):"#"===l?"'"===e.peek()?(e.next(),s=d(e,new o(d,t))):e.eatWhile(/[^\s.{}\[\]()]/)?s.name="string.special":s.name="meta":"$"===l?("<"===e.next()&&(e.eatWhile(/[^\s>]/),e.next()),s.name="string.special"):"|"===l&&n.expectVariable?s.context=new o(h,t):/[\[\]{}()]/.test(l)?(s.name="bracket",s.eos=/[\[{(]/.test(l),"["===l?n.indentation++:"]"===l&&(n.indentation=Math.max(0,n.indentation-1))):r.test(l)?(e.eatWhile(r),s.name="operator",s.eos=";"!==l):/\d/.test(l)?(e.eatWhile(/[\w\d]/),s.name="number"):/[\w_]/.test(l)?(e.eatWhile(/[\w\d_]/),s.name=n.expectVariable?i.test(e.current())?"keyword":"variable":null):s.eos=n.expectVariable,s},c=function(e,t){return e.eatWhile(/[^"]/),new a("comment",e.eat('"')?t.parent:t,!0)},u=function(e,t){return e.eatWhile(/[^']/),new a("string",e.eat("'")?t.parent:t,!1)},d=function(e,t){return e.eatWhile(/[^']/),new a("string.special",e.eat("'")?t.parent:t,!1)},h=function(e,t){var n=new a(null,t,!1);return"|"===e.next()?(n.context=t.parent,n.eos=!0):(e.eatWhile(/[^|]/),n.name="variable"),n};const f={name:"smalltalk",startState:function(){return new s},token:function(e,t){if(t.userIndent(e.indentation(),e.indentUnit),e.eatSpace())return null;var n=t.context.next(e,t.context,t);return t.context=n.context,t.expectVariable=n.eos,n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var r=e.context.next===l&&t&&"]"===t.charAt(0)?-1:e.userIndentationDelta;return(e.indentation+r)*n.unit},languageData:{indentOnInput:/^\s*\]$/}}},14288:(e,t,n)=>{n.r(t),n.d(t,{solr:()=>l});var r=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/,i=/[\|\!\+\-\*\?\~\^\&]/,o=/^(OR|AND|NOT|TO)$/i;function a(e){return function(t,n){for(var i=e;(e=t.peek())&&null!=e.match(r);)i+=t.next();return n.tokenize=s,o.test(i)?"operator":function(e){return parseFloat(e).toString()===e}(i)?"number":":"==t.peek()?"propertyName":"string"}}function s(e,t){var n,o,l=e.next();return'"'==l?t.tokenize=(o=l,function(e,t){for(var n,r=!1;null!=(n=e.next())&&(n!=o||r);)r=!r&&"\\"==n;return r||(t.tokenize=s),"string"}):i.test(l)?t.tokenize=(n=l,function(e,t){return"|"==n?e.eat(/\|/):"&"==n&&e.eat(/\&/),t.tokenize=s,"operator"}):r.test(l)&&(t.tokenize=a(l)),t.tokenize!=s?t.tokenize(e,t):null}const l={name:"solr",startState:function(){return{tokenize:s}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}},69830:(e,t,n)=>{var r;function i(e){return new RegExp("^(?:"+e.join("|")+")$","i")}n.r(t),n.d(t,{sparql:()=>p});var o=i(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]),a=i(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]),s=/[*+\-<>=&|\^\/!\?]/,l="[A-Za-z_\\-0-9]",c=new RegExp("[A-Za-z]"),u=new RegExp("(("+l+"|\\.)*("+l+"))?:");function d(e,t){var n,i=e.next();if(r=null,"$"==i||"?"==i)return"?"==i&&e.match(/\s/,!1)?"operator":(e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/),"variableName.local");if("<"==i&&!e.match(/^[\s\u00a0=]/,!1))return e.match(/^[^\s\u00a0>]*>?/),"atom";if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=d;break}i=!i&&"\\"==r}return"string"}),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(i))return r=i,"bracket";if("#"==i)return e.skipToEnd(),"comment";if(s.test(i))return"operator";if(":"==i)return h(e),"atom";if("@"==i)return e.eatWhile(/[a-z\d\-]/i),"meta";if(c.test(i)&&e.match(u))return h(e),"atom";e.eatWhile(/[_\w\d]/);var l=e.current();return o.test(l)?"builtin":a.test(l)?"keyword":"variable"}function h(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function f(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function m(e){e.indent=e.context.indent,e.context=e.context.prev}const p={name:"sparql",startState:function(){return{tokenize:d,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==r)f(t,")",e.column());else if("["==r)f(t,"]",e.column());else if("{"==r)f(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"==t.context.type;)m(t);t.context&&r==t.context.type&&(m(t),"}"==r&&t.context&&"pattern"==t.context.type&&m(t))}else"."==r&&t.context&&"pattern"==t.context.type?m(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?f(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0},languageData:{commentTokens:{line:"#"}}}},62817:(e,t,n)=>{n.r(t),n.d(t,{spreadsheet:()=>r});const r={name:"spreadsheet",startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(e){switch(0===t.stack.length&&('"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.stack.unshift("string"))),t.stack[0]){case"string":for(;"string"===t.stack[0]&&!e.eol();)e.peek()===t.stringType?(e.next(),t.stack.shift()):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return"string";case"characterClass":for(;"characterClass"===t.stack[0]&&!e.eol();)e.match(/^[^\]\\]+/)||e.match(/^\\./)||t.stack.shift();return"operator"}var n=e.peek();switch(n){case"[":return e.next(),t.stack.unshift("characterClass"),"bracket";case":":return e.next(),"operator";case"\\":return e.match(/\\[a-z]+/)?"string.special":(e.next(),"atom");case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":return e.next(),"atom";case"$":return e.next(),"builtin"}return e.match(/\d+/)?e.match(/^\w+/)?"error":"number":e.match(/^[a-zA-Z_]\w*/)?e.match(/(?=[\(.])/,!1)?"keyword":"variable":-1!=["[","]","(",")","{","}"].indexOf(n)?(e.next(),"bracket"):(e.eatSpace()||e.next(),null)}}}},27170:(e,t,n)=>{function r(e){var t=e.client||{},n=e.atoms||{false:!0,true:!0,null:!0},r=e.builtin||l(c),i=e.keywords||l(s),o=e.operatorChars||/^[*+\-%<>!=&|~^\/]/,a=e.support||{},u=e.hooks||{},d=e.dateSQL||{date:!0,time:!0,timestamp:!0},h=!1!==e.backslashStringEscapes,f=e.brackets||/^[\{}\(\)\[\]]/,m=e.punctuation||/^[;.,:]/;function p(e,s){var l=e.next();if(u[l]){var c=u[l](e,s);if(!1!==c)return c}if(a.hexNumber&&("0"==l&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==l||"X"==l)&&e.match(/^'[0-9a-fA-F]*'/)))return"number";if(a.binaryNumber&&(("b"==l||"B"==l)&&e.match(/^'[01]+'/)||"0"==l&&e.match(/^b[01]*/)))return"number";if(l.charCodeAt(0)>47&&l.charCodeAt(0)<58)return e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/),a.decimallessFloat&&e.match(/^\.(?!\.)/),"number";if("?"==l&&(e.eatSpace()||e.eol()||e.eat(";")))return"macroName";if("'"==l||'"'==l&&a.doubleQuote)return s.tokenize=g(l),s.tokenize(e,s);if((a.nCharCast&&("n"==l||"N"==l)||a.charsetCast&&"_"==l&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(a.escapeConstant&&("e"==l||"E"==l)&&("'"==e.peek()||'"'==e.peek()&&a.doubleQuote))return s.tokenize=function(e,t){return(t.tokenize=g(e.next(),!0))(e,t)},"keyword";if(a.commentSlashSlash&&"/"==l&&e.eat("/"))return e.skipToEnd(),"comment";if(a.commentHash&&"#"==l||"-"==l&&e.eat("-")&&(!a.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==l&&e.eat("*"))return s.tokenize=b(1),s.tokenize(e,s);if("."!=l){if(o.test(l))return e.eatWhile(o),"operator";if(f.test(l))return"bracket";if(m.test(l))return e.eatWhile(m),"punctuation";if("{"==l&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var h=e.current().toLowerCase();return d.hasOwnProperty(h)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":n.hasOwnProperty(h)?"atom":r.hasOwnProperty(h)?"type":i.hasOwnProperty(h)?"keyword":t.hasOwnProperty(h)?"builtin":null}return a.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":e.match(/^\.+/)?null:a.ODBCdotTable&&e.match(/^[\w\d_$#]+/)?"type":void 0}function g(e,t){return function(n,r){for(var i,o=!1;null!=(i=n.next());){if(i==e&&!o){r.tokenize=p;break}o=(h||t)&&!o&&"\\"==i}return"string"}}function b(e){return function(t,n){var r=t.match(/^.*?(\/\*|\*\/)/);return r?"/*"==r[1]?n.tokenize=b(e+1):n.tokenize=e>1?b(e-1):p:t.skipToEnd(),"comment"}}function v(e,t,n){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:n}}return{name:"sql",startState:function(){return{tokenize:p,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),t.tokenize==p&&e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"==n)return n;t.context&&null==t.context.align&&(t.context.align=!0);var r=e.current();return"("==r?v(e,t,")"):"["==r?v(e,t,"]"):t.context&&t.context.type==r&&function(e){e.indent=e.context.indent,e.context=e.context.prev}(t),n},indent:function(e,t,n){var r=e.context;if(!r)return null;var i=t.charAt(0)==r.type;return r.align?r.col+(i?0:1):r.indent+(i?0:n.unit)},languageData:{commentTokens:{line:a.commentSlashSlash?"//":a.commentHash?"#":"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}function i(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"string.special";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"string.special":null}function o(e){return e.eat("@")&&(e.match("session."),e.match("local."),e.match("global.")),e.eat("'")?(e.match(/^.*'/),"string.special"):e.eat('"')?(e.match(/^.*"/),"string.special"):e.eat("`")?(e.match(/^.*`/),"string.special"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"string.special":null}function a(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"string.special":null}n.r(t),n.d(t,{cassandra:()=>p,esper:()=>O,gpSQL:()=>k,gql:()=>y,hive:()=>b,mariaDB:()=>f,msSQL:()=>d,mySQL:()=>h,pgSQL:()=>v,plSQL:()=>g,sparkSQL:()=>w,sql:()=>r,sqlite:()=>m,standardSQL:()=>u});var s="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function l(e){for(var t={},n=e.split(" "),r=0;r!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:!1,dateSQL:l("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":o}}),h=r({client:l("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:l(s+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:l("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:l("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:l("date time timestamp"),support:l("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":o,"`":i,"\\":a}}),f=r({client:l("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:l(s+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:l("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:l("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:l("date time timestamp"),support:l("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":o,"`":i,"\\":a}}),m=r({client:l("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:l(s+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:l("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:l("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:l("date time timestamp datetime"),support:l("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":o,":":o,"?":o,$:o,'"':function(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"string.special";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"string.special":null},"`":i}}),p=r({client:{},keywords:l("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:l("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:l("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:l("commentSlashSlash decimallessFloat"),hooks:{}}),g=r({client:l("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:l("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:l("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:l("date time timestamp"),support:l("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),b=r({keywords:l("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:l("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:l("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:l("date timestamp"),support:l("ODBCdotTable doubleQuote binaryNumber hexNumber")}),v=r({client:l("source"),keywords:l(s+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:l("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:l("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:!1,dateSQL:l("date time timestamp"),support:l("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")}),y=r({keywords:l("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:l("false true"),builtin:l("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/}),k=r({client:l("source"),keywords:l("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:l("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:l("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:l("date time timestamp"),support:l("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),w=r({keywords:l("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:l("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:l("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:l("date time timestamp"),support:l("ODBCdotTable doubleQuote zerolessFloat")}),O=r({client:l("source"),keywords:l("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:l("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:l("time"),support:l("decimallessFloat zerolessFloat binaryNumber hexNumber")})},82852:(e,t,n)=>{function r(e){function t(e,t){e.cmdState.push(t)}function n(e){return e.cmdState.length>0?e.cmdState[e.cmdState.length-1]:null}function r(e,t,n){return function(){this.name=e,this.bracketNo=0,this.style=t,this.styles=n,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var i={};function o(e,t){e.f=t}function a(e,r){var a;if(e.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var c=e.current().slice(1);return t(r,a=new(a=i.hasOwnProperty(c)?i[c]:i.DEFAULT)),o(r,l),a.style}if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/\\]/))return"tag";if(e.match("\\["))return o(r,(function(e,t){return s(e,t,"\\]")})),"keyword";if(e.match("\\("))return o(r,(function(e,t){return s(e,t,"\\)")})),"keyword";if(e.match("$$"))return o(r,(function(e,t){return s(e,t,"$$")})),"keyword";if(e.match("$"))return o(r,(function(e,t){return s(e,t,"$")})),"keyword";var u=e.next();return"%"==u?(e.skipToEnd(),"comment"):"}"==u||"]"==u?(a=n(r))?(a.closeBracket(u),o(r,l),"bracket"):"error":"{"==u||"["==u?(t(r,a=new(a=i.DEFAULT)),"bracket"):/\d/.test(u)?(e.eatWhile(/[\w.%]/),"atom"):(e.eatWhile(/[\w\-_]/),a=function(e){for(var t=e.cmdState,n=t.length-1;n>=0;n--){var r=t[n];if("DEFAULT"!=r.name)return r}return{styleIdentifier:function(){return null}}}(r),"begin"==a.name&&(a.argument=e.current()),a.styleIdentifier())}function s(e,t,n){if(e.eatSpace())return null;if(n&&e.match(n))return o(t,a),"keyword";if(e.match(/^\\[a-zA-Z@]+/))return"tag";if(e.match(/^[a-zA-Z]+/))return"variableName.special";if(e.match(/^\\[$&%#{}_]/))return"tag";if(e.match(/^\\[,;!\/]/))return"tag";if(e.match(/^[\^_&]/))return"tag";if(e.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(e.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var r=e.next();return"{"==r||"}"==r||"["==r||"]"==r||"("==r||")"==r?"bracket":"%"==r?(e.skipToEnd(),"comment"):"error"}function l(e,t){var r=e.peek();return"{"==r||"["==r?(n(t).openBracket(r),e.eat(r),o(t,a),"bracket"):/[ \t\r]/.test(r)?(e.eat(r),null):(o(t,a),function(e){var t=e.cmdState.pop();t&&t.closeBracket()}(t),a(e,t))}return i.importmodule=r("importmodule","tag",["string","builtin"]),i.documentclass=r("documentclass","tag",["","atom"]),i.usepackage=r("usepackage","tag",["atom"]),i.begin=r("begin","tag",["atom"]),i.end=r("end","tag",["atom"]),i.label=r("label","tag",["atom"]),i.ref=r("ref","tag",["atom"]),i.eqref=r("eqref","tag",["atom"]),i.cite=r("cite","tag",["atom"]),i.bibitem=r("bibitem","tag",["atom"]),i.Bibitem=r("Bibitem","tag",["atom"]),i.RBibitem=r("RBibitem","tag",["atom"]),i.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}},{name:"stex",startState:function(){return{cmdState:[],f:e?function(e,t){return s(e,t)}:a}},copyState:function(e){return{cmdState:e.cmdState.slice(),f:e.f}},token:function(e,t){return t.f(e,t)},blankLine:function(e){e.f=a,e.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}n.r(t),n.d(t,{stex:()=>i,stexMath:()=>o});const i=r(!1),o=r(!0)},86381:(e,t,n)=>{n.r(t),n.d(t,{stylus:()=>oe});var r=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"],i=["domain","regexp","url-prefix","url"],o=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],a=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"],s=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"],l=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],c=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],u=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],d=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"],h=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],f=["for","if","else","unless","from","to"],m=["null","true","false","href","title","type","not-allowed","readonly","disabled"],p=r.concat(i,o,a,s,l,u,d,c,h,f,m,["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"]);function g(e){return e=e.sort((function(e,t){return t>e})),new RegExp("^(("+e.join(")|(")+"))\\b")}function b(e){for(var t={},n=0;n]=?|\?:|\~)/,D=g(h),z=b(f),N=new RegExp(/^\-(moz|ms|o|webkit)-/i),L=b(m),M="",Q={};function q(e,t){if(M=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/),t.context.line.firstWord=M?M[0].replace(/^\s*/,""):"",t.context.line.indent=e.indentation(),v=e.peek(),e.match("//"))return e.skipToEnd(),["comment","comment"];if(e.match("/*"))return t.tokenize=W,W(e,t);if('"'==v||"'"==v)return e.next(),t.tokenize=B(v),t.tokenize(e,t);if("@"==v)return e.next(),e.eatWhile(/[\w\\-]/),["def",e.current()];if("#"==v){if(e.next(),e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i))return["atom","atom"];if(e.match(/^[a-z][\w-]*/i))return["builtin","hash"]}return e.match(N)?["meta","vendor-prefixes"]:e.match(/^-?[0-9]?\.?[0-9]/)?(e.eatWhile(/[a-z%]/i),["number","unit"]):"!"==v?(e.next(),[e.match(/^(important|optional)/i)?"keyword":"operator","important"]):"."==v&&e.match(/^\.[a-z][\w-]*/i)?["qualifier","qualifier"]:e.match(C)?("("==e.peek()&&(t.tokenize=U),["property","word"]):e.match(/^[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","mixin"]):e.match(/^(\+|-)[a-z][\w-]*\(/i)?(e.backUp(1),["keyword","block-mixin"]):e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)?["qualifier","qualifier"]:e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)?(e.backUp(1),["variableName.special","reference"]):e.match(/^&{1}\s*$/)?["variableName.special","reference"]:e.match(D)?["operator","operator"]:e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)?e.match(/^(\.|\[)[\w-\'\"\]]+/i,!1)&&!X(e.current())?(e.match("."),["variable","variable-name"]):["variable","word"]:e.match(I)?["operator",e.current()]:/[:;,{}\[\]\(\)]/.test(v)?(e.next(),[null,v]):(e.next(),[null,null])}function W(e,t){for(var n,r=!1;null!=(n=e.next());){if(r&&"/"==n){t.tokenize=null;break}r="*"==n}return["comment","comment"]}function B(e){return function(t,n){for(var r,i=!1;null!=(r=t.next());){if(r==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==r}return(r==e||!i&&")"!=e)&&(n.tokenize=null),["string","string"]}}function U(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=B(")"),[null,"("]}function F(e,t,n,r){this.type=e,this.indent=t,this.prev=n,this.line=r||{firstWord:"",indent:0}}function j(e,t,n,r){return r=r>=0?r:t.indentUnit,e.context=new F(n,t.indentation()+r,e.context),n}function V(e,t,n){var r=e.context.indent-t.indentUnit;return n=n||!1,e.context=e.context.prev,n&&(e.context.indent=r),e.context.type}function G(e,t,n,r){for(var i=r||1;i>0;i--)n.context=n.context.prev;return function(e,t,n){return Q[n.context.type](e,t,n)}(e,t,n)}function X(e){return e.toLowerCase()in O}function Z(e){return(e=e.toLowerCase())in S||e in R}function H(e){return e.toLowerCase()in z}function Y(e){return e.toLowerCase().match(N)}function J(e){var t=e.toLowerCase(),n="variable";return X(e)?n="tag":H(e)?n="block-keyword":Z(e)?n="property":t in T||t in L?n="atom":"return"==t||t in E?n="keyword":e.match(/^[A-Z]/)&&(n="string"),n}function K(e,t){return re(t)&&("{"==e||"]"==e||"hash"==e||"qualifier"==e)||"block-mixin"==e}function ee(e,t){return"{"==e&&t.match(/^\s*\$?[\w-]+/i,!1)}function te(e,t){return":"==e&&t.match(/^[a-z-]+/,!1)}function ne(e){return e.sol()||e.string.match(new RegExp("^\\s*"+e.current().replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")))}function re(e){return e.eol()||e.match(/^\s*$/,!1)}function ie(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i,n="string"==typeof e?e.match(t):e.string.match(t);return n?n[0].replace(/^\s*/,""):""}Q.block=function(e,t,n){if("comment"==e&&ne(t)||","==e&&re(t)||"mixin"==e)return j(n,t,"block",0);if(ee(e,t))return j(n,t,"interpolation");if(re(t)&&"]"==e&&!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!X(ie(t)))return j(n,t,"block",0);if(K(e,t))return j(n,t,"block");if("}"==e&&re(t))return j(n,t,"block",0);if("variable-name"==e)return t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||H(ie(t))?j(n,t,"variableName"):j(n,t,"variableName",0);if("="==e)return re(t)||H(ie(t))?j(n,t,"block"):j(n,t,"block",0);if("*"==e&&(re(t)||t.match(/\s*(,|\.|#|\[|:|{)/,!1)))return w="tag",j(n,t,"block");if(te(e,t))return j(n,t,"pseudo");if(/@(font-face|media|supports|(-moz-)?document)/.test(e))return j(n,t,re(t)?"block":"atBlock");if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return j(n,t,"keyframes");if(/@extends?/.test(e))return j(n,t,"extend",0);if(e&&"@"==e.charAt(0))return t.indentation()>0&&Z(t.current().slice(1))?(w="variable","block"):/(@import|@require|@charset)/.test(e)?j(n,t,"block",0):j(n,t,"block");if("reference"==e&&re(t))return j(n,t,"block");if("("==e)return j(n,t,"parens");if("vendor-prefixes"==e)return j(n,t,"vendorPrefixes");if("word"==e){var r=t.current();if("property"==(w=J(r)))return ne(t)?j(n,t,"block",0):(w="atom","block");if("tag"==w){if(/embed|menu|pre|progress|sub|table/.test(r)&&Z(ie(t)))return w="atom","block";if(t.string.match(new RegExp("\\[\\s*"+r+"|"+r+"\\s*\\]")))return w="atom","block";if(x.test(r)&&(ne(t)&&t.string.match(/=/)||!ne(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!X(ie(t))))return w="variable",H(ie(t))?"block":j(n,t,"block",0);if(re(t))return j(n,t,"block")}if("block-keyword"==w)return w="keyword",t.current(/(if|unless)/)&&!ne(t)?"block":j(n,t,"block");if("return"==r)return j(n,t,"block",0);if("variable"==w&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/))return j(n,t,"block")}return n.context.type},Q.parens=function(e,t,n){if("("==e)return j(n,t,"parens");if(")"==e)return"parens"==n.context.prev.type?V(n,t):t.string.match(/^[a-z][\w-]*\(/i)&&re(t)||H(ie(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(ie(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&X(ie(t))?j(n,t,"block"):t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)?j(n,t,"block",0):re(t)?j(n,t,"block"):j(n,t,"block",0);if(e&&"@"==e.charAt(0)&&Z(t.current().slice(1))&&(w="variable"),"word"==e){var r=t.current();"tag"==(w=J(r))&&x.test(r)&&(w="variable"),"property"!=w&&"to"!=r||(w="atom")}return"variable-name"==e?j(n,t,"variableName"):te(e,t)?j(n,t,"pseudo"):n.context.type},Q.vendorPrefixes=function(e,t,n){return"word"==e?(w="property",j(n,t,"block",0)):V(n,t)},Q.pseudo=function(e,t,n){return Z(ie(t.string))?G(e,t,n):(t.match(/^[a-z-]+/),w="variableName.special",re(t)?j(n,t,"block"):V(n,t))},Q.atBlock=function(e,t,n){if("("==e)return j(n,t,"atBlock_parens");if(K(e,t))return j(n,t,"block");if(ee(e,t))return j(n,t,"interpolation");if("word"==e){var r=t.current().toLowerCase();if("tag"==(w=/^(only|not|and|or)$/.test(r)?"keyword":$.hasOwnProperty(r)?"tag":P.hasOwnProperty(r)?"attribute":A.hasOwnProperty(r)?"property":_.hasOwnProperty(r)?"string.special":J(t.current()))&&re(t))return j(n,t,"block")}return"operator"==e&&/^(not|and|or)$/.test(t.current())&&(w="keyword"),n.context.type},Q.atBlock_parens=function(e,t,n){if("{"==e||"}"==e)return n.context.type;if(")"==e)return re(t)?j(n,t,"block"):j(n,t,"atBlock");if("word"==e){var r=t.current().toLowerCase();return w=J(r),/^(max|min)/.test(r)&&(w="property"),"tag"==w&&(w=x.test(r)?"variable":"atom"),n.context.type}return Q.atBlock(e,t,n)},Q.keyframes=function(e,t,n){return"0"==t.indentation()&&("}"==e&&ne(t)||"]"==e||"hash"==e||"qualifier"==e||X(t.current()))?G(e,t,n):"{"==e?j(n,t,"keyframes"):"}"==e?ne(t)?V(n,t,!0):j(n,t,"keyframes"):"unit"==e&&/^[0-9]+\%$/.test(t.current())?j(n,t,"keyframes"):"word"==e&&"block-keyword"==(w=J(t.current()))?(w="keyword",j(n,t,"keyframes")):/@(font-face|media|supports|(-moz-)?document)/.test(e)?j(n,t,re(t)?"block":"atBlock"):"mixin"==e?j(n,t,"block",0):n.context.type},Q.interpolation=function(e,t,n){return"{"==e&&V(n,t)&&j(n,t,"block"),"}"==e?t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&X(ie(t))?j(n,t,"block"):!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,!1)?j(n,t,"block",0):j(n,t,"block"):"variable-name"==e?j(n,t,"variableName",0):("word"==e&&"tag"==(w=J(t.current()))&&(w="atom"),n.context.type)},Q.extend=function(e,t,n){return"["==e||"="==e?"extend":"]"==e?V(n,t):"word"==e?(w=J(t.current()),"extend"):V(n,t)},Q.variableName=function(e,t,n){return"string"==e||"["==e||"]"==e||t.current().match(/^(\.|\$)/)?(t.current().match(/^\.[\w-]+/i)&&(w="variable"),"variableName"):G(e,t,n)};const oe={name:"stylus",startState:function(){return{tokenize:null,state:"block",context:new F("block",0,null)}},token:function(e,t){return!t.tokenize&&e.eatSpace()?null:((y=(t.tokenize||q)(e,t))&&"object"==typeof y&&(k=y[1],y=y[0]),w=y,t.state=Q[t.state](k,e,t),w)},indent:function(e,t,n){var r=e.context,i=t&&t.charAt(0),o=r.indent,a=ie(t),s=n.lineIndent(n.pos),l=e.context.prev?e.context.prev.line.firstWord:"",c=e.context.prev?e.context.prev.line.indent:s;return r.prev&&("}"==i&&("block"==r.type||"atBlock"==r.type||"keyframes"==r.type)||")"==i&&("parens"==r.type||"atBlock_parens"==r.type)||"{"==i&&"at"==r.type)?o=r.indent-n.unit:/(\})/.test(i)||(/@|\$|\d/.test(i)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(l)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||H(a)?o=s:/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(i)||X(a)?o=/\,\s*$/.test(l)?c:e.sol()||!/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(l)&&!X(l)?s:s<=c?c:c+n.unit:/,\s*$/.test(t)||!Y(a)&&!Z(a)||(o=H(l)?s<=c?c:c+n.unit:/^\{/.test(l)?s<=c?s:c+n.unit:Y(l)||Z(l)?s>=c?c:s:/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(l)||/=\s*$/.test(l)||X(l)||/^\$[\w-\.\[\]\'\"]/.test(l)?c+n.unit:s)),o},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:p}}},91990:(e,t,n)=>{function r(e){for(var t={},n=0;n_});var i=r(["_","var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","open","public","internal","fileprivate","private","deinit","init","new","override","self","subscript","super","convenience","dynamic","final","indirect","lazy","required","static","unowned","unowned(safe)","unowned(unsafe)","weak","as","is","break","case","continue","default","else","fallthrough","for","guard","if","in","repeat","switch","where","while","defer","return","inout","mutating","nonmutating","isolated","nonisolated","catch","do","rethrows","throw","throws","async","await","try","didSet","get","set","willSet","assignment","associativity","infix","left","none","operator","postfix","precedence","precedencegroup","prefix","right","Any","AnyObject","Type","dynamicType","Self","Protocol","__COLUMN__","__FILE__","__FUNCTION__","__LINE__"]),o=r(["var","let","actor","class","enum","extension","import","protocol","struct","func","typealias","associatedtype","for"]),a=r(["true","false","nil","self","super","_"]),s=r(["Array","Bool","Character","Dictionary","Double","Float","Int","Int8","Int16","Int32","Int64","Never","Optional","Set","String","UInt8","UInt16","UInt32","UInt64","Void"]),l="+-/*%=|&<>~^?!",c=":;,.(){}[]",u=/^\-?0b[01][01_]*/,d=/^\-?0o[0-7][0-7_]*/,h=/^\-?0x[\dA-Fa-f][\dA-Fa-f_]*(?:(?:\.[\dA-Fa-f][\dA-Fa-f_]*)?[Pp]\-?\d[\d_]*)?/,f=/^\-?\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee]\-?\d[\d_]*)?/,m=/^\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1/,p=/^\.(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/,g=/^\#[A-Za-z]+/,b=/^@(?:\$\d+|(`?)[_A-Za-z][_A-Za-z$0-9]*\1)/;function v(e,t,n){if(e.sol()&&(t.indented=e.indentation()),e.eatSpace())return null;var r,v=e.peek();if("/"==v){if(e.match("//"))return e.skipToEnd(),"comment";if(e.match("/*"))return t.tokenize.push(w),w(e,t)}if(e.match(g))return"builtin";if(e.match(b))return"attribute";if(e.match(u))return"number";if(e.match(d))return"number";if(e.match(h))return"number";if(e.match(f))return"number";if(e.match(p))return"property";if(l.indexOf(v)>-1)return e.next(),"operator";if(c.indexOf(v)>-1)return e.next(),e.match(".."),"punctuation";if(r=e.match(/("""|"|')/)){var y=k.bind(null,r[0]);return t.tokenize.push(y),y(e,t)}if(e.match(m)){var O=e.current();return s.hasOwnProperty(O)?"type":a.hasOwnProperty(O)?"atom":i.hasOwnProperty(O)?(o.hasOwnProperty(O)&&(t.prev="define"),"keyword"):"define"==n?"def":"variable"}return e.next(),null}function y(){var e=0;return function(t,n,r){var i=v(t,n,r);if("punctuation"==i)if("("==t.current())++e;else if(")"==t.current()){if(0==e)return t.backUp(1),n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);--e}return i}}function k(e,t,n){for(var r,i=1==e.length,o=!1;r=t.peek();)if(o){if(t.next(),"("==r)return n.tokenize.push(y()),"string";o=!1}else{if(t.match(e))return n.tokenize.pop(),"string";t.next(),o="\\"==r}return i&&n.tokenize.pop(),"string"}function w(e,t){for(var n;n=e.next();)if("/"===n&&e.eat("*"))t.tokenize.push(w);else if("*"===n&&e.eat("/")){t.tokenize.pop();break}return"comment"}function O(e,t,n){this.prev=e,this.align=t,this.indented=n}function x(e,t){var n=t.match(/^\s*($|\/[\/\*]|[)}\]])/,!1)?null:t.column()+1;e.context=new O(e.context,n,e.indented)}function S(e){e.context&&(e.indented=e.context.indented,e.context=e.context.prev)}const _={name:"swift",startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=(t.tokenize[t.tokenize.length-1]||v)(e,t,n);if(r&&"comment"!=r?t.prev||(t.prev=r):t.prev=n,"punctuation"==r){var i=/[\(\[\{]|([\]\)\}])/.exec(e.current());i&&(i[1]?S:x)(t,e)}return r},indent:function(e,t,n){var r=e.context;if(!r)return 0;var i=/^[\]\}\)]/.test(t);return null!=r.align?r.align-(i?1:0):r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}},37248:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rd});var i=r("Tcl safe after append array auto_execok auto_import auto_load auto_mkindex auto_mkindex_old auto_qualify auto_reset bgerror binary break catch cd close concat continue dde eof encoding error eval exec exit expr fblocked fconfigure fcopy file fileevent filename filename flush for foreach format gets glob global history http if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lset lsort memory msgcat namespace open package parray pid pkg::create pkg_mkIndex proc puts pwd re_syntax read regex regexp registry regsub rename resource return scan seek set socket source split string subst switch tcl_endOfWord tcl_findLibrary tcl_startOfNextWord tcl_wordBreakAfter tcl_startOfPreviousWord tcl_wordBreakBefore tcltest tclvars tell time trace unknown unset update uplevel upvar variable vwait"),o=r("if elseif else and not or eq ne in ni for foreach while switch"),a=/[+\-*&%=<>!?^\/\|]/;function s(e,t,n){return t.tokenize=n,n(e,t)}function l(e,t){var n=t.beforeParams;t.beforeParams=!1;var r,d=e.next();if('"'!=d&&"'"!=d||!t.inParams){if(/[\[\]{}\(\),;\.]/.test(d))return"("==d&&n?t.inParams=!0:")"==d&&(t.inParams=!1),null;if(/\d/.test(d))return e.eatWhile(/[\w\.]/),"number";if("#"==d)return e.eat("*")?s(e,t,c):"#"==d&&e.match(/ *\[ *\[/)?s(e,t,u):(e.skipToEnd(),"comment");if('"'==d)return e.skipTo(/"/),"comment";if("$"==d)return e.eatWhile(/[$_a-z0-9A-Z\.{:]/),e.eatWhile(/}/),t.beforeParams=!0,"builtin";if(a.test(d))return e.eatWhile(a),"comment";e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var h=e.current().toLowerCase();return i&&i.propertyIsEnumerable(h)?"keyword":o&&o.propertyIsEnumerable(h)?(t.beforeParams=!0,"keyword"):null}return s(e,t,(r=d,function(e,t){for(var n,i=!1,o=!1;null!=(n=e.next());){if(n==r&&!i){o=!0;break}i=!i&&"\\"==n}return o&&(t.tokenize=l),"string"}))}function c(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=l;break}r="*"==n}return"comment"}function u(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=l;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}const d={name:"tcl",startState:function(){return{tokenize:l,beforeParams:!1,inParams:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{line:"#"}}}},81731:(e,t,n)=>{n.r(t),n.d(t,{textile:()=>d});var r={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function i(e,t,n){if("_"===n)return e.eat("_")?o(e,t,"italic",/__/,2):o(e,t,"em",/_/,1);if("*"===n)return e.eat("*")?o(e,t,"bold",/\*\*/,2):o(e,t,"strong",/\*/,1);if("["===n)return e.match(/\d+\]/)&&(t.footCite=!0),a(t);if("("===n&&e.match(/^(r|tm|c)\)/))return r.specialChar;if("<"===n&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return r.html;if("?"===n&&e.eat("?"))return o(e,t,"cite",/\?\?/,2);if("="===n&&e.eat("="))return o(e,t,"notextile",/==/,2);if("-"===n&&!e.eat("-"))return o(e,t,"deletion",/-/,1);if("+"===n)return o(e,t,"addition",/\+/,1);if("~"===n)return o(e,t,"sub",/~/,1);if("^"===n)return o(e,t,"sup",/\^/,1);if("%"===n)return o(e,t,"span",/%/,1);if("@"===n)return o(e,t,"code",/@/,1);if("!"===n){var i=o(e,t,"image",/(?:\([^\)]+\))?!/,1);return e.match(/^:\S+/),i}return a(t)}function o(e,t,n,r,i){var o=e.pos>i?e.string.charAt(e.pos-i-1):null,s=e.peek();if(t[n]){if((!s||/\W/.test(s))&&o&&/\S/.test(o)){var l=a(t);return t[n]=!1,l}}else(!o||/\W/.test(o))&&s&&/\S/.test(s)&&e.match(new RegExp("^.*\\S"+r.source+"(?:\\W|$)"),!1)&&(t[n]=!0,t.mode=u.attributes);return a(t)}function a(e){var t=s(e);if(t)return t;var n=[];return e.layoutType&&n.push(r[e.layoutType]),n=n.concat(function(e){for(var t=[],n=1;n]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return l.makeRe("^",l.single.drawTable,"$");case"html":return l.makeRe("^",l.single.html,"(?:",l.single.html,")*","$");case"linkDefinition":return l.makeRe("^",l.single.linkDefinition,"$");case"listLayout":return l.makeRe("^",l.single.list,c("allAttributes"),"*\\s+");case"tableCellAttributes":return l.makeRe("^",l.choiceRe(l.single.tableCellAttributes,c("allAttributes")),"+\\.");case"type":return l.makeRe("^",c("allTypes"));case"typeLayout":return l.makeRe("^",c("allTypes"),c("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return l.makeRe("^",c("allAttributes"),"+");case"allTypes":return l.choiceRe(l.single.div,l.single.foot,l.single.header,l.single.bc,l.single.bq,l.single.notextile,l.single.pre,l.single.table,l.single.para);case"allAttributes":return l.choiceRe(l.attributes.selector,l.attributes.css,l.attributes.lang,l.attributes.align,l.attributes.pad);default:return l.makeRe("^",l.single[e])}},makeRe:function(){for(var e="",t=0;t{n.r(t),n.d(t,{tiddlyWiki:()=>T});var r={},i={allTags:!0,closeAll:!0,list:!0,newJournal:!0,newTiddler:!0,permaview:!0,saveChanges:!0,search:!0,slider:!0,tabs:!0,tag:!0,tagging:!0,tags:!0,tiddler:!0,timeline:!0,today:!0,version:!0,option:!0,with:!0,filter:!0},o=/[\w_\-]/i,a=/^\-\-\-\-+$/,s=/^\/\*\*\*$/,l=/^\*\*\*\/$/,c=/^<<<$/,u=/^\/\/\{\{\{$/,d=/^\/\/\}\}\}$/,h=/^$/,f=/^$/,m=/^\{\{\{$/,p=/^\}\}\}$/,g=/.*?\}\}\}/;function b(e,t,n){return t.tokenize=n,n(e,t)}function v(e,t){var n=e.sol(),i=e.peek();if(t.block=!1,n&&/[<\/\*{}\-]/.test(i)){if(e.match(m))return t.block=!0,b(e,t,w);if(e.match(c))return"quote";if(e.match(s)||e.match(l))return"comment";if(e.match(u)||e.match(d)||e.match(h)||e.match(f))return"comment";if(e.match(a))return"contentSeparator"}if(e.next(),n&&/[\/\*!#;:>|]/.test(i)){if("!"==i)return e.skipToEnd(),"header";if("*"==i)return e.eatWhile("*"),"comment";if("#"==i)return e.eatWhile("#"),"comment";if(";"==i)return e.eatWhile(";"),"comment";if(":"==i)return e.eatWhile(":"),"comment";if(">"==i)return e.eatWhile(">"),"quote";if("|"==i)return"header"}if("{"==i&&e.match("{{"))return b(e,t,w);if(/[hf]/i.test(i)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if('"'==i)return"string";if("~"==i)return"brace";if(/[\[\]]/.test(i)&&e.match(i))return"brace";if("@"==i)return e.eatWhile(o),"link";if(/\d/.test(i))return e.eatWhile(/\d/),"number";if("/"==i){if(e.eat("%"))return b(e,t,y);if(e.eat("/"))return b(e,t,O)}if("_"==i&&e.eat("_"))return b(e,t,x);if("-"==i&&e.eat("-")){if(" "!=e.peek())return b(e,t,S);if(" "==e.peek())return"brace"}return"'"==i&&e.eat("'")?b(e,t,k):"<"==i&&e.eat("<")?b(e,t,_):(e.eatWhile(/[\w\$_]/),r.propertyIsEnumerable(e.current())?"keyword":null)}function y(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="%"==n}return"comment"}function k(e,t){for(var n,r=!1;n=e.next();){if("'"==n&&r){t.tokenize=v;break}r="'"==n}return"strong"}function w(e,t){var n=t.block;return n&&e.current()?"comment":!n&&e.match(g)||n&&e.sol()&&e.match(p)?(t.tokenize=v,"comment"):(e.next(),"comment")}function O(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=v;break}r="/"==n}return"emphasis"}function x(e,t){for(var n,r=!1;n=e.next();){if("_"==n&&r){t.tokenize=v;break}r="_"==n}return"link"}function S(e,t){for(var n,r=!1;n=e.next();){if("-"==n&&r){t.tokenize=v;break}r="-"==n}return"deleted"}function _(e,t){if("<<"==e.current())return"meta";var n=e.next();return n?">"==n&&">"==e.peek()?(e.next(),t.tokenize=v,"meta"):(e.eatWhile(/[\w\$_]/),i.propertyIsEnumerable(e.current())?"keyword":null):(t.tokenize=v,null)}const T={name:"tiddlywiki",startState:function(){return{tokenize:v}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)}}},56534:(e,t,n)=>{function r(e,t,n){return function(r,i){for(;!r.eol();){if(r.match(t)){i.tokenize=o;break}r.next()}return n&&(i.tokenize=n),e}}function i(e){return function(t,n){for(;!t.eol();)t.next();return n.tokenize=o,e}}function o(e,t){function n(n){return t.tokenize=n,n(e,t)}var a=e.sol(),s=e.next();switch(s){case"{":return e.eat("/"),e.eatSpace(),e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/),t.tokenize=u,"tag";case"_":if(e.eat("_"))return n(r("strong","__",o));break;case"'":if(e.eat("'"))return n(r("em","''",o));break;case"(":if(e.eat("("))return n(r("link","))",o));break;case"[":return n(r("url","]",o));case"|":if(e.eat("|"))return n(r("comment","||"));break;case"-":if(e.eat("="))return n(r("header string","=-",o));if(e.eat("-"))return n(r("error tw-deleted","--",o));break;case"=":if(e.match("=="))return n(r("tw-underline","===",o));break;case":":if(e.eat(":"))return n(r("comment","::"));break;case"^":return n(r("tw-box","^"));case"~":if(e.match("np~"))return n(r("meta","~/np~"))}if(a)switch(s){case"!":return e.match("!!!!!")||e.match("!!!!")||e.match("!!!")||e.match("!!"),n(i("header string"));case"*":case"#":case"+":return n(i("tw-listitem bracket"))}return null}var a,s,l,c;function u(e,t){var n,r=e.next(),i=e.peek();return"}"==r?(t.tokenize=o,"tag"):"("==r||")"==r?"bracket":"="==r?(s="equals",">"==i&&(e.next(),i=e.peek()),/[\'\"]/.test(i)||(t.tokenize=function(e,t){for(;!e.eol();){var n=e.next(),r=e.peek();if(" "==n||","==n||/[ )}]/.test(r)){t.tokenize=u;break}}return"string"}),"operator"):/[\'\"]/.test(r)?(t.tokenize=(n=r,function(e,t){for(;!e.eol();)if(e.next()==n){t.tokenize=u;break}return"string"}),t.tokenize(e,t)):(e.eatWhile(/[^\s\u00a0=\"\'\/?]/),"keyword")}function d(){for(var e=arguments.length-1;e>=0;e--)l.cc.push(arguments[e])}function h(){return d.apply(null,arguments),!0}function f(e,t){var n=l.context&&l.context.noIndent;l.context={prev:l.context,pluginName:e,indent:l.indented,startOfLine:t,noIndent:n}}function m(){l.context&&(l.context=l.context.prev)}function p(e){if("openPlugin"==e)return l.pluginName=a,h(g,(n=l.startOfLine,function(e){return"selfclosePlugin"==e||"endPlugin"==e?h():"endPlugin"==e?(f(l.pluginName,n),h()):h()}));if("closePlugin"==e){var t=!1;return l.context?(t=l.context.pluginName!=a,m()):t=!0,t&&(c="error"),h(function(e){return function(t){return e&&(c="error"),"endPlugin"==t?h():d()}}(t))}return"string"==e?(l.context&&"!cdata"==l.context.name||f("!cdata"),l.tokenize==o&&m(),h()):h();var n}function g(e){return"keyword"==e?(c="attribute",h(g)):"equals"==e?h(b,g):d()}function b(e){return"keyword"==e?(c="string",h()):"string"==e?h(v):d()}function v(e){return"string"==e?h(v):d()}n.r(t),n.d(t,{tiki:()=>y});const y={name:"tiki",startState:function(){return{tokenize:o,cc:[],indented:0,startOfLine:!0,pluginName:null,context:null}},token:function(e,t){if(e.sol()&&(t.startOfLine=!0,t.indented=e.indentation()),e.eatSpace())return null;c=s=a=null;var n=t.tokenize(e,t);if((n||s)&&"comment"!=n)for(l=t;;){if((t.cc.pop()||p)(s||n))break}return t.startOfLine=!1,c||n},indent:function(e,t,n){var r=e.context;if(r&&r.noIndent)return 0;for(r&&/^{\//.test(t)&&(r=r.prev);r&&!r.startOfLine;)r=r.prev;return r?r.indent+n.unit:0}}},67934:(e,t,n)=>{n.r(t),n.d(t,{toml:()=>r});const r={name:"toml",startState:function(){return{inString:!1,stringType:"",lhs:!0,inArray:0}},token:function(e,t){if(t.inString||'"'!=e.peek()&&"'"!=e.peek()||(t.stringType=e.peek(),e.next(),t.inString=!0),e.sol()&&0===t.inArray&&(t.lhs=!0),t.inString){for(;t.inString&&!e.eol();)e.peek()===t.stringType?(e.next(),t.inString=!1):"\\"===e.peek()?(e.next(),e.next()):e.match(/^.[^\\\"\']*/);return t.lhs?"property":"string"}return t.inArray&&"]"===e.peek()?(e.next(),t.inArray--,"bracket"):t.lhs&&"["===e.peek()&&e.skipTo("]")?(e.next(),"]"===e.peek()&&e.next(),"atom"):"#"===e.peek()?(e.skipToEnd(),"comment"):e.eatSpace()?null:t.lhs&&e.eatWhile((function(e){return"="!=e&&" "!=e}))?"property":t.lhs&&"="===e.peek()?(e.next(),t.lhs=!1,null):!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)?"atom":t.lhs||!e.match("true")&&!e.match("false")?t.lhs||"["!==e.peek()?!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)?"number":(e.eatSpace()||e.next(),null):(t.inArray++,e.next(),"bracket"):"atom"},languageData:{commentTokens:{line:"#"}}}},59328:(e,t,n)=>{n.r(t),n.d(t,{troff:()=>a});var r={};function i(e){if(e.eatSpace())return null;var t=e.sol(),n=e.next();if("\\"===n)return e.match("fB")||e.match("fR")||e.match("fI")||e.match("u")||e.match("d")||e.match("%")||e.match("&")?"string":e.match("m[")?(e.skipTo("]"),e.next(),"string"):e.match("s+")||e.match("s-")?(e.eatWhile(/[\d-]/),"string"):e.match("(")||e.match("*(")?(e.eatWhile(/[\w-]/),"string"):"string";if(t&&("."===n||"'"===n)&&e.eat("\\")&&e.eat('"'))return e.skipToEnd(),"comment";if(t&&"."===n){if(e.match("B ")||e.match("I ")||e.match("R "))return"attribute";if(e.match("TH ")||e.match("SH ")||e.match("SS ")||e.match("HP "))return e.skipToEnd(),"quote";if(e.match(/[A-Z]/)&&e.match(/[A-Z]/)||e.match(/[a-z]/)&&e.match(/[a-z]/))return"attribute"}e.eatWhile(/[\w-]/);var i=e.current();return r.hasOwnProperty(i)?r[i]:null}function o(e,t){return(t.tokens[0]||i)(e,t)}const a={name:"troff",startState:function(){return{tokens:[]}},token:function(e,t){return o(e,t)}}},70872:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rg});const i={name:"ttcn-cfg",keywords:r("Yes No LogFile FileMask ConsoleMask AppendFile TimeStampFormat LogEventTypes SourceInfoFormat LogEntityName LogSourceInfo DiskFullAction LogFileNumber LogFileSize MatchingHints Detailed Compact SubCategories Stack Single None Seconds DateTime Time Stop Error Retry Delete TCPPort KillTimer NumHCs UnixSocketsEnabled LocalAddress"),fileNCtrlMaskOptions:r("TTCN_EXECUTOR TTCN_ERROR TTCN_WARNING TTCN_PORTEVENT TTCN_TIMEROP TTCN_VERDICTOP TTCN_DEFAULTOP TTCN_TESTCASE TTCN_ACTION TTCN_USER TTCN_FUNCTION TTCN_STATISTICS TTCN_PARALLEL TTCN_MATCHING TTCN_DEBUG EXECUTOR ERROR WARNING PORTEVENT TIMEROP VERDICTOP DEFAULTOP TESTCASE ACTION USER FUNCTION STATISTICS PARALLEL MATCHING DEBUG LOG_ALL LOG_NOTHING ACTION_UNQUALIFIED DEBUG_ENCDEC DEBUG_TESTPORT DEBUG_UNQUALIFIED DEFAULTOP_ACTIVATE DEFAULTOP_DEACTIVATE DEFAULTOP_EXIT DEFAULTOP_UNQUALIFIED ERROR_UNQUALIFIED EXECUTOR_COMPONENT EXECUTOR_CONFIGDATA EXECUTOR_EXTCOMMAND EXECUTOR_LOGOPTIONS EXECUTOR_RUNTIME EXECUTOR_UNQUALIFIED FUNCTION_RND FUNCTION_UNQUALIFIED MATCHING_DONE MATCHING_MCSUCCESS MATCHING_MCUNSUCC MATCHING_MMSUCCESS MATCHING_MMUNSUCC MATCHING_PCSUCCESS MATCHING_PCUNSUCC MATCHING_PMSUCCESS MATCHING_PMUNSUCC MATCHING_PROBLEM MATCHING_TIMEOUT MATCHING_UNQUALIFIED PARALLEL_PORTCONN PARALLEL_PORTMAP PARALLEL_PTC PARALLEL_UNQUALIFIED PORTEVENT_DUALRECV PORTEVENT_DUALSEND PORTEVENT_MCRECV PORTEVENT_MCSEND PORTEVENT_MMRECV PORTEVENT_MMSEND PORTEVENT_MQUEUE PORTEVENT_PCIN PORTEVENT_PCOUT PORTEVENT_PMIN PORTEVENT_PMOUT PORTEVENT_PQUEUE PORTEVENT_STATE PORTEVENT_UNQUALIFIED STATISTICS_UNQUALIFIED STATISTICS_VERDICT TESTCASE_FINISH TESTCASE_START TESTCASE_UNQUALIFIED TIMEROP_GUARD TIMEROP_READ TIMEROP_START TIMEROP_STOP TIMEROP_TIMEOUT TIMEROP_UNQUALIFIED USER_UNQUALIFIED VERDICTOP_FINAL VERDICTOP_GETVERDICT VERDICTOP_SETVERDICT VERDICTOP_UNQUALIFIED WARNING_UNQUALIFIED"),externalCommands:r("BeginControlPart EndControlPart BeginTestCase EndTestCase"),multiLineStrings:!0};var o,a=i.keywords,s=i.fileNCtrlMaskOptions,l=i.externalCommands,c=i.multiLineStrings,u=!1!==i.indentStatements,d=/[\|]/;function h(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==r}return(o||!i&&!c)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[:=]/.test(r))return o=r,"punctuation";if("#"==r)return e.skipToEnd(),"comment";if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if(d.test(r))return e.eatWhile(d),"operator";if("["==r)return e.eatWhile(/[\w_\]]/),"number";e.eatWhile(/[\w\$_]/);var i=e.current();return a.propertyIsEnumerable(i)?"keyword":s.propertyIsEnumerable(i)?"atom":l.propertyIsEnumerable(i)?"deleted":"variable"}function f(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function m(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new f(r,t,n,null,e.context)}function p(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const g={name:"ttcn",startState:function(){return{tokenize:null,context:new f(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;o=null;var r=(t.tokenize||h)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=o&&":"!=o&&","!=o||"statement"!=n.type)if("{"==o)m(t,e.column(),"}");else if("["==o)m(t,e.column(),"]");else if("("==o)m(t,e.column(),")");else if("}"==o){for(;"statement"==n.type;)n=p(t);for("}"==n.type&&(n=p(t));"statement"==n.type;)n=p(t)}else o==n.type?p(t):u&&(("}"==n.type||"top"==n.type)&&";"!=o||"statement"==n.type&&"newstatement"==o)&&m(t,e.column(),"statement");else p(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"#"}}}},21249:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rA});const i={name:"ttcn",keywords:r("activate address alive all alt altstep and and4b any break case component const continue control deactivate display do else encode enumerated except exception execute extends extension external for from function goto group if import in infinity inout interleave label language length log match message mixed mod modifies module modulepar mtc noblock not not4b nowait of on optional or or4b out override param pattern port procedure record recursive rem repeat return runs select self sender set signature system template testcase to type union value valueof var variant while with xor xor4b"),builtin:r("bit2hex bit2int bit2oct bit2str char2int char2oct encvalue decomp decvalue float2int float2str hex2bit hex2int hex2oct hex2str int2bit int2char int2float int2hex int2oct int2str int2unichar isbound ischosen ispresent isvalue lengthof log2str oct2bit oct2char oct2hex oct2int oct2str regexp replace rnd sizeof str2bit str2float str2hex str2int str2oct substr unichar2int unichar2char enum2int"),types:r("anytype bitstring boolean char charstring default float hexstring integer objid octetstring universal verdicttype timer"),timerOps:r("read running start stop timeout"),portOps:r("call catch check clear getcall getreply halt raise receive reply send trigger"),configOps:r("create connect disconnect done kill killed map unmap"),verdictOps:r("getverdict setverdict"),sutOps:r("action"),functionOps:r("apply derefers refers"),verdictConsts:r("error fail inconc none pass"),booleanConsts:r("true false"),otherConsts:r("null NULL omit"),visibilityModifiers:r("private public friend"),templateMatch:r("complement ifpresent subset superset permutation"),multiLineStrings:!0};var o=[];function a(e){if(e)for(var t in e)e.hasOwnProperty(t)&&o.push(t)}a(i.keywords),a(i.builtin),a(i.timerOps),a(i.portOps);var s,l=i.keywords||{},c=i.builtin||{},u=i.timerOps||{},d=i.portOps||{},h=i.configOps||{},f=i.verdictOps||{},m=i.sutOps||{},p=i.functionOps||{},g=i.verdictConsts||{},b=i.booleanConsts||{},v=i.otherConsts||{},y=i.types||{},k=i.visibilityModifiers||{},w=i.templateMatch||{},O=i.multiLineStrings,x=!1!==i.indentStatements,S=/[+\-*&@=<>!\/]/;function _(e,t){var n,r=e.next();if('"'==r||"'"==r)return t.tokenize=(n=r,function(e,t){for(var r,i=!1,o=!1;null!=(r=e.next());){if(r==n&&!i){var a=e.peek();a&&("b"!=(a=a.toLowerCase())&&"h"!=a&&"o"!=a||e.next()),o=!0;break}i=!i&&"\\"==r}return(o||!i&&!O)&&(t.tokenize=null),"string"}),t.tokenize(e,t);if(/[\[\]{}\(\),;\\:\?\.]/.test(r))return s=r,"punctuation";if("#"==r)return e.skipToEnd(),"atom";if("%"==r)return e.eatWhile(/\b/),"atom";if(/\d/.test(r))return e.eatWhile(/[\w\.]/),"number";if("/"==r){if(e.eat("*"))return t.tokenize=T,T(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(S.test(r))return"@"==r&&(e.match("try")||e.match("catch")||e.match("lazy"))?"keyword":(e.eatWhile(S),"operator");e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();return l.propertyIsEnumerable(i)?"keyword":c.propertyIsEnumerable(i)?"builtin":u.propertyIsEnumerable(i)||h.propertyIsEnumerable(i)||f.propertyIsEnumerable(i)||d.propertyIsEnumerable(i)||m.propertyIsEnumerable(i)||p.propertyIsEnumerable(i)?"def":g.propertyIsEnumerable(i)||b.propertyIsEnumerable(i)||v.propertyIsEnumerable(i)?"string":y.propertyIsEnumerable(i)?"typeName.standard":k.propertyIsEnumerable(i)?"modifier":w.propertyIsEnumerable(i)?"atom":"variable"}function T(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function E(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function $(e,t,n){var r=e.indented;return e.context&&"statement"==e.context.type&&(r=e.context.indented),e.context=new E(r,t,n,null,e.context)}function C(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}const A={name:"ttcn",startState:function(){return{tokenize:null,context:new E(0,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var n=t.context;if(e.sol()&&(null==n.align&&(n.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return null;s=null;var r=(t.tokenize||_)(e,t);if("comment"==r)return r;if(null==n.align&&(n.align=!0),";"!=s&&":"!=s&&","!=s||"statement"!=n.type)if("{"==s)$(t,e.column(),"}");else if("["==s)$(t,e.column(),"]");else if("("==s)$(t,e.column(),")");else if("}"==s){for(;"statement"==n.type;)n=C(t);for("}"==n.type&&(n=C(t));"statement"==n.type;)n=C(t)}else s==n.type?C(t):x&&(("}"==n.type||"top"==n.type)&&";"!=s||"statement"==n.type&&"newstatement"==s)&&$(t,e.column(),"statement");else C(t);return t.startOfLine=!1,r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:o}}},16071:(e,t,n)=>{var r;function i(e){return new RegExp("^(?:"+e.join("|")+")$","i")}n.r(t),n.d(t,{turtle:()=>u});i([]);var o=i(["@prefix","@base","a"]),a=/[*+\-<>=&|]/;function s(e,t){var n,i=e.next();if(r=null,"<"!=i||e.match(/^[\s\u00a0=]/,!1)){if('"'==i||"'"==i)return t.tokenize=(n=i,function(e,t){for(var r,i=!1;null!=(r=e.next());){if(r==n&&!i){t.tokenize=s;break}i=!i&&"\\"==r}return"string"}),t.tokenize(e,t);if(/[{}\(\),\.;\[\]]/.test(i))return r=i,null;if("#"==i)return e.skipToEnd(),"comment";if(a.test(i))return e.eatWhile(a),null;if(":"==i)return"operator";if(e.eatWhile(/[_\w\d]/),":"==e.peek())return"variableName.special";var l=e.current();return o.test(l)?"meta":i>="A"&&i<="Z"?"comment":"keyword"}return e.match(/^[^\s\u00a0>]*>?/),"atom"}function l(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function c(e){e.indent=e.context.indent,e.context=e.context.prev}const u={name:"turtle",startState:function(){return{tokenize:s,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()&&(t.context&&null==t.context.align&&(t.context.align=!1),t.indent=e.indentation()),e.eatSpace())return null;var n=t.tokenize(e,t);if("comment"!=n&&t.context&&null==t.context.align&&"pattern"!=t.context.type&&(t.context.align=!0),"("==r)l(t,")",e.column());else if("["==r)l(t,"]",e.column());else if("{"==r)l(t,"}",e.column());else if(/[\]\}\)]/.test(r)){for(;t.context&&"pattern"==t.context.type;)c(t);t.context&&r==t.context.type&&c(t)}else"."==r&&t.context&&"pattern"==t.context.type?c(t):/atom|string|variable/.test(n)&&t.context&&(/[\}\]]/.test(t.context.type)?l(t,"pattern",e.column()):"pattern"!=t.context.type||t.context.align||(t.context.align=!0,t.context.col=e.column()));return n},indent:function(e,t,n){var r=t&&t.charAt(0),i=e.context;if(/[\]\}]/.test(r))for(;i&&"pattern"==i.type;)i=i.prev;var o=i&&r==i.type;return i?"pattern"==i.type?i.col:i.align?i.col+(o?0:1):i.indent+(o?0:n.unit):0},languageData:{commentTokens:{line:"#"}}}},93785:(e,t,n)=>{n.r(t),n.d(t,{vb:()=>C});var r="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var o=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]"),a=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]"),s=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))"),l=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))"),c=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))"),u=new RegExp("^[_A-Za-z][_A-Za-z0-9]*"),d=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"],h=["else","elseif","case","catch","finally"],f=["next","loop"],m=["and","andalso","or","orelse","xor","in","not","is","isnot","like"],p=i(m),g=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"],b=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"],v=i(g),y=i(b),k='"',w=i(d),O=i(h),x=i(f),S=i(["end"]),_=i(["do"]);function T(e,t){t.currentIndent++}function E(e,t){t.currentIndent--}function $(e,t){if(e.eatSpace())return null;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,!1)){var n=!1;if((e.match(/^\d*\.\d+F?/i)||e.match(/^\d+\.\d*F?/)||e.match(/^\.\d+F?/))&&(n=!0),n)return e.eat(/J/i),"number";var i=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?i=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),i=!0):e.match(/^0(?![\dx])/i)&&(i=!0),i)return e.eat(/L/i),"number"}return e.match(k)?(t.tokenize=function(e){var t=1==e.length,n="string";return function(r,i){for(;!r.eol();){if(r.eatWhile(/[^'"]/),r.match(e))return i.tokenize=$,n;r.eat(/['"]/)}return t&&(i.tokenize=$),n}}(e.current()),t.tokenize(e,t)):e.match(c)||e.match(l)?null:e.match(s)||e.match(o)||e.match(p)?"operator":e.match(a)?null:e.match(_)?(T(0,t),t.doInCurrentLine=!0,"keyword"):e.match(w)?(t.doInCurrentLine?t.doInCurrentLine=!1:T(0,t),"keyword"):e.match(O)?"keyword":e.match(S)?(E(0,t),E(0,t),"keyword"):e.match(x)?(E(0,t),"keyword"):e.match(y)||e.match(v)?"keyword":e.match(u)?"variable":(e.next(),r)}const C={name:"vb",startState:function(){return{tokenize:$,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1}},token:function(e,t){e.sol()&&(t.currentIndent+=t.nextLineIndent,t.nextLineIndent=0,t.doInCurrentLine=0);var n=function(e,t){var n=t.tokenize(e,t),i=e.current();if("."===i)return"variable"===(n=t.tokenize(e,t))?"variable":r;var o="[({".indexOf(i);return-1!==o&&T(0,t),-1!==(o="])}".indexOf(i))&&E(0,t)?r:n}(e,t);return t.lastToken={style:n,content:e.current()},n},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(x)||r.match(S)||r.match(O)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:"'"},autocomplete:d.concat(h).concat(f).concat(m).concat(g).concat(b)}}},80457:(e,t,n)=>{function r(e){var t="error";function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var r=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]"),i=new RegExp("^((<>)|(<=)|(>=))"),o=new RegExp("^[\\.,]"),a=new RegExp("^[\\(\\)]"),s=new RegExp("^[A-Za-z][_A-Za-z0-9]*"),l=n(["and","or","not","xor","is","mod","eqv","imp"]),c=["WScript","err","debug","RegExp"],u=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"].concat(["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"]);c=c.concat(["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"]),e.isASP&&(c=c.concat(["server","response","request","session","application"]),u=u.concat(["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"],["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"]));var d=n(["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"]),h=n(["true","false","nothing","empty","null"]),f=n(["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"]),m=n(c),p=n(u),g='"',b=n(["class","sub","select","while","if","function","property","with","for"]),v=n(["else","elseif","case"]),y=n(["next","loop","wend"]),k=n(["end"]),w=n(["do"]),O=n(["on error resume next","exit"]),x=n(["rem"]);function S(e,t){t.currentIndent++}function _(e,t){t.currentIndent--}function T(e,n){if(e.eatSpace())return null;if("'"===e.peek())return e.skipToEnd(),"comment";if(e.match(x))return e.skipToEnd(),"comment";if(e.match(/^((&H)|(&O))?[0-9\.]/i,!1)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,!1)){var c=!1;if((e.match(/^\d*\.\d+/i)||e.match(/^\d+\.\d*/)||e.match(/^\.\d+/))&&(c=!0),c)return e.eat(/J/i),"number";var u=!1;if(e.match(/^&H[0-9a-f]+/i)||e.match(/^&O[0-7]+/i)?u=!0:e.match(/^[1-9]\d*F?/)?(e.eat(/J/i),u=!0):e.match(/^0(?![\dx])/i)&&(u=!0),u)return e.eat(/L/i),"number"}return e.match(g)?(n.tokenize=function(e){var t=1==e.length,n="string";return function(r,i){for(;!r.eol();){if(r.eatWhile(/[^'"]/),r.match(e))return i.tokenize=T,n;r.eat(/['"]/)}return t&&(i.tokenize=T),n}}(e.current()),n.tokenize(e,n)):e.match(i)||e.match(r)||e.match(l)?"operator":e.match(o)?null:e.match(a)?"bracket":e.match(O)?(n.doInCurrentLine=!0,"keyword"):e.match(w)?(S(0,n),n.doInCurrentLine=!0,"keyword"):e.match(b)?(n.doInCurrentLine?n.doInCurrentLine=!1:S(0,n),"keyword"):e.match(v)?"keyword":e.match(k)?(_(0,n),_(0,n),"keyword"):e.match(y)?(n.doInCurrentLine?n.doInCurrentLine=!1:_(0,n),"keyword"):e.match(d)?"keyword":e.match(h)?"atom":e.match(p)?"variableName.special":e.match(f)||e.match(m)?"builtin":e.match(s)?"variable":(e.next(),t)}return{name:"vbscript",startState:function(){return{tokenize:T,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:!1,ignoreKeyword:!1}},token:function(e,n){e.sol()&&(n.currentIndent+=n.nextLineIndent,n.nextLineIndent=0,n.doInCurrentLine=0);var r=function(e,n){var r=n.tokenize(e,n),i=e.current();return"."===i?(r=n.tokenize(e,n),i=e.current(),!r||"variable"!==r.substr(0,8)&&"builtin"!==r&&"keyword"!==r?t:("builtin"!==r&&"keyword"!==r||(r="variable"),u.indexOf(i.substr(1))>-1&&(r="keyword"),r)):r}(e,n);return n.lastToken={style:r,content:e.current()},null===r&&(r=null),r},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");return r.match(y)||r.match(k)||r.match(v)?n.unit*(e.currentIndent-1):e.currentIndent<0?0:e.currentIndent*n.unit}}}n.r(t),n.d(t,{vbScript:()=>i,vbScriptASP:()=>o});const i=r({}),o=r({isASP:!0})},46923:(e,t,n)=>{function r(e){for(var t={},n=e.split(" "),r=0;rf});var i=r("#end #else #break #stop #[[ #]] #{end} #{else} #{break} #{stop}"),o=r("#if #elseif #foreach #set #include #parse #macro #define #evaluate #{if} #{elseif} #{foreach} #{set} #{include} #{parse} #{macro} #{define} #{evaluate}"),a=r("$foreach.count $foreach.hasNext $foreach.first $foreach.last $foreach.topmost $foreach.parent.count $foreach.parent.hasNext $foreach.parent.first $foreach.parent.last $foreach.parent $velocityCount $!bodyContent $bodyContent"),s=/[+\-*&%=<>!?:\/|]/;function l(e,t,n){return t.tokenize=n,n(e,t)}function c(e,t){var n=t.beforeParams;t.beforeParams=!1;var r=e.next();if("'"==r&&!t.inString&&t.inParams)return t.lastTokenWasBuiltin=!1,l(e,t,u(r));if('"'!=r){if(/[\[\]{}\(\),;\.]/.test(r))return"("==r&&n?t.inParams=!0:")"==r&&(t.inParams=!1,t.lastTokenWasBuiltin=!0),null;if(/\d/.test(r))return t.lastTokenWasBuiltin=!1,e.eatWhile(/[\w\.]/),"number";if("#"==r&&e.eat("*"))return t.lastTokenWasBuiltin=!1,l(e,t,d);if("#"==r&&e.match(/ *\[ *\[/))return t.lastTokenWasBuiltin=!1,l(e,t,h);if("#"==r&&e.eat("#"))return t.lastTokenWasBuiltin=!1,e.skipToEnd(),"comment";if("$"==r)return e.eat("!"),e.eatWhile(/[\w\d\$_\.{}-]/),a&&a.propertyIsEnumerable(e.current())?"keyword":(t.lastTokenWasBuiltin=!0,t.beforeParams=!0,"builtin");if(s.test(r))return t.lastTokenWasBuiltin=!1,e.eatWhile(s),"operator";e.eatWhile(/[\w\$_{}@]/);var c=e.current();return i&&i.propertyIsEnumerable(c)?"keyword":o&&o.propertyIsEnumerable(c)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&"("==e.peek()&&(!o||!o.propertyIsEnumerable(c.toLowerCase()))?(t.beforeParams=!0,t.lastTokenWasBuiltin=!1,"keyword"):t.inString?(t.lastTokenWasBuiltin=!1,"string"):e.pos>c.length&&"."==e.string.charAt(e.pos-c.length-1)&&t.lastTokenWasBuiltin?"builtin":(t.lastTokenWasBuiltin=!1,null)}return t.lastTokenWasBuiltin=!1,t.inString?(t.inString=!1,"string"):t.inParams?l(e,t,u(r)):void 0}function u(e){return function(t,n){for(var r,i=!1,o=!1;null!=(r=t.next());){if(r==e&&!i){o=!0;break}if('"'==e&&"$"==t.peek()&&!i){n.inString=!0,o=!0;break}i=!i&&"\\"==r}return o&&(n.tokenize=c),"string"}}function d(e,t){for(var n,r=!1;n=e.next();){if("#"==n&&r){t.tokenize=c;break}r="*"==n}return"comment"}function h(e,t){for(var n,r=0;n=e.next();){if("#"==n&&2==r){t.tokenize=c;break}"]"==n?r++:" "!=n&&(r=0)}return"meta"}const f={name:"velocity",startState:function(){return{tokenize:c,beforeParams:!1,inParams:!1,inString:!1,lastTokenWasBuiltin:!1}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{line:"##",block:{open:"#*",close:"*#"}}}}},84189:(e,t,n)=>{function r(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,r=e.noIndentKeywords||[],i=e.multiLineStrings,o=e.hooks||{};function a(e){for(var t={},n=e.split(" "),r=0;r=0)return a}var s=e.context,l=r&&r.charAt(0);"statement"==s.type&&"}"==l&&(s=s.prev);var c=!1,u=r.match(v);return u&&(c=A(u[0],s.type)),"statement"==s.type?s.indented+("{"==l?0:t||i.unit):y.test(s.type)&&s.align&&!n?s.column+(c?0:1):")"!=s.type||c?s.indented+(c?0:i.unit):s.indented+(t||i.unit)},languageData:{indentOnInput:function(){var e=[];for(var t in w)if(w[t]){var n=w[t].split(";");for(var r in n)e.push(n[r])}return new RegExp("[{}()\\[\\]]|("+e.join("|")+")$")}(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}n.r(t),n.d(t,{tlv:()=>u,verilog:()=>i});const i=r({});var o={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"},a={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"},s=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/,l=/^[! ] */,c=/^\/[\/\*]/;const u=r({hooks:{electricInput:!1,token:function(e,t){var n=void 0;if(e.sol()&&!t.tlvInBlockComment){"\\"==e.peek()&&(n="def",e.skipToEnd(),e.string.match(/\\SV/)?t.tlvCodeActive=!1:e.string.match(/\\TLV/)&&(t.tlvCodeActive=!0)),t.tlvCodeActive&&0==e.pos&&0==t.indented&&(m=e.match(l,!1))&&(t.indented=m[0].length);var r=t.indented,i=r/3;if(i<=t.tlvIndentationStyle.length){var u=e.string.length==r,d=3*i;if(d0||(t.tlvIndentationStyle[i]=a[f],i++))}if(!u)for(;t.tlvIndentationStyle.length>i;)t.tlvIndentationStyle.pop()}t.tlvNextIndent=r}if(t.tlvCodeActive){var m;if(void 0!==n);else if(t.tlvInBlockComment)e.match(/^.*?\*\//)?t.tlvInBlockComment=!1:e.skipToEnd(),n="comment";else if((m=e.match(c))&&!t.tlvInBlockComment)"//"==m[0]?e.skipToEnd():t.tlvInBlockComment=!0,n="comment";else if(m=e.match(s)){var p=m[1],g=m[2];o.hasOwnProperty(p)&&(g.length>0||e.eol())?n=o[p]:e.backUp(e.current().length-1)}else e.match(/^\t+/)?n="invalid":e.match(/^[\[\]{}\(\);\:]+/)?n="meta":(m=e.match(/^[mM]4([\+_])?[\w\d_]*/))?n="+"==m[1]?"keyword.special":"keyword":e.match(/^ +/)?e.eol()&&(n="error"):e.match(/^[\w\d_]+/)?n="number":e.next()}else e.match(/^[mM]4([\w\d_]*)/)&&(n="keyword");return n},indent:function(e){return 1==e.tlvCodeActive?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[],e.tlvCodeActive=!0,e.tlvNextIndent=-1,e.tlvInBlockComment=!1}}})},18879:(e,t,n)=>{function r(e){for(var t={},n=e.split(","),r=0;rg});var o,a=r("null"),s={"`":i,$:i},l=!1,c=r("abs,access,after,alias,all,and,architecture,array,assert,attribute,begin,block,body,buffer,bus,case,component,configuration,constant,disconnect,downto,else,elsif,end,end block,end case,end component,end for,end generate,end if,end loop,end process,end record,end units,entity,exit,file,for,function,generate,generic,generic map,group,guarded,if,impure,in,inertial,inout,is,label,library,linkage,literal,loop,map,mod,nand,new,next,nor,null,of,on,open,or,others,out,package,package body,port,port map,postponed,procedure,process,pure,range,record,register,reject,rem,report,return,rol,ror,select,severity,signal,sla,sll,sra,srl,subtype,then,to,transport,type,unaffected,units,until,use,variable,wait,when,while,with,xnor,xor"),u=r("architecture,entity,begin,case,port,else,elsif,end,for,function,if"),d=/[&|~>{function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}n.r(t),n.d(t,{webIDL:()=>x});var i=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"],o=r(i),a=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"],s=r(a),l=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"],c=r(l),u=["true","false","Infinity","NaN","null"],d=r(u),h=r(["callback","dictionary","enum","interface"]),f=r(["typedef"]),m=/^[:<=>?]/,p=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/,g=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/,b=/^_?[A-Za-z][0-9A-Z_a-z-]*/,v=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/,y=/^"[^"]*"/,k=/^\/\*.*?\*\//,w=/^\/\*.*/,O=/^.*?\*\//;const x={name:"webidl",startState:function(){return{inComment:!1,lastToken:"",startDef:!1,endDef:!1}},token:function(e,t){var n=function(e,t){if(e.eatSpace())return null;if(t.inComment)return e.match(O)?(t.inComment=!1,"comment"):(e.skipToEnd(),"comment");if(e.match("//"))return e.skipToEnd(),"comment";if(e.match(k))return"comment";if(e.match(w))return t.inComment=!0,"comment";if(e.match(/^-?[0-9\.]/,!1)&&(e.match(p)||e.match(g)))return"number";if(e.match(y))return"string";if(t.startDef&&e.match(b))return"def";if(t.endDef&&e.match(v))return t.endDef=!1,"def";if(e.match(c))return"keyword";if(e.match(s)){var n=t.lastToken,r=(e.match(/^\s*(.+?)\b/,!1)||[])[1];return":"===n||"implements"===n||"implements"===r||"="===r?"builtin":"type"}return e.match(o)?"builtin":e.match(d)?"atom":e.match(b)?"variable":e.match(m)?"operator":(e.next(),null)}(e,t);if(n){var r=e.current();t.lastToken=r,"keyword"===n?(t.startDef=h.test(r),t.endDef=t.endDef||f.test(r)):t.startDef=!1}return n},languageData:{autocomplete:i.concat(a).concat(l).concat(u)}}},64758:(e,t,n)=>{n.r(t),n.d(t,{xQuery:()=>v});var r=function(){function e(e){return{type:e,style:"keyword"}}for(var t=e("operator"),n={type:"atom",style:"atom"},r={type:"axis_specifier",style:"qualifier"},i={",":{type:"punctuation",style:null}},o=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"],a=0,s=o.length;a",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(a=0,s=c.length;a\"\'\/?]/);)w+=k;return i(e,t,function(e,t){return function(n,r){return n.eatSpace(),t&&n.eat(">")?(b(r),r.tokenize=o,"tag"):(n.eat("/")||g(r,{type:"tag",name:e,tokenize:o}),n.eat(">")?(r.tokenize=o,"tag"):(r.tokenize=c,"tag"))}}(w,y))}if("{"==n)return g(t,{type:"codeblock"}),null;if("}"==n)return b(t),null;if(f(t))return">"==n?"tag":"/"==n&&e.eat(">")?(b(t),"tag"):"variable";if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/),"atom";if("("===n&&e.eat(":"))return g(t,{type:"comment"}),i(e,t,a);if(v||'"'!==n&&"'"!==n){if("$"===n)return i(e,t,l);if(":"===n&&e.eat("="))return"keyword";if("("===n)return g(t,{type:"paren"}),null;if(")"===n)return b(t),null;if("["===n)return g(t,{type:"bracket"}),null;if("]"===n)return b(t),null;var O=r.propertyIsEnumerable(n)&&r[n];if(v&&'"'===n)for(;'"'!==e.next(););if(v&&"'"===n)for(;"'"!==e.next(););O||e.eatWhile(/[\w\$_-]/);var x=e.eat(":");!e.eat(":")&&x&&e.eatWhile(/[\w\$_-]/),e.match(/^[ \t]*\(/,!1)&&(m=!0);var S=e.current();return O=r.propertyIsEnumerable(S)&&r[S],m&&!O&&(O={type:"function_call",style:"def"}),function(e){return p(e,"xmlconstructor")}(t)?(b(t),"variable"):("element"!=S&&"attribute"!=S&&"axis_specifier"!=O.type||g(t,{type:"xmlconstructor"}),O?O.style:"variable")}return i(e,t,s(n))}function a(e,t){for(var n,r=!1,i=!1,o=0;n=e.next();){if(")"==n&&r){if(!(o>0)){b(t);break}o--}else":"==n&&i&&o++;r=":"==n,i="("==n}return"comment"}function s(e,t){return function(n,r){var i;if(function(e){return p(e,"string")}(r)&&n.current()==e)return b(r),t&&(r.tokenize=t),"string";if(g(r,{type:"string",name:e,tokenize:s(e,t)}),n.match("{",!1)&&m(r))return r.tokenize=o,"string";for(;i=n.next();){if(i==e){b(r),t&&(r.tokenize=t);break}if(n.match("{",!1)&&m(r))return r.tokenize=o,"string"}return"string"}}function l(e,t){var n=/[\w\$_-]/;if(e.eat('"')){for(;'"'!==e.next(););e.eat(":")}else e.eatWhile(n),e.match(":=",!1)||e.eat(":");return e.eatWhile(n),t.tokenize=o,"variable"}function c(e,t){var n=e.next();return"/"==n&&e.eat(">")?(m(t)&&b(t),f(t)&&b(t),"tag"):">"==n?(m(t)&&b(t),"tag"):"="==n?null:'"'==n||"'"==n?i(e,t,s(n,c)):(m(t)||g(t,{type:"attribute",tokenize:c}),e.eat(/[a-zA-Z_:]/),e.eatWhile(/[-a-zA-Z0-9_:.]/),e.eatSpace(),(e.match(">",!1)||e.match("/",!1))&&(b(t),t.tokenize=o),"attribute")}function u(e,t){for(var n;n=e.next();)if("-"==n&&e.match("->",!0))return t.tokenize=o,"comment"}function d(e,t){for(var n;n=e.next();)if("]"==n&&e.match("]",!0))return t.tokenize=o,"comment"}function h(e,t){for(var n;n=e.next();)if("?"==n&&e.match(">",!0))return t.tokenize=o,"processingInstruction"}function f(e){return p(e,"tag")}function m(e){return p(e,"attribute")}function p(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function g(e,t){e.stack.push(t)}function b(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||o}const v={name:"xquery",startState:function(){return{tokenize:o,cc:[],stack:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}}},25848:(e,t,n)=>{n.r(t),n.d(t,{yacas:()=>f});var r=function(e){for(var t={},n=e.split(" "),r=0;r|<|&|\||_|`|'|\^|\?|!|%|#)/,!0,!1)?"operator":"error"}function u(e,t){for(var n,r=!1,i=!1;null!=(n=e.next());){if('"'===n&&!i){r=!0;break}i=!i&&"\\"===n}return r&&!i&&(t.tokenize=c),"string"}function d(e,t){for(var n,r;null!=(r=e.next());){if("*"===n&&"/"===r){t.tokenize=c;break}n=r}return"comment"}function h(e){var t=null;return e.scopes.length>0&&(t=e.scopes[e.scopes.length-1]),t}const f={name:"yacas",startState:function(){return{tokenize:c,scopes:[]}},token:function(e,t){return e.eatSpace()?null:t.tokenize(e,t)},indent:function(e,t,n){if(e.tokenize!==c&&null!==e.tokenize)return null;var r=0;return"]"!==t&&"];"!==t&&"}"!==t&&"};"!==t&&");"!==t||(r=-1),(e.scopes.length+r)*n.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}},69831:(e,t,n)=>{n.r(t),n.d(t,{yaml:()=>i});var r=new RegExp("\\b(("+["true","false","on","off","yes","no"].join(")|(")+"))$","i");const i={name:"yaml",token:function(e,t){var n=e.peek(),i=t.escaped;if(t.escaped=!1,"#"==n&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol)return e.skipToEnd(),"string";if(t.literal&&(t.literal=!1),e.sol()){if(t.keyCol=0,t.pair=!1,t.pairStart=!1,e.match("---"))return"def";if(e.match("..."))return"def";if(e.match(/^\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==n?t.inlinePairs++:"}"==n?t.inlinePairs--:"["==n?t.inlineList++:t.inlineList--,"meta";if(t.inlineList>0&&!i&&","==n)return e.next(),"meta";if(t.inlinePairs>0&&!i&&","==n)return t.keyCol=0,t.pair=!1,t.pairStart=!1,e.next(),"meta";if(t.pairStart){if(e.match(/^\s*(\||\>)\s*/))return t.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable";if(0==t.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(t.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(r))return"keyword"}return!t.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(t.pair=!0,t.keyCol=e.indentation(),"atom"):t.pair&&e.match(/^:\s*/)?(t.pairStart=!0,"meta"):(t.pairStart=!1,t.escaped="\\"==n,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}},languageData:{commentTokens:{line:"#"}}}},85688:(e,t,n)=>{function r(e){var t,n;e?(t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i,n=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i):(t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i,n=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i);var r=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i,i=/^(n?[zc]|p[oe]?|m)\b/i,o=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i,a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(s,l){if(s.column()||(l.context=0),s.eatSpace())return null;var c;if(s.eatWhile(/\w/)){if(e&&s.eat(".")&&s.eatWhile(/\w/),c=s.current(),!s.indentation())return s.match(a)?"number":null;if((1==l.context||4==l.context)&&r.test(c))return l.context=4,"variable";if(2==l.context&&i.test(c))return l.context=4,"variableName.special";if(t.test(c))return l.context=1,"keyword";if(n.test(c))return l.context=2,"keyword";if(4==l.context&&a.test(c))return"number";if(o.test(c))return"error"}else{if(s.eat(";"))return s.skipToEnd(),"comment";if(s.eat('"')){for(;(c=s.next())&&'"'!=c;)"\\"==c&&s.next();return"string"}if(s.eat("'")){if(s.match(/\\?.'/))return"number"}else if(s.eat(".")||s.sol()&&s.eat("#")){if(l.context=5,s.eatWhile(/\w/))return"def"}else if(s.eat("$")){if(s.eatWhile(/[\da-f]/i))return"number"}else if(s.eat("%")){if(s.eatWhile(/[01]/))return"number"}else s.next()}return null}}}n.r(t),n.d(t,{ez80:()=>o,z80:()=>i});const i=r(!1),o=r(!0)},24423:(e,t,n)=>{n.d(t,{Fv:()=>y});var r=n(50389),i=n(45224),o=n(595);class a{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class s{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let i=e,o=n.facet(k).markerFilter;o&&(i=o(i));let a=r.p.set(i.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?r.p.widget({widget:new x(e),diagnostic:e}).range(e.from):r.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new s(a,t,l(a))}}function l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,((e,n,i)=>{let{spec:o}=i;if(!t||o.diagnostic==t)return r=new a(e,n,o.diagnostic),!1})),r}function c(e,t){let n=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(d)))&&!e.changes.touchesRange(n.from,n.to))}function u(e,t){return e.field(m,!1)?t:t.concat(i.Py.appendConfig.of(C))}const d=i.Py.define(),h=i.Py.define(),f=i.Py.define(),m=i.QQ.define({create:()=>new s(r.p.none,null,null),update(e,t){if(t.docChanged){let n=e.diagnostics.map(t.changes),r=null;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=l(n,e.selected.diagnostic,i)||l(n,null,i)}e=new s(n,e.panel,r)}for(let n of t.effects)n.is(d)?e=s.init(n.value,e.panel,t.state):n.is(h)?e=new s(e.diagnostics,n.value?_.open:null,e.selected):n.is(f)&&(e=new s(e.diagnostics,e.panel,n.value));return e},provide:e=>[r.mH.from(e,(e=>e.panel)),r.tk.decorations.from(e,(e=>e.diagnostics))]});const p=r.p.mark({class:"cm-lintRange cm-lintRange-active"});function g(e,t,n){let{diagnostics:r}=e.state.field(m),i=[],o=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,s)=>{let{spec:l}=s;t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t({dom:b(e,i)})}:null}function b(e,t){return(0,o.Z)("ul",{class:"cm-tooltip-lint"},t.map((t=>O(e,t,!1))))}const v=e=>{let t=e.state.field(m,!1);return!(!t||!t.panel)&&(e.dispatch({effects:h.of(!1)}),!0)},y=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(m,!1);t&&t.panel||e.dispatch({effects:u(e.state,[h.of(!0)])});let n=(0,r.Sd)(e,_.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(m,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],k=i.r$.define({combine:e=>Object.assign({sources:e.map((e=>e.source))},(0,i.BO)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function w(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function O(e,t,n){var r;let i=n?w(t.actions):[];return(0,o.Z)("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},(0,o.Z)("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let a=!1,s=r=>{if(r.preventDefault(),a)return;a=!0;let i=l(e.state.field(m).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:c}=n,u=i[r]?c.indexOf(i[r]):-1,d=u<0?c:[c.slice(0,u),(0,o.Z)("u",c.slice(u,u+1)),c.slice(u+1)];return(0,o.Z)("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":" Action: ".concat(c).concat(u<0?"":' (access key "'.concat(i[r],')"'),".")},d)})),t.source&&(0,o.Z)("div",{class:"cm-diagnosticSource"},t.source))}class x extends r.l9{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return(0,o.Z)("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class S{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=O(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class _{constructor(e){this.view=e,this.items=[];this.list=(0,o.Z)("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)v(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=w(n.actions);for(let i=0;i{for(let t=0;tv(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(m).selected;if(!e)return-1;for(let t=0;t{let s,{spec:l}=a,c=-1;for(let t=n;tn&&(this.items.splice(n,c-n),r=!0)),t&&s.diagnostic==t.diagnostic?s.dom.hasAttribute("aria-selected")||(s.dom.setAttribute("aria-selected","true"),i=s):s.dom.hasAttribute("aria-selected")&&s.dom.removeAttribute("aria-selected"),n++}));n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:e=>{let{sel:t,panel:n}=e,r=n.height/this.list.offsetHeight;t.topn.bottom&&(this.list.scrollTop+=(t.bottom-n.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=l(this.view.state.field(m).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:f.of(t)})}static open(e){return new _(e)}}function T(e){return'url(\'data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"',">").concat(encodeURIComponent(e),"')")}function E(e){return T(''),'width="6" height="3"')}const $=r.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:E("#d11")},".cm-lintRange-warning":{backgroundImage:E("orange")},".cm-lintRange-info":{backgroundImage:E("#999")},".cm-lintRange-hint":{backgroundImage:E("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});r.SJ;const C=[m,r.tk.decorations.compute([m],(e=>{let{selected:t,panel:n}=e.field(m);return t&&n&&t.from!=t.to?r.p.set([p.range(t.from,t.to)]):r.p.none})),(0,r.bF)(g,{hideOn:c}),$]},24105:(e,t,n)=>{n.d(t,{QK:()=>de});var r=n(50389),i=n(45224),o=n(65694);n(94019),n(60994);class a{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}offset(e,t){return new a(this.fromA+e,this.toA+e,this.fromB+t,this.toB+t)}}function s(e,t,n,r,i,o){if(e==r)return[];let c=m(e,t,n,r,i,o),f=p(e,t+c,n,r,i+c,o),g=(n-=f)-(t+=c),y=(o-=f)-(i+=c);if(!g||!y)return[new a(t,n,i,o)];if(g>y){let s=e.slice(t,n).indexOf(r.slice(i,o));if(s>-1)return[new a(t,t+s,i,i),new a(t+s+y,n,o,o)]}else if(y>g){let s=r.slice(i,o).indexOf(e.slice(t,n));if(s>-1)return[new a(t,t,i,i+s),new a(n,n,i+s+g,o)]}if(1==g||1==y)return[new a(t,n,i,o)];let k=b(e,t,n,r,i,o);if(k){let[a,l,c]=k;return s(e,t,a,r,i,l).concat(s(e,a+c,n,r,l+c,o))}return function(e,t,n,r,i,o){let s=n-t,c=o-i;if(l<1e9&&Math.min(s,c)>16*l)return Math.min(s,c)>64*l?[new a(t,n,i,o)]:v(e,t,n,r,i,o);let f=Math.ceil((s+c)/2);u.reset(f),d.reset(f);let m=(n,o)=>e.charCodeAt(t+n)==r.charCodeAt(i+o),p=(t,i)=>e.charCodeAt(n-t-1)==r.charCodeAt(o-i-1),g=(s-c)%2!=0?d:null,b=g?null:u;for(let a=0;al)return v(e,t,n,r,i,o);let y=u.advance(a,s,c,f,g,!1,m)||d.advance(a,s,c,f,b,!0,p);if(y)return h(e,t,n,t+y[0],r,i,o,i+y[1])}return[new a(t,n,i,o)]}(e,t,n,r,i,o)}let l=1e9;class c{constructor(){this.vec=[]}reset(e){this.len=e<<1;for(let t=0;tt)this.end+=2;else if(u>n)this.start+=2;else if(i){let e=r+(t-n)-s;if(e>=0&&e=t-c)return[n,r+n-e]}else{if(c>=t-i.vec[e])return[c,u]}}}return null}}const u=new c,d=new c;function h(e,t,n,r,i,o,l,c){let u=!1;return C(e,r)||++r!=n||(u=!0),C(i,c)||++c!=l||(u=!0),u?[new a(t,n,o,l)]:s(e,t,r,i,o,c).concat(s(e,r,n,i,c,l))}function f(e,t){let n=1,r=Math.min(e,t);for(;nn||c>o||e.slice(s,i)!=r.slice(l,c)){if(1==a)return s-t-(C(e,s)?0:1);a>>=1}else{if(i==n||c==o)return i-t;s=i,l=c}}}function p(e,t,n,r,i,o){if(t==n||i==o||e.charCodeAt(n-1)!=r.charCodeAt(o-1))return 0;let a=f(n-t,o-i);for(let s=n,l=o;;){let o=s-a,c=l-a;if(o>=1}else{if(o==t||c==i)return n-o;s=o,l=c}}}function g(e,t,n,r,i,o,a,s){let l=r.slice(i,o),c=null;for(;;){if(c||a=n)break;let d=e.slice(s,u),h=-1;for(;-1!=(h=l.indexOf(d,h+1));){let a=m(e,u,n,r,i+h+d.length,o),l=p(e,t,s,r,i,i+h),f=d.length+a+l;(!c||c[2]>=1}}function b(e,t,n,r,i,o){let a=n-t,s=o-i;if(ai.fromA-t&&r.toB>i.fromB-t&&(e[n-1]=new a(r.fromA,i.toA,r.fromB,i.toB),e.splice(n--,1))}}let k;try{k=new RegExp("[\\p{Alphabetic}\\p{Number}]","u")}catch(fe){}function w(e){return e>48&&e<58||e>64&&e<91||e>96&&e<123}function O(e,t){if(t==e.length)return 0;let n=e.charCodeAt(t);return n<192?w(n)?1:0:k?E(n)&&t!=e.length-1?k.test(e.slice(t,t+2))?2:0:k.test(String.fromCharCode(n))?1:0:0}function x(e,t){if(!t)return 0;let n=e.charCodeAt(t-1);return n<192?w(n)?1:0:k?$(n)&&1!=t?k.test(e.slice(t-2,t))?2:0:k.test(String.fromCharCode(n))?1:0:0}function S(e,t,n){if(t==e.length||!x(e,t))return t;for(let r=t,i=t+n;;){let n=O(e,r);if(!n)return r;if(r+=n,r>i)return t}}function _(e,t,n){if(!t||!O(e,t))return t;for(let r=t,i=t-n;;){let n=x(e,r);if(!n)return r;if(r-=n,re>=55296&&e<=56319,$=e=>e>=56320&&e<=57343;function C(e,t){return!t||t==e.length||!E(e.charCodeAt(t-1))||!$(e.charCodeAt(t))}function A(e,t,n){var r;return l=(null!==(r=null===n||void 0===n?void 0:n.scanLimit)&&void 0!==r?r:1e9)>>1,function(e,t,n){for(;;){y(n,1);let r=!1;for(let i=0;i3||l>3){let c=i==e.length-1?t.length:e[i+1].fromA,u=o.fromA-r,d=c-o.toA,h=_(t,o.fromA,Math.min(u,5)),f=S(t,o.toA,Math.min(d,5)),m=o.fromA-h,p=f-o.toA;if(!s||!l){let d,g,b=Math.max(s,l),[v,y,k]=s?[t,o.fromA,o.toA]:[n,o.fromB,o.toB];m&&p?(b>m&&t.slice(h,o.fromA)==v.slice(k-m,k)?(o=e[i]=new a(h,h+s,o.fromB-m,o.toB-m),h=o.fromA,f=S(t,o.toA,Math.min(c-o.toA,5))):b>p&&t.slice(o.toA,f)==v.slice(y,y+p)&&(o=e[i]=new a(f-s,f,o.fromB+p,o.toB+p),f=o.toA,h=_(t,o.fromA,Math.min(o.fromA-r,5))),m=o.fromA-h,p=f-o.toA):m||p||!(g=o.fromA-(d=T(t,o.fromA,u)))||t.slice(d,o.fromA)!=v.slice(k-g,k)||(o=e[i]=new a(d,d+s,o.fromB-g,o.toB-g))}(m||p)&&(o=e[i]=new a(o.fromA-m,o.toA+p,o.fromB-m,o.toB+p)),r=o.toA}}return y(e,3),e}(A(e,t,n),e,t)}const R=i.r$.define({combine:e=>e[0]}),I=i.Py.define(),D=i.QQ.define({create:e=>null,update(e,t){for(let n of t.effects)n.is(I)&&(e=n.value);return e}});class z{constructor(e,t,n,r,i){this.changes=e,this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}offset(e,t){return e||t?new z(this.changes,this.fromA+e,this.toA+e,this.fromB+t,this.toB+t):this}get endA(){return Math.max(this.fromA,this.toA-1)}get endB(){return Math.max(this.fromB,this.toB-1)}static build(e,t,n){return M(P(e.toString(),t.toString(),n),e,t,0,0)}static updateA(e,t,n,r,i){return B(W(e,r,!0,n.length),e,t,n,i)}static updateB(e,t,n,r,i){return B(W(e,r,!1,t.length),e,t,n,i)}}function N(e,t,n,r){let i=n.lineAt(e),o=r.lineAt(t);return i.to==e&&o.to==t&&eu+1&&f>d+1)break;h.push(o.offset(-l+r,-c+i)),[u,d]=L(o.toA+r,o.toB+i,t,n),a++}o.push(new z(h,l,Math.max(l,u),c,Math.max(c,d)))}return o}const Q=1e3;function q(e,t,n,r){let i=0,o=e.length;for(;;){if(i==o){let r=0,o=0;i&&({toA:r,toB:o}=e[i-1]);let a=t-(n?r:o);return[r+a,o+a]}let a=i+o>>1,s=e[a],[l,c]=n?[s.fromA,s.toA]:[s.fromB,s.toB];if(l>t)o=a;else{if(!(c<=t))return r?[s.fromA,s.fromB]:[s.toA,s.toB];i=a+1}}}function W(e,t,n,r){let i=[];return t.iterChangedRanges(((o,a,s,l)=>{let c=0,u=n?t.length:r,d=0,h=n?r:t.length;o>Q&&([c,d]=q(e,o-Q,n,!0)),a=c?i[i.length-1]={fromA:f.fromA,fromB:f.fromB,toA:u,toB:h,diffA:f.diffA+p,diffB:f.diffB+g}:i.push({fromA:c,toA:u,fromB:d,toB:h,diffA:p,diffB:g})})),i}function B(e,t,n,r,i){if(!e.length)return t;let o=0,a=0,s=0,l=[];for(let c of e){let e=c.fromA+a,u=c.toA+a+c.diffA,d=c.fromB+s,h=c.toB+s+c.diffB;for(;ou)break;o++}for(let t of M(P(n.sliceString(e,u),r.sliceString(d,h),i),n,r,e,d))l.push(t);a+=c.diffA,s+=c.diffB}for(;oe.deco}),F=i.Wl.low((0,r.v5)({class:"cm-changeGutter",markers:e=>{var t;return(null===(t=e.plugin(U))||void 0===t?void 0:t.gutter)||i.Xs.empty}}));const j=r.p.line({class:"cm-changedLine"}),V=r.p.mark({class:"cm-changedText"}),G=r.p.mark({tagName:"ins"}),X=r.p.mark({tagName:"del"}),Z=new class extends r.SJ{constructor(){super(...arguments),this.elementClass="cm-changedLineGutter"}};function H(e,t,n,r,i,o){let a=n?e.fromA:e.fromB,s=n?e.toA:e.toB,l=0;if(a!=s){i.add(a,a,j),i.add(a,s,n?X:G),o&&o.add(a,a,Z);for(let c=t.iterRange(a,s-1),u=a;!c.next().done;){if(c.lineBreak){u++,i.add(u,u,j),o&&o.add(u,u,Z);continue}let t=u+c.value.length;if(r)for(;l=u)break;(a?i.toA:i.toB)>c&&H(i,e.state.doc,a,r,s,l)}return{deco:s.finish(),gutter:l&&l.finish()}}class J extends r.l9{constructor(e){super(),this.height=e}eq(e){return this.height==e.height}toDOM(){let e=document.createElement("div");return e.className="cm-mergeSpacer",e.style.height=this.height+"px",e}updateDOM(e){return e.style.height=this.height+"px",!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}const K=i.Py.define({map:(e,t)=>e.map(t)}),ee=i.QQ.define({create:()=>r.p.none,update:(e,t)=>{for(let n of t.effects)if(n.is(K))return n.value;return e.map(t.changes)},provide:e=>r.tk.decorations.from(e)}),te=.01;const ne=i.Py.define({map:(e,t)=>t.mapPos(e)});class re extends r.l9{constructor(e){super(),this.lines=e}eq(e){return this.lines==e.lines}toDOM(e){let t=document.createElement("div");return t.className="cm-collapsedLines",t.textContent="\u299a "+e.state.phrase("$ unchanged lines",this.lines)+" \u299a",t.addEventListener("click",(t=>{let n=e.posAtDOM(t.target);e.dispatch({effects:ne.of(n)});let{side:r,sibling:i}=e.state.facet(R);i&&i().dispatch({effects:ne.of(ie(n,e.state.field(D),"a"==r))})})),t}ignoreEvent(e){return e instanceof MouseEvent}get estimatedHeight(){return 27}}function ie(e,t,n){let r=0,i=0;for(let o=0;;o++){let a=o=e)return i+(e-r);[r,i]=n?[a.toA,a.toB]:[a.toB,a.toA]}}const oe=i.QQ.define({create:e=>r.p.none,update(e,t){e=e.map(t.changes);for(let n of t.effects)n.is(ne)&&(e=e.update({filter:e=>e!=n.value}));return e},provide:e=>r.tk.decorations.from(e)});function ae(e){let{margin:t=3,minSize:n=4}=e;return oe.init((e=>function(e,t,n){let o=new i.f_,a="a"==e.facet(R).side,s=e.field(D),l=1;for(let i=0;;i++){let c=i=n&&o.add(e.doc.line(u).from,e.doc.line(d).to,r.p.replace({widget:new re(h),block:!0})),!c)break;l=e.doc.lineAt(Math.min(e.doc.length,a?c.toA:c.toB)).number}return o.finish()}(e,t,n)))}const se=r.tk.styleModule.of(new o.V({".cm-mergeView":{overflowY:"auto"},".cm-mergeViewEditors":{display:"flex",alignItems:"stretch"},".cm-mergeViewEditor":{flexGrow:1,flexBasis:0,overflow:"hidden"},".cm-merge-revert":{width:"1.6em",flexGrow:0,flexShrink:0,position:"relative"},".cm-merge-revert button":{position:"absolute",display:"block",width:"100%",boxSizing:"border-box",textAlign:"center",background:"none",border:"none",font:"inherit",cursor:"pointer"}})),le=r.tk.baseTheme({"& .cm-scroller, &":{height:"auto !important",overflowY:"visible !important"},"&.cm-merge-a .cm-changedLine, .cm-deletedChunk":{backgroundColor:"rgba(160, 128, 100, .08)"},"&.cm-merge-b .cm-changedLine":{backgroundColor:"rgba(100, 160, 128, .08)"},"&light.cm-merge-a .cm-changedText, &light .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ee443366, #ee443366) bottom/100% 2px no-repeat"},"&dark.cm-merge-a .cm-changedText, &dark .cm-deletedChunk .cm-deletedText":{background:"linear-gradient(#ffaa9966, #ffaa9966) bottom/100% 2px no-repeat"},"&light.cm-merge-b .cm-changedText":{background:"linear-gradient(#22bb2266, #22bb2266) bottom/100% 2px no-repeat"},"&dark.cm-merge-b .cm-changedText":{background:"linear-gradient(#88ff8866, #88ff8866) bottom/100% 2px no-repeat"},"del, ins":{textDecoration:"none"},".cm-deletedChunk":{paddingLeft:"6px","& .cm-chunkButtons":{position:"absolute",insetInlineEnd:"5px"},"& button":{border:"none",cursor:"pointer",color:"white",margin:"0 2px",borderRadius:"3px","&[name=accept]":{background:"#2a2"},"&[name=reject]":{background:"#d43"}}},".cm-collapsedLines":{padding:"5px 5px 5px 10px",cursor:"pointer"},"&light .cm-collapsedLines":{color:"#444",background:"linear-gradient(to bottom, transparent 0, #f3f3f3 30%, #f3f3f3 70%, transparent 100%)"},"&dark .cm-collapsedLines":{color:"#ddd",background:"linear-gradient(to bottom, transparent 0, #222 30%, #222 70%, transparent 100%)"},".cm-changeGutter":{width:"3px",paddingLeft:"1px"},"&light.cm-merge-a .cm-changedLineGutter, &light .cm-deletedLineGutter":{background:"#e43"},"&dark.cm-merge-a .cm-changedLineGutter, &dark .cm-deletedLineGutter":{background:"#fa9"},"&light.cm-merge-b .cm-changedLineGutter":{background:"#2b2"},"&dark.cm-merge-b .cm-changedLineGutter":{background:"#8f8"}}),ce=new i.F6,ue=new i.F6;class de{constructor(e){this.revertDOM=null,this.revertToA=!1,this.revertToLeft=!1,this.measuring=-1,this.diffConf=e.diffConfig;let t=[i.Wl.low(U),le,se,ee,r.tk.updateListener.of((e=>{this.measuring<0&&(e.heightChanged||e.viewportChanged)&&!e.transactions.some((e=>e.effects.some((e=>e.is(K)))))&&this.measure()}))],n=[R.of({side:"a",sibling:()=>this.b,highlightChanges:!1!==e.highlightChanges,markGutter:!1!==e.gutter})];!1!==e.gutter&&n.push(F);let o=i.yy.create({doc:e.a.doc,selection:e.a.selection,extensions:[e.a.extensions||[],r.tk.editorAttributes.of({class:"cm-merge-a"}),ue.of(n),t]}),a=[R.of({side:"b",sibling:()=>this.a,highlightChanges:!1!==e.highlightChanges,markGutter:!1!==e.gutter})];!1!==e.gutter&&a.push(F);let s=i.yy.create({doc:e.b.doc,selection:e.b.selection,extensions:[e.b.extensions||[],r.tk.editorAttributes.of({class:"cm-merge-b"}),ue.of(a),t]});this.chunks=z.build(o.doc,s.doc,this.diffConf);let l=[D.init((()=>this.chunks)),ce.of(e.collapseUnchanged?ae(e.collapseUnchanged):[])];o=o.update({effects:i.Py.appendConfig.of(l)}).state,s=s.update({effects:i.Py.appendConfig.of(l)}).state,this.dom=document.createElement("div"),this.dom.className="cm-mergeView",this.editorDOM=this.dom.appendChild(document.createElement("div")),this.editorDOM.className="cm-mergeViewEditors";let c=e.orientation||"a-b",u=document.createElement("div");u.className="cm-mergeViewEditor";let d=document.createElement("div");d.className="cm-mergeViewEditor",this.editorDOM.appendChild("a-b"==c?u:d),this.editorDOM.appendChild("a-b"==c?d:u),this.a=new r.tk({state:o,parent:u,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.a)}),this.b=new r.tk({state:s,parent:d,root:e.root,dispatchTransactions:e=>this.dispatch(e,this.b)}),this.setupRevertControls(!!e.revertControls,"b-to-a"==e.revertControls,e.renderRevertControl),e.parent&&e.parent.appendChild(this.dom),this.scheduleMeasure()}dispatch(e,t){if(e.some((e=>e.docChanged))){let n=e[e.length-1],r=e.reduce(((e,t)=>e.compose(t.changes)),i.as.empty(e[0].startState.doc.length));this.chunks=t==this.a?z.updateA(this.chunks,n.newDoc,this.b.state.doc,r,this.diffConf):z.updateB(this.chunks,this.a.state.doc,n.newDoc,r,this.diffConf),t.update([...e,n.state.update({effects:I.of(this.chunks)})]);let o=t==this.a?this.b:this.a;o.update([o.state.update({effects:I.of(this.chunks)})]),this.scheduleMeasure()}else t.update(e)}reconfigure(e){if("diffConfig"in e&&(this.diffConf=e.diffConfig),"orientation"in e){let t="b-a"!=e.orientation;if(t!=(this.editorDOM.firstChild==this.a.dom.parentNode)){let e=this.a.dom.parentNode,n=this.b.dom.parentNode;e.remove(),n.remove(),this.editorDOM.insertBefore(t?e:n,this.editorDOM.firstChild),this.editorDOM.appendChild(t?n:e),this.revertToLeft=!this.revertToLeft,this.revertDOM&&(this.revertDOM.textContent="")}}if("revertControls"in e||"renderRevertControl"in e){let t=!!this.revertDOM,n=this.revertToA,r=this.renderRevert;"revertControls"in e&&(t=!!e.revertControls,n="b-to-a"==e.revertControls),"renderRevertControl"in e&&(r=e.renderRevertControl),this.setupRevertControls(t,n,r)}let t="highlightChanges"in e,n="gutter"in e,r="collapseUnchanged"in e;if(t||n||r){let i=[],o=[];if(t||n){let r=this.a.state.facet(R),a=n?!1!==e.gutter:r.markGutter,s=t?!1!==e.highlightChanges:r.highlightChanges;i.push(ue.reconfigure([R.of({side:"a",sibling:()=>this.b,highlightChanges:s,markGutter:a}),a?F:[]])),o.push(ue.reconfigure([R.of({side:"b",sibling:()=>this.a,highlightChanges:s,markGutter:a}),a?F:[]]))}if(r){let t=ce.reconfigure(e.collapseUnchanged?ae(e.collapseUnchanged):[]);i.push(t),o.push(t)}this.a.dispatch({effects:i}),this.b.dispatch({effects:o})}this.scheduleMeasure()}setupRevertControls(e,t,n){this.revertToA=t,this.revertToLeft=this.revertToA==(this.editorDOM.firstChild==this.a.dom.parentNode),this.renderRevert=n,!e&&this.revertDOM?(this.revertDOM.remove(),this.revertDOM=null):e&&!this.revertDOM?(this.revertDOM=this.editorDOM.insertBefore(document.createElement("div"),this.editorDOM.firstChild.nextSibling),this.revertDOM.addEventListener("mousedown",(e=>this.revertClicked(e))),this.revertDOM.className="cm-merge-revert"):this.revertDOM&&(this.revertDOM.textContent="")}scheduleMeasure(){if(this.measuring<0){let e=this.dom.ownerDocument.defaultView||window;this.measuring=e.requestAnimationFrame((()=>{this.measuring=-1,this.measure()}))}}measure(){!function(e,t,n){let o=new i.f_,a=new i.f_,s=e.state.field(ee).iter(),l=t.state.field(ee).iter(),c=0,u=0,d=0,h=0;for(let i=0;;i++){let f=ite&&(h+=n,a.add(u,u,r.p.widget({widget:new J(n),block:!0,side:-1})))}if(!f)break;for(c=f.toA,u=f.toB;s.value&&s.fromte&&a.add(t.state.doc.length,t.state.doc.length,r.p.widget({widget:new J(f),block:!0,side:1}));let m=o.finish(),p=a.finish();i.Xs.eq([m],[e.state.field(ee)])||e.dispatch({effects:K.of(m)}),i.Xs.eq([p],[t.state.field(ee)])||t.dispatch({effects:K.of(p)})}(this.a,this.b,this.chunks),this.revertDOM&&this.updateRevertButtons()}updateRevertButtons(){let e=this.revertDOM,t=e.firstChild,n=this.a.viewport,r=this.b.viewport;for(let i=0;in.to||o.fromB>r.to)break;if(o.fromA-1&&(this.dom.ownerDocument.defaultView||window).cancelAnimationFrame(this.measuring),this.dom.remove()}}function he(e){let t=e.nextSibling;return e.remove(),t}r.l9},20531:(e,t,n)=>{n.d(t,{Lp:()=>te,sW:()=>w});var r=n(50389),i=n(45224),o=n(595);const a="function"==typeof String.prototype.normalize?e=>e.normalize("NFKD"):e=>e;class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(a(e)):a,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,i.gm)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,i.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,i.nZ)(e);let r=this.normalize(t);for(let i=0,o=n;;i++){let e=r.charCodeAt(i),a=this.match(e,o);if(i==r.length-1){if(a)return this.value=a,this;break}o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=l,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new f(e,t,n,r,i);this.re=new RegExp(t,c+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=m(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=m(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new h(t,e.sliceString(t,n));return d.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=m(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=h.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function m(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function p(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=(0,o.Z)("input",{class:"cm-textfield",name:"line",value:t});function a(){let t=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!t)return;let{state:o}=e,a=o.doc.lineAt(o.selection.main.head),[,s,l,c,u]=t,d=c?+c.slice(1):0,h=l?+l:a.number;if(l&&u){let e=h/100;s&&(e=e*("-"==s?-1:1)+a.number/o.doc.lines),h=Math.round(o.doc.lines*e)}else l&&s&&(h=h*("-"==s?-1:1)+a.number);let f=o.doc.line(Math.max(1,Math.min(o.doc.lines,h))),m=i.jT.cursor(f.from+Math.max(0,Math.min(d,f.length)));e.dispatch({effects:[g.of(!1),r.tk.scrollIntoView(m.from,{y:"center"})],selection:m}),e.focus()}return{dom:(0,o.Z)("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:g.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),a())},onsubmit:e=>{e.preventDefault(),a()}},(0,o.Z)("label",e.state.phrase("Go to line"),": ",n)," ",(0,o.Z)("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(u.prototype[Symbol.iterator]=f.prototype[Symbol.iterator]=function(){return this});const g=i.Py.define(),b=i.QQ.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(g)&&(e=n.value);return e},provide:e=>r.mH.from(e,(e=>e?p:null))}),v=r.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),y={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},k=i.r$.define({combine:e=>(0,i.BO)(e,y,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});function w(e){let t=[T,_];return e&&t.push(k.of(e)),t}const O=r.p.mark({class:"cm-selectionMatch"}),x=r.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function S(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=i.D0.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=i.D0.Word)}const _=r.lg.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(k),{state:n}=e,o=n.selection;if(o.ranges.length>1)return r.p.none;let a,l=o.main,c=null;if(l.empty){if(!t.highlightWordAroundCursor)return r.p.none;let e=n.wordAt(l.head);if(!e)return r.p.none;c=n.charCategorizer(l.head),a=n.sliceDoc(e.from,e.to)}else{let e=l.to-l.from;if(e200)return r.p.none;if(t.wholeWords){if(a=n.sliceDoc(l.from,l.to),c=n.charCategorizer(l.head),!S(c,n,l.from,l.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==i.D0.Word&&e(t.sliceDoc(r-1,r))==i.D0.Word}(c,n,l.from,l.to))return r.p.none}else if(a=n.sliceDoc(l.from,l.to).trim(),!a)return r.p.none}let u=[];for(let i of e.visibleRanges){let e=new s(n.doc,a,i.from,i.to);for(;!e.next().done;){let{from:i,to:o}=e.value;if((!c||S(c,n,i,o))&&(l.empty&&i<=l.from&&o>=l.to?u.push(x.range(i,o)):(i>=l.to||o<=l.from)&&u.push(O.range(i,o)),u.length>t.maxMatches))return r.p.none}}return r.p.set(u)}},{decorations:e=>e.decorations}),T=r.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const E=i.r$.define({combine:e=>(0,i.BO)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new ne(e),scrollToMatch:e=>r.tk.scrollIntoView(e)})});class ${constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,c),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new z(this):new P(this)}getCursor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:i.yy.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?R(this,r,t,n):A(this,r,t,n)}}class C{constructor(e){this.spec=e}}function A(e,t,n,r){return new s(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(o=t.doc,a=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=A(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function R(e,t,n,r){return new u(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(o=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(o(I(n.input,n.index))!=i.D0.Word||o(D(n.input,n.index))!=i.D0.Word)&&(o(D(n.input,n.index+n[0].length))!=i.D0.Word||o(I(n.input,n.index+n[0].length))!=i.D0.Word)):void 0},n,r);var o}function I(e,t){return e.slice((0,i.cp)(e,t,!1),t)}function D(e,t){return e.slice(t,(0,i.cp)(e,t))}class z extends C{nextMatch(e,t,n){let r=R(this.spec,e,n,e.doc.length).next();return r.done&&(r=R(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=R(this.spec,e,i,n),a=null;for(;!o.next().done;)a=o.value;if(a&&(i==t||a.from>i+10))return a;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=R(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const N=i.Py.define(),L=i.Py.define(),M=i.QQ.define({create:e=>new Q(H(e).create(),null),update(e,t){for(let n of t.effects)n.is(N)?e=new Q(n.value.create(),e.panel):n.is(L)&&(e=new Q(e.query,n.value?Z:null));return e},provide:e=>r.mH.from(e,(e=>e.panel))});class Q{constructor(e,t){this.query=e,this.panel=t}}const q=r.p.mark({class:"cm-searchMatch"}),W=r.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),B=r.lg.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(M))}update(e){let t=e.state.field(M);(t!=e.startState.field(M)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight(e){let{query:t,panel:n}=e;if(!n||!t.spec.valid)return r.p.none;let{view:o}=this,a=new i.f_;for(let r=0,i=o.visibleRanges,s=i.length;ri[r+1].from-500;)n=i[++r].to;t.highlight(o.state,e,n,((e,t)=>{let n=o.state.selection.ranges.some((n=>n.from==e&&n.to==t));a.add(e,t,n?W:q)}))}return a.finish()}},{decorations:e=>e.decorations});function U(e){return t=>{let n=t.state.field(M,!1);return n&&n.query.spec.valid?e(t,n):K(t)}}const F=U(((e,t)=>{let{query:n}=t,{to:r}=e.state.selection.main,o=n.nextMatch(e.state,r,r);if(!o)return!1;let a=i.jT.single(o.from,o.to),s=e.state.facet(E);return e.dispatch({selection:a,effects:[ae(e,o),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),J(e),!0})),j=U(((e,t)=>{let{query:n}=t,{state:r}=e,{from:o}=r.selection.main,a=n.prevMatch(r,o,o);if(!a)return!1;let s=i.jT.single(a.from,a.to),l=e.state.facet(E);return e.dispatch({selection:s,effects:[ae(e,a),l.scrollToMatch(s.main,e)],userEvent:"select.search"}),J(e),!0})),V=U(((e,t)=>{let{query:n}=t,r=n.matchAll(e.state,1e3);return!(!r||!r.length)&&(e.dispatch({selection:i.jT.create(r.map((e=>i.jT.range(e.from,e.to)))),userEvent:"select.search.matches"}),!0)})),G=U(((e,t)=>{let{query:n}=t,{state:o}=e,{from:a,to:s}=o.selection.main;if(o.readOnly)return!1;let l=n.nextMatch(o,a,a);if(!l)return!1;let c,u,d=[],h=[];if(l.from==a&&l.to==s&&(u=o.toText(n.getReplacement(l)),d.push({from:l.from,to:l.to,insert:u}),l=n.nextMatch(o,l.from,l.to),h.push(r.tk.announce.of(o.phrase("replaced match on line $",o.doc.lineAt(a).number)+"."))),l){let t=0==d.length||d[0].from>=l.to?0:l.to-l.from-u.length;c=i.jT.single(l.from-t,l.to-t),h.push(ae(e,l)),h.push(o.facet(E).scrollToMatch(c.main,e))}return e.dispatch({changes:d,selection:c,effects:h,userEvent:"input.replace"}),!0})),X=U(((e,t)=>{let{query:n}=t;if(e.state.readOnly)return!1;let i=n.matchAll(e.state,1e9).map((e=>{let{from:t,to:r}=e;return{from:t,to:r,insert:n.getReplacement(e)}}));if(!i.length)return!1;let o=e.state.phrase("replaced $ matches",i.length)+".";return e.dispatch({changes:i,effects:r.tk.announce.of(o),userEvent:"input.replace.all"}),!0}));function Z(e){return e.state.facet(E).createPanel(e)}function H(e,t){var n,r,i,o,a;let s=e.selection.main,l=s.empty||s.to>s.from+100?"":e.sliceDoc(s.from,s.to);if(t&&!l)return t;let c=e.facet(E);return new $({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(i=null===t||void 0===t?void 0:t.literal)&&void 0!==i?i:c.literal,regexp:null!==(o=null===t||void 0===t?void 0:t.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(a=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==a?a:c.wholeWord})}function Y(e){let t=(0,r.Sd)(e,Z);return t&&t.dom.querySelector("[main-field]")}function J(e){let t=Y(e);t&&t==e.root.activeElement&&t.select()}const K=e=>{let t=e.state.field(M,!1);if(t&&t.panel){let n=Y(e);if(n&&n!=e.root.activeElement){let r=H(e.state,t.query.spec);r.valid&&e.dispatch({effects:N.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[L.of(!0),t?N.of(H(e.state,t.query.spec)):i.Py.appendConfig.of(le)]});return!0},ee=e=>{let t=e.state.field(M,!1);if(!t||!t.panel)return!1;let n=(0,r.Sd)(e,Z);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:L.of(!1)}),!0},te=[{key:"Mod-f",run:K,scope:"editor search-panel"},{key:"F3",run:F,shift:j,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:F,shift:j,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:ee,scope:"editor search-panel"},{key:"Mod-Shift-l",run:e=>{let{state:t,dispatch:n}=e,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:o,to:a}=r.main,l=[],c=0;for(let u=new s(t.doc,t.sliceDoc(o,a));!u.next().done;){if(l.length>1e3)return!1;u.value.from==o&&(c=l.length),l.push(i.jT.range(u.value.from,u.value.to))}return n(t.update({selection:i.jT.create(l,c),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:e=>{let t=(0,r.Sd)(e,p);if(!t){let n=[g.of(!0)];null==e.state.field(b,!1)&&n.push(i.Py.appendConfig.of([b,v])),e.dispatch({effects:n}),t=(0,r.Sd)(e,p)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:e=>{let{state:t,dispatch:n}=e,{ranges:o}=t.selection;if(o.some((e=>e.from===e.to)))return(e=>{let{state:t,dispatch:n}=e,{selection:r}=t,o=i.jT.create(r.ranges.map((e=>t.wordAt(e.head)||i.jT.cursor(e.head))),r.mainIndex);return!o.eq(r)&&(n(t.update({selection:o})),!0)})({state:t,dispatch:n});let a=t.sliceDoc(o[0].from,o[0].to);if(t.selection.ranges.some((e=>t.sliceDoc(e.from,e.to)!=a)))return!1;let l=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let a=!1,l=new s(e.doc,t,r[r.length-1].to);;){if(l.next(),!l.done){if(a&&r.some((e=>e.from==l.value.from)))continue;if(o){let t=e.wordAt(l.value.from);if(!t||t.from!=l.value.from||t.to!=l.value.to)continue}return l.value}if(a)return null;l=new s(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),a=!0}}(t,a);return!!l&&(n(t.update({selection:t.selection.addRange(i.jT.range(l.from,l.to),!1),effects:r.tk.scrollIntoView(l.to)})),!0)},preventDefault:!0}];class ne{constructor(e){this.view=e;let t=this.query=e.state.field(M).query.spec;function n(e,t,n){return(0,o.Z)("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=(0,o.Z)("input",{value:t.search,placeholder:re(e,"Find"),"aria-label":re(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=(0,o.Z)("input",{value:t.replace,placeholder:re(e,"Replace"),"aria-label":re(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=(0,o.Z)("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=(0,o.Z)("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=(0,o.Z)("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=(0,o.Z)("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>F(e)),[re(e,"next")]),n("prev",(()=>j(e)),[re(e,"previous")]),n("select",(()=>V(e)),[re(e,"all")]),(0,o.Z)("label",null,[this.caseField,re(e,"match case")]),(0,o.Z)("label",null,[this.reField,re(e,"regexp")]),(0,o.Z)("label",null,[this.wordField,re(e,"by word")]),...e.state.readOnly?[]:[(0,o.Z)("br"),this.replaceField,n("replace",(()=>G(e)),[re(e,"replace")]),n("replaceAll",(()=>X(e)),[re(e,"replace all")])],(0,o.Z)("button",{name:"close",onclick:()=>ee(e),"aria-label":re(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new $({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:N.of(e)}))}keydown(e){(0,r.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?j:F)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),G(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(N)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(E).top}}function re(e,t){return e.state.phrase(t)}const ie=30,oe=/[\s\.,:;?!]/;function ae(e,t){let{from:n,to:i}=t,o=e.state.doc.lineAt(n),a=e.state.doc.lineAt(i).to,s=Math.max(o.from,n-ie),l=Math.min(a,i+ie),c=e.state.sliceDoc(s,l);if(s!=o.from)for(let r=0;rc.length-ie;r--)if(!oe.test(c[r-1])&&oe.test(c[r])){c=c.slice(0,r);break}return r.tk.announce.of("".concat(e.state.phrase("current match"),". ").concat(c," ").concat(e.state.phrase("on line")," ").concat(o.number,"."))}const se=r.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),le=[M,i.Wl.low(B),se]},45224:(e,t,n)=>{n.d(t,{BO:()=>Ee,D0:()=>Oe,D6:()=>fe,F6:()=>K,Gz:()=>je,IS:()=>Fe,JJ:()=>he,Py:()=>me,QQ:()=>j,Wl:()=>Y,Xs:()=>Re,YW:()=>pe,as:()=>E,bg:()=>O,cp:()=>g,e6:()=>Ce,f_:()=>Ie,gc:()=>_,gm:()=>w,jT:()=>z,n0:()=>T,nZ:()=>x,q6:()=>de,r$:()=>M,uU:()=>$e,x1:()=>d,xm:()=>D,xv:()=>r,yy:()=>Te});class r{lineAt(e){if(e<0||e>this.length)throw new RangeError("Invalid position ".concat(e," in document of length ").concat(this.length));return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError("Invalid line number ".concat(e," in ").concat(this.lines,"-line document"));return this.lineInner(e,!0,1,0)}replace(e,t,n){let r=[];return this.decompose(0,e,r,2),n.length&&n.decompose(0,n.length,r,3),this.decompose(t,this.length,r,1),o.from(r,this.length-(t-e)+n.length)}append(e){return this.replace(this.length,this.length,e)}slice(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=[];return this.decompose(e,t,n,0),o.from(n,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),n=this.length-this.scanIdentical(e,-1),r=new l(this),i=new l(e);for(let o=t,a=t;;){if(r.next(o),i.next(o),o=0,r.lineBreak!=i.lineBreak||r.done!=i.done||r.value!=i.value)return!1;if(a+=r.value.length,r.done||a>=n)return!0}}iter(){return new l(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)}iterRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length;return new c(this,e,t)}iterLines(e,t){let n;if(null==e)n=this.iter();else{null==t&&(t=this.lines+1);let r=this.line(e).from;n=this.iterRange(r,Math.max(r,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new u(n)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(0==e.length)throw new RangeError("A document must have at least one line");return 1!=e.length||e[0]?e.length<=32?new i(e):o.from(i.split(e,[])):r.empty}}class i extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){let t=-1;for(let n of e)t+=n.length+1;return t}(e);super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.text[i],a=r+o.length;if((t?n:a)>=e)return new d(r,a,n,o);r=a+1,n++}}decompose(e,t,n,r){let o=e<=0&&t>=this.length?this:new i(s(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(1&r){let e=n.pop(),t=a(o.text,e.text.slice(),0,o.length);if(t.length<=32)n.push(new i(t,e.length+o.length));else{let e=t.length>>1;n.push(new i(t.slice(0,e)),new i(t.slice(e)))}}else n.push(o)}replace(e,t,n){if(!(n instanceof i))return super.replace(e,t,n);let r=a(this.text,a(n.text,s(this.text,0,e)),t),l=this.length+n.length-(t-e);return r.length<=32?new i(r,l):o.from(i.split(r,[]),l)}sliceString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="";for(let i=0,o=0;i<=t&&oe&&o&&(r+=n),ei&&(r+=a.slice(Math.max(0,e-i),t-i)),i=s+1}return r}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let n=[],r=-1;for(let o of e)n.push(o),r+=o.length+1,32==n.length&&(t.push(new i(n,r)),n=[],r=-1);return r>-1&&t.push(new i(n,r)),t}}class o extends r{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let n of e)this.lines+=n.lines}lineInner(e,t,n,r){for(let i=0;;i++){let o=this.children[i],a=r+o.length,s=n+o.lines-1;if((t?s:a)>=e)return o.lineInner(e,t,n,r);r=a+1,n=s+1}}decompose(e,t,n,r){for(let i=0,o=0;o<=t&&i=o){let i=r&((o<=e?1:0)|(s>=t?2:0));o>=e&&s<=t&&!i?n.push(a):a.decompose(e-o,t-o,n,i)}o=s+1}}replace(e,t,n){if(n.lines=i&&t<=s){let l=a.replace(e-i,t-i,n),c=this.lines-a.lines+l.lines;if(l.lines>4&&l.lines>c>>6){let i=this.children.slice();return i[r]=l,new o(i,this.length-(t-e)+n.length)}return super.replace(i,s,l)}i=s+1}return super.replace(e,t,n)}sliceString(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.length,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"\n",r="";for(let i=0,o=0;ie&&i&&(r+=n),eo&&(r+=a.sliceString(e-o,t-o,n)),o=s+1}return r}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof o))return 0;let n=0,[r,i,a,s]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;r+=t,i+=t){if(r==a||i==s)return n;let o=this.children[r],l=e.children[i];if(o!=l)return n+o.scanIdentical(l,t);n+=o.length+1}}static from(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.reduce(((e,t)=>e+t.length+1),-1),n=0;for(let i of e)n+=i.lines;if(n<32){let n=[];for(let t of e)t.flatten(n);return new i(n,t)}let r=Math.max(32,n>>5),a=r<<1,s=r>>1,l=[],c=0,u=-1,d=[];function h(e){let t;if(e.lines>a&&e instanceof o)for(let n of e.children)h(n);else e.lines>s&&(c>s||!c)?(f(),l.push(e)):e instanceof i&&c&&(t=d[d.length-1])instanceof i&&e.lines+t.lines<=32?(c+=e.lines,u+=e.length+1,d[d.length-1]=new i(t.text.concat(e.text),t.length+1+e.length)):(c+e.lines>r&&f(),c+=e.lines,u+=e.length+1,d.push(e))}function f(){0!=c&&(l.push(1==d.length?d[0]:o.from(d,u)),u=-1,c=d.length=0)}for(let i of e)h(i);return f(),1==l.length?l[0]:new o(l,t)}}function a(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e9;for(let i=0,o=0,a=!0;o=n&&(l>r&&(s=s.slice(0,r-i)),i1&&void 0!==arguments[1]?arguments[1]:1;this.dir=t,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[t>0?1:(e instanceof i?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let n=this.nodes.length-1,r=this.nodes[n],o=this.offsets[n],a=o>>1,s=r instanceof i?r.text.length:r.children.length;if(a==(t>0?s:0)){if(0==n)return this.done=!0,this.value="",this;t>0&&this.offsets[n-1]++,this.nodes.pop(),this.offsets.pop()}else if((1&o)==(t>0?0:1)){if(this.offsets[n]+=t,0==e)return this.lineBreak=!0,this.value="\n",this;e--}else if(r instanceof i){let i=r.text[a+(t<0?-1:0)];if(this.offsets[n]+=t,i.length>Math.max(0,e))return this.value=0==e?i:t>0?i.slice(e):i.slice(0,i.length-e),this;e-=i.length}else{let o=r.children[a+(t<0?-1:0)];e>o.length?(e-=o.length,this.offsets[n]+=t):(t<0&&this.offsets[n]--,this.nodes.push(o),this.offsets.push(t>0?1:(o instanceof i?o.text.length:o.children.length)<<1))}}}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class c{constructor(e,t,n){this.value="",this.done=!1,this.cursor=new l(e,t>n?-1:1),this.pos=t>n?e.length:0,this.from=Math.min(t,n),this.to=Math.max(t,n)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let n=t<0?this.pos-this.from:this.to-this.pos;e>n&&(e=n),n-=e;let{value:r}=this.cursor.next(e);return this.pos+=(r.length+e)*t,this.value=r.length<=n?r:t<0?r.slice(r.length-n):r.slice(0,n),this.done=!this.value,this}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&""!=this.value}}class u{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,{done:t,lineBreak:n,value:r}=this.inner.next(e);return t?(this.done=!0,this.value=""):n?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=r,this.afterBreak=!1),this}get lineBreak(){return!1}}"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.iter()},l.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=u.prototype[Symbol.iterator]=function(){return this});class d{constructor(e,t,n,r){this.from=e,this.to=t,this.number=n,this.text=r}get length(){return this.to-this.from}}let h="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((e=>e?parseInt(e,36):1));for(let Ge=1;Gee)return h[t-1]<=e;return!1}function m(e){return e>=127462&&e<=127487}const p=8205;function g(e,t){return(!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?b:v)(e,t,!(arguments.length>3&&void 0!==arguments[3])||arguments[3])}function b(e,t,n){if(t==e.length)return t;t&&y(e.charCodeAt(t))&&k(e.charCodeAt(t-1))&&t--;let r=w(e,t);for(t+=x(r);t=0&&m(w(e,r));)n++,r-=2;if(n%2==0)break;t+=2}}}return t}function v(e,t,n){for(;t>0;){let r=b(e,t-2,n);if(r=56320&&e<57344}function k(e){return e>=55296&&e<56320}function w(e,t){let n=e.charCodeAt(t);if(!k(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return y(r)?r-56320+(n-55296<<10)+65536:n}function O(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10),56320+(1023&e)))}function x(e){return e<65536?1:2}const S=/\r\n?|\n/;var _=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(_||(_={}));class T{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;t1&&void 0!==arguments[1]&&arguments[1])}get invertedDesc(){let e=[];for(let t=0;t1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:P(this,e,t)}mapPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_.Simple,r=0,i=0;for(let o=0;oe)return i+(e-r);i+=a}else{if(n!=_.Simple&&l>=e&&(n==_.TrackDel&&re||n==_.TrackBefore&&re))return null;if(l>e||l==e&&t<0&&!a)return e==r||t<0?i:i+s;i+=s}r=l}if(e>r)throw new RangeError("Position ".concat(e," is out of range for changeset of length ").concat(r));return i}touchesRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;for(let n=0,r=0;n=0&&r<=t&&i>=e)return!(rt)||"cover";r=i}return!1}toString(){let e="";for(let t=0;t=0?":"+r:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some((e=>"number"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeDesc");return new T(e)}static create(e){return new T(e)}}class E extends T{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return A(this,((t,n,r,i,o)=>e=e.replace(r,r+(n-t),o)),!1),e}mapDesc(e){return P(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1],!0)}invert(e){let t=this.sections.slice(),n=[];for(let i=0,o=0;i=0){t[i]=s,t[i+1]=a;let l=i>>1;for(;n.length1&&void 0!==arguments[1]&&arguments[1];return e.empty?this:P(this,e,t,!0)}iterChanges(e){A(this,e,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}get desc(){return T.create(this.sections)}filter(e){let t=[],n=[],r=[],i=new I(this);e:for(let o=0,a=0;;){let s=o==e.length?1e9:e[o++];for(;a0&&C(n,t,i.text),i.forward(e),a+=e}let l=e[o++];for(;a>1].toJSON()))}return e}static of(e,t,n){let i=[],o=[],a=0,s=null;function l(){if(!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&!i.length)return;as||e<0||s>t)throw new RangeError("Invalid change range ".concat(e," to ").concat(s," (in doc of length ").concat(t,")"));let d=u?"string"==typeof u?r.of(u.split(n||S)):u:r.empty,h=d.length;if(e==s&&0==h)return;ea&&$(i,e-a,-1),$(i,s-e,h),C(o,i,d),a=s}}(e),l(!s),s}static empty(e){return new E(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],n=[];for(let i=0;it&&"string"!=typeof e)))throw new RangeError("Invalid JSON representation of ChangeSet");if(1==o.length)t.push(o[0],0);else{for(;n.length3&&void 0!==arguments[3]&&arguments[3];if(0==t&&n<=0)return;let i=e.length-2;i>=0&&n<=0&&n==e[i+1]?e[i]+=t:0==t&&0==e[i]?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function C(e,t,n){if(0==n.length)return;let i=t.length-2>>1;if(i>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)l=e.sections[s++],c=e.sections[s++];t(o,u,a,d,h),o=u,a=d}}}function P(e,t,n){let r=[],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3]?[]:null,o=new I(e),a=new I(t);for(let s=-1;;)if(-1==o.ins&&-1==a.ins){let e=Math.min(o.len,a.len);$(r,e,-1),o.forward(e),a.forward(e)}else if(a.ins>=0&&(o.ins<0||s==o.i||0==o.off&&(a.len=0&&s=0)){if(o.done&&a.done)return i?E.createSet(r,i):T.create(r);throw new Error("Mismatched change set lengths")}{let e=0,t=o.len;for(;t;)if(-1==a.ins){let n=Math.min(t,a.len);e+=n,t-=n,a.forward(n)}else{if(!(0==a.ins&&a.len2&&void 0!==arguments[2]&&arguments[2]?[]:null,i=new I(e),o=new I(t);for(let a=!1;;){if(i.done&&o.done)return r?E.createSet(n,r):T.create(n);if(0==i.ins)$(n,i.len,0,a),i.next();else if(0!=o.len||o.done){if(i.done||o.done)throw new Error("Mismatched change set lengths");{let e=Math.min(i.len2,o.len),t=n.length;if(-1==i.ins){let t=-1==o.ins?-1:o.off?0:o.ins;$(n,e,t,a),r&&t&&C(r,n,o.text)}else-1==o.ins?($(n,i.off?0:i.len,e,a),r&&C(r,n,i.textBit(e))):($(n,i.off?0:i.len,o.off?0:o.ins,a),r&&!o.off&&C(r,n,o.text));a=(i.ins>e||o.ins>=0&&o.len>e)&&(a||n.length>t),i.forward2(e),o.forward(e)}}else $(n,0,o.ins,a),r&&C(r,n,o.text),o.next()}}class I{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?r.empty:e[t]}textBit(e){let{inserted:t}=this.set,n=this.i-2>>1;return n>=t.length&&!e?r.empty:t[n].slice(this.off,null==e?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){-1==this.ins?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class D{constructor(e,t,n){this.from=e,this.to=t,this.flags=n}get anchor(){return 32&this.flags?this.to:this.from}get head(){return 32&this.flags?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return 8&this.flags?-1:16&this.flags?1:0}get bidiLevel(){let e=7&this.flags;return 7==e?null:e}get goalColumn(){let e=this.flags>>6;return 16777215==e?void 0:e}map(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return this.empty?t=n=e.mapPos(this.from,r):(t=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),t==this.from&&n==this.to?this:new D(t,n,this.flags)}extend(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e<=this.anchor&&t>=this.anchor)return z.range(e,t);let n=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return z.range(this.anchor,n)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||"number"!=typeof e.anchor||"number"!=typeof e.head)throw new RangeError("Invalid JSON representation for SelectionRange");return z.range(e.anchor,e.head)}static create(e,t,n){return new D(e,t,n)}}class z{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1;return e.empty?this:z.create(this.ranges.map((n=>n.map(e,t))),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;t1&&void 0!==arguments[1])||arguments[1];return z.create([e].concat(this.ranges),t?0:this.mainIndex+1)}replaceRange(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.mainIndex,n=this.ranges.slice();return n[t]=e,z.create(n,this.mainIndex)}toJSON(){return{ranges:this.ranges.map((e=>e.toJSON())),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||"number"!=typeof e.main||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new z(e.ranges.map((e=>D.fromJSON(e))),e.main)}static single(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return new z([z.range(e,t)],0)}static create(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0==e.length)throw new RangeError("A selection needs at least one range");for(let n=0,r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return D.create(e,e,(0==t?0:t<0?8:16)|(null==n?7:Math.min(6,n))|(null!==r&&void 0!==r?r:16777215)<<6)}static range(e,t,n,r){let i=(null!==n&&void 0!==n?n:16777215)<<6|(null==r?7:Math.min(6,r));return te?8:0)|i)}static normalized(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e[t];e.sort(((e,t)=>e.from-t.from)),t=e.indexOf(n);for(let r=1;rn.head?z.range(a,o):z.range(o,a))}}return new z(e,t)}}function N(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let L=0;class M{constructor(e,t,n,r,i){this.combine=e,this.compareInput=t,this.compare=n,this.isStatic=r,this.id=L++,this.default=e([]),this.extensions="function"==typeof i?i(this):i}get reader(){return this}static define(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new M(e.combine||(e=>e),e.compareInput||((e,t)=>e===t),e.compare||(e.combine?(e,t)=>e===t:Q),!!e.static,e.enables)}of(e){return new q([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new q(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new q(e,this,2,t)}from(e,t){return t||(t=e=>e),this.compute([e],(n=>t(n.field(e))))}}function Q(e,t){return e==t||e.length==t.length&&e.every(((e,n)=>e===t[n]))}class q{constructor(e,t,n,r){this.dependencies=e,this.facet=t,this.type=n,this.value=r,this.id=L++}dynamicSlot(e){var t;let n=this.value,r=this.facet.compareInput,i=this.id,o=e[i]>>1,a=2==this.type,s=!1,l=!1,c=[];for(let u of this.dependencies)"doc"==u?s=!0:"selection"==u?l=!0:0==(1&(null!==(t=e[u.id])&&void 0!==t?t:1))&&c.push(e[u.id]);return{create:e=>(e.values[o]=n(e),1),update(e,t){if(s&&t.docChanged||l&&(t.docChanged||t.selection)||B(e,c)){let t=n(e);if(a?!W(t,e.values[o],r):!r(t,e.values[o]))return e.values[o]=t,1}return 0},reconfigure:(e,t)=>{let s,l=t.config.address[i];if(null!=l){let i=re(t,l);if(this.dependencies.every((n=>n instanceof M?t.facet(n)===e.facet(n):!(n instanceof j)||t.field(n,!1)==e.field(n,!1)))||(a?W(s=n(e),i,r):r(s=n(e),i)))return e.values[o]=i,0}else s=n(e);return e.values[o]=s,1}}}}function W(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[t.id])),i=n.map((e=>e.type)),o=r.filter((e=>!(1&e))),a=e[t.id]>>1;function s(e){let n=[];for(let t=0;te===t),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(F).find((e=>e.field==this));return((null===t||void 0===t?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:e=>(e.values[t]=this.create(e),1),update:(e,n)=>{let r=e.values[t],i=this.updateF(r,n);return this.compareF(r,i)?0:(e.values[t]=i,1)},reconfigure:(e,n)=>null!=n.config.address[this.id]?(e.values[t]=n.field(this),0):(e.values[t]=this.create(e),1)}}init(e){return[this,F.of({field:this,create:e})]}get extension(){return this}}const V=4,G=3,X=2,Z=1;function H(e){return t=>new J(t,e)}const Y={highest:H(0),high:H(Z),default:H(X),low:H(G),lowest:H(V)};class J{constructor(e,t){this.inner=e,this.prec=t}}class K{of(e){return new ee(this,e)}reconfigure(e){return K.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class ee{constructor(e,t){this.compartment=e,this.inner=t}}class te{constructor(e,t,n,r,i,o){for(this.base=e,this.compartments=t,this.dynamicSlots=n,this.address=r,this.staticValues=i,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,n){let r=[],i=Object.create(null),o=new Map;for(let d of function(e,t,n){let r=[[],[],[],[],[]],i=new Map;function o(e,a){let s=i.get(e);if(null!=s){if(s<=a)return;let t=r[s].indexOf(e);t>-1&&r[s].splice(t,1),e instanceof ee&&n.delete(e.compartment)}if(i.set(e,a),Array.isArray(e))for(let t of e)o(t,a);else if(e instanceof ee){if(n.has(e.compartment))throw new RangeError("Duplicate use of compartment in extensions");let r=t.get(e.compartment)||e.inner;n.set(e.compartment,r),o(r,a)}else if(e instanceof J)o(e.inner,e.prec);else if(e instanceof j)r[a].push(e),e.provides&&o(e.provides,a);else if(e instanceof q)r[a].push(e),e.facet.extensions&&o(e.facet.extensions,X);else{let t=e.extension;if(!t)throw new Error("Unrecognized extension value in extension set (".concat(e,"). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks."));o(t,a)}}return o(e,X),r.reduce(((e,t)=>e.concat(t)))}(e,t,o))d instanceof j?r.push(d):(i[d.facet.id]||(i[d.facet.id]=[])).push(d);let a=Object.create(null),s=[],l=[];for(let d of r)a[d.id]=l.length<<1,l.push((e=>d.slot(e)));let c=null===n||void 0===n?void 0:n.config.facets;for(let d in i){let e=i[d],t=e[0].facet,r=c&&c[d]||[];if(e.every((e=>0==e.type)))if(a[t.id]=s.length<<1|1,Q(r,e))s.push(n.facet(t));else{let r=t.combine(e.map((e=>e.value)));s.push(n&&t.compare(r,n.facet(t))?n.facet(t):r)}else{for(let t of e)0==t.type?(a[t.id]=s.length<<1|1,s.push(t.value)):(a[t.id]=l.length<<1,l.push((e=>t.dynamicSlot(e))));a[t.id]=l.length<<1,l.push((n=>U(n,t,e)))}}let u=l.map((e=>e(a)));return new te(e,o,u,a,s,i)}}function ne(e,t){if(1&t)return 2;let n=t>>1,r=e.status[n];if(4==r)throw new Error("Cyclic dependency between fields and/or facets");if(2&r)return r;e.status[n]=4;let i=e.computeSlot(e,e.config.dynamicSlots[n]);return e.status[n]=2|i}function re(e,t){return 1&t?e.config.staticValues[t>>1]:e.values[t>>1]}const ie=M.define(),oe=M.define({combine:e=>e.some((e=>e)),static:!0}),ae=M.define({combine:e=>e.length?e[0]:void 0,static:!0}),se=M.define(),le=M.define(),ce=M.define(),ue=M.define({combine:e=>!!e.length&&e[0]});class de{constructor(e,t){this.type=e,this.value=t}static define(){return new he}}class he{of(e){return new de(this,e)}}class fe{constructor(e){this.map=e}of(e){return new me(this,e)}}class me{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return void 0===t?void 0:t==this.value?this:new me(this.type,t)}is(e){return this.type==e}static define(){return new fe((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).map||(e=>e))}static mapEffects(e,t){if(!e.length)return e;let n=[];for(let r of e){let e=r.map(t);e&&n.push(e)}return n}}me.reconfigure=me.define(),me.appendConfig=me.define();class pe{constructor(e,t,n,r,i,o){this.startState=e,this.changes=t,this.selection=n,this.effects=r,this.annotations=i,this.scrollIntoView=o,this._doc=null,this._state=null,n&&N(n,t.newLength),i.some((e=>e.type==pe.time))||(this.annotations=i.concat(pe.time.of(Date.now())))}static create(e,t,n,r,i,o){return new pe(e,t,n,r,i,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(pe.userEvent);return!(!t||!(t==e||t.length>e.length&&t.slice(0,e.length)==e&&"."==t[e.length]))}}function ge(e,t){let n=[];for(let r=0,i=0;;){let o,a;if(r=e[r]))o=e[r++],a=e[r++];else{if(!(i=0;i--){let o=n[i](e);o&&Object.keys(o).length&&(r=be(r,ve(t,o,e.changes.newLength),!0))}return r==e?e:pe.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}(n?function(e){let t=e.startState,n=!0;for(let i of t.facet(se)){let t=i(e);if(!1===t){n=!1;break}Array.isArray(t)&&(n=!0===n?t:ge(n,t))}if(!0!==n){let r,i;if(!1===n)i=e.changes.invertedDesc,r=E.empty(t.doc.length);else{let t=e.changes.filter(n);r=t.changes,i=t.filtered.mapDesc(t.changes).invertedDesc}e=pe.create(t,r,e.selection&&e.selection.map(i),me.mapEffects(e.effects,i),e.annotations,e.scrollIntoView)}let r=t.facet(le);for(let i=r.length-1;i>=0;i--){let n=r[i](e);e=n instanceof pe?n:Array.isArray(n)&&1==n.length&&n[0]instanceof pe?n[0]:ye(t,we(n),!1)}return e}(i):i)}pe.time=de.define(),pe.userEvent=de.define(),pe.addToHistory=de.define(),pe.remote=de.define();const ke=[];function we(e){return null==e?ke:Array.isArray(e)?e:[e]}var Oe=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Oe||(Oe={}));const xe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Se;try{Se=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(Ve){}function _e(e){return t=>{if(!/\S/.test(t))return Oe.Space;if(function(e){if(Se)return Se.test(e);for(let t=0;t"\x80"&&(n.toUpperCase()!=n.toLowerCase()||xe.test(n)))return!0}return!1}(t))return Oe.Word;for(let n=0;n-1)return Oe.Word;return Oe.Other}}class Te{constructor(e,t,n,r,i,o){this.config=e,this.doc=t,this.selection=n,this.values=r,this.status=e.statusTemplate.slice(),this.computeSlot=i,o&&(o._state=this);for(let a=0;a1&&void 0!==arguments[1])||arguments[1],n=this.config.address[e.id];if(null!=n)return ne(this,n),re(this,n);if(t)throw new RangeError("Field is not present in this state")}update(){for(var e=arguments.length,t=new Array(e),n=0;ni.set(t,e))),n=null),i.set(o.value.compartment,o.value.extension)):o.is(me.reconfigure)?(n=null,r=o.value):o.is(me.appendConfig)&&(n=null,r=we(r).concat(o.value));if(n)t=e.startState.values.slice();else{n=te.resolve(r,i,this),t=new Te(n,this.doc,this.selection,n.dynamicSlots.map((()=>null)),((e,t)=>t.reconfigure(e,this)),null).values}new Te(n,e.newDoc,e.newSelection,t,((t,n)=>n.update(t,e)),e)}replaceSelection(e){return"string"==typeof e&&(e=this.toText(e)),this.changeByRange((t=>({changes:{from:t.from,to:t.to,insert:e},range:z.cursor(t.from+e.length)})))}changeByRange(e){let t=this.selection,n=e(t.ranges[0]),r=this.changes(n.changes),i=[n.range],o=we(n.effects);for(let a=1;a0&&void 0!==arguments[0]?arguments[0]:[];return e instanceof E?e:E.of(e,this.doc.length,this.facet(Te.lineSeparator))}toText(e){return r.of(e.split(this.facet(Te.lineSeparator)||S))}sliceDoc(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.doc.length;return this.doc.sliceString(e,t,this.lineBreak)}facet(e){let t=this.config.address[e.id];return null==t?e.default:(ne(this,t),re(this,t))}toJSON(e){let t={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let n in e){let r=e[n];r instanceof j&&null!=this.config.address[r.id]&&(t[n]=r.spec.toJSON(this.field(e[n]),this))}return t}static fromJSON(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;if(!e||"string"!=typeof e.doc)throw new RangeError("Invalid JSON representation for EditorState");let r=[];if(n)for(let i in n)if(Object.prototype.hasOwnProperty.call(e,i)){let t=n[i],o=e[i];r.push(t.init((e=>t.spec.fromJSON(o,e))))}return Te.create({doc:e.doc,selection:z.fromJSON(e.selection),extensions:t.extensions?r.concat([t.extensions]):r})}static create(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=te.resolve(e.extensions||[],new Map),n=e.doc instanceof r?e.doc:r.of((e.doc||"").split(t.staticFacet(Te.lineSeparator)||S)),i=e.selection?e.selection instanceof z?e.selection:z.single(e.selection.anchor,e.selection.head):z.single(0);return N(i,n.length),t.staticFacet(oe)||(i=i.asSingle()),new Te(t,n,i,t.dynamicSlots.map((()=>null)),((e,t)=>t.create(e)),null)}get tabSize(){return this.facet(Te.tabSize)}get lineBreak(){return this.facet(Te.lineSeparator)||"\n"}get readOnly(){return this.facet(ue)}phrase(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r{if("$"==t)return"$";let r=+(t||1);return!r||r>n.length?e:n[r-1]}))),e}languageDataAt(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[];for(let i of this.facet(ie))for(let o of i(this,t,n))Object.prototype.hasOwnProperty.call(o,e)&&r.push(o[e]);return r}charCategorizer(e){return _e(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:t,from:n,length:r}=this.doc.lineAt(e),i=this.charCategorizer(e),o=e-n,a=e-n;for(;o>0;){let e=g(t,o,!1);if(i(t.slice(e,o))!=Oe.Word)break;o=e}for(;a2&&void 0!==arguments[2]?arguments[2]:{},r={};for(let i of e)for(let e of Object.keys(i)){let t=i[e],o=r[e];if(void 0===o)r[e]=t;else if(o===t||void 0===t);else{if(!Object.hasOwnProperty.call(n,e))throw new Error("Config merge conflict for field "+e);r[e]=n[e](o,t)}}for(let i in t)void 0===r[i]&&(r[i]=t[i]);return r}Te.allowMultipleSelections=oe,Te.tabSize=M.define({combine:e=>e.length?e[0]:4}),Te.lineSeparator=ae,Te.readOnly=ue,Te.phrases=M.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every((n=>e[n]==t[n]))}}),Te.languageData=ie,Te.changeFilter=se,Te.transactionFilter=le,Te.transactionExtender=ce,K.reconfigure=me.define();class $e{eq(e){return this==e}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return Ce.create(e,t,this)}}$e.prototype.startSide=$e.prototype.endSide=0,$e.prototype.point=!1,$e.prototype.mapMode=_.TrackDel;class Ce{constructor(e,t,n){this.from=e,this.to=t,this.value=n}static create(e,t,n){return new Ce(e,t,n)}}function Ae(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class Pe{constructor(e,t,n,r){this.from=e,this.to=t,this.value=n,this.maxPoint=r}get length(){return this.to[this.to.length-1]}findIndex(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n?this.to:this.from;for(let o=r,a=i.length;;){if(o==a)return o;let r=o+a>>1,s=i[r]-e||(n?this.value[r].endSide:this.value[r].startSide)-t;if(r==o)return s>=0?o:a;s>=0?a=r:o=r+1}}between(e,t,n,r){for(let i=this.findIndex(t,-1e9,!0),o=this.findIndex(n,1e9,!1,i);ic||l==c&&u.startSide>0&&u.endSide<=0)continue;(c-l||u.endSide-u.startSide)<0||(o<0&&(o=l),u.point&&(a=Math.max(a,c-l)),n.push(u),r.push(l-o),i.push(c-o))}return{mapped:n.length?new Pe(r,i,n,a):null,pos:o}}}class Re{constructor(e,t,n,r){this.chunkPos=e,this.chunk=t,this.nextLayer=n,this.maxPoint=r}static create(e,t,n,r){return new Re(e,t,n,r)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let t of this.chunk)e+=t.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:t=[],sort:n=!1,filterFrom:r=0,filterTo:i=this.length}=e,o=e.filter;if(0==t.length&&!o)return this;if(n&&(t=t.slice().sort(Ae)),this.isEmpty)return t.length?Re.of(t):this;let a=new ze(this,null,-1).goto(0),s=0,l=[],c=new Ie;for(;a.value||s=0){let e=t[s++];c.addInner(e.from,e.to,e.value)||l.push(e)}else 1==a.rangeIndex&&a.chunkIndexthis.chunkEnd(a.chunkIndex)||ia.to||i=i&&e<=i+o.length&&!1===o.between(i,e-i,t-i,n))return}this.nextLayer.between(e,t,n)}}iter(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return Ne.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ne.from(e).goto(t)}static compare(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,o=e.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),a=t.filter((e=>e.maxPoint>0||!e.isEmpty&&e.maxPoint>=i)),s=De(o,a,n),l=new Me(o,s,i),c=new Me(a,s,i);n.iterGaps(((e,t,n)=>Qe(l,e,c,t,n,r))),n.empty&&0==n.length&&Qe(l,0,c,0,0,r)}static eq(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3?arguments[3]:void 0;null==r&&(r=999999999);let i=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0)),o=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));if(i.length!=o.length)return!1;if(!i.length)return!0;let a=De(i,o),s=new Me(i,a,0).goto(n),l=new Me(o,a,0).goto(n);for(;;){if(s.to!=l.to||!qe(s.active,l.active)||s.point&&(!l.point||!s.point.eq(l.point)))return!1;if(s.to>r)return!0;s.next(),l.next()}}static spans(e,t,n,r){let i=new Me(e,null,arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1).goto(t),o=t,a=i.openStart;for(;;){let e=Math.min(i.to,n);if(i.point){let n=i.activeForPoint(i.to),s=i.pointFromo&&(r.span(o,e,i.active,a),a=i.openEnd(e));if(i.to>n)return a+(i.point&&i.to>n?1:0);o=i.to,i.next()}}static of(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Ie;for(let r of e instanceof Ce?[e]:t?function(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(Ae);t=r}return e}(e):e)n.add(r.from,r.to,r.value);return n.finish()}}Re.empty=new Re([],[],null,-1),Re.empty.nextLayer=Re.empty;class Ie{finishChunk(e){this.chunks.push(new Pe(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,t,n){this.addInner(e,t,n)||(this.nextLayer||(this.nextLayer=new Ie)).add(e,t,n)}addInner(e,t,n){let r=e-this.lastTo||n.startSide-this.last.endSide;if(r<=0&&(e-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return!(r<0)&&(250==this.from.length&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(t-this.chunkStart),this.last=n,this.lastFrom=e,this.lastTo=t,this.value.push(n),n.point&&(this.maxPoint=Math.max(this.maxPoint,t-e)),!0)}addChunk(e,t){if((e-this.lastTo||t.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,t.maxPoint),this.chunks.push(t),this.chunkPos.push(e);let n=t.value.length-1;return this.last=t.value[n],this.lastFrom=t.from[n]+e,this.lastTo=t.to[n]+e,!0}finish(){return this.finishInner(Re.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),0==this.chunks.length)return e;let t=Re.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,t}}function De(e,t,n){let r=new Map;for(let o of e)for(let e=0;e3&&void 0!==arguments[3]?arguments[3]:0;this.layer=e,this.skip=t,this.minPoint=n,this.rank=r}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,t,!1),this}gotoInner(e,t,n){for(;this.chunkIndex=this.minPoint)break}}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=[];for(let i=0;i=n&&r.push(new ze(o,t,n,i));return 1==r.length?r[0]:new Ne(r)}get startSide(){return this.value?this.value.startSide:0}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;for(let n of this.heap)n.goto(e,t);for(let n=this.heap.length>>1;n>=0;n--)Le(this.heap,n);return this.next(),this}forward(e,t){for(let n of this.heap)n.forward(e,t);for(let n=this.heap.length>>1;n>=0;n--)Le(this.heap,n);(this.to-e||this.value.endSide-t)<0&&this.next()}next(){if(0==this.heap.length)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),Le(this.heap,0)}}}function Le(e,t){for(let n=e[t];;){let r=1+(t<<1);if(r>=e.length)break;let i=e[r];if(r+1=0&&(i=e[r+1],r++),n.compare(i)<0)break;e[r]=n,e[t]=i,t=r}}class Me{constructor(e,t,n){this.minPoint=n,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Ne.from(e,t,n)}goto(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1e9;return this.cursor.goto(e,t),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=t,this.openStart=-1,this.next(),this}forward(e,t){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-t)<0;)this.removeActive(this.minActive);this.cursor.forward(e,t)}removeActive(e){We(this.active,e),We(this.activeTo,e),We(this.activeRank,e),this.minActive=Ue(this.active,this.activeTo)}addActive(e){let t=0,{value:n,to:r,rank:i}=this.cursor;for(;t-1&&(this.activeTo[r]-this.cursor.from||this.active[r].endSide-this.cursor.startSide)<0){if(this.activeTo[r]>e){this.to=this.activeTo[r],this.endSide=this.active[r].endSide;break}this.removeActive(r),n&&We(n,r)}else{if(!this.cursor.value){this.to=this.endSide=1e9;break}if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}{let e=this.cursor.value;if(e.point){if(!(t&&this.cursor.to==this.to&&this.cursor.from=0&&n[t]=0&&!(this.activeRank[n]e||this.activeTo[n]==e&&this.active[n].endSide>=this.point.endSide)&&t.push(this.active[n]);return t.reverse()}openEnd(e){let t=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>e;n--)t++;return t}}function Qe(e,t,n,r,i,o){e.goto(t),n.goto(r);let a=r+i,s=r,l=r-t;for(;;){let t=e.to+l-n.to||e.endSide-n.endSide,r=t<0?e.to+l:n.to,i=Math.min(r,a);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&qe(e.activeForPoint(e.to),n.activeForPoint(n.to))||o.comparePoint(s,i,e.point,n.point):i>s&&!qe(e.active,n.active)&&o.compareRange(s,i,e.active,n.active),r>a)break;s=r,t<=0&&e.next(),t>=0&&n.next()}}function qe(e,t){if(e.length!=t.length)return!1;for(let n=0;n=t;r--)e[r+1]=e[r];e[t]=n}function Ue(e,t){let n=-1,r=1e9;for(let i=0;i2&&void 0!==arguments[2]?arguments[2]:e.length,r=0;for(let i=0;i=t)return i;if(i==e.length)break;o+=9==e.charCodeAt(i)?n-o%n:1,i=g(e,i)}return!0===r?-1:e.length}},83632:(e,t,n)=>{n.d(t,{$_:()=>O,VE:()=>S,pD:()=>x,vk:()=>_});var r=n(50389),i=n(94019),o=n(60994);const a="#e5c07b",s="#e06c75",l="#56b6c2",c="#ffffff",u="#abb2bf",d="#7d8799",h="#61afef",f="#98c379",m="#d19a66",p="#c678dd",g="#21252b",b="#2c313a",v="#282c34",y="#353a42",k="#3E4451",w="#528bff",O={chalky:a,coral:s,cyan:l,invalid:c,ivory:u,stone:d,malibu:h,sage:f,whiskey:m,violet:p,darkBackground:g,highlightBackground:b,background:v,tooltipBackground:y,selection:k,cursor:w},x=r.tk.theme({"&":{color:u,backgroundColor:v},".cm-content":{caretColor:w},".cm-cursor, .cm-dropCursor":{borderLeftColor:w},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:k},".cm-panels":{backgroundColor:g,color:u},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:v,color:d,border:"none"},".cm-activeLineGutter":{backgroundColor:b},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:y},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:y,borderBottomColor:y},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:b,color:u}}},{dark:!0}),S=i.Qf.define([{tag:o.pJ.keyword,color:p},{tag:[o.pJ.name,o.pJ.deleted,o.pJ.character,o.pJ.propertyName,o.pJ.macroName],color:s},{tag:[o.pJ.function(o.pJ.variableName),o.pJ.labelName],color:h},{tag:[o.pJ.color,o.pJ.constant(o.pJ.name),o.pJ.standard(o.pJ.name)],color:m},{tag:[o.pJ.definition(o.pJ.name),o.pJ.separator],color:u},{tag:[o.pJ.typeName,o.pJ.className,o.pJ.number,o.pJ.changed,o.pJ.annotation,o.pJ.modifier,o.pJ.self,o.pJ.namespace],color:a},{tag:[o.pJ.operator,o.pJ.operatorKeyword,o.pJ.url,o.pJ.escape,o.pJ.regexp,o.pJ.link,o.pJ.special(o.pJ.string)],color:l},{tag:[o.pJ.meta,o.pJ.comment],color:d},{tag:o.pJ.strong,fontWeight:"bold"},{tag:o.pJ.emphasis,fontStyle:"italic"},{tag:o.pJ.strikethrough,textDecoration:"line-through"},{tag:o.pJ.link,color:d,textDecoration:"underline"},{tag:o.pJ.heading,fontWeight:"bold",color:s},{tag:[o.pJ.atom,o.pJ.bool,o.pJ.special(o.pJ.variableName)],color:m},{tag:[o.pJ.processingInstruction,o.pJ.string,o.pJ.inserted],color:f},{tag:o.pJ.invalid,color:c}]),_=[x,(0,i.nF)(S)]},50389:(e,t,n)=>{n.d(t,{$1:()=>tr,$X:()=>Ki,$f:()=>Jn,AE:()=>Rr,CT:()=>Lr,CZ:()=>Ye,DF:()=>Hi,Dm:()=>fi,E2:()=>gi,E8:()=>pi,EY:()=>ur,Eu:()=>Bi,HM:()=>mr,HQ:()=>Vi,Nm:()=>Be,OO:()=>_e,S2:()=>Zr,SJ:()=>Si,Sd:()=>yi,TB:()=>We,Uw:()=>fr,W$:()=>Br,Y1:()=>Tr,ZO:()=>Mr,Zs:()=>Vr,bF:()=>di,dc:()=>or,gB:()=>hi,h0:()=>vi,hJ:()=>oi,jH:()=>Jr,kH:()=>ie,l9:()=>re,lc:()=>Ai,lg:()=>Ce,mH:()=>xi,p:()=>oe,p2:()=>Li,pk:()=>Ji,qr:()=>Sr,td:()=>tn,tk:()=>Fn,v5:()=>$i,v7:()=>_i});var r=n(45224),i=n(65694),o=n(99180);function a(e){let t;return t=11==e.nodeType?e.getSelection?e:e.ownerDocument:e,t.getSelection()}function s(e,t){return!!t&&(e==t||e.contains(1!=t.nodeType?t.parentNode:t))}function l(e,t){if(!t.anchorNode)return!1;try{return s(e,t.anchorNode)}catch(n){return!1}}function c(e){return 3==e.nodeType?k(e,0,e.nodeValue.length).getClientRects():1==e.nodeType?e.getClientRects():[]}function u(e,t,n,r){return!!n&&(h(e,t,n,r,-1)||h(e,t,n,r,1))}function d(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t}function h(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:f(e))){if("DIV"==e.nodeName)return!1;let n=e.parentNode;if(!n||1!=n.nodeType)return!1;t=d(e)+(i<0?0:1),e=n}else{if(1!=e.nodeType)return!1;if(1==(e=e.childNodes[t+(i<0?-1:0)]).nodeType&&"false"==e.contentEditable)return!1;t=i<0?f(e):0}}}function f(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function m(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function p(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}class g{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:t,focusNode:n}=e;this.set(t,Math.min(e.anchorOffset,t?f(t):0),n,Math.min(e.focusOffset,n?f(n):0))}set(e,t,n,r){this.anchorNode=e,this.anchorOffset=t,this.focusNode=n,this.focusOffset=r}}let b,v=null;function y(e){if(e.setActive)return e.setActive();if(v)return e.focus(v);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(null==v?{get preventScroll(){return v={preventScroll:!0},!0}}:void 0),!v){v=!1;for(let e=0;e2&&void 0!==arguments[2]?arguments[2]:t,r=b||(b=document.createRange());return r.setEnd(e,n),r.setStart(e,t),r}function w(e,t,n){let r={key:t,code:t,keyCode:n,which:n,cancelable:!0},i=new KeyboardEvent("keydown",r);i.synthetic=!0,e.dispatchEvent(i);let o=new KeyboardEvent("keyup",r);return o.synthetic=!0,e.dispatchEvent(o),i.defaultPrevented||o.defaultPrevented}function O(e){for(;e.attributes.length;)e.removeAttributeNode(e.attributes[0])}function x(e){return e.scrollTop>Math.max(1,e.scrollHeight-e.clientHeight-4)}class S{constructor(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.node=e,this.offset=t,this.precise=n}static before(e,t){return new S(e.parentNode,d(e),t)}static after(e,t){return new S(e.parentNode,d(e)+1,t)}}const _=[];class T{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let t=this.posAtStart;for(let n of this.children){if(n==e)return t;t+=n.length+n.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,t){if(2&this.flags){let n,r=this.dom,i=null;for(let o of this.children){if(7&o.flags){if(!o.dom&&(n=i?i.nextSibling:r.firstChild)){let e=T.get(n);(!e||!e.parent&&e.canReuseDOM(o))&&o.reuseDOM(n)}o.sync(e,t),o.flags&=-8}if(n=i?i.nextSibling:r.firstChild,t&&!t.written&&t.node==r&&n!=o.dom&&(t.written=!0),o.dom.parentNode==r)for(;n&&n!=o.dom;)n=E(n);else r.insertBefore(o.dom,n);i=o.dom}for(n=i?i.nextSibling:r.firstChild,n&&t&&t.node==r&&(t.written=!0);n;)n=E(n)}else if(1&this.flags)for(let n of this.children)7&n.flags&&(n.sync(e,t),n.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,t){let n;if(e==this.dom)n=this.dom.childNodes[t];else{let r=0==f(e)?0:0==t?-1:1;for(;;){let t=e.parentNode;if(t==this.dom)break;0==r&&t.firstChild!=t.lastChild&&(r=e==t.firstChild?-1:1),e=t}n=r<0?e:e.nextSibling}if(n==this.dom.firstChild)return 0;for(;n&&!T.get(n);)n=n.nextSibling;if(!n)return this.length;for(let r=0,i=0;;r++){let e=this.children[r];if(e.dom==n)return i;i+=e.length+e.breakAfter}}domBoundsAround(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=-1,i=-1,o=-1,a=-1;for(let s=0,l=n,c=n;st)return n.domBoundsAround(e,t,l);if(u>=e&&-1==r&&(r=s,i=l),l>t&&n.dom.parentNode==this.dom){o=s,a=c;break}c=u,l=u+n.breakAfter}return{from:i,to:a<0?n+this.length:a,startDOM:(r?this.children[r-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o=0?this.children[o].dom:null}}markDirty(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let t=this.parent;t;t=t.parent){if(e&&(t.flags|=2),1&t.flags)return;t.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,7&this.flags&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let t=e.parent;if(!t)return e;e=t}}replaceChildren(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:_;this.markDirty();for(let r=e;r0&&void 0!==arguments[0]?arguments[0]:this.length;return new $(this.children,e,this.children.length)}childPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.childCursor().findPos(e,t)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+("Text"==e?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,t,n,r,i,o){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!(8&(this.flags|e.flags))}getSide(){return 0}destroy(){this.parent=null}}function E(e){let t=e.nextSibling;return e.parentNode.removeChild(e),t}T.prototype.breakAfter=0;class ${constructor(e,t,n){this.children=e,this.pos=t,this.i=n,this.off=0}findPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;for(;;){if(e>this.pos||e==this.pos&&(t>0||0==this.i||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let n=this.children[--this.i];this.pos-=n.length+n.breakAfter}}}function C(e,t,n,r,i,o,a,s,l){let{children:c}=e,u=c.length?c[t]:null,d=o.length?o[o.length-1]:null,h=d?d.breakAfter:a;if(!(t==r&&u&&!a&&!h&&o.length<2&&u.merge(n,i,o.length?d:null,0==n,s,l))){if(r0&&(!a&&o.length&&u.merge(n,u.length,o[0],!1,s,0)?u.breakAfter=o.shift().breakAfter:(n2);var B={mac:W||/Mac/.test(P.platform),windows:/Win/.test(P.platform),linux:/Linux|X11/.test(P.platform),ie:N,ie_version:D?R.documentMode||6:z?+z[1]:I?+I[1]:0,gecko:L,gecko_version:L?+(/Firefox\/(\d+)/.exec(P.userAgent)||[0,0])[1]:0,chrome:!!M,chrome_version:M?+M[1]:0,ios:W,android:/Android\b/.test(P.userAgent),webkit:Q,safari:q,webkit_version:Q?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:null!=R.documentElement.style.tabSize?"tab-size":"-moz-tab-size"};class U extends T{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,t){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(t&&t.node==this.dom&&(t.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){3==e.nodeType&&this.createDOM(e)}merge(e,t,n){return!(8&this.flags||n&&(!(n instanceof U)||this.length-(t-e)+n.length>256||8&n.flags))&&(this.text=this.text.slice(0,e)+(n?n.text:"")+this.text.slice(t),this.markDirty(),!0)}split(e){let t=new U(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),t.flags|=8&this.flags,t}localPosFromDOM(e,t){return e==this.dom?t:t?this.text.length:0}domAtPos(e){return new S(this.dom,e)}domBoundsAround(e,t,n){return{from:n,to:n+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,t){return function(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,o=t,a=0;0==t&&n<0||t==r&&n>=0?B.chrome||B.gecko||(t?(i--,a=1):o=0)?0:s.length-1];B.safari&&!a&&0==l.width&&(l=Array.prototype.find.call(s,(e=>e.width))||l);return a?m(l,a<0):l||null}(this.dom,e,t)}}class F extends T{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;super(),this.mark=e,this.children=t,this.length=n;for(let r of t)r.setParent(this)}setAttrs(e){if(O(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let t in this.mark.attrs)e.setAttribute(t,this.mark.attrs[t]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!(8&(this.flags|e.flags))}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,t){this.dom?4&this.flags&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,t)}merge(e,t,n,r,i,o){return(!n||!(!(n instanceof F&&n.mark.eq(this.mark))||e&&i<=0||te&&t.push(n=e&&(r=i),n=o,i++}let o=this.length-e;return this.length=e,r>-1&&(this.children.length=r,this.markDirty()),new F(this.mark,t,o)}domAtPos(e){return G(this,e)}coordsAt(e,t){return Z(this,e,t)}}class j extends T{static create(e,t,n){return new j(e,t,n)}constructor(e,t,n){super(),this.widget=e,this.length=t,this.side=n,this.prevWidget=null}split(e){let t=j.create(this.widget,this.length-e,this.side);return this.length-=e,t}sync(e){this.dom&&this.widget.updateDOM(this.dom,e)||(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.dom.contentEditable="false")}getSide(){return this.side}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof j&&this.widget.compare(n.widget))||e>0&&i<=0||t0)?S.before(this.dom):S.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,t){let n=this.widget.coordsAt(this.dom,e,t);if(n)return n;let r=this.dom.getClientRects(),i=null;if(!r.length)return null;let o=this.side?this.side<0:e>0;for(let a=o?r.length-1:0;i=r[a],!(e>0?0==a:a==r.length-1||i.top0?S.before(this.dom):S.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return r.xv.empty}get isHidden(){return!0}}function G(e,t){let n=e.dom,{children:r}=e,i=0;for(let o=0;io&&t0;o--){let e=r[o-1];if(e.dom.parentNode==n)return e.domAtPos(e.length)}for(let o=i;o0&&t instanceof F&&i.length&&(r=i[i.length-1])instanceof F&&r.mark.eq(t.mark)?X(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function Z(e,t,n){let r=null,i=-1,o=null,a=-1;!function e(t,s){for(let l=0,c=0;l=s&&(u.children.length?e(u,s-c):(!o||o.isHidden&&n>0)&&(d>s||c==d&&u.getSide()>0)?(o=u,a=s-c):(c-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(-1==i.indexOf(o)||e[o]!==t[o]))return!1;return!0}function K(e,t,n){let r=!1;if(t)for(let i in t)n&&i in n||(r=!0,"style"==i?e.style.cssText="":e.removeAttribute(i));if(n)for(let i in n)t&&t[i]==n[i]||(r=!0,"style"==i?e.style.cssText=n[i]:e.setAttribute(i,n[i]));return r}function ee(e){let t=Object.create(null);for(let n=0;n0&&0==this.children[n-1].length;)this.children[--n].destroy();return this.children.length=n,this.markDirty(),this.length=e,t}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=void 0===this.prevAttrs?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){J(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,t){X(this,e,t)}addLineDeco(e){let t=e.spec.attributes,n=e.spec.class;t&&(this.attrs=H(t,this.attrs||{})),n&&(this.attrs=H({class:n},this.attrs||{}))}domAtPos(e){return G(this,e)}reuseDOM(e){"DIV"==e.nodeName&&(this.setDOM(e),this.flags|=6)}sync(e,t){var n;this.dom?4&this.flags&&(O(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),void 0!==this.prevAttrs&&(K(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,t);let r=this.dom.lastChild;for(;r&&T.get(r)instanceof F;)r=r.lastChild;if(!r||!this.length||"BR"!=r.nodeName&&0==(null===(n=T.get(r))||void 0===n?void 0:n.isEditable)&&(!B.ios||!this.children.some((e=>e instanceof U)))){let e=document.createElement("BR");e.cmIgnore=!0,this.dom.appendChild(e)}}measureTextSize(){if(0==this.children.length||this.length>20)return null;let e,t=0;for(let n of this.children){if(!(n instanceof U)||/[^ -~]/.test(n.text))return null;let r=c(n.dom);if(1!=r.length)return null;t+=r[0].width,e=r[0].height}return t?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}:null}coordsAt(e,t){let n=Z(this,e,t);if(!this.children.length&&n&&this.parent){let{heightOracle:e}=this.parent.view.viewState,t=n.bottom-n.top;if(Math.abs(t-e.lineHeight)<2&&e.textHeight=t){if(i instanceof te)return i;if(o>t)break}r=o+i.breakAfter}return null}}class ne extends T{constructor(e,t,n){super(),this.widget=e,this.length=t,this.deco=n,this.breakAfter=0,this.prevWidget=null}merge(e,t,n,r,i,o){return!(n&&(!(n instanceof ne&&this.widget.compare(n.widget))||e>0&&i<=0||t0)}}class re{eq(e){return!1}updateDOM(e,t){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,t,n){return null}get isHidden(){return!1}destroy(e){}}var ie=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(ie||(ie={}));class oe extends r.uU{constructor(e,t,n,r){super(),this.startSide=e,this.endSide=t,this.widget=n,this.spec=r}get heightRelevant(){return!1}static mark(e){return new ae(e)}static widget(e){let t=Math.max(-1e4,Math.min(1e4,e.side||0)),n=!!e.block;return t+=n&&!e.inlineOrder?t>0?3e8:-4e8:t>0?1e8:-1e8,new le(e,t,t,n,e.widget||null,!1)}static replace(e){let t,n,r=!!e.block;if(e.isBlockGap)t=-5e8,n=4e8;else{let{start:i,end:o}=ce(e,r);t=(i?r?-3e8:-1:5e8)-1,n=1+(o?r?2e8:1:-6e8)}return new le(e,t,n,r,e.widget||null,!0)}static line(e){return new se(e)}static set(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.Xs.of(e,t)}hasHeight(){return!!this.widget&&this.widget.estimatedHeight>-1}}oe.none=r.Xs.empty;class ae extends oe{constructor(e){let{start:t,end:n}=ce(e);super(t?-1:5e8,n?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var t,n;return this==e||e instanceof ae&&this.tagName==e.tagName&&(this.class||(null===(t=this.attrs)||void 0===t?void 0:t.class))==(e.class||(null===(n=e.attrs)||void 0===n?void 0:n.class))&&J(this.attrs,e.attrs,"class")}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(e>=t)throw new RangeError("Mark decorations may not be empty");return super.range(e,t)}}ae.prototype.point=!1;class se extends oe{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof se&&this.spec.class==e.spec.class&&J(this.spec.attributes,e.spec.attributes)}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(t!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,t)}}se.prototype.mapMode=r.gc.TrackBefore,se.prototype.point=!0;class le extends oe{constructor(e,t,n,i,o,a){super(t,n,o,e),this.block=i,this.isReplace=a,this.mapMode=i?t<=0?r.gc.TrackBefore:r.gc.TrackAfter:r.gc.TrackDel}get type(){return this.startSide!=this.endSide?ie.WidgetRange:this.startSide<=0?ie.WidgetBefore:ie.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof le&&(t=this.widget,n=e.widget,t==n||!!(t&&n&&t.compare(n)))&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide;var t,n}range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;if(this.isReplace&&(e>t||e==t&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&t!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,t)}}function ce(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{inclusiveStart:n,inclusiveEnd:r}=e;return null==n&&(n=e.inclusive),null==r&&(r=e.inclusive),{start:null!==n&&void 0!==n?n:t,end:null!==r&&void 0!==r?r:t}}function ue(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=n.length-1;i>=0&&n[i]+r>=e?n[i]=Math.max(n[i],t):n.push(e,t)}le.prototype.point=!0;class de{constructor(e,t,n,r){this.doc=e,this.pos=t,this.end=n,this.disallowBlockEffectsFor=r,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=t}posCovered(){if(0==this.content.length)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof ne&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new te),this.atCursorPos=!0),this.curLine}flushBuffer(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.bufferMarks;this.pendingBuffer&&(this.curLine.append(he(new V(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,this.posCovered()||e&&this.content.length&&this.content[this.content.length-1]instanceof ne||this.getLine()}buildText(e,t,n){for(;e>0;){if(this.textOff==this.text.length){let{value:t,lineBreak:n,done:r}=this.cursor.next(this.skip);if(this.skip=0,r)throw new Error("Ran out of text content when drawing inline views");if(n){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}this.text=t,this.textOff=0}let r=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(t.slice(t.length-n)),this.getLine().append(he(new U(this.text.slice(this.textOff,this.textOff+r)),t),n),this.atCursorPos=!0,this.textOff+=r,e-=r,n=0}}span(e,t,n,r){this.buildText(t-e,n,r),this.pos=t,this.openStart<0&&(this.openStart=r)}point(e,t,n,r,i,o){if(this.disallowBlockEffectsFor[o]&&n instanceof le){if(n.block)throw new RangeError("Block decorations may not be specified via plugins");if(t>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let a=t-e;if(n instanceof le)if(n.block)n.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new ne(n.widget||new fe("div"),a,n));else{let o=j.create(n.widget||new fe("span"),a,a?0:n.startSide),s=this.atCursorPos&&!o.isEditable&&i<=r.length&&(e0),l=!o.isEditable&&(er.length||n.startSide<=0),c=this.getLine();2!=this.pendingBuffer||s||o.isEditable||(this.pendingBuffer=0),this.flushBuffer(r),s&&(c.append(he(new V(1),r),i),i=r.length+Math.max(0,i-r.length)),c.append(he(o,r),i),this.atCursorPos=l,this.pendingBuffer=l?er.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=r.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(n);a&&(this.textOff+a<=this.text.length?this.textOff+=a:(this.skip+=a-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=t),this.openStart<0&&(this.openStart=i)}static build(e,t,n,i,o){let a=new de(e,t,n,o);return a.openEnd=r.Xs.spans(i,t,n,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function he(e,t){for(let n of t)e=new F(n,[e],e.length);return e}class fe extends re{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}const me=r.r$.define(),pe=r.r$.define(),ge=r.r$.define(),be=r.r$.define(),ve=r.r$.define(),ye=r.r$.define(),ke=r.r$.define(),we=r.r$.define({combine:e=>e.some((e=>e))}),Oe=r.r$.define({combine:e=>e.some((e=>e))});class xe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"nearest",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nearest",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:5,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:5,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.range=e,this.y=t,this.x=n,this.yMargin=r,this.xMargin=i,this.isSnapshot=o}map(e){return e.empty?this:new xe(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new xe(r.jT.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const Se=r.Py.define({map:(e,t)=>e.map(t)});function _e(e,t,n){let r=e.facet(be);r.length?r[0](t):window.onerror?window.onerror(String(t),n,void 0,void 0,t):n?console.error(n+":",t):console.error(t)}const Te=r.r$.define({combine:e=>!e.length||e[0]});let Ee=0;const $e=r.r$.define();class Ce{constructor(e,t,n,r,i){this.id=e,this.create=t,this.domEventHandlers=n,this.domEventObservers=r,this.extension=i(this)}static define(e,t){const{eventHandlers:n,eventObservers:r,provide:i,decorations:o}=t||{};return new Ce(Ee++,e,n,r,(e=>{let t=[$e.of(e)];return o&&t.push(Ie.of((t=>{let n=t.plugin(e);return n?o(n):oe.none}))),i&&t.push(i(e)),t}))}static fromClass(e,t){return Ce.define((t=>new e(t)),t)}}class Ae{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let e=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(e)}catch(t){if(_e(e.state,t,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch(n){}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(t){_e(e.state,t,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var t;if(null===(t=this.value)||void 0===t?void 0:t.destroy)try{this.value.destroy()}catch(n){_e(e.state,n,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Pe=r.r$.define(),Re=r.r$.define(),Ie=r.r$.define(),De=r.r$.define(),ze=r.r$.define();function Ne(e,t,n){let i=e.state.facet(ze);if(!i.length)return i;let o=i.map((t=>t instanceof Function?t(e):t)),a=[];return r.Xs.spans(o,t,n,{point(){},span(e,t,n,r){let i=a;for(let o=n.length-1;o>=0;o--,r--){let a,s=n[o].spec.bidiIsolate;if(null!=s)if(r>0&&i.length&&(a=i[i.length-1]).to==e&&a.direction==s)a.to=t,i=a.inner;else{let n={from:e,to:t,direction:s,inner:[]};i.push(n),i=n.inner}}}}),a}const Le=r.r$.define();function Me(e){let t=0,n=0,r=0,i=0;for(let o of e.state.facet(Le)){let a=o(e);a&&(null!=a.left&&(t=Math.max(t,a.left)),null!=a.right&&(n=Math.max(n,a.right)),null!=a.top&&(r=Math.max(r,a.top)),null!=a.bottom&&(i=Math.max(i,a.bottom)))}return{left:t,right:n,top:r,bottom:i}}const Qe=r.r$.define();class qe{constructor(e,t,n,r){this.fromA=e,this.toA=t,this.fromB=n,this.toB=r}join(e){return new qe(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let t=e.length,n=this;for(;t>0;t--){let r=e[t-1];if(!(r.fromA>n.toA)){if(r.toAc)break;i+=2}if(!s)return n;new qe(s.fromA,s.toA,s.fromB,s.toB).addToSet(n),o=s.toA,a=s.toB}}}class We{constructor(e,t,n){this.view=e,this.state=t,this.transactions=n,this.flags=0,this.startState=e.state,this.changes=r.as.empty(this.startState.doc.length);for(let r of n)this.changes=this.changes.compose(r.changes);let i=[];this.changes.iterChangedRanges(((e,t,n,r)=>i.push(new qe(e,t,n,r)))),this.changedRanges=i}static create(e,t,n){return new We(e,t,n)}get viewportChanged(){return(4&this.flags)>0}get heightChanged(){return(2&this.flags)>0}get geometryChanged(){return this.docChanged||(10&this.flags)>0}get focusChanged(){return(1&this.flags)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((e=>e.selection))}get empty(){return 0==this.flags&&0==this.transactions.length}}var Be=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Be||(Be={}));const Ue=Be.LTR,Fe=Be.RTL;function je(e){let t=[];for(let n=0;n=t){if(a.level==n)return o;(i<0||(0!=r?r<0?a.fromt:e[i].level>a.level))&&(i=o)}}if(i<0)throw new RangeError("Index out of range");return i}}function Je(e,t){if(e.length!=t.length)return!1;for(let n=0;nl&&a.push(new Ye(l,m.from,h)),tt(e,m.direction==Ue!=!(h%2)?r+1:r,i,m.inner,m.from,m.to,a),l=m.to}f=m.to}else{if(f==n||(t?Ke[f]!=s:Ke[f]==s))break;f++}d?et(e,l,f,r+1,i,d,a):lt;){let n=!0,u=!1;if(!c||l>o[c-1].to){let e=Ke[l-1];e!=s&&(n=!1,u=16==e)}let d=n||1!=s?null:[],h=n?r:r+1,f=l;e:for(;;)if(c&&f==o[c-1].to){if(u)break e;let m=o[--c];if(!n)for(let e=m.from,n=c;;){if(e==t)break e;if(!n||o[n-1].to!=e){if(Ke[e-1]==s)break e;break}e=o[--n].from}if(d)d.push(m);else{m.to=0;e-=3)if(Ze[e+1]==-n){let t=Ze[e+2],n=2&t?i:4&t?1&t?o:i:0;n&&(Ke[a]=Ke[Ze[e]]=n),s=e;break}}else{if(189==Ze.length)break;Ze[s++]=a,Ze[s++]=t,Ze[s++]=l}else if(2==(r=Ke[a])||1==r){let e=r==i;l=e?0:1;for(let t=s-3;t>=0;t-=3){let n=Ze[t+2];if(2&n)break;if(e)Ze[t+2]|=2;else{if(4&n)break;Ze[t+2]|=4}}}}}(e,i,o,r,s),function(e,t,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:e,s=il;)t==o&&(t=n[--r].from,o=r?n[r-1].to:e),Ke[--t]=u;l=a}else o=a,l++}}}(i,o,r,s),et(e,i,o,t,n,r,a)}function nt(e,t,n){if(!e)return[new Ye(0,0,t==Fe?1:0)];if(t==Ue&&!n.length&&!He.test(e))return rt(e.length);if(n.length)for(;e.length>Ke.length;)Ke[Ke.length]=256;let r=[],i=t==Ue?0:1;return tt(e,i,i,n,0,e.length,r),r}function rt(e){return[new Ye(0,e,0)]}let it="";function ot(e,t,n,i,o){var a;let s=i.head-e.from,l=-1;if(0==s){if(!o||!e.length)return null;t[0].level!=n&&(s=t[0].side(!1,n),l=0)}else if(s==e.length){if(o)return null;let e=t[t.length-1];e.level!=n&&(s=e.side(!0,n),l=t.length-1)}l<0&&(l=Ye.find(t,s,null!==(a=i.bidiLevel)&&void 0!==a?a:-1,i.assoc));let c=t[l];s==c.side(o,n)&&(c=t[l+=o?1:-1],s=c.side(!o,n));let u=o==(c.dir==n),d=(0,r.cp)(e.text,s,u);if(it=e.text.slice(Math.min(s,d),Math.max(s,d)),d!=c.side(o,n))return r.jT.cursor(d+e.from,u?-1:1,c.level);let h=l==(o?t.length-1:0)?null:t[l+(o?1:-1)];return h||c.level==n?h&&h.level0&&n.length&&(n.every((e=>{let{fromA:t,toA:n}=e;return nthis.minWidthTo}))?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0);let i=-1;this.view.inputState.composing>=0&&((null===(t=this.domChanged)||void 0===t?void 0:t.newSel)?i=this.domChanged.newSel.head:function(e,t){let n=!1;t&&e.iterChangedRanges(((e,r)=>{et.from&&(n=!0)}));return n}(e.changes,this.hasComposition)||e.selectionSet||(i=e.state.selection.main.head));let o=i>-1?function(e,t,n){let r=lt(e,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s))return null;if(e.state.doc.sliceString(r.from,r.to)!=s)return null;let l=t.invertedDesc,c=new qe(l.mapPos(o),l.mapPos(a),o,a),u=[];for(let d=i.parentNode;;d=d.parentNode){let t=T.get(d);if(t instanceof F)u.push({node:d,deco:t.mark});else{if(t instanceof te||"DIV"==d.nodeName&&d.parentNode==e.contentDOM)return{range:c,text:i,marks:u,line:d};if(d==e.contentDOM)return null;u.push({node:d,deco:new ae({inclusive:!0,attributes:ee(d),tagName:d.tagName.toLowerCase()})})}}}(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:t,to:r}=this.hasComposition;n=new qe(t,r,e.changes.mapPos(t,-1),e.changes.mapPos(r,1)).addToSet(n.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(B.ie||B.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=function(e,t,n){let i=new ut;return r.Xs.compare(e,t,n,i),i.changes}(this.decorations,this.updateDeco(),e.changes);return n=qe.extendWithRanges(n,a),!!(7&this.flags||0!=n.length)&&(this.updateInner(n,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,t,n){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,t,n);let{observer:r}=this.view;r.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let e=B.chrome||B.ios?{node:r.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,e),this.flags&=-8,e&&(e.written||r.selectionRange.focusNode!=e.node)&&(this.forceSelection=!0),this.dom.style.height=""})),this.markedForComposition.forEach((e=>e.flags&=-9));let i=[];if(this.view.viewport.from||this.view.viewport.to=0?r[o]:null;if(!e)break;let t,a,s,l,{fromA:c,toA:u,fromB:d,toB:h}=e;if(n&&n.range.fromBd){let e=de.build(this.view.state.doc,d,n.range.fromB,this.decorations,this.dynamicDecorationMap),r=de.build(this.view.state.doc,n.range.toB,h,this.decorations,this.dynamicDecorationMap);a=e.breakAtStart,s=e.openStart,l=r.openEnd;let i=this.compositionView(n);r.breakAtStart?i.breakAfter=1:r.content.length&&i.merge(i.length,i.length,r.content[0],!1,r.openStart,0)&&(i.breakAfter=r.content[0].breakAfter,r.content.shift()),e.content.length&&i.merge(0,0,e.content[e.content.length-1],!0,0,e.openEnd)&&e.content.pop(),t=e.content.concat(i).concat(r.content)}else({content:t,breakAtStart:a,openStart:s,openEnd:l}=de.build(this.view.state.doc,d,h,this.decorations,this.dynamicDecorationMap));let{i:f,off:m}=i.findPos(u,1),{i:p,off:g}=i.findPos(c,-1);C(this,p,g,f,m,t,a,s,l)}n&&this.fixCompositionDOM(n)}compositionView(e){let t=new U(e.text.nodeValue);t.flags|=8;for(let{deco:r}of e.marks)t=new F(r,[t],t.length);let n=new te;return n.append(t,0),n}fixCompositionDOM(e){let t=(e,t)=>{t.flags|=8|(t.children.some((e=>7&e.flags))?1:0),this.markedForComposition.add(t);let n=T.get(e);n&&n!=t&&(n.dom=null),t.setDOM(e)},n=this.childPos(e.range.fromB,1),r=this.children[n.i];t(e.line,r);for(let i=e.marks.length-1;i>=-1;i--)n=r.childPos(n.off,1),r=r.children[n.i],t(i>=0?e.marks[i].node:e.text,r)}updateSelection(){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];!(arguments.length>0&&void 0!==arguments[0]&&arguments[0])&&this.view.observer.selectionRange.focusNode||this.view.observer.readSelectionRange();let t=this.view.root.activeElement,n=t==this.dom,r=!n&&l(this.dom,this.view.observer.selectionRange)&&!(t&&this.dom.contains(t));if(!(n||e||r))return;let i=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,s=this.moveToLine(this.domAtPos(o.anchor)),c=o.empty?s:this.moveToLine(this.domAtPos(o.head));if(B.gecko&&o.empty&&!this.hasComposition&&(1==(d=s).node.nodeType&&d.node.firstChild&&(0==d.offset||"false"==d.node.childNodes[d.offset-1].contentEditable)&&(d.offset==d.node.childNodes.length||"false"==d.node.childNodes[d.offset].contentEditable))){let e=document.createTextNode("");this.view.observer.ignore((()=>s.node.insertBefore(e,s.node.childNodes[s.offset]||null))),s=c=new S(e,0),i=!0}var d;let h=this.view.observer.selectionRange;!i&&h.focusNode&&u(s.node,s.offset,h.anchorNode,h.anchorOffset)&&u(c.node,c.offset,h.focusNode,h.focusOffset)||(this.view.observer.ignore((()=>{B.android&&B.chrome&&this.dom.contains(h.focusNode)&&function(e,t){for(let n=e;n&&n!=t;n=n.assignedSlot||n.parentNode)if(1==n.nodeType&&"false"==n.contentEditable)return!0;return!1}(h.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let e=a(this.view.root);if(e)if(o.empty){if(B.gecko){let e=(n=s.node,i=s.offset,1!=n.nodeType?0:(i&&"false"==n.childNodes[i-1].contentEditable?1:0)|(io.head&&([s,c]=[c,s]),t.setEnd(c.node,c.offset),t.setStart(s.node,s.offset),e.removeAllRanges(),e.addRange(t)}else;var n,i;r&&this.view.root.activeElement==this.dom&&(this.dom.blur(),t&&t.focus())})),this.view.observer.setSelectionRange(s,c)),this.impreciseAnchor=s.precise?null:new S(h.anchorNode,h.anchorOffset),this.impreciseHead=c.precise?null:new S(h.focusNode,h.focusOffset)}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,t=e.state.selection.main,n=a(e.root),{anchorNode:r,anchorOffset:i}=e.observer.selectionRange;if(!n||!t.empty||!t.assoc||!n.modify)return;let o=te.find(this,t.head);if(!o)return;let s=o.posAtStart;if(t.head==s||t.head==s+o.length)return;let l=this.coordsAt(t.head,-1),c=this.coordsAt(t.head,1);if(!l||!c||l.bottom>c.top)return;let u=this.domAtPos(t.head+t.assoc);n.collapse(u.node,u.offset),n.modify("move",t.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let d=e.observer.selectionRange;e.docView.posFromDOM(d.anchorNode,d.anchorOffset)!=t.from&&n.collapse(r,i)}moveToLine(e){let t,n=this.dom;if(e.node!=n)return e;for(let r=e.offset;!t&&r=0;r--){let e=T.get(n.childNodes[r]);e instanceof te&&(t=e.domAtPos(e.length))}return t?new S(t.node,t.offset,!0):e}nearest(e){for(let t=e;t;){let e=T.get(t);if(e&&e.rootView==this)return e;t=t.parentNode}return null}posFromDOM(e,t){let n=this.nearest(e);if(!n)throw new RangeError("Trying to find position for a DOM position outside of the document");return n.localPosFromDOM(e,t)+n.posAtStart}domAtPos(e){let{i:t,off:n}=this.childCursor().findPos(e,-1);for(;t=0;o--){let a=this.children[o],s=i-a.breakAfter,l=s-a.length;if(se||a.covers(1))&&(!n||a instanceof te&&!(n instanceof te&&t>=0))&&(n=a,r=l),i=l}return n?n.coordsAt(e-r,t):null}coordsForChar(e){let{i:t,off:n}=this.childPos(e,1),i=this.children[t];if(!(i instanceof te))return null;for(;i.children.length;){let{i:e,off:t}=i.childPos(n,1);for(;;e++){if(e==i.children.length)return null;if((i=i.children[e]).length)break}n=t}if(!(i instanceof U))return null;let o=(0,r.cp)(i.text,n);if(o==n)return null;let a=k(i.dom,n,o).getClientRects();for(let r=0;rMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,a=-1,s=this.view.textDirection==Be.LTR;for(let l=0,u=0;ur)break;if(l>=n){let n=e.dom.getBoundingClientRect();if(t.push(n.height),o){let t=e.dom.lastChild,r=t?c(t):[];if(r.length){let e=r[r.length-1],t=s?e.right-n.left:n.right-e.left;t>a&&(a=t,this.minWidth=i,this.minWidthFrom=l,this.minWidthTo=d)}}}l=d+e.breakAfter}return t}textDirectionAt(e){let{i:t}=this.childPos(e,1);return"rtl"==getComputedStyle(this.children[t].dom).direction?Be.RTL:Be.LTR}measureTextSize(){for(let i of this.children)if(i instanceof te){let e=i.measureTextSize();if(e)return e}let e,t,n,r=document.createElement("div");return r.className="cm-line",r.style.width="99999px",r.style.position="absolute",r.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore((()=>{this.dom.appendChild(r);let i=c(r.firstChild)[0];e=r.getBoundingClientRect().height,t=i?i.width/27:7,n=i?i.height:e,r.remove()})),{lineHeight:e,charWidth:t,textHeight:n}}childCursor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.length,t=this.children.length;return t&&(e-=this.children[--t].length),new $(this.children,e,t)}computeBlockGapDeco(){let e=[],t=this.view.viewState;for(let n=0,r=0;;r++){let i=r==t.viewports.length?null:t.viewports[r],o=i?i.from-1:this.length;if(o>n){let r=(t.lineBlockAt(o).bottom-t.lineBlockAt(n).top)/this.view.scaleY;e.push(oe.replace({widget:new st(r),block:!0,inclusive:!0,isBlockGap:!0}).range(n,o))}if(!i)break;n=i.to+1}return oe.set(e)}updateDeco(){let e=this.view.state.facet(Ie).map(((e,t)=>(this.dynamicDecorationMap[t]="function"==typeof e)?e(this.view):e));for(let t=e.length;tn.anchor?-1:1);if(!r)return;!n.empty&&(t=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,t.left),top:Math.min(r.top,t.top),right:Math.max(r.right,t.right),bottom:Math.max(r.bottom,t.bottom)});let i=Me(this.view),o={left:r.left-i.left,top:r.top-i.top,right:r.right+i.right,bottom:r.bottom+i.bottom},{offsetWidth:a,offsetHeight:s}=this.view.scrollDOM;!function(e,t,n,r,i,o,a,s){let l=e.ownerDocument,c=l.defaultView||window;for(let u=e,d=!1;u&&!d;)if(1==u.nodeType){let e,h=u==l.body,f=1,m=1;if(h)e=p(c);else{if(/^(fixed|sticky)$/.test(getComputedStyle(u).position)&&(d=!0),u.scrollHeight<=u.clientHeight&&u.scrollWidth<=u.clientWidth){u=u.assignedSlot||u.parentNode;continue}let t=u.getBoundingClientRect();f=t.width/u.offsetWidth,m=t.height/u.offsetHeight,e={left:t.left,right:t.left+u.clientWidth*f,top:t.top,bottom:t.top+u.clientHeight*m}}let g=0,b=0;if("nearest"==i)t.top0&&t.bottom>e.bottom+b&&(b=t.bottom-e.bottom+b+a)):t.bottom>e.bottom&&(b=t.bottom-e.bottom+a,n<0&&t.top-b0&&t.right>e.right+g&&(g=t.right-e.right+g+o)):t.right>e.right&&(g=t.right-e.right+o,n<0&&t.left0))break;r=r.childNodes[i-1],i=f(r)}if(n>=0)for(let r=e,i=t;;){if(3==r.nodeType)return{node:r,offset:i};if(!(1==r.nodeType&&i=0))break;r=r.childNodes[i],i=0}return null}let ut=class{constructor(){this.changes=[]}compareRange(e,t){ue(e,t,this.changes)}comparePoint(e,t){ue(e,t,this.changes)}};function dt(e,t){return t.left>e?t.left-e:Math.max(0,e-t.right)}function ht(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function ft(e,t){return e.topt.top+1}function mt(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function gt(e,t,n){let r,i,o,a,s,l,u,d,h=!1;for(let m=e.firstChild;m;m=m.nextSibling){let e=c(m);for(let c=0;cg||a==g&&o>p){r=m,i=f,o=p,a=g;let s=g?n0?c0)}0==p?n>f.bottom&&(!u||u.bottomf.top)&&(l=m,d=f):u&&ft(u,f)?u=pt(u,f.bottom):d&&ft(d,f)&&(d=mt(d,f.top))}}if(u&&u.bottom>=n?(r=s,i=u):d&&d.top<=n&&(r=l,i=d),!r)return{node:e,offset:0};let f=Math.max(i.left,Math.min(i.right,t));return 3==r.nodeType?bt(r,f,n):h&&"false"!=r.contentEditable?gt(r,f,n):{node:e,offset:Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0)}}function bt(e,t,n){let r=e.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;sn?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&u=(c.left+c.right)/2,r=n;if(B.chrome||B.gecko){k(e,s).getBoundingClientRect().left==c.right&&(r=!n)}if(u<=0)return{node:e,offset:s+(r?1:0)};i=s+(r?1:0),o=u}}}return{node:e,offset:i>-1?i:a>0?e.nodeValue.length:0}}function vt(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;var i,o;let a,s=e.contentDOM.getBoundingClientRect(),l=s.top+e.viewState.paddingTop,{docHeight:c}=e.viewState,{x:u,y:d}=t,h=d-l;if(h<0)return 0;if(h>c)return e.state.doc.length;for(let k=e.viewState.heightOracle.textHeight/2,w=!1;a=e.elementAtHeight(h),a.type!=ie.Text;)for(;h=r>0?a.bottom+k:a.top-k,!(h>=0&&h<=c);){if(w)return n?null:0;w=!0,r=-r}d=l+h;let f=a.from;if(fe.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:yt(e,s,a,u,d);let m=e.dom.ownerDocument,p=e.root.elementFromPoint?e.root:m,g=p.elementFromPoint(u,d);g&&!e.contentDOM.contains(g)&&(g=null),g||(u=Math.max(s.left+1,Math.min(s.right-1,u)),g=p.elementFromPoint(u,d),g&&!e.contentDOM.contains(g)&&(g=null));let b,v=-1;if(g&&0!=(null===(i=e.docView.nearest(g))||void 0===i?void 0:i.isEditable))if(m.caretPositionFromPoint){let e=m.caretPositionFromPoint(u,d);e&&({offsetNode:b,offset:v}=e)}else if(m.caretRangeFromPoint){let t=m.caretRangeFromPoint(u,d);t&&(({startContainer:b,startOffset:v}=t),(!e.contentDOM.contains(b)||B.safari&&function(e,t,n){let r;if(3!=e.nodeType||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(1!=i.nodeType||"BR"!=i.nodeName)return!1;return k(e,r-1,r).getBoundingClientRect().left>n}(b,v,u)||B.chrome&&function(e,t,n){if(0!=t)return!1;for(let i=e;;){let e=i.parentNode;if(!e||1!=e.nodeType||e.firstChild!=i)return!1;if(e.classList.contains("cm-line"))break;i=e}let r=1==e.nodeType?e.getBoundingClientRect():k(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}(b,v,u))&&(b=void 0))}if(!b||!e.docView.dom.contains(b)){let t=te.find(e.docView,f);if(!t)return h>a.top+a.height/2?a.to:a.from;({node:b,offset:v}=gt(t.dom,u,d))}let y=e.docView.nearest(b);if(!y)return null;if(y.isWidget&&1==(null===(o=y.dom)||void 0===o?void 0:o.nodeType)){let e=y.dom.getBoundingClientRect();return t.y1.5*e.defaultLineHeight){let t=e.viewState.heightOracle.textHeight;a+=Math.floor((o-n.top-.5*(e.defaultLineHeight-t))/t)*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+(0,r.Gz)(s,a,e.state.tabSize)}function kt(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type))for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==ie.Text))return r;return n}function wt(e,t,n,i){let o=e.state.doc.lineAt(t.head),a=e.bidiSpans(o),s=e.textDirectionAt(o.from);for(let l=t,c=null;;){let t=ot(o,a,s,l,n),u=it;if(!t){if(o.number==(n?e.state.doc.lines:1))return l;u="\n",o=e.state.doc.line(o.number+(n?1:-1)),a=e.bidiSpans(o),t=r.jT.cursor(n?o.from:o.to)}if(c){if(!c(u))return l}else{if(!i)return t;c=i(u)}l=t}}function Ot(e,t,n){for(;;){let r=0;for(let i of e)i.between(t-1,t+1,((e,i,o)=>{if(t>e&&tt(e))),n.from,t.head>n.from?-1:1);return i==n.from?n:r.jT.cursor(i,inull)),B.gecko&&function(e){Yt.has(e)||(Yt.add(e),e.addEventListener("copy",(()=>{})),e.addEventListener("cut",(()=>{})))}(e.contentDOM.ownerDocument)}handleEvent(e){(function(e,t){if(!t.bubbles)return!0;if(t.defaultPrevented)return!1;for(let n,r=t.target;r!=e.contentDOM;r=r.parentNode)if(!r||11==r.nodeType||(n=T.get(r))&&n.ignoreEvent(t))return!1;return!0})(this.view,e)&&!this.ignoreDuringComposition(e)&&("keydown"==e.type&&this.keydown(e)||this.runHandlers(e.type,e))}runHandlers(e,t){let n=this.handlers[e];if(n){for(let e of n.observers)e(this.view,t);for(let e of n.handlers){if(t.defaultPrevented)break;if(e(this.view,t)){t.preventDefault();break}}}}ensureHandlers(e){let t=Tt(e),n=this.handlers,r=this.view.contentDOM;for(let i in t)if("scroll"!=i){let e=!t[i].handlers.length,o=n[i];o&&e!=!o.handlers.length&&(r.removeEventListener(i,this.handleEvent),o=null),o||r.addEventListener(i,this.handleEvent,{passive:e})}for(let i in n)"scroll"==i||t[i]||r.removeEventListener(i,this.handleEvent);this.handlers=t}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),9==e.keyCode&&Date.now()t.keyCode==e.keyCode)))&&!e.ctrlKey||$t.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(229!=e.keyCode&&this.view.observer.forceFlush(),!1):(this.pendingIOSKey=t||e,setTimeout((()=>this.flushIOSKey()),250),!0)}flushIOSKey(){let e=this.pendingIOSKey;return!!e&&(this.pendingIOSKey=void 0,w(this.view.contentDOM,e.key,e.keyCode))}ignoreDuringComposition(e){return!!/^key/.test(e.type)&&(this.composing>0||!!(B.safari&&!B.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100)&&(this.compositionPendingKey=!1,!0))}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function _t(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){_e(n.state,i)}}}function Tt(e){let t=Object.create(null);function n(e){return t[e]||(t[e]={observers:[],handlers:[]})}for(let r of e){let e=r.spec;if(e&&e.domEventHandlers)for(let t in e.domEventHandlers){let i=e.domEventHandlers[t];i&&n(t).handlers.push(_t(r.value,i))}if(e&&e.domEventObservers)for(let t in e.domEventObservers){let i=e.domEventObservers[t];i&&n(t).observers.push(_t(r.value,i))}}for(let r in Rt)n(r).handlers.push(Rt[r]);for(let r in It)n(r).observers.push(It[r]);return t}const Et=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],$t="dthko",Ct=[16,17,18,20,91,92,224,225];function At(e){return.7*Math.max(0,e)+8}class Pt{constructor(e,t,n,i){this.view=e,this.startEvent=t,this.style=n,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=t,this.scrollParent=function(e){let t=e.ownerDocument;for(let n=e.parentNode;n&&n!=t.body;)if(1==n.nodeType){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else{if(11!=n.nodeType)break;n=n.host}return null}(e.contentDOM),this.atoms=e.state.facet(De).map((t=>t(e)));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=t.shiftKey,this.multiple=e.state.facet(r.yy.allowMultipleSelections)&&function(e,t){let n=e.state.facet(me);return n.length?n[0](t):B.mac?t.metaKey:t.ctrlKey}(e,t),this.dragging=!(!function(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=a(e.root);if(!r||0==r.rangeCount)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o=t.clientX&&e.top<=t.clientY&&e.bottom>=t.clientY)return!0}return!1}(e,t)||1!=jt(t))&&null}start(e){!1===this.dragging&&this.select(e)}move(e){var t,n,r;if(0==e.buttons)return this.destroy();if(this.dragging||null==this.dragging&&(n=this.startEvent,r=e,Math.max(Math.abs(n.clientX-r.clientX),Math.abs(n.clientY-r.clientY))<10))return;this.select(this.lastEvent=e);let i=0,o=0,a=(null===(t=this.scrollParent)||void 0===t?void 0:t.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=Me(this.view);e.clientX-s.left<=a.left+6?i=-At(a.left-e.clientX):e.clientX+s.right>=a.right-6&&(i=At(e.clientX-a.right)),e.clientY-s.top<=a.top+6?o=-At(a.top-e.clientY):e.clientY+s.bottom>=a.bottom-6&&(o=At(e.clientY-a.bottom)),this.setScrollSpeed(i,o)}up(e){null==this.dragging&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,t){this.scrollSpeed={x:e,y:t},e||t?this.scrolling<0&&(this.scrolling=setInterval((()=>this.scroll()),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),!1===this.dragging&&this.select(this.lastEvent)}skipAtoms(e){let t=null;for(let n=0;nthis.select(this.lastEvent)),20)}}const Rt=Object.create(null),It=Object.create(null),Dt=B.ie&&B.ie_version<15||B.ios&&B.webkit_version<604;function zt(e,t){let n,{state:i}=e,o=1,a=i.toText(t),s=a.lines==i.selection.ranges.length;if(null!=Gt&&i.selection.ranges.every((e=>e.empty))&&Gt==a.toString()){let e=-1;n=i.changeByRange((n=>{let l=i.doc.lineAt(n.from);if(l.from==e)return{range:n};e=l.from;let c=i.toText((s?a.line(o++).text:t)+i.lineBreak);return{changes:{from:l.from,insert:c},range:r.jT.cursor(n.from+c.length)}}))}else n=s?i.changeByRange((e=>{let t=a.line(o++);return{changes:{from:e.from,to:e.to,insert:t.text},range:r.jT.cursor(e.from+t.length)}})):i.replaceSelection(a);e.dispatch(n,{userEvent:"input.paste",scrollIntoView:!0})}function Nt(e,t,n,i){if(1==i)return r.jT.cursor(t,n);if(2==i)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=e.charCategorizer(t),o=e.doc.lineAt(t),a=t-o.from;if(0==o.length)return r.jT.cursor(t);0==a?n=1:a==o.length&&(n=-1);let s=a,l=a;n<0?s=(0,r.cp)(o.text,a,!1):l=(0,r.cp)(o.text,a);let c=i(o.text.slice(s,l));for(;s>0;){let e=(0,r.cp)(o.text,s,!1);if(i(o.text.slice(e,s))!=c)break;s=e}for(;l{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft},Rt.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),27==t.keyCode&&(e.inputState.lastEscPress=Date.now()),!1),It.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")},It.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")},Rt.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(ge))if(n=r(e,t),n)break;if(n||0!=t.button||(n=function(e,t){let n=qt(e,t),i=jt(t),o=e.state.selection;return{update(e){e.docChanged&&(n.pos=e.changes.mapPos(n.pos),o=o.map(e.changes))},get(t,a,s){let l,c=qt(e,t),u=Nt(e,c.pos,c.bias,i);if(n.pos!=c.pos&&!a){let t=Nt(e,n.pos,n.bias,i),o=Math.min(t.from,u.from),a=Math.max(t.to,u.to);u=o1&&(l=function(e,t){for(let n=0;n=t)return r.jT.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}(o,c.pos))?l:s?o.addRange(u):r.jT.create([u])}}}(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new Pt(e,t,n,r)),r&&e.observer.ignore((()=>y(e.contentDOM)));let i=e.inputState.mouseSelection;if(i)return i.start(t),!1===i.dragging}return!1};let Lt=(e,t)=>e>=t.top&&e<=t.bottom,Mt=(e,t,n)=>Lt(t,n)&&e>=n.left&&e<=n.right;function Qt(e,t,n,r){let i=te.find(e.docView,t);if(!i)return 1;let o=t-i.posAtStart;if(0==o)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&Mt(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&Mt(n,r,s)?1:a&&Lt(r,a)?-1:1}function qt(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:Qt(e,n,t.clientX,t.clientY)}}const Wt=B.ie&&B.ie_version<=11;let Bt=null,Ut=0,Ft=0;function jt(e){if(!Wt)return e.detail;let t=Bt,n=Ft;return Bt=e,Ft=Date.now(),Ut=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(Ut+1)%3:1}function Vt(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:o}=e.inputState,a=r&&o&&function(e,t){let n=e.state.facet(pe);return n.length?n[0](t):B.mac?!t.altKey:!t.ctrlKey}(e,t)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=e.state.changes(a?[a,s]:s);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Rt.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let e=i.posAtStart,t=e+i.length;(e>=n.to||t<=n.from)&&(n=r.jT.range(e,t))}}let{inputState:i}=e;return i.mouseSelection&&(i.mouseSelection.dragging=!0),i.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1},Rt.dragend=e=>(e.inputState.draggedContent=null,!1),Rt.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&Vt(e,t,r.filter((e=>null!=e)).join(e.state.lineBreak),!1)};for(let e=0;e{/[\x00-\x08\x0e-\x1f]{2}/.test(t.result)||(r[e]=t.result),o()},t.readAsText(n[e])}return!0}{let n=t.dataTransfer.getData("Text");if(n)return Vt(e,t,n,!0),!0}return!1},Rt.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=Dt?null:t.clipboardData;return n?(zt(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(function(e){let t=e.dom.parentNode;if(!t)return;let n=t.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout((()=>{e.focus(),n.remove(),zt(e,n.value)}),50)}(e),!1)};let Gt=null;Rt.copy=Rt.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=function(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:r}of e.selection.ranges){let o=e.doc.lineAt(r);o.number>i&&(t.push(o.text),n.push({from:o.from,to:Math.min(e.doc.length,o.to+1)})),i=o.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}(e.state);if(!n&&!i)return!1;Gt=i?n:null,"cut"!=t.type||e.state.readOnly||e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=Dt?null:t.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(function(e,t){let n=e.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=t,r.focus(),r.selectionEnd=t.length,r.selectionStart=0,setTimeout((()=>{r.remove(),e.focus()}),50)}(e,n),!1)};const Xt=r.q6.define();function Zt(e,t){let n=[];for(let r of e.facet(ke)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Xt.of(!0)}):null}function Ht(e){setTimeout((()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Zt(e.state,t);n?e.dispatch(n):e.update([])}}),10)}It.focus=e=>{e.inputState.lastFocusTime=Date.now(),e.scrollDOM.scrollTop||!e.inputState.lastScrollTop&&!e.inputState.lastScrollLeft||(e.scrollDOM.scrollTop=e.inputState.lastScrollTop,e.scrollDOM.scrollLeft=e.inputState.lastScrollLeft),Ht(e)},It.blur=e=>{e.observer.clearSelectionRange(),Ht(e)},It.compositionstart=It.compositionupdate=e=>{null==e.inputState.compositionFirstChange&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)},It.compositionend=e=>{e.inputState.composing=-1,e.inputState.compositionEndedAt=Date.now(),e.inputState.compositionPendingKey=!0,e.inputState.compositionPendingChange=e.observer.pendingRecords().length>0,e.inputState.compositionFirstChange=null,B.chrome&&B.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then((()=>e.observer.flush())):setTimeout((()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])}),50)},It.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()},Rt.beforeinput=(e,t)=>{var n;let r;if(B.chrome&&B.android&&(r=Et.find((e=>e.inputType==t.inputType)))&&(e.observer.delayAndroidKey(r.key,r.keyCode),"Backspace"==r.key||"Delete"==r.key)){let t=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0;setTimeout((()=>{var n;((null===(n=window.visualViewport)||void 0===n?void 0:n.height)||0)>t+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())}),100)}return!1};const Yt=new Set;const Jt=["pre-wrap","normal","pre-line","break-spaces"];class Kt{constructor(e){this.lineWrapping=e,this.doc=r.xv.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,t){let n=this.doc.lineAt(t).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(n+=Math.max(0,Math.ceil((t-e-n*this.lineLength*.5)/this.lineLength))),this.lineHeight*n}heightForLine(e){if(!this.lineWrapping)return this.lineHeight;return(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Jt.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let t=!1;for(let n=0;n-1,s=Math.round(t)!=Math.round(this.lineHeight)||this.lineWrapping!=a;if(this.lineWrapping=a,this.lineHeight=t,this.charWidth=n,this.textHeight=r,this.lineLength=i,s){this.heightSamples={};for(let e=0;e2&&void 0!==arguments[2]?arguments[2]:2;this.length=e,this.height=t,this.flags=n}get outdated(){return(2&this.flags)>0}set outdated(e){this.flags=(e?2:0)|-3&this.flags}setHeight(e,t){this.height!=t&&(Math.abs(this.height-t)>rn&&(e.heightChanged=!0),this.height=t)}replace(e,t,n){return on.of(n)}decomposeLeft(e,t){t.push(this)}decomposeRight(e,t){t.push(this)}applyChanges(e,t,n,r){let i=this,o=n.doc;for(let a=r.length-1;a>=0;a--){let{fromA:s,toA:l,fromB:c,toB:u}=r[a],d=i.lineAt(s,nn.ByPosNoHeight,n.setDoc(t),0,0),h=d.to>=l?d:i.lineAt(l,nn.ByPosNoHeight,n,0,0);for(u+=h.to-l,l=h.to;a>0&&d.from<=r[a-1].toA;)s=r[a-1].fromA,c=r[a-1].fromB,a--,s2*i){let i=e[t-1];i.break?e.splice(--t,1,i.left,null,i.right):e.splice(--t,1,i.left,i.right),n+=1+i.break,r-=i.size}else{if(!(i>2*r))break;{let t=e[n];t.break?e.splice(n,1,t.left,null,t.right):e.splice(n,1,t.left,t.right),n+=2+t.break,i-=t.size}}else if(r=i&&o(this.blockAt(0,n,r,i))}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>3?arguments[3]:void 0;return n&&n.from<=t&&n.more&&this.setHeight(e,n.heights[n.index++]),this.outdated=!1,this}toString(){return"block(".concat(this.length,")")}}class sn extends an{constructor(e,t){super(e,t,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,t,n,r){return new tn(r,this.length,n,this.height,this.breaks)}replace(e,t,n){let r=n[0];return 1==n.length&&(r instanceof sn||r instanceof ln&&4&r.flags)&&Math.abs(this.length-r.length)<10?(r instanceof ln?r=new sn(r.length,this.height):r.height=this.height,this.outdated||(r.outdated=!1),r):on.of(n)}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return r&&r.from<=t&&r.more?this.setHeight(e,r.heights[r.index++]):(n||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return"line(".concat(this.length).concat(this.collapsed?-this.collapsed:"").concat(this.widgetHeight?":"+this.widgetHeight:"",")")}}class ln extends on{constructor(e){super(e,0)}heightMetrics(e,t){let n,r=e.doc.lineAt(t).number,i=e.doc.lineAt(t+this.length).number,o=i-r+1,a=0;if(e.lineWrapping){let t=Math.min(this.height,e.lineHeight*o);n=t/o,this.length>o+1&&(a=(this.height-t)/(this.length-o-1))}else n=this.height/o;return{firstLine:r,lastLine:i,perLine:n,perChar:a}}blockAt(e,t,n,r){let{firstLine:i,lastLine:o,perLine:a,perChar:s}=this.heightMetrics(t,r);if(t.lineWrapping){let i=r+Math.round(Math.max(0,Math.min(1,(e-n)/this.height))*this.length),o=t.doc.lineAt(i),l=a+o.length*s,c=Math.max(n,e-l/2);return new tn(o.from,o.length,c,l,0)}{let r=Math.max(0,Math.min(o-i,Math.floor((e-n)/a))),{from:s,length:l}=t.doc.line(i+r);return new tn(s,l,n+a*r,a,0)}}lineAt(e,t,n,r,i){if(t==nn.ByHeight)return this.blockAt(e,n,r,i);if(t==nn.ByPosNoHeight){let{from:t,to:r}=n.doc.lineAt(e);return new tn(t,r-t,0,0,0)}let{firstLine:o,perLine:a,perChar:s}=this.heightMetrics(n,i),l=n.doc.lineAt(e),c=a+l.length*s,u=l.number-o,d=r+a*u+s*(l.from-i-u);return new tn(l.from,l.length,Math.max(r,Math.min(d,r+this.height-c)),c,0)}forEachLine(e,t,n,r,i,o){e=Math.max(e,i),t=Math.min(t,i+this.length);let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);for(let c=e,u=r;c<=t;){let t=n.doc.lineAt(c);if(c==e){let n=t.number-a;u+=s*n+l*(e-i-n)}let r=s+l*t.length;o(new tn(t.from,t.length,u,r,0)),u+=r,c=t.to+1}}replace(e,t,n){let r=this.length-t;if(r>0){let e=n[n.length-1];e instanceof ln?n[n.length-1]=new ln(e.length+r):n.push(null,new ln(r-1))}if(e>0){let t=n[0];t instanceof ln?n[0]=new ln(e+t.length):n.unshift(new ln(e-1),null)}return on.of(n)}decomposeLeft(e,t){t.push(new ln(e-1),null)}decomposeRight(e,t){t.push(null,new ln(this.length-e-1))}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=t+this.length;if(r&&r.from<=t+this.length&&r.more){let n=[],o=Math.max(t,r.from),a=-1;for(r.from>t&&n.push(new ln(r.from-t-1).updateHeight(e,t));o<=i&&r.more;){let t=e.doc.lineAt(o).length;n.length&&n.push(null);let i=r.heights[r.index++];-1==a?a=i:Math.abs(i-a)>=rn&&(a=-2);let s=new sn(t,i);s.outdated=!1,n.push(s),o+=t+1}o<=i&&n.push(null,new ln(i-o).updateHeight(e,o));let s=on.of(n);return(a<0||Math.abs(s.height-this.height)>=rn||Math.abs(a-this.heightMetrics(e,t).perLine)>=rn)&&(e.heightChanged=!0),s}return(n||this.outdated)&&(this.setHeight(e,e.heightForGap(t,t+this.length)),this.outdated=!1),this}toString(){return"gap(".concat(this.length,")")}}class cn extends on{constructor(e,t,n){super(e.length+t+n.length,e.height+n.height,t|(e.outdated||n.outdated?2:0)),this.left=e,this.right=n,this.size=e.size+n.size}get break(){return 1&this.flags}blockAt(e,t,n,r){let i=n+this.left.height;return ea))return l;let c=t==nn.ByPosNoHeight?nn.ByPosNoHeight:nn.ByPos;return s?l.join(this.right.lineAt(a,c,n,o,a)):this.left.lineAt(a,c,n,r,i).join(l)}forEachLine(e,t,n,r,i,o){let a=r+this.left.height,s=i+this.left.length+this.break;if(this.break)e=s&&this.right.forEachLine(e,t,n,a,s,o);else{let l=this.lineAt(s,nn.ByPos,n,r,i);e=e&&l.from<=t&&o(l),t>l.to&&this.right.forEachLine(l.to+1,t,n,a,s,o)}}replace(e,t,n){let r=this.left.length+this.break;if(tthis.left.length)return this.balanced(this.left,this.right.replace(e-r,t-r,n));let i=[];e>0&&this.decomposeLeft(e,i);let o=i.length;for(let a of n)i.push(a);if(e>0&&un(i,o-1),t=n&&t.push(null)),e>n&&this.right.decomposeLeft(e-n,t)}decomposeRight(e,t){let n=this.left.length,r=n+this.break;if(e>=r)return this.right.decomposeRight(e-r,t);e2*t.size||t.size>2*e.size?on.of(this.break?[e,null,t]:[e,t]):(this.left=e,this.right=t,this.height=e.height+t.height,this.outdated=e.outdated||t.outdated,this.size=e.size+t.size,this.length=e.length+this.break+t.length,this)}updateHeight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,{left:i,right:o}=this,a=t+i.length+this.break,s=null;return r&&r.from<=t+i.length&&r.more?s=i=i.updateHeight(e,t,n,r):i.updateHeight(e,t,n),r&&r.from<=a+o.length&&r.more?s=o=o.updateHeight(e,a,n,r):o.updateHeight(e,a,n),s?this.balanced(i,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function un(e,t){let n,r;null==e[t]&&(n=e[t-1])instanceof ln&&(r=e[t+1])instanceof ln&&e.splice(t-1,3,new ln(n.length+1+r.length))}class dn{constructor(e,t){this.pos=e,this.oracle=t,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,t){if(this.lineStart>-1){let e=Math.min(t,this.lineEnd),n=this.nodes[this.nodes.length-1];n instanceof sn?n.length+=e-this.pos:(e>this.pos||!this.isCovered)&&this.nodes.push(new sn(e-this.pos,-1)),this.writtenTo=e,t>e&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=t}point(e,t,n){if(e=5)&&this.addLineDeco(r,i,o)}else t>e&&this.span(e,t);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:t}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=t,this.writtenToe&&this.nodes.push(new sn(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,t){let n=new ln(t-e);return this.oracle.doc.lineAt(e).to==t&&(n.flags|=4),n}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof sn)return e;let t=new sn(0,-1);return this.nodes.push(t),t}addBlock(e){this.enterLine();let t=e.deco;t&&t.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,t&&t.endSide>0&&(this.covering=e)}addLineDeco(e,t,n){let r=this.ensureLine();r.length+=n,r.collapsed+=n,r.widgetHeight=Math.max(r.widgetHeight,e),r.breaks+=t,this.writtenTo=this.pos=this.pos+n}finish(e){let t=0==this.nodes.length?null:this.nodes[this.nodes.length-1];!(this.lineStart>-1)||t instanceof sn||this.isCovered?(this.writtenTot.clientHeight||t.scrollWidth>t.clientWidth)&&"visible"!=n.overflow){let n=t.getBoundingClientRect();o=Math.max(o,n.left),a=Math.min(a,n.right),s=Math.max(s,n.top),l=c==e.parentNode?n.bottom:Math.min(l,n.bottom)}c="absolute"==n.position||"fixed"==n.position?t.offsetParent:t.parentNode}else{if(11!=c.nodeType)break;c=c.host}return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+t),bottom:Math.max(s,l)-(n.top+t)}}function mn(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class pn{constructor(e,t,n){this.from=e,this.to=t,this.size=n}static same(e,t){if(e.length!=t.length)return!1;for(let n=0;n"function"!=typeof e&&"cm-lineWrapping"==e.class));this.heightOracle=new Kt(t),this.stateDeco=e.facet(Ie).filter((e=>"function"!=typeof e)),this.heightMap=on.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle.setDoc(e.doc),[new qe(0,0,0,e.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=oe.set(this.lineGaps.map((e=>e.draw(this,!1)))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:t}=this.state.selection;for(let n=0;n<=1;n++){let r=n?t.head:t.anchor;if(!e.some((e=>{let{from:t,to:n}=e;return r>=t&&r<=n}))){let{from:t,to:n}=this.lineBlockAt(r);e.push(new vn(t,n))}}this.viewports=e.sort(((e,t)=>e.from-t.from)),this.scaler=this.heightMap.height<=7e6?On:new xn(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(e=>{this.viewportLines.push(1==this.scaler.scale?e:Sn(e,this.scaler))}))}update(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.state=e.state;let n=this.stateDeco;this.stateDeco=this.state.facet(Ie).filter((e=>"function"!=typeof e));let i=e.changedRanges,o=qe.extendWithRanges(i,function(e,t,n){let i=new hn;return r.Xs.compare(e,t,n,i,0),i.changes}(n,this.stateDeco,e?e.changes:r.as.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(t&&(t.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,t));let c=!e.changes.empty||2&e.flags||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),c&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),t&&(this.scrollTarget=t),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(Oe)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let t=e.contentDOM,n=window.getComputedStyle(t),i=this.heightOracle,o=n.whiteSpace;this.defaultTextDirection="rtl"==n.direction?Be.RTL:Be.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=t.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let c=0,u=0;if(s.width&&s.height){let e=s.width/t.offsetWidth,n=s.height/t.offsetHeight;(e>.995&&e<1.005||!isFinite(e)||Math.abs(s.width-t.offsetWidth)<1)&&(e=1),(n>.995&&n<1.005||!isFinite(n)||Math.abs(s.height-t.offsetHeight)<1)&&(n=1),this.scaleX==e&&this.scaleY==n||(this.scaleX=e,this.scaleY=n,c|=8,a=l=!0)}let d=(parseInt(n.paddingTop)||0)*this.scaleY,h=(parseInt(n.paddingBottom)||0)*this.scaleY;this.paddingTop==d&&this.paddingBottom==h||(this.paddingTop=d,this.paddingBottom=h,c|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,c|=8);let f=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=f&&(this.scrollAnchorHeight=-1,this.scrollTop=f),this.scrolledToBottom=x(e.scrollDOM);let m=(this.printing?mn:fn)(t,this.paddingTop),p=m.top-this.pixelViewport.top,g=m.bottom-this.pixelViewport.bottom;this.pixelViewport=m;let b=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(b!=this.inView&&(this.inView=b,b&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let v=s.width;if(this.contentDOMWidth==v&&this.editorHeight==e.scrollDOM.clientHeight||(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,c|=8),l){let t=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(t)&&(a=!0),a||i.lineWrapping&&Math.abs(v-this.contentDOMWidth)>i.charWidth){let{lineHeight:n,charWidth:r,textHeight:s}=e.docView.measureTextSize();a=n>0&&i.refresh(o,n,r,s,v/r,t),a&&(e.docView.minWidth=0,c|=8)}p>0&&g>0?u=Math.max(p,g):p<0&&g<0&&(u=Math.min(p,g)),i.heightChanged=!1;for(let n of this.viewports){let o=n.from==this.viewport.from?t:e.docView.measureVisibleLineHeights(n);this.heightMap=(a?on.empty().applyChanges(this.stateDeco,r.xv.empty,this.heightOracle,[new qe(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new en(n.from,o))}i.heightChanged&&(c|=2)}let y=!this.viewportIsAppropriate(this.viewport,u)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return y&&(this.viewport=this.getViewport(u,this.scrollTarget)),this.updateForViewport(),(2&c||y)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),c|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),c}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,t){let n=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),r=this.heightMap,i=this.heightOracle,{visibleTop:o,visibleBottom:a}=this,s=new vn(r.lineAt(o-1e3*n,nn.ByHeight,i,0,0).from,r.lineAt(a+1e3*(1-n),nn.ByHeight,i,0,0).to);if(t){let{head:e}=t.range;if(es.to){let n,o=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),a=r.lineAt(e,nn.ByPos,i,0,0);n="center"==t.y?(a.top+a.bottom)/2-o/2:"start"==t.y||"nearest"==t.y&&e1&&void 0!==arguments[1]?arguments[1]:0;if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(t,nn.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(n,nn.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:s}=this;return(0==t||i<=a-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||o>=s+Math.max(10,Math.min(r,250)))&&i>a-2e3&&o>1,a=i<<1;if(this.defaultTextDirection!=Be.LTR&&!n)return[];let s=[],l=(i,a,c,u)=>{if(a-ii&&ee.from>=c.from&&e.to<=c.to&&Math.abs(e.from-i)e.fromt))));if(!f){if(ae.from<=a&&e.to>=a))){let e=t.moveToLineBoundary(r.jT.cursor(a),!1,!0).head;e>i&&(a=e)}f=new pn(i,a,this.gapSize(c,i,a,u))}s.push(f)};for(let r of this.viewportLines){if(r.lengthr.from&&l(r.from,t,r,e),oe.draw(this,this.heightOracle.lineWrapping)))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let t=[];r.Xs.spans(e,this.viewport.from,this.viewport.to,{span(e,n){t.push({from:e,to:n})},point(){}},20);let n=t.length!=this.visibleRanges.length||this.visibleRanges.some(((e,n)=>e.from!=t[n].from||e.to!=t[n].to));return this.visibleRanges=t,n?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find((t=>t.from<=e&&t.to>=e))||Sn(this.heightMap.lineAt(e,nn.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return Sn(this.heightMap.lineAt(this.scaler.fromDOM(e),nn.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let t=this.lineBlockAtHeight(e+8);return t.from>=this.viewport.from||this.viewportLines[0].top-e>200?t:this.viewportLines[0]}elementAtHeight(e){return Sn(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class vn{constructor(e,t){this.from=e,this.to=t}}function yn(e,t,n){let i=[],o=e,a=0;return r.Xs.spans(n,e,t,{span(){},point(e,t){e>o&&(i.push({from:o,to:e}),a+=e-o),o=t}},20),o=1)return r[r.length-1].to;let i=Math.floor(n*t);for(let o=0;;o++){let{from:e,to:t}=r[o],n=t-e;if(i<=n)return e+i;i-=n}}function wn(e,t){let n=0;for(let{from:r,to:i}of e.ranges){if(t<=i){n+=t-r;break}n+=i-r}return n/e.total}const On={toDOM:e=>e,fromDOM:e=>e,scale:1};class xn{constructor(e,t,n){let r=0,i=0,o=0;this.viewports=n.map((n=>{let{from:i,to:o}=n,a=t.lineAt(i,nn.ByPos,e,0,0).top,s=t.lineAt(o,nn.ByPos,e,0,0).bottom;return r+=s-a,{from:i,to:o,top:a,bottom:s,domTop:0,domBottom:0}})),this.scale=(7e6-r)/(t.height-r);for(let a of this.viewports)a.domTop=o+(a.top-i)*this.scale,o=a.domBottom=a.domTop+(a.bottom-a.top),i=a.bottom}toDOM(e){for(let t=0,n=0,r=0;;t++){let i=tSn(e,t))):e._content)}const _n=r.r$.define({combine:e=>e.join(" ")}),Tn=r.r$.define({combine:e=>e.indexOf(!0)>-1}),En=i.V.newName(),$n=i.V.newName(),Cn=i.V.newName(),An={"&light":"."+$n,"&dark":"."+Cn};function Pn(e,t,n){return new i.V(t,{finish:t=>/&/.test(t)?t.replace(/&\w*/,(t=>{if("&"==t)return e;if(!n||!n[t])throw new RangeError("Unsupported selector: ".concat(t));return n[t]})):e+" "+t})}const Rn=Pn("."+En,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:'url(\'data:image/svg+xml,\')',backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},An),In="\uffff";class Dn{constructor(e,t){this.points=e,this.text="",this.lineSeparator=t.facet(r.yy.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=In}readRange(e,t){if(!e)return this;let n=e.parentNode;for(let r=e;;){this.findPointBefore(n,r);let e=this.text.length;this.readNode(r);let i=r.nextSibling;if(i==t)break;let o=T.get(r),a=T.get(i);(o&&a?o.breakAfter:(o?o.breakAfter:Nn(r))||Nn(i)&&("BR"!=r.nodeName||r.cmIgnore)&&this.text.length>e)&&this.lineBreak(),r=i}return this.findPointBefore(n,t),this}readTextNode(e){let t=e.nodeValue;for(let n of this.points)n.node==e&&(n.pos=this.text.length+Math.min(n.offset,t.length));for(let n=0,r=this.lineSeparator?null:/\r\n?|\n/g;;){let i,o=-1,a=1;if(this.lineSeparator?(o=t.indexOf(this.lineSeparator,n),a=this.lineSeparator.length):(i=r.exec(t))&&(o=i.index,a=i[0].length),this.append(t.slice(n,o<0?t.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let t of this.points)t.node==e&&t.pos>this.text.length&&(t.pos-=a-1);n=o+a}}readNode(e){if(e.cmIgnore)return;let t=T.get(e),n=t&&t.overrideDOMText;if(null!=n){this.findPointInside(e,n.length);for(let e=n.iter();!e.next().done;)e.lineBreak?this.lineBreak():this.append(e.value)}else 3==e.nodeType?this.readTextNode(e):"BR"==e.nodeName?e.nextSibling&&this.lineBreak():1==e.nodeType&&this.readRange(e.firstChild,null)}findPointBefore(e,t){for(let n of this.points)n.node==e&&e.childNodes[n.offset]==t&&(n.pos=this.text.length)}findPointInside(e,t){for(let n of this.points)(3==e.nodeType?n.node==e:e.contains(n.node))&&(n.pos=this.text.length+(zn(e,n.node,n.offset)?t:0))}}function zn(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(t>-1&&(this.bounds=e.docView.domBoundsAround(t,n,0))){let t=o||a?[]:function(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=e.observer.selectionRange;n&&(t.push(new Ln(n,r)),i==n&&o==r||t.push(new Ln(i,o)));return t}(e),n=new Dn(t,e.state);n.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=n.text,this.newSel=function(e,t){if(0==e.length)return null;let n=e[0].pos,i=2==e.length?e[1].pos:n;return n>-1&&i>-1?r.jT.single(n+t,i+t):null}(t,this.bounds.from)}else{let t=e.observer.selectionRange,n=o&&o.node==t.focusNode&&o.offset==t.focusOffset||!s(e.contentDOM,t.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(t.focusNode,t.focusOffset),i=a&&a.node==t.anchorNode&&a.offset==t.anchorOffset||!s(e.contentDOM,t.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(t.anchorNode,t.anchorOffset);this.newSel=r.jT.single(i,n)}}}function Qn(e,t){let n,{newSel:i}=t,o=e.state.selection.main,a=e.inputState.lastKeyTime>Date.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:i,to:s}=t.bounds,l=o.from,c=null;(8===a||B.android&&t.text.length0&&s>0&&e.charCodeAt(a-1)==t.charCodeAt(s-1);)a--,s--;if("end"==r){n-=a+Math.max(0,o-Math.min(a,s))-o}if(a=a?o-n:0,s=o+(s-a),a=o}else if(s=s?o-n:0,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}(e.state.doc.sliceString(i,s,In),t.text,l-i,c);u&&(B.chrome&&13==a&&u.toB==u.from+2&&t.text.slice(u.from,u.toB)==In+In&&u.toB--,n={from:i+u.from,to:i+u.toA,insert:r.xv.of(t.text.slice(u.from,u.toB).split(In))})}else i&&(!e.hasFocus&&e.state.facet(Te)||i.main.eq(o))&&(i=null);if(!n&&!i)return!1;if(!n&&t.typeOver&&!o.empty&&i&&i.main.empty?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,o.to)}:n&&n.from>=o.from&&n.to<=o.to&&(n.from!=o.from||n.to!=o.to)&&o.to-o.from-(n.to-n.from)<=4?n={from:o.from,to:o.to,insert:e.state.doc.slice(o.from,n.from).append(n.insert).append(e.state.doc.slice(n.to,o.to))}:(B.mac||B.android)&&n&&n.from==n.to&&n.from==o.head-1&&/^\. ?$/.test(n.insert.toString())&&"off"==e.contentDOM.getAttribute("autocorrect")?(i&&2==n.insert.length&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}):B.chrome&&n&&n.from==n.to&&n.from==o.head&&"\n "==n.insert.toString()&&e.lineWrapping&&(i&&(i=r.jT.single(i.main.anchor-1,i.main.head-1)),n={from:o.from,to:o.to,insert:r.xv.of([" "])}),n){if(B.ios&&e.inputState.flushIOSKey())return!0;if(B.android&&(n.from==o.from&&n.to==o.to&&1==n.insert.length&&2==n.insert.lines&&w(e.contentDOM,"Enter",13)||(n.from==o.from-1&&n.to==o.to&&0==n.insert.length||8==a&&n.insert.lengtho.head)&&w(e.contentDOM,"Backspace",8)||n.from==o.from&&n.to==o.to+1&&0==n.insert.length&&w(e.contentDOM,"Delete",46)))return!0;let t,s=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let l=()=>t||(t=function(e,t,n){let i,o=e.state,a=o.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let n=a.fromt.to?o.sliceDoc(t.to,a.to):"";i=o.replaceSelection(e.state.toText(n+t.insert.sliceString(0,void 0,e.state.lineBreak)+r))}else{let s=o.changes(t),l=n&&n.main.to<=s.newLength?n.main:void 0;if(o.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let c,u=e.state.sliceDoc(t.from,t.to),d=n&<(e,n.main.head);if(d){let e=t.insert.length-(t.to-t.from);c={from:d.from,to:d.to-e}}else c=e.state.doc.lineAt(a.head);let h=a.to-t.to,f=a.to-a.from;i=o.changeByRange((n=>{if(n.from==a.from&&n.to==a.to)return{changes:s,range:l||n.map(s)};let i=n.to-h,d=i-u.length;if(n.to-n.from!=f||e.state.sliceDoc(d,i)!=u||n.to>=c.from&&n.from<=c.to)return{range:n};let m=o.changes({from:d,to:i,insert:t.insert}),p=n.to-a.to;return{changes:m,range:l?r.jT.range(Math.max(0,l.anchor+p),Math.max(0,l.head+p)):n.map(m)}}))}else i={changes:s,selection:l&&o.selection.replaceRange(l)}}let s="input.type";(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1));return o.update(i,{userEvent:s,scrollIntoView:!0})}(e,n,i));return e.state.facet(ye).some((t=>t(e,n.from,n.to,s,l)))||e.dispatch(l()),!0}if(i&&!i.main.eq(o)){let t=!1,n="select";return e.inputState.lastSelectionTime>Date.now()-50&&("select"==e.inputState.lastSelectionOrigin&&(t=!0),n=e.inputState.lastSelectionOrigin),e.dispatch({selection:i,scrollIntoView:t,userEvent:n}),!0}return!1}const qn={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},Wn=B.ie&&B.ie_version<=11;class Bn{constructor(e){this.view=e,this.active=!1,this.selectionRange=new g,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver((t=>{for(let e of t)this.queue.push(e);(B.ie&&B.ie_version<=11||B.ios&&e.composing)&&t.some((e=>"childList"==e.type&&e.removedNodes.length||"characterData"==e.type&&e.oldValue.length>e.target.nodeValue.length))?this.flushSoon():this.flush()})),Wn&&(this.onCharData=e=>{this.queue.push({target:e.target,type:"characterData",oldValue:e.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),"function"==typeof ResizeObserver&&(this.resizeScroll=new ResizeObserver((()=>{var e;(null===(e=this.view.docView)||void 0===e?void 0:e.lastUpdate){this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),e.length>0&&e[e.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))}),{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver((e=>{e.length>0&&e[e.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))}),{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1,this.view.requestMeasure()}),50))}onPrint(){this.view.viewState.printing=!0,this.view.measure(),setTimeout((()=>{this.view.viewState.printing=!1,this.view.requestMeasure()}),500)}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some(((t,n)=>t!=e[n])))){this.gapIntersection.disconnect();for(let t of e)this.gapIntersection.observe(t);this.gaps=e}}onSelectionChange(e){let t=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:n}=this,r=this.selectionRange;if(n.state.facet(Te)?n.root.activeElement!=this.dom:!l(n.dom,r))return;let i=r.anchorNode&&n.docView.nearest(r.anchorNode);i&&i.ignoreEvent(e)?t||(this.selectionChanged=!1):(B.ie&&B.ie_version<=11||B.android&&B.chrome)&&!n.state.selection.main.empty&&r.focusNode&&u(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,t=B.safari&&11==e.root.nodeType&&function(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}(this.dom.ownerDocument)==this.dom&&function(e){let t=null;function n(e){e.preventDefault(),e.stopImmediatePropagation(),t=e.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,o=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);u(s.node,s.offset,o,a)&&([r,i,o,a]=[o,a,r,i]);return{anchorNode:r,anchorOffset:i,focusNode:o,focusOffset:a}}(this.view)||a(e.root);if(!t||this.selectionRange.eq(t))return!1;let n=l(this.dom,t);return n&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime{let e=this.delayedAndroidKey;if(e){this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=e.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&e.force&&w(this.dom,e.key,e.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(e)}this.delayedAndroidKey&&"Enter"!=e||(this.delayedAndroidKey={key:e,keyCode:t,force:this.lastChange{this.delayedFlush=-1,this.flush()})))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let t=-1,n=-1,r=!1;for(let i of e){let e=this.readMutation(i);e&&(e.typeOver&&(r=!0),-1==t?({from:t,to:n}=e):(t=Math.min(e.from,t),n=Math.max(e.to,n)))}return{from:t,to:n,typeOver:r}}readChange(){let{from:e,to:t,typeOver:n}=this.processRecords(),r=this.selectionChanged&&l(this.dom,this.selectionRange);if(e<0&&!r)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let i=new Mn(this.view,e,t,n);return this.view.docView.domChanged={newSel:i.newSel?i.newSel.main:null},i}flush(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let t=this.readChange();if(!t)return this.view.requestMeasure(),!1;let n=this.view.state,r=Qn(this.view,t);return this.view.state==n&&this.view.update([]),r}readMutation(e){let t=this.view.docView.nearest(e.target);if(!t||t.ignoreMutation(e))return null;if(t.markDirty("attributes"==e.type),"attributes"==e.type&&(t.flags|=4),"childList"==e.type){let n=Un(t,e.previousSibling||e.target.previousSibling,-1),r=Un(t,e.nextSibling||e.target.nextSibling,1);return{from:n?t.posAfter(n):t.posAtStart,to:r?t.posBefore(r):t.posAtEnd,typeOver:!1}}return"characterData"==e.type?{from:t.posAtStart,to:t.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var e,t,n;this.stop(),null===(e=this.intersection)||void 0===e||e.disconnect(),null===(t=this.gapIntersection)||void 0===t||t.disconnect(),null===(n=this.resizeScroll)||void 0===n||n.disconnect();for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Un(e,t,n){for(;t;){let r=T.get(t);if(r&&r.parent==e)return r;let i=t.parentNode;t=i!=e.dom?i:n>0?t.nextSibling:t.previousSibling}return null}class Fn{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.style.cssText="position: fixed; top: -10000px",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM);let{dispatch:t}=e;this.dispatchTransactions=e.dispatchTransactions||t&&(e=>e.forEach((e=>t(e,this))))||(e=>this.update(e)),this.dispatch=this.dispatch.bind(this),this._root=e.root||function(e){for(;e;){if(e&&(9==e.nodeType||11==e.nodeType&&e.host))return e;e=e.assignedSlot||e.parentNode}return null}(e.parent)||document,this.viewState=new bn(e.state||r.yy.create(e)),e.scrollTo&&e.scrollTo.is(Se)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet($e).map((e=>new Ae(e)));for(let n of this.plugins)n.update(this);this.observer=new Bn(this),this.inputState=new St(this),this.inputState.ensureHandlers(this.plugins),this.docView=new at(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),e.parent&&e.parent.appendChild(this.dom)}dispatch(){for(var e=arguments.length,t=new Array(e),n=0;ne.annotation(Xt)))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=Zt(o,a),l||(s=1));let c=this.observer.delayedAndroidKey,u=null;if(c?(this.observer.clearDelayedAndroidKey(),u=this.observer.readChange(),(u&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(u=null)):this.observer.clear(),o.facet(r.yy.phrases)!=this.state.facet(r.yy.phrases))return this.setState(o);t=We.create(this,o,e),t.flags|=s;let d=this.viewState.scrollTarget;try{this.updateState=2;for(let t of e){if(d&&(d=d.map(t.changes)),t.scrollIntoView){let{main:e}=t.state.selection;d=new xe(e.empty?e:r.jT.cursor(e.head,e.head>e.anchor?-1:1))}for(let e of t.effects)e.is(Se)&&(d=e.value.clip(this.state))}this.viewState.update(t,d),this.bidiCache=Gn.update(this.bidiCache,t.changes),t.empty||(this.updatePlugins(t),this.inputState.update(t)),n=this.docView.update(t),this.state.facet(Qe)!=this.styleModules&&this.mountStyles(),i=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some((e=>e.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(t.startState.facet(_n)!=t.state.facet(_n)&&(this.viewState.mustMeasureContent=!0),(n||i||d||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!t.empty)for(let r of this.state.facet(ve))try{r(t)}catch(h){_e(this.state,h,"update listener")}(l||u)&&Promise.resolve().then((()=>{l&&this.state==l.startState&&this.dispatch(l),u&&!Qn(this,u)&&c.force&&w(this.contentDOM,c.key,c.keyCode)}))}setState(e){if(0!=this.updateState)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed)return void(this.viewState.state=e);this.updateState=2;let t=this.hasFocus;try{for(let e of this.plugins)e.destroy(this);this.viewState=new bn(e),this.plugins=e.facet($e).map((e=>new Ae(e))),this.pluginMap.clear();for(let e of this.plugins)e.update(this);this.docView=new at(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}t&&this.focus(),this.requestMeasure()}updatePlugins(e){let t=e.startState.facet($e),n=e.state.facet($e);if(t!=n){let r=[];for(let i of n){let n=t.indexOf(i);if(n<0)r.push(new Ae(i));else{let t=this.plugins[n];t.mustUpdate=e,r.push(t)}}for(let t of this.plugins)t.mustUpdate!=e&&t.destroy(this);this.plugins=r,this.pluginMap.clear()}else for(let r of this.plugins)r.mustUpdate=e;for(let r=0;r0&&void 0!==arguments[0])||arguments[0];if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey)return this.measureScheduled=-1,void this.requestMeasure();this.measureScheduled=0,e&&this.observer.forceFlush();let t=null,n=this.scrollDOM,r=n.scrollTop*this.scaleY,{scrollAnchorPos:i,scrollAnchorHeight:o}=this.viewState;Math.abs(r-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let e=0;;e++){if(o<0)if(x(n))i=-1,o=this.viewState.heightMap.height;else{let e=this.viewState.scrollAnchorAt(r);i=e.from,o=e.top}this.updateState=1;let s=this.viewState.measure(this);if(!s&&!this.measureRequests.length&&null==this.viewState.scrollTarget)break;if(e>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];4&s||([this.measureRequests,l]=[l,this.measureRequests]);let c=l.map((e=>{try{return e.read(this)}catch(t){return _e(this.state,t),Vn}})),u=We.create(this,this.state,[]),d=!1;u.flags|=s,t?t.flags|=s:t=u,this.updateState=2,u.empty||(this.updatePlugins(u),this.inputState.update(u),this.updateAttrs(),d=this.docView.update(u));for(let e=0;e1||e<-1){r+=e,n.scrollTop=r/this.scaleY,o=-1;continue}}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(t&&!t.empty)for(let s of this.state.facet(ve))s(t)}get themeClasses(){return En+" "+(this.state.facet(Tn)?Cn:$n)+" "+this.state.facet(_n)}updateAttrs(){let e=Xn(this,Pe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),t={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Te)?"true":"false",class:"cm-content",style:"".concat(B.tabSize,": ").concat(this.state.tabSize),role:"textbox","aria-multiline":"true"};this.state.readOnly&&(t["aria-readonly"]="true"),Xn(this,Re,t);let n=this.observer.ignore((()=>{let n=K(this.contentDOM,this.contentAttrs,t),r=K(this.dom,this.editorAttrs,e);return n||r}));return this.editorAttrs=e,this.contentAttrs=t,n}showAnnouncements(e){let t=!0;for(let n of e)for(let e of n.effects)if(e.is(Fn.announce)){t&&(this.announceDOM.textContent=""),t=!1,this.announceDOM.appendChild(document.createElement("div")).textContent=e.value}}mountStyles(){this.styleModules=this.state.facet(Qe);let e=this.state.facet(Fn.cspNonce);i.V.mount(this.root,this.styleModules.concat(Rn).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(2==this.updateState)throw new Error("Reading the editor layout isn't allowed during an update");0==this.updateState&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()))),e){if(this.measureRequests.indexOf(e)>-1)return;if(null!=e.key)for(let t=0;tt.spec==e))||null),t&&t.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,t,n){return xt(this,e,wt(this,e,t,n))}moveByGroup(e,t){return xt(this,e,wt(this,e,t,(t=>function(e,t,n){let i=e.state.charCategorizer(t),o=i(n);return e=>{let t=i(e);return o==r.D0.Space&&(o=t),o==t}}(this,e.head,t))))}moveToLineBoundary(e,t){return function(e,t,n,i){let o=kt(e,t.head),a=i&&o.type==ie.Text&&(e.lineWrapping||o.widgetLineBreaks)?e.coordsAtPos(t.assoc<0&&t.head>o.from?t.head-1:t.head):null;if(a){let t=e.dom.getBoundingClientRect(),i=e.textDirectionAt(o.from),s=e.posAtCoords({x:n==(i==Be.LTR)?t.right-1:t.left+1,y:(a.top+a.bottom)/2});if(null!=s)return r.jT.cursor(s,n?-1:1)}return r.jT.cursor(n?o.to:o.from,n?-1:1)}(this,e,t,!(arguments.length>2&&void 0!==arguments[2])||arguments[2])}moveVertically(e,t,n){return xt(this,e,function(e,t,n,i){let o=t.head,a=n?1:-1;if(o==(n?e.state.doc.length:0))return r.jT.cursor(o,t.assoc);let s,l=t.goalColumn,c=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(o,t.assoc||-1),d=e.documentTop;if(u)null==l&&(l=u.left-c.left),s=a<0?u.top:u.bottom;else{let t=e.viewState.lineBlockAt(o);null==l&&(l=Math.min(c.right-c.left,e.defaultCharacterWidth*(o-t.from))),s=(a<0?t.top:t.bottom)+d}let h=c.left+l,f=null!==i&&void 0!==i?i:e.viewState.heightOracle.textHeight>>1;for(let m=0;;m+=10){let t=s+(f+m)*a,n=vt(e,{x:h,y:t},!1,a);if(tc.bottom||(a<0?no)){let i=e.docView.coordsForChar(n),o=!i||t1&&void 0!==arguments[1]?arguments[1]:0;return this.docView.posFromDOM(e,t)}posAtCoords(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.readMeasured(),vt(this,e,t)}coordsAtPos(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.readMeasured();let n=this.docView.coordsAt(e,t);if(!n||n.left==n.right)return n;let r=this.state.doc.lineAt(e),i=this.bidiSpans(r);return m(n,i[Ye.find(i,e-r.from,-1,t)].dir==Be.LTR==t>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(we)||ethis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>jn)return rt(e.length);let t,n=this.textDirectionAt(e.from);for(let i of this.bidiCache)if(i.from==e.from&&i.dir==n&&(i.fresh||Je(i.isolates,t=Ne(this,e.from,e.to))))return i.order;t||(t=Ne(this,e.from,e.to));let r=nt(e.text,n,t);return this.bidiCache.push(new Gn(e.from,e.to,n,t,!0,r)),r}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||B.safari&&(null===(e=this.inputState)||void 0===e?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{y(this.contentDOM),this.docView.updateSelection()}))}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((9==e.nodeType?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Se.of(new xe("number"==typeof e?r.jT.cursor(e):e,t.y,t.x,t.yMargin,t.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:t}=this.scrollDOM,n=this.viewState.scrollAnchorAt(e);return Se.of(new xe(r.jT.cursor(n.from),"start","start",n.top-e,t,!0))}static domEventHandlers(e){return Ce.define((()=>({})),{eventHandlers:e})}static domEventObservers(e){return Ce.define((()=>({})),{eventObservers:e})}static theme(e,t){let n=i.V.newName(),r=[_n.of(n),Qe.of(Pn(".".concat(n),e))];return t&&t.dark&&r.push(Tn.of(!0)),r}static baseTheme(e){return r.Wl.lowest(Qe.of(Pn("."+En,e,An)))}static findFromDOM(e){var t;let n=e.querySelector(".cm-content"),r=n&&T.get(n)||T.get(e);return(null===(t=null===r||void 0===r?void 0:r.rootView)||void 0===t?void 0:t.view)||null}}Fn.styleModule=Qe,Fn.inputHandler=ye,Fn.focusChangeEffect=ke,Fn.perLineTextDirection=we,Fn.exceptionSink=be,Fn.updateListener=ve,Fn.editable=Te,Fn.mouseSelectionStyle=ge,Fn.dragMovesSelection=pe,Fn.clickAddsSelectionRange=me,Fn.decorations=Ie,Fn.atomicRanges=De,Fn.bidiIsolatedRanges=ze,Fn.scrollMargins=Le,Fn.darkTheme=Tn,Fn.cspNonce=r.r$.define({combine:e=>e.length?e[0]:""}),Fn.contentAttributes=Re,Fn.editorAttributes=Pe,Fn.lineWrapping=Fn.contentAttributes.of({class:"cm-lineWrapping"}),Fn.announce=r.Py.define();const jn=4096,Vn={};class Gn{constructor(e,t,n,r,i,o){this.from=e,this.to=t,this.dir=n,this.isolates=r,this.fresh=i,this.order=o}static update(e,t){if(t.empty&&!e.some((e=>e.fresh)))return e;let n=[],r=e.length?e[e.length-1].dir:Be.LTR;for(let i=Math.max(0,e.length-10);i=0;i--){let t=r[i],o="function"==typeof t?t(e):t;o&&H(o,n)}return n}const Zn=B.mac?"mac":B.windows?"win":B.linux?"linux":"key";function Hn(e,t,n){return t.altKey&&(e="Alt-"+e),t.ctrlKey&&(e="Ctrl-"+e),t.metaKey&&(e="Meta-"+e),!1!==n&&t.shiftKey&&(e="Shift-"+e),e}const Yn=r.Wl.default(Fn.domEventHandlers({keydown:(e,t)=>ir(er(t.state),e,t,"editor")})),Jn=r.r$.define({enables:Yn}),Kn=new WeakMap;function er(e){let t=e.facet(Jn),n=Kn.get(t);return n||Kn.set(t,n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Zn,n=Object.create(null),r=Object.create(null),i=(e,t)=>{let n=r[e];if(null==n)r[e]=t;else if(n!=t)throw new Error("Key binding "+e+" is used both as a regular binding and as a multi-stroke prefix")},o=(e,r,o,a,s)=>{var l,c;let u=n[e]||(n[e]=Object.create(null)),d=r.split(/ (?!$)/).map((e=>function(e,t){const n=e.split(/-(?!$)/);let r,i,o,a,s=n[n.length-1];"Space"==s&&(s=" ");for(let l=0;l{let r=nr={view:t,prefix:n,scope:e};return setTimeout((()=>{nr==r&&(nr=null)}),rr),!0}]})}let h=d.join(" ");i(h,!1);let f=u[h]||(u[h]={preventDefault:!1,stopPropagation:!1,run:(null===(c=null===(l=u._any)||void 0===l?void 0:l.run)||void 0===c?void 0:c.slice())||[]});o&&f.run.push(o),a&&(f.preventDefault=!0),s&&(f.stopPropagation=!0)};for(let a of e){let e=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let t of e){let e=n[t]||(n[t]=Object.create(null));e._any||(e._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let t in e)e[t].run.push(a.any)}let r=a[t]||a.key;if(r)for(let t of e)o(t,r,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(t,"Shift-"+r,a.shift,a.preventDefault,a.stopPropagation)}return n}(t.reduce(((e,t)=>e.concat(t)),[]))),n}function tr(e,t,n){return ir(er(e.state),t,e,n)}let nr=null;const rr=4e3;function ir(e,t,n,i){let a=(0,o.YG)(t),s=(0,r.gm)(a,0),l=(0,r.nZ)(s)==a.length&&" "!=a,c="",u=!1,d=!1,h=!1;nr&&nr.view==n&&nr.scope==i&&(c=nr.prefix+" ",Ct.indexOf(t.keyCode)<0&&(d=!0,nr=null));let f,m,p=new Set,g=e=>{if(e){for(let r of e.run)if(!p.has(r)&&(p.add(r),r(n,t)))return e.stopPropagation&&(h=!0),!0;e.preventDefault&&(e.stopPropagation&&(h=!0),d=!0)}return!1},b=e[i];return b&&(g(b[c+Hn(a,t,!l)])?u=!0:l&&(t.altKey||t.metaKey||t.ctrlKey)&&!(B.windows&&t.ctrlKey&&t.altKey)&&(f=o.ue[t.keyCode])&&f!=a?(g(b[c+Hn(f,t,!0)])||t.shiftKey&&(m=o.uY[t.keyCode])!=a&&m!=f&&g(b[c+Hn(m,t,!1)]))&&(u=!0):l&&t.shiftKey&&g(b[c+Hn(a,t,!0)])&&(u=!0),!u&&g(b._any)&&(u=!0)),d&&(u=!0),u&&h&&t.stopPropagation(),u}class or{constructor(e,t,n,r,i){this.className=e,this.left=t,this.top=n,this.width=r,this.height=i}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,t){return t.className==this.className&&(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",null!=this.width&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,t,n){if(n.empty){let r=e.coordsAtPos(n.head,n.assoc||1);if(!r)return[];let i=ar(e);return[new or(t,r.left-i.left,r.top-i.top,null,r.bottom-r.top)]}return function(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),o=e.textDirection==Be.LTR,a=e.contentDOM,s=a.getBoundingClientRect(),l=ar(e),c=a.querySelector(".cm-line"),u=c&&window.getComputedStyle(c),d=s.left+(u?parseInt(u.paddingLeft)+Math.min(0,parseInt(u.textIndent)):0),h=s.right-(u?parseInt(u.paddingRight):0),f=kt(e,r),m=kt(e,i),p=f.type==ie.Text?f:null,g=m.type==ie.Text?m:null;p&&(e.lineWrapping||f.widgetLineBreaks)&&(p=sr(e,r,p));g&&(e.lineWrapping||m.widgetLineBreaks)&&(g=sr(e,i,g));if(p&&g&&p.from==g.from)return v(y(n.from,n.to,p));{let t=p?y(n.from,null,p):k(f,!1),r=g?y(null,n.to,g):k(m,!0),i=[];return(p||f).to<(g||m).from-(p&&g?1:0)||f.widgetLineBreaks>1&&t.bottom+e.defaultLineHeight/2c&&o.from=i)break;s>r&&l(Math.max(e,r),null==t&&e<=c,Math.min(s,i),null==n&&s>=u,a.dir)}if(r=o.to+1,r>=i)break}return 0==s.length&&l(c,null==t,u,null==n,e.textDirection),{top:i,bottom:a,horizontal:s}}function k(e,t){let n=s.top+(t?e.top:e.bottom);return{top:n,bottom:n,horizontal:[]}}}(e,t,n)}}function ar(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Be.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function sr(e,t,n){let i=r.jT.cursor(t);return{from:Math.max(n.from,e.moveToLineBoundary(i,!1,!0).from),to:Math.min(n.to,e.moveToLineBoundary(i,!0,!0).from),type:ie.Text}}class lr{constructor(e,t){this.view=e,this.layer=t,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),t.above&&this.dom.classList.add("cm-layer-above"),t.class&&this.dom.classList.add(t.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),t.mount&&t.mount(this.dom,e)}update(e){e.startState.facet(cr)!=e.state.facet(cr)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}setOrder(e){let t=0,n=e.facet(cr);for(;t{return n=e,r=this.drawn[t],!(n.constructor==r.constructor&&n.eq(r));var n,r}))){let t=this.dom.firstChild,n=0;for(let r of e)r.update&&t&&r.constructor&&this.drawn[n].constructor&&r.update(t,this.drawn[n])?(t=t.nextSibling,n++):this.dom.insertBefore(r.draw(),t);for(;t;){let e=t.nextSibling;t.remove(),t=e}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const cr=r.r$.define();function ur(e){return[Ce.define((t=>new lr(t,e))),cr.of(e)]}const dr=!B.ios,hr=r.r$.define({combine:e=>(0,r.BO)(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,t)=>Math.min(e,t),drawRangeCursor:(e,t)=>e||t})});function fr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[hr.of(e),gr,vr,kr,Oe.of(!0)]}function mr(e){return e.facet(hr)}function pr(e){return e.startState.facet(hr)!=e.state.facet(hr)}const gr=ur({above:!0,markers(e){let{state:t}=e,n=t.facet(hr),i=[];for(let o of t.selection.ranges){let a=o==t.selection.main;if(o.empty?!a||dr:n.drawRangeCursor){let t=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",n=o.empty?o:r.jT.cursor(o.head,o.head>o.anchor?-1:1);for(let r of or.forRange(e,t,n))i.push(r)}}return i},update(e,t){e.transactions.some((e=>e.selection))&&(t.style.animationName="cm-blink"==t.style.animationName?"cm-blink2":"cm-blink");let n=pr(e);return n&&br(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){br(t.state,e)},class:"cm-cursorLayer"});function br(e,t){t.style.animationDuration=e.facet(hr).cursorBlinkRate+"ms"}const vr=ur({above:!1,markers:e=>e.state.selection.ranges.map((t=>t.empty?[]:or.forRange(e,"cm-selectionBackground",t))).reduce(((e,t)=>e.concat(t))),update:(e,t)=>e.docChanged||e.selectionSet||e.viewportChanged||pr(e),class:"cm-selectionLayer"}),yr={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};dr&&(yr[".cm-line"].caretColor="transparent !important");const kr=r.Wl.highest(Fn.theme(yr)),wr=r.Py.define({map:(e,t)=>null==e?null:t.mapPos(e)}),Or=r.QQ.define({create:()=>null,update:(e,t)=>(null!=e&&(e=t.changes.mapPos(e)),t.effects.reduce(((e,t)=>t.is(wr)?t.value:e),e))}),xr=Ce.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(Or);null==n?null!=this.cursor&&(null===(t=this.cursor)||void 0===t||t.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(e.startState.field(Or)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(Or),n=null!=t&&e.coordsAtPos(t);if(!n)return null;let r=e.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+e.scrollDOM.scrollLeft*e.scaleX,top:n.top-r.top+e.scrollDOM.scrollTop*e.scaleY,height:n.bottom-n.top}}drawCursor(e){if(this.cursor){let{scaleX:t,scaleY:n}=this.view;e?(this.cursor.style.left=e.left/t+"px",this.cursor.style.top=e.top/n+"px",this.cursor.style.height=e.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(e){this.view.state.field(Or)!=e&&this.view.dispatch({effects:wr.of(e)})}},{eventObservers:{dragover(e){this.setDropPos(this.view.posAtCoords({x:e.clientX,y:e.clientY}))},dragleave(e){e.target!=this.view.contentDOM&&this.view.contentDOM.contains(e.relatedTarget)||this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function Sr(){return[Or,xr]}function _r(e,t,n,r,i){t.lastIndex=0;for(let o,a=e.iterRange(n,r),s=n;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}class Tr{constructor(e){const{regexp:t,decoration:n,decorate:r,boundary:i,maxLength:o=1e3}=e;if(!t.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=t,r)this.addMatch=(e,t,n,i)=>r(i,n,n+e[0].length,e,t);else if("function"==typeof n)this.addMatch=(e,t,r,i)=>{let o=n(e,t,r);o&&i(r,r+e[0].length,o)};else{if(!n)throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.addMatch=(e,t,r,i)=>i(r,r+e[0].length,n)}this.boundary=i,this.maxLength=o}createDeco(e){let t=new r.f_,n=t.add.bind(t);for(let{from:r,to:i}of function(e,t){let n=e.visibleRanges;if(1==n.length&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),o=Math.min(e.state.doc.lineAt(o).to,o+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}(e,this.maxLength))_r(e.state.doc,this.regexp,r,i,((t,r)=>this.addMatch(r,e,t,n)));return t.finish()}updateDeco(e,t){let n=1e9,r=-1;return e.docChanged&&e.changes.iterChanges(((t,i,o,a)=>{a>e.view.viewport.from&&o1e3?this.createDeco(e.view):r>-1?this.updateRange(e.view,t.map(e.changes),n,r):t}updateRange(e,t,n,r){for(let i of e.visibleRanges){let o=Math.max(i.from,n),a=Math.min(i.to,r);if(a>o){let n=e.state.doc.lineAt(o),r=n.ton.from;o--)if(this.boundary.test(n.text[o-1-n.from])){s=o;break}for(;au.push(n.range(e,t));if(n==r)for(this.regexp.lastIndex=s-n.from;(c=this.regexp.exec(n.text))&&c.indexthis.addMatch(n,e,t,d)));t=t.update({filterFrom:s,filterTo:l,filter:(e,t)=>el,add:u})}}return t}}const Er=null!=/x/.unicode?"gu":"g",$r=new RegExp("[\0-\b\n-\x1f\x7f-\x9f\xad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]",Er),Cr={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let Ar=null;const Pr=r.r$.define({combine(e){let t=(0,r.BO)(e,{render:null,specialChars:$r,addSpecialChars:null});return(t.replaceTabs=!function(){var e;if(null==Ar&&"undefined"!=typeof document&&document.body){let t=document.body.style;Ar=null!=(null!==(e=t.tabSize)&&void 0!==e?e:t.MozTabSize)}return Ar||!1}())&&(t.specialChars=new RegExp("\t|"+t.specialChars.source,Er)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,Er)),t}});function Rr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Pr.of(e),Ir||(Ir=Ce.fromClass(class{constructor(e){this.view=e,this.decorations=oe.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(Pr)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new Tr({regexp:e.specialChars,decoration:(t,n,i)=>{let{doc:o}=n.state,a=(0,r.gm)(t[0],0);if(9==a){let e=o.lineAt(i),t=n.state.tabSize,a=(0,r.IS)(e.text,t,i-e.from);return oe.replace({widget:new zr((t-a%t)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=oe.replace({widget:new Dr(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(Pr);e.startState.facet(Pr)!=t?(this.decorator=this.makeDecorator(t),this.decorations=this.decorator.createDeco(e.view)):this.decorations=this.decorator.updateDeco(e,this.decorations)}},{decorations:e=>e.decorations}))]}let Ir=null;class Dr extends re{constructor(e,t){super(),this.options=e,this.code=t}eq(e){return e.code==this.code}toDOM(e){let t=(n=this.code)>=32?"\u2022":10==n?"\u2424":String.fromCharCode(9216+n);var n;let r=e.state.phrase("Control character")+" "+(Cr[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,t);if(i)return i;let o=document.createElement("span");return o.textContent=t,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class zr extends re{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent="\t",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}const Nr=Ce.fromClass(class{constructor(){this.height=1e3,this.attrs={style:"padding-bottom: 1000px"}}update(e){let{view:t}=e,n=t.viewState.editorHeight*t.scaleY-t.defaultLineHeight-t.documentPadding.top-.5;n>=0&&n!=this.height&&(this.height=n,this.attrs={style:"padding-bottom: ".concat(n,"px")})}});function Lr(){return[Nr,Re.of((e=>{var t;return(null===(t=e.plugin(Nr))||void 0===t?void 0:t.attrs)||null}))]}function Mr(){return qr}const Qr=oe.line({class:"cm-activeLine"}),qr=Ce.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(Qr.range(i.from)),t=i.from)}return oe.set(n)}},{decorations:e=>e.decorations});class Wr extends re{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild("string"==typeof this.content?document.createTextNode(this.content):this.content),"string"==typeof this.content?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let t=e.firstChild?c(e.firstChild):[];if(!t.length)return null;let n=window.getComputedStyle(e.parentNode),r=m(t[0],"rtl"!=n.direction),i=parseInt(n.lineHeight);return r.bottom-r.top>1.5*i?{left:r.left,right:r.right,top:r.top,bottom:r.top+i}:r}ignoreEvent(){return!1}}function Br(e){return Ce.fromClass(class{constructor(t){this.view=t,this.placeholder=e?oe.set([oe.widget({widget:new Wr(e),side:1}).range(0)]):oe.none}get decorations(){return this.view.state.doc.length?oe.none:this.placeholder}},{decorations:e=>e.decorations})}const Ur=2e3;function Fr(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),i=e.state.doc.lineAt(n),o=n-i.from,a=o>Ur?-1:o==i.length?function(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}(e,t.clientX):(0,r.IS)(i.text,e.state.tabSize,n-i.from);return{line:i.number,col:a,off:o}}function jr(e,t){let n=Fr(e,t),i=e.state.selection;return n?{update(e){if(e.docChanged){let t=e.changes.mapPos(e.startState.doc.line(n.line).from),r=e.state.doc.lineAt(t);n={line:r.number,col:n.col,off:Math.min(n.off,r.length)},i=i.map(e.changes)}},get(t,o,a){let s=Fr(e,t);if(!s)return i;let l=function(e,t,n){let i=Math.min(t.line,n.line),o=Math.max(t.line,n.line),a=[];if(t.off>Ur||n.off>Ur||t.col<0||n.col<0){let s=Math.min(t.off,n.off),l=Math.max(t.off,n.off);for(let t=i;t<=o;t++){let n=e.doc.line(t);n.length<=l&&a.push(r.jT.range(n.from+s,n.to+l))}}else{let s=Math.min(t.col,n.col),l=Math.max(t.col,n.col);for(let t=i;t<=o;t++){let n=e.doc.line(t),i=(0,r.Gz)(n.text,s,e.tabSize,!0);if(i<0)a.push(r.jT.cursor(n.to));else{let t=(0,r.Gz)(n.text,l,e.tabSize);a.push(r.jT.range(n.from+i,n.from+t))}}}return a}(e.state,n,s);return l.length?a?r.jT.create(l.concat(i.ranges)):r.jT.create(l):i}}:null}function Vr(e){let t=(null===e||void 0===e?void 0:e.eventFilter)||(e=>e.altKey&&0==e.button);return Fn.mouseSelectionStyle.of(((e,n)=>t(n)?jr(e,n):null))}const Gr={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Xr={style:"cursor: crosshair"};function Zr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=Gr[e.key||"Alt"],r=Ce.fromClass(class{constructor(e){this.view=e,this.isDown=!1}set(e){this.isDown!=e&&(this.isDown=e,this.view.update([]))}},{eventObservers:{keydown(e){this.set(e.keyCode==t||n(e))},keyup(e){e.keyCode!=t&&n(e)||this.set(!1)},mousemove(e){this.set(n(e))}}});return[r,Fn.contentAttributes.of((e=>{var t;return(null===(t=e.plugin(r))||void 0===t?void 0:t.isDown)?Xr:null}))]}const Hr="-10000px";class Yr{constructor(e,t,n){this.facet=t,this.createTooltipView=n,this.input=e.state.facet(t),this.tooltips=this.input.filter((e=>e)),this.tooltipViews=this.tooltips.map(n)}update(e,t){var n;let r=e.state.facet(this.facet),i=r.filter((e=>e));if(r===this.input){for(let t of this.tooltipViews)t.update&&t.update(e);return!1}let o=[],a=t?[]:null;for(let s=0;st[n]=e)),t.length=a.length),this.input=r,this.tooltips=i,this.tooltipViews=o,!0}}function Jr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ei.of(e)}function Kr(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const ei=r.r$.define({combine:e=>{var t,n,r;return{position:B.ios?"absolute":(null===(t=e.find((e=>e.position)))||void 0===t?void 0:t.position)||"fixed",parent:(null===(n=e.find((e=>e.parent)))||void 0===n?void 0:n.parent)||null,tooltipSpace:(null===(r=e.find((e=>e.tooltipSpace)))||void 0===r?void 0:r.tooltipSpace)||Kr}}}),ti=new WeakMap,ni=Ce.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(ei);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.manager=new Yr(e,oi,(e=>this.createTooltip(e))),this.intersectionObserver="function"==typeof IntersectionObserver?new IntersectionObserver((e=>{Date.now()>this.lastTransaction-50&&e.length>0&&e[e.length-1].intersectionRatio<1&&this.measureSoon()}),{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1,this.maybeMeasure()}),50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(ei);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let e of this.manager.tooltipViews)e.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let e of this.manager.tooltipViews)this.container.appendChild(e.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(e){let t=e.create(this.view);if(t.dom.classList.add("cm-tooltip"),e.arrow&&!t.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let e=document.createElement("div");e.className="cm-tooltip-arrow",t.dom.appendChild(e)}return t.dom.style.position=this.position,t.dom.style.top=Hr,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),t}destroy(){var e,t;this.view.win.removeEventListener("resize",this.measureSoon);for(let n of this.manager.tooltipViews)n.dom.remove(),null===(e=n.destroy)||void 0===e||e.call(n);this.parent&&this.container.remove(),null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if("fixed"==this.position&&this.manager.tooltipViews.length){let{dom:e}=this.manager.tooltipViews[0];if(B.gecko)r=e.offsetParent!=this.container.ownerDocument.body;else if(1!=this.view.scaleX||1!=this.view.scaleY)r=!0;else if(e.style.top==Hr&&"0px"==e.style.left){let t=e.getBoundingClientRect();r=Math.abs(t.top+1e4)>1||Math.abs(t.left)>1}}if(r||"absolute"==this.position)if(this.parent){let e=this.parent.getBoundingClientRect();e.width&&e.height&&(t=e.width/this.parent.offsetWidth,n=e.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map(((e,t)=>{let n=this.manager.tooltipViews[t];return n.getCoords?n.getCoords(e.pos):this.view.coordsAtPos(e.pos)})),size:this.manager.tooltipViews.map((e=>{let{dom:t}=e;return t.getBoundingClientRect()})),space:this.view.state.facet(ei).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let e of this.manager.tooltipViews)e.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=e,a=[];for(let s=0;s=Math.min(n.bottom,r.bottom)||d.rightMath.min(n.right,r.right)+.1){u.style.top=Hr;continue}let f=l.arrow?c.dom.querySelector(".cm-tooltip-arrow"):null,m=f?7:0,p=h.right-h.left,g=null!==(t=ti.get(c))&&void 0!==t?t:h.bottom-h.top,b=c.offset||ii,v=this.view.textDirection==Be.LTR,y=h.width>r.right-r.left?v?r.left:r.right-h.width:v?Math.min(d.left-(f?14:0)+b.x,r.right-p):Math.max(r.left,d.left-p+(f?14:0)-b.x),k=this.above[s];!l.strictSide&&(k?d.top-(h.bottom-h.top)-b.yr.bottom)&&k==r.bottom-d.bottom>d.top-r.top&&(k=this.above[s]=!k);let w=(k?d.top-r.top:r.bottom-d.bottom)-m;if(wy&&e.topO&&(O=k?e.top-g-2-m:e.bottom+m+2);if("absolute"==this.position?(u.style.top=(O-e.parent.top)/o+"px",u.style.left=(y-e.parent.left)/i+"px"):(u.style.top=O/o+"px",u.style.left=y/i+"px"),f){let e=d.left+(v?b.x:-b.x)-(y+14-7);f.style.left=e/i+"px"}!0!==c.overlap&&a.push({left:y,top:O,right:x,bottom:O+g}),u.classList.toggle("cm-tooltip-above",k),u.classList.toggle("cm-tooltip-below",!k),c.positioned&&c.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=Hr}},{eventObservers:{scroll(){this.maybeMeasure()}}}),ri=Fn.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"".concat(7,"px"),width:"".concat(14,"px"),position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"".concat(7,"px solid transparent"),borderRight:"".concat(7,"px solid transparent")},".cm-tooltip-above &":{bottom:"-".concat(7,"px"),"&:before":{borderTop:"".concat(7,"px solid #bbb")},"&:after":{borderTop:"".concat(7,"px solid #f5f5f5"),bottom:"1px"}},".cm-tooltip-below &":{top:"-".concat(7,"px"),"&:before":{borderBottom:"".concat(7,"px solid #bbb")},"&:after":{borderBottom:"".concat(7,"px solid #f5f5f5"),top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),ii={x:0,y:0},oi=r.r$.define({enables:[ni,ri]}),ai=r.r$.define();class si{static create(e){return new si(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Yr(e,ai,(e=>this.createHostedView(e)))}createHostedView(e){let t=e.create(this.view);return t.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(t.dom),this.mounted&&t.mount&&t.mount(this.view),t}mount(e){for(let t of this.manager.tooltipViews)t.mount&&t.mount(e);this.mounted=!0}positioned(e){for(let t of this.manager.tooltipViews)t.positioned&&t.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let t of this.manager.tooltipViews)null===(e=t.destroy)||void 0===e||e.call(t)}passProp(e){let t;for(let n of this.manager.tooltipViews){let r=n[e];if(void 0!==r)if(void 0===t)t=r;else if(t!==r)return}return t}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const li=oi.compute([ai],(e=>{let t=e.facet(ai).filter((e=>e));return 0===t.length?null:{pos:Math.min(...t.map((e=>e.pos))),end:Math.max(...t.filter((e=>null!=e.end)).map((e=>e.end))),create:si.create,above:t[0].above,arrow:t.some((e=>e.arrow))}}));class ci{constructor(e,t,n,r,i){this.view=e,this.source=t,this.field=n,this.setHover=r,this.hoverTime=i,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout((()=>this.startHover()),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let e=Date.now()-this.lastMove.time;en.bottom||t.xn.right+e.defaultCharacterWidth)return;let o=e.bidiSpans(e.state.doc.lineAt(r)).find((e=>e.from<=r&&e.to>=r)),a=o&&o.dir==Be.RTL?-1:1;i=t.x{this.pending==t&&(this.pending=null,n&&e.dispatch({effects:this.setHover.of(n)}))}),(t=>_e(e.state,t,"hover tooltip")))}else o&&e.dispatch({effects:this.setHover.of(o)})}mousemove(e){var t;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let n=this.active;if(n&&!ui(this.lastMove.target)||this.pending){let{pos:r}=n||this.pending,i=null!==(t=null===n||void 0===n?void 0:n.end)&&void 0!==t?t:r;(r==i?this.view.posAtCoords(this.lastMove)==r:function(e,t,n,r,i,o){let a=e.scrollDOM.getBoundingClientRect(),s=e.documentTop+e.documentPadding.top+e.contentHeight;if(a.left>r||a.righti||Math.min(a.bottom,s)=t&&l<=n}(this.view,r,i,e.clientX,e.clientY))||(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1,this.active&&!ui(e.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}function ui(e){for(let t=e;t;t=t.parentNode)if(1==t.nodeType&&t.classList.contains("cm-tooltip"))return!0;return!1}function di(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.Py.define(),i=r.QQ.define({create:()=>null,update(e,i){if(e&&(t.hideOnChange&&(i.docChanged||i.selection)||t.hideOn&&t.hideOn(i,e)))return null;if(e&&i.docChanged){let t=i.changes.mapPos(e.pos,-1,r.gc.TrackDel);if(null==t)return null;let n=Object.assign(Object.create(null),e);n.pos=t,null!=e.end&&(n.end=i.changes.mapPos(e.end)),e=n}for(let t of i.effects)t.is(n)&&(e=t.value),t.is(mi)&&(e=null);return e},provide:e=>ai.from(e)});return[i,Ce.define((r=>new ci(r,e,i,n,t.hoverTime||300))),li]}function hi(e,t){let n=e.plugin(ni);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}function fi(e){return e.facet(ai).some((e=>e))}const mi=r.Py.define(),pi=mi.of(null);function gi(e){let t=e.plugin(ni);t&&t.maybeMeasure()}const bi=r.r$.define({combine(e){let t,n;for(let r of e)t=t||r.topContainer,n=n||r.bottomContainer;return{topContainer:t,bottomContainer:n}}});function vi(e){return e?[bi.of(e)]:[]}function yi(e,t){let n=e.plugin(ki),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const ki=Ce.fromClass(class{constructor(e){this.input=e.state.facet(xi),this.specs=this.input.filter((e=>e)),this.panels=this.specs.map((t=>t(e)));let t=e.state.facet(bi);this.top=new wi(e,!0,t.topContainer),this.bottom=new wi(e,!1,t.bottomContainer),this.top.sync(this.panels.filter((e=>e.top))),this.bottom.sync(this.panels.filter((e=>!e.top)));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(e){let t=e.state.facet(bi);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new wi(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new wi(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(xi);if(n!=this.input){let t=n.filter((e=>e)),r=[],i=[],o=[],a=[];for(let n of t){let t,s=this.specs.indexOf(n);s<0?(t=n(e.view),a.push(t)):(t=this.panels[s],t.update&&t.update(e)),r.push(t),(t.top?i:o).push(t)}this.specs=t,this.panels=r,this.top.sync(i),this.bottom.sync(o);for(let e of a)e.dom.classList.add("cm-panel"),e.mount&&e.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Fn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}}))});class wi{constructor(e,t,n){this.view=e,this.top=t,this.container=n,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let t of this.panels)t.destroy&&e.indexOf(t)<0&&t.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(0==this.panels.length)return void(this.dom&&(this.dom.remove(),this.dom=void 0));if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let e=this.container||this.view.dom;e.insertBefore(this.dom,this.top?e.firstChild:null)}let e=this.dom.firstChild;for(let t of this.panels)if(t.dom.parentNode==this.dom){for(;e!=t.dom;)e=Oi(e);e=e.nextSibling}else this.dom.insertBefore(t.dom,e);for(;e;)e=Oi(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(this.container&&this.classes!=this.view.themeClasses){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function Oi(e){let t=e.nextSibling;return e.remove(),t}const xi=r.r$.define({enables:ki});class Si extends r.uU{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}Si.prototype.elementClass="",Si.prototype.toDOM=void 0,Si.prototype.mapMode=r.gc.TrackBefore,Si.prototype.startSide=Si.prototype.endSide=-1,Si.prototype.point=!0;const _i=r.r$.define(),Ti={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>r.Xs.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Ei=r.r$.define();function $i(e){return[Ai(),Ei.of(Object.assign(Object.assign({},Ti),e))]}const Ci=r.r$.define({combine:e=>e.some((e=>e))});function Ai(e){let t=[Pi];return e&&!1===e.fixed&&t.push(Ci.of(!0)),t}const Pi=Ce.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(Ei).map((t=>new zi(e,t)));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(Ci),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),e.scrollDOM.insertBefore(this.dom,e.contentDOM)}update(e){if(this.updateGutters(e)){let t=this.prevViewport,n=e.view.viewport,r=Math.min(t.to,n.to)-Math.max(t.from,n.from);this.syncGutters(r<.8*(n.to-n.from))}e.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight+"px"),this.view.state.facet(Ci)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=e.view.viewport}syncGutters(e){let t=this.dom.nextSibling;e&&this.dom.remove();let n=r.Xs.iter(this.view.state.facet(_i),this.view.viewport.from),i=[],o=this.gutters.map((e=>new Di(e,this.view.viewport,-this.view.documentPadding.top)));for(let r of this.view.viewportLineBlocks)if(i.length&&(i=[]),Array.isArray(r.type)){let e=!0;for(let t of r.type)if(t.type==ie.Text&&e){Ii(n,i,t.from);for(let e of o)e.line(this.view,t,i);e=!1}else if(t.widget)for(let e of o)e.widget(this.view,t)}else if(r.type==ie.Text){Ii(n,i,r.from);for(let e of o)e.line(this.view,r,i)}else if(r.widget)for(let e of o)e.widget(this.view,r);for(let r of o)r.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Ei),n=e.state.facet(Ei),i=e.docChanged||e.heightChanged||e.viewportChanged||!r.Xs.eq(e.startState.facet(_i),e.state.facet(_i),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let r of this.gutters)r.update(e)&&(i=!0);else{i=!0;let r=[];for(let i of n){let n=t.indexOf(i);n<0?r.push(new zi(this.view,i)):(this.gutters[n].update(e),r.push(this.gutters[n]))}for(let e of this.gutters)e.dom.remove(),r.indexOf(e)<0&&e.destroy();for(let e of r)this.dom.appendChild(e.dom);this.gutters=r}return i}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Fn.scrollMargins.of((t=>{let n=t.plugin(e);return n&&0!=n.gutters.length&&n.fixed?t.textDirection==Be.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}:null}))});function Ri(e){return Array.isArray(e)?e:[e]}function Ii(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class Di{constructor(e,t,n){this.gutter=e,this.height=n,this.i=0,this.cursor=r.Xs.iter(e.markers,t.from)}addElement(e,t,n){let{gutter:r}=this,i=(t.top-this.height)/e.scaleY,o=t.height/e.scaleY;if(this.i==r.elements.length){let t=new Ni(e,o,i,n);r.elements.push(t),r.dom.appendChild(t.dom)}else r.elements[this.i].update(e,o,i,n);this.height=t.bottom,this.i++}line(e,t,n){let r=[];Ii(this.cursor,r,t.from),n.length&&(r=r.concat(n));let i=this.gutter.config.lineMarker(e,t,r);i&&r.unshift(i);let o=this.gutter;(0!=r.length||o.config.renderEmptyElements)&&this.addElement(e,t,r)}widget(e,t){let n=this.gutter.config.widgetMarker(e,t.widget,t);n&&this.addElement(e,t,[n])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let t=e.elements.pop();e.dom.removeChild(t.dom),t.destroy()}}}class zi{constructor(e,t){this.view=e,this.config=t,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let n in t.domEventHandlers)this.dom.addEventListener(n,(r=>{let i,o=r.target;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let e=o.getBoundingClientRect();i=(e.top+e.bottom)/2}else i=r.clientY;let a=e.lineBlockAtHeight(i-e.documentTop);t.domEventHandlers[n](e,a,r)&&r.preventDefault()}));this.markers=Ri(t.markers(e)),t.initialSpacer&&(this.spacer=new Ni(e,0,0,[t.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let t=this.markers;if(this.markers=Ri(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let t=this.config.updateSpacer(this.spacer.markers[0],e);t!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[t])}let n=e.view.viewport;return!r.Xs.eq(this.markers,t,n.from,n.to)||!!this.config.lineMarkerChange&&this.config.lineMarkerChange(e)}destroy(){for(let e of this.elements)e.destroy()}}class Ni{constructor(e,t,n,r){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,t,n,r)}update(e,t,n,r){this.height!=t&&(this.height=t,this.dom.style.height=t+"px"),this.above!=n&&(this.dom.style.marginTop=(this.above=n)?n+"px":""),function(e,t){if(e.length!=t.length)return!1;for(let n=0;n(0,r.BO)(e,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,t){let n=Object.assign({},e);for(let r in t){let e=n[r],i=t[r];n[r]=e?(t,n,r)=>e(t,n,r)||i(t,n,r):i}return n}})});class Qi extends Si{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function qi(e,t){return e.state.facet(Mi).formatNumber(t,e.state)}const Wi=Ei.compute([Mi],(e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers:e=>e.state.facet(Li),lineMarker:(e,t,n)=>n.some((e=>e.toDOM))?null:new Qi(qi(e,e.state.doc.lineAt(t.from).number)),widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Mi)!=e.state.facet(Mi),initialSpacer:e=>new Qi(qi(e,Ui(e.state.doc.lines))),updateSpacer(e,t){let n=qi(t.view,Ui(t.view.state.doc.lines));return n==e.number?e:new Qi(n)},domEventHandlers:e.facet(Mi).domEventHandlers})));function Bi(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Mi.of(e),Ai(),Wi]}function Ui(e){let t=9;for(;t{let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.head).from;i>n&&(n=i,t.push(Fi.range(i)))}return r.Xs.of(t)}));function Vi(){return ji}const Gi=new Map;function Xi(e){return Ce.define((t=>({decorations:e.createDeco(t),update(t){this.decorations=e.updateDeco(t,this.decorations)}})),{decorations:e=>e.decorations})}const Zi=Xi(new Tr({regexp:/\t| +/g,decoration:e=>function(e){let t=Gi.get(e);return t||Gi.set(e,t=oe.mark({attributes:"\t"===e?{class:"cm-highlightTab"}:{class:"cm-highlightSpace","data-display":e.replace(/ /g,"\xb7")}})),t}(e[0]),boundary:/\S/}));function Hi(){return Zi}const Yi=Xi(new Tr({regexp:/\s+$/g,decoration:oe.mark({class:"cm-trailingSpace"}),boundary:/\S/}));function Ji(){return Yi}const Ki={HeightMap:on,HeightOracle:Kt,MeasuredHeights:en,QueryType:nn,ChangedRange:qe,computeOrder:nt,moveVisually:ot}}}]); +//# sourceMappingURL=codemirror-vendor.5529399d.js.map \ No newline at end of file diff --git a/static/js/codemirror-vendor.5529399d.js.map b/static/js/codemirror-vendor.5529399d.js.map new file mode 100644 index 000000000..3f31886e7 --- /dev/null +++ b/static/js/codemirror-vendor.5529399d.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/codemirror-vendor.5529399d.js","mappings":"mSAOA,MAAMA,EAMFC,WAAAA,CAIAC,EAIAC,EAOAC,GACIC,KAAKH,MAAQA,EACbG,KAAKF,IAAMA,EACXE,KAAKD,SAAWA,EAIhBC,KAAKC,eAAiB,EAC1B,CAKAC,WAAAA,CAAYC,GACR,IAAIC,GAAQC,EAAAA,EAAAA,IAAWL,KAAKH,OAAOS,aAAaN,KAAKF,KAAM,GAC3D,KAAOM,GAASD,EAAMI,QAAQH,EAAMI,MAAQ,GACxCJ,EAAQA,EAAMK,OAClB,OAAOL,EAAQ,CAAEM,KAAMN,EAAMM,KAAMC,GAAIX,KAAKF,IACxCc,KAAMZ,KAAKH,MAAMgB,SAAST,EAAMM,KAAMV,KAAKF,KAC3CgB,KAAMV,EAAMU,MAAS,IAC7B,CAKAC,WAAAA,CAAYC,GACR,IAAIC,EAAOjB,KAAKH,MAAMqB,IAAIC,OAAOnB,KAAKF,KAClCsB,EAAQC,KAAKC,IAAIL,EAAKP,KAAMV,KAAKF,IAAM,KACvCyB,EAAMN,EAAKL,KAAKY,MAAMJ,EAAQH,EAAKP,KAAMV,KAAKF,IAAMmB,EAAKP,MACzDe,EAAQF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AAQ,CACtC,IAAIuqI,EAAU9nJ,EAAMqB,IAAIC,OAAOgN,EAAMmT,MAAM5gB,KACvCinJ,EAAUpoI,IACVA,EAAOooI,EACPhM,EAAM55I,KAAK6uK,GAAuBziK,MAAMw5I,IAEhD,CACA,OAAOtmI,EAAAA,GAASrS,GAAG2sI,EAAM,IAO7B,SAASm1B,KACL,OAAOD,EACX,CAEA,MAAME,GAA8B,IAAIrjI,IAcxC,SAASh6B,GAAQ0zJ,GACb,OAAO3uJ,GAAW7T,QAAO6E,IAAQ,CAC7BkV,YAAayoJ,EAAUlB,WAAWz8J,GAClC8F,MAAAA,CAAOiwG,GACHx/G,KAAK2e,YAAcyoJ,EAAUnsB,WAAWz7B,EAAGx/G,KAAK2e,YACpD,KACA,CACAA,YAAay9C,GAAKA,EAAEz9C,aAE5B,CACA,MAAMqyJ,GAAqCt9J,GAAqB,IAAIiyJ,GAAe,CAC/E9xH,OAAQ,SACR+xH,WAAY3iK,GAzBhB,SAA2B2G,GACvB,IAAIyU,EAAO0yJ,GAAe5rK,IAAIyE,GAU9B,OATKyU,GACD0yJ,GAAe3rK,IAAIwE,EAAOyU,EAAOR,GAAWM,KAAK,CAC7CypC,WAAsB,OAAVh+C,EAAiB,CACzBwB,MAAO,mBACP,CACAA,MAAO,oBACP,eAAgBxB,EAAMpH,QAAQ,KAAM,YAGzC6b,CACX,CAayB4yJ,CAAkBhuK,EAAM,IAC7C6iK,SAAU,QAQd,SAASoL,KACL,OAAOF,EACX,CACA,MAAMG,GAAmCz9J,GAAqB,IAAIiyJ,GAAe,CAC7E9xH,OAAQ,QACR+xH,WAAyB/nJ,GAAWM,KAAK,CAAE/S,MAAO,qBAClD06J,SAAU,QAMd,SAASsL,KACL,OAAOD,EACX,CAKA,MAAME,GAAS,CAAEhlB,aAAWlB,gBAAcY,mBAAiBv4B,aAAW4jB,gBAAc2C,gBAAcG,gB","sources":["../../node_modules/@codemirror/autocomplete/dist/index.js","../../node_modules/@codemirror/commands/dist/index.js","../../node_modules/@codemirror/lang-angular/dist/index.js","../../node_modules/@codemirror/lang-cpp/dist/index.js","../../node_modules/@codemirror/lang-css/dist/index.js","../../node_modules/@codemirror/lang-html/dist/index.js","../../node_modules/@codemirror/lang-java/dist/index.js","../../node_modules/@codemirror/lang-javascript/dist/index.js","../../node_modules/@codemirror/lang-json/dist/index.js","../../node_modules/@codemirror/lang-less/dist/index.js","../../node_modules/@codemirror/lang-lezer/dist/index.js","../../node_modules/@codemirror/lang-liquid/dist/index.js","../../node_modules/@codemirror/lang-markdown/dist/index.js","../../node_modules/@codemirror/lang-php/dist/index.js","../../node_modules/@codemirror/lang-python/dist/index.js","../../node_modules/@codemirror/lang-rust/dist/index.js","../../node_modules/@codemirror/lang-sass/dist/index.js","../../node_modules/@codemirror/lang-sql/dist/index.js","../../node_modules/@codemirror/lang-vue/dist/index.js","../../node_modules/@codemirror/lang-wast/dist/index.js","../../node_modules/@codemirror/lang-xml/dist/index.js","../../node_modules/@codemirror/language-data/dist/index.js","../../node_modules/@codemirror/language/dist/index.js","../../node_modules/@codemirror/legacy-modes/mode/apl.js","../../node_modules/@codemirror/legacy-modes/mode/asciiarmor.js","../../node_modules/@codemirror/legacy-modes/mode/asn1.js","../../node_modules/@codemirror/legacy-modes/mode/asterisk.js","../../node_modules/@codemirror/legacy-modes/mode/brainfuck.js","../../node_modules/@codemirror/legacy-modes/mode/clike.js","../../node_modules/@codemirror/legacy-modes/mode/clojure.js","../../node_modules/@codemirror/legacy-modes/mode/cmake.js","../../node_modules/@codemirror/legacy-modes/mode/cobol.js","../../node_modules/@codemirror/legacy-modes/mode/coffeescript.js","../../node_modules/@codemirror/legacy-modes/mode/commonlisp.js","../../node_modules/@codemirror/legacy-modes/mode/crystal.js","../../node_modules/@codemirror/legacy-modes/mode/css.js","../../node_modules/@codemirror/legacy-modes/mode/cypher.js","../../node_modules/@codemirror/legacy-modes/mode/d.js","../../node_modules/@codemirror/legacy-modes/mode/diff.js","../../node_modules/@codemirror/legacy-modes/mode/dockerfile.js","../../node_modules/@codemirror/legacy-modes/mode/dtd.js","../../node_modules/@codemirror/legacy-modes/mode/dylan.js","../../node_modules/@codemirror/legacy-modes/mode/ebnf.js","../../node_modules/@codemirror/legacy-modes/mode/ecl.js","../../node_modules/@codemirror/legacy-modes/mode/eiffel.js","../../node_modules/@codemirror/legacy-modes/mode/elm.js","../../node_modules/@codemirror/legacy-modes/mode/erlang.js","../../node_modules/@codemirror/legacy-modes/mode/factor.js","../../node_modules/@codemirror/legacy-modes/mode/fcl.js","../../node_modules/@codemirror/legacy-modes/mode/forth.js","../../node_modules/@codemirror/legacy-modes/mode/fortran.js","../../node_modules/@codemirror/legacy-modes/mode/gas.js","../../node_modules/@codemirror/legacy-modes/mode/gherkin.js","../../node_modules/@codemirror/legacy-modes/mode/go.js","../../node_modules/@codemirror/legacy-modes/mode/groovy.js","../../node_modules/@codemirror/legacy-modes/mode/haskell.js","../../node_modules/@codemirror/legacy-modes/mode/haxe.js","../../node_modules/@codemirror/legacy-modes/mode/http.js","../../node_modules/@codemirror/legacy-modes/mode/idl.js","../../node_modules/@codemirror/legacy-modes/mode/javascript.js","../../node_modules/@codemirror/legacy-modes/mode/jinja2.js","../../node_modules/@codemirror/legacy-modes/mode/julia.js","../../node_modules/@codemirror/legacy-modes/mode/livescript.js","../../node_modules/@codemirror/legacy-modes/mode/lua.js","../../node_modules/@codemirror/legacy-modes/mode/mathematica.js","../../node_modules/@codemirror/legacy-modes/mode/mbox.js","../../node_modules/@codemirror/legacy-modes/mode/mirc.js","../../node_modules/@codemirror/legacy-modes/mode/mllike.js","../../node_modules/@codemirror/legacy-modes/mode/modelica.js","../../node_modules/@codemirror/legacy-modes/mode/mscgen.js","../../node_modules/@codemirror/legacy-modes/mode/mumps.js","../../node_modules/@codemirror/legacy-modes/mode/nginx.js","../../node_modules/@codemirror/legacy-modes/mode/nsis.js","../../node_modules/@codemirror/legacy-modes/mode/ntriples.js","../../node_modules/@codemirror/legacy-modes/mode/octave.js","../../node_modules/@codemirror/legacy-modes/mode/oz.js","../../node_modules/@codemirror/legacy-modes/mode/pascal.js","../../node_modules/@codemirror/legacy-modes/mode/perl.js","../../node_modules/@codemirror/legacy-modes/mode/pig.js","../../node_modules/@codemirror/legacy-modes/mode/powershell.js","../../node_modules/@codemirror/legacy-modes/mode/properties.js","../../node_modules/@codemirror/legacy-modes/mode/protobuf.js","../../node_modules/@codemirror/legacy-modes/mode/puppet.js","../../node_modules/@codemirror/legacy-modes/mode/python.js","../../node_modules/@codemirror/legacy-modes/mode/q.js","../../node_modules/@codemirror/legacy-modes/mode/r.js","../../node_modules/@codemirror/legacy-modes/mode/rpm.js","../../node_modules/@codemirror/legacy-modes/mode/ruby.js","../../node_modules/@codemirror/legacy-modes/mode/sas.js","../../node_modules/@codemirror/legacy-modes/mode/scheme.js","../../node_modules/@codemirror/legacy-modes/mode/shell.js","../../node_modules/@codemirror/legacy-modes/mode/sieve.js","../../node_modules/@codemirror/legacy-modes/mode/simple-mode.js","../../node_modules/@codemirror/legacy-modes/mode/smalltalk.js","../../node_modules/@codemirror/legacy-modes/mode/solr.js","../../node_modules/@codemirror/legacy-modes/mode/sparql.js","../../node_modules/@codemirror/legacy-modes/mode/spreadsheet.js","../../node_modules/@codemirror/legacy-modes/mode/sql.js","../../node_modules/@codemirror/legacy-modes/mode/stex.js","../../node_modules/@codemirror/legacy-modes/mode/stylus.js","../../node_modules/@codemirror/legacy-modes/mode/swift.js","../../node_modules/@codemirror/legacy-modes/mode/tcl.js","../../node_modules/@codemirror/legacy-modes/mode/textile.js","../../node_modules/@codemirror/legacy-modes/mode/tiddlywiki.js","../../node_modules/@codemirror/legacy-modes/mode/tiki.js","../../node_modules/@codemirror/legacy-modes/mode/toml.js","../../node_modules/@codemirror/legacy-modes/mode/troff.js","../../node_modules/@codemirror/legacy-modes/mode/ttcn-cfg.js","../../node_modules/@codemirror/legacy-modes/mode/ttcn.js","../../node_modules/@codemirror/legacy-modes/mode/turtle.js","../../node_modules/@codemirror/legacy-modes/mode/vb.js","../../node_modules/@codemirror/legacy-modes/mode/vbscript.js","../../node_modules/@codemirror/legacy-modes/mode/velocity.js","../../node_modules/@codemirror/legacy-modes/mode/verilog.js","../../node_modules/@codemirror/legacy-modes/mode/vhdl.js","../../node_modules/@codemirror/legacy-modes/mode/webidl.js","../../node_modules/@codemirror/legacy-modes/mode/xquery.js","../../node_modules/@codemirror/legacy-modes/mode/yacas.js","../../node_modules/@codemirror/legacy-modes/mode/yaml.js","../../node_modules/@codemirror/legacy-modes/mode/z80.js","../../node_modules/@codemirror/lint/dist/index.js","../../node_modules/@codemirror/merge/dist/index.js","../../node_modules/@codemirror/search/dist/index.js","../../node_modules/@codemirror/state/dist/index.js","../../node_modules/@codemirror/theme-one-dark/dist/index.js","../../node_modules/@codemirror/view/dist/index.js"],"sourcesContent":["import { Annotation, StateEffect, EditorSelection, codePointAt, codePointSize, fromCodePoint, Facet, combineConfig, StateField, Prec, Text, MapMode, RangeValue, RangeSet, CharCategory } from '@codemirror/state';\nimport { Direction, logException, showTooltip, EditorView, ViewPlugin, getTooltip, Decoration, WidgetType, keymap } from '@codemirror/view';\nimport { syntaxTree, indentUnit } from '@codemirror/language';\n\n/**\nAn instance of this is passed to completion source functions.\n*/\nclass CompletionContext {\n /**\n Create a new completion context. (Mostly useful for testing\n completion sources—in the editor, the extension will create\n these for you.)\n */\n constructor(\n /**\n The editor state that the completion happens in.\n */\n state, \n /**\n The position at which the completion is happening.\n */\n pos, \n /**\n Indicates whether completion was activated explicitly, or\n implicitly by typing. The usual way to respond to this is to\n only return completions when either there is part of a\n completable entity before the cursor, or `explicit` is true.\n */\n explicit) {\n this.state = state;\n this.pos = pos;\n this.explicit = explicit;\n /**\n @internal\n */\n this.abortListeners = [];\n }\n /**\n Get the extent, content, and (if there is a token) type of the\n token before `this.pos`.\n */\n tokenBefore(types) {\n let token = syntaxTree(this.state).resolveInner(this.pos, -1);\n while (token && types.indexOf(token.name) < 0)\n token = token.parent;\n return token ? { from: token.from, to: this.pos,\n text: this.state.sliceDoc(token.from, this.pos),\n type: token.type } : null;\n }\n /**\n Get the match of the given expression directly before the\n cursor.\n */\n matchBefore(expr) {\n let line = this.state.doc.lineAt(this.pos);\n let start = Math.max(line.from, this.pos - 250);\n let str = line.text.slice(start - line.from, this.pos - line.from);\n let found = str.search(ensureAnchor(expr, false));\n return found < 0 ? null : { from: start + found, to: this.pos, text: str.slice(found) };\n }\n /**\n Yields true when the query has been aborted. Can be useful in\n asynchronous queries to avoid doing work that will be ignored.\n */\n get aborted() { return this.abortListeners == null; }\n /**\n Allows you to register abort handlers, which will be called when\n the query is\n [aborted](https://codemirror.net/6/docs/ref/#autocomplete.CompletionContext.aborted).\n */\n addEventListener(type, listener) {\n if (type == \"abort\" && this.abortListeners)\n this.abortListeners.push(listener);\n }\n}\nfunction toSet(chars) {\n let flat = Object.keys(chars).join(\"\");\n let words = /\\w/.test(flat);\n if (words)\n flat = flat.replace(/\\w/g, \"\");\n return `[${words ? \"\\\\w\" : \"\"}${flat.replace(/[^\\w\\s]/g, \"\\\\$&\")}]`;\n}\nfunction prefixMatch(options) {\n let first = Object.create(null), rest = Object.create(null);\n for (let { label } of options) {\n first[label[0]] = true;\n for (let i = 1; i < label.length; i++)\n rest[label[i]] = true;\n }\n let source = toSet(first) + toSet(rest) + \"*$\";\n return [new RegExp(\"^\" + source), new RegExp(source)];\n}\n/**\nGiven a a fixed array of options, return an autocompleter that\ncompletes them.\n*/\nfunction completeFromList(list) {\n let options = list.map(o => typeof o == \"string\" ? { label: o } : o);\n let [validFor, match] = options.every(o => /^\\w+$/.test(o.label)) ? [/\\w*$/, /\\w+$/] : prefixMatch(options);\n return (context) => {\n let token = context.matchBefore(match);\n return token || context.explicit ? { from: token ? token.from : context.pos, options, validFor } : null;\n };\n}\n/**\nWrap the given completion source so that it will only fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifIn(nodes, source) {\n return (context) => {\n for (let pos = syntaxTree(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return source(context);\n if (pos.type.isTop)\n break;\n }\n return null;\n };\n}\n/**\nWrap the given completion source so that it will not fire when the\ncursor is in a syntax node with one of the given names.\n*/\nfunction ifNotIn(nodes, source) {\n return (context) => {\n for (let pos = syntaxTree(context.state).resolveInner(context.pos, -1); pos; pos = pos.parent) {\n if (nodes.indexOf(pos.name) > -1)\n return null;\n if (pos.type.isTop)\n break;\n }\n return source(context);\n };\n}\nclass Option {\n constructor(completion, source, match, score) {\n this.completion = completion;\n this.source = source;\n this.match = match;\n this.score = score;\n }\n}\nfunction cur(state) { return state.selection.main.from; }\n// Make sure the given regexp has a $ at its end and, if `start` is\n// true, a ^ at its start.\nfunction ensureAnchor(expr, start) {\n var _a;\n let { source } = expr;\n let addStart = start && source[0] != \"^\", addEnd = source[source.length - 1] != \"$\";\n if (!addStart && !addEnd)\n return expr;\n return new RegExp(`${addStart ? \"^\" : \"\"}(?:${source})${addEnd ? \"$\" : \"\"}`, (_a = expr.flags) !== null && _a !== void 0 ? _a : (expr.ignoreCase ? \"i\" : \"\"));\n}\n/**\nThis annotation is added to transactions that are produced by\npicking a completion.\n*/\nconst pickedCompletion = /*@__PURE__*/Annotation.define();\n/**\nHelper function that returns a transaction spec which inserts a\ncompletion's text in the main selection range, and any other\nselection range that has the same text in front of it.\n*/\nfunction insertCompletionText(state, text, from, to) {\n let { main } = state.selection, fromOff = from - main.from, toOff = to - main.from;\n return Object.assign(Object.assign({}, state.changeByRange(range => {\n if (range != main && from != to &&\n state.sliceDoc(range.from + fromOff, range.from + toOff) != state.sliceDoc(from, to))\n return { range };\n return {\n changes: { from: range.from + fromOff, to: to == main.from ? range.to : range.from + toOff, insert: text },\n range: EditorSelection.cursor(range.from + fromOff + text.length)\n };\n })), { scrollIntoView: true, userEvent: \"input.complete\" });\n}\nconst SourceCache = /*@__PURE__*/new WeakMap();\nfunction asSource(source) {\n if (!Array.isArray(source))\n return source;\n let known = SourceCache.get(source);\n if (!known)\n SourceCache.set(source, known = completeFromList(source));\n return known;\n}\nconst startCompletionEffect = /*@__PURE__*/StateEffect.define();\nconst closeCompletionEffect = /*@__PURE__*/StateEffect.define();\n\n// A pattern matcher for fuzzy completion matching. Create an instance\n// once for a pattern, and then use that to match any number of\n// completions.\nclass FuzzyMatcher {\n constructor(pattern) {\n this.pattern = pattern;\n this.chars = [];\n this.folded = [];\n // Buffers reused by calls to `match` to track matched character\n // positions.\n this.any = [];\n this.precise = [];\n this.byWord = [];\n this.score = 0;\n this.matched = [];\n for (let p = 0; p < pattern.length;) {\n let char = codePointAt(pattern, p), size = codePointSize(char);\n this.chars.push(char);\n let part = pattern.slice(p, p + size), upper = part.toUpperCase();\n this.folded.push(codePointAt(upper == part ? part.toLowerCase() : upper, 0));\n p += size;\n }\n this.astral = pattern.length != this.chars.length;\n }\n ret(score, matched) {\n this.score = score;\n this.matched = matched;\n return true;\n }\n // Matches a given word (completion) against the pattern (input).\n // Will return a boolean indicating whether there was a match and,\n // on success, set `this.score` to the score, `this.matched` to an\n // array of `from, to` pairs indicating the matched parts of `word`.\n //\n // The score is a number that is more negative the worse the match\n // is. See `Penalty` above.\n match(word) {\n if (this.pattern.length == 0)\n return this.ret(-100 /* Penalty.NotFull */, []);\n if (word.length < this.pattern.length)\n return false;\n let { chars, folded, any, precise, byWord } = this;\n // For single-character queries, only match when they occur right\n // at the start\n if (chars.length == 1) {\n let first = codePointAt(word, 0), firstSize = codePointSize(first);\n let score = firstSize == word.length ? 0 : -100 /* Penalty.NotFull */;\n if (first == chars[0]) ;\n else if (first == folded[0])\n score += -200 /* Penalty.CaseFold */;\n else\n return false;\n return this.ret(score, [0, firstSize]);\n }\n let direct = word.indexOf(this.pattern);\n if (direct == 0)\n return this.ret(word.length == this.pattern.length ? 0 : -100 /* Penalty.NotFull */, [0, this.pattern.length]);\n let len = chars.length, anyTo = 0;\n if (direct < 0) {\n for (let i = 0, e = Math.min(word.length, 200); i < e && anyTo < len;) {\n let next = codePointAt(word, i);\n if (next == chars[anyTo] || next == folded[anyTo])\n any[anyTo++] = i;\n i += codePointSize(next);\n }\n // No match, exit immediately\n if (anyTo < len)\n return false;\n }\n // This tracks the extent of the precise (non-folded, not\n // necessarily adjacent) match\n let preciseTo = 0;\n // Tracks whether there is a match that hits only characters that\n // appear to be starting words. `byWordFolded` is set to true when\n // a case folded character is encountered in such a match\n let byWordTo = 0, byWordFolded = false;\n // If we've found a partial adjacent match, these track its state\n let adjacentTo = 0, adjacentStart = -1, adjacentEnd = -1;\n let hasLower = /[a-z]/.test(word), wordAdjacent = true;\n // Go over the option's text, scanning for the various kinds of matches\n for (let i = 0, e = Math.min(word.length, 200), prevType = 0 /* Tp.NonWord */; i < e && byWordTo < len;) {\n let next = codePointAt(word, i);\n if (direct < 0) {\n if (preciseTo < len && next == chars[preciseTo])\n precise[preciseTo++] = i;\n if (adjacentTo < len) {\n if (next == chars[adjacentTo] || next == folded[adjacentTo]) {\n if (adjacentTo == 0)\n adjacentStart = i;\n adjacentEnd = i + 1;\n adjacentTo++;\n }\n else {\n adjacentTo = 0;\n }\n }\n }\n let ch, type = next < 0xff\n ? (next >= 48 && next <= 57 || next >= 97 && next <= 122 ? 2 /* Tp.Lower */ : next >= 65 && next <= 90 ? 1 /* Tp.Upper */ : 0 /* Tp.NonWord */)\n : ((ch = fromCodePoint(next)) != ch.toLowerCase() ? 1 /* Tp.Upper */ : ch != ch.toUpperCase() ? 2 /* Tp.Lower */ : 0 /* Tp.NonWord */);\n if (!i || type == 1 /* Tp.Upper */ && hasLower || prevType == 0 /* Tp.NonWord */ && type != 0 /* Tp.NonWord */) {\n if (chars[byWordTo] == next || (folded[byWordTo] == next && (byWordFolded = true)))\n byWord[byWordTo++] = i;\n else if (byWord.length)\n wordAdjacent = false;\n }\n prevType = type;\n i += codePointSize(next);\n }\n if (byWordTo == len && byWord[0] == 0 && wordAdjacent)\n return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0), byWord, word);\n if (adjacentTo == len && adjacentStart == 0)\n return this.ret(-200 /* Penalty.CaseFold */ - word.length + (adjacentEnd == word.length ? 0 : -100 /* Penalty.NotFull */), [0, adjacentEnd]);\n if (direct > -1)\n return this.ret(-700 /* Penalty.NotStart */ - word.length, [direct, direct + this.pattern.length]);\n if (adjacentTo == len)\n return this.ret(-200 /* Penalty.CaseFold */ + -700 /* Penalty.NotStart */ - word.length, [adjacentStart, adjacentEnd]);\n if (byWordTo == len)\n return this.result(-100 /* Penalty.ByWord */ + (byWordFolded ? -200 /* Penalty.CaseFold */ : 0) + -700 /* Penalty.NotStart */ +\n (wordAdjacent ? 0 : -1100 /* Penalty.Gap */), byWord, word);\n return chars.length == 2 ? false\n : this.result((any[0] ? -700 /* Penalty.NotStart */ : 0) + -200 /* Penalty.CaseFold */ + -1100 /* Penalty.Gap */, any, word);\n }\n result(score, positions, word) {\n let result = [], i = 0;\n for (let pos of positions) {\n let to = pos + (this.astral ? codePointSize(codePointAt(word, pos)) : 1);\n if (i && result[i - 1] == pos)\n result[i - 1] = to;\n else {\n result[i++] = pos;\n result[i++] = to;\n }\n }\n return this.ret(score - word.length, result);\n }\n}\n\nconst completionConfig = /*@__PURE__*/Facet.define({\n combine(configs) {\n return combineConfig(configs, {\n activateOnTyping: true,\n selectOnOpen: true,\n override: null,\n closeOnBlur: true,\n maxRenderedOptions: 100,\n defaultKeymap: true,\n tooltipClass: () => \"\",\n optionClass: () => \"\",\n aboveCursor: false,\n icons: true,\n addToOptions: [],\n positionInfo: defaultPositionInfo,\n compareCompletions: (a, b) => a.label.localeCompare(b.label),\n interactionDelay: 75,\n updateSyncTime: 100\n }, {\n defaultKeymap: (a, b) => a && b,\n closeOnBlur: (a, b) => a && b,\n icons: (a, b) => a && b,\n tooltipClass: (a, b) => c => joinClass(a(c), b(c)),\n optionClass: (a, b) => c => joinClass(a(c), b(c)),\n addToOptions: (a, b) => a.concat(b)\n });\n }\n});\nfunction joinClass(a, b) {\n return a ? b ? a + \" \" + b : a : b;\n}\nfunction defaultPositionInfo(view, list, option, info, space, tooltip) {\n let rtl = view.textDirection == Direction.RTL, left = rtl, narrow = false;\n let side = \"top\", offset, maxWidth;\n let spaceLeft = list.left - space.left, spaceRight = space.right - list.right;\n let infoWidth = info.right - info.left, infoHeight = info.bottom - info.top;\n if (left && spaceLeft < Math.min(infoWidth, spaceRight))\n left = false;\n else if (!left && spaceRight < Math.min(infoWidth, spaceLeft))\n left = true;\n if (infoWidth <= (left ? spaceLeft : spaceRight)) {\n offset = Math.max(space.top, Math.min(option.top, space.bottom - infoHeight)) - list.top;\n maxWidth = Math.min(400 /* Info.Width */, left ? spaceLeft : spaceRight);\n }\n else {\n narrow = true;\n maxWidth = Math.min(400 /* Info.Width */, (rtl ? list.right : space.right - list.left) - 30 /* Info.Margin */);\n let spaceBelow = space.bottom - list.bottom;\n if (spaceBelow >= infoHeight || spaceBelow > list.top) { // Below the completion\n offset = option.bottom - list.top;\n }\n else { // Above it\n side = \"bottom\";\n offset = list.bottom - option.top;\n }\n }\n let scaleY = (list.bottom - list.top) / tooltip.offsetHeight;\n let scaleX = (list.right - list.left) / tooltip.offsetWidth;\n return {\n style: `${side}: ${offset / scaleY}px; max-width: ${maxWidth / scaleX}px`,\n class: \"cm-completionInfo-\" + (narrow ? (rtl ? \"left-narrow\" : \"right-narrow\") : left ? \"left\" : \"right\")\n };\n}\n\nfunction optionContent(config) {\n let content = config.addToOptions.slice();\n if (config.icons)\n content.push({\n render(completion) {\n let icon = document.createElement(\"div\");\n icon.classList.add(\"cm-completionIcon\");\n if (completion.type)\n icon.classList.add(...completion.type.split(/\\s+/g).map(cls => \"cm-completionIcon-\" + cls));\n icon.setAttribute(\"aria-hidden\", \"true\");\n return icon;\n },\n position: 20\n });\n content.push({\n render(completion, _s, _v, match) {\n let labelElt = document.createElement(\"span\");\n labelElt.className = \"cm-completionLabel\";\n let label = completion.displayLabel || completion.label, off = 0;\n for (let j = 0; j < match.length;) {\n let from = match[j++], to = match[j++];\n if (from > off)\n labelElt.appendChild(document.createTextNode(label.slice(off, from)));\n let span = labelElt.appendChild(document.createElement(\"span\"));\n span.appendChild(document.createTextNode(label.slice(from, to)));\n span.className = \"cm-completionMatchedText\";\n off = to;\n }\n if (off < label.length)\n labelElt.appendChild(document.createTextNode(label.slice(off)));\n return labelElt;\n },\n position: 50\n }, {\n render(completion) {\n if (!completion.detail)\n return null;\n let detailElt = document.createElement(\"span\");\n detailElt.className = \"cm-completionDetail\";\n detailElt.textContent = completion.detail;\n return detailElt;\n },\n position: 80\n });\n return content.sort((a, b) => a.position - b.position).map(a => a.render);\n}\nfunction rangeAroundSelected(total, selected, max) {\n if (total <= max)\n return { from: 0, to: total };\n if (selected < 0)\n selected = 0;\n if (selected <= (total >> 1)) {\n let off = Math.floor(selected / max);\n return { from: off * max, to: (off + 1) * max };\n }\n let off = Math.floor((total - selected) / max);\n return { from: total - (off + 1) * max, to: total - off * max };\n}\nclass CompletionTooltip {\n constructor(view, stateField, applyCompletion) {\n this.view = view;\n this.stateField = stateField;\n this.applyCompletion = applyCompletion;\n this.info = null;\n this.infoDestroy = null;\n this.placeInfoReq = {\n read: () => this.measureInfo(),\n write: (pos) => this.placeInfo(pos),\n key: this\n };\n this.space = null;\n this.currentClass = \"\";\n let cState = view.state.field(stateField);\n let { options, selected } = cState.open;\n let config = view.state.facet(completionConfig);\n this.optionContent = optionContent(config);\n this.optionClass = config.optionClass;\n this.tooltipClass = config.tooltipClass;\n this.range = rangeAroundSelected(options.length, selected, config.maxRenderedOptions);\n this.dom = document.createElement(\"div\");\n this.dom.className = \"cm-tooltip-autocomplete\";\n this.updateTooltipClass(view.state);\n this.dom.addEventListener(\"mousedown\", (e) => {\n let { options } = view.state.field(stateField).open;\n for (let dom = e.target, match; dom && dom != this.dom; dom = dom.parentNode) {\n if (dom.nodeName == \"LI\" && (match = /-(\\d+)$/.exec(dom.id)) && +match[1] < options.length) {\n this.applyCompletion(view, options[+match[1]]);\n e.preventDefault();\n return;\n }\n }\n });\n this.dom.addEventListener(\"focusout\", (e) => {\n let state = view.state.field(this.stateField, false);\n if (state && state.tooltip && view.state.facet(completionConfig).closeOnBlur &&\n e.relatedTarget != view.contentDOM)\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n });\n this.showOptions(options, cState.id);\n }\n mount() { this.updateSel(); }\n showOptions(options, id) {\n if (this.list)\n this.list.remove();\n this.list = this.dom.appendChild(this.createListBox(options, id, this.range));\n this.list.addEventListener(\"scroll\", () => {\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n });\n }\n update(update) {\n var _a;\n let cState = update.state.field(this.stateField);\n let prevState = update.startState.field(this.stateField);\n this.updateTooltipClass(update.state);\n if (cState != prevState) {\n let { options, selected, disabled } = cState.open;\n if (!prevState.open || prevState.open.options != options) {\n this.range = rangeAroundSelected(options.length, selected, update.state.facet(completionConfig).maxRenderedOptions);\n this.showOptions(options, cState.id);\n }\n this.updateSel();\n if (disabled != ((_a = prevState.open) === null || _a === void 0 ? void 0 : _a.disabled))\n this.dom.classList.toggle(\"cm-tooltip-autocomplete-disabled\", !!disabled);\n }\n }\n updateTooltipClass(state) {\n let cls = this.tooltipClass(state);\n if (cls != this.currentClass) {\n for (let c of this.currentClass.split(\" \"))\n if (c)\n this.dom.classList.remove(c);\n for (let c of cls.split(\" \"))\n if (c)\n this.dom.classList.add(c);\n this.currentClass = cls;\n }\n }\n positioned(space) {\n this.space = space;\n if (this.info)\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSel() {\n let cState = this.view.state.field(this.stateField), open = cState.open;\n if (open.selected > -1 && open.selected < this.range.from || open.selected >= this.range.to) {\n this.range = rangeAroundSelected(open.options.length, open.selected, this.view.state.facet(completionConfig).maxRenderedOptions);\n this.showOptions(open.options, cState.id);\n }\n if (this.updateSelectedOption(open.selected)) {\n this.destroyInfo();\n let { completion } = open.options[open.selected];\n let { info } = completion;\n if (!info)\n return;\n let infoResult = typeof info === \"string\" ? document.createTextNode(info) : info(completion);\n if (!infoResult)\n return;\n if (\"then\" in infoResult) {\n infoResult.then(obj => {\n if (obj && this.view.state.field(this.stateField, false) == cState)\n this.addInfoPane(obj, completion);\n }).catch(e => logException(this.view.state, e, \"completion info\"));\n }\n else {\n this.addInfoPane(infoResult, completion);\n }\n }\n }\n addInfoPane(content, completion) {\n this.destroyInfo();\n let wrap = this.info = document.createElement(\"div\");\n wrap.className = \"cm-tooltip cm-completionInfo\";\n if (content.nodeType != null) {\n wrap.appendChild(content);\n this.infoDestroy = null;\n }\n else {\n let { dom, destroy } = content;\n wrap.appendChild(dom);\n this.infoDestroy = destroy || null;\n }\n this.dom.appendChild(wrap);\n this.view.requestMeasure(this.placeInfoReq);\n }\n updateSelectedOption(selected) {\n let set = null;\n for (let opt = this.list.firstChild, i = this.range.from; opt; opt = opt.nextSibling, i++) {\n if (opt.nodeName != \"LI\" || !opt.id) {\n i--; // A section header\n }\n else if (i == selected) {\n if (!opt.hasAttribute(\"aria-selected\")) {\n opt.setAttribute(\"aria-selected\", \"true\");\n set = opt;\n }\n }\n else {\n if (opt.hasAttribute(\"aria-selected\"))\n opt.removeAttribute(\"aria-selected\");\n }\n }\n if (set)\n scrollIntoView(this.list, set);\n return set;\n }\n measureInfo() {\n let sel = this.dom.querySelector(\"[aria-selected]\");\n if (!sel || !this.info)\n return null;\n let listRect = this.dom.getBoundingClientRect();\n let infoRect = this.info.getBoundingClientRect();\n let selRect = sel.getBoundingClientRect();\n let space = this.space;\n if (!space) {\n let win = this.dom.ownerDocument.defaultView || window;\n space = { left: 0, top: 0, right: win.innerWidth, bottom: win.innerHeight };\n }\n if (selRect.top > Math.min(space.bottom, listRect.bottom) - 10 ||\n selRect.bottom < Math.max(space.top, listRect.top) + 10)\n return null;\n return this.view.state.facet(completionConfig).positionInfo(this.view, listRect, selRect, infoRect, space, this.dom);\n }\n placeInfo(pos) {\n if (this.info) {\n if (pos) {\n if (pos.style)\n this.info.style.cssText = pos.style;\n this.info.className = \"cm-tooltip cm-completionInfo \" + (pos.class || \"\");\n }\n else {\n this.info.style.cssText = \"top: -1e6px\";\n }\n }\n }\n createListBox(options, id, range) {\n const ul = document.createElement(\"ul\");\n ul.id = id;\n ul.setAttribute(\"role\", \"listbox\");\n ul.setAttribute(\"aria-expanded\", \"true\");\n ul.setAttribute(\"aria-label\", this.view.state.phrase(\"Completions\"));\n let curSection = null;\n for (let i = range.from; i < range.to; i++) {\n let { completion, match } = options[i], { section } = completion;\n if (section) {\n let name = typeof section == \"string\" ? section : section.name;\n if (name != curSection && (i > range.from || range.from == 0)) {\n curSection = name;\n if (typeof section != \"string\" && section.header) {\n ul.appendChild(section.header(section));\n }\n else {\n let header = ul.appendChild(document.createElement(\"completion-section\"));\n header.textContent = name;\n }\n }\n }\n const li = ul.appendChild(document.createElement(\"li\"));\n li.id = id + \"-\" + i;\n li.setAttribute(\"role\", \"option\");\n let cls = this.optionClass(completion);\n if (cls)\n li.className = cls;\n for (let source of this.optionContent) {\n let node = source(completion, this.view.state, this.view, match);\n if (node)\n li.appendChild(node);\n }\n }\n if (range.from)\n ul.classList.add(\"cm-completionListIncompleteTop\");\n if (range.to < options.length)\n ul.classList.add(\"cm-completionListIncompleteBottom\");\n return ul;\n }\n destroyInfo() {\n if (this.info) {\n if (this.infoDestroy)\n this.infoDestroy();\n this.info.remove();\n this.info = null;\n }\n }\n destroy() {\n this.destroyInfo();\n }\n}\nfunction completionTooltip(stateField, applyCompletion) {\n return (view) => new CompletionTooltip(view, stateField, applyCompletion);\n}\nfunction scrollIntoView(container, element) {\n let parent = container.getBoundingClientRect();\n let self = element.getBoundingClientRect();\n let scaleY = parent.height / container.offsetHeight;\n if (self.top < parent.top)\n container.scrollTop -= (parent.top - self.top) / scaleY;\n else if (self.bottom > parent.bottom)\n container.scrollTop += (self.bottom - parent.bottom) / scaleY;\n}\n\n// Used to pick a preferred option when two options with the same\n// label occur in the result.\nfunction score(option) {\n return (option.boost || 0) * 100 + (option.apply ? 10 : 0) + (option.info ? 5 : 0) +\n (option.type ? 1 : 0);\n}\nfunction sortOptions(active, state) {\n let options = [];\n let sections = null;\n let addOption = (option) => {\n options.push(option);\n let { section } = option.completion;\n if (section) {\n if (!sections)\n sections = [];\n let name = typeof section == \"string\" ? section : section.name;\n if (!sections.some(s => s.name == name))\n sections.push(typeof section == \"string\" ? { name } : section);\n }\n };\n for (let a of active)\n if (a.hasResult()) {\n let getMatch = a.result.getMatch;\n if (a.result.filter === false) {\n for (let option of a.result.options) {\n addOption(new Option(option, a.source, getMatch ? getMatch(option) : [], 1e9 - options.length));\n }\n }\n else {\n let matcher = new FuzzyMatcher(state.sliceDoc(a.from, a.to));\n for (let option of a.result.options)\n if (matcher.match(option.label)) {\n let matched = !option.displayLabel ? matcher.matched : getMatch ? getMatch(option, matcher.matched) : [];\n addOption(new Option(option, a.source, matched, matcher.score + (option.boost || 0)));\n }\n }\n }\n if (sections) {\n let sectionOrder = Object.create(null), pos = 0;\n let cmp = (a, b) => { var _a, _b; return ((_a = a.rank) !== null && _a !== void 0 ? _a : 1e9) - ((_b = b.rank) !== null && _b !== void 0 ? _b : 1e9) || (a.name < b.name ? -1 : 1); };\n for (let s of sections.sort(cmp)) {\n pos -= 1e5;\n sectionOrder[s.name] = pos;\n }\n for (let option of options) {\n let { section } = option.completion;\n if (section)\n option.score += sectionOrder[typeof section == \"string\" ? section : section.name];\n }\n }\n let result = [], prev = null;\n let compare = state.facet(completionConfig).compareCompletions;\n for (let opt of options.sort((a, b) => (b.score - a.score) || compare(a.completion, b.completion))) {\n let cur = opt.completion;\n if (!prev || prev.label != cur.label || prev.detail != cur.detail ||\n (prev.type != null && cur.type != null && prev.type != cur.type) ||\n prev.apply != cur.apply || prev.boost != cur.boost)\n result.push(opt);\n else if (score(opt.completion) > score(prev))\n result[result.length - 1] = opt;\n prev = opt.completion;\n }\n return result;\n}\nclass CompletionDialog {\n constructor(options, attrs, tooltip, timestamp, selected, disabled) {\n this.options = options;\n this.attrs = attrs;\n this.tooltip = tooltip;\n this.timestamp = timestamp;\n this.selected = selected;\n this.disabled = disabled;\n }\n setSelected(selected, id) {\n return selected == this.selected || selected >= this.options.length ? this\n : new CompletionDialog(this.options, makeAttrs(id, selected), this.tooltip, this.timestamp, selected, this.disabled);\n }\n static build(active, state, id, prev, conf) {\n let options = sortOptions(active, state);\n if (!options.length) {\n return prev && active.some(a => a.state == 1 /* State.Pending */) ?\n new CompletionDialog(prev.options, prev.attrs, prev.tooltip, prev.timestamp, prev.selected, true) : null;\n }\n let selected = state.facet(completionConfig).selectOnOpen ? 0 : -1;\n if (prev && prev.selected != selected && prev.selected != -1) {\n let selectedValue = prev.options[prev.selected].completion;\n for (let i = 0; i < options.length; i++)\n if (options[i].completion == selectedValue) {\n selected = i;\n break;\n }\n }\n return new CompletionDialog(options, makeAttrs(id, selected), {\n pos: active.reduce((a, b) => b.hasResult() ? Math.min(a, b.from) : a, 1e8),\n create: createTooltip,\n above: conf.aboveCursor,\n }, prev ? prev.timestamp : Date.now(), selected, false);\n }\n map(changes) {\n return new CompletionDialog(this.options, this.attrs, Object.assign(Object.assign({}, this.tooltip), { pos: changes.mapPos(this.tooltip.pos) }), this.timestamp, this.selected, this.disabled);\n }\n}\nclass CompletionState {\n constructor(active, id, open) {\n this.active = active;\n this.id = id;\n this.open = open;\n }\n static start() {\n return new CompletionState(none, \"cm-ac-\" + Math.floor(Math.random() * 2e6).toString(36), null);\n }\n update(tr) {\n let { state } = tr, conf = state.facet(completionConfig);\n let sources = conf.override ||\n state.languageDataAt(\"autocomplete\", cur(state)).map(asSource);\n let active = sources.map(source => {\n let value = this.active.find(s => s.source == source) ||\n new ActiveSource(source, this.active.some(a => a.state != 0 /* State.Inactive */) ? 1 /* State.Pending */ : 0 /* State.Inactive */);\n return value.update(tr, conf);\n });\n if (active.length == this.active.length && active.every((a, i) => a == this.active[i]))\n active = this.active;\n let open = this.open;\n if (open && tr.docChanged)\n open = open.map(tr.changes);\n if (tr.selection || active.some(a => a.hasResult() && tr.changes.touchesRange(a.from, a.to)) ||\n !sameResults(active, this.active))\n open = CompletionDialog.build(active, state, this.id, open, conf);\n else if (open && open.disabled && !active.some(a => a.state == 1 /* State.Pending */))\n open = null;\n if (!open && active.every(a => a.state != 1 /* State.Pending */) && active.some(a => a.hasResult()))\n active = active.map(a => a.hasResult() ? new ActiveSource(a.source, 0 /* State.Inactive */) : a);\n for (let effect of tr.effects)\n if (effect.is(setSelectedEffect))\n open = open && open.setSelected(effect.value, this.id);\n return active == this.active && open == this.open ? this : new CompletionState(active, this.id, open);\n }\n get tooltip() { return this.open ? this.open.tooltip : null; }\n get attrs() { return this.open ? this.open.attrs : baseAttrs; }\n}\nfunction sameResults(a, b) {\n if (a == b)\n return true;\n for (let iA = 0, iB = 0;;) {\n while (iA < a.length && !a[iA].hasResult)\n iA++;\n while (iB < b.length && !b[iB].hasResult)\n iB++;\n let endA = iA == a.length, endB = iB == b.length;\n if (endA || endB)\n return endA == endB;\n if (a[iA++].result != b[iB++].result)\n return false;\n }\n}\nconst baseAttrs = {\n \"aria-autocomplete\": \"list\"\n};\nfunction makeAttrs(id, selected) {\n let result = {\n \"aria-autocomplete\": \"list\",\n \"aria-haspopup\": \"listbox\",\n \"aria-controls\": id\n };\n if (selected > -1)\n result[\"aria-activedescendant\"] = id + \"-\" + selected;\n return result;\n}\nconst none = [];\nfunction getUserEvent(tr) {\n return tr.isUserEvent(\"input.type\") ? \"input\" : tr.isUserEvent(\"delete.backward\") ? \"delete\" : null;\n}\nclass ActiveSource {\n constructor(source, state, explicitPos = -1) {\n this.source = source;\n this.state = state;\n this.explicitPos = explicitPos;\n }\n hasResult() { return false; }\n update(tr, conf) {\n let event = getUserEvent(tr), value = this;\n if (event)\n value = value.handleUserEvent(tr, event, conf);\n else if (tr.docChanged)\n value = value.handleChange(tr);\n else if (tr.selection && value.state != 0 /* State.Inactive */)\n value = new ActiveSource(value.source, 0 /* State.Inactive */);\n for (let effect of tr.effects) {\n if (effect.is(startCompletionEffect))\n value = new ActiveSource(value.source, 1 /* State.Pending */, effect.value ? cur(tr.state) : -1);\n else if (effect.is(closeCompletionEffect))\n value = new ActiveSource(value.source, 0 /* State.Inactive */);\n else if (effect.is(setActiveEffect))\n for (let active of effect.value)\n if (active.source == value.source)\n value = active;\n }\n return value;\n }\n handleUserEvent(tr, type, conf) {\n return type == \"delete\" || !conf.activateOnTyping ? this.map(tr.changes) : new ActiveSource(this.source, 1 /* State.Pending */);\n }\n handleChange(tr) {\n return tr.changes.touchesRange(cur(tr.startState)) ? new ActiveSource(this.source, 0 /* State.Inactive */) : this.map(tr.changes);\n }\n map(changes) {\n return changes.empty || this.explicitPos < 0 ? this : new ActiveSource(this.source, this.state, changes.mapPos(this.explicitPos));\n }\n}\nclass ActiveResult extends ActiveSource {\n constructor(source, explicitPos, result, from, to) {\n super(source, 2 /* State.Result */, explicitPos);\n this.result = result;\n this.from = from;\n this.to = to;\n }\n hasResult() { return true; }\n handleUserEvent(tr, type, conf) {\n var _a;\n let from = tr.changes.mapPos(this.from), to = tr.changes.mapPos(this.to, 1);\n let pos = cur(tr.state);\n if ((this.explicitPos < 0 ? pos <= from : pos < this.from) ||\n pos > to ||\n type == \"delete\" && cur(tr.startState) == this.from)\n return new ActiveSource(this.source, type == \"input\" && conf.activateOnTyping ? 1 /* State.Pending */ : 0 /* State.Inactive */);\n let explicitPos = this.explicitPos < 0 ? -1 : tr.changes.mapPos(this.explicitPos), updated;\n if (checkValid(this.result.validFor, tr.state, from, to))\n return new ActiveResult(this.source, explicitPos, this.result, from, to);\n if (this.result.update &&\n (updated = this.result.update(this.result, from, to, new CompletionContext(tr.state, pos, explicitPos >= 0))))\n return new ActiveResult(this.source, explicitPos, updated, updated.from, (_a = updated.to) !== null && _a !== void 0 ? _a : cur(tr.state));\n return new ActiveSource(this.source, 1 /* State.Pending */, explicitPos);\n }\n handleChange(tr) {\n return tr.changes.touchesRange(this.from, this.to) ? new ActiveSource(this.source, 0 /* State.Inactive */) : this.map(tr.changes);\n }\n map(mapping) {\n return mapping.empty ? this :\n new ActiveResult(this.source, this.explicitPos < 0 ? -1 : mapping.mapPos(this.explicitPos), this.result, mapping.mapPos(this.from), mapping.mapPos(this.to, 1));\n }\n}\nfunction checkValid(validFor, state, from, to) {\n if (!validFor)\n return false;\n let text = state.sliceDoc(from, to);\n return typeof validFor == \"function\" ? validFor(text, from, to, state) : ensureAnchor(validFor, true).test(text);\n}\nconst setActiveEffect = /*@__PURE__*/StateEffect.define({\n map(sources, mapping) { return sources.map(s => s.map(mapping)); }\n});\nconst setSelectedEffect = /*@__PURE__*/StateEffect.define();\nconst completionState = /*@__PURE__*/StateField.define({\n create() { return CompletionState.start(); },\n update(value, tr) { return value.update(tr); },\n provide: f => [\n showTooltip.from(f, val => val.tooltip),\n EditorView.contentAttributes.from(f, state => state.attrs)\n ]\n});\nfunction applyCompletion(view, option) {\n const apply = option.completion.apply || option.completion.label;\n let result = view.state.field(completionState).active.find(a => a.source == option.source);\n if (!(result instanceof ActiveResult))\n return false;\n if (typeof apply == \"string\")\n view.dispatch(Object.assign(Object.assign({}, insertCompletionText(view.state, apply, result.from, result.to)), { annotations: pickedCompletion.of(option.completion) }));\n else\n apply(view, option.completion, result.from, result.to);\n return true;\n}\nconst createTooltip = /*@__PURE__*/completionTooltip(completionState, applyCompletion);\n\n/**\nReturns a command that moves the completion selection forward or\nbackward by the given amount.\n*/\nfunction moveCompletionSelection(forward, by = \"option\") {\n return (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.open || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n let step = 1, tooltip;\n if (by == \"page\" && (tooltip = getTooltip(view, cState.open.tooltip)))\n step = Math.max(2, Math.floor(tooltip.dom.offsetHeight /\n tooltip.dom.querySelector(\"li\").offsetHeight) - 1);\n let { length } = cState.open.options;\n let selected = cState.open.selected > -1 ? cState.open.selected + step * (forward ? 1 : -1) : forward ? 0 : length - 1;\n if (selected < 0)\n selected = by == \"page\" ? 0 : length - 1;\n else if (selected >= length)\n selected = by == \"page\" ? length - 1 : 0;\n view.dispatch({ effects: setSelectedEffect.of(selected) });\n return true;\n };\n}\n/**\nAccept the current completion.\n*/\nconst acceptCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (view.state.readOnly || !cState || !cState.open || cState.open.selected < 0 || cState.open.disabled ||\n Date.now() - cState.open.timestamp < view.state.facet(completionConfig).interactionDelay)\n return false;\n return applyCompletion(view, cState.open.options[cState.open.selected]);\n};\n/**\nExplicitly start autocompletion.\n*/\nconst startCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState)\n return false;\n view.dispatch({ effects: startCompletionEffect.of(true) });\n return true;\n};\n/**\nClose the currently active completion.\n*/\nconst closeCompletion = (view) => {\n let cState = view.state.field(completionState, false);\n if (!cState || !cState.active.some(a => a.state != 0 /* State.Inactive */))\n return false;\n view.dispatch({ effects: closeCompletionEffect.of(null) });\n return true;\n};\nclass RunningQuery {\n constructor(active, context) {\n this.active = active;\n this.context = context;\n this.time = Date.now();\n this.updates = [];\n // Note that 'undefined' means 'not done yet', whereas 'null' means\n // 'query returned null'.\n this.done = undefined;\n }\n}\nconst MaxUpdateCount = 50, MinAbortTime = 1000;\nconst completionPlugin = /*@__PURE__*/ViewPlugin.fromClass(class {\n constructor(view) {\n this.view = view;\n this.debounceUpdate = -1;\n this.running = [];\n this.debounceAccept = -1;\n this.composing = 0 /* CompositionState.None */;\n for (let active of view.state.field(completionState).active)\n if (active.state == 1 /* State.Pending */)\n this.startQuery(active);\n }\n update(update) {\n let cState = update.state.field(completionState);\n if (!update.selectionSet && !update.docChanged && update.startState.field(completionState) == cState)\n return;\n let doesReset = update.transactions.some(tr => {\n return (tr.selection || tr.docChanged) && !getUserEvent(tr);\n });\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (doesReset ||\n query.updates.length + update.transactions.length > MaxUpdateCount && Date.now() - query.time > MinAbortTime) {\n for (let handler of query.context.abortListeners) {\n try {\n handler();\n }\n catch (e) {\n logException(this.view.state, e);\n }\n }\n query.context.abortListeners = null;\n this.running.splice(i--, 1);\n }\n else {\n query.updates.push(...update.transactions);\n }\n }\n if (this.debounceUpdate > -1)\n clearTimeout(this.debounceUpdate);\n this.debounceUpdate = cState.active.some(a => a.state == 1 /* State.Pending */ && !this.running.some(q => q.active.source == a.source))\n ? setTimeout(() => this.startUpdate(), 50) : -1;\n if (this.composing != 0 /* CompositionState.None */)\n for (let tr of update.transactions) {\n if (getUserEvent(tr) == \"input\")\n this.composing = 2 /* CompositionState.Changed */;\n else if (this.composing == 2 /* CompositionState.Changed */ && tr.selection)\n this.composing = 3 /* CompositionState.ChangedAndMoved */;\n }\n }\n startUpdate() {\n this.debounceUpdate = -1;\n let { state } = this.view, cState = state.field(completionState);\n for (let active of cState.active) {\n if (active.state == 1 /* State.Pending */ && !this.running.some(r => r.active.source == active.source))\n this.startQuery(active);\n }\n }\n startQuery(active) {\n let { state } = this.view, pos = cur(state);\n let context = new CompletionContext(state, pos, active.explicitPos == pos);\n let pending = new RunningQuery(active, context);\n this.running.push(pending);\n Promise.resolve(active.source(context)).then(result => {\n if (!pending.context.aborted) {\n pending.done = result || null;\n this.scheduleAccept();\n }\n }, err => {\n this.view.dispatch({ effects: closeCompletionEffect.of(null) });\n logException(this.view.state, err);\n });\n }\n scheduleAccept() {\n if (this.running.every(q => q.done !== undefined))\n this.accept();\n else if (this.debounceAccept < 0)\n this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(completionConfig).updateSyncTime);\n }\n // For each finished query in this.running, try to create a result\n // or, if appropriate, restart the query.\n accept() {\n var _a;\n if (this.debounceAccept > -1)\n clearTimeout(this.debounceAccept);\n this.debounceAccept = -1;\n let updated = [];\n let conf = this.view.state.facet(completionConfig);\n for (let i = 0; i < this.running.length; i++) {\n let query = this.running[i];\n if (query.done === undefined)\n continue;\n this.running.splice(i--, 1);\n if (query.done) {\n let active = new ActiveResult(query.active.source, query.active.explicitPos, query.done, query.done.from, (_a = query.done.to) !== null && _a !== void 0 ? _a : cur(query.updates.length ? query.updates[0].startState : this.view.state));\n // Replay the transactions that happened since the start of\n // the request and see if that preserves the result\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (active.hasResult()) {\n updated.push(active);\n continue;\n }\n }\n let current = this.view.state.field(completionState).active.find(a => a.source == query.active.source);\n if (current && current.state == 1 /* State.Pending */) {\n if (query.done == null) {\n // Explicitly failed. Should clear the pending status if it\n // hasn't been re-set in the meantime.\n let active = new ActiveSource(query.active.source, 0 /* State.Inactive */);\n for (let tr of query.updates)\n active = active.update(tr, conf);\n if (active.state != 1 /* State.Pending */)\n updated.push(active);\n }\n else {\n // Cleared by subsequent transactions. Restart.\n this.startQuery(current);\n }\n }\n }\n if (updated.length)\n this.view.dispatch({ effects: setActiveEffect.of(updated) });\n }\n}, {\n eventHandlers: {\n blur(event) {\n let state = this.view.state.field(completionState, false);\n if (state && state.tooltip && this.view.state.facet(completionConfig).closeOnBlur) {\n let dialog = state.open && getTooltip(this.view, state.open.tooltip);\n if (!dialog || !dialog.dom.contains(event.relatedTarget))\n this.view.dispatch({ effects: closeCompletionEffect.of(null) });\n }\n },\n compositionstart() {\n this.composing = 1 /* CompositionState.Started */;\n },\n compositionend() {\n if (this.composing == 3 /* CompositionState.ChangedAndMoved */) {\n // Safari fires compositionend events synchronously, possibly\n // from inside an update, so dispatch asynchronously to avoid reentrancy\n setTimeout(() => this.view.dispatch({ effects: startCompletionEffect.of(false) }), 20);\n }\n this.composing = 0 /* CompositionState.None */;\n }\n }\n});\n\nconst baseTheme = /*@__PURE__*/EditorView.baseTheme({\n \".cm-tooltip.cm-tooltip-autocomplete\": {\n \"& > ul\": {\n fontFamily: \"monospace\",\n whiteSpace: \"nowrap\",\n overflow: \"hidden auto\",\n maxWidth_fallback: \"700px\",\n maxWidth: \"min(700px, 95vw)\",\n minWidth: \"250px\",\n maxHeight: \"10em\",\n height: \"100%\",\n listStyle: \"none\",\n margin: 0,\n padding: 0,\n \"& > li, & > completion-section\": {\n padding: \"1px 3px\",\n lineHeight: 1.2\n },\n \"& > li\": {\n overflowX: \"hidden\",\n textOverflow: \"ellipsis\",\n cursor: \"pointer\"\n },\n \"& > completion-section\": {\n display: \"list-item\",\n borderBottom: \"1px solid silver\",\n paddingLeft: \"0.5em\",\n opacity: 0.7\n }\n }\n },\n \"&light .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#17c\",\n color: \"white\",\n },\n \"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#777\",\n },\n \"&dark .cm-tooltip-autocomplete ul li[aria-selected]\": {\n background: \"#347\",\n color: \"white\",\n },\n \"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]\": {\n background: \"#444\",\n },\n \".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after\": {\n content: '\"···\"',\n opacity: 0.5,\n display: \"block\",\n textAlign: \"center\"\n },\n \".cm-tooltip.cm-completionInfo\": {\n position: \"absolute\",\n padding: \"3px 9px\",\n width: \"max-content\",\n maxWidth: `${400 /* Info.Width */}px`,\n boxSizing: \"border-box\"\n },\n \".cm-completionInfo.cm-completionInfo-left\": { right: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-right\": { left: \"100%\" },\n \".cm-completionInfo.cm-completionInfo-left-narrow\": { right: `${30 /* Info.Margin */}px` },\n \".cm-completionInfo.cm-completionInfo-right-narrow\": { left: `${30 /* Info.Margin */}px` },\n \"&light .cm-snippetField\": { backgroundColor: \"#00000022\" },\n \"&dark .cm-snippetField\": { backgroundColor: \"#ffffff22\" },\n \".cm-snippetFieldPosition\": {\n verticalAlign: \"text-top\",\n width: 0,\n height: \"1.15em\",\n display: \"inline-block\",\n margin: \"0 -0.7px -.7em\",\n borderLeft: \"1.4px dotted #888\"\n },\n \".cm-completionMatchedText\": {\n textDecoration: \"underline\"\n },\n \".cm-completionDetail\": {\n marginLeft: \"0.5em\",\n fontStyle: \"italic\"\n },\n \".cm-completionIcon\": {\n fontSize: \"90%\",\n width: \".8em\",\n display: \"inline-block\",\n textAlign: \"center\",\n paddingRight: \".6em\",\n opacity: \"0.6\",\n boxSizing: \"content-box\"\n },\n \".cm-completionIcon-function, .cm-completionIcon-method\": {\n \"&:after\": { content: \"'ƒ'\" }\n },\n \".cm-completionIcon-class\": {\n \"&:after\": { content: \"'○'\" }\n },\n \".cm-completionIcon-interface\": {\n \"&:after\": { content: \"'◌'\" }\n },\n \".cm-completionIcon-variable\": {\n \"&:after\": { content: \"'𝑥'\" }\n },\n \".cm-completionIcon-constant\": {\n \"&:after\": { content: \"'𝐶'\" }\n },\n \".cm-completionIcon-type\": {\n \"&:after\": { content: \"'𝑡'\" }\n },\n \".cm-completionIcon-enum\": {\n \"&:after\": { content: \"'∪'\" }\n },\n \".cm-completionIcon-property\": {\n \"&:after\": { content: \"'□'\" }\n },\n \".cm-completionIcon-keyword\": {\n \"&:after\": { content: \"'🔑\\uFE0E'\" } // Disable emoji rendering\n },\n \".cm-completionIcon-namespace\": {\n \"&:after\": { content: \"'▢'\" }\n },\n \".cm-completionIcon-text\": {\n \"&:after\": { content: \"'abc'\", fontSize: \"50%\", verticalAlign: \"middle\" }\n }\n});\n\nclass FieldPos {\n constructor(field, line, from, to) {\n this.field = field;\n this.line = line;\n this.from = from;\n this.to = to;\n }\n}\nclass FieldRange {\n constructor(field, from, to) {\n this.field = field;\n this.from = from;\n this.to = to;\n }\n map(changes) {\n let from = changes.mapPos(this.from, -1, MapMode.TrackDel);\n let to = changes.mapPos(this.to, 1, MapMode.TrackDel);\n return from == null || to == null ? null : new FieldRange(this.field, from, to);\n }\n}\nclass Snippet {\n constructor(lines, fieldPositions) {\n this.lines = lines;\n this.fieldPositions = fieldPositions;\n }\n instantiate(state, pos) {\n let text = [], lineStart = [pos];\n let lineObj = state.doc.lineAt(pos), baseIndent = /^\\s*/.exec(lineObj.text)[0];\n for (let line of this.lines) {\n if (text.length) {\n let indent = baseIndent, tabs = /^\\t*/.exec(line)[0].length;\n for (let i = 0; i < tabs; i++)\n indent += state.facet(indentUnit);\n lineStart.push(pos + indent.length - tabs);\n line = indent + line.slice(tabs);\n }\n text.push(line);\n pos += line.length + 1;\n }\n let ranges = this.fieldPositions.map(pos => new FieldRange(pos.field, lineStart[pos.line] + pos.from, lineStart[pos.line] + pos.to));\n return { text, ranges };\n }\n static parse(template) {\n let fields = [];\n let lines = [], positions = [], m;\n for (let line of template.split(/\\r\\n?|\\n/)) {\n while (m = /[#$]\\{(?:(\\d+)(?::([^}]*))?|([^}]*))\\}/.exec(line)) {\n let seq = m[1] ? +m[1] : null, name = m[2] || m[3] || \"\", found = -1;\n for (let i = 0; i < fields.length; i++) {\n if (seq != null ? fields[i].seq == seq : name ? fields[i].name == name : false)\n found = i;\n }\n if (found < 0) {\n let i = 0;\n while (i < fields.length && (seq == null || (fields[i].seq != null && fields[i].seq < seq)))\n i++;\n fields.splice(i, 0, { seq, name });\n found = i;\n for (let pos of positions)\n if (pos.field >= found)\n pos.field++;\n }\n positions.push(new FieldPos(found, lines.length, m.index, m.index + name.length));\n line = line.slice(0, m.index) + name + line.slice(m.index + m[0].length);\n }\n for (let esc; esc = /\\\\([{}])/.exec(line);) {\n line = line.slice(0, esc.index) + esc[1] + line.slice(esc.index + esc[0].length);\n for (let pos of positions)\n if (pos.line == lines.length && pos.from > esc.index) {\n pos.from--;\n pos.to--;\n }\n }\n lines.push(line);\n }\n return new Snippet(lines, positions);\n }\n}\nlet fieldMarker = /*@__PURE__*/Decoration.widget({ widget: /*@__PURE__*/new class extends WidgetType {\n toDOM() {\n let span = document.createElement(\"span\");\n span.className = \"cm-snippetFieldPosition\";\n return span;\n }\n ignoreEvent() { return false; }\n } });\nlet fieldRange = /*@__PURE__*/Decoration.mark({ class: \"cm-snippetField\" });\nclass ActiveSnippet {\n constructor(ranges, active) {\n this.ranges = ranges;\n this.active = active;\n this.deco = Decoration.set(ranges.map(r => (r.from == r.to ? fieldMarker : fieldRange).range(r.from, r.to)));\n }\n map(changes) {\n let ranges = [];\n for (let r of this.ranges) {\n let mapped = r.map(changes);\n if (!mapped)\n return null;\n ranges.push(mapped);\n }\n return new ActiveSnippet(ranges, this.active);\n }\n selectionInsideField(sel) {\n return sel.ranges.every(range => this.ranges.some(r => r.field == this.active && r.from <= range.from && r.to >= range.to));\n }\n}\nconst setActive = /*@__PURE__*/StateEffect.define({\n map(value, changes) { return value && value.map(changes); }\n});\nconst moveToField = /*@__PURE__*/StateEffect.define();\nconst snippetState = /*@__PURE__*/StateField.define({\n create() { return null; },\n update(value, tr) {\n for (let effect of tr.effects) {\n if (effect.is(setActive))\n return effect.value;\n if (effect.is(moveToField) && value)\n return new ActiveSnippet(value.ranges, effect.value);\n }\n if (value && tr.docChanged)\n value = value.map(tr.changes);\n if (value && tr.selection && !value.selectionInsideField(tr.selection))\n value = null;\n return value;\n },\n provide: f => EditorView.decorations.from(f, val => val ? val.deco : Decoration.none)\n});\nfunction fieldSelection(ranges, field) {\n return EditorSelection.create(ranges.filter(r => r.field == field).map(r => EditorSelection.range(r.from, r.to)));\n}\n/**\nConvert a snippet template to a function that can\n[apply](https://codemirror.net/6/docs/ref/#autocomplete.Completion.apply) it. Snippets are written\nusing syntax like this:\n\n \"for (let ${index} = 0; ${index} < ${end}; ${index}++) {\\n\\t${}\\n}\"\n\nEach `${}` placeholder (you may also use `#{}`) indicates a field\nthat the user can fill in. Its name, if any, will be the default\ncontent for the field.\n\nWhen the snippet is activated by calling the returned function,\nthe code is inserted at the given position. Newlines in the\ntemplate are indented by the indentation of the start line, plus\none [indent unit](https://codemirror.net/6/docs/ref/#language.indentUnit) per tab character after\nthe newline.\n\nOn activation, (all instances of) the first field are selected.\nThe user can move between fields with Tab and Shift-Tab as long as\nthe fields are active. Moving to the last field or moving the\ncursor out of the current field deactivates the fields.\n\nThe order of fields defaults to textual order, but you can add\nnumbers to placeholders (`${1}` or `${1:defaultText}`) to provide\na custom order.\n\nTo include a literal `{` or `}` in your template, put a backslash\nin front of it. This will be removed and the brace will not be\ninterpreted as indicating a placeholder.\n*/\nfunction snippet(template) {\n let snippet = Snippet.parse(template);\n return (editor, completion, from, to) => {\n let { text, ranges } = snippet.instantiate(editor.state, from);\n let spec = {\n changes: { from, to, insert: Text.of(text) },\n scrollIntoView: true,\n annotations: completion ? pickedCompletion.of(completion) : undefined\n };\n if (ranges.length)\n spec.selection = fieldSelection(ranges, 0);\n if (ranges.length > 1) {\n let active = new ActiveSnippet(ranges, 0);\n let effects = spec.effects = [setActive.of(active)];\n if (editor.state.field(snippetState, false) === undefined)\n effects.push(StateEffect.appendConfig.of([snippetState, addSnippetKeymap, snippetPointerHandler, baseTheme]));\n }\n editor.dispatch(editor.state.update(spec));\n };\n}\nfunction moveField(dir) {\n return ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active || dir < 0 && active.active == 0)\n return false;\n let next = active.active + dir, last = dir > 0 && !active.ranges.some(r => r.field == next + dir);\n dispatch(state.update({\n selection: fieldSelection(active.ranges, next),\n effects: setActive.of(last ? null : new ActiveSnippet(active.ranges, next)),\n scrollIntoView: true\n }));\n return true;\n };\n}\n/**\nA command that clears the active snippet, if any.\n*/\nconst clearSnippet = ({ state, dispatch }) => {\n let active = state.field(snippetState, false);\n if (!active)\n return false;\n dispatch(state.update({ effects: setActive.of(null) }));\n return true;\n};\n/**\nMove to the next snippet field, if available.\n*/\nconst nextSnippetField = /*@__PURE__*/moveField(1);\n/**\nMove to the previous snippet field, if available.\n*/\nconst prevSnippetField = /*@__PURE__*/moveField(-1);\n/**\nCheck if there is an active snippet with a next field for\n`nextSnippetField` to move to.\n*/\nfunction hasNextSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.ranges.some(r => r.field == active.active + 1));\n}\n/**\nReturns true if there is an active snippet and a previous field\nfor `prevSnippetField` to move to.\n*/\nfunction hasPrevSnippetField(state) {\n let active = state.field(snippetState, false);\n return !!(active && active.active > 0);\n}\nconst defaultSnippetKeymap = [\n { key: \"Tab\", run: nextSnippetField, shift: prevSnippetField },\n { key: \"Escape\", run: clearSnippet }\n];\n/**\nA facet that can be used to configure the key bindings used by\nsnippets. The default binds Tab to\n[`nextSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.nextSnippetField), Shift-Tab to\n[`prevSnippetField`](https://codemirror.net/6/docs/ref/#autocomplete.prevSnippetField), and Escape\nto [`clearSnippet`](https://codemirror.net/6/docs/ref/#autocomplete.clearSnippet).\n*/\nconst snippetKeymap = /*@__PURE__*/Facet.define({\n combine(maps) { return maps.length ? maps[0] : defaultSnippetKeymap; }\n});\nconst addSnippetKeymap = /*@__PURE__*/Prec.highest(/*@__PURE__*/keymap.compute([snippetKeymap], state => state.facet(snippetKeymap)));\n/**\nCreate a completion from a snippet. Returns an object with the\nproperties from `completion`, plus an `apply` function that\napplies the snippet.\n*/\nfunction snippetCompletion(template, completion) {\n return Object.assign(Object.assign({}, completion), { apply: snippet(template) });\n}\nconst snippetPointerHandler = /*@__PURE__*/EditorView.domEventHandlers({\n mousedown(event, view) {\n let active = view.state.field(snippetState, false), pos;\n if (!active || (pos = view.posAtCoords({ x: event.clientX, y: event.clientY })) == null)\n return false;\n let match = active.ranges.find(r => r.from <= pos && r.to >= pos);\n if (!match || match.field == active.active)\n return false;\n view.dispatch({\n selection: fieldSelection(active.ranges, match.field),\n effects: setActive.of(active.ranges.some(r => r.field > match.field)\n ? new ActiveSnippet(active.ranges, match.field) : null),\n scrollIntoView: true\n });\n return true;\n }\n});\n\nfunction wordRE(wordChars) {\n let escaped = wordChars.replace(/[\\]\\-\\\\]/g, \"\\\\$&\");\n try {\n return new RegExp(`[\\\\p{Alphabetic}\\\\p{Number}_${escaped}]+`, \"ug\");\n }\n catch (_a) {\n return new RegExp(`[\\w${escaped}]`, \"g\");\n }\n}\nfunction mapRE(re, f) {\n return new RegExp(f(re.source), re.unicode ? \"u\" : \"\");\n}\nconst wordCaches = /*@__PURE__*/Object.create(null);\nfunction wordCache(wordChars) {\n return wordCaches[wordChars] || (wordCaches[wordChars] = new WeakMap);\n}\nfunction storeWords(doc, wordRE, result, seen, ignoreAt) {\n for (let lines = doc.iterLines(), pos = 0; !lines.next().done;) {\n let { value } = lines, m;\n wordRE.lastIndex = 0;\n while (m = wordRE.exec(value)) {\n if (!seen[m[0]] && pos + m.index != ignoreAt) {\n result.push({ type: \"text\", label: m[0] });\n seen[m[0]] = true;\n if (result.length >= 2000 /* C.MaxList */)\n return;\n }\n }\n pos += value.length + 1;\n }\n}\nfunction collectWords(doc, cache, wordRE, to, ignoreAt) {\n let big = doc.length >= 1000 /* C.MinCacheLen */;\n let cached = big && cache.get(doc);\n if (cached)\n return cached;\n let result = [], seen = Object.create(null);\n if (doc.children) {\n let pos = 0;\n for (let ch of doc.children) {\n if (ch.length >= 1000 /* C.MinCacheLen */) {\n for (let c of collectWords(ch, cache, wordRE, to - pos, ignoreAt - pos)) {\n if (!seen[c.label]) {\n seen[c.label] = true;\n result.push(c);\n }\n }\n }\n else {\n storeWords(ch, wordRE, result, seen, ignoreAt - pos);\n }\n pos += ch.length + 1;\n }\n }\n else {\n storeWords(doc, wordRE, result, seen, ignoreAt);\n }\n if (big && result.length < 2000 /* C.MaxList */)\n cache.set(doc, result);\n return result;\n}\n/**\nA completion source that will scan the document for words (using a\n[character categorizer](https://codemirror.net/6/docs/ref/#state.EditorState.charCategorizer)), and\nreturn those as completions.\n*/\nconst completeAnyWord = context => {\n let wordChars = context.state.languageDataAt(\"wordChars\", context.pos).join(\"\");\n let re = wordRE(wordChars);\n let token = context.matchBefore(mapRE(re, s => s + \"$\"));\n if (!token && !context.explicit)\n return null;\n let from = token ? token.from : context.pos;\n let options = collectWords(context.state.doc, wordCache(wordChars), re, 50000 /* C.Range */, from);\n return { from, options, validFor: mapRE(re, s => \"^\" + s) };\n};\n\nconst defaults = {\n brackets: [\"(\", \"[\", \"{\", \"'\", '\"'],\n before: \")]}:;>\",\n stringPrefixes: []\n};\nconst closeBracketEffect = /*@__PURE__*/StateEffect.define({\n map(value, mapping) {\n let mapped = mapping.mapPos(value, -1, MapMode.TrackAfter);\n return mapped == null ? undefined : mapped;\n }\n});\nconst closedBracket = /*@__PURE__*/new class extends RangeValue {\n};\nclosedBracket.startSide = 1;\nclosedBracket.endSide = -1;\nconst bracketState = /*@__PURE__*/StateField.define({\n create() { return RangeSet.empty; },\n update(value, tr) {\n if (tr.selection) {\n let line = tr.state.doc.lineAt(tr.selection.main.head);\n value = value.update({ filter: from => from >= line.from && from <= line.to });\n }\n value = value.map(tr.changes);\n for (let effect of tr.effects)\n if (effect.is(closeBracketEffect))\n value = value.update({ add: [closedBracket.range(effect.value, effect.value + 1)] });\n return value;\n }\n});\n/**\nExtension to enable bracket-closing behavior. When a closeable\nbracket is typed, its closing bracket is immediately inserted\nafter the cursor. When closing a bracket directly in front of a\nclosing bracket inserted by the extension, the cursor moves over\nthat bracket.\n*/\nfunction closeBrackets() {\n return [inputHandler, bracketState];\n}\nconst definedClosing = \"()[]{}<>\";\nfunction closing(ch) {\n for (let i = 0; i < definedClosing.length; i += 2)\n if (definedClosing.charCodeAt(i) == ch)\n return definedClosing.charAt(i + 1);\n return fromCodePoint(ch < 128 ? ch : ch + 1);\n}\nfunction config(state, pos) {\n return state.languageDataAt(\"closeBrackets\", pos)[0] || defaults;\n}\nconst android = typeof navigator == \"object\" && /*@__PURE__*//Android\\b/.test(navigator.userAgent);\nconst inputHandler = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, insert) => {\n if ((android ? view.composing : view.compositionStarted) || view.state.readOnly)\n return false;\n let sel = view.state.selection.main;\n if (insert.length > 2 || insert.length == 2 && codePointSize(codePointAt(insert, 0)) == 1 ||\n from != sel.from || to != sel.to)\n return false;\n let tr = insertBracket(view.state, insert);\n if (!tr)\n return false;\n view.dispatch(tr);\n return true;\n});\n/**\nCommand that implements deleting a pair of matching brackets when\nthe cursor is between them.\n*/\nconst deleteBracketPair = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty) {\n let before = prevChar(state.doc, range.head);\n for (let token of tokens) {\n if (token == before && nextChar(state.doc, range.head) == closing(codePointAt(token, 0)))\n return { changes: { from: range.head - token.length, to: range.head + token.length },\n range: EditorSelection.cursor(range.head - token.length) };\n }\n }\n return { range: dont = range };\n });\n if (!dont)\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"delete.backward\" }));\n return !dont;\n};\n/**\nClose-brackets related key bindings. Binds Backspace to\n[`deleteBracketPair`](https://codemirror.net/6/docs/ref/#autocomplete.deleteBracketPair).\n*/\nconst closeBracketsKeymap = [\n { key: \"Backspace\", run: deleteBracketPair }\n];\n/**\nImplements the extension's behavior on text insertion. If the\ngiven string counts as a bracket in the language around the\nselection, and replacing the selection with it requires custom\nbehavior (inserting a closing version or skipping past a\npreviously-closed bracket), this function returns a transaction\nrepresenting that custom behavior. (You only need this if you want\nto programmatically insert brackets—the\n[`closeBrackets`](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets) extension will\ntake care of running this for user input.)\n*/\nfunction insertBracket(state, bracket) {\n let conf = config(state, state.selection.main.head);\n let tokens = conf.brackets || defaults.brackets;\n for (let tok of tokens) {\n let closed = closing(codePointAt(tok, 0));\n if (bracket == tok)\n return closed == tok ? handleSame(state, tok, tokens.indexOf(tok + tok + tok) > -1, conf)\n : handleOpen(state, tok, closed, conf.before || defaults.before);\n if (bracket == closed && closedBracketAt(state, state.selection.main.from))\n return handleClose(state, tok, closed);\n }\n return null;\n}\nfunction closedBracketAt(state, pos) {\n let found = false;\n state.field(bracketState).between(0, state.doc.length, from => {\n if (from == pos)\n found = true;\n });\n return found;\n}\nfunction nextChar(doc, pos) {\n let next = doc.sliceString(pos, pos + 2);\n return next.slice(0, codePointSize(codePointAt(next, 0)));\n}\nfunction prevChar(doc, pos) {\n let prev = doc.sliceString(pos - 2, pos);\n return codePointSize(codePointAt(prev, 0)) == prev.length ? prev : prev.slice(1);\n}\nfunction handleOpen(state, open, close, closeBefore) {\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: open, from: range.from }, { insert: close, from: range.to }],\n effects: closeBracketEffect.of(range.to + open.length),\n range: EditorSelection.range(range.anchor + open.length, range.head + open.length) };\n let next = nextChar(state.doc, range.head);\n if (!next || /\\s/.test(next) || closeBefore.indexOf(next) > -1)\n return { changes: { insert: open + close, from: range.head },\n effects: closeBracketEffect.of(range.head + open.length),\n range: EditorSelection.cursor(range.head + open.length) };\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction handleClose(state, _open, close) {\n let dont = null, changes = state.changeByRange(range => {\n if (range.empty && nextChar(state.doc, range.head) == close)\n return { changes: { from: range.head, to: range.head + close.length, insert: close },\n range: EditorSelection.cursor(range.head + close.length) };\n return dont = { range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\n// Handles cases where the open and close token are the same, and\n// possibly triple quotes (as in `\"\"\"abc\"\"\"`-style quoting).\nfunction handleSame(state, token, allowTriple, config) {\n let stringPrefixes = config.stringPrefixes || defaults.stringPrefixes;\n let dont = null, changes = state.changeByRange(range => {\n if (!range.empty)\n return { changes: [{ insert: token, from: range.from }, { insert: token, from: range.to }],\n effects: closeBracketEffect.of(range.to + token.length),\n range: EditorSelection.range(range.anchor + token.length, range.head + token.length) };\n let pos = range.head, next = nextChar(state.doc, pos), start;\n if (next == token) {\n if (nodeStart(state, pos)) {\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: EditorSelection.cursor(pos + token.length) };\n }\n else if (closedBracketAt(state, pos)) {\n let isTriple = allowTriple && state.sliceDoc(pos, pos + token.length * 3) == token + token + token;\n let content = isTriple ? token + token + token : token;\n return { changes: { from: pos, to: pos + content.length, insert: content },\n range: EditorSelection.cursor(pos + content.length) };\n }\n }\n else if (allowTriple && state.sliceDoc(pos - 2 * token.length, pos) == token + token &&\n (start = canStartStringAt(state, pos - 2 * token.length, stringPrefixes)) > -1 &&\n nodeStart(state, start)) {\n return { changes: { insert: token + token + token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: EditorSelection.cursor(pos + token.length) };\n }\n else if (state.charCategorizer(pos)(next) != CharCategory.Word) {\n if (canStartStringAt(state, pos, stringPrefixes) > -1 && !probablyInString(state, pos, token, stringPrefixes))\n return { changes: { insert: token + token, from: pos },\n effects: closeBracketEffect.of(pos + token.length),\n range: EditorSelection.cursor(pos + token.length) };\n }\n return { range: dont = range };\n });\n return dont ? null : state.update(changes, {\n scrollIntoView: true,\n userEvent: \"input.type\"\n });\n}\nfunction nodeStart(state, pos) {\n let tree = syntaxTree(state).resolveInner(pos + 1);\n return tree.parent && tree.from == pos;\n}\nfunction probablyInString(state, pos, quoteToken, prefixes) {\n let node = syntaxTree(state).resolveInner(pos, -1);\n let maxPrefix = prefixes.reduce((m, p) => Math.max(m, p.length), 0);\n for (let i = 0; i < 5; i++) {\n let start = state.sliceDoc(node.from, Math.min(node.to, node.from + quoteToken.length + maxPrefix));\n let quotePos = start.indexOf(quoteToken);\n if (!quotePos || quotePos > -1 && prefixes.indexOf(start.slice(0, quotePos)) > -1) {\n let first = node.firstChild;\n while (first && first.from == node.from && first.to - first.from > quoteToken.length + quotePos) {\n if (state.sliceDoc(first.to - quoteToken.length, first.to) == quoteToken)\n return false;\n first = first.firstChild;\n }\n return true;\n }\n let parent = node.to == pos && node.parent;\n if (!parent)\n break;\n node = parent;\n }\n return false;\n}\nfunction canStartStringAt(state, pos, prefixes) {\n let charCat = state.charCategorizer(pos);\n if (charCat(state.sliceDoc(pos - 1, pos)) != CharCategory.Word)\n return pos;\n for (let prefix of prefixes) {\n let start = pos - prefix.length;\n if (state.sliceDoc(start, pos) == prefix && charCat(state.sliceDoc(start - 1, start)) != CharCategory.Word)\n return start;\n }\n return -1;\n}\n\n/**\nReturns an extension that enables autocompletion.\n*/\nfunction autocompletion(config = {}) {\n return [\n completionState,\n completionConfig.of(config),\n completionPlugin,\n completionKeymapExt,\n baseTheme\n ];\n}\n/**\nBasic keybindings for autocompletion.\n\n - Ctrl-Space: [`startCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.startCompletion)\n - Escape: [`closeCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.closeCompletion)\n - ArrowDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true)`\n - ArrowUp: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(false)`\n - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, \"page\")`\n - PageDown: [`moveCompletionSelection`](https://codemirror.net/6/docs/ref/#autocomplete.moveCompletionSelection)`(true, \"page\")`\n - Enter: [`acceptCompletion`](https://codemirror.net/6/docs/ref/#autocomplete.acceptCompletion)\n*/\nconst completionKeymap = [\n { key: \"Ctrl-Space\", run: startCompletion },\n { key: \"Escape\", run: closeCompletion },\n { key: \"ArrowDown\", run: /*@__PURE__*/moveCompletionSelection(true) },\n { key: \"ArrowUp\", run: /*@__PURE__*/moveCompletionSelection(false) },\n { key: \"PageDown\", run: /*@__PURE__*/moveCompletionSelection(true, \"page\") },\n { key: \"PageUp\", run: /*@__PURE__*/moveCompletionSelection(false, \"page\") },\n { key: \"Enter\", run: acceptCompletion }\n];\nconst completionKeymapExt = /*@__PURE__*/Prec.highest(/*@__PURE__*/keymap.computeN([completionConfig], state => state.facet(completionConfig).defaultKeymap ? [completionKeymap] : []));\n/**\nGet the current completion status. When completions are available,\nthis will return `\"active\"`. When completions are pending (in the\nprocess of being queried), this returns `\"pending\"`. Otherwise, it\nreturns `null`.\n*/\nfunction completionStatus(state) {\n let cState = state.field(completionState, false);\n return cState && cState.active.some(a => a.state == 1 /* State.Pending */) ? \"pending\"\n : cState && cState.active.some(a => a.state != 0 /* State.Inactive */) ? \"active\" : null;\n}\nconst completionArrayCache = /*@__PURE__*/new WeakMap;\n/**\nReturns the available completions as an array.\n*/\nfunction currentCompletions(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n if (!open || open.disabled)\n return [];\n let completions = completionArrayCache.get(open.options);\n if (!completions)\n completionArrayCache.set(open.options, completions = open.options.map(o => o.completion));\n return completions;\n}\n/**\nReturn the currently selected completion, if any.\n*/\nfunction selectedCompletion(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.options[open.selected].completion : null;\n}\n/**\nReturns the currently selected position in the active completion\nlist, or null if no completions are active.\n*/\nfunction selectedCompletionIndex(state) {\n var _a;\n let open = (_a = state.field(completionState, false)) === null || _a === void 0 ? void 0 : _a.open;\n return open && !open.disabled && open.selected >= 0 ? open.selected : null;\n}\n/**\nCreate an effect that can be attached to a transaction to change\nthe currently selected completion.\n*/\nfunction setSelectedCompletion(index) {\n return setSelectedEffect.of(index);\n}\n\nexport { CompletionContext, acceptCompletion, autocompletion, clearSnippet, closeBrackets, closeBracketsKeymap, closeCompletion, completeAnyWord, completeFromList, completionKeymap, completionStatus, currentCompletions, deleteBracketPair, hasNextSnippetField, hasPrevSnippetField, ifIn, ifNotIn, insertBracket, insertCompletionText, moveCompletionSelection, nextSnippetField, pickedCompletion, prevSnippetField, selectedCompletion, selectedCompletionIndex, setSelectedCompletion, snippet, snippetCompletion, snippetKeymap, startCompletion };\n","import { Annotation, Facet, combineConfig, StateField, EditorSelection, Transaction, ChangeSet, ChangeDesc, StateEffect, Text, findClusterBreak, countColumn, CharCategory } from '@codemirror/state';\nimport { EditorView, Direction } from '@codemirror/view';\nimport { IndentContext, getIndentation, indentString, matchBrackets, syntaxTree, getIndentUnit, indentUnit } from '@codemirror/language';\nimport { NodeProp } from '@lezer/common';\n\n/**\nComment or uncomment the current selection. Will use line comments\nif available, otherwise falling back to block comments.\n*/\nconst toggleComment = target => {\n let { state } = target, line = state.doc.lineAt(state.selection.main.from), config = getConfig(target.state, line.from);\n return config.line ? toggleLineComment(target) : config.block ? toggleBlockCommentByLine(target) : false;\n};\nfunction command(f, option) {\n return ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let tr = f(option, state);\n if (!tr)\n return false;\n dispatch(state.update(tr));\n return true;\n };\n}\n/**\nComment or uncomment the current selection using line comments.\nThe line comment syntax is taken from the\n[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language\ndata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).\n*/\nconst toggleLineComment = /*@__PURE__*/command(changeLineComment, 0 /* CommentOption.Toggle */);\n/**\nComment the current selection using line comments.\n*/\nconst lineComment = /*@__PURE__*/command(changeLineComment, 1 /* CommentOption.Comment */);\n/**\nUncomment the current selection using line comments.\n*/\nconst lineUncomment = /*@__PURE__*/command(changeLineComment, 2 /* CommentOption.Uncomment */);\n/**\nComment or uncomment the current selection using block comments.\nThe block comment syntax is taken from the\n[`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language\ndata](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).\n*/\nconst toggleBlockComment = /*@__PURE__*/command(changeBlockComment, 0 /* CommentOption.Toggle */);\n/**\nComment the current selection using block comments.\n*/\nconst blockComment = /*@__PURE__*/command(changeBlockComment, 1 /* CommentOption.Comment */);\n/**\nUncomment the current selection using block comments.\n*/\nconst blockUncomment = /*@__PURE__*/command(changeBlockComment, 2 /* CommentOption.Uncomment */);\n/**\nComment or uncomment the lines around the current selection using\nblock comments.\n*/\nconst toggleBlockCommentByLine = /*@__PURE__*/command((o, s) => changeBlockComment(o, s, selectedLineRanges(s)), 0 /* CommentOption.Toggle */);\nfunction getConfig(state, pos) {\n let data = state.languageDataAt(\"commentTokens\", pos);\n return data.length ? data[0] : {};\n}\nconst SearchMargin = 50;\n/**\nDetermines if the given range is block-commented in the given\nstate.\n*/\nfunction findBlockComment(state, { open, close }, from, to) {\n let textBefore = state.sliceDoc(from - SearchMargin, from);\n let textAfter = state.sliceDoc(to, to + SearchMargin);\n let spaceBefore = /\\s*$/.exec(textBefore)[0].length, spaceAfter = /^\\s*/.exec(textAfter)[0].length;\n let beforeOff = textBefore.length - spaceBefore;\n if (textBefore.slice(beforeOff - open.length, beforeOff) == open &&\n textAfter.slice(spaceAfter, spaceAfter + close.length) == close) {\n return { open: { pos: from - spaceBefore, margin: spaceBefore && 1 },\n close: { pos: to + spaceAfter, margin: spaceAfter && 1 } };\n }\n let startText, endText;\n if (to - from <= 2 * SearchMargin) {\n startText = endText = state.sliceDoc(from, to);\n }\n else {\n startText = state.sliceDoc(from, from + SearchMargin);\n endText = state.sliceDoc(to - SearchMargin, to);\n }\n let startSpace = /^\\s*/.exec(startText)[0].length, endSpace = /\\s*$/.exec(endText)[0].length;\n let endOff = endText.length - endSpace - close.length;\n if (startText.slice(startSpace, startSpace + open.length) == open &&\n endText.slice(endOff, endOff + close.length) == close) {\n return { open: { pos: from + startSpace + open.length,\n margin: /\\s/.test(startText.charAt(startSpace + open.length)) ? 1 : 0 },\n close: { pos: to - endSpace - close.length,\n margin: /\\s/.test(endText.charAt(endOff - 1)) ? 1 : 0 } };\n }\n return null;\n}\nfunction selectedLineRanges(state) {\n let ranges = [];\n for (let r of state.selection.ranges) {\n let fromLine = state.doc.lineAt(r.from);\n let toLine = r.to <= fromLine.to ? fromLine : state.doc.lineAt(r.to);\n let last = ranges.length - 1;\n if (last >= 0 && ranges[last].to > fromLine.from)\n ranges[last].to = toLine.to;\n else\n ranges.push({ from: fromLine.from + /^\\s*/.exec(fromLine.text)[0].length, to: toLine.to });\n }\n return ranges;\n}\n// Performs toggle, comment and uncomment of block comments in\n// languages that support them.\nfunction changeBlockComment(option, state, ranges = state.selection.ranges) {\n let tokens = ranges.map(r => getConfig(state, r.from).block);\n if (!tokens.every(c => c))\n return null;\n let comments = ranges.map((r, i) => findBlockComment(state, tokens[i], r.from, r.to));\n if (option != 2 /* CommentOption.Uncomment */ && !comments.every(c => c)) {\n return { changes: state.changes(ranges.map((range, i) => {\n if (comments[i])\n return [];\n return [{ from: range.from, insert: tokens[i].open + \" \" }, { from: range.to, insert: \" \" + tokens[i].close }];\n })) };\n }\n else if (option != 1 /* CommentOption.Comment */ && comments.some(c => c)) {\n let changes = [];\n for (let i = 0, comment; i < comments.length; i++)\n if (comment = comments[i]) {\n let token = tokens[i], { open, close } = comment;\n changes.push({ from: open.pos - token.open.length, to: open.pos + open.margin }, { from: close.pos - close.margin, to: close.pos + token.close.length });\n }\n return { changes };\n }\n return null;\n}\n// Performs toggle, comment and uncomment of line comments.\nfunction changeLineComment(option, state, ranges = state.selection.ranges) {\n let lines = [];\n let prevLine = -1;\n for (let { from, to } of ranges) {\n let startI = lines.length, minIndent = 1e9;\n let token = getConfig(state, from).line;\n if (!token)\n continue;\n for (let pos = from; pos <= to;) {\n let line = state.doc.lineAt(pos);\n if (line.from > prevLine && (from == to || to > line.from)) {\n prevLine = line.from;\n let indent = /^\\s*/.exec(line.text)[0].length;\n let empty = indent == line.length;\n let comment = line.text.slice(indent, indent + token.length) == token ? indent : -1;\n if (indent < line.text.length && indent < minIndent)\n minIndent = indent;\n lines.push({ line, comment, token, indent, empty, single: false });\n }\n pos = line.to + 1;\n }\n if (minIndent < 1e9)\n for (let i = startI; i < lines.length; i++)\n if (lines[i].indent < lines[i].line.text.length)\n lines[i].indent = minIndent;\n if (lines.length == startI + 1)\n lines[startI].single = true;\n }\n if (option != 2 /* CommentOption.Uncomment */ && lines.some(l => l.comment < 0 && (!l.empty || l.single))) {\n let changes = [];\n for (let { line, token, indent, empty, single } of lines)\n if (single || !empty)\n changes.push({ from: line.from + indent, insert: token + \" \" });\n let changeSet = state.changes(changes);\n return { changes: changeSet, selection: state.selection.map(changeSet, 1) };\n }\n else if (option != 1 /* CommentOption.Comment */ && lines.some(l => l.comment >= 0)) {\n let changes = [];\n for (let { line, comment, token } of lines)\n if (comment >= 0) {\n let from = line.from + comment, to = from + token.length;\n if (line.text[to - line.from] == \" \")\n to++;\n changes.push({ from, to });\n }\n return { changes };\n }\n return null;\n}\n\nconst fromHistory = /*@__PURE__*/Annotation.define();\n/**\nTransaction annotation that will prevent that transaction from\nbeing combined with other transactions in the undo history. Given\n`\"before\"`, it'll prevent merging with previous transactions. With\n`\"after\"`, subsequent transactions won't be combined with this\none. With `\"full\"`, the transaction is isolated on both sides.\n*/\nconst isolateHistory = /*@__PURE__*/Annotation.define();\n/**\nThis facet provides a way to register functions that, given a\ntransaction, provide a set of effects that the history should\nstore when inverting the transaction. This can be used to\nintegrate some kinds of effects in the history, so that they can\nbe undone (and redone again).\n*/\nconst invertedEffects = /*@__PURE__*/Facet.define();\nconst historyConfig = /*@__PURE__*/Facet.define({\n combine(configs) {\n return combineConfig(configs, {\n minDepth: 100,\n newGroupDelay: 500,\n joinToEvent: (_t, isAdjacent) => isAdjacent,\n }, {\n minDepth: Math.max,\n newGroupDelay: Math.min,\n joinToEvent: (a, b) => (tr, adj) => a(tr, adj) || b(tr, adj)\n });\n }\n});\nfunction changeEnd(changes) {\n let end = 0;\n changes.iterChangedRanges((_, to) => end = to);\n return end;\n}\nconst historyField_ = /*@__PURE__*/StateField.define({\n create() {\n return HistoryState.empty;\n },\n update(state, tr) {\n let config = tr.state.facet(historyConfig);\n let fromHist = tr.annotation(fromHistory);\n if (fromHist) {\n let selection = tr.docChanged ? EditorSelection.single(changeEnd(tr.changes)) : undefined;\n let item = HistEvent.fromTransaction(tr, selection), from = fromHist.side;\n let other = from == 0 /* BranchName.Done */ ? state.undone : state.done;\n if (item)\n other = updateBranch(other, other.length, config.minDepth, item);\n else\n other = addSelection(other, tr.startState.selection);\n return new HistoryState(from == 0 /* BranchName.Done */ ? fromHist.rest : other, from == 0 /* BranchName.Done */ ? other : fromHist.rest);\n }\n let isolate = tr.annotation(isolateHistory);\n if (isolate == \"full\" || isolate == \"before\")\n state = state.isolate();\n if (tr.annotation(Transaction.addToHistory) === false)\n return !tr.changes.empty ? state.addMapping(tr.changes.desc) : state;\n let event = HistEvent.fromTransaction(tr);\n let time = tr.annotation(Transaction.time), userEvent = tr.annotation(Transaction.userEvent);\n if (event)\n state = state.addChanges(event, time, userEvent, config, tr);\n else if (tr.selection)\n state = state.addSelection(tr.startState.selection, time, userEvent, config.newGroupDelay);\n if (isolate == \"full\" || isolate == \"after\")\n state = state.isolate();\n return state;\n },\n toJSON(value) {\n return { done: value.done.map(e => e.toJSON()), undone: value.undone.map(e => e.toJSON()) };\n },\n fromJSON(json) {\n return new HistoryState(json.done.map(HistEvent.fromJSON), json.undone.map(HistEvent.fromJSON));\n }\n});\n/**\nCreate a history extension with the given configuration.\n*/\nfunction history(config = {}) {\n return [\n historyField_,\n historyConfig.of(config),\n EditorView.domEventHandlers({\n beforeinput(e, view) {\n let command = e.inputType == \"historyUndo\" ? undo : e.inputType == \"historyRedo\" ? redo : null;\n if (!command)\n return false;\n e.preventDefault();\n return command(view);\n }\n })\n ];\n}\n/**\nThe state field used to store the history data. Should probably\nonly be used when you want to\n[serialize](https://codemirror.net/6/docs/ref/#state.EditorState.toJSON) or\n[deserialize](https://codemirror.net/6/docs/ref/#state.EditorState^fromJSON) state objects in a way\nthat preserves history.\n*/\nconst historyField = historyField_;\nfunction cmd(side, selection) {\n return function ({ state, dispatch }) {\n if (!selection && state.readOnly)\n return false;\n let historyState = state.field(historyField_, false);\n if (!historyState)\n return false;\n let tr = historyState.pop(side, state, selection);\n if (!tr)\n return false;\n dispatch(tr);\n return true;\n };\n}\n/**\nUndo a single group of history events. Returns false if no group\nwas available.\n*/\nconst undo = /*@__PURE__*/cmd(0 /* BranchName.Done */, false);\n/**\nRedo a group of history events. Returns false if no group was\navailable.\n*/\nconst redo = /*@__PURE__*/cmd(1 /* BranchName.Undone */, false);\n/**\nUndo a change or selection change.\n*/\nconst undoSelection = /*@__PURE__*/cmd(0 /* BranchName.Done */, true);\n/**\nRedo a change or selection change.\n*/\nconst redoSelection = /*@__PURE__*/cmd(1 /* BranchName.Undone */, true);\nfunction depth(side) {\n return function (state) {\n let histState = state.field(historyField_, false);\n if (!histState)\n return 0;\n let branch = side == 0 /* BranchName.Done */ ? histState.done : histState.undone;\n return branch.length - (branch.length && !branch[0].changes ? 1 : 0);\n };\n}\n/**\nThe amount of undoable change events available in a given state.\n*/\nconst undoDepth = /*@__PURE__*/depth(0 /* BranchName.Done */);\n/**\nThe amount of redoable change events available in a given state.\n*/\nconst redoDepth = /*@__PURE__*/depth(1 /* BranchName.Undone */);\n// History events store groups of changes or effects that need to be\n// undone/redone together.\nclass HistEvent {\n constructor(\n // The changes in this event. Normal events hold at least one\n // change or effect. But it may be necessary to store selection\n // events before the first change, in which case a special type of\n // instance is created which doesn't hold any changes, with\n // changes == startSelection == undefined\n changes, \n // The effects associated with this event\n effects, \n // Accumulated mapping (from addToHistory==false) that should be\n // applied to events below this one.\n mapped, \n // The selection before this event\n startSelection, \n // Stores selection changes after this event, to be used for\n // selection undo/redo.\n selectionsAfter) {\n this.changes = changes;\n this.effects = effects;\n this.mapped = mapped;\n this.startSelection = startSelection;\n this.selectionsAfter = selectionsAfter;\n }\n setSelAfter(after) {\n return new HistEvent(this.changes, this.effects, this.mapped, this.startSelection, after);\n }\n toJSON() {\n var _a, _b, _c;\n return {\n changes: (_a = this.changes) === null || _a === void 0 ? void 0 : _a.toJSON(),\n mapped: (_b = this.mapped) === null || _b === void 0 ? void 0 : _b.toJSON(),\n startSelection: (_c = this.startSelection) === null || _c === void 0 ? void 0 : _c.toJSON(),\n selectionsAfter: this.selectionsAfter.map(s => s.toJSON())\n };\n }\n static fromJSON(json) {\n return new HistEvent(json.changes && ChangeSet.fromJSON(json.changes), [], json.mapped && ChangeDesc.fromJSON(json.mapped), json.startSelection && EditorSelection.fromJSON(json.startSelection), json.selectionsAfter.map(EditorSelection.fromJSON));\n }\n // This does not check `addToHistory` and such, it assumes the\n // transaction needs to be converted to an item. Returns null when\n // there are no changes or effects in the transaction.\n static fromTransaction(tr, selection) {\n let effects = none;\n for (let invert of tr.startState.facet(invertedEffects)) {\n let result = invert(tr);\n if (result.length)\n effects = effects.concat(result);\n }\n if (!effects.length && tr.changes.empty)\n return null;\n return new HistEvent(tr.changes.invert(tr.startState.doc), effects, undefined, selection || tr.startState.selection, none);\n }\n static selection(selections) {\n return new HistEvent(undefined, none, undefined, undefined, selections);\n }\n}\nfunction updateBranch(branch, to, maxLen, newEvent) {\n let start = to + 1 > maxLen + 20 ? to - maxLen - 1 : 0;\n let newBranch = branch.slice(start, to);\n newBranch.push(newEvent);\n return newBranch;\n}\nfunction isAdjacent(a, b) {\n let ranges = [], isAdjacent = false;\n a.iterChangedRanges((f, t) => ranges.push(f, t));\n b.iterChangedRanges((_f, _t, f, t) => {\n for (let i = 0; i < ranges.length;) {\n let from = ranges[i++], to = ranges[i++];\n if (t >= from && f <= to)\n isAdjacent = true;\n }\n });\n return isAdjacent;\n}\nfunction eqSelectionShape(a, b) {\n return a.ranges.length == b.ranges.length &&\n a.ranges.filter((r, i) => r.empty != b.ranges[i].empty).length === 0;\n}\nfunction conc(a, b) {\n return !a.length ? b : !b.length ? a : a.concat(b);\n}\nconst none = [];\nconst MaxSelectionsPerEvent = 200;\nfunction addSelection(branch, selection) {\n if (!branch.length) {\n return [HistEvent.selection([selection])];\n }\n else {\n let lastEvent = branch[branch.length - 1];\n let sels = lastEvent.selectionsAfter.slice(Math.max(0, lastEvent.selectionsAfter.length - MaxSelectionsPerEvent));\n if (sels.length && sels[sels.length - 1].eq(selection))\n return branch;\n sels.push(selection);\n return updateBranch(branch, branch.length - 1, 1e9, lastEvent.setSelAfter(sels));\n }\n}\n// Assumes the top item has one or more selectionAfter values\nfunction popSelection(branch) {\n let last = branch[branch.length - 1];\n let newBranch = branch.slice();\n newBranch[branch.length - 1] = last.setSelAfter(last.selectionsAfter.slice(0, last.selectionsAfter.length - 1));\n return newBranch;\n}\n// Add a mapping to the top event in the given branch. If this maps\n// away all the changes and effects in that item, drop it and\n// propagate the mapping to the next item.\nfunction addMappingToBranch(branch, mapping) {\n if (!branch.length)\n return branch;\n let length = branch.length, selections = none;\n while (length) {\n let event = mapEvent(branch[length - 1], mapping, selections);\n if (event.changes && !event.changes.empty || event.effects.length) { // Event survived mapping\n let result = branch.slice(0, length);\n result[length - 1] = event;\n return result;\n }\n else { // Drop this event, since there's no changes or effects left\n mapping = event.mapped;\n length--;\n selections = event.selectionsAfter;\n }\n }\n return selections.length ? [HistEvent.selection(selections)] : none;\n}\nfunction mapEvent(event, mapping, extraSelections) {\n let selections = conc(event.selectionsAfter.length ? event.selectionsAfter.map(s => s.map(mapping)) : none, extraSelections);\n // Change-less events don't store mappings (they are always the last event in a branch)\n if (!event.changes)\n return HistEvent.selection(selections);\n let mappedChanges = event.changes.map(mapping), before = mapping.mapDesc(event.changes, true);\n let fullMapping = event.mapped ? event.mapped.composeDesc(before) : before;\n return new HistEvent(mappedChanges, StateEffect.mapEffects(event.effects, mapping), fullMapping, event.startSelection.map(before), selections);\n}\nconst joinableUserEvent = /^(input\\.type|delete)($|\\.)/;\nclass HistoryState {\n constructor(done, undone, prevTime = 0, prevUserEvent = undefined) {\n this.done = done;\n this.undone = undone;\n this.prevTime = prevTime;\n this.prevUserEvent = prevUserEvent;\n }\n isolate() {\n return this.prevTime ? new HistoryState(this.done, this.undone) : this;\n }\n addChanges(event, time, userEvent, config, tr) {\n let done = this.done, lastEvent = done[done.length - 1];\n if (lastEvent && lastEvent.changes && !lastEvent.changes.empty && event.changes &&\n (!userEvent || joinableUserEvent.test(userEvent)) &&\n ((!lastEvent.selectionsAfter.length &&\n time - this.prevTime < config.newGroupDelay &&\n config.joinToEvent(tr, isAdjacent(lastEvent.changes, event.changes))) ||\n // For compose (but not compose.start) events, always join with previous event\n userEvent == \"input.type.compose\")) {\n done = updateBranch(done, done.length - 1, config.minDepth, new HistEvent(event.changes.compose(lastEvent.changes), conc(event.effects, lastEvent.effects), lastEvent.mapped, lastEvent.startSelection, none));\n }\n else {\n done = updateBranch(done, done.length, config.minDepth, event);\n }\n return new HistoryState(done, none, time, userEvent);\n }\n addSelection(selection, time, userEvent, newGroupDelay) {\n let last = this.done.length ? this.done[this.done.length - 1].selectionsAfter : none;\n if (last.length > 0 &&\n time - this.prevTime < newGroupDelay &&\n userEvent == this.prevUserEvent && userEvent && /^select($|\\.)/.test(userEvent) &&\n eqSelectionShape(last[last.length - 1], selection))\n return this;\n return new HistoryState(addSelection(this.done, selection), this.undone, time, userEvent);\n }\n addMapping(mapping) {\n return new HistoryState(addMappingToBranch(this.done, mapping), addMappingToBranch(this.undone, mapping), this.prevTime, this.prevUserEvent);\n }\n pop(side, state, selection) {\n let branch = side == 0 /* BranchName.Done */ ? this.done : this.undone;\n if (branch.length == 0)\n return null;\n let event = branch[branch.length - 1];\n if (selection && event.selectionsAfter.length) {\n return state.update({\n selection: event.selectionsAfter[event.selectionsAfter.length - 1],\n annotations: fromHistory.of({ side, rest: popSelection(branch) }),\n userEvent: side == 0 /* BranchName.Done */ ? \"select.undo\" : \"select.redo\",\n scrollIntoView: true\n });\n }\n else if (!event.changes) {\n return null;\n }\n else {\n let rest = branch.length == 1 ? none : branch.slice(0, branch.length - 1);\n if (event.mapped)\n rest = addMappingToBranch(rest, event.mapped);\n return state.update({\n changes: event.changes,\n selection: event.startSelection,\n effects: event.effects,\n annotations: fromHistory.of({ side, rest }),\n filter: false,\n userEvent: side == 0 /* BranchName.Done */ ? \"undo\" : \"redo\",\n scrollIntoView: true\n });\n }\n }\n}\nHistoryState.empty = /*@__PURE__*/new HistoryState(none, none);\n/**\nDefault key bindings for the undo history.\n\n- Mod-z: [`undo`](https://codemirror.net/6/docs/ref/#commands.undo).\n- Mod-y (Mod-Shift-z on macOS) + Ctrl-Shift-z on Linux: [`redo`](https://codemirror.net/6/docs/ref/#commands.redo).\n- Mod-u: [`undoSelection`](https://codemirror.net/6/docs/ref/#commands.undoSelection).\n- Alt-u (Mod-Shift-u on macOS): [`redoSelection`](https://codemirror.net/6/docs/ref/#commands.redoSelection).\n*/\nconst historyKeymap = [\n { key: \"Mod-z\", run: undo, preventDefault: true },\n { key: \"Mod-y\", mac: \"Mod-Shift-z\", run: redo, preventDefault: true },\n { linux: \"Ctrl-Shift-z\", run: redo, preventDefault: true },\n { key: \"Mod-u\", run: undoSelection, preventDefault: true },\n { key: \"Alt-u\", mac: \"Mod-Shift-u\", run: redoSelection, preventDefault: true }\n];\n\nfunction updateSel(sel, by) {\n return EditorSelection.create(sel.ranges.map(by), sel.mainIndex);\n}\nfunction setSel(state, selection) {\n return state.update({ selection, scrollIntoView: true, userEvent: \"select\" });\n}\nfunction moveSel({ state, dispatch }, how) {\n let selection = updateSel(state.selection, how);\n if (selection.eq(state.selection))\n return false;\n dispatch(setSel(state, selection));\n return true;\n}\nfunction rangeEnd(range, forward) {\n return EditorSelection.cursor(forward ? range.to : range.from);\n}\nfunction cursorByChar(view, forward) {\n return moveSel(view, range => range.empty ? view.moveByChar(range, forward) : rangeEnd(range, forward));\n}\nfunction ltrAtCursor(view) {\n return view.textDirectionAt(view.state.selection.main.head) == Direction.LTR;\n}\n/**\nMove the selection one character to the left (which is backward in\nleft-to-right text, forward in right-to-left text).\n*/\nconst cursorCharLeft = view => cursorByChar(view, !ltrAtCursor(view));\n/**\nMove the selection one character to the right.\n*/\nconst cursorCharRight = view => cursorByChar(view, ltrAtCursor(view));\n/**\nMove the selection one character forward.\n*/\nconst cursorCharForward = view => cursorByChar(view, true);\n/**\nMove the selection one character backward.\n*/\nconst cursorCharBackward = view => cursorByChar(view, false);\nfunction cursorByGroup(view, forward) {\n return moveSel(view, range => range.empty ? view.moveByGroup(range, forward) : rangeEnd(range, forward));\n}\n/**\nMove the selection to the left across one group of word or\nnon-word (but also non-space) characters.\n*/\nconst cursorGroupLeft = view => cursorByGroup(view, !ltrAtCursor(view));\n/**\nMove the selection one group to the right.\n*/\nconst cursorGroupRight = view => cursorByGroup(view, ltrAtCursor(view));\n/**\nMove the selection one group forward.\n*/\nconst cursorGroupForward = view => cursorByGroup(view, true);\n/**\nMove the selection one group backward.\n*/\nconst cursorGroupBackward = view => cursorByGroup(view, false);\nconst segmenter = typeof Intl != \"undefined\" && Intl.Segmenter ?\n /*@__PURE__*/new (Intl.Segmenter)(undefined, { granularity: \"word\" }) : null;\nfunction moveBySubword(view, range, forward) {\n let categorize = view.state.charCategorizer(range.from);\n let cat = CharCategory.Space, pos = range.from, steps = 0;\n let done = false, sawUpper = false, sawLower = false;\n let step = (next) => {\n if (done)\n return false;\n pos += forward ? next.length : -next.length;\n let nextCat = categorize(next), ahead;\n if (nextCat == CharCategory.Word && next.charCodeAt(0) < 128 && /[\\W_]/.test(next))\n nextCat = -1; // Treat word punctuation specially\n if (cat == CharCategory.Space)\n cat = nextCat;\n if (cat != nextCat)\n return false;\n if (cat == CharCategory.Word) {\n if (next.toLowerCase() == next) {\n if (!forward && sawUpper)\n return false;\n sawLower = true;\n }\n else if (sawLower) {\n if (forward)\n return false;\n done = true;\n }\n else {\n if (sawUpper && forward && categorize(ahead = view.state.sliceDoc(pos, pos + 1)) == CharCategory.Word &&\n ahead.toLowerCase() == ahead)\n return false;\n sawUpper = true;\n }\n }\n steps++;\n return true;\n };\n let end = view.moveByChar(range, forward, start => {\n step(start);\n return step;\n });\n if (segmenter && cat == CharCategory.Word && end.from == range.from + steps * (forward ? 1 : -1)) {\n let from = Math.min(range.head, end.head), to = Math.max(range.head, end.head);\n let skipped = view.state.sliceDoc(from, to);\n if (skipped.length > 1 && /[\\u4E00-\\uffff]/.test(skipped)) {\n let segments = Array.from(segmenter.segment(skipped));\n if (segments.length > 1) {\n if (forward)\n return EditorSelection.cursor(range.head + segments[1].index, -1);\n return EditorSelection.cursor(end.head + segments[segments.length - 1].index, 1);\n }\n }\n }\n return end;\n}\nfunction cursorBySubword(view, forward) {\n return moveSel(view, range => range.empty ? moveBySubword(view, range, forward) : rangeEnd(range, forward));\n}\n/**\nMove the selection one group or camel-case subword forward.\n*/\nconst cursorSubwordForward = view => cursorBySubword(view, true);\n/**\nMove the selection one group or camel-case subword backward.\n*/\nconst cursorSubwordBackward = view => cursorBySubword(view, false);\nfunction interestingNode(state, node, bracketProp) {\n if (node.type.prop(bracketProp))\n return true;\n let len = node.to - node.from;\n return len && (len > 2 || /[^\\s,.;:]/.test(state.sliceDoc(node.from, node.to))) || node.firstChild;\n}\nfunction moveBySyntax(state, start, forward) {\n let pos = syntaxTree(state).resolveInner(start.head);\n let bracketProp = forward ? NodeProp.closedBy : NodeProp.openedBy;\n // Scan forward through child nodes to see if there's an interesting\n // node ahead.\n for (let at = start.head;;) {\n let next = forward ? pos.childAfter(at) : pos.childBefore(at);\n if (!next)\n break;\n if (interestingNode(state, next, bracketProp))\n pos = next;\n else\n at = forward ? next.to : next.from;\n }\n let bracket = pos.type.prop(bracketProp), match, newPos;\n if (bracket && (match = forward ? matchBrackets(state, pos.from, 1) : matchBrackets(state, pos.to, -1)) && match.matched)\n newPos = forward ? match.end.to : match.end.from;\n else\n newPos = forward ? pos.to : pos.from;\n return EditorSelection.cursor(newPos, forward ? -1 : 1);\n}\n/**\nMove the cursor over the next syntactic element to the left.\n*/\nconst cursorSyntaxLeft = view => moveSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));\n/**\nMove the cursor over the next syntactic element to the right.\n*/\nconst cursorSyntaxRight = view => moveSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));\nfunction cursorByLine(view, forward) {\n return moveSel(view, range => {\n if (!range.empty)\n return rangeEnd(range, forward);\n let moved = view.moveVertically(range, forward);\n return moved.head != range.head ? moved : view.moveToLineBoundary(range, forward);\n });\n}\n/**\nMove the selection one line up.\n*/\nconst cursorLineUp = view => cursorByLine(view, false);\n/**\nMove the selection one line down.\n*/\nconst cursorLineDown = view => cursorByLine(view, true);\nfunction pageInfo(view) {\n let selfScroll = view.scrollDOM.clientHeight < view.scrollDOM.scrollHeight - 2;\n let marginTop = 0, marginBottom = 0, height;\n if (selfScroll) {\n for (let source of view.state.facet(EditorView.scrollMargins)) {\n let margins = source(view);\n if (margins === null || margins === void 0 ? void 0 : margins.top)\n marginTop = Math.max(margins === null || margins === void 0 ? void 0 : margins.top, marginTop);\n if (margins === null || margins === void 0 ? void 0 : margins.bottom)\n marginBottom = Math.max(margins === null || margins === void 0 ? void 0 : margins.bottom, marginBottom);\n }\n height = view.scrollDOM.clientHeight - marginTop - marginBottom;\n }\n else {\n height = (view.dom.ownerDocument.defaultView || window).innerHeight;\n }\n return { marginTop, marginBottom, selfScroll,\n height: Math.max(view.defaultLineHeight, height - 5) };\n}\nfunction cursorByPage(view, forward) {\n let page = pageInfo(view);\n let { state } = view, selection = updateSel(state.selection, range => {\n return range.empty ? view.moveVertically(range, forward, page.height)\n : rangeEnd(range, forward);\n });\n if (selection.eq(state.selection))\n return false;\n let effect;\n if (page.selfScroll) {\n let startPos = view.coordsAtPos(state.selection.main.head);\n let scrollRect = view.scrollDOM.getBoundingClientRect();\n let scrollTop = scrollRect.top + page.marginTop, scrollBottom = scrollRect.bottom - page.marginBottom;\n if (startPos && startPos.top > scrollTop && startPos.bottom < scrollBottom)\n effect = EditorView.scrollIntoView(selection.main.head, { y: \"start\", yMargin: startPos.top - scrollTop });\n }\n view.dispatch(setSel(state, selection), { effects: effect });\n return true;\n}\n/**\nMove the selection one page up.\n*/\nconst cursorPageUp = view => cursorByPage(view, false);\n/**\nMove the selection one page down.\n*/\nconst cursorPageDown = view => cursorByPage(view, true);\nfunction moveByLineBoundary(view, start, forward) {\n let line = view.lineBlockAt(start.head), moved = view.moveToLineBoundary(start, forward);\n if (moved.head == start.head && moved.head != (forward ? line.to : line.from))\n moved = view.moveToLineBoundary(start, forward, false);\n if (!forward && moved.head == line.from && line.length) {\n let space = /^\\s*/.exec(view.state.sliceDoc(line.from, Math.min(line.from + 100, line.to)))[0].length;\n if (space && start.head != line.from + space)\n moved = EditorSelection.cursor(line.from + space);\n }\n return moved;\n}\n/**\nMove the selection to the next line wrap point, or to the end of\nthe line if there isn't one left on this line.\n*/\nconst cursorLineBoundaryForward = view => moveSel(view, range => moveByLineBoundary(view, range, true));\n/**\nMove the selection to previous line wrap point, or failing that to\nthe start of the line. If the line is indented, and the cursor\nisn't already at the end of the indentation, this will move to the\nend of the indentation instead of the start of the line.\n*/\nconst cursorLineBoundaryBackward = view => moveSel(view, range => moveByLineBoundary(view, range, false));\n/**\nMove the selection one line wrap point to the left.\n*/\nconst cursorLineBoundaryLeft = view => moveSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));\n/**\nMove the selection one line wrap point to the right.\n*/\nconst cursorLineBoundaryRight = view => moveSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));\n/**\nMove the selection to the start of the line.\n*/\nconst cursorLineStart = view => moveSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).from, 1));\n/**\nMove the selection to the end of the line.\n*/\nconst cursorLineEnd = view => moveSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).to, -1));\nfunction toMatchingBracket(state, dispatch, extend) {\n let found = false, selection = updateSel(state.selection, range => {\n let matching = matchBrackets(state, range.head, -1)\n || matchBrackets(state, range.head, 1)\n || (range.head > 0 && matchBrackets(state, range.head - 1, 1))\n || (range.head < state.doc.length && matchBrackets(state, range.head + 1, -1));\n if (!matching || !matching.end)\n return range;\n found = true;\n let head = matching.start.from == range.head ? matching.end.to : matching.end.from;\n return extend ? EditorSelection.range(range.anchor, head) : EditorSelection.cursor(head);\n });\n if (!found)\n return false;\n dispatch(setSel(state, selection));\n return true;\n}\n/**\nMove the selection to the bracket matching the one it is currently\non, if any.\n*/\nconst cursorMatchingBracket = ({ state, dispatch }) => toMatchingBracket(state, dispatch, false);\n/**\nExtend the selection to the bracket matching the one the selection\nhead is currently on, if any.\n*/\nconst selectMatchingBracket = ({ state, dispatch }) => toMatchingBracket(state, dispatch, true);\nfunction extendSel(view, how) {\n let selection = updateSel(view.state.selection, range => {\n let head = how(range);\n return EditorSelection.range(range.anchor, head.head, head.goalColumn, head.bidiLevel || undefined);\n });\n if (selection.eq(view.state.selection))\n return false;\n view.dispatch(setSel(view.state, selection));\n return true;\n}\nfunction selectByChar(view, forward) {\n return extendSel(view, range => view.moveByChar(range, forward));\n}\n/**\nMove the selection head one character to the left, while leaving\nthe anchor in place.\n*/\nconst selectCharLeft = view => selectByChar(view, !ltrAtCursor(view));\n/**\nMove the selection head one character to the right.\n*/\nconst selectCharRight = view => selectByChar(view, ltrAtCursor(view));\n/**\nMove the selection head one character forward.\n*/\nconst selectCharForward = view => selectByChar(view, true);\n/**\nMove the selection head one character backward.\n*/\nconst selectCharBackward = view => selectByChar(view, false);\nfunction selectByGroup(view, forward) {\n return extendSel(view, range => view.moveByGroup(range, forward));\n}\n/**\nMove the selection head one [group](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) to\nthe left.\n*/\nconst selectGroupLeft = view => selectByGroup(view, !ltrAtCursor(view));\n/**\nMove the selection head one group to the right.\n*/\nconst selectGroupRight = view => selectByGroup(view, ltrAtCursor(view));\n/**\nMove the selection head one group forward.\n*/\nconst selectGroupForward = view => selectByGroup(view, true);\n/**\nMove the selection head one group backward.\n*/\nconst selectGroupBackward = view => selectByGroup(view, false);\nfunction selectBySubword(view, forward) {\n return extendSel(view, range => moveBySubword(view, range, forward));\n}\n/**\nMove the selection head one group or camel-case subword forward.\n*/\nconst selectSubwordForward = view => selectBySubword(view, true);\n/**\nMove the selection head one group or subword backward.\n*/\nconst selectSubwordBackward = view => selectBySubword(view, false);\n/**\nMove the selection head over the next syntactic element to the left.\n*/\nconst selectSyntaxLeft = view => extendSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));\n/**\nMove the selection head over the next syntactic element to the right.\n*/\nconst selectSyntaxRight = view => extendSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));\nfunction selectByLine(view, forward) {\n return extendSel(view, range => view.moveVertically(range, forward));\n}\n/**\nMove the selection head one line up.\n*/\nconst selectLineUp = view => selectByLine(view, false);\n/**\nMove the selection head one line down.\n*/\nconst selectLineDown = view => selectByLine(view, true);\nfunction selectByPage(view, forward) {\n return extendSel(view, range => view.moveVertically(range, forward, pageInfo(view).height));\n}\n/**\nMove the selection head one page up.\n*/\nconst selectPageUp = view => selectByPage(view, false);\n/**\nMove the selection head one page down.\n*/\nconst selectPageDown = view => selectByPage(view, true);\n/**\nMove the selection head to the next line boundary.\n*/\nconst selectLineBoundaryForward = view => extendSel(view, range => moveByLineBoundary(view, range, true));\n/**\nMove the selection head to the previous line boundary.\n*/\nconst selectLineBoundaryBackward = view => extendSel(view, range => moveByLineBoundary(view, range, false));\n/**\nMove the selection head one line boundary to the left.\n*/\nconst selectLineBoundaryLeft = view => extendSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));\n/**\nMove the selection head one line boundary to the right.\n*/\nconst selectLineBoundaryRight = view => extendSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));\n/**\nMove the selection head to the start of the line.\n*/\nconst selectLineStart = view => extendSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).from));\n/**\nMove the selection head to the end of the line.\n*/\nconst selectLineEnd = view => extendSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).to));\n/**\nMove the selection to the start of the document.\n*/\nconst cursorDocStart = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: 0 }));\n return true;\n};\n/**\nMove the selection to the end of the document.\n*/\nconst cursorDocEnd = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: state.doc.length }));\n return true;\n};\n/**\nMove the selection head to the start of the document.\n*/\nconst selectDocStart = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: state.selection.main.anchor, head: 0 }));\n return true;\n};\n/**\nMove the selection head to the end of the document.\n*/\nconst selectDocEnd = ({ state, dispatch }) => {\n dispatch(setSel(state, { anchor: state.selection.main.anchor, head: state.doc.length }));\n return true;\n};\n/**\nSelect the entire document.\n*/\nconst selectAll = ({ state, dispatch }) => {\n dispatch(state.update({ selection: { anchor: 0, head: state.doc.length }, userEvent: \"select\" }));\n return true;\n};\n/**\nExpand the selection to cover entire lines.\n*/\nconst selectLine = ({ state, dispatch }) => {\n let ranges = selectedLineBlocks(state).map(({ from, to }) => EditorSelection.range(from, Math.min(to + 1, state.doc.length)));\n dispatch(state.update({ selection: EditorSelection.create(ranges), userEvent: \"select\" }));\n return true;\n};\n/**\nSelect the next syntactic construct that is larger than the\nselection. Note that this will only work insofar as the language\n[provider](https://codemirror.net/6/docs/ref/#language.language) you use builds up a full\nsyntax tree.\n*/\nconst selectParentSyntax = ({ state, dispatch }) => {\n let selection = updateSel(state.selection, range => {\n var _a;\n let stack = syntaxTree(state).resolveStack(range.from, 1);\n for (let cur = stack; cur; cur = cur.next) {\n let { node } = cur;\n if (((node.from < range.from && node.to >= range.to) ||\n (node.to > range.to && node.from <= range.from)) &&\n ((_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent))\n return EditorSelection.range(node.to, node.from);\n }\n return range;\n });\n dispatch(setSel(state, selection));\n return true;\n};\n/**\nSimplify the current selection. When multiple ranges are selected,\nreduce it to its main range. Otherwise, if the selection is\nnon-empty, convert it to a cursor selection.\n*/\nconst simplifySelection = ({ state, dispatch }) => {\n let cur = state.selection, selection = null;\n if (cur.ranges.length > 1)\n selection = EditorSelection.create([cur.main]);\n else if (!cur.main.empty)\n selection = EditorSelection.create([EditorSelection.cursor(cur.main.head)]);\n if (!selection)\n return false;\n dispatch(setSel(state, selection));\n return true;\n};\nfunction deleteBy(target, by) {\n if (target.state.readOnly)\n return false;\n let event = \"delete.selection\", { state } = target;\n let changes = state.changeByRange(range => {\n let { from, to } = range;\n if (from == to) {\n let towards = by(range);\n if (towards < from) {\n event = \"delete.backward\";\n towards = skipAtomic(target, towards, false);\n }\n else if (towards > from) {\n event = \"delete.forward\";\n towards = skipAtomic(target, towards, true);\n }\n from = Math.min(from, towards);\n to = Math.max(to, towards);\n }\n else {\n from = skipAtomic(target, from, false);\n to = skipAtomic(target, to, true);\n }\n return from == to ? { range } : { changes: { from, to }, range: EditorSelection.cursor(from, from < range.head ? -1 : 1) };\n });\n if (changes.changes.empty)\n return false;\n target.dispatch(state.update(changes, {\n scrollIntoView: true,\n userEvent: event,\n effects: event == \"delete.selection\" ? EditorView.announce.of(state.phrase(\"Selection deleted\")) : undefined\n }));\n return true;\n}\nfunction skipAtomic(target, pos, forward) {\n if (target instanceof EditorView)\n for (let ranges of target.state.facet(EditorView.atomicRanges).map(f => f(target)))\n ranges.between(pos, pos, (from, to) => {\n if (from < pos && to > pos)\n pos = forward ? to : from;\n });\n return pos;\n}\nconst deleteByChar = (target, forward) => deleteBy(target, range => {\n let pos = range.from, { state } = target, line = state.doc.lineAt(pos), before, targetPos;\n if (!forward && pos > line.from && pos < line.from + 200 &&\n !/[^ \\t]/.test(before = line.text.slice(0, pos - line.from))) {\n if (before[before.length - 1] == \"\\t\")\n return pos - 1;\n let col = countColumn(before, state.tabSize), drop = col % getIndentUnit(state) || getIndentUnit(state);\n for (let i = 0; i < drop && before[before.length - 1 - i] == \" \"; i++)\n pos--;\n targetPos = pos;\n }\n else {\n targetPos = findClusterBreak(line.text, pos - line.from, forward, forward) + line.from;\n if (targetPos == pos && line.number != (forward ? state.doc.lines : 1))\n targetPos += forward ? 1 : -1;\n }\n return targetPos;\n});\n/**\nDelete the selection, or, for cursor selections, the character\nbefore the cursor.\n*/\nconst deleteCharBackward = view => deleteByChar(view, false);\n/**\nDelete the selection or the character after the cursor.\n*/\nconst deleteCharForward = view => deleteByChar(view, true);\nconst deleteByGroup = (target, forward) => deleteBy(target, range => {\n let pos = range.head, { state } = target, line = state.doc.lineAt(pos);\n let categorize = state.charCategorizer(pos);\n for (let cat = null;;) {\n if (pos == (forward ? line.to : line.from)) {\n if (pos == range.head && line.number != (forward ? state.doc.lines : 1))\n pos += forward ? 1 : -1;\n break;\n }\n let next = findClusterBreak(line.text, pos - line.from, forward) + line.from;\n let nextChar = line.text.slice(Math.min(pos, next) - line.from, Math.max(pos, next) - line.from);\n let nextCat = categorize(nextChar);\n if (cat != null && nextCat != cat)\n break;\n if (nextChar != \" \" || pos != range.head)\n cat = nextCat;\n pos = next;\n }\n return pos;\n});\n/**\nDelete the selection or backward until the end of the next\n[group](https://codemirror.net/6/docs/ref/#view.EditorView.moveByGroup), only skipping groups of\nwhitespace when they consist of a single space.\n*/\nconst deleteGroupBackward = target => deleteByGroup(target, false);\n/**\nDelete the selection or forward until the end of the next group.\n*/\nconst deleteGroupForward = target => deleteByGroup(target, true);\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe end of the line. If the cursor is directly at the end of the\nline, delete the line break after it.\n*/\nconst deleteToLineEnd = view => deleteBy(view, range => {\n let lineEnd = view.lineBlockAt(range.head).to;\n return range.head < lineEnd ? lineEnd : Math.min(view.state.doc.length, range.head + 1);\n});\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe start of the line. If the cursor is directly at the start of the\nline, delete the line break before it.\n*/\nconst deleteToLineStart = view => deleteBy(view, range => {\n let lineStart = view.lineBlockAt(range.head).from;\n return range.head > lineStart ? lineStart : Math.max(0, range.head - 1);\n});\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe start of the line or the next line wrap before the cursor.\n*/\nconst deleteLineBoundaryBackward = view => deleteBy(view, range => {\n let lineStart = view.moveToLineBoundary(range, false).head;\n return range.head > lineStart ? lineStart : Math.max(0, range.head - 1);\n});\n/**\nDelete the selection, or, if it is a cursor selection, delete to\nthe end of the line or the next line wrap after the cursor.\n*/\nconst deleteLineBoundaryForward = view => deleteBy(view, range => {\n let lineStart = view.moveToLineBoundary(range, true).head;\n return range.head < lineStart ? lineStart : Math.min(view.state.doc.length, range.head + 1);\n});\n/**\nDelete all whitespace directly before a line end from the\ndocument.\n*/\nconst deleteTrailingWhitespace = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = [];\n for (let pos = 0, prev = \"\", iter = state.doc.iter();;) {\n iter.next();\n if (iter.lineBreak || iter.done) {\n let trailing = prev.search(/\\s+$/);\n if (trailing > -1)\n changes.push({ from: pos - (prev.length - trailing), to: pos });\n if (iter.done)\n break;\n prev = \"\";\n }\n else {\n prev = iter.value;\n }\n pos += iter.value.length;\n }\n if (!changes.length)\n return false;\n dispatch(state.update({ changes, userEvent: \"delete\" }));\n return true;\n};\n/**\nReplace each selection range with a line break, leaving the cursor\non the line before the break.\n*/\nconst splitLine = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = state.changeByRange(range => {\n return { changes: { from: range.from, to: range.to, insert: Text.of([\"\", \"\"]) },\n range: EditorSelection.cursor(range.from) };\n });\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\n/**\nFlip the characters before and after the cursor(s).\n*/\nconst transposeChars = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = state.changeByRange(range => {\n if (!range.empty || range.from == 0 || range.from == state.doc.length)\n return { range };\n let pos = range.from, line = state.doc.lineAt(pos);\n let from = pos == line.from ? pos - 1 : findClusterBreak(line.text, pos - line.from, false) + line.from;\n let to = pos == line.to ? pos + 1 : findClusterBreak(line.text, pos - line.from, true) + line.from;\n return { changes: { from, to, insert: state.doc.slice(pos, to).append(state.doc.slice(from, pos)) },\n range: EditorSelection.cursor(to) };\n });\n if (changes.changes.empty)\n return false;\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"move.character\" }));\n return true;\n};\nfunction selectedLineBlocks(state) {\n let blocks = [], upto = -1;\n for (let range of state.selection.ranges) {\n let startLine = state.doc.lineAt(range.from), endLine = state.doc.lineAt(range.to);\n if (!range.empty && range.to == endLine.from)\n endLine = state.doc.lineAt(range.to - 1);\n if (upto >= startLine.number) {\n let prev = blocks[blocks.length - 1];\n prev.to = endLine.to;\n prev.ranges.push(range);\n }\n else {\n blocks.push({ from: startLine.from, to: endLine.to, ranges: [range] });\n }\n upto = endLine.number + 1;\n }\n return blocks;\n}\nfunction moveLine(state, dispatch, forward) {\n if (state.readOnly)\n return false;\n let changes = [], ranges = [];\n for (let block of selectedLineBlocks(state)) {\n if (forward ? block.to == state.doc.length : block.from == 0)\n continue;\n let nextLine = state.doc.lineAt(forward ? block.to + 1 : block.from - 1);\n let size = nextLine.length + 1;\n if (forward) {\n changes.push({ from: block.to, to: nextLine.to }, { from: block.from, insert: nextLine.text + state.lineBreak });\n for (let r of block.ranges)\n ranges.push(EditorSelection.range(Math.min(state.doc.length, r.anchor + size), Math.min(state.doc.length, r.head + size)));\n }\n else {\n changes.push({ from: nextLine.from, to: block.from }, { from: block.to, insert: state.lineBreak + nextLine.text });\n for (let r of block.ranges)\n ranges.push(EditorSelection.range(r.anchor - size, r.head - size));\n }\n }\n if (!changes.length)\n return false;\n dispatch(state.update({\n changes,\n scrollIntoView: true,\n selection: EditorSelection.create(ranges, state.selection.mainIndex),\n userEvent: \"move.line\"\n }));\n return true;\n}\n/**\nMove the selected lines up one line.\n*/\nconst moveLineUp = ({ state, dispatch }) => moveLine(state, dispatch, false);\n/**\nMove the selected lines down one line.\n*/\nconst moveLineDown = ({ state, dispatch }) => moveLine(state, dispatch, true);\nfunction copyLine(state, dispatch, forward) {\n if (state.readOnly)\n return false;\n let changes = [];\n for (let block of selectedLineBlocks(state)) {\n if (forward)\n changes.push({ from: block.from, insert: state.doc.slice(block.from, block.to) + state.lineBreak });\n else\n changes.push({ from: block.to, insert: state.lineBreak + state.doc.slice(block.from, block.to) });\n }\n dispatch(state.update({ changes, scrollIntoView: true, userEvent: \"input.copyline\" }));\n return true;\n}\n/**\nCreate a copy of the selected lines. Keep the selection in the top copy.\n*/\nconst copyLineUp = ({ state, dispatch }) => copyLine(state, dispatch, false);\n/**\nCreate a copy of the selected lines. Keep the selection in the bottom copy.\n*/\nconst copyLineDown = ({ state, dispatch }) => copyLine(state, dispatch, true);\n/**\nDelete selected lines.\n*/\nconst deleteLine = view => {\n if (view.state.readOnly)\n return false;\n let { state } = view, changes = state.changes(selectedLineBlocks(state).map(({ from, to }) => {\n if (from > 0)\n from--;\n else if (to < state.doc.length)\n to++;\n return { from, to };\n }));\n let selection = updateSel(state.selection, range => view.moveVertically(range, true)).map(changes);\n view.dispatch({ changes, selection, scrollIntoView: true, userEvent: \"delete.line\" });\n return true;\n};\n/**\nReplace the selection with a newline.\n*/\nconst insertNewline = ({ state, dispatch }) => {\n dispatch(state.update(state.replaceSelection(state.lineBreak), { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\nfunction isBetweenBrackets(state, pos) {\n if (/\\(\\)|\\[\\]|\\{\\}/.test(state.sliceDoc(pos - 1, pos + 1)))\n return { from: pos, to: pos };\n let context = syntaxTree(state).resolveInner(pos);\n let before = context.childBefore(pos), after = context.childAfter(pos), closedBy;\n if (before && after && before.to <= pos && after.from >= pos &&\n (closedBy = before.type.prop(NodeProp.closedBy)) && closedBy.indexOf(after.name) > -1 &&\n state.doc.lineAt(before.to).from == state.doc.lineAt(after.from).from &&\n !/\\S/.test(state.sliceDoc(before.to, after.from)))\n return { from: before.to, to: after.from };\n return null;\n}\n/**\nReplace the selection with a newline and indent the newly created\nline(s). If the current line consists only of whitespace, this\nwill also delete that whitespace. When the cursor is between\nmatching brackets, an additional newline will be inserted after\nthe cursor.\n*/\nconst insertNewlineAndIndent = /*@__PURE__*/newlineAndIndent(false);\n/**\nCreate a blank, indented line below the current line.\n*/\nconst insertBlankLine = /*@__PURE__*/newlineAndIndent(true);\nfunction newlineAndIndent(atEof) {\n return ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let changes = state.changeByRange(range => {\n let { from, to } = range, line = state.doc.lineAt(from);\n let explode = !atEof && from == to && isBetweenBrackets(state, from);\n if (atEof)\n from = to = (to <= line.to ? line : state.doc.lineAt(to)).to;\n let cx = new IndentContext(state, { simulateBreak: from, simulateDoubleBreak: !!explode });\n let indent = getIndentation(cx, from);\n if (indent == null)\n indent = countColumn(/^\\s*/.exec(state.doc.lineAt(from).text)[0], state.tabSize);\n while (to < line.to && /\\s/.test(line.text[to - line.from]))\n to++;\n if (explode)\n ({ from, to } = explode);\n else if (from > line.from && from < line.from + 100 && !/\\S/.test(line.text.slice(0, from)))\n from = line.from;\n let insert = [\"\", indentString(state, indent)];\n if (explode)\n insert.push(indentString(state, cx.lineIndent(line.from, -1)));\n return { changes: { from, to, insert: Text.of(insert) },\n range: EditorSelection.cursor(from + 1 + insert[1].length) };\n });\n dispatch(state.update(changes, { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n };\n}\nfunction changeBySelectedLine(state, f) {\n let atLine = -1;\n return state.changeByRange(range => {\n let changes = [];\n for (let pos = range.from; pos <= range.to;) {\n let line = state.doc.lineAt(pos);\n if (line.number > atLine && (range.empty || range.to > line.from)) {\n f(line, changes, range);\n atLine = line.number;\n }\n pos = line.to + 1;\n }\n let changeSet = state.changes(changes);\n return { changes,\n range: EditorSelection.range(changeSet.mapPos(range.anchor, 1), changeSet.mapPos(range.head, 1)) };\n });\n}\n/**\nAuto-indent the selected lines. This uses the [indentation service\nfacet](https://codemirror.net/6/docs/ref/#language.indentService) as source for auto-indent\ninformation.\n*/\nconst indentSelection = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n let updated = Object.create(null);\n let context = new IndentContext(state, { overrideIndentation: start => {\n let found = updated[start];\n return found == null ? -1 : found;\n } });\n let changes = changeBySelectedLine(state, (line, changes, range) => {\n let indent = getIndentation(context, line.from);\n if (indent == null)\n return;\n if (!/\\S/.test(line.text))\n indent = 0;\n let cur = /^\\s*/.exec(line.text)[0];\n let norm = indentString(state, indent);\n if (cur != norm || range.from < line.from + cur.length) {\n updated[line.from] = indent;\n changes.push({ from: line.from, to: line.from + cur.length, insert: norm });\n }\n });\n if (!changes.changes.empty)\n dispatch(state.update(changes, { userEvent: \"indent\" }));\n return true;\n};\n/**\nAdd a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected\nlines.\n*/\nconst indentMore = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n dispatch(state.update(changeBySelectedLine(state, (line, changes) => {\n changes.push({ from: line.from, insert: state.facet(indentUnit) });\n }), { userEvent: \"input.indent\" }));\n return true;\n};\n/**\nRemove a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation from all\nselected lines.\n*/\nconst indentLess = ({ state, dispatch }) => {\n if (state.readOnly)\n return false;\n dispatch(state.update(changeBySelectedLine(state, (line, changes) => {\n let space = /^\\s*/.exec(line.text)[0];\n if (!space)\n return;\n let col = countColumn(space, state.tabSize), keep = 0;\n let insert = indentString(state, Math.max(0, col - getIndentUnit(state)));\n while (keep < space.length && keep < insert.length && space.charCodeAt(keep) == insert.charCodeAt(keep))\n keep++;\n changes.push({ from: line.from + keep, to: line.from + space.length, insert: insert.slice(keep) });\n }), { userEvent: \"delete.dedent\" }));\n return true;\n};\n/**\nInsert a tab character at the cursor or, if something is selected,\nuse [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) to indent the entire\nselection.\n*/\nconst insertTab = ({ state, dispatch }) => {\n if (state.selection.ranges.some(r => !r.empty))\n return indentMore({ state, dispatch });\n dispatch(state.update(state.replaceSelection(\"\\t\"), { scrollIntoView: true, userEvent: \"input\" }));\n return true;\n};\n/**\nArray of key bindings containing the Emacs-style bindings that are\navailable on macOS by default.\n\n - Ctrl-b: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)\n - Ctrl-f: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)\n - Ctrl-p: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)\n - Ctrl-n: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)\n - Ctrl-a: [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)\n - Ctrl-e: [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)\n - Ctrl-d: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)\n - Ctrl-h: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)\n - Ctrl-k: [`deleteToLineEnd`](https://codemirror.net/6/docs/ref/#commands.deleteToLineEnd)\n - Ctrl-Alt-h: [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)\n - Ctrl-o: [`splitLine`](https://codemirror.net/6/docs/ref/#commands.splitLine)\n - Ctrl-t: [`transposeChars`](https://codemirror.net/6/docs/ref/#commands.transposeChars)\n - Ctrl-v: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown)\n - Alt-v: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp)\n*/\nconst emacsStyleKeymap = [\n { key: \"Ctrl-b\", run: cursorCharLeft, shift: selectCharLeft, preventDefault: true },\n { key: \"Ctrl-f\", run: cursorCharRight, shift: selectCharRight },\n { key: \"Ctrl-p\", run: cursorLineUp, shift: selectLineUp },\n { key: \"Ctrl-n\", run: cursorLineDown, shift: selectLineDown },\n { key: \"Ctrl-a\", run: cursorLineStart, shift: selectLineStart },\n { key: \"Ctrl-e\", run: cursorLineEnd, shift: selectLineEnd },\n { key: \"Ctrl-d\", run: deleteCharForward },\n { key: \"Ctrl-h\", run: deleteCharBackward },\n { key: \"Ctrl-k\", run: deleteToLineEnd },\n { key: \"Ctrl-Alt-h\", run: deleteGroupBackward },\n { key: \"Ctrl-o\", run: splitLine },\n { key: \"Ctrl-t\", run: transposeChars },\n { key: \"Ctrl-v\", run: cursorPageDown },\n];\n/**\nAn array of key bindings closely sticking to platform-standard or\nwidely used bindings. (This includes the bindings from\n[`emacsStyleKeymap`](https://codemirror.net/6/docs/ref/#commands.emacsStyleKeymap), with their `key`\nproperty changed to `mac`.)\n\n - ArrowLeft: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)\n - ArrowRight: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)\n - Ctrl-ArrowLeft (Alt-ArrowLeft on macOS): [`cursorGroupLeft`](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) ([`selectGroupLeft`](https://codemirror.net/6/docs/ref/#commands.selectGroupLeft) with Shift)\n - Ctrl-ArrowRight (Alt-ArrowRight on macOS): [`cursorGroupRight`](https://codemirror.net/6/docs/ref/#commands.cursorGroupRight) ([`selectGroupRight`](https://codemirror.net/6/docs/ref/#commands.selectGroupRight) with Shift)\n - Cmd-ArrowLeft (on macOS): [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)\n - Cmd-ArrowRight (on macOS): [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)\n - ArrowUp: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)\n - ArrowDown: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)\n - Cmd-ArrowUp (on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)\n - Cmd-ArrowDown (on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)\n - Ctrl-ArrowUp (on macOS): [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)\n - Ctrl-ArrowDown (on macOS): [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)\n - PageUp: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)\n - PageDown: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)\n - Home: [`cursorLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryBackward) ([`selectLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryBackward) with Shift)\n - End: [`cursorLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryForward) ([`selectLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryForward) with Shift)\n - Ctrl-Home (Cmd-Home on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)\n - Ctrl-End (Cmd-Home on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)\n - Enter: [`insertNewlineAndIndent`](https://codemirror.net/6/docs/ref/#commands.insertNewlineAndIndent)\n - Ctrl-a (Cmd-a on macOS): [`selectAll`](https://codemirror.net/6/docs/ref/#commands.selectAll)\n - Backspace: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)\n - Delete: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)\n - Ctrl-Backspace (Alt-Backspace on macOS): [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)\n - Ctrl-Delete (Alt-Delete on macOS): [`deleteGroupForward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupForward)\n - Cmd-Backspace (macOS): [`deleteLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.deleteLineBoundaryBackward).\n - Cmd-Delete (macOS): [`deleteLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.deleteLineBoundaryForward).\n*/\nconst standardKeymap = /*@__PURE__*/[\n { key: \"ArrowLeft\", run: cursorCharLeft, shift: selectCharLeft, preventDefault: true },\n { key: \"Mod-ArrowLeft\", mac: \"Alt-ArrowLeft\", run: cursorGroupLeft, shift: selectGroupLeft, preventDefault: true },\n { mac: \"Cmd-ArrowLeft\", run: cursorLineBoundaryLeft, shift: selectLineBoundaryLeft, preventDefault: true },\n { key: \"ArrowRight\", run: cursorCharRight, shift: selectCharRight, preventDefault: true },\n { key: \"Mod-ArrowRight\", mac: \"Alt-ArrowRight\", run: cursorGroupRight, shift: selectGroupRight, preventDefault: true },\n { mac: \"Cmd-ArrowRight\", run: cursorLineBoundaryRight, shift: selectLineBoundaryRight, preventDefault: true },\n { key: \"ArrowUp\", run: cursorLineUp, shift: selectLineUp, preventDefault: true },\n { mac: \"Cmd-ArrowUp\", run: cursorDocStart, shift: selectDocStart },\n { mac: \"Ctrl-ArrowUp\", run: cursorPageUp, shift: selectPageUp },\n { key: \"ArrowDown\", run: cursorLineDown, shift: selectLineDown, preventDefault: true },\n { mac: \"Cmd-ArrowDown\", run: cursorDocEnd, shift: selectDocEnd },\n { mac: \"Ctrl-ArrowDown\", run: cursorPageDown, shift: selectPageDown },\n { key: \"PageUp\", run: cursorPageUp, shift: selectPageUp },\n { key: \"PageDown\", run: cursorPageDown, shift: selectPageDown },\n { key: \"Home\", run: cursorLineBoundaryBackward, shift: selectLineBoundaryBackward, preventDefault: true },\n { key: \"Mod-Home\", run: cursorDocStart, shift: selectDocStart },\n { key: \"End\", run: cursorLineBoundaryForward, shift: selectLineBoundaryForward, preventDefault: true },\n { key: \"Mod-End\", run: cursorDocEnd, shift: selectDocEnd },\n { key: \"Enter\", run: insertNewlineAndIndent },\n { key: \"Mod-a\", run: selectAll },\n { key: \"Backspace\", run: deleteCharBackward, shift: deleteCharBackward },\n { key: \"Delete\", run: deleteCharForward },\n { key: \"Mod-Backspace\", mac: \"Alt-Backspace\", run: deleteGroupBackward },\n { key: \"Mod-Delete\", mac: \"Alt-Delete\", run: deleteGroupForward },\n { mac: \"Mod-Backspace\", run: deleteLineBoundaryBackward },\n { mac: \"Mod-Delete\", run: deleteLineBoundaryForward }\n].concat(/*@__PURE__*/emacsStyleKeymap.map(b => ({ mac: b.key, run: b.run, shift: b.shift })));\n/**\nThe default keymap. Includes all bindings from\n[`standardKeymap`](https://codemirror.net/6/docs/ref/#commands.standardKeymap) plus the following:\n\n- Alt-ArrowLeft (Ctrl-ArrowLeft on macOS): [`cursorSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxLeft) ([`selectSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxLeft) with Shift)\n- Alt-ArrowRight (Ctrl-ArrowRight on macOS): [`cursorSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxRight) ([`selectSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxRight) with Shift)\n- Alt-ArrowUp: [`moveLineUp`](https://codemirror.net/6/docs/ref/#commands.moveLineUp)\n- Alt-ArrowDown: [`moveLineDown`](https://codemirror.net/6/docs/ref/#commands.moveLineDown)\n- Shift-Alt-ArrowUp: [`copyLineUp`](https://codemirror.net/6/docs/ref/#commands.copyLineUp)\n- Shift-Alt-ArrowDown: [`copyLineDown`](https://codemirror.net/6/docs/ref/#commands.copyLineDown)\n- Escape: [`simplifySelection`](https://codemirror.net/6/docs/ref/#commands.simplifySelection)\n- Ctrl-Enter (Cmd-Enter on macOS): [`insertBlankLine`](https://codemirror.net/6/docs/ref/#commands.insertBlankLine)\n- Alt-l (Ctrl-l on macOS): [`selectLine`](https://codemirror.net/6/docs/ref/#commands.selectLine)\n- Ctrl-i (Cmd-i on macOS): [`selectParentSyntax`](https://codemirror.net/6/docs/ref/#commands.selectParentSyntax)\n- Ctrl-[ (Cmd-[ on macOS): [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess)\n- Ctrl-] (Cmd-] on macOS): [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore)\n- Ctrl-Alt-\\\\ (Cmd-Alt-\\\\ on macOS): [`indentSelection`](https://codemirror.net/6/docs/ref/#commands.indentSelection)\n- Shift-Ctrl-k (Shift-Cmd-k on macOS): [`deleteLine`](https://codemirror.net/6/docs/ref/#commands.deleteLine)\n- Shift-Ctrl-\\\\ (Shift-Cmd-\\\\ on macOS): [`cursorMatchingBracket`](https://codemirror.net/6/docs/ref/#commands.cursorMatchingBracket)\n- Ctrl-/ (Cmd-/ on macOS): [`toggleComment`](https://codemirror.net/6/docs/ref/#commands.toggleComment).\n- Shift-Alt-a: [`toggleBlockComment`](https://codemirror.net/6/docs/ref/#commands.toggleBlockComment).\n*/\nconst defaultKeymap = /*@__PURE__*/[\n { key: \"Alt-ArrowLeft\", mac: \"Ctrl-ArrowLeft\", run: cursorSyntaxLeft, shift: selectSyntaxLeft },\n { key: \"Alt-ArrowRight\", mac: \"Ctrl-ArrowRight\", run: cursorSyntaxRight, shift: selectSyntaxRight },\n { key: \"Alt-ArrowUp\", run: moveLineUp },\n { key: \"Shift-Alt-ArrowUp\", run: copyLineUp },\n { key: \"Alt-ArrowDown\", run: moveLineDown },\n { key: \"Shift-Alt-ArrowDown\", run: copyLineDown },\n { key: \"Escape\", run: simplifySelection },\n { key: \"Mod-Enter\", run: insertBlankLine },\n { key: \"Alt-l\", mac: \"Ctrl-l\", run: selectLine },\n { key: \"Mod-i\", run: selectParentSyntax, preventDefault: true },\n { key: \"Mod-[\", run: indentLess },\n { key: \"Mod-]\", run: indentMore },\n { key: \"Mod-Alt-\\\\\", run: indentSelection },\n { key: \"Shift-Mod-k\", run: deleteLine },\n { key: \"Shift-Mod-\\\\\", run: cursorMatchingBracket },\n { key: \"Mod-/\", run: toggleComment },\n { key: \"Alt-A\", run: toggleBlockComment }\n].concat(standardKeymap);\n/**\nA binding that binds Tab to [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) and\nShift-Tab to [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess).\nPlease see the [Tab example](../../examples/tab/) before using\nthis.\n*/\nconst indentWithTab = { key: \"Tab\", run: indentMore, shift: indentLess };\n\nexport { blockComment, blockUncomment, copyLineDown, copyLineUp, cursorCharBackward, cursorCharForward, cursorCharLeft, cursorCharRight, cursorDocEnd, cursorDocStart, cursorGroupBackward, cursorGroupForward, cursorGroupLeft, cursorGroupRight, cursorLineBoundaryBackward, cursorLineBoundaryForward, cursorLineBoundaryLeft, cursorLineBoundaryRight, cursorLineDown, cursorLineEnd, cursorLineStart, cursorLineUp, cursorMatchingBracket, cursorPageDown, cursorPageUp, cursorSubwordBackward, cursorSubwordForward, cursorSyntaxLeft, cursorSyntaxRight, defaultKeymap, deleteCharBackward, deleteCharForward, deleteGroupBackward, deleteGroupForward, deleteLine, deleteLineBoundaryBackward, deleteLineBoundaryForward, deleteToLineEnd, deleteToLineStart, deleteTrailingWhitespace, emacsStyleKeymap, history, historyField, historyKeymap, indentLess, indentMore, indentSelection, indentWithTab, insertBlankLine, insertNewline, insertNewlineAndIndent, insertTab, invertedEffects, isolateHistory, lineComment, lineUncomment, moveLineDown, moveLineUp, redo, redoDepth, redoSelection, selectAll, selectCharBackward, selectCharForward, selectCharLeft, selectCharRight, selectDocEnd, selectDocStart, selectGroupBackward, selectGroupForward, selectGroupLeft, selectGroupRight, selectLine, selectLineBoundaryBackward, selectLineBoundaryForward, selectLineBoundaryLeft, selectLineBoundaryRight, selectLineDown, selectLineEnd, selectLineStart, selectLineUp, selectMatchingBracket, selectPageDown, selectPageUp, selectParentSyntax, selectSubwordBackward, selectSubwordForward, selectSyntaxLeft, selectSyntaxRight, simplifySelection, splitLine, standardKeymap, toggleBlockComment, toggleBlockCommentByLine, toggleComment, toggleLineComment, transposeChars, undo, undoDepth, undoSelection };\n","import { LRLanguage, LanguageSupport } from '@codemirror/language';\nimport { html } from '@codemirror/lang-html';\nimport { javascriptLanguage } from '@codemirror/lang-javascript';\nimport { styleTags, tags } from '@lezer/highlight';\nimport { parseMixed } from '@lezer/common';\nimport { ExternalTokenizer, LRParser } from '@lezer/lr';\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst Text = 1,\n attributeContentSingle = 33,\n attributeContentDouble = 34,\n scriptAttributeContentSingle = 35,\n scriptAttributeContentDouble = 36;\n\nconst text = /*@__PURE__*/new ExternalTokenizer(input => {\n let start = input.pos;\n for (;;) {\n if (input.next == 10 /* Newline */) {\n input.advance();\n break;\n }\n else if (input.next == 123 /* BraceL */ && input.peek(1) == 123 /* BraceL */ || input.next < 0) {\n break;\n }\n input.advance();\n }\n if (input.pos > start)\n input.acceptToken(Text);\n});\nfunction attrContent(quote, token, script) {\n return new ExternalTokenizer(input => {\n let start = input.pos;\n while (input.next != quote && input.next >= 0 &&\n (script || input.next != 38 /* Ampersand */ && (input.next != 123 /* BraceL */ || input.peek(1) != 123 /* BraceL */)))\n input.advance();\n if (input.pos > start)\n input.acceptToken(token);\n });\n}\nconst attrSingle = /*@__PURE__*/attrContent(39 /* SingleQuote */, attributeContentSingle, false);\nconst attrDouble = /*@__PURE__*/attrContent(34 /* DoubleQuote */, attributeContentDouble, false);\nconst scriptAttrSingle = /*@__PURE__*/attrContent(39 /* SingleQuote */, scriptAttributeContentSingle, true);\nconst scriptAttrDouble = /*@__PURE__*/attrContent(34 /* DoubleQuote */, scriptAttributeContentDouble, true);\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst parser = /*@__PURE__*/LRParser.deserialize({\n version: 14,\n states: \"(jOVOqOOOeQpOOOvO!bO'#CaOOOP'#Cx'#CxQVOqOOO!OQpO'#CfO!WQpO'#ClO!]QpO'#CrO!bQpO'#CsOOQO'#Cv'#CvQ!gQpOOQ!lQpOOQ!qQpOOOOOV,58{,58{O!vOpO,58{OOOP-E6v-E6vO!{QpO,59QO#TQpO,59QOOQO,59W,59WO#YQpO,59^OOQO,59_,59_O#_QpOOO#_QpOOO#gQpOOOOOV1G.g1G.gO#oQpO'#CyO#tQpO1G.lOOQO1G.l1G.lO#|QpO1G.lOOQO1G.x1G.xO$UO`O'#DUO$ZOWO'#DUOOQO'#Co'#CoQOQpOOOOQO'#Cu'#CuO$`OtO'#CwO$qOrO'#CwOOQO,59e,59eOOQO-E6w-E6wOOQO7+$W7+$WO%SQpO7+$WO%[QpO7+$WOOOO'#Cp'#CpO%aOpO,59pOOOO'#Cq'#CqO%fOpO,59pOOOS'#Cz'#CzO%kOtO,59cOOQO,59c,59cOOOQ'#C{'#C{O%|OrO,59cO&_QpO< node.name == \"InterpolationContent\" ? exprMixed : null),\n});\nconst attrParser = /*@__PURE__*/baseParser.configure({\n wrap: /*@__PURE__*/parseMixed((node, input) => {\n var _a;\n return node.name == \"InterpolationContent\" ? exprMixed\n : node.name != \"AttributeInterpolation\" ? null\n : ((_a = node.node.parent) === null || _a === void 0 ? void 0 : _a.name) == \"StatementAttributeValue\" ? statementMixed : exprMixed;\n }),\n top: \"Attribute\"\n});\nconst textMixed = { parser: textParser }, attrMixed = { parser: attrParser };\nconst baseHTML = /*@__PURE__*/html();\nfunction mkAngular(language) {\n return language.configure({ wrap: parseMixed(mixAngular) }, \"angular\");\n}\n/**\nA language provider for Angular Templates.\n*/\nconst angularLanguage = /*@__PURE__*/mkAngular(baseHTML.language);\nfunction mixAngular(node, input) {\n switch (node.name) {\n case \"Attribute\":\n return /^[*#(\\[]|\\{\\{/.test(input.read(node.from, node.to)) ? attrMixed : null;\n case \"Text\":\n return textMixed;\n }\n return null;\n}\n/**\nAngular Template language support.\n*/\nfunction angular(config = {}) {\n let base = baseHTML;\n if (config.base) {\n if (config.base.language.name != \"html\" || !(config.base.language instanceof LRLanguage))\n throw new RangeError(\"The base option must be the result of calling html(...)\");\n base = config.base;\n }\n return new LanguageSupport(base.language == baseHTML.language ? angularLanguage : mkAngular(base.language), [base.support, base.language.data.of({\n closeBrackets: { brackets: [\"[\", \"{\", '\"'] },\n indentOnInput: /^\\s*[\\}\\]]$/\n })]);\n}\n\nexport { angular, angularLanguage };\n","import { parser } from '@lezer/cpp';\nimport { LRLanguage, indentNodeProp, continuedIndent, flatIndent, delimitedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';\n\n/**\nA language provider based on the [Lezer C++\nparser](https://github.com/lezer-parser/cpp), extended with\nhighlighting and indentation information.\n*/\nconst cppLanguage = /*@__PURE__*/LRLanguage.define({\n name: \"cpp\",\n parser: /*@__PURE__*/parser.configure({\n props: [\n /*@__PURE__*/indentNodeProp.add({\n IfStatement: /*@__PURE__*/continuedIndent({ except: /^\\s*({|else\\b)/ }),\n TryStatement: /*@__PURE__*/continuedIndent({ except: /^\\s*({|catch)\\b/ }),\n LabeledStatement: flatIndent,\n CaseStatement: context => context.baseIndent + context.unit,\n BlockComment: () => null,\n CompoundStatement: /*@__PURE__*/delimitedIndent({ closing: \"}\" }),\n Statement: /*@__PURE__*/continuedIndent({ except: /^{/ })\n }),\n /*@__PURE__*/foldNodeProp.add({\n \"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList\": foldInside,\n BlockComment(tree) { return { from: tree.from + 2, to: tree.to - 2 }; }\n })\n ]\n }),\n languageData: {\n commentTokens: { line: \"//\", block: { open: \"/*\", close: \"*/\" } },\n indentOnInput: /^\\s*(?:case |default:|\\{|\\})$/,\n closeBrackets: { stringPrefixes: [\"L\", \"u\", \"U\", \"u8\", \"LR\", \"UR\", \"uR\", \"u8R\", \"R\"] }\n }\n});\n/**\nLanguage support for C++.\n*/\nfunction cpp() {\n return new LanguageSupport(cppLanguage);\n}\n\nexport { cpp, cppLanguage };\n","import { parser } from '@lezer/css';\nimport { syntaxTree, LRLanguage, indentNodeProp, continuedIndent, foldNodeProp, foldInside, LanguageSupport } from '@codemirror/language';\nimport { NodeWeakMap, IterMode } from '@lezer/common';\n\nlet _properties = null;\nfunction properties() {\n if (!_properties && typeof document == \"object\" && document.body) {\n let { style } = document.body, names = [], seen = new Set;\n for (let prop in style)\n if (prop != \"cssText\" && prop != \"cssFloat\") {\n if (typeof style[prop] == \"string\") {\n if (/[A-Z]/.test(prop))\n prop = prop.replace(/[A-Z]/g, ch => \"-\" + ch.toLowerCase());\n if (!seen.has(prop)) {\n names.push(prop);\n seen.add(prop);\n }\n }\n }\n _properties = names.sort().map(name => ({ type: \"property\", label: name }));\n }\n return _properties || [];\n}\nconst pseudoClasses = /*@__PURE__*/[\n \"active\", \"after\", \"any-link\", \"autofill\", \"backdrop\", \"before\",\n \"checked\", \"cue\", \"default\", \"defined\", \"disabled\", \"empty\",\n \"enabled\", \"file-selector-button\", \"first\", \"first-child\",\n \"first-letter\", \"first-line\", \"first-of-type\", \"focus\",\n \"focus-visible\", \"focus-within\", \"fullscreen\", \"has\", \"host\",\n \"host-context\", \"hover\", \"in-range\", \"indeterminate\", \"invalid\",\n \"is\", \"lang\", \"last-child\", \"last-of-type\", \"left\", \"link\", \"marker\",\n \"modal\", \"not\", \"nth-child\", \"nth-last-child\", \"nth-last-of-type\",\n \"nth-of-type\", \"only-child\", \"only-of-type\", \"optional\", \"out-of-range\",\n \"part\", \"placeholder\", \"placeholder-shown\", \"read-only\", \"read-write\",\n \"required\", \"right\", \"root\", \"scope\", \"selection\", \"slotted\", \"target\",\n \"target-text\", \"valid\", \"visited\", \"where\"\n].map(name => ({ type: \"class\", label: name }));\nconst values = /*@__PURE__*/[\n \"above\", \"absolute\", \"activeborder\", \"additive\", \"activecaption\", \"after-white-space\",\n \"ahead\", \"alias\", \"all\", \"all-scroll\", \"alphabetic\", \"alternate\", \"always\",\n \"antialiased\", \"appworkspace\", \"asterisks\", \"attr\", \"auto\", \"auto-flow\", \"avoid\", \"avoid-column\",\n \"avoid-page\", \"avoid-region\", \"axis-pan\", \"background\", \"backwards\", \"baseline\", \"below\",\n \"bidi-override\", \"blink\", \"block\", \"block-axis\", \"bold\", \"bolder\", \"border\", \"border-box\",\n \"both\", \"bottom\", \"break\", \"break-all\", \"break-word\", \"bullets\", \"button\", \"button-bevel\",\n \"buttonface\", \"buttonhighlight\", \"buttonshadow\", \"buttontext\", \"calc\", \"capitalize\",\n \"caps-lock-indicator\", \"caption\", \"captiontext\", \"caret\", \"cell\", \"center\", \"checkbox\", \"circle\",\n \"cjk-decimal\", \"clear\", \"clip\", \"close-quote\", \"col-resize\", \"collapse\", \"color\", \"color-burn\",\n \"color-dodge\", \"column\", \"column-reverse\", \"compact\", \"condensed\", \"contain\", \"content\",\n \"contents\", \"content-box\", \"context-menu\", \"continuous\", \"copy\", \"counter\", \"counters\", \"cover\",\n \"crop\", \"cross\", \"crosshair\", \"currentcolor\", \"cursive\", \"cyclic\", \"darken\", \"dashed\", \"decimal\",\n \"decimal-leading-zero\", \"default\", \"default-button\", \"dense\", \"destination-atop\", \"destination-in\",\n \"destination-out\", \"destination-over\", \"difference\", \"disc\", \"discard\", \"disclosure-closed\",\n \"disclosure-open\", \"document\", \"dot-dash\", \"dot-dot-dash\", \"dotted\", \"double\", \"down\", \"e-resize\",\n \"ease\", \"ease-in\", \"ease-in-out\", \"ease-out\", \"element\", \"ellipse\", \"ellipsis\", \"embed\", \"end\",\n \"ethiopic-abegede-gez\", \"ethiopic-halehame-aa-er\", \"ethiopic-halehame-gez\", \"ew-resize\", \"exclusion\",\n \"expanded\", \"extends\", \"extra-condensed\", \"extra-expanded\", \"fantasy\", \"fast\", \"fill\", \"fill-box\",\n \"fixed\", \"flat\", \"flex\", \"flex-end\", \"flex-start\", \"footnotes\", \"forwards\", \"from\",\n \"geometricPrecision\", \"graytext\", \"grid\", \"groove\", \"hand\", \"hard-light\", \"help\", \"hidden\", \"hide\",\n \"higher\", \"highlight\", \"highlighttext\", \"horizontal\", \"hsl\", \"hsla\", \"hue\", \"icon\", \"ignore\",\n \"inactiveborder\", \"inactivecaption\", \"inactivecaptiontext\", \"infinite\", \"infobackground\", \"infotext\",\n \"inherit\", \"initial\", \"inline\", \"inline-axis\", \"inline-block\", \"inline-flex\", \"inline-grid\",\n \"inline-table\", \"inset\", \"inside\", \"intrinsic\", \"invert\", \"italic\", \"justify\", \"keep-all\",\n \"landscape\", \"large\", \"larger\", \"left\", \"level\", \"lighter\", \"lighten\", \"line-through\", \"linear\",\n \"linear-gradient\", \"lines\", \"list-item\", \"listbox\", \"listitem\", \"local\", \"logical\", \"loud\", \"lower\",\n \"lower-hexadecimal\", \"lower-latin\", \"lower-norwegian\", \"lowercase\", \"ltr\", \"luminosity\", \"manipulation\",\n \"match\", \"matrix\", \"matrix3d\", \"medium\", \"menu\", \"menutext\", \"message-box\", \"middle\", \"min-intrinsic\",\n \"mix\", \"monospace\", \"move\", \"multiple\", \"multiple_mask_images\", \"multiply\", \"n-resize\", \"narrower\",\n \"ne-resize\", \"nesw-resize\", \"no-close-quote\", \"no-drop\", \"no-open-quote\", \"no-repeat\", \"none\",\n \"normal\", \"not-allowed\", \"nowrap\", \"ns-resize\", \"numbers\", \"numeric\", \"nw-resize\", \"nwse-resize\",\n \"oblique\", \"opacity\", \"open-quote\", \"optimizeLegibility\", \"optimizeSpeed\", \"outset\", \"outside\",\n \"outside-shape\", \"overlay\", \"overline\", \"padding\", \"padding-box\", \"painted\", \"page\", \"paused\",\n \"perspective\", \"pinch-zoom\", \"plus-darker\", \"plus-lighter\", \"pointer\", \"polygon\", \"portrait\",\n \"pre\", \"pre-line\", \"pre-wrap\", \"preserve-3d\", \"progress\", \"push-button\", \"radial-gradient\", \"radio\",\n \"read-only\", \"read-write\", \"read-write-plaintext-only\", \"rectangle\", \"region\", \"relative\", \"repeat\",\n \"repeating-linear-gradient\", \"repeating-radial-gradient\", \"repeat-x\", \"repeat-y\", \"reset\", \"reverse\",\n \"rgb\", \"rgba\", \"ridge\", \"right\", \"rotate\", \"rotate3d\", \"rotateX\", \"rotateY\", \"rotateZ\", \"round\",\n \"row\", \"row-resize\", \"row-reverse\", \"rtl\", \"run-in\", \"running\", \"s-resize\", \"sans-serif\", \"saturation\",\n \"scale\", \"scale3d\", \"scaleX\", \"scaleY\", \"scaleZ\", \"screen\", \"scroll\", \"scrollbar\", \"scroll-position\",\n \"se-resize\", \"self-start\", \"self-end\", \"semi-condensed\", \"semi-expanded\", \"separate\", \"serif\", \"show\",\n \"single\", \"skew\", \"skewX\", \"skewY\", \"skip-white-space\", \"slide\", \"slider-horizontal\",\n \"slider-vertical\", \"sliderthumb-horizontal\", \"sliderthumb-vertical\", \"slow\", \"small\", \"small-caps\",\n \"small-caption\", \"smaller\", \"soft-light\", \"solid\", \"source-atop\", \"source-in\", \"source-out\",\n \"source-over\", \"space\", \"space-around\", \"space-between\", \"space-evenly\", \"spell-out\", \"square\", \"start\",\n \"static\", \"status-bar\", \"stretch\", \"stroke\", \"stroke-box\", \"sub\", \"subpixel-antialiased\", \"svg_masks\",\n \"super\", \"sw-resize\", \"symbolic\", \"symbols\", \"system-ui\", \"table\", \"table-caption\", \"table-cell\",\n \"table-column\", \"table-column-group\", \"table-footer-group\", \"table-header-group\", \"table-row\",\n \"table-row-group\", \"text\", \"text-bottom\", \"text-top\", \"textarea\", \"textfield\", \"thick\", \"thin\",\n \"threeddarkshadow\", \"threedface\", \"threedhighlight\", \"threedlightshadow\", \"threedshadow\", \"to\", \"top\",\n \"transform\", \"translate\", \"translate3d\", \"translateX\", \"translateY\", \"translateZ\", \"transparent\",\n \"ultra-condensed\", \"ultra-expanded\", \"underline\", \"unidirectional-pan\", \"unset\", \"up\", \"upper-latin\",\n \"uppercase\", \"url\", \"var\", \"vertical\", \"vertical-text\", \"view-box\", \"visible\", \"visibleFill\",\n \"visiblePainted\", \"visibleStroke\", \"visual\", \"w-resize\", \"wait\", \"wave\", \"wider\", \"window\", \"windowframe\",\n \"windowtext\", \"words\", \"wrap\", \"wrap-reverse\", \"x-large\", \"x-small\", \"xor\", \"xx-large\", \"xx-small\"\n].map(name => ({ type: \"keyword\", label: name })).concat(/*@__PURE__*/[\n \"aliceblue\", \"antiquewhite\", \"aqua\", \"aquamarine\", \"azure\", \"beige\",\n \"bisque\", \"black\", \"blanchedalmond\", \"blue\", \"blueviolet\", \"brown\",\n \"burlywood\", \"cadetblue\", \"chartreuse\", \"chocolate\", \"coral\", \"cornflowerblue\",\n \"cornsilk\", \"crimson\", \"cyan\", \"darkblue\", \"darkcyan\", \"darkgoldenrod\",\n \"darkgray\", \"darkgreen\", \"darkkhaki\", \"darkmagenta\", \"darkolivegreen\",\n \"darkorange\", \"darkorchid\", \"darkred\", \"darksalmon\", \"darkseagreen\",\n \"darkslateblue\", \"darkslategray\", \"darkturquoise\", \"darkviolet\",\n \"deeppink\", \"deepskyblue\", \"dimgray\", \"dodgerblue\", \"firebrick\",\n \"floralwhite\", \"forestgreen\", \"fuchsia\", \"gainsboro\", \"ghostwhite\",\n \"gold\", \"goldenrod\", \"gray\", \"grey\", \"green\", \"greenyellow\", \"honeydew\",\n \"hotpink\", \"indianred\", \"indigo\", \"ivory\", \"khaki\", \"lavender\",\n \"lavenderblush\", \"lawngreen\", \"lemonchiffon\", \"lightblue\", \"lightcoral\",\n \"lightcyan\", \"lightgoldenrodyellow\", \"lightgray\", \"lightgreen\", \"lightpink\",\n \"lightsalmon\", \"lightseagreen\", \"lightskyblue\", \"lightslategray\",\n \"lightsteelblue\", \"lightyellow\", \"lime\", \"limegreen\", \"linen\", \"magenta\",\n \"maroon\", \"mediumaquamarine\", \"mediumblue\", \"mediumorchid\", \"mediumpurple\",\n \"mediumseagreen\", \"mediumslateblue\", \"mediumspringgreen\", \"mediumturquoise\",\n \"mediumvioletred\", \"midnightblue\", \"mintcream\", \"mistyrose\", \"moccasin\",\n \"navajowhite\", \"navy\", \"oldlace\", \"olive\", \"olivedrab\", \"orange\", \"orangered\",\n \"orchid\", \"palegoldenrod\", \"palegreen\", \"paleturquoise\", \"palevioletred\",\n \"papayawhip\", \"peachpuff\", \"peru\", \"pink\", \"plum\", \"powderblue\",\n \"purple\", \"rebeccapurple\", \"red\", \"rosybrown\", \"royalblue\", \"saddlebrown\",\n \"salmon\", \"sandybrown\", \"seagreen\", \"seashell\", \"sienna\", \"silver\", \"skyblue\",\n \"slateblue\", \"slategray\", \"snow\", \"springgreen\", \"steelblue\", \"tan\",\n \"teal\", \"thistle\", \"tomato\", \"turquoise\", \"violet\", \"wheat\", \"white\",\n \"whitesmoke\", \"yellow\", \"yellowgreen\"\n].map(name => ({ type: \"constant\", label: name })));\nconst tags = /*@__PURE__*/[\n \"a\", \"abbr\", \"address\", \"article\", \"aside\", \"b\", \"bdi\", \"bdo\", \"blockquote\", \"body\",\n \"br\", \"button\", \"canvas\", \"caption\", \"cite\", \"code\", \"col\", \"colgroup\", \"dd\", \"del\",\n \"details\", \"dfn\", \"dialog\", \"div\", \"dl\", \"dt\", \"em\", \"figcaption\", \"figure\", \"footer\",\n \"form\", \"header\", \"hgroup\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\", \"hr\", \"html\", \"i\", \"iframe\",\n \"img\", \"input\", \"ins\", \"kbd\", \"label\", \"legend\", \"li\", \"main\", \"meter\", \"nav\", \"ol\", \"output\",\n \"p\", \"pre\", \"ruby\", \"section\", \"select\", \"small\", \"source\", \"span\", \"strong\", \"sub\", \"summary\",\n \"sup\", \"table\", \"tbody\", \"td\", \"template\", \"textarea\", \"tfoot\", \"th\", \"thead\", \"tr\", \"u\", \"ul\"\n].map(name => ({ type: \"type\", label: name }));\nconst identifier = /^(\\w[\\w-]*|-\\w[\\w-]*|)$/, variable = /^-(-[\\w-]*)?$/;\nfunction isVarArg(node, doc) {\n var _a;\n if (node.name == \"(\" || node.type.isError)\n node = node.parent || node;\n if (node.name != \"ArgList\")\n return false;\n let callee = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.firstChild;\n if ((callee === null || callee === void 0 ? void 0 : callee.name) != \"Callee\")\n return false;\n return doc.sliceString(callee.from, callee.to) == \"var\";\n}\nconst VariablesByNode = /*@__PURE__*/new NodeWeakMap();\nconst declSelector = [\"Declaration\"];\nfunction astTop(node) {\n for (let cur = node;;) {\n if (cur.type.isTop)\n return cur;\n if (!(cur = cur.parent))\n return node;\n }\n}\nfunction variableNames(doc, node, isVariable) {\n if (node.to - node.from > 4096) {\n let known = VariablesByNode.get(node);\n if (known)\n return known;\n let result = [], seen = new Set, cursor = node.cursor(IterMode.IncludeAnonymous);\n if (cursor.firstChild())\n do {\n for (let option of variableNames(doc, cursor.node, isVariable))\n if (!seen.has(option.label)) {\n seen.add(option.label);\n result.push(option);\n }\n } while (cursor.nextSibling());\n VariablesByNode.set(node, result);\n return result;\n }\n else {\n let result = [], seen = new Set;\n node.cursor().iterate(node => {\n var _a;\n if (isVariable(node) && node.matchContext(declSelector) && ((_a = node.node.nextSibling) === null || _a === void 0 ? void 0 : _a.name) == \":\") {\n let name = doc.sliceString(node.from, node.to);\n if (!seen.has(name)) {\n seen.add(name);\n result.push({ label: name, type: \"variable\" });\n }\n }\n });\n return result;\n }\n}\n/**\nCreate a completion source for a CSS dialect, providing a\npredicate for determining what kind of syntax node can act as a\ncompletable variable. This is used by language modes like Sass and\nLess to reuse this package's completion logic.\n*/\nconst defineCSSCompletionSource = (isVariable) => context => {\n let { state, pos } = context, node = syntaxTree(state).resolveInner(pos, -1);\n let isDash = node.type.isError && node.from == node.to - 1 && state.doc.sliceString(node.from, node.to) == \"-\";\n if (node.name == \"PropertyName\" ||\n (isDash || node.name == \"TagName\") && /^(Block|Styles)$/.test(node.resolve(node.to).name))\n return { from: node.from, options: properties(), validFor: identifier };\n if (node.name == \"ValueName\")\n return { from: node.from, options: values, validFor: identifier };\n if (node.name == \"PseudoClassName\")\n return { from: node.from, options: pseudoClasses, validFor: identifier };\n if (isVariable(node) || (context.explicit || isDash) && isVarArg(node, state.doc))\n return { from: isVariable(node) || isDash ? node.from : pos,\n options: variableNames(state.doc, astTop(node), isVariable),\n validFor: variable };\n if (node.name == \"TagName\") {\n for (let { parent } = node; parent; parent = parent.parent)\n if (parent.name == \"Block\")\n return { from: node.from, options: properties(), validFor: identifier };\n return { from: node.from, options: tags, validFor: identifier };\n }\n if (!context.explicit)\n return null;\n let above = node.resolve(pos), before = above.childBefore(pos);\n if (before && before.name == \":\" && above.name == \"PseudoClassSelector\")\n return { from: pos, options: pseudoClasses, validFor: identifier };\n if (before && before.name == \":\" && above.name == \"Declaration\" || above.name == \"ArgList\")\n return { from: pos, options: values, validFor: identifier };\n if (above.name == \"Block\" || above.name == \"Styles\")\n return { from: pos, options: properties(), validFor: identifier };\n return null;\n};\n/**\nCSS property, variable, and value keyword completion source.\n*/\nconst cssCompletionSource = /*@__PURE__*/defineCSSCompletionSource(n => n.name == \"VariableName\");\n\n/**\nA language provider based on the [Lezer CSS\nparser](https://github.com/lezer-parser/css), extended with\nhighlighting and indentation information.\n*/\nconst cssLanguage = /*@__PURE__*/LRLanguage.define({\n name: \"css\",\n parser: /*@__PURE__*/parser.configure({\n props: [\n /*@__PURE__*/indentNodeProp.add({\n Declaration: /*@__PURE__*/continuedIndent()\n }),\n /*@__PURE__*/foldNodeProp.add({\n \"Block KeyframeList\": foldInside\n })\n ]\n }),\n languageData: {\n commentTokens: { block: { open: \"/*\", close: \"*/\" } },\n indentOnInput: /^\\s*\\}$/,\n wordChars: \"-\"\n }\n});\n/**\nLanguage support for CSS.\n*/\nfunction css() {\n return new LanguageSupport(cssLanguage, cssLanguage.data.of({ autocomplete: cssCompletionSource }));\n}\n\nexport { css, cssCompletionSource, cssLanguage, defineCSSCompletionSource };\n","import { parser, configureNesting } from '@lezer/html';\nimport { cssLanguage, css } from '@codemirror/lang-css';\nimport { javascriptLanguage, typescriptLanguage, jsxLanguage, tsxLanguage, javascript } from '@codemirror/lang-javascript';\nimport { EditorView } from '@codemirror/view';\nimport { EditorSelection } from '@codemirror/state';\nimport { syntaxTree, LRLanguage, indentNodeProp, foldNodeProp, bracketMatchingHandle, LanguageSupport } from '@codemirror/language';\n\nconst Targets = [\"_blank\", \"_self\", \"_top\", \"_parent\"];\nconst Charsets = [\"ascii\", \"utf-8\", \"utf-16\", \"latin1\", \"latin1\"];\nconst Methods = [\"get\", \"post\", \"put\", \"delete\"];\nconst Encs = [\"application/x-www-form-urlencoded\", \"multipart/form-data\", \"text/plain\"];\nconst Bool = [\"true\", \"false\"];\nconst S = {}; // Empty tag spec\nconst Tags = {\n a: {\n attrs: {\n href: null, ping: null, type: null,\n media: null,\n target: Targets,\n hreflang: null\n }\n },\n abbr: S,\n address: S,\n area: {\n attrs: {\n alt: null, coords: null, href: null, target: null, ping: null,\n media: null, hreflang: null, type: null,\n shape: [\"default\", \"rect\", \"circle\", \"poly\"]\n }\n },\n article: S,\n aside: S,\n audio: {\n attrs: {\n src: null, mediagroup: null,\n crossorigin: [\"anonymous\", \"use-credentials\"],\n preload: [\"none\", \"metadata\", \"auto\"],\n autoplay: [\"autoplay\"],\n loop: [\"loop\"],\n controls: [\"controls\"]\n }\n },\n b: S,\n base: { attrs: { href: null, target: Targets } },\n bdi: S,\n bdo: S,\n blockquote: { attrs: { cite: null } },\n body: S,\n br: S,\n button: {\n attrs: {\n form: null, formaction: null, name: null, value: null,\n autofocus: [\"autofocus\"],\n disabled: [\"autofocus\"],\n formenctype: Encs,\n formmethod: Methods,\n formnovalidate: [\"novalidate\"],\n formtarget: Targets,\n type: [\"submit\", \"reset\", \"button\"]\n }\n },\n canvas: { attrs: { width: null, height: null } },\n caption: S,\n center: S,\n cite: S,\n code: S,\n col: { attrs: { span: null } },\n colgroup: { attrs: { span: null } },\n command: {\n attrs: {\n type: [\"command\", \"checkbox\", \"radio\"],\n label: null, icon: null, radiogroup: null, command: null, title: null,\n disabled: [\"disabled\"],\n checked: [\"checked\"]\n }\n },\n data: { attrs: { value: null } },\n datagrid: { attrs: { disabled: [\"disabled\"], multiple: [\"multiple\"] } },\n datalist: { attrs: { data: null } },\n dd: S,\n del: { attrs: { cite: null, datetime: null } },\n details: { attrs: { open: [\"open\"] } },\n dfn: S,\n div: S,\n dl: S,\n dt: S,\n em: S,\n embed: { attrs: { src: null, type: null, width: null, height: null } },\n eventsource: { attrs: { src: null } },\n fieldset: { attrs: { disabled: [\"disabled\"], form: null, name: null } },\n figcaption: S,\n figure: S,\n footer: S,\n form: {\n attrs: {\n action: null, name: null,\n \"accept-charset\": Charsets,\n autocomplete: [\"on\", \"off\"],\n enctype: Encs,\n method: Methods,\n novalidate: [\"novalidate\"],\n target: Targets\n }\n },\n h1: S, h2: S, h3: S, h4: S, h5: S, h6: S,\n head: {\n children: [\"title\", \"base\", \"link\", \"style\", \"meta\", \"script\", \"noscript\", \"command\"]\n },\n header: S,\n hgroup: S,\n hr: S,\n html: {\n attrs: { manifest: null }\n },\n i: S,\n iframe: {\n attrs: {\n src: null, srcdoc: null, name: null, width: null, height: null,\n sandbox: [\"allow-top-navigation\", \"allow-same-origin\", \"allow-forms\", \"allow-scripts\"],\n seamless: [\"seamless\"]\n }\n },\n img: {\n attrs: {\n alt: null, src: null, ismap: null, usemap: null, width: null, height: null,\n crossorigin: [\"anonymous\", \"use-credentials\"]\n }\n },\n input: {\n attrs: {\n alt: null, dirname: null, form: null, formaction: null,\n height: null, list: null, max: null, maxlength: null, min: null,\n name: null, pattern: null, placeholder: null, size: null, src: null,\n step: null, value: null, width: null,\n accept: [\"audio/*\", \"video/*\", \"image/*\"],\n autocomplete: [\"on\", \"off\"],\n autofocus: [\"autofocus\"],\n checked: [\"checked\"],\n disabled: [\"disabled\"],\n formenctype: Encs,\n formmethod: Methods,\n formnovalidate: [\"novalidate\"],\n formtarget: Targets,\n multiple: [\"multiple\"],\n readonly: [\"readonly\"],\n required: [\"required\"],\n type: [\"hidden\", \"text\", \"search\", \"tel\", \"url\", \"email\", \"password\", \"datetime\", \"date\", \"month\",\n \"week\", \"time\", \"datetime-local\", \"number\", \"range\", \"color\", \"checkbox\", \"radio\",\n \"file\", \"submit\", \"image\", \"reset\", \"button\"]\n }\n },\n ins: { attrs: { cite: null, datetime: null } },\n kbd: S,\n keygen: {\n attrs: {\n challenge: null, form: null, name: null,\n autofocus: [\"autofocus\"],\n disabled: [\"disabled\"],\n keytype: [\"RSA\"]\n }\n },\n label: { attrs: { for: null, form: null } },\n legend: S,\n li: { attrs: { value: null } },\n link: {\n attrs: {\n href: null, type: null,\n hreflang: null,\n media: null,\n sizes: [\"all\", \"16x16\", \"16x16 32x32\", \"16x16 32x32 64x64\"]\n }\n },\n map: { attrs: { name: null } },\n mark: S,\n menu: { attrs: { label: null, type: [\"list\", \"context\", \"toolbar\"] } },\n meta: {\n attrs: {\n content: null,\n charset: Charsets,\n name: [\"viewport\", \"application-name\", \"author\", \"description\", \"generator\", \"keywords\"],\n \"http-equiv\": [\"content-language\", \"content-type\", \"default-style\", \"refresh\"]\n }\n },\n meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },\n nav: S,\n noscript: S,\n object: {\n attrs: {\n data: null, type: null, name: null, usemap: null, form: null, width: null, height: null,\n typemustmatch: [\"typemustmatch\"]\n }\n },\n ol: { attrs: { reversed: [\"reversed\"], start: null, type: [\"1\", \"a\", \"A\", \"i\", \"I\"] },\n children: [\"li\", \"script\", \"template\", \"ul\", \"ol\"] },\n optgroup: { attrs: { disabled: [\"disabled\"], label: null } },\n option: { attrs: { disabled: [\"disabled\"], label: null, selected: [\"selected\"], value: null } },\n output: { attrs: { for: null, form: null, name: null } },\n p: S,\n param: { attrs: { name: null, value: null } },\n pre: S,\n progress: { attrs: { value: null, max: null } },\n q: { attrs: { cite: null } },\n rp: S,\n rt: S,\n ruby: S,\n samp: S,\n script: {\n attrs: {\n type: [\"text/javascript\"],\n src: null,\n async: [\"async\"],\n defer: [\"defer\"],\n charset: Charsets\n }\n },\n section: S,\n select: {\n attrs: {\n form: null, name: null, size: null,\n autofocus: [\"autofocus\"],\n disabled: [\"disabled\"],\n multiple: [\"multiple\"]\n }\n },\n slot: { attrs: { name: null } },\n small: S,\n source: { attrs: { src: null, type: null, media: null } },\n span: S,\n strong: S,\n style: {\n attrs: {\n type: [\"text/css\"],\n media: null,\n scoped: null\n }\n },\n sub: S,\n summary: S,\n sup: S,\n table: S,\n tbody: S,\n td: { attrs: { colspan: null, rowspan: null, headers: null } },\n template: S,\n textarea: {\n attrs: {\n dirname: null, form: null, maxlength: null, name: null, placeholder: null,\n rows: null, cols: null,\n autofocus: [\"autofocus\"],\n disabled: [\"disabled\"],\n readonly: [\"readonly\"],\n required: [\"required\"],\n wrap: [\"soft\", \"hard\"]\n }\n },\n tfoot: S,\n th: { attrs: { colspan: null, rowspan: null, headers: null, scope: [\"row\", \"col\", \"rowgroup\", \"colgroup\"] } },\n thead: S,\n time: { attrs: { datetime: null } },\n title: S,\n tr: S,\n track: {\n attrs: {\n src: null, label: null, default: null,\n kind: [\"subtitles\", \"captions\", \"descriptions\", \"chapters\", \"metadata\"],\n srclang: null\n }\n },\n ul: { children: [\"li\", \"script\", \"template\", \"ul\", \"ol\"] },\n var: S,\n video: {\n attrs: {\n src: null, poster: null, width: null, height: null,\n crossorigin: [\"anonymous\", \"use-credentials\"],\n preload: [\"auto\", \"metadata\", \"none\"],\n autoplay: [\"autoplay\"],\n mediagroup: [\"movie\"],\n muted: [\"muted\"],\n controls: [\"controls\"]\n }\n },\n wbr: S\n};\nconst GlobalAttrs = {\n accesskey: null,\n class: null,\n contenteditable: Bool,\n contextmenu: null,\n dir: [\"ltr\", \"rtl\", \"auto\"],\n draggable: [\"true\", \"false\", \"auto\"],\n dropzone: [\"copy\", \"move\", \"link\", \"string:\", \"file:\"],\n hidden: [\"hidden\"],\n id: null,\n inert: [\"inert\"],\n itemid: null,\n itemprop: null,\n itemref: null,\n itemscope: [\"itemscope\"],\n itemtype: null,\n lang: [\"ar\", \"bn\", \"de\", \"en-GB\", \"en-US\", \"es\", \"fr\", \"hi\", \"id\", \"ja\", \"pa\", \"pt\", \"ru\", \"tr\", \"zh\"],\n spellcheck: Bool,\n autocorrect: Bool,\n autocapitalize: Bool,\n style: null,\n tabindex: null,\n title: null,\n translate: [\"yes\", \"no\"],\n rel: [\"stylesheet\", \"alternate\", \"author\", \"bookmark\", \"help\", \"license\", \"next\", \"nofollow\", \"noreferrer\", \"prefetch\", \"prev\", \"search\", \"tag\"],\n role: /*@__PURE__*/\"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer\".split(\" \"),\n \"aria-activedescendant\": null,\n \"aria-atomic\": Bool,\n \"aria-autocomplete\": [\"inline\", \"list\", \"both\", \"none\"],\n \"aria-busy\": Bool,\n \"aria-checked\": [\"true\", \"false\", \"mixed\", \"undefined\"],\n \"aria-controls\": null,\n \"aria-describedby\": null,\n \"aria-disabled\": Bool,\n \"aria-dropeffect\": null,\n \"aria-expanded\": [\"true\", \"false\", \"undefined\"],\n \"aria-flowto\": null,\n \"aria-grabbed\": [\"true\", \"false\", \"undefined\"],\n \"aria-haspopup\": Bool,\n \"aria-hidden\": Bool,\n \"aria-invalid\": [\"true\", \"false\", \"grammar\", \"spelling\"],\n \"aria-label\": null,\n \"aria-labelledby\": null,\n \"aria-level\": null,\n \"aria-live\": [\"off\", \"polite\", \"assertive\"],\n \"aria-multiline\": Bool,\n \"aria-multiselectable\": Bool,\n \"aria-owns\": null,\n \"aria-posinset\": null,\n \"aria-pressed\": [\"true\", \"false\", \"mixed\", \"undefined\"],\n \"aria-readonly\": Bool,\n \"aria-relevant\": null,\n \"aria-required\": Bool,\n \"aria-selected\": [\"true\", \"false\", \"undefined\"],\n \"aria-setsize\": null,\n \"aria-sort\": [\"ascending\", \"descending\", \"none\", \"other\"],\n \"aria-valuemax\": null,\n \"aria-valuemin\": null,\n \"aria-valuenow\": null,\n \"aria-valuetext\": null\n};\nconst eventAttributes = /*@__PURE__*/(\"beforeunload copy cut dragstart dragover dragleave dragenter dragend \" +\n \"drag paste focus blur change click load mousedown mouseenter mouseleave \" +\n \"mouseup keydown keyup resize scroll unload\").split(\" \").map(n => \"on\" + n);\nfor (let a of eventAttributes)\n GlobalAttrs[a] = null;\nclass Schema {\n constructor(extraTags, extraAttrs) {\n this.tags = Object.assign(Object.assign({}, Tags), extraTags);\n this.globalAttrs = Object.assign(Object.assign({}, GlobalAttrs), extraAttrs);\n this.allTags = Object.keys(this.tags);\n this.globalAttrNames = Object.keys(this.globalAttrs);\n }\n}\nSchema.default = /*@__PURE__*/new Schema;\nfunction elementName(doc, tree, max = doc.length) {\n if (!tree)\n return \"\";\n let tag = tree.firstChild;\n let name = tag && tag.getChild(\"TagName\");\n return name ? doc.sliceString(name.from, Math.min(name.to, max)) : \"\";\n}\nfunction findParentElement(tree, skip = false) {\n for (; tree; tree = tree.parent)\n if (tree.name == \"Element\") {\n if (skip)\n skip = false;\n else\n return tree;\n }\n return null;\n}\nfunction allowedChildren(doc, tree, schema) {\n let parentInfo = schema.tags[elementName(doc, findParentElement(tree))];\n return (parentInfo === null || parentInfo === void 0 ? void 0 : parentInfo.children) || schema.allTags;\n}\nfunction openTags(doc, tree) {\n let open = [];\n for (let parent = findParentElement(tree); parent && !parent.type.isTop; parent = findParentElement(parent.parent)) {\n let tagName = elementName(doc, parent);\n if (tagName && parent.lastChild.name == \"CloseTag\")\n break;\n if (tagName && open.indexOf(tagName) < 0 && (tree.name == \"EndTag\" || tree.from >= parent.firstChild.to))\n open.push(tagName);\n }\n return open;\n}\nconst identifier = /^[:\\-\\.\\w\\u00b7-\\uffff]*$/;\nfunction completeTag(state, schema, tree, from, to) {\n let end = /\\s*>/.test(state.sliceDoc(to, to + 5)) ? \"\" : \">\";\n let parent = findParentElement(tree, true);\n return { from, to,\n options: allowedChildren(state.doc, parent, schema).map(tagName => ({ label: tagName, type: \"type\" })).concat(openTags(state.doc, tree).map((tag, i) => ({ label: \"/\" + tag, apply: \"/\" + tag + end,\n type: \"type\", boost: 99 - i }))),\n validFor: /^\\/?[:\\-\\.\\w\\u00b7-\\uffff]*$/ };\n}\nfunction completeCloseTag(state, tree, from, to) {\n let end = /\\s*>/.test(state.sliceDoc(to, to + 5)) ? \"\" : \">\";\n return { from, to,\n options: openTags(state.doc, tree).map((tag, i) => ({ label: tag, apply: tag + end, type: \"type\", boost: 99 - i })),\n validFor: identifier };\n}\nfunction completeStartTag(state, schema, tree, pos) {\n let options = [], level = 0;\n for (let tagName of allowedChildren(state.doc, tree, schema))\n options.push({ label: \"<\" + tagName, type: \"type\" });\n for (let open of openTags(state.doc, tree))\n options.push({ label: \"\", type: \"type\", boost: 99 - level++ });\n return { from: pos, to: pos, options, validFor: /^<\\/?[:\\-\\.\\w\\u00b7-\\uffff]*$/ };\n}\nfunction completeAttrName(state, schema, tree, from, to) {\n let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;\n let localAttrs = info && info.attrs ? Object.keys(info.attrs) : [];\n let names = info && info.globalAttrs === false ? localAttrs\n : localAttrs.length ? localAttrs.concat(schema.globalAttrNames) : schema.globalAttrNames;\n return { from, to,\n options: names.map(attrName => ({ label: attrName, type: \"property\" })),\n validFor: identifier };\n}\nfunction completeAttrValue(state, schema, tree, from, to) {\n var _a;\n let nameNode = (_a = tree.parent) === null || _a === void 0 ? void 0 : _a.getChild(\"AttributeName\");\n let options = [], token = undefined;\n if (nameNode) {\n let attrName = state.sliceDoc(nameNode.from, nameNode.to);\n let attrs = schema.globalAttrs[attrName];\n if (!attrs) {\n let elt = findParentElement(tree), info = elt ? schema.tags[elementName(state.doc, elt)] : null;\n attrs = (info === null || info === void 0 ? void 0 : info.attrs) && info.attrs[attrName];\n }\n if (attrs) {\n let base = state.sliceDoc(from, to).toLowerCase(), quoteStart = '\"', quoteEnd = '\"';\n if (/^['\"]/.test(base)) {\n token = base[0] == '\"' ? /^[^\"]*$/ : /^[^']*$/;\n quoteStart = \"\";\n quoteEnd = state.sliceDoc(to, to + 1) == base[0] ? \"\" : base[0];\n base = base.slice(1);\n from++;\n }\n else {\n token = /^[^\\s<>='\"]*$/;\n }\n for (let value of attrs)\n options.push({ label: value, apply: quoteStart + value + quoteEnd, type: \"constant\" });\n }\n }\n return { from, to, options, validFor: token };\n}\nfunction htmlCompletionFor(schema, context) {\n let { state, pos } = context, tree = syntaxTree(state).resolveInner(pos, -1), around = tree.resolve(pos);\n for (let scan = pos, before; around == tree && (before = tree.childBefore(scan));) {\n let last = before.lastChild;\n if (!last || !last.type.isError || last.from < last.to)\n break;\n around = tree = before;\n scan = last.from;\n }\n if (tree.name == \"TagName\") {\n return tree.parent && /CloseTag$/.test(tree.parent.name) ? completeCloseTag(state, tree, tree.from, pos)\n : completeTag(state, schema, tree, tree.from, pos);\n }\n else if (tree.name == \"StartTag\") {\n return completeTag(state, schema, tree, pos, pos);\n }\n else if (tree.name == \"StartCloseTag\" || tree.name == \"IncompleteCloseTag\") {\n return completeCloseTag(state, tree, pos, pos);\n }\n else if (context.explicit && (tree.name == \"OpenTag\" || tree.name == \"SelfClosingTag\") || tree.name == \"AttributeName\") {\n return completeAttrName(state, schema, tree, tree.name == \"AttributeName\" ? tree.from : pos, pos);\n }\n else if (tree.name == \"Is\" || tree.name == \"AttributeValue\" || tree.name == \"UnquotedAttributeValue\") {\n return completeAttrValue(state, schema, tree, tree.name == \"Is\" ? pos : tree.from, pos);\n }\n else if (context.explicit && (around.name == \"Element\" || around.name == \"Text\" || around.name == \"Document\")) {\n return completeStartTag(state, schema, tree, pos);\n }\n else {\n return null;\n }\n}\n/**\nHTML tag completion. Opens and closes tags and attributes in a\ncontext-aware way.\n*/\nfunction htmlCompletionSource(context) {\n return htmlCompletionFor(Schema.default, context);\n}\n/**\nCreate a completion source for HTML extended with additional tags\nor attributes.\n*/\nfunction htmlCompletionSourceWith(config) {\n let { extraTags, extraGlobalAttributes: extraAttrs } = config;\n let schema = extraAttrs || extraTags ? new Schema(extraTags, extraAttrs) : Schema.default;\n return (context) => htmlCompletionFor(schema, context);\n}\n\nconst jsonParser = /*@__PURE__*/javascriptLanguage.parser.configure({ top: \"SingleExpression\" });\nconst defaultNesting = [\n { tag: \"script\",\n attrs: attrs => attrs.type == \"text/typescript\" || attrs.lang == \"ts\",\n parser: typescriptLanguage.parser },\n { tag: \"script\",\n attrs: attrs => attrs.type == \"text/babel\" || attrs.type == \"text/jsx\",\n parser: jsxLanguage.parser },\n { tag: \"script\",\n attrs: attrs => attrs.type == \"text/typescript-jsx\",\n parser: tsxLanguage.parser },\n { tag: \"script\",\n attrs: attrs => attrs.type == \"importmap\" || attrs.type == \"speculationrules\",\n parser: jsonParser },\n { tag: \"script\",\n attrs(attrs) {\n return !attrs.type || /^(?:text|application)\\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(attrs.type);\n },\n parser: javascriptLanguage.parser },\n { tag: \"style\",\n attrs(attrs) {\n return (!attrs.lang || attrs.lang == \"css\") && (!attrs.type || /^(text\\/)?(x-)?(stylesheet|css)$/i.test(attrs.type));\n },\n parser: cssLanguage.parser }\n];\nconst defaultAttrs = /*@__PURE__*/[\n { name: \"style\",\n parser: /*@__PURE__*/cssLanguage.parser.configure({ top: \"Styles\" }) }\n].concat(/*@__PURE__*/eventAttributes.map(name => ({ name, parser: javascriptLanguage.parser })));\n/**\nA language provider based on the [Lezer HTML\nparser](https://github.com/lezer-parser/html), extended with the\nJavaScript and CSS parsers to parse the content of `\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationRawTagOpen(code) {\n if (code === 47) {\n effects.consume(code)\n buffer = ''\n return continuationRawEndTag\n }\n return continuation(code)\n }\n\n /**\n * In raw continuation, after ` | \n * ^^^^^^\n * ```\n *\n * @type {State}\n */\n function continuationRawEndTag(code) {\n if (code === 62) {\n const name = buffer.toLowerCase()\n if (htmlRawNames.includes(name)) {\n effects.consume(code)\n return continuationClose\n }\n return continuation(code)\n }\n if (asciiAlpha(code) && buffer.length < 8) {\n effects.consume(code)\n // @ts-expect-error: not null.\n buffer += String.fromCharCode(code)\n return continuationRawEndTag\n }\n return continuation(code)\n }\n\n /**\n * In cdata continuation, after `]`, expecting `]>`.\n *\n * ```markdown\n * > | &<]]>\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationCdataInside(code) {\n if (code === 93) {\n effects.consume(code)\n return continuationDeclarationInside\n }\n return continuation(code)\n }\n\n /**\n * In declaration or instruction continuation, at `>`.\n *\n * ```markdown\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | \n * ^\n * > | &<]]>\n * ^\n * ```\n *\n * @type {State}\n */\n function continuationDeclarationInside(code) {\n if (code === 62) {\n effects.consume(code)\n return continuationClose\n }\n\n // More dashes.\n if (code === 45 && marker === 2) {\n effects.consume(code)\n return continuationDeclarationInside\n }\n return continuation(code)\n }\n\n /**\n * In closed continuation: everything we get until the eol/eof is part of it.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationClose(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('htmlFlowData')\n return continuationAfter(code)\n }\n effects.consume(code)\n return continuationClose\n }\n\n /**\n * Done.\n *\n * ```markdown\n * > | \n * ^\n * ```\n *\n * @type {State}\n */\n function continuationAfter(code) {\n effects.exit('htmlFlow')\n // // Feel free to interrupt.\n // tokenizer.interrupt = false\n // // No longer concrete.\n // tokenizer.concrete = false\n return ok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeNonLazyContinuationStart(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * At eol, before continuation.\n *\n * ```markdown\n * > | * ```js\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (markdownLineEnding(code)) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return after\n }\n return nok(code)\n }\n\n /**\n * A continuation.\n *\n * ```markdown\n * | * ```js\n * > | b\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n return self.parser.lazy[self.now().line] ? nok(code) : ok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeBlankLineBefore(effects, ok, nok) {\n return start\n\n /**\n * Before eol, expecting blank line.\n *\n * ```markdown\n * > |
\n * ^\n * |\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return effects.attempt(blankLine, ok, nok)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding, markdownSpace} from 'micromark-util-character'\n/** @type {Construct} */\nconst nonLazyContinuation = {\n tokenize: tokenizeNonLazyContinuation,\n partial: true\n}\n\n/** @type {Construct} */\nexport const codeFenced = {\n name: 'codeFenced',\n tokenize: tokenizeCodeFenced,\n concrete: true\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCodeFenced(effects, ok, nok) {\n const self = this\n /** @type {Construct} */\n const closeStart = {\n tokenize: tokenizeCloseStart,\n partial: true\n }\n let initialPrefix = 0\n let sizeOpen = 0\n /** @type {NonNullable} */\n let marker\n return start\n\n /**\n * Start of code.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // To do: parse whitespace like `markdown-rs`.\n return beforeSequenceOpen(code)\n }\n\n /**\n * In opening fence, after prefix, at sequence.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function beforeSequenceOpen(code) {\n const tail = self.events[self.events.length - 1]\n initialPrefix =\n tail && tail[1].type === 'linePrefix'\n ? tail[2].sliceSerialize(tail[1], true).length\n : 0\n marker = code\n effects.enter('codeFenced')\n effects.enter('codeFencedFence')\n effects.enter('codeFencedFenceSequence')\n return sequenceOpen(code)\n }\n\n /**\n * In opening fence sequence.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function sequenceOpen(code) {\n if (code === marker) {\n sizeOpen++\n effects.consume(code)\n return sequenceOpen\n }\n if (sizeOpen < 3) {\n return nok(code)\n }\n effects.exit('codeFencedFenceSequence')\n return markdownSpace(code)\n ? factorySpace(effects, infoBefore, 'whitespace')(code)\n : infoBefore(code)\n }\n\n /**\n * In opening fence, after the sequence (and optional whitespace), before info.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function infoBefore(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFencedFence')\n return self.interrupt\n ? ok(code)\n : effects.check(nonLazyContinuation, atNonLazyBreak, after)(code)\n }\n effects.enter('codeFencedFenceInfo')\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return info(code)\n }\n\n /**\n * In info.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function info(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('chunkString')\n effects.exit('codeFencedFenceInfo')\n return infoBefore(code)\n }\n if (markdownSpace(code)) {\n effects.exit('chunkString')\n effects.exit('codeFencedFenceInfo')\n return factorySpace(effects, metaBefore, 'whitespace')(code)\n }\n if (code === 96 && code === marker) {\n return nok(code)\n }\n effects.consume(code)\n return info\n }\n\n /**\n * In opening fence, after info and whitespace, before meta.\n *\n * ```markdown\n * > | ~~~js eval\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function metaBefore(code) {\n if (code === null || markdownLineEnding(code)) {\n return infoBefore(code)\n }\n effects.enter('codeFencedFenceMeta')\n effects.enter('chunkString', {\n contentType: 'string'\n })\n return meta(code)\n }\n\n /**\n * In meta.\n *\n * ```markdown\n * > | ~~~js eval\n * ^\n * | alert(1)\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function meta(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('chunkString')\n effects.exit('codeFencedFenceMeta')\n return infoBefore(code)\n }\n if (code === 96 && code === marker) {\n return nok(code)\n }\n effects.consume(code)\n return meta\n }\n\n /**\n * At eol/eof in code, before a non-lazy closing fence or content.\n *\n * ```markdown\n * > | ~~~js\n * ^\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function atNonLazyBreak(code) {\n return effects.attempt(closeStart, after, contentBefore)(code)\n }\n\n /**\n * Before code content, not a closing fence, at eol.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentBefore(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return contentStart\n }\n\n /**\n * Before code content, not a closing fence.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentStart(code) {\n return initialPrefix > 0 && markdownSpace(code)\n ? factorySpace(\n effects,\n beforeContentChunk,\n 'linePrefix',\n initialPrefix + 1\n )(code)\n : beforeContentChunk(code)\n }\n\n /**\n * Before code content, after optional prefix.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function beforeContentChunk(code) {\n if (code === null || markdownLineEnding(code)) {\n return effects.check(nonLazyContinuation, atNonLazyBreak, after)(code)\n }\n effects.enter('codeFlowValue')\n return contentChunk(code)\n }\n\n /**\n * In code content.\n *\n * ```markdown\n * | ~~~js\n * > | alert(1)\n * ^^^^^^^^\n * | ~~~\n * ```\n *\n * @type {State}\n */\n function contentChunk(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFlowValue')\n return beforeContentChunk(code)\n }\n effects.consume(code)\n return contentChunk\n }\n\n /**\n * After code.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n effects.exit('codeFenced')\n return ok(code)\n }\n\n /**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\n function tokenizeCloseStart(effects, ok, nok) {\n let size = 0\n return startBefore\n\n /**\n *\n *\n * @type {State}\n */\n function startBefore(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return start\n }\n\n /**\n * Before closing fence, at optional whitespace.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // Always populated by defaults.\n\n // To do: `enter` here or in next state?\n effects.enter('codeFencedFence')\n return markdownSpace(code)\n ? factorySpace(\n effects,\n beforeSequenceClose,\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n : beforeSequenceClose(code)\n }\n\n /**\n * In closing fence, after optional whitespace, at sequence.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function beforeSequenceClose(code) {\n if (code === marker) {\n effects.enter('codeFencedFenceSequence')\n return sequenceClose(code)\n }\n return nok(code)\n }\n\n /**\n * In closing fence sequence.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceClose(code) {\n if (code === marker) {\n size++\n effects.consume(code)\n return sequenceClose\n }\n if (size >= sizeOpen) {\n effects.exit('codeFencedFenceSequence')\n return markdownSpace(code)\n ? factorySpace(effects, sequenceCloseAfter, 'whitespace')(code)\n : sequenceCloseAfter(code)\n }\n return nok(code)\n }\n\n /**\n * After closing fence sequence, after optional whitespace.\n *\n * ```markdown\n * | ~~~js\n * | alert(1)\n * > | ~~~\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceCloseAfter(code) {\n if (code === null || markdownLineEnding(code)) {\n effects.exit('codeFencedFence')\n return ok(code)\n }\n return nok(code)\n }\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeNonLazyContinuation(effects, ok, nok) {\n const self = this\n return start\n\n /**\n *\n *\n * @type {State}\n */\n function start(code) {\n if (code === null) {\n return nok(code)\n }\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return lineStart\n }\n\n /**\n *\n *\n * @type {State}\n */\n function lineStart(code) {\n return self.parser.lazy[self.now().line] ? nok(code) : ok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {\n asciiAlphanumeric,\n asciiDigit,\n asciiHexDigit\n} from 'micromark-util-character'\n/** @type {Construct} */\nexport const characterReference = {\n name: 'characterReference',\n tokenize: tokenizeCharacterReference\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCharacterReference(effects, ok, nok) {\n const self = this\n let size = 0\n /** @type {number} */\n let max\n /** @type {(code: Code) => boolean} */\n let test\n return start\n\n /**\n * Start of character reference.\n *\n * ```markdown\n * > | a&b\n * ^\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('characterReference')\n effects.enter('characterReferenceMarker')\n effects.consume(code)\n effects.exit('characterReferenceMarker')\n return open\n }\n\n /**\n * After `&`, at `#` for numeric references or alphanumeric for named\n * references.\n *\n * ```markdown\n * > | a&b\n * ^\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 35) {\n effects.enter('characterReferenceMarkerNumeric')\n effects.consume(code)\n effects.exit('characterReferenceMarkerNumeric')\n return numeric\n }\n effects.enter('characterReferenceValue')\n max = 31\n test = asciiAlphanumeric\n return value(code)\n }\n\n /**\n * After `#`, at `x` for hexadecimals or digit for decimals.\n *\n * ```markdown\n * > | a{b\n * ^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function numeric(code) {\n if (code === 88 || code === 120) {\n effects.enter('characterReferenceMarkerHexadecimal')\n effects.consume(code)\n effects.exit('characterReferenceMarkerHexadecimal')\n effects.enter('characterReferenceValue')\n max = 6\n test = asciiHexDigit\n return value\n }\n effects.enter('characterReferenceValue')\n max = 7\n test = asciiDigit\n return value(code)\n }\n\n /**\n * After markers (`&#x`, `&#`, or `&`), in value, before `;`.\n *\n * The character reference kind defines what and how many characters are\n * allowed.\n *\n * ```markdown\n * > | a&b\n * ^^^\n * > | a{b\n * ^^^\n * > | a b\n * ^\n * ```\n *\n * @type {State}\n */\n function value(code) {\n if (code === 59 && size) {\n const token = effects.exit('characterReferenceValue')\n if (\n test === asciiAlphanumeric &&\n !decodeNamedCharacterReference(self.sliceSerialize(token))\n ) {\n return nok(code)\n }\n\n // To do: `markdown-rs` uses a different name:\n // `CharacterReferenceMarkerSemi`.\n effects.enter('characterReferenceMarker')\n effects.consume(code)\n effects.exit('characterReferenceMarker')\n effects.exit('characterReference')\n return ok\n }\n if (test(code) && size++ < max) {\n effects.consume(code)\n return value\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {asciiPunctuation} from 'micromark-util-character'\n/** @type {Construct} */\nexport const characterEscape = {\n name: 'characterEscape',\n tokenize: tokenizeCharacterEscape\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCharacterEscape(effects, ok, nok) {\n return start\n\n /**\n * Start of character escape.\n *\n * ```markdown\n * > | a\\*b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('characterEscape')\n effects.enter('escapeMarker')\n effects.consume(code)\n effects.exit('escapeMarker')\n return inside\n }\n\n /**\n * After `\\`, at punctuation.\n *\n * ```markdown\n * > | a\\*b\n * ^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n // ASCII punctuation.\n if (asciiPunctuation(code)) {\n effects.enter('characterEscapeValue')\n effects.consume(code)\n effects.exit('characterEscapeValue')\n effects.exit('characterEscape')\n return ok\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {Construct} */\nexport const lineEnding = {\n name: 'lineEnding',\n tokenize: tokenizeLineEnding\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLineEnding(effects, ok) {\n return start\n\n /** @type {State} */\n function start(code) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return factorySpace(effects, ok, 'linePrefix')\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factoryDestination} from 'micromark-factory-destination'\nimport {factoryLabel} from 'micromark-factory-label'\nimport {factoryTitle} from 'micromark-factory-title'\nimport {factoryWhitespace} from 'micromark-factory-whitespace'\nimport {markdownLineEndingOrSpace} from 'micromark-util-character'\nimport {push, splice} from 'micromark-util-chunked'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\nimport {resolveAll} from 'micromark-util-resolve-all'\n/** @type {Construct} */\nexport const labelEnd = {\n name: 'labelEnd',\n tokenize: tokenizeLabelEnd,\n resolveTo: resolveToLabelEnd,\n resolveAll: resolveAllLabelEnd\n}\n\n/** @type {Construct} */\nconst resourceConstruct = {\n tokenize: tokenizeResource\n}\n/** @type {Construct} */\nconst referenceFullConstruct = {\n tokenize: tokenizeReferenceFull\n}\n/** @type {Construct} */\nconst referenceCollapsedConstruct = {\n tokenize: tokenizeReferenceCollapsed\n}\n\n/** @type {Resolver} */\nfunction resolveAllLabelEnd(events) {\n let index = -1\n while (++index < events.length) {\n const token = events[index][1]\n if (\n token.type === 'labelImage' ||\n token.type === 'labelLink' ||\n token.type === 'labelEnd'\n ) {\n // Remove the marker.\n events.splice(index + 1, token.type === 'labelImage' ? 4 : 2)\n token.type = 'data'\n index++\n }\n }\n return events\n}\n\n/** @type {Resolver} */\nfunction resolveToLabelEnd(events, context) {\n let index = events.length\n let offset = 0\n /** @type {Token} */\n let token\n /** @type {number | undefined} */\n let open\n /** @type {number | undefined} */\n let close\n /** @type {Array} */\n let media\n\n // Find an opening.\n while (index--) {\n token = events[index][1]\n if (open) {\n // If we see another link, or inactive link label, we’ve been here before.\n if (\n token.type === 'link' ||\n (token.type === 'labelLink' && token._inactive)\n ) {\n break\n }\n\n // Mark other link openings as inactive, as we can’t have links in\n // links.\n if (events[index][0] === 'enter' && token.type === 'labelLink') {\n token._inactive = true\n }\n } else if (close) {\n if (\n events[index][0] === 'enter' &&\n (token.type === 'labelImage' || token.type === 'labelLink') &&\n !token._balanced\n ) {\n open = index\n if (token.type !== 'labelLink') {\n offset = 2\n break\n }\n }\n } else if (token.type === 'labelEnd') {\n close = index\n }\n }\n const group = {\n type: events[open][1].type === 'labelLink' ? 'link' : 'image',\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[events.length - 1][1].end)\n }\n const label = {\n type: 'label',\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[close][1].end)\n }\n const text = {\n type: 'labelText',\n start: Object.assign({}, events[open + offset + 2][1].end),\n end: Object.assign({}, events[close - 2][1].start)\n }\n media = [\n ['enter', group, context],\n ['enter', label, context]\n ]\n\n // Opening marker.\n media = push(media, events.slice(open + 1, open + offset + 3))\n\n // Text open.\n media = push(media, [['enter', text, context]])\n\n // Always populated by defaults.\n\n // Between.\n media = push(\n media,\n resolveAll(\n context.parser.constructs.insideSpan.null,\n events.slice(open + offset + 4, close - 3),\n context\n )\n )\n\n // Text close, marker close, label close.\n media = push(media, [\n ['exit', text, context],\n events[close - 2],\n events[close - 1],\n ['exit', label, context]\n ])\n\n // Reference, resource, or so.\n media = push(media, events.slice(close + 1))\n\n // Media close.\n media = push(media, [['exit', group, context]])\n splice(events, open, events.length, media)\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelEnd(effects, ok, nok) {\n const self = this\n let index = self.events.length\n /** @type {Token} */\n let labelStart\n /** @type {boolean} */\n let defined\n\n // Find an opening.\n while (index--) {\n if (\n (self.events[index][1].type === 'labelImage' ||\n self.events[index][1].type === 'labelLink') &&\n !self.events[index][1]._balanced\n ) {\n labelStart = self.events[index][1]\n break\n }\n }\n return start\n\n /**\n * Start of label end.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // If there is not an okay opening.\n if (!labelStart) {\n return nok(code)\n }\n\n // If the corresponding label (link) start is marked as inactive,\n // it means we’d be wrapping a link, like this:\n //\n // ```markdown\n // > | a [b [c](d) e](f) g.\n // ^\n // ```\n //\n // We can’t have that, so it’s just balanced brackets.\n if (labelStart._inactive) {\n return labelEndNok(code)\n }\n defined = self.parser.defined.includes(\n normalizeIdentifier(\n self.sliceSerialize({\n start: labelStart.end,\n end: self.now()\n })\n )\n )\n effects.enter('labelEnd')\n effects.enter('labelMarker')\n effects.consume(code)\n effects.exit('labelMarker')\n effects.exit('labelEnd')\n return after\n }\n\n /**\n * After `]`.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // Note: `markdown-rs` also parses GFM footnotes here, which for us is in\n // an extension.\n\n // Resource (`[asd](fgh)`)?\n if (code === 40) {\n return effects.attempt(\n resourceConstruct,\n labelEndOk,\n defined ? labelEndOk : labelEndNok\n )(code)\n }\n\n // Full (`[asd][fgh]`) or collapsed (`[asd][]`) reference?\n if (code === 91) {\n return effects.attempt(\n referenceFullConstruct,\n labelEndOk,\n defined ? referenceNotFull : labelEndNok\n )(code)\n }\n\n // Shortcut (`[asd]`) reference?\n return defined ? labelEndOk(code) : labelEndNok(code)\n }\n\n /**\n * After `]`, at `[`, but not at a full reference.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceNotFull(code) {\n return effects.attempt(\n referenceCollapsedConstruct,\n labelEndOk,\n labelEndNok\n )(code)\n }\n\n /**\n * Done, we found something.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * > | [a][b] c\n * ^\n * > | [a][] b\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndOk(code) {\n // Note: `markdown-rs` does a bunch of stuff here.\n return ok(code)\n }\n\n /**\n * Done, it’s nothing.\n *\n * There was an okay opening, but we didn’t match anything.\n *\n * ```markdown\n * > | [a](b c\n * ^\n * > | [a][b c\n * ^\n * > | [a] b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEndNok(code) {\n labelStart._balanced = true\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeResource(effects, ok, nok) {\n return resourceStart\n\n /**\n * At a resource.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceStart(code) {\n effects.enter('resource')\n effects.enter('resourceMarker')\n effects.consume(code)\n effects.exit('resourceMarker')\n return resourceBefore\n }\n\n /**\n * In resource, after `(`, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBefore(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, resourceOpen)(code)\n : resourceOpen(code)\n }\n\n /**\n * In resource, after optional whitespace, at `)` or a destination.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceOpen(code) {\n if (code === 41) {\n return resourceEnd(code)\n }\n return factoryDestination(\n effects,\n resourceDestinationAfter,\n resourceDestinationMissing,\n 'resourceDestination',\n 'resourceDestinationLiteral',\n 'resourceDestinationLiteralMarker',\n 'resourceDestinationRaw',\n 'resourceDestinationString',\n 32\n )(code)\n }\n\n /**\n * In resource, after destination, at optional whitespace.\n *\n * ```markdown\n * > | [a](b) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationAfter(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, resourceBetween)(code)\n : resourceEnd(code)\n }\n\n /**\n * At invalid destination.\n *\n * ```markdown\n * > | [a](<<) b\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceDestinationMissing(code) {\n return nok(code)\n }\n\n /**\n * In resource, after destination and whitespace, at `(` or title.\n *\n * ```markdown\n * > | [a](b ) c\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceBetween(code) {\n if (code === 34 || code === 39 || code === 40) {\n return factoryTitle(\n effects,\n resourceTitleAfter,\n nok,\n 'resourceTitle',\n 'resourceTitleMarker',\n 'resourceTitleString'\n )(code)\n }\n return resourceEnd(code)\n }\n\n /**\n * In resource, after title, at optional whitespace.\n *\n * ```markdown\n * > | [a](b \"c\") d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceTitleAfter(code) {\n return markdownLineEndingOrSpace(code)\n ? factoryWhitespace(effects, resourceEnd)(code)\n : resourceEnd(code)\n }\n\n /**\n * In resource, at `)`.\n *\n * ```markdown\n * > | [a](b) d\n * ^\n * ```\n *\n * @type {State}\n */\n function resourceEnd(code) {\n if (code === 41) {\n effects.enter('resourceMarker')\n effects.consume(code)\n effects.exit('resourceMarker')\n effects.exit('resource')\n return ok\n }\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceFull(effects, ok, nok) {\n const self = this\n return referenceFull\n\n /**\n * In a reference (full), at the `[`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFull(code) {\n return factoryLabel.call(\n self,\n effects,\n referenceFullAfter,\n referenceFullMissing,\n 'reference',\n 'referenceMarker',\n 'referenceString'\n )(code)\n }\n\n /**\n * In a reference (full), after `]`.\n *\n * ```markdown\n * > | [a][b] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullAfter(code) {\n return self.parser.defined.includes(\n normalizeIdentifier(\n self.sliceSerialize(self.events[self.events.length - 1][1]).slice(1, -1)\n )\n )\n ? ok(code)\n : nok(code)\n }\n\n /**\n * In reference (full) that was missing.\n *\n * ```markdown\n * > | [a][b d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceFullMissing(code) {\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeReferenceCollapsed(effects, ok, nok) {\n return referenceCollapsedStart\n\n /**\n * In reference (collapsed), at `[`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedStart(code) {\n // We only attempt a collapsed label if there’s a `[`.\n\n effects.enter('reference')\n effects.enter('referenceMarker')\n effects.consume(code)\n effects.exit('referenceMarker')\n return referenceCollapsedOpen\n }\n\n /**\n * In reference (collapsed), at `]`.\n *\n * > 👉 **Note**: we only get here if the label is defined.\n *\n * ```markdown\n * > | [a][] d\n * ^\n * ```\n *\n * @type {State}\n */\n function referenceCollapsedOpen(code) {\n if (code === 93) {\n effects.enter('referenceMarker')\n effects.consume(code)\n effects.exit('referenceMarker')\n effects.exit('reference')\n return ok\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {labelEnd} from './label-end.js'\n\n/** @type {Construct} */\nexport const labelStartImage = {\n name: 'labelStartImage',\n tokenize: tokenizeLabelStartImage,\n resolveAll: labelEnd.resolveAll\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartImage(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * Start of label (image) start.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('labelImage')\n effects.enter('labelImageMarker')\n effects.consume(code)\n effects.exit('labelImageMarker')\n return open\n }\n\n /**\n * After `!`, at `[`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 91) {\n effects.enter('labelMarker')\n effects.consume(code)\n effects.exit('labelMarker')\n effects.exit('labelImage')\n return after\n }\n return nok(code)\n }\n\n /**\n * After `![`.\n *\n * ```markdown\n * > | a ![b] c\n * ^\n * ```\n *\n * This is needed in because, when GFM footnotes are enabled, images never\n * form when started with a `^`.\n * Instead, links form:\n *\n * ```markdown\n * ![^a](b)\n *\n * ![^a][b]\n *\n * [b]: c\n * ```\n *\n * ```html\n *

!^a

\n *

!^a

\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // To do: use a new field to do this, this is still needed for\n // `micromark-extension-gfm-footnote`, but the `label-start-link`\n // behavior isn’t.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs\n ? nok(code)\n : ok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n */\n\nimport {\n markdownLineEndingOrSpace,\n unicodePunctuation,\n unicodeWhitespace\n} from 'micromark-util-character'\n/**\n * Classify whether a code represents whitespace, punctuation, or something\n * else.\n *\n * Used for attention (emphasis, strong), whose sequences can open or close\n * based on the class of surrounding characters.\n *\n * > 👉 **Note**: eof (`null`) is seen as whitespace.\n *\n * @param {Code} code\n * Code.\n * @returns {typeof constants.characterGroupWhitespace | typeof constants.characterGroupPunctuation | undefined}\n * Group.\n */\nexport function classifyCharacter(code) {\n if (\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return 1\n }\n if (unicodePunctuation(code)) {\n return 2\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Point} Point\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {push, splice} from 'micromark-util-chunked'\nimport {classifyCharacter} from 'micromark-util-classify-character'\nimport {resolveAll} from 'micromark-util-resolve-all'\n/** @type {Construct} */\nexport const attention = {\n name: 'attention',\n tokenize: tokenizeAttention,\n resolveAll: resolveAllAttention\n}\n\n/**\n * Take all events and resolve attention to emphasis or strong.\n *\n * @type {Resolver}\n */\n// eslint-disable-next-line complexity\nfunction resolveAllAttention(events, context) {\n let index = -1\n /** @type {number} */\n let open\n /** @type {Token} */\n let group\n /** @type {Token} */\n let text\n /** @type {Token} */\n let openingSequence\n /** @type {Token} */\n let closingSequence\n /** @type {number} */\n let use\n /** @type {Array} */\n let nextEvents\n /** @type {number} */\n let offset\n\n // Walk through all events.\n //\n // Note: performance of this is fine on an mb of normal markdown, but it’s\n // a bottleneck for malicious stuff.\n while (++index < events.length) {\n // Find a token that can close.\n if (\n events[index][0] === 'enter' &&\n events[index][1].type === 'attentionSequence' &&\n events[index][1]._close\n ) {\n open = index\n\n // Now walk back to find an opener.\n while (open--) {\n // Find a token that can open the closer.\n if (\n events[open][0] === 'exit' &&\n events[open][1].type === 'attentionSequence' &&\n events[open][1]._open &&\n // If the markers are the same:\n context.sliceSerialize(events[open][1]).charCodeAt(0) ===\n context.sliceSerialize(events[index][1]).charCodeAt(0)\n ) {\n // If the opening can close or the closing can open,\n // and the close size *is not* a multiple of three,\n // but the sum of the opening and closing size *is* multiple of three,\n // then don’t match.\n if (\n (events[open][1]._close || events[index][1]._open) &&\n (events[index][1].end.offset - events[index][1].start.offset) % 3 &&\n !(\n (events[open][1].end.offset -\n events[open][1].start.offset +\n events[index][1].end.offset -\n events[index][1].start.offset) %\n 3\n )\n ) {\n continue\n }\n\n // Number of markers to use from the sequence.\n use =\n events[open][1].end.offset - events[open][1].start.offset > 1 &&\n events[index][1].end.offset - events[index][1].start.offset > 1\n ? 2\n : 1\n const start = Object.assign({}, events[open][1].end)\n const end = Object.assign({}, events[index][1].start)\n movePoint(start, -use)\n movePoint(end, use)\n openingSequence = {\n type: use > 1 ? 'strongSequence' : 'emphasisSequence',\n start,\n end: Object.assign({}, events[open][1].end)\n }\n closingSequence = {\n type: use > 1 ? 'strongSequence' : 'emphasisSequence',\n start: Object.assign({}, events[index][1].start),\n end\n }\n text = {\n type: use > 1 ? 'strongText' : 'emphasisText',\n start: Object.assign({}, events[open][1].end),\n end: Object.assign({}, events[index][1].start)\n }\n group = {\n type: use > 1 ? 'strong' : 'emphasis',\n start: Object.assign({}, openingSequence.start),\n end: Object.assign({}, closingSequence.end)\n }\n events[open][1].end = Object.assign({}, openingSequence.start)\n events[index][1].start = Object.assign({}, closingSequence.end)\n nextEvents = []\n\n // If there are more markers in the opening, add them before.\n if (events[open][1].end.offset - events[open][1].start.offset) {\n nextEvents = push(nextEvents, [\n ['enter', events[open][1], context],\n ['exit', events[open][1], context]\n ])\n }\n\n // Opening.\n nextEvents = push(nextEvents, [\n ['enter', group, context],\n ['enter', openingSequence, context],\n ['exit', openingSequence, context],\n ['enter', text, context]\n ])\n\n // Always populated by defaults.\n\n // Between.\n nextEvents = push(\n nextEvents,\n resolveAll(\n context.parser.constructs.insideSpan.null,\n events.slice(open + 1, index),\n context\n )\n )\n\n // Closing.\n nextEvents = push(nextEvents, [\n ['exit', text, context],\n ['enter', closingSequence, context],\n ['exit', closingSequence, context],\n ['exit', group, context]\n ])\n\n // If there are more markers in the closing, add them after.\n if (events[index][1].end.offset - events[index][1].start.offset) {\n offset = 2\n nextEvents = push(nextEvents, [\n ['enter', events[index][1], context],\n ['exit', events[index][1], context]\n ])\n } else {\n offset = 0\n }\n splice(events, open - 1, index - open + 3, nextEvents)\n index = open + nextEvents.length - offset - 2\n break\n }\n }\n }\n }\n\n // Remove remaining sequences.\n index = -1\n while (++index < events.length) {\n if (events[index][1].type === 'attentionSequence') {\n events[index][1].type = 'data'\n }\n }\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeAttention(effects, ok) {\n const attentionMarkers = this.parser.constructs.attentionMarkers.null\n const previous = this.previous\n const before = classifyCharacter(previous)\n\n /** @type {NonNullable} */\n let marker\n return start\n\n /**\n * Before a sequence.\n *\n * ```markdown\n * > | **\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n marker = code\n effects.enter('attentionSequence')\n return inside(code)\n }\n\n /**\n * In a sequence.\n *\n * ```markdown\n * > | **\n * ^^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n if (code === marker) {\n effects.consume(code)\n return inside\n }\n const token = effects.exit('attentionSequence')\n\n // To do: next major: move this to resolver, just like `markdown-rs`.\n const after = classifyCharacter(code)\n\n // Always populated by defaults.\n\n const open =\n !after || (after === 2 && before) || attentionMarkers.includes(code)\n const close =\n !before || (before === 2 && after) || attentionMarkers.includes(previous)\n token._open = Boolean(marker === 42 ? open : open && (before || !close))\n token._close = Boolean(marker === 42 ? close : close && (after || !open))\n return ok(code)\n }\n}\n\n/**\n * Move a point a bit.\n *\n * Note: `move` only works inside lines! It’s not possible to move past other\n * chunks (replacement characters, tabs, or line endings).\n *\n * @param {Point} point\n * @param {number} offset\n * @returns {undefined}\n */\nfunction movePoint(point, offset) {\n point.column += offset\n point.offset += offset\n point._bufferIndex += offset\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {\n asciiAlpha,\n asciiAlphanumeric,\n asciiAtext,\n asciiControl\n} from 'micromark-util-character'\n/** @type {Construct} */\nexport const autolink = {\n name: 'autolink',\n tokenize: tokenizeAutolink\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeAutolink(effects, ok, nok) {\n let size = 0\n return start\n\n /**\n * Start of an autolink.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('autolink')\n effects.enter('autolinkMarker')\n effects.consume(code)\n effects.exit('autolinkMarker')\n effects.enter('autolinkProtocol')\n return open\n }\n\n /**\n * After `<`, at protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (asciiAlpha(code)) {\n effects.consume(code)\n return schemeOrEmailAtext\n }\n return emailAtext(code)\n }\n\n /**\n * At second byte of protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function schemeOrEmailAtext(code) {\n // ASCII alphanumeric and `+`, `-`, and `.`.\n if (code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) {\n // Count the previous alphabetical from `open` too.\n size = 1\n return schemeInsideOrEmailAtext(code)\n }\n return emailAtext(code)\n }\n\n /**\n * In ambiguous protocol or atext.\n *\n * ```markdown\n * > | ab\n * ^\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function schemeInsideOrEmailAtext(code) {\n if (code === 58) {\n effects.consume(code)\n size = 0\n return urlInside\n }\n\n // ASCII alphanumeric and `+`, `-`, and `.`.\n if (\n (code === 43 || code === 45 || code === 46 || asciiAlphanumeric(code)) &&\n size++ < 32\n ) {\n effects.consume(code)\n return schemeInsideOrEmailAtext\n }\n size = 0\n return emailAtext(code)\n }\n\n /**\n * After protocol, in URL.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function urlInside(code) {\n if (code === 62) {\n effects.exit('autolinkProtocol')\n effects.enter('autolinkMarker')\n effects.consume(code)\n effects.exit('autolinkMarker')\n effects.exit('autolink')\n return ok\n }\n\n // ASCII control, space, or `<`.\n if (code === null || code === 32 || code === 60 || asciiControl(code)) {\n return nok(code)\n }\n effects.consume(code)\n return urlInside\n }\n\n /**\n * In email atext.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailAtext(code) {\n if (code === 64) {\n effects.consume(code)\n return emailAtSignOrDot\n }\n if (asciiAtext(code)) {\n effects.consume(code)\n return emailAtext\n }\n return nok(code)\n }\n\n /**\n * In label, after at-sign or dot.\n *\n * ```markdown\n * > | ab\n * ^ ^\n * ```\n *\n * @type {State}\n */\n function emailAtSignOrDot(code) {\n return asciiAlphanumeric(code) ? emailLabel(code) : nok(code)\n }\n\n /**\n * In label, where `.` and `>` are allowed.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailLabel(code) {\n if (code === 46) {\n effects.consume(code)\n size = 0\n return emailAtSignOrDot\n }\n if (code === 62) {\n // Exit, then change the token type.\n effects.exit('autolinkProtocol').type = 'autolinkEmail'\n effects.enter('autolinkMarker')\n effects.consume(code)\n effects.exit('autolinkMarker')\n effects.exit('autolink')\n return ok\n }\n return emailValue(code)\n }\n\n /**\n * In label, where `.` and `>` are *not* allowed.\n *\n * Though, this is also used in `emailLabel` to parse other values.\n *\n * ```markdown\n * > | ab\n * ^\n * ```\n *\n * @type {State}\n */\n function emailValue(code) {\n // ASCII alphanumeric or `-`.\n if ((code === 45 || asciiAlphanumeric(code)) && size++ < 63) {\n const next = code === 45 ? emailValue : emailLabel\n effects.consume(code)\n return next\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {\n asciiAlpha,\n asciiAlphanumeric,\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\n/** @type {Construct} */\nexport const htmlText = {\n name: 'htmlText',\n tokenize: tokenizeHtmlText\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHtmlText(effects, ok, nok) {\n const self = this\n /** @type {NonNullable | undefined} */\n let marker\n /** @type {number} */\n let index\n /** @type {State} */\n let returnState\n return start\n\n /**\n * Start of HTML (text).\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('htmlText')\n effects.enter('htmlTextData')\n effects.consume(code)\n return open\n }\n\n /**\n * After `<`, at tag name or other stuff.\n *\n * ```markdown\n * > | a c\n * ^\n * > | a c\n * ^\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (code === 33) {\n effects.consume(code)\n return declarationOpen\n }\n if (code === 47) {\n effects.consume(code)\n return tagCloseStart\n }\n if (code === 63) {\n effects.consume(code)\n return instruction\n }\n\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code)\n return tagOpen\n }\n return nok(code)\n }\n\n /**\n * After ` | a c\n * ^\n * > | a c\n * ^\n * > | a &<]]> c\n * ^\n * ```\n *\n * @type {State}\n */\n function declarationOpen(code) {\n if (code === 45) {\n effects.consume(code)\n return commentOpenInside\n }\n if (code === 91) {\n effects.consume(code)\n index = 0\n return cdataOpenInside\n }\n if (asciiAlpha(code)) {\n effects.consume(code)\n return declaration\n }\n return nok(code)\n }\n\n /**\n * In a comment, after ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentOpenInside(code) {\n if (code === 45) {\n effects.consume(code)\n return commentEnd\n }\n return nok(code)\n }\n\n /**\n * In comment.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function comment(code) {\n if (code === null) {\n return nok(code)\n }\n if (code === 45) {\n effects.consume(code)\n return commentClose\n }\n if (markdownLineEnding(code)) {\n returnState = comment\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return comment\n }\n\n /**\n * In comment, after `-`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentClose(code) {\n if (code === 45) {\n effects.consume(code)\n return commentEnd\n }\n return comment(code)\n }\n\n /**\n * In comment, after `--`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function commentEnd(code) {\n return code === 62\n ? end(code)\n : code === 45\n ? commentClose(code)\n : comment(code)\n }\n\n /**\n * After ` | a &<]]> b\n * ^^^^^^\n * ```\n *\n * @type {State}\n */\n function cdataOpenInside(code) {\n const value = 'CDATA['\n if (code === value.charCodeAt(index++)) {\n effects.consume(code)\n return index === value.length ? cdata : cdataOpenInside\n }\n return nok(code)\n }\n\n /**\n * In CDATA.\n *\n * ```markdown\n * > | a &<]]> b\n * ^^^\n * ```\n *\n * @type {State}\n */\n function cdata(code) {\n if (code === null) {\n return nok(code)\n }\n if (code === 93) {\n effects.consume(code)\n return cdataClose\n }\n if (markdownLineEnding(code)) {\n returnState = cdata\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return cdata\n }\n\n /**\n * In CDATA, after `]`, at another `]`.\n *\n * ```markdown\n * > | a &<]]> b\n * ^\n * ```\n *\n * @type {State}\n */\n function cdataClose(code) {\n if (code === 93) {\n effects.consume(code)\n return cdataEnd\n }\n return cdata(code)\n }\n\n /**\n * In CDATA, after `]]`, at `>`.\n *\n * ```markdown\n * > | a &<]]> b\n * ^\n * ```\n *\n * @type {State}\n */\n function cdataEnd(code) {\n if (code === 62) {\n return end(code)\n }\n if (code === 93) {\n effects.consume(code)\n return cdataEnd\n }\n return cdata(code)\n }\n\n /**\n * In declaration.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function declaration(code) {\n if (code === null || code === 62) {\n return end(code)\n }\n if (markdownLineEnding(code)) {\n returnState = declaration\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return declaration\n }\n\n /**\n * In instruction.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function instruction(code) {\n if (code === null) {\n return nok(code)\n }\n if (code === 63) {\n effects.consume(code)\n return instructionClose\n }\n if (markdownLineEnding(code)) {\n returnState = instruction\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return instruction\n }\n\n /**\n * In instruction, after `?`, at `>`.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function instructionClose(code) {\n return code === 62 ? end(code) : instruction(code)\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagCloseStart(code) {\n // ASCII alphabetical.\n if (asciiAlpha(code)) {\n effects.consume(code)\n return tagClose\n }\n return nok(code)\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagClose(code) {\n // ASCII alphanumerical and `-`.\n if (code === 45 || asciiAlphanumeric(code)) {\n effects.consume(code)\n return tagClose\n }\n return tagCloseBetween(code)\n }\n\n /**\n * In closing tag, after tag name.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagCloseBetween(code) {\n if (markdownLineEnding(code)) {\n returnState = tagCloseBetween\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagCloseBetween\n }\n return end(code)\n }\n\n /**\n * After ` | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpen(code) {\n // ASCII alphanumerical and `-`.\n if (code === 45 || asciiAlphanumeric(code)) {\n effects.consume(code)\n return tagOpen\n }\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code)\n }\n return nok(code)\n }\n\n /**\n * In opening tag, after tag name.\n *\n * ```markdown\n * > | a c\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenBetween(code) {\n if (code === 47) {\n effects.consume(code)\n return end\n }\n\n // ASCII alphabetical and `:` and `_`.\n if (code === 58 || code === 95 || asciiAlpha(code)) {\n effects.consume(code)\n return tagOpenAttributeName\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenBetween\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagOpenBetween\n }\n return end(code)\n }\n\n /**\n * In attribute name.\n *\n * ```markdown\n * > | a d\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeName(code) {\n // ASCII alphabetical and `-`, `.`, `:`, and `_`.\n if (\n code === 45 ||\n code === 46 ||\n code === 58 ||\n code === 95 ||\n asciiAlphanumeric(code)\n ) {\n effects.consume(code)\n return tagOpenAttributeName\n }\n return tagOpenAttributeNameAfter(code)\n }\n\n /**\n * After attribute name, before initializer, the end of the tag, or\n * whitespace.\n *\n * ```markdown\n * > | a d\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeNameAfter(code) {\n if (code === 61) {\n effects.consume(code)\n return tagOpenAttributeValueBefore\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeNameAfter\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagOpenAttributeNameAfter\n }\n return tagOpenBetween(code)\n }\n\n /**\n * Before unquoted, double quoted, or single quoted attribute value, allowing\n * whitespace.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueBefore(code) {\n if (\n code === null ||\n code === 60 ||\n code === 61 ||\n code === 62 ||\n code === 96\n ) {\n return nok(code)\n }\n if (code === 34 || code === 39) {\n effects.consume(code)\n marker = code\n return tagOpenAttributeValueQuoted\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeValueBefore\n return lineEndingBefore(code)\n }\n if (markdownSpace(code)) {\n effects.consume(code)\n return tagOpenAttributeValueBefore\n }\n effects.consume(code)\n return tagOpenAttributeValueUnquoted\n }\n\n /**\n * In double or single quoted attribute value.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueQuoted(code) {\n if (code === marker) {\n effects.consume(code)\n marker = undefined\n return tagOpenAttributeValueQuotedAfter\n }\n if (code === null) {\n return nok(code)\n }\n if (markdownLineEnding(code)) {\n returnState = tagOpenAttributeValueQuoted\n return lineEndingBefore(code)\n }\n effects.consume(code)\n return tagOpenAttributeValueQuoted\n }\n\n /**\n * In unquoted attribute value.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueUnquoted(code) {\n if (\n code === null ||\n code === 34 ||\n code === 39 ||\n code === 60 ||\n code === 61 ||\n code === 96\n ) {\n return nok(code)\n }\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code)\n }\n effects.consume(code)\n return tagOpenAttributeValueUnquoted\n }\n\n /**\n * After double or single quoted attribute value, before whitespace or the end\n * of the tag.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function tagOpenAttributeValueQuotedAfter(code) {\n if (code === 47 || code === 62 || markdownLineEndingOrSpace(code)) {\n return tagOpenBetween(code)\n }\n return nok(code)\n }\n\n /**\n * In certain circumstances of a tag where only an `>` is allowed.\n *\n * ```markdown\n * > | a e\n * ^\n * ```\n *\n * @type {State}\n */\n function end(code) {\n if (code === 62) {\n effects.consume(code)\n effects.exit('htmlTextData')\n effects.exit('htmlText')\n return ok\n }\n return nok(code)\n }\n\n /**\n * At eol.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * > | a \n * ```\n *\n * @type {State}\n */\n function lineEndingBefore(code) {\n effects.exit('htmlTextData')\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return lineEndingAfter\n }\n\n /**\n * After eol, at optional whitespace.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * | a \n * ^\n * ```\n *\n * @type {State}\n */\n function lineEndingAfter(code) {\n // Always populated by defaults.\n\n return markdownSpace(code)\n ? factorySpace(\n effects,\n lineEndingAfterPrefix,\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n : lineEndingAfterPrefix(code)\n }\n\n /**\n * After eol, after optional whitespace.\n *\n * > 👉 **Note**: we can’t have blank lines in text, so no need to worry about\n * > empty tokens.\n *\n * ```markdown\n * | a \n * ^\n * ```\n *\n * @type {State}\n */\n function lineEndingAfterPrefix(code) {\n effects.enter('htmlTextData')\n return returnState(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {labelEnd} from './label-end.js'\n\n/** @type {Construct} */\nexport const labelStartLink = {\n name: 'labelStartLink',\n tokenize: tokenizeLabelStartLink,\n resolveAll: labelEnd.resolveAll\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeLabelStartLink(effects, ok, nok) {\n const self = this\n return start\n\n /**\n * Start of label (link) start.\n *\n * ```markdown\n * > | a [b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('labelLink')\n effects.enter('labelMarker')\n effects.consume(code)\n effects.exit('labelMarker')\n effects.exit('labelLink')\n return after\n }\n\n /** @type {State} */\n function after(code) {\n // To do: this isn’t needed in `micromark-extension-gfm-footnote`,\n // remove.\n // Hidden footnotes hook.\n /* c8 ignore next 3 */\n return code === 94 && '_hiddenFootnoteSupport' in self.parser.constructs\n ? nok(code)\n : ok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {Construct} */\nexport const hardBreakEscape = {\n name: 'hardBreakEscape',\n tokenize: tokenizeHardBreakEscape\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeHardBreakEscape(effects, ok, nok) {\n return start\n\n /**\n * Start of a hard break (escape).\n *\n * ```markdown\n * > | a\\\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('hardBreakEscape')\n effects.consume(code)\n return after\n }\n\n /**\n * After `\\`, at eol.\n *\n * ```markdown\n * > | a\\\n * ^\n * | b\n * ```\n *\n * @type {State}\n */\n function after(code) {\n if (markdownLineEnding(code)) {\n effects.exit('hardBreakEscape')\n return ok(code)\n }\n return nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Construct} Construct\n * @typedef {import('micromark-util-types').Previous} Previous\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {markdownLineEnding} from 'micromark-util-character'\n/** @type {Construct} */\nexport const codeText = {\n name: 'codeText',\n tokenize: tokenizeCodeText,\n resolve: resolveCodeText,\n previous\n}\n\n// To do: next major: don’t resolve, like `markdown-rs`.\n/** @type {Resolver} */\nfunction resolveCodeText(events) {\n let tailExitIndex = events.length - 4\n let headEnterIndex = 3\n /** @type {number} */\n let index\n /** @type {number | undefined} */\n let enter\n\n // If we start and end with an EOL or a space.\n if (\n (events[headEnterIndex][1].type === 'lineEnding' ||\n events[headEnterIndex][1].type === 'space') &&\n (events[tailExitIndex][1].type === 'lineEnding' ||\n events[tailExitIndex][1].type === 'space')\n ) {\n index = headEnterIndex\n\n // And we have data.\n while (++index < tailExitIndex) {\n if (events[index][1].type === 'codeTextData') {\n // Then we have padding.\n events[headEnterIndex][1].type = 'codeTextPadding'\n events[tailExitIndex][1].type = 'codeTextPadding'\n headEnterIndex += 2\n tailExitIndex -= 2\n break\n }\n }\n }\n\n // Merge adjacent spaces and data.\n index = headEnterIndex - 1\n tailExitIndex++\n while (++index <= tailExitIndex) {\n if (enter === undefined) {\n if (index !== tailExitIndex && events[index][1].type !== 'lineEnding') {\n enter = index\n }\n } else if (\n index === tailExitIndex ||\n events[index][1].type === 'lineEnding'\n ) {\n events[enter][1].type = 'codeTextData'\n if (index !== enter + 2) {\n events[enter][1].end = events[index - 1][1].end\n events.splice(enter + 2, index - enter - 2)\n tailExitIndex -= index - enter - 2\n index = enter + 2\n }\n enter = undefined\n }\n }\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Previous}\n */\nfunction previous(code) {\n // If there is a previous code, there will always be a tail.\n return (\n code !== 96 ||\n this.events[this.events.length - 1][1].type === 'characterEscape'\n )\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeCodeText(effects, ok, nok) {\n const self = this\n let sizeOpen = 0\n /** @type {number} */\n let size\n /** @type {Token} */\n let token\n return start\n\n /**\n * Start of code (text).\n *\n * ```markdown\n * > | `a`\n * ^\n * > | \\`a`\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('codeText')\n effects.enter('codeTextSequence')\n return sequenceOpen(code)\n }\n\n /**\n * In opening sequence.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceOpen(code) {\n if (code === 96) {\n effects.consume(code)\n sizeOpen++\n return sequenceOpen\n }\n effects.exit('codeTextSequence')\n return between(code)\n }\n\n /**\n * Between something and something else.\n *\n * ```markdown\n * > | `a`\n * ^^\n * ```\n *\n * @type {State}\n */\n function between(code) {\n // EOF.\n if (code === null) {\n return nok(code)\n }\n\n // To do: next major: don’t do spaces in resolve, but when compiling,\n // like `markdown-rs`.\n // Tabs don’t work, and virtual spaces don’t make sense.\n if (code === 32) {\n effects.enter('space')\n effects.consume(code)\n effects.exit('space')\n return between\n }\n\n // Closing fence? Could also be data.\n if (code === 96) {\n token = effects.enter('codeTextSequence')\n size = 0\n return sequenceClose(code)\n }\n if (markdownLineEnding(code)) {\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return between\n }\n\n // Data.\n effects.enter('codeTextData')\n return data(code)\n }\n\n /**\n * In data.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function data(code) {\n if (\n code === null ||\n code === 32 ||\n code === 96 ||\n markdownLineEnding(code)\n ) {\n effects.exit('codeTextData')\n return between(code)\n }\n effects.consume(code)\n return data\n }\n\n /**\n * In closing sequence.\n *\n * ```markdown\n * > | `a`\n * ^\n * ```\n *\n * @type {State}\n */\n function sequenceClose(code) {\n // More.\n if (code === 96) {\n effects.consume(code)\n size++\n return sequenceClose\n }\n\n // Done!\n if (size === sizeOpen) {\n effects.exit('codeTextSequence')\n effects.exit('codeText')\n return ok(code)\n }\n\n // More or less accents: mark as data.\n token.type = 'codeTextData'\n return data(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Extension} Extension\n */\n\nimport {\n attention,\n autolink,\n blockQuote,\n characterEscape,\n characterReference,\n codeFenced,\n codeIndented,\n codeText,\n definition,\n hardBreakEscape,\n headingAtx,\n htmlFlow,\n htmlText,\n labelEnd,\n labelStartImage,\n labelStartLink,\n lineEnding,\n list,\n setextUnderline,\n thematicBreak\n} from 'micromark-core-commonmark'\nimport {resolver as resolveText} from './initialize/text.js'\n\n/** @satisfies {Extension['document']} */\nexport const document = {\n [42]: list,\n [43]: list,\n [45]: list,\n [48]: list,\n [49]: list,\n [50]: list,\n [51]: list,\n [52]: list,\n [53]: list,\n [54]: list,\n [55]: list,\n [56]: list,\n [57]: list,\n [62]: blockQuote\n}\n\n/** @satisfies {Extension['contentInitial']} */\nexport const contentInitial = {\n [91]: definition\n}\n\n/** @satisfies {Extension['flowInitial']} */\nexport const flowInitial = {\n [-2]: codeIndented,\n [-1]: codeIndented,\n [32]: codeIndented\n}\n\n/** @satisfies {Extension['flow']} */\nexport const flow = {\n [35]: headingAtx,\n [42]: thematicBreak,\n [45]: [setextUnderline, thematicBreak],\n [60]: htmlFlow,\n [61]: setextUnderline,\n [95]: thematicBreak,\n [96]: codeFenced,\n [126]: codeFenced\n}\n\n/** @satisfies {Extension['string']} */\nexport const string = {\n [38]: characterReference,\n [92]: characterEscape\n}\n\n/** @satisfies {Extension['text']} */\nexport const text = {\n [-5]: lineEnding,\n [-4]: lineEnding,\n [-3]: lineEnding,\n [33]: labelStartImage,\n [38]: characterReference,\n [42]: attention,\n [60]: [autolink, htmlText],\n [91]: labelStartLink,\n [92]: [hardBreakEscape, characterEscape],\n [93]: labelEnd,\n [95]: attention,\n [96]: codeText\n}\n\n/** @satisfies {Extension['insideSpan']} */\nexport const insideSpan = {\n null: [attention, resolveText]\n}\n\n/** @satisfies {Extension['attentionMarkers']} */\nexport const attentionMarkers = {\n null: [42, 95]\n}\n\n/** @satisfies {Extension['disable']} */\nexport const disable = {\n null: []\n}\n","/**\n * @typedef {import('micromark-util-types').Chunk} Chunk\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').Encoding} Encoding\n * @typedef {import('micromark-util-types').Value} Value\n */\n\n/**\n * @callback Preprocessor\n * @param {Value} value\n * @param {Encoding | null | undefined} [encoding]\n * @param {boolean | null | undefined} [end=false]\n * @returns {Array}\n */\n\nconst search = /[\\0\\t\\n\\r]/g\n\n/**\n * @returns {Preprocessor}\n */\nexport function preprocess() {\n let column = 1\n let buffer = ''\n /** @type {boolean | undefined} */\n let start = true\n /** @type {boolean | undefined} */\n let atCarriageReturn\n return preprocessor\n\n /** @type {Preprocessor} */\n // eslint-disable-next-line complexity\n function preprocessor(value, encoding, end) {\n /** @type {Array} */\n const chunks = []\n /** @type {RegExpMatchArray | null} */\n let match\n /** @type {number} */\n let next\n /** @type {number} */\n let startPosition\n /** @type {number} */\n let endPosition\n /** @type {Code} */\n let code\n value =\n buffer +\n (typeof value === 'string'\n ? value.toString()\n : new TextDecoder(encoding || undefined).decode(value))\n startPosition = 0\n buffer = ''\n if (start) {\n // To do: `markdown-rs` actually parses BOMs (byte order mark).\n if (value.charCodeAt(0) === 65279) {\n startPosition++\n }\n start = undefined\n }\n while (startPosition < value.length) {\n search.lastIndex = startPosition\n match = search.exec(value)\n endPosition =\n match && match.index !== undefined ? match.index : value.length\n code = value.charCodeAt(endPosition)\n if (!match) {\n buffer = value.slice(startPosition)\n break\n }\n if (code === 10 && startPosition === endPosition && atCarriageReturn) {\n chunks.push(-3)\n atCarriageReturn = undefined\n } else {\n if (atCarriageReturn) {\n chunks.push(-5)\n atCarriageReturn = undefined\n }\n if (startPosition < endPosition) {\n chunks.push(value.slice(startPosition, endPosition))\n column += endPosition - startPosition\n }\n switch (code) {\n case 0: {\n chunks.push(65533)\n column++\n break\n }\n case 9: {\n next = Math.ceil(column / 4) * 4\n chunks.push(-2)\n while (column++ < next) chunks.push(-1)\n break\n }\n case 10: {\n chunks.push(-4)\n column = 1\n break\n }\n default: {\n atCarriageReturn = true\n column = 1\n }\n }\n }\n startPosition = endPosition + 1\n }\n if (end) {\n if (atCarriageReturn) chunks.push(-5)\n if (buffer) chunks.push(buffer)\n chunks.push(null)\n }\n return chunks\n }\n}\n","/**\n * Turn the number (in string form as either hexa- or plain decimal) coming from\n * a numeric character reference into a character.\n *\n * Sort of like `String.fromCodePoint(Number.parseInt(value, base))`, but makes\n * non-characters and control characters safe.\n *\n * @param {string} value\n * Value to decode.\n * @param {number} base\n * Numeric base.\n * @returns {string}\n * Character.\n */\nexport function decodeNumericCharacterReference(value, base) {\n const code = Number.parseInt(value, base);\n if (\n // C0 except for HT, LF, FF, CR, space.\n code < 9 || code === 11 || code > 13 && code < 32 ||\n // Control character (DEL) of C0, and C1 controls.\n code > 126 && code < 160 ||\n // Lone high surrogates and low surrogates.\n code > 55_295 && code < 57_344 ||\n // Noncharacters.\n code > 64_975 && code < 65_008 || /* eslint-disable no-bitwise */\n (code & 65_535) === 65_535 || (code & 65_535) === 65_534 || /* eslint-enable no-bitwise */\n // Out of range\n code > 1_114_111) {\n return \"\\uFFFD\";\n }\n return String.fromCodePoint(code);\n}","import {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference'\nconst characterEscapeOrReference =\n /\\\\([!-/:-@[-`{-~])|&(#(?:\\d{1,7}|x[\\da-f]{1,6})|[\\da-z]{1,31});/gi\n\n/**\n * Decode markdown strings (which occur in places such as fenced code info\n * strings, destinations, labels, and titles).\n *\n * The “string” content type allows character escapes and -references.\n * This decodes those.\n *\n * @param {string} value\n * Value to decode.\n * @returns {string}\n * Decoded value.\n */\nexport function decodeString(value) {\n return value.replace(characterEscapeOrReference, decode)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @param {string} $2\n * @returns {string}\n */\nfunction decode($0, $1, $2) {\n if ($1) {\n // Escape.\n return $1\n }\n\n // Reference.\n const head = $2.charCodeAt(0)\n if (head === 35) {\n const head = $2.charCodeAt(1)\n const hex = head === 120 || head === 88\n return decodeNumericCharacterReference($2.slice(hex ? 2 : 1), hex ? 16 : 10)\n }\n return decodeNamedCharacterReference($2) || $0\n}\n","/**\n * @typedef {import('mdast').Break} Break\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('mdast').Code} Code\n * @typedef {import('mdast').Definition} Definition\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('mdast').Html} Html\n * @typedef {import('mdast').Image} Image\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Link} Link\n * @typedef {import('mdast').List} List\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Nodes} Nodes\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast').Parent} Parent\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n * @typedef {import('mdast').ReferenceType} ReferenceType\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('mdast').Text} Text\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n *\n * @typedef {import('micromark-util-types').Encoding} Encoding\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').ParseOptions} ParseOptions\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Value} Value\n *\n * @typedef {import('unist').Point} Point\n *\n * @typedef {import('../index.js').CompileData} CompileData\n */\n\n/**\n * @typedef {Omit & {type: 'fragment', children: Array}} Fragment\n */\n\n/**\n * @callback Transform\n * Extra transform, to change the AST afterwards.\n * @param {Root} tree\n * Tree to transform.\n * @returns {Root | null | undefined | void}\n * New tree or nothing (in which case the current tree is used).\n *\n * @callback Handle\n * Handle a token.\n * @param {CompileContext} this\n * Context.\n * @param {Token} token\n * Current token.\n * @returns {undefined | void}\n * Nothing.\n *\n * @typedef {Record} Handles\n * Token types mapping to handles\n *\n * @callback OnEnterError\n * Handle the case where the `right` token is open, but it is closed (by the\n * `left` token) or because we reached the end of the document.\n * @param {Omit} this\n * Context.\n * @param {Token | undefined} left\n * Left token.\n * @param {Token} right\n * Right token.\n * @returns {undefined}\n * Nothing.\n *\n * @callback OnExitError\n * Handle the case where the `right` token is open but it is closed by\n * exiting the `left` token.\n * @param {Omit} this\n * Context.\n * @param {Token} left\n * Left token.\n * @param {Token} right\n * Right token.\n * @returns {undefined}\n * Nothing.\n *\n * @typedef {[Token, OnEnterError | undefined]} TokenTuple\n * Open token on the stack, with an optional error handler for when\n * that token isn’t closed properly.\n */\n\n/**\n * @typedef Config\n * Configuration.\n *\n * We have our defaults, but extensions will add more.\n * @property {Array} canContainEols\n * Token types where line endings are used.\n * @property {Handles} enter\n * Opening handles.\n * @property {Handles} exit\n * Closing handles.\n * @property {Array} transforms\n * Tree transforms.\n *\n * @typedef {Partial} Extension\n * Change how markdown tokens from micromark are turned into mdast.\n *\n * @typedef CompileContext\n * mdast compiler context.\n * @property {Array} stack\n * Stack of nodes.\n * @property {Array} tokenStack\n * Stack of tokens.\n * @property {(this: CompileContext) => undefined} buffer\n * Capture some of the output data.\n * @property {(this: CompileContext) => string} resume\n * Stop capturing and access the output data.\n * @property {(this: CompileContext, node: Nodes, token: Token, onError?: OnEnterError) => undefined} enter\n * Enter a node.\n * @property {(this: CompileContext, token: Token, onError?: OnExitError) => undefined} exit\n * Exit a node.\n * @property {TokenizeContext['sliceSerialize']} sliceSerialize\n * Get the string value of a token.\n * @property {Config} config\n * Configuration.\n * @property {CompileData} data\n * Info passed around; key/value store.\n *\n * @typedef FromMarkdownOptions\n * Configuration for how to build mdast.\n * @property {Array> | null | undefined} [mdastExtensions]\n * Extensions for this utility to change how tokens are turned into a tree.\n *\n * @typedef {ParseOptions & FromMarkdownOptions} Options\n * Configuration.\n */\n\nimport {toString} from 'mdast-util-to-string'\nimport {parse, postprocess, preprocess} from 'micromark'\nimport {decodeNumericCharacterReference} from 'micromark-util-decode-numeric-character-reference'\nimport {decodeString} from 'micromark-util-decode-string'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\nimport {decodeNamedCharacterReference} from 'decode-named-character-reference'\nimport {stringifyPosition} from 'unist-util-stringify-position'\nconst own = {}.hasOwnProperty\n\n/**\n * Turn markdown into a syntax tree.\n *\n * @overload\n * @param {Value} value\n * @param {Encoding | null | undefined} [encoding]\n * @param {Options | null | undefined} [options]\n * @returns {Root}\n *\n * @overload\n * @param {Value} value\n * @param {Options | null | undefined} [options]\n * @returns {Root}\n *\n * @param {Value} value\n * Markdown to parse.\n * @param {Encoding | Options | null | undefined} [encoding]\n * Character encoding for when `value` is `Buffer`.\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {Root}\n * mdast tree.\n */\nexport function fromMarkdown(value, encoding, options) {\n if (typeof encoding !== 'string') {\n options = encoding\n encoding = undefined\n }\n return compiler(options)(\n postprocess(\n parse(options).document().write(preprocess()(value, encoding, true))\n )\n )\n}\n\n/**\n * Note this compiler only understand complete buffering, not streaming.\n *\n * @param {Options | null | undefined} [options]\n */\nfunction compiler(options) {\n /** @type {Config} */\n const config = {\n transforms: [],\n canContainEols: ['emphasis', 'fragment', 'heading', 'paragraph', 'strong'],\n enter: {\n autolink: opener(link),\n autolinkProtocol: onenterdata,\n autolinkEmail: onenterdata,\n atxHeading: opener(heading),\n blockQuote: opener(blockQuote),\n characterEscape: onenterdata,\n characterReference: onenterdata,\n codeFenced: opener(codeFlow),\n codeFencedFenceInfo: buffer,\n codeFencedFenceMeta: buffer,\n codeIndented: opener(codeFlow, buffer),\n codeText: opener(codeText, buffer),\n codeTextData: onenterdata,\n data: onenterdata,\n codeFlowValue: onenterdata,\n definition: opener(definition),\n definitionDestinationString: buffer,\n definitionLabelString: buffer,\n definitionTitleString: buffer,\n emphasis: opener(emphasis),\n hardBreakEscape: opener(hardBreak),\n hardBreakTrailing: opener(hardBreak),\n htmlFlow: opener(html, buffer),\n htmlFlowData: onenterdata,\n htmlText: opener(html, buffer),\n htmlTextData: onenterdata,\n image: opener(image),\n label: buffer,\n link: opener(link),\n listItem: opener(listItem),\n listItemValue: onenterlistitemvalue,\n listOrdered: opener(list, onenterlistordered),\n listUnordered: opener(list),\n paragraph: opener(paragraph),\n reference: onenterreference,\n referenceString: buffer,\n resourceDestinationString: buffer,\n resourceTitleString: buffer,\n setextHeading: opener(heading),\n strong: opener(strong),\n thematicBreak: opener(thematicBreak)\n },\n exit: {\n atxHeading: closer(),\n atxHeadingSequence: onexitatxheadingsequence,\n autolink: closer(),\n autolinkEmail: onexitautolinkemail,\n autolinkProtocol: onexitautolinkprotocol,\n blockQuote: closer(),\n characterEscapeValue: onexitdata,\n characterReferenceMarkerHexadecimal: onexitcharacterreferencemarker,\n characterReferenceMarkerNumeric: onexitcharacterreferencemarker,\n characterReferenceValue: onexitcharacterreferencevalue,\n codeFenced: closer(onexitcodefenced),\n codeFencedFence: onexitcodefencedfence,\n codeFencedFenceInfo: onexitcodefencedfenceinfo,\n codeFencedFenceMeta: onexitcodefencedfencemeta,\n codeFlowValue: onexitdata,\n codeIndented: closer(onexitcodeindented),\n codeText: closer(onexitcodetext),\n codeTextData: onexitdata,\n data: onexitdata,\n definition: closer(),\n definitionDestinationString: onexitdefinitiondestinationstring,\n definitionLabelString: onexitdefinitionlabelstring,\n definitionTitleString: onexitdefinitiontitlestring,\n emphasis: closer(),\n hardBreakEscape: closer(onexithardbreak),\n hardBreakTrailing: closer(onexithardbreak),\n htmlFlow: closer(onexithtmlflow),\n htmlFlowData: onexitdata,\n htmlText: closer(onexithtmltext),\n htmlTextData: onexitdata,\n image: closer(onexitimage),\n label: onexitlabel,\n labelText: onexitlabeltext,\n lineEnding: onexitlineending,\n link: closer(onexitlink),\n listItem: closer(),\n listOrdered: closer(),\n listUnordered: closer(),\n paragraph: closer(),\n referenceString: onexitreferencestring,\n resourceDestinationString: onexitresourcedestinationstring,\n resourceTitleString: onexitresourcetitlestring,\n resource: onexitresource,\n setextHeading: closer(onexitsetextheading),\n setextHeadingLineSequence: onexitsetextheadinglinesequence,\n setextHeadingText: onexitsetextheadingtext,\n strong: closer(),\n thematicBreak: closer()\n }\n }\n configure(config, (options || {}).mdastExtensions || [])\n\n /** @type {CompileData} */\n const data = {}\n return compile\n\n /**\n * Turn micromark events into an mdast tree.\n *\n * @param {Array} events\n * Events.\n * @returns {Root}\n * mdast tree.\n */\n function compile(events) {\n /** @type {Root} */\n let tree = {\n type: 'root',\n children: []\n }\n /** @type {Omit} */\n const context = {\n stack: [tree],\n tokenStack: [],\n config,\n enter,\n exit,\n buffer,\n resume,\n data\n }\n /** @type {Array} */\n const listStack = []\n let index = -1\n while (++index < events.length) {\n // We preprocess lists to add `listItem` tokens, and to infer whether\n // items the list itself are spread out.\n if (\n events[index][1].type === 'listOrdered' ||\n events[index][1].type === 'listUnordered'\n ) {\n if (events[index][0] === 'enter') {\n listStack.push(index)\n } else {\n const tail = listStack.pop()\n index = prepareList(events, tail, index)\n }\n }\n }\n index = -1\n while (++index < events.length) {\n const handler = config[events[index][0]]\n if (own.call(handler, events[index][1].type)) {\n handler[events[index][1].type].call(\n Object.assign(\n {\n sliceSerialize: events[index][2].sliceSerialize\n },\n context\n ),\n events[index][1]\n )\n }\n }\n\n // Handle tokens still being open.\n if (context.tokenStack.length > 0) {\n const tail = context.tokenStack[context.tokenStack.length - 1]\n const handler = tail[1] || defaultOnError\n handler.call(context, undefined, tail[0])\n }\n\n // Figure out `root` position.\n tree.position = {\n start: point(\n events.length > 0\n ? events[0][1].start\n : {\n line: 1,\n column: 1,\n offset: 0\n }\n ),\n end: point(\n events.length > 0\n ? events[events.length - 2][1].end\n : {\n line: 1,\n column: 1,\n offset: 0\n }\n )\n }\n\n // Call transforms.\n index = -1\n while (++index < config.transforms.length) {\n tree = config.transforms[index](tree) || tree\n }\n return tree\n }\n\n /**\n * @param {Array} events\n * @param {number} start\n * @param {number} length\n * @returns {number}\n */\n function prepareList(events, start, length) {\n let index = start - 1\n let containerBalance = -1\n let listSpread = false\n /** @type {Token | undefined} */\n let listItem\n /** @type {number | undefined} */\n let lineIndex\n /** @type {number | undefined} */\n let firstBlankLineIndex\n /** @type {boolean | undefined} */\n let atMarker\n while (++index <= length) {\n const event = events[index]\n switch (event[1].type) {\n case 'listUnordered':\n case 'listOrdered':\n case 'blockQuote': {\n if (event[0] === 'enter') {\n containerBalance++\n } else {\n containerBalance--\n }\n atMarker = undefined\n break\n }\n case 'lineEndingBlank': {\n if (event[0] === 'enter') {\n if (\n listItem &&\n !atMarker &&\n !containerBalance &&\n !firstBlankLineIndex\n ) {\n firstBlankLineIndex = index\n }\n atMarker = undefined\n }\n break\n }\n case 'linePrefix':\n case 'listItemValue':\n case 'listItemMarker':\n case 'listItemPrefix':\n case 'listItemPrefixWhitespace': {\n // Empty.\n\n break\n }\n default: {\n atMarker = undefined\n }\n }\n if (\n (!containerBalance &&\n event[0] === 'enter' &&\n event[1].type === 'listItemPrefix') ||\n (containerBalance === -1 &&\n event[0] === 'exit' &&\n (event[1].type === 'listUnordered' ||\n event[1].type === 'listOrdered'))\n ) {\n if (listItem) {\n let tailIndex = index\n lineIndex = undefined\n while (tailIndex--) {\n const tailEvent = events[tailIndex]\n if (\n tailEvent[1].type === 'lineEnding' ||\n tailEvent[1].type === 'lineEndingBlank'\n ) {\n if (tailEvent[0] === 'exit') continue\n if (lineIndex) {\n events[lineIndex][1].type = 'lineEndingBlank'\n listSpread = true\n }\n tailEvent[1].type = 'lineEnding'\n lineIndex = tailIndex\n } else if (\n tailEvent[1].type === 'linePrefix' ||\n tailEvent[1].type === 'blockQuotePrefix' ||\n tailEvent[1].type === 'blockQuotePrefixWhitespace' ||\n tailEvent[1].type === 'blockQuoteMarker' ||\n tailEvent[1].type === 'listItemIndent'\n ) {\n // Empty\n } else {\n break\n }\n }\n if (\n firstBlankLineIndex &&\n (!lineIndex || firstBlankLineIndex < lineIndex)\n ) {\n listItem._spread = true\n }\n\n // Fix position.\n listItem.end = Object.assign(\n {},\n lineIndex ? events[lineIndex][1].start : event[1].end\n )\n events.splice(lineIndex || index, 0, ['exit', listItem, event[2]])\n index++\n length++\n }\n\n // Create a new list item.\n if (event[1].type === 'listItemPrefix') {\n /** @type {Token} */\n const item = {\n type: 'listItem',\n _spread: false,\n start: Object.assign({}, event[1].start),\n // @ts-expect-error: we’ll add `end` in a second.\n end: undefined\n }\n listItem = item\n events.splice(index, 0, ['enter', item, event[2]])\n index++\n length++\n firstBlankLineIndex = undefined\n atMarker = true\n }\n }\n }\n events[start][1]._spread = listSpread\n return length\n }\n\n /**\n * Create an opener handle.\n *\n * @param {(token: Token) => Nodes} create\n * Create a node.\n * @param {Handle | undefined} [and]\n * Optional function to also run.\n * @returns {Handle}\n * Handle.\n */\n function opener(create, and) {\n return open\n\n /**\n * @this {CompileContext}\n * @param {Token} token\n * @returns {undefined}\n */\n function open(token) {\n enter.call(this, create(token), token)\n if (and) and.call(this, token)\n }\n }\n\n /**\n * @this {CompileContext}\n * @returns {undefined}\n */\n function buffer() {\n this.stack.push({\n type: 'fragment',\n children: []\n })\n }\n\n /**\n * @this {CompileContext}\n * Context.\n * @param {Nodes} node\n * Node to enter.\n * @param {Token} token\n * Corresponding token.\n * @param {OnEnterError | undefined} [errorHandler]\n * Handle the case where this token is open, but it is closed by something else.\n * @returns {undefined}\n * Nothing.\n */\n function enter(node, token, errorHandler) {\n const parent = this.stack[this.stack.length - 1]\n /** @type {Array} */\n const siblings = parent.children\n siblings.push(node)\n this.stack.push(node)\n this.tokenStack.push([token, errorHandler])\n node.position = {\n start: point(token.start),\n // @ts-expect-error: `end` will be patched later.\n end: undefined\n }\n }\n\n /**\n * Create a closer handle.\n *\n * @param {Handle | undefined} [and]\n * Optional function to also run.\n * @returns {Handle}\n * Handle.\n */\n function closer(and) {\n return close\n\n /**\n * @this {CompileContext}\n * @param {Token} token\n * @returns {undefined}\n */\n function close(token) {\n if (and) and.call(this, token)\n exit.call(this, token)\n }\n }\n\n /**\n * @this {CompileContext}\n * Context.\n * @param {Token} token\n * Corresponding token.\n * @param {OnExitError | undefined} [onExitError]\n * Handle the case where another token is open.\n * @returns {undefined}\n * Nothing.\n */\n function exit(token, onExitError) {\n const node = this.stack.pop()\n const open = this.tokenStack.pop()\n if (!open) {\n throw new Error(\n 'Cannot close `' +\n token.type +\n '` (' +\n stringifyPosition({\n start: token.start,\n end: token.end\n }) +\n '): it’s not open'\n )\n } else if (open[0].type !== token.type) {\n if (onExitError) {\n onExitError.call(this, token, open[0])\n } else {\n const handler = open[1] || defaultOnError\n handler.call(this, token, open[0])\n }\n }\n node.position.end = point(token.end)\n }\n\n /**\n * @this {CompileContext}\n * @returns {string}\n */\n function resume() {\n return toString(this.stack.pop())\n }\n\n //\n // Handlers.\n //\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onenterlistordered() {\n this.data.expectingFirstListItemValue = true\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onenterlistitemvalue(token) {\n if (this.data.expectingFirstListItemValue) {\n const ancestor = this.stack[this.stack.length - 2]\n ancestor.start = Number.parseInt(this.sliceSerialize(token), 10)\n this.data.expectingFirstListItemValue = undefined\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfenceinfo() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.lang = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfencemeta() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.meta = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefencedfence() {\n // Exit if this is the closing fence.\n if (this.data.flowCodeInside) return\n this.buffer()\n this.data.flowCodeInside = true\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodefenced() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data.replace(/^(\\r?\\n|\\r)|(\\r?\\n|\\r)$/g, '')\n this.data.flowCodeInside = undefined\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcodeindented() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data.replace(/(\\r?\\n|\\r)$/g, '')\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitionlabelstring(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.label = label\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitiontitlestring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.title = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitdefinitiondestinationstring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.url = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitatxheadingsequence(token) {\n const node = this.stack[this.stack.length - 1]\n if (!node.depth) {\n const depth = this.sliceSerialize(token).length\n node.depth = depth\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheadingtext() {\n this.data.setextHeadingSlurpLineEnding = true\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheadinglinesequence(token) {\n const node = this.stack[this.stack.length - 1]\n node.depth = this.sliceSerialize(token).codePointAt(0) === 61 ? 1 : 2\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitsetextheading() {\n this.data.setextHeadingSlurpLineEnding = undefined\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onenterdata(token) {\n const node = this.stack[this.stack.length - 1]\n /** @type {Array} */\n const siblings = node.children\n let tail = siblings[siblings.length - 1]\n if (!tail || tail.type !== 'text') {\n // Add a new text node.\n tail = text()\n tail.position = {\n start: point(token.start),\n // @ts-expect-error: we’ll add `end` later.\n end: undefined\n }\n siblings.push(tail)\n }\n this.stack.push(tail)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitdata(token) {\n const tail = this.stack.pop()\n tail.value += this.sliceSerialize(token)\n tail.position.end = point(token.end)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlineending(token) {\n const context = this.stack[this.stack.length - 1]\n // If we’re at a hard break, include the line ending in there.\n if (this.data.atHardBreak) {\n const tail = context.children[context.children.length - 1]\n tail.position.end = point(token.end)\n this.data.atHardBreak = undefined\n return\n }\n if (\n !this.data.setextHeadingSlurpLineEnding &&\n config.canContainEols.includes(context.type)\n ) {\n onenterdata.call(this, token)\n onexitdata.call(this, token)\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithardbreak() {\n this.data.atHardBreak = true\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithtmlflow() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexithtmltext() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitcodetext() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.value = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlink() {\n const node = this.stack[this.stack.length - 1]\n // Note: there are also `identifier` and `label` fields on this link node!\n // These are used / cleaned here.\n // To do: clean.\n if (this.data.inReference) {\n /** @type {ReferenceType} */\n const referenceType = this.data.referenceType || 'shortcut'\n node.type += 'Reference'\n // @ts-expect-error: mutate.\n node.referenceType = referenceType\n // @ts-expect-error: mutate.\n delete node.url\n delete node.title\n } else {\n // @ts-expect-error: mutate.\n delete node.identifier\n // @ts-expect-error: mutate.\n delete node.label\n }\n this.data.referenceType = undefined\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitimage() {\n const node = this.stack[this.stack.length - 1]\n // Note: there are also `identifier` and `label` fields on this link node!\n // These are used / cleaned here.\n // To do: clean.\n if (this.data.inReference) {\n /** @type {ReferenceType} */\n const referenceType = this.data.referenceType || 'shortcut'\n node.type += 'Reference'\n // @ts-expect-error: mutate.\n node.referenceType = referenceType\n // @ts-expect-error: mutate.\n delete node.url\n delete node.title\n } else {\n // @ts-expect-error: mutate.\n delete node.identifier\n // @ts-expect-error: mutate.\n delete node.label\n }\n this.data.referenceType = undefined\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlabeltext(token) {\n const string = this.sliceSerialize(token)\n const ancestor = this.stack[this.stack.length - 2]\n // @ts-expect-error: stash this on the node, as it might become a reference\n // later.\n ancestor.label = decodeString(string)\n // @ts-expect-error: same as above.\n ancestor.identifier = normalizeIdentifier(string).toLowerCase()\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitlabel() {\n const fragment = this.stack[this.stack.length - 1]\n const value = this.resume()\n const node = this.stack[this.stack.length - 1]\n // Assume a reference.\n this.data.inReference = true\n if (node.type === 'link') {\n /** @type {Array} */\n const children = fragment.children\n node.children = children\n } else {\n node.alt = value\n }\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresourcedestinationstring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.url = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresourcetitlestring() {\n const data = this.resume()\n const node = this.stack[this.stack.length - 1]\n node.title = data\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitresource() {\n this.data.inReference = undefined\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onenterreference() {\n this.data.referenceType = 'collapsed'\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitreferencestring(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n // @ts-expect-error: stash this on the node, as it might become a reference\n // later.\n node.label = label\n // @ts-expect-error: same as above.\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n this.data.referenceType = 'full'\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n\n function onexitcharacterreferencemarker(token) {\n this.data.characterReferenceType = token.type\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitcharacterreferencevalue(token) {\n const data = this.sliceSerialize(token)\n const type = this.data.characterReferenceType\n /** @type {string} */\n let value\n if (type) {\n value = decodeNumericCharacterReference(\n data,\n type === 'characterReferenceMarkerNumeric' ? 10 : 16\n )\n this.data.characterReferenceType = undefined\n } else {\n const result = decodeNamedCharacterReference(data)\n value = result\n }\n const tail = this.stack.pop()\n tail.value += value\n tail.position.end = point(token.end)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitautolinkprotocol(token) {\n onexitdata.call(this, token)\n const node = this.stack[this.stack.length - 1]\n node.url = this.sliceSerialize(token)\n }\n\n /**\n * @this {CompileContext}\n * @type {Handle}\n */\n function onexitautolinkemail(token) {\n onexitdata.call(this, token)\n const node = this.stack[this.stack.length - 1]\n node.url = 'mailto:' + this.sliceSerialize(token)\n }\n\n //\n // Creaters.\n //\n\n /** @returns {Blockquote} */\n function blockQuote() {\n return {\n type: 'blockquote',\n children: []\n }\n }\n\n /** @returns {Code} */\n function codeFlow() {\n return {\n type: 'code',\n lang: null,\n meta: null,\n value: ''\n }\n }\n\n /** @returns {InlineCode} */\n function codeText() {\n return {\n type: 'inlineCode',\n value: ''\n }\n }\n\n /** @returns {Definition} */\n function definition() {\n return {\n type: 'definition',\n identifier: '',\n label: null,\n title: null,\n url: ''\n }\n }\n\n /** @returns {Emphasis} */\n function emphasis() {\n return {\n type: 'emphasis',\n children: []\n }\n }\n\n /** @returns {Heading} */\n function heading() {\n return {\n type: 'heading',\n // @ts-expect-error `depth` will be set later.\n depth: 0,\n children: []\n }\n }\n\n /** @returns {Break} */\n function hardBreak() {\n return {\n type: 'break'\n }\n }\n\n /** @returns {Html} */\n function html() {\n return {\n type: 'html',\n value: ''\n }\n }\n\n /** @returns {Image} */\n function image() {\n return {\n type: 'image',\n title: null,\n url: '',\n alt: null\n }\n }\n\n /** @returns {Link} */\n function link() {\n return {\n type: 'link',\n title: null,\n url: '',\n children: []\n }\n }\n\n /**\n * @param {Token} token\n * @returns {List}\n */\n function list(token) {\n return {\n type: 'list',\n ordered: token.type === 'listOrdered',\n start: null,\n spread: token._spread,\n children: []\n }\n }\n\n /**\n * @param {Token} token\n * @returns {ListItem}\n */\n function listItem(token) {\n return {\n type: 'listItem',\n spread: token._spread,\n checked: null,\n children: []\n }\n }\n\n /** @returns {Paragraph} */\n function paragraph() {\n return {\n type: 'paragraph',\n children: []\n }\n }\n\n /** @returns {Strong} */\n function strong() {\n return {\n type: 'strong',\n children: []\n }\n }\n\n /** @returns {Text} */\n function text() {\n return {\n type: 'text',\n value: ''\n }\n }\n\n /** @returns {ThematicBreak} */\n function thematicBreak() {\n return {\n type: 'thematicBreak'\n }\n }\n}\n\n/**\n * Copy a point-like value.\n *\n * @param {Point} d\n * Point-like value.\n * @returns {Point}\n * unist point.\n */\nfunction point(d) {\n return {\n line: d.line,\n column: d.column,\n offset: d.offset\n }\n}\n\n/**\n * @param {Config} combined\n * @param {Array | Extension>} extensions\n * @returns {undefined}\n */\nfunction configure(combined, extensions) {\n let index = -1\n while (++index < extensions.length) {\n const value = extensions[index]\n if (Array.isArray(value)) {\n configure(combined, value)\n } else {\n extension(combined, value)\n }\n }\n}\n\n/**\n * @param {Config} combined\n * @param {Extension} extension\n * @returns {undefined}\n */\nfunction extension(combined, extension) {\n /** @type {keyof Extension} */\n let key\n for (key in extension) {\n if (own.call(extension, key)) {\n switch (key) {\n case 'canContainEols': {\n const right = extension[key]\n if (right) {\n combined[key].push(...right)\n }\n break\n }\n case 'transforms': {\n const right = extension[key]\n if (right) {\n combined[key].push(...right)\n }\n break\n }\n case 'enter':\n case 'exit': {\n const right = extension[key]\n if (right) {\n Object.assign(combined[key], right)\n }\n break\n }\n // No default\n }\n }\n }\n}\n\n/** @type {OnEnterError} */\nfunction defaultOnError(left, right) {\n if (left) {\n throw new Error(\n 'Cannot close `' +\n left.type +\n '` (' +\n stringifyPosition({\n start: left.start,\n end: left.end\n }) +\n '): a different token (`' +\n right.type +\n '`, ' +\n stringifyPosition({\n start: right.start,\n end: right.end\n }) +\n ') is open'\n )\n } else {\n throw new Error(\n 'Cannot close document, a token (`' +\n right.type +\n '`, ' +\n stringifyPosition({\n start: right.start,\n end: right.end\n }) +\n ') is still open'\n )\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n */\n\nimport {subtokenize} from 'micromark-util-subtokenize'\n\n/**\n * @param {Array} events\n * @returns {Array}\n */\nexport function postprocess(events) {\n while (!subtokenize(events)) {\n // Empty\n }\n return events\n}\n","/**\n * @typedef {import('micromark-util-types').Create} Create\n * @typedef {import('micromark-util-types').FullNormalizedExtension} FullNormalizedExtension\n * @typedef {import('micromark-util-types').InitialConstruct} InitialConstruct\n * @typedef {import('micromark-util-types').ParseContext} ParseContext\n * @typedef {import('micromark-util-types').ParseOptions} ParseOptions\n */\n\nimport {combineExtensions} from 'micromark-util-combine-extensions'\nimport {content} from './initialize/content.js'\nimport {document} from './initialize/document.js'\nimport {flow} from './initialize/flow.js'\nimport {string, text} from './initialize/text.js'\nimport {createTokenizer} from './create-tokenizer.js'\nimport * as defaultConstructs from './constructs.js'\n\n/**\n * @param {ParseOptions | null | undefined} [options]\n * @returns {ParseContext}\n */\nexport function parse(options) {\n const settings = options || {}\n const constructs =\n /** @type {FullNormalizedExtension} */\n combineExtensions([defaultConstructs, ...(settings.extensions || [])])\n\n /** @type {ParseContext} */\n const parser = {\n defined: [],\n lazy: {},\n constructs,\n content: create(content),\n document: create(document),\n flow: create(flow),\n string: create(string),\n text: create(text)\n }\n return parser\n\n /**\n * @param {InitialConstruct} initial\n */\n function create(initial) {\n return creator\n /** @type {Create} */\n function creator(from) {\n return createTokenizer(parser, initial, from)\n }\n }\n}\n","/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast-util-from-markdown').Options} FromMarkdownOptions\n * @typedef {import('unified').Parser} Parser\n * @typedef {import('unified').Processor} Processor\n */\n\n/**\n * @typedef {Omit} Options\n */\n\nimport {fromMarkdown} from 'mdast-util-from-markdown'\n\n/**\n * Aadd support for parsing from markdown.\n *\n * @param {Readonly | null | undefined} [options]\n * Configuration (optional).\n * @returns {undefined}\n * Nothing.\n */\nexport default function remarkParse(options) {\n /** @type {Processor} */\n // @ts-expect-error: TS in JSDoc generates wrong types if `this` is typed regularly.\n const self = this\n\n self.parser = parser\n\n /**\n * @type {Parser}\n */\n function parser(doc) {\n return fromMarkdown(doc, {\n ...self.data('settings'),\n ...options,\n // Note: these options are not in the readme.\n // The goal is for them to be set by plugins on `data` instead of being\n // passed by users.\n extensions: self.data('micromarkExtensions') || [],\n mdastExtensions: self.data('fromMarkdownExtensions') || []\n })\n }\n}\n","export const VOID = -1;\nexport const PRIMITIVE = 0;\nexport const ARRAY = 1;\nexport const OBJECT = 2;\nexport const DATE = 3;\nexport const REGEXP = 4;\nexport const MAP = 5;\nexport const SET = 6;\nexport const ERROR = 7;\nexport const BIGINT = 8;\n// export const SYMBOL = 9;\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst env = typeof self === 'object' ? self : globalThis;\n\nconst deserializer = ($, _) => {\n const as = (out, index) => {\n $.set(index, out);\n return out;\n };\n\n const unpair = index => {\n if ($.has(index))\n return $.get(index);\n\n const [type, value] = _[index];\n switch (type) {\n case PRIMITIVE:\n case VOID:\n return as(value, index);\n case ARRAY: {\n const arr = as([], index);\n for (const index of value)\n arr.push(unpair(index));\n return arr;\n }\n case OBJECT: {\n const object = as({}, index);\n for (const [key, index] of value)\n object[unpair(key)] = unpair(index);\n return object;\n }\n case DATE:\n return as(new Date(value), index);\n case REGEXP: {\n const {source, flags} = value;\n return as(new RegExp(source, flags), index);\n }\n case MAP: {\n const map = as(new Map, index);\n for (const [key, index] of value)\n map.set(unpair(key), unpair(index));\n return map;\n }\n case SET: {\n const set = as(new Set, index);\n for (const index of value)\n set.add(unpair(index));\n return set;\n }\n case ERROR: {\n const {name, message} = value;\n return as(new env[name](message), index);\n }\n case BIGINT:\n return as(BigInt(value), index);\n case 'BigInt':\n return as(Object(BigInt(value)), index);\n }\n return as(new env[type](value), index);\n };\n\n return unpair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns a deserialized value from a serialized array of Records.\n * @param {Record[]} serialized a previously serialized value.\n * @returns {any}\n */\nexport const deserialize = serialized => deserializer(new Map, serialized)(0);\n","import {\n VOID, PRIMITIVE,\n ARRAY, OBJECT,\n DATE, REGEXP, MAP, SET,\n ERROR, BIGINT\n} from './types.js';\n\nconst EMPTY = '';\n\nconst {toString} = {};\nconst {keys} = Object;\n\nconst typeOf = value => {\n const type = typeof value;\n if (type !== 'object' || !value)\n return [PRIMITIVE, type];\n\n const asString = toString.call(value).slice(8, -1);\n switch (asString) {\n case 'Array':\n return [ARRAY, EMPTY];\n case 'Object':\n return [OBJECT, EMPTY];\n case 'Date':\n return [DATE, EMPTY];\n case 'RegExp':\n return [REGEXP, EMPTY];\n case 'Map':\n return [MAP, EMPTY];\n case 'Set':\n return [SET, EMPTY];\n }\n\n if (asString.includes('Array'))\n return [ARRAY, asString];\n\n if (asString.includes('Error'))\n return [ERROR, asString];\n\n return [OBJECT, asString];\n};\n\nconst shouldSkip = ([TYPE, type]) => (\n TYPE === PRIMITIVE &&\n (type === 'function' || type === 'symbol')\n);\n\nconst serializer = (strict, json, $, _) => {\n\n const as = (out, value) => {\n const index = _.push(out) - 1;\n $.set(value, index);\n return index;\n };\n\n const pair = value => {\n if ($.has(value))\n return $.get(value);\n\n let [TYPE, type] = typeOf(value);\n switch (TYPE) {\n case PRIMITIVE: {\n let entry = value;\n switch (type) {\n case 'bigint':\n TYPE = BIGINT;\n entry = value.toString();\n break;\n case 'function':\n case 'symbol':\n if (strict)\n throw new TypeError('unable to serialize ' + type);\n entry = null;\n break;\n case 'undefined':\n return as([VOID], value);\n }\n return as([TYPE, entry], value);\n }\n case ARRAY: {\n if (type)\n return as([type, [...value]], value);\n \n const arr = [];\n const index = as([TYPE, arr], value);\n for (const entry of value)\n arr.push(pair(entry));\n return index;\n }\n case OBJECT: {\n if (type) {\n switch (type) {\n case 'BigInt':\n return as([type, value.toString()], value);\n case 'Boolean':\n case 'Number':\n case 'String':\n return as([type, value.valueOf()], value);\n }\n }\n\n if (json && ('toJSON' in value))\n return pair(value.toJSON());\n\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const key of keys(value)) {\n if (strict || !shouldSkip(typeOf(value[key])))\n entries.push([pair(key), pair(value[key])]);\n }\n return index;\n }\n case DATE:\n return as([TYPE, value.toISOString()], value);\n case REGEXP: {\n const {source, flags} = value;\n return as([TYPE, {source, flags}], value);\n }\n case MAP: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const [key, entry] of value) {\n if (strict || !(shouldSkip(typeOf(key)) || shouldSkip(typeOf(entry))))\n entries.push([pair(key), pair(entry)]);\n }\n return index;\n }\n case SET: {\n const entries = [];\n const index = as([TYPE, entries], value);\n for (const entry of value) {\n if (strict || !shouldSkip(typeOf(entry)))\n entries.push(pair(entry));\n }\n return index;\n }\n }\n\n const {message} = value;\n return as([TYPE, {name: type, message}], value);\n };\n\n return pair;\n};\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} value a serializable value.\n * @param {{json?: boolean, lossy?: boolean}?} options an object with a `lossy` or `json` property that,\n * if `true`, will not throw errors on incompatible types, and behave more\n * like JSON stringify would behave. Symbol and Function will be discarded.\n * @returns {Record[]}\n */\n export const serialize = (value, {json, lossy} = {}) => {\n const _ = [];\n return serializer(!(json || lossy), !!json, new Map, _)(value), _;\n};\n","import {deserialize} from './deserialize.js';\nimport {serialize} from './serialize.js';\n\n/**\n * @typedef {Array} Record a type representation\n */\n\n/**\n * Returns an array of serialized Records.\n * @param {any} any a serializable value.\n * @param {{transfer?: any[], json?: boolean, lossy?: boolean}?} options an object with\n * a transfer option (ignored when polyfilled) and/or non standard fields that\n * fallback to the polyfill if present.\n * @returns {Record[]}\n */\nexport default typeof structuredClone === \"function\" ?\n /* c8 ignore start */\n (any, options) => (\n options && ('json' in options || 'lossy' in options) ?\n deserialize(serialize(any, options)) : structuredClone(any)\n ) :\n (any, options) => deserialize(serialize(any, options));\n /* c8 ignore stop */\n\nexport {deserialize, serialize};\n","import {asciiAlphanumeric} from 'micromark-util-character'\nimport {encode} from 'micromark-util-encode'\n/**\n * Make a value safe for injection as a URL.\n *\n * This encodes unsafe characters with percent-encoding and skips already\n * encoded sequences (see `normalizeUri`).\n * Further unsafe characters are encoded as character references (see\n * `micromark-util-encode`).\n *\n * A regex of allowed protocols can be given, in which case the URL is\n * sanitized.\n * For example, `/^(https?|ircs?|mailto|xmpp)$/i` can be used for `a[href]`, or\n * `/^https?$/i` for `img[src]` (this is what `github.com` allows).\n * If the URL includes an unknown protocol (one not matched by `protocol`, such\n * as a dangerous example, `javascript:`), the value is ignored.\n *\n * @param {string | null | undefined} url\n * URI to sanitize.\n * @param {RegExp | null | undefined} [protocol]\n * Allowed protocols.\n * @returns {string}\n * Sanitized URI.\n */\nexport function sanitizeUri(url, protocol) {\n const value = encode(normalizeUri(url || ''))\n if (!protocol) {\n return value\n }\n const colon = value.indexOf(':')\n const questionMark = value.indexOf('?')\n const numberSign = value.indexOf('#')\n const slash = value.indexOf('/')\n if (\n // If there is no protocol, it’s relative.\n colon < 0 ||\n // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.\n (slash > -1 && colon > slash) ||\n (questionMark > -1 && colon > questionMark) ||\n (numberSign > -1 && colon > numberSign) ||\n // It is a protocol, it should be allowed.\n protocol.test(value.slice(0, colon))\n ) {\n return value\n }\n return ''\n}\n\n/**\n * Normalize a URL.\n *\n * Encode unsafe characters with percent-encoding, skipping already encoded\n * sequences.\n *\n * @param {string} value\n * URI to normalize.\n * @returns {string}\n * Normalized URI.\n */\nexport function normalizeUri(value) {\n /** @type {Array} */\n const result = []\n let index = -1\n let start = 0\n let skip = 0\n while (++index < value.length) {\n const code = value.charCodeAt(index)\n /** @type {string} */\n let replace = ''\n\n // A correct percent encoded value.\n if (\n code === 37 &&\n asciiAlphanumeric(value.charCodeAt(index + 1)) &&\n asciiAlphanumeric(value.charCodeAt(index + 2))\n ) {\n skip = 2\n }\n // ASCII.\n else if (code < 128) {\n if (!/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(code))) {\n replace = String.fromCharCode(code)\n }\n }\n // Astral.\n else if (code > 55_295 && code < 57_344) {\n const next = value.charCodeAt(index + 1)\n\n // A correct surrogate pair.\n if (code < 56_320 && next > 56_319 && next < 57_344) {\n replace = String.fromCharCode(code, next)\n skip = 1\n }\n // Lone surrogate.\n else {\n replace = '\\uFFFD'\n }\n }\n // Unicode.\n else {\n replace = String.fromCharCode(code)\n }\n if (replace) {\n result.push(value.slice(start, index), encodeURIComponent(replace))\n start = index + skip + 1\n replace = ''\n }\n if (skip) {\n index += skip\n skip = 0\n }\n }\n return result.join('') + value.slice(start)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('./state.js').State} State\n */\n\n/**\n * @callback FootnoteBackContentTemplate\n * Generate content for the backreference dynamically.\n *\n * For the following markdown:\n *\n * ```markdown\n * Alpha[^micromark], bravo[^micromark], and charlie[^remark].\n *\n * [^remark]: things about remark\n * [^micromark]: things about micromark\n * ```\n *\n * This function will be called with:\n *\n * * `0` and `0` for the backreference from `things about micromark` to\n * `alpha`, as it is the first used definition, and the first call to it\n * * `0` and `1` for the backreference from `things about micromark` to\n * `bravo`, as it is the first used definition, and the second call to it\n * * `1` and `0` for the backreference from `things about remark` to\n * `charlie`, as it is the second used definition\n * @param {number} referenceIndex\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {Array | ElementContent | string}\n * Content for the backreference when linking back from definitions to their\n * reference.\n *\n * @callback FootnoteBackLabelTemplate\n * Generate a back label dynamically.\n *\n * For the following markdown:\n *\n * ```markdown\n * Alpha[^micromark], bravo[^micromark], and charlie[^remark].\n *\n * [^remark]: things about remark\n * [^micromark]: things about micromark\n * ```\n *\n * This function will be called with:\n *\n * * `0` and `0` for the backreference from `things about micromark` to\n * `alpha`, as it is the first used definition, and the first call to it\n * * `0` and `1` for the backreference from `things about micromark` to\n * `bravo`, as it is the first used definition, and the second call to it\n * * `1` and `0` for the backreference from `things about remark` to\n * `charlie`, as it is the second used definition\n * @param {number} referenceIndex\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {string}\n * Back label to use when linking back from definitions to their reference.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Generate the default content that GitHub uses on backreferences.\n *\n * @param {number} _\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {Array}\n * Content.\n */\nexport function defaultFootnoteBackContent(_, rereferenceIndex) {\n /** @type {Array} */\n const result = [{type: 'text', value: '↩'}]\n\n if (rereferenceIndex > 1) {\n result.push({\n type: 'element',\n tagName: 'sup',\n properties: {},\n children: [{type: 'text', value: String(rereferenceIndex)}]\n })\n }\n\n return result\n}\n\n/**\n * Generate the default label that GitHub uses on backreferences.\n *\n * @param {number} referenceIndex\n * Index of the definition in the order that they are first referenced,\n * 0-indexed.\n * @param {number} rereferenceIndex\n * Index of calls to the same definition, 0-indexed.\n * @returns {string}\n * Label.\n */\nexport function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {\n return (\n 'Back to reference ' +\n (referenceIndex + 1) +\n (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')\n )\n}\n\n/**\n * Generate a hast footer for called footnote definitions.\n *\n * @param {State} state\n * Info passed around.\n * @returns {Element | undefined}\n * `section` element or `undefined`.\n */\n// eslint-disable-next-line complexity\nexport function footer(state) {\n const clobberPrefix =\n typeof state.options.clobberPrefix === 'string'\n ? state.options.clobberPrefix\n : 'user-content-'\n const footnoteBackContent =\n state.options.footnoteBackContent || defaultFootnoteBackContent\n const footnoteBackLabel =\n state.options.footnoteBackLabel || defaultFootnoteBackLabel\n const footnoteLabel = state.options.footnoteLabel || 'Footnotes'\n const footnoteLabelTagName = state.options.footnoteLabelTagName || 'h2'\n const footnoteLabelProperties = state.options.footnoteLabelProperties || {\n className: ['sr-only']\n }\n /** @type {Array} */\n const listItems = []\n let referenceIndex = -1\n\n while (++referenceIndex < state.footnoteOrder.length) {\n const def = state.footnoteById.get(state.footnoteOrder[referenceIndex])\n\n if (!def) {\n continue\n }\n\n const content = state.all(def)\n const id = String(def.identifier).toUpperCase()\n const safeId = normalizeUri(id.toLowerCase())\n let rereferenceIndex = 0\n /** @type {Array} */\n const backReferences = []\n const counts = state.footnoteCounts.get(id)\n\n // eslint-disable-next-line no-unmodified-loop-condition\n while (counts !== undefined && ++rereferenceIndex <= counts) {\n if (backReferences.length > 0) {\n backReferences.push({type: 'text', value: ' '})\n }\n\n let children =\n typeof footnoteBackContent === 'string'\n ? footnoteBackContent\n : footnoteBackContent(referenceIndex, rereferenceIndex)\n\n if (typeof children === 'string') {\n children = {type: 'text', value: children}\n }\n\n backReferences.push({\n type: 'element',\n tagName: 'a',\n properties: {\n href:\n '#' +\n clobberPrefix +\n 'fnref-' +\n safeId +\n (rereferenceIndex > 1 ? '-' + rereferenceIndex : ''),\n dataFootnoteBackref: '',\n ariaLabel:\n typeof footnoteBackLabel === 'string'\n ? footnoteBackLabel\n : footnoteBackLabel(referenceIndex, rereferenceIndex),\n className: ['data-footnote-backref']\n },\n children: Array.isArray(children) ? children : [children]\n })\n }\n\n const tail = content[content.length - 1]\n\n if (tail && tail.type === 'element' && tail.tagName === 'p') {\n const tailTail = tail.children[tail.children.length - 1]\n if (tailTail && tailTail.type === 'text') {\n tailTail.value += ' '\n } else {\n tail.children.push({type: 'text', value: ' '})\n }\n\n tail.children.push(...backReferences)\n } else {\n content.push(...backReferences)\n }\n\n /** @type {Element} */\n const listItem = {\n type: 'element',\n tagName: 'li',\n properties: {id: clobberPrefix + 'fn-' + safeId},\n children: state.wrap(content, true)\n }\n\n state.patch(def, listItem)\n\n listItems.push(listItem)\n }\n\n if (listItems.length === 0) {\n return\n }\n\n return {\n type: 'element',\n tagName: 'section',\n properties: {dataFootnotes: true, className: ['footnotes']},\n children: [\n {\n type: 'element',\n tagName: footnoteLabelTagName,\n properties: {\n ...structuredClone(footnoteLabelProperties),\n id: 'footnote-label'\n },\n children: [{type: 'text', value: footnoteLabel}]\n },\n {type: 'text', value: '\\n'},\n {\n type: 'element',\n tagName: 'ol',\n properties: {},\n children: state.wrap(listItems, true)\n },\n {type: 'text', value: '\\n'}\n ]\n }\n}\n","/**\n * @typedef {import('hast').ElementContent} ElementContent\n *\n * @typedef {import('mdast').Nodes} Nodes\n * @typedef {import('mdast').Reference} Reference\n *\n * @typedef {import('./state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Return the content of a reference without definition as plain text.\n *\n * @param {State} state\n * Info passed around.\n * @param {Extract} node\n * Reference node (image, link).\n * @returns {Array}\n * hast content.\n */\nexport function revert(state, node) {\n const subtype = node.referenceType\n let suffix = ']'\n\n if (subtype === 'collapsed') {\n suffix += '[]'\n } else if (subtype === 'full') {\n suffix += '[' + (node.label || node.identifier) + ']'\n }\n\n if (node.type === 'imageReference') {\n return [{type: 'text', value: '![' + node.alt + suffix}]\n }\n\n const contents = state.all(node)\n const head = contents[0]\n\n if (head && head.type === 'text') {\n head.value = '[' + head.value\n } else {\n contents.unshift({type: 'text', value: '['})\n }\n\n const tail = contents[contents.length - 1]\n\n if (tail && tail.type === 'text') {\n tail.value += suffix\n } else {\n contents.push({type: 'text', value: suffix})\n }\n\n return contents\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `listItem` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {ListItem} node\n * mdast node.\n * @param {Parents | undefined} parent\n * Parent of `node`.\n * @returns {Element}\n * hast node.\n */\nexport function listItem(state, node, parent) {\n const results = state.all(node)\n const loose = parent ? listLoose(parent) : listItemLoose(node)\n /** @type {Properties} */\n const properties = {}\n /** @type {Array} */\n const children = []\n\n if (typeof node.checked === 'boolean') {\n const head = results[0]\n /** @type {Element} */\n let paragraph\n\n if (head && head.type === 'element' && head.tagName === 'p') {\n paragraph = head\n } else {\n paragraph = {type: 'element', tagName: 'p', properties: {}, children: []}\n results.unshift(paragraph)\n }\n\n if (paragraph.children.length > 0) {\n paragraph.children.unshift({type: 'text', value: ' '})\n }\n\n paragraph.children.unshift({\n type: 'element',\n tagName: 'input',\n properties: {type: 'checkbox', checked: node.checked, disabled: true},\n children: []\n })\n\n // According to github-markdown-css, this class hides bullet.\n // See: .\n properties.className = ['task-list-item']\n }\n\n let index = -1\n\n while (++index < results.length) {\n const child = results[index]\n\n // Add eols before nodes, except if this is a loose, first paragraph.\n if (\n loose ||\n index !== 0 ||\n child.type !== 'element' ||\n child.tagName !== 'p'\n ) {\n children.push({type: 'text', value: '\\n'})\n }\n\n if (child.type === 'element' && child.tagName === 'p' && !loose) {\n children.push(...child.children)\n } else {\n children.push(child)\n }\n }\n\n const tail = results[results.length - 1]\n\n // Add a final eol.\n if (tail && (loose || tail.type !== 'element' || tail.tagName !== 'p')) {\n children.push({type: 'text', value: '\\n'})\n }\n\n /** @type {Element} */\n const result = {type: 'element', tagName: 'li', properties, children}\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * @param {Parents} node\n * @return {Boolean}\n */\nfunction listLoose(node) {\n let loose = false\n if (node.type === 'list') {\n loose = node.spread || false\n const children = node.children\n let index = -1\n\n while (!loose && ++index < children.length) {\n loose = listItemLoose(children[index])\n }\n }\n\n return loose\n}\n\n/**\n * @param {ListItem} node\n * @return {Boolean}\n */\nfunction listItemLoose(node) {\n const spread = node.spread\n\n return spread === null || spread === undefined\n ? node.children.length > 1\n : spread\n}\n","const tab = 9 /* `\\t` */\nconst space = 32 /* ` ` */\n\n/**\n * Remove initial and final spaces and tabs at the line breaks in `value`.\n * Does not trim initial and final spaces and tabs of the value itself.\n *\n * @param {string} value\n * Value to trim.\n * @returns {string}\n * Trimmed value.\n */\nexport function trimLines(value) {\n const source = String(value)\n const search = /\\r?\\n|\\r/g\n let match = search.exec(source)\n let last = 0\n /** @type {Array} */\n const lines = []\n\n while (match) {\n lines.push(\n trimLine(source.slice(last, match.index), last > 0, true),\n match[0]\n )\n\n last = match.index + match[0].length\n match = search.exec(source)\n }\n\n lines.push(trimLine(source.slice(last), last > 0, false))\n\n return lines.join('')\n}\n\n/**\n * @param {string} value\n * Line to trim.\n * @param {boolean} start\n * Whether to trim the start of the line.\n * @param {boolean} end\n * Whether to trim the end of the line.\n * @returns {string}\n * Trimmed line.\n */\nfunction trimLine(value, start, end) {\n let startIndex = 0\n let endIndex = value.length\n\n if (start) {\n let code = value.codePointAt(startIndex)\n\n while (code === tab || code === space) {\n startIndex++\n code = value.codePointAt(startIndex)\n }\n }\n\n if (end) {\n let code = value.codePointAt(endIndex - 1)\n\n while (code === tab || code === space) {\n endIndex--\n code = value.codePointAt(endIndex - 1)\n }\n }\n\n return endIndex > startIndex ? value.slice(startIndex, endIndex) : ''\n}\n","import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {strikethrough} from './delete.js'\nimport {emphasis} from './emphasis.js'\nimport {footnoteReference} from './footnote-reference.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {imageReference} from './image-reference.js'\nimport {image} from './image.js'\nimport {inlineCode} from './inline-code.js'\nimport {linkReference} from './link-reference.js'\nimport {link} from './link.js'\nimport {listItem} from './list-item.js'\nimport {list} from './list.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {table} from './table.js'\nimport {tableRow} from './table-row.js'\nimport {tableCell} from './table-cell.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default handlers for nodes.\n *\n * @satisfies {import('../state.js').Handlers}\n */\nexport const handlers = {\n blockquote,\n break: hardBreak,\n code,\n delete: strikethrough,\n emphasis,\n footnoteReference,\n heading,\n html,\n imageReference,\n image,\n inlineCode,\n linkReference,\n link,\n listItem,\n list,\n paragraph,\n // @ts-expect-error: root is different, but hard to type.\n root,\n strong,\n table,\n tableCell,\n tableRow,\n text,\n thematicBreak,\n toml: ignore,\n yaml: ignore,\n definition: ignore,\n footnoteDefinition: ignore\n}\n\n// Return nothing for nodes that are ignored.\nfunction ignore() {\n return undefined\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `blockquote` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Blockquote} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function blockquote(state, node) {\n /** @type {Element} */\n const result = {\n type: 'element',\n tagName: 'blockquote',\n properties: {},\n children: state.wrap(state.all(node), true)\n }\n state.patch(node, result)\n return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').Break} Break\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `break` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Break} node\n * mdast node.\n * @returns {Array}\n * hast element content.\n */\nexport function hardBreak(state, node) {\n /** @type {Element} */\n const result = {type: 'element', tagName: 'br', properties: {}, children: []}\n state.patch(node, result)\n return [state.applyData(node, result), {type: 'text', value: '\\n'}]\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Code} Code\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `code` node into hast.\n *\n * @param {State} state\n * Info passed around.\n * @param {Code} node\n * mdast node.\n * @returns {Element}\n * hast node.\n */\nexport function code(state, node) {\n const value = node.value ? node.value + '\\n' : ''\n /** @type {Properties} */\n const properties = {}\n\n if (node.lang) {\n properties.className = ['language-' + node.lang]\n }\n\n // Create ``.\n /** @type {Element} */\n let result = {\n type: 'element',\n tagName: 'code',\n properties,\n children: [{type: 'text', value}]\n }\n\n if (node.meta) {\n result.data = {meta: node.meta}\n }\n\n state.patch(node, result)\n result = state.applyData(node, result)\n\n // Create `
`.\n  result = {type: 'element', tagName: 'pre', properties: {}, children: [result]}\n  state.patch(node, result)\n  return result\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Delete} Delete\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `delete` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Delete} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function strikethrough(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'del',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `emphasis` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Emphasis} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function emphasis(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'em',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').FootnoteReference} FootnoteReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `footnoteReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {FootnoteReference} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function footnoteReference(state, node) {\n  const clobberPrefix =\n    typeof state.options.clobberPrefix === 'string'\n      ? state.options.clobberPrefix\n      : 'user-content-'\n  const id = String(node.identifier).toUpperCase()\n  const safeId = normalizeUri(id.toLowerCase())\n  const index = state.footnoteOrder.indexOf(id)\n  /** @type {number} */\n  let counter\n\n  let reuseCounter = state.footnoteCounts.get(id)\n\n  if (reuseCounter === undefined) {\n    reuseCounter = 0\n    state.footnoteOrder.push(id)\n    counter = state.footnoteOrder.length\n  } else {\n    counter = index + 1\n  }\n\n  reuseCounter += 1\n  state.footnoteCounts.set(id, reuseCounter)\n\n  /** @type {Element} */\n  const link = {\n    type: 'element',\n    tagName: 'a',\n    properties: {\n      href: '#' + clobberPrefix + 'fn-' + safeId,\n      id:\n        clobberPrefix +\n        'fnref-' +\n        safeId +\n        (reuseCounter > 1 ? '-' + reuseCounter : ''),\n      dataFootnoteRef: true,\n      ariaDescribedBy: ['footnote-label']\n    },\n    children: [{type: 'text', value: String(counter)}]\n  }\n  state.patch(node, link)\n\n  /** @type {Element} */\n  const sup = {\n    type: 'element',\n    tagName: 'sup',\n    properties: {},\n    children: [link]\n  }\n  state.patch(node, sup)\n  return state.applyData(node, sup)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `heading` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Heading} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function heading(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'h' + node.depth,\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Html} Html\n * @typedef {import('../state.js').State} State\n * @typedef {import('../../index.js').Raw} Raw\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `html` node into hast (`raw` node in dangerous mode, otherwise\n * nothing).\n *\n * @param {State} state\n *   Info passed around.\n * @param {Html} node\n *   mdast node.\n * @returns {Element | Raw | undefined}\n *   hast node.\n */\nexport function html(state, node) {\n  if (state.options.allowDangerousHtml) {\n    /** @type {Raw} */\n    const result = {type: 'raw', value: node.value}\n    state.patch(node, result)\n    return state.applyData(node, result)\n  }\n\n  return undefined\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').ImageReference} ImageReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `imageReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {ImageReference} node\n *   mdast node.\n * @returns {Array | ElementContent}\n *   hast node.\n */\nexport function imageReference(state, node) {\n  const id = String(node.identifier).toUpperCase()\n  const def = state.definitionById.get(id)\n\n  if (!def) {\n    return revert(state, node)\n  }\n\n  /** @type {Properties} */\n  const properties = {src: normalizeUri(def.url || ''), alt: node.alt}\n\n  if (def.title !== null && def.title !== undefined) {\n    properties.title = def.title\n  }\n\n  /** @type {Element} */\n  const result = {type: 'element', tagName: 'img', properties, children: []}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Image} Image\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `image` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Image} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function image(state, node) {\n  /** @type {Properties} */\n  const properties = {src: normalizeUri(node.url)}\n\n  if (node.alt !== null && node.alt !== undefined) {\n    properties.alt = node.alt\n  }\n\n  if (node.title !== null && node.title !== undefined) {\n    properties.title = node.title\n  }\n\n  /** @type {Element} */\n  const result = {type: 'element', tagName: 'img', properties, children: []}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Text} Text\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `inlineCode` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {InlineCode} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function inlineCode(state, node) {\n  /** @type {Text} */\n  const text = {type: 'text', value: node.value.replace(/\\r?\\n|\\r/g, ' ')}\n  state.patch(node, text)\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'code',\n    properties: {},\n    children: [text]\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').LinkReference} LinkReference\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\nimport {revert} from '../revert.js'\n\n/**\n * Turn an mdast `linkReference` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {LinkReference} node\n *   mdast node.\n * @returns {Array | ElementContent}\n *   hast node.\n */\nexport function linkReference(state, node) {\n  const id = String(node.identifier).toUpperCase()\n  const def = state.definitionById.get(id)\n\n  if (!def) {\n    return revert(state, node)\n  }\n\n  /** @type {Properties} */\n  const properties = {href: normalizeUri(def.url || '')}\n\n  if (def.title !== null && def.title !== undefined) {\n    properties.title = def.title\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'a',\n    properties,\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Link} Link\n * @typedef {import('../state.js').State} State\n */\n\nimport {normalizeUri} from 'micromark-util-sanitize-uri'\n\n/**\n * Turn an mdast `link` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Link} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function link(state, node) {\n  /** @type {Properties} */\n  const properties = {href: normalizeUri(node.url)}\n\n  if (node.title !== null && node.title !== undefined) {\n    properties.title = node.title\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'a',\n    properties,\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').List} List\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `list` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {List} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function list(state, node) {\n  /** @type {Properties} */\n  const properties = {}\n  const results = state.all(node)\n  let index = -1\n\n  if (typeof node.start === 'number' && node.start !== 1) {\n    properties.start = node.start\n  }\n\n  // Like GitHub, add a class for custom styling.\n  while (++index < results.length) {\n    const child = results[index]\n\n    if (\n      child.type === 'element' &&\n      child.tagName === 'li' &&\n      child.properties &&\n      Array.isArray(child.properties.className) &&\n      child.properties.className.includes('task-list-item')\n    ) {\n      properties.className = ['contains-task-list']\n      break\n    }\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: node.ordered ? 'ol' : 'ul',\n    properties,\n    children: state.wrap(results, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `paragraph` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Paragraph} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function paragraph(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'p',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Parents} HastParents\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `root` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastRoot} node\n *   mdast node.\n * @returns {HastParents}\n *   hast node.\n */\nexport function root(state, node) {\n  /** @type {HastRoot} */\n  const result = {type: 'root', children: state.wrap(state.all(node))}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `strong` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Strong} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function strong(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'strong',\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').Table} Table\n * @typedef {import('../state.js').State} State\n */\n\nimport {pointEnd, pointStart} from 'unist-util-position'\n\n/**\n * Turn an mdast `table` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {Table} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function table(state, node) {\n  const rows = state.all(node)\n  const firstRow = rows.shift()\n  /** @type {Array} */\n  const tableContent = []\n\n  if (firstRow) {\n    /** @type {Element} */\n    const head = {\n      type: 'element',\n      tagName: 'thead',\n      properties: {},\n      children: state.wrap([firstRow], true)\n    }\n    state.patch(node.children[0], head)\n    tableContent.push(head)\n  }\n\n  if (rows.length > 0) {\n    /** @type {Element} */\n    const body = {\n      type: 'element',\n      tagName: 'tbody',\n      properties: {},\n      children: state.wrap(rows, true)\n    }\n\n    const start = pointStart(node.children[1])\n    const end = pointEnd(node.children[node.children.length - 1])\n    if (start && end) body.position = {start, end}\n    tableContent.push(body)\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'table',\n    properties: {},\n    children: state.wrap(tableContent, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `tableCell` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {TableCell} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function tableCell(state, node) {\n  // Note: this function is normally not called: see `table-row` for how rows\n  // and their cells are compiled.\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'td', // Assume body cell.\n    properties: {},\n    children: state.all(node)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Properties} Properties\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').TableRow} TableRow\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `tableRow` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {TableRow} node\n *   mdast node.\n * @param {Parents | undefined} parent\n *   Parent of `node`.\n * @returns {Element}\n *   hast node.\n */\nexport function tableRow(state, node, parent) {\n  const siblings = parent ? parent.children : undefined\n  // Generate a body row when without parent.\n  const rowIndex = siblings ? siblings.indexOf(node) : 1\n  const tagName = rowIndex === 0 ? 'th' : 'td'\n  // To do: option to use `style`?\n  const align = parent && parent.type === 'table' ? parent.align : undefined\n  const length = align ? align.length : node.children.length\n  let cellIndex = -1\n  /** @type {Array} */\n  const cells = []\n\n  while (++cellIndex < length) {\n    // Note: can also be undefined.\n    const cell = node.children[cellIndex]\n    /** @type {Properties} */\n    const properties = {}\n    const alignValue = align ? align[cellIndex] : undefined\n\n    if (alignValue) {\n      properties.align = alignValue\n    }\n\n    /** @type {Element} */\n    let result = {type: 'element', tagName, properties, children: []}\n\n    if (cell) {\n      result.children = state.all(cell)\n      state.patch(cell, result)\n      result = state.applyData(cell, result)\n    }\n\n    cells.push(result)\n  }\n\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'tr',\n    properties: {},\n    children: state.wrap(cells, true)\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').Text} HastText\n * @typedef {import('mdast').Text} MdastText\n * @typedef {import('../state.js').State} State\n */\n\nimport {trimLines} from 'trim-lines'\n\n/**\n * Turn an mdast `text` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {MdastText} node\n *   mdast node.\n * @returns {HastElement | HastText}\n *   hast node.\n */\nexport function text(state, node) {\n  /** @type {HastText} */\n  const result = {type: 'text', value: trimLines(String(node.value))}\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('../state.js').State} State\n */\n\n// Make VS Code show references to the above types.\n''\n\n/**\n * Turn an mdast `thematicBreak` node into hast.\n *\n * @param {State} state\n *   Info passed around.\n * @param {ThematicBreak} node\n *   mdast node.\n * @returns {Element}\n *   hast node.\n */\nexport function thematicBreak(state, node) {\n  /** @type {Element} */\n  const result = {\n    type: 'element',\n    tagName: 'hr',\n    properties: {},\n    children: []\n  }\n  state.patch(node, result)\n  return state.applyData(node, result)\n}\n","/**\n * @typedef {import('hast').Element} HastElement\n * @typedef {import('hast').ElementContent} HastElementContent\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('hast').Properties} HastProperties\n * @typedef {import('hast').RootContent} HastRootContent\n * @typedef {import('hast').Text} HastText\n *\n * @typedef {import('mdast').Definition} MdastDefinition\n * @typedef {import('mdast').FootnoteDefinition} MdastFootnoteDefinition\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('mdast').Parents} MdastParents\n *\n * @typedef {import('./footer.js').FootnoteBackContentTemplate} FootnoteBackContentTemplate\n * @typedef {import('./footer.js').FootnoteBackLabelTemplate} FootnoteBackLabelTemplate\n */\n\n/**\n * @callback Handler\n *   Handle a node.\n * @param {State} state\n *   Info passed around.\n * @param {any} node\n *   mdast node to handle.\n * @param {MdastParents | undefined} parent\n *   Parent of `node`.\n * @returns {Array | HastElementContent | undefined}\n *   hast node.\n *\n * @typedef {Partial>} Handlers\n *   Handle nodes.\n *\n * @typedef Options\n *   Configuration (optional).\n * @property {boolean | null | undefined} [allowDangerousHtml=false]\n *   Whether to persist raw HTML in markdown in the hast tree (default:\n *   `false`).\n * @property {string | null | undefined} [clobberPrefix='user-content-']\n *   Prefix to use before the `id` property on footnotes to prevent them from\n *   *clobbering* (default: `'user-content-'`).\n *\n *   Pass `''` for trusted markdown and when you are careful with\n *   polyfilling.\n *   You could pass a different prefix.\n *\n *   DOM clobbering is this:\n *\n *   ```html\n *   

\n * \n * ```\n *\n * The above example shows that elements are made available by browsers, by\n * their ID, on the `window` object.\n * This is a security risk because you might be expecting some other variable\n * at that place.\n * It can also break polyfills.\n * Using a prefix solves these problems.\n * @property {FootnoteBackContentTemplate | string | null | undefined} [footnoteBackContent]\n * Content of the backreference back to references (default: `defaultFootnoteBackContent`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackContent(_, rereferenceIndex) {\n * const result = [{type: 'text', value: '↩'}]\n *\n * if (rereferenceIndex > 1) {\n * result.push({\n * type: 'element',\n * tagName: 'sup',\n * properties: {},\n * children: [{type: 'text', value: String(rereferenceIndex)}]\n * })\n * }\n *\n * return result\n * }\n * ```\n *\n * This content is used in the `a` element of each backreference (the `↩`\n * links).\n * @property {FootnoteBackLabelTemplate | string | null | undefined} [footnoteBackLabel]\n * Label to describe the backreference back to references (default:\n * `defaultFootnoteBackLabel`).\n *\n * The default value is:\n *\n * ```js\n * function defaultFootnoteBackLabel(referenceIndex, rereferenceIndex) {\n * return (\n * 'Back to reference ' +\n * (referenceIndex + 1) +\n * (rereferenceIndex > 1 ? '-' + rereferenceIndex : '')\n * )\n * }\n * ```\n *\n * Change it when the markdown is not in English.\n *\n * This label is used in the `ariaLabel` property on each backreference\n * (the `↩` links).\n * It affects users of assistive technology.\n * @property {string | null | undefined} [footnoteLabel='Footnotes']\n * Textual label to use for the footnotes section (default: `'Footnotes'`).\n *\n * Change it when the markdown is not in English.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {HastProperties | null | undefined} [footnoteLabelProperties={className: ['sr-only']}]\n * Properties to use on the footnote label (default: `{className:\n * ['sr-only']}`).\n *\n * Change it to show the label and add other properties.\n *\n * This label is typically hidden visually (assuming an `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass an empty string.\n * You can also add different properties.\n *\n * > 👉 **Note**: `id: 'footnote-label'` is always added, because footnote\n * > calls use it with `aria-describedby` to provide an accessible label.\n * @property {string | null | undefined} [footnoteLabelTagName='h2']\n * HTML tag name to use for the footnote label element (default: `'h2'`).\n *\n * Change it to match your document structure.\n *\n * This label is typically hidden visually (assuming a `sr-only` CSS class\n * is defined that does that) and so affects screen readers only.\n * If you do have such a class, but want to show this section to everyone,\n * pass different properties with the `footnoteLabelProperties` option.\n * @property {Handlers | null | undefined} [handlers]\n * Extra handlers for nodes (optional).\n * @property {Array | null | undefined} [passThrough]\n * List of custom mdast node types to pass through (keep) in hast (note that\n * the node itself is passed, but eventual children are transformed)\n * (optional).\n * @property {Handler | null | undefined} [unknownHandler]\n * Handler for all unknown nodes (optional).\n *\n * @typedef State\n * Info passed around.\n * @property {(node: MdastNodes) => Array} all\n * Transform the children of an mdast parent to hast.\n * @property {(from: MdastNodes, to: Type) => HastElement | Type} applyData\n * Honor the `data` of `from`, and generate an element instead of `node`.\n * @property {Map} definitionById\n * Definitions by their identifier.\n * @property {Map} footnoteById\n * Footnote definitions by their identifier.\n * @property {Map} footnoteCounts\n * Counts for how often the same footnote was called.\n * @property {Array} footnoteOrder\n * Identifiers of order when footnote calls first appear in tree order.\n * @property {Handlers} handlers\n * Applied handlers.\n * @property {(node: MdastNodes, parent: MdastParents | undefined) => Array | HastElementContent | undefined} one\n * Transform an mdast node to hast.\n * @property {Options} options\n * Configuration.\n * @property {(from: MdastNodes, node: HastNodes) => undefined} patch\n * Copy a node’s positional info.\n * @property {(nodes: Array, loose?: boolean | undefined) => Array} wrap\n * Wrap `nodes` with line endings between each node, adds initial/final line endings when `loose`.\n */\n\nimport structuredClone from '@ungap/structured-clone'\nimport {visit} from 'unist-util-visit'\nimport {position} from 'unist-util-position'\nimport {handlers as defaultHandlers} from './handlers/index.js'\n\nconst own = {}.hasOwnProperty\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Create `state` from an mdast tree.\n *\n * @param {MdastNodes} tree\n * mdast node to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {State}\n * `state` function.\n */\nexport function createState(tree, options) {\n const settings = options || emptyOptions\n /** @type {Map} */\n const definitionById = new Map()\n /** @type {Map} */\n const footnoteById = new Map()\n /** @type {Map} */\n const footnoteCounts = new Map()\n /** @type {Handlers} */\n // @ts-expect-error: the root handler returns a root.\n // Hard to type.\n const handlers = {...defaultHandlers, ...settings.handlers}\n\n /** @type {State} */\n const state = {\n all,\n applyData,\n definitionById,\n footnoteById,\n footnoteCounts,\n footnoteOrder: [],\n handlers,\n one,\n options: settings,\n patch,\n wrap\n }\n\n visit(tree, function (node) {\n if (node.type === 'definition' || node.type === 'footnoteDefinition') {\n const map = node.type === 'definition' ? definitionById : footnoteById\n const id = String(node.identifier).toUpperCase()\n\n // Mimick CM behavior of link definitions.\n // See: .\n if (!map.has(id)) {\n // @ts-expect-error: node type matches map.\n map.set(id, node)\n }\n }\n })\n\n return state\n\n /**\n * Transform an mdast node into a hast node.\n *\n * @param {MdastNodes} node\n * mdast node.\n * @param {MdastParents | undefined} [parent]\n * Parent of `node`.\n * @returns {Array | HastElementContent | undefined}\n * Resulting hast node.\n */\n function one(node, parent) {\n const type = node.type\n const handle = state.handlers[type]\n\n if (own.call(state.handlers, type) && handle) {\n return handle(state, node, parent)\n }\n\n if (state.options.passThrough && state.options.passThrough.includes(type)) {\n if ('children' in node) {\n const {children, ...shallow} = node\n const result = structuredClone(shallow)\n // @ts-expect-error: TS doesn’t understand…\n result.children = state.all(node)\n // @ts-expect-error: TS doesn’t understand…\n return result\n }\n\n // @ts-expect-error: it’s custom.\n return structuredClone(node)\n }\n\n const unknown = state.options.unknownHandler || defaultUnknownHandler\n\n return unknown(state, node, parent)\n }\n\n /**\n * Transform the children of an mdast node into hast nodes.\n *\n * @param {MdastNodes} parent\n * mdast node to compile\n * @returns {Array}\n * Resulting hast nodes.\n */\n function all(parent) {\n /** @type {Array} */\n const values = []\n\n if ('children' in parent) {\n const nodes = parent.children\n let index = -1\n while (++index < nodes.length) {\n const result = state.one(nodes[index], parent)\n\n // To do: see if we van clean this? Can we merge texts?\n if (result) {\n if (index && nodes[index - 1].type === 'break') {\n if (!Array.isArray(result) && result.type === 'text') {\n result.value = trimMarkdownSpaceStart(result.value)\n }\n\n if (!Array.isArray(result) && result.type === 'element') {\n const head = result.children[0]\n\n if (head && head.type === 'text') {\n head.value = trimMarkdownSpaceStart(head.value)\n }\n }\n }\n\n if (Array.isArray(result)) {\n values.push(...result)\n } else {\n values.push(result)\n }\n }\n }\n }\n\n return values\n }\n}\n\n/**\n * Copy a node’s positional info.\n *\n * @param {MdastNodes} from\n * mdast node to copy from.\n * @param {HastNodes} to\n * hast node to copy into.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n if (from.position) to.position = position(from)\n}\n\n/**\n * Honor the `data` of `from` and maybe generate an element instead of `to`.\n *\n * @template {HastNodes} Type\n * Node type.\n * @param {MdastNodes} from\n * mdast node to use data from.\n * @param {Type} to\n * hast node to change.\n * @returns {HastElement | Type}\n * Nothing.\n */\nfunction applyData(from, to) {\n /** @type {HastElement | Type} */\n let result = to\n\n // Handle `data.hName`, `data.hProperties, `data.hChildren`.\n if (from && from.data) {\n const hName = from.data.hName\n const hChildren = from.data.hChildren\n const hProperties = from.data.hProperties\n\n if (typeof hName === 'string') {\n // Transforming the node resulted in an element with a different name\n // than wanted:\n if (result.type === 'element') {\n result.tagName = hName\n }\n // Transforming the node resulted in a non-element, which happens for\n // raw, text, and root nodes (unless custom handlers are passed).\n // The intent of `hName` is to create an element, but likely also to keep\n // the content around (otherwise: pass `hChildren`).\n else {\n /** @type {Array} */\n // @ts-expect-error: assume no doctypes in `root`.\n const children = 'children' in result ? result.children : [result]\n result = {type: 'element', tagName: hName, properties: {}, children}\n }\n }\n\n if (result.type === 'element' && hProperties) {\n Object.assign(result.properties, structuredClone(hProperties))\n }\n\n if (\n 'children' in result &&\n result.children &&\n hChildren !== null &&\n hChildren !== undefined\n ) {\n result.children = hChildren\n }\n }\n\n return result\n}\n\n/**\n * Transform an unknown node.\n *\n * @param {State} state\n * Info passed around.\n * @param {MdastNodes} node\n * Unknown mdast node.\n * @returns {HastElement | HastText}\n * Resulting hast node.\n */\nfunction defaultUnknownHandler(state, node) {\n const data = node.data || {}\n /** @type {HastElement | HastText} */\n const result =\n 'value' in node &&\n !(own.call(data, 'hProperties') || own.call(data, 'hChildren'))\n ? {type: 'text', value: node.value}\n : {\n type: 'element',\n tagName: 'div',\n properties: {},\n children: state.all(node)\n }\n\n state.patch(node, result)\n return state.applyData(node, result)\n}\n\n/**\n * Wrap `nodes` with line endings between each node.\n *\n * @template {HastRootContent} Type\n * Node type.\n * @param {Array} nodes\n * List of nodes to wrap.\n * @param {boolean | undefined} [loose=false]\n * Whether to add line endings at start and end (default: `false`).\n * @returns {Array}\n * Wrapped nodes.\n */\nexport function wrap(nodes, loose) {\n /** @type {Array} */\n const result = []\n let index = -1\n\n if (loose) {\n result.push({type: 'text', value: '\\n'})\n }\n\n while (++index < nodes.length) {\n if (index) result.push({type: 'text', value: '\\n'})\n result.push(nodes[index])\n }\n\n if (loose && nodes.length > 0) {\n result.push({type: 'text', value: '\\n'})\n }\n\n return result\n}\n\n/**\n * Trim spaces and tabs at the start of `value`.\n *\n * @param {string} value\n * Value to trim.\n * @returns {string}\n * Result.\n */\nfunction trimMarkdownSpaceStart(value) {\n let index = 0\n let code = value.charCodeAt(index)\n\n while (code === 9 || code === 32) {\n index++\n code = value.charCodeAt(index)\n }\n\n return value.slice(index)\n}\n","/**\n * @typedef {import('hast').Nodes} HastNodes\n * @typedef {import('mdast').Nodes} MdastNodes\n * @typedef {import('./state.js').Options} Options\n */\n\nimport {ok as assert} from 'devlop'\nimport {footer} from './footer.js'\nimport {createState} from './state.js'\n\n/**\n * Transform mdast to hast.\n *\n * ##### Notes\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most utilities ignore `raw` nodes but two notable ones don’t:\n *\n * * `hast-util-to-html` also has an option `allowDangerousHtml` which will\n * output the raw HTML.\n * This is typically discouraged as noted by the option name but is useful\n * if you completely trust authors\n * * `hast-util-raw` can handle the raw embedded HTML strings by parsing them\n * into standard hast nodes (`element`, `text`, etc).\n * This is a heavy task as it needs a full HTML parser, but it is the only\n * way to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `mdast-util-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n *

\n * \n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * Example: headings (DOM clobbering) in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @param {MdastNodes} tree\n * mdast tree.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {HastNodes}\n * hast tree.\n */\nexport function toHast(tree, options) {\n const state = createState(tree, options)\n const node = state.one(tree, undefined)\n const foot = footer(state)\n /** @type {HastNodes} */\n const result = Array.isArray(node)\n ? {type: 'root', children: node}\n : node || {type: 'root', children: []}\n\n if (foot) {\n // If there’s a footer, there were definitions, meaning block\n // content.\n // So `result` is a parent node.\n assert('children' in result)\n result.children.push({type: 'text', value: '\\n'}, foot)\n }\n\n return result\n}\n","// Include `data` fields in mdast and `raw` nodes in hast.\n/// \n\n/**\n * @typedef {import('hast').Root} HastRoot\n * @typedef {import('mdast').Root} MdastRoot\n * @typedef {import('mdast-util-to-hast').Options} Options\n * @typedef {import('unified').Processor} Processor\n * @typedef {import('vfile').VFile} VFile\n */\n\n/**\n * @callback TransformBridge\n * Bridge-mode.\n *\n * Runs the destination with the new hast tree.\n * Discards result.\n * @param {MdastRoot} tree\n * Tree.\n * @param {VFile} file\n * File.\n * @returns {Promise}\n * Nothing.\n *\n * @callback TransformMutate\n * Mutate-mode.\n *\n * Further transformers run on the hast tree.\n * @param {MdastRoot} tree\n * Tree.\n * @param {VFile} file\n * File.\n * @returns {HastRoot}\n * Tree (hast).\n */\n\nimport {toHast} from 'mdast-util-to-hast'\n\n/**\n * Turn markdown into HTML.\n *\n * ##### Notes\n *\n * ###### Signature\n *\n * * if a processor is given, runs the (rehype) plugins used on it with a\n * hast tree, then discards the result (*bridge mode*)\n * * otherwise, returns a hast tree, the plugins used after `remarkRehype`\n * are rehype plugins (*mutate mode*)\n *\n * > 👉 **Note**: It’s highly unlikely that you want to pass a `processor`.\n *\n * ###### HTML\n *\n * Raw HTML is available in mdast as `html` nodes and can be embedded in hast\n * as semistandard `raw` nodes.\n * Most plugins ignore `raw` nodes but two notable ones don’t:\n *\n * * `rehype-stringify` also has an option `allowDangerousHtml` which will\n * output the raw HTML.\n * This is typically discouraged as noted by the option name but is useful if\n * you completely trust authors\n * * `rehype-raw` can handle the raw embedded HTML strings by parsing them\n * into standard hast nodes (`element`, `text`, etc).\n * This is a heavy task as it needs a full HTML parser, but it is the only way\n * to support untrusted content\n *\n * ###### Footnotes\n *\n * Many options supported here relate to footnotes.\n * Footnotes are not specified by CommonMark, which we follow by default.\n * They are supported by GitHub, so footnotes can be enabled in markdown with\n * `remark-gfm`.\n *\n * The options `footnoteBackLabel` and `footnoteLabel` define natural language\n * that explains footnotes, which is hidden for sighted users but shown to\n * assistive technology.\n * When your page is not in English, you must define translated values.\n *\n * Back references use ARIA attributes, but the section label itself uses a\n * heading that is hidden with an `sr-only` class.\n * To show it to sighted users, define different attributes in\n * `footnoteLabelProperties`.\n *\n * ###### Clobbering\n *\n * Footnotes introduces a problem, as it links footnote calls to footnote\n * definitions on the page through `id` attributes generated from user content,\n * which results in DOM clobbering.\n *\n * DOM clobbering is this:\n *\n * ```html\n *

\n * \n * ```\n *\n * Elements by their ID are made available by browsers on the `window` object,\n * which is a security risk.\n * Using a prefix solves this problem.\n *\n * More information on how to handle clobbering and the prefix is explained in\n * *Example: headings (DOM clobbering)* in `rehype-sanitize`.\n *\n * ###### Unknown nodes\n *\n * Unknown nodes are nodes with a type that isn’t in `handlers` or `passThrough`.\n * The default behavior for unknown nodes is:\n *\n * * when the node has a `value` (and doesn’t have `data.hName`,\n * `data.hProperties`, or `data.hChildren`, see later), create a hast `text`\n * node\n * * otherwise, create a `
` element (which could be changed with\n * `data.hName`), with its children mapped from mdast to hast as well\n *\n * This behavior can be changed by passing an `unknownHandler`.\n *\n * @overload\n * @param {Processor} processor\n * @param {Readonly | null | undefined} [options]\n * @returns {TransformBridge}\n *\n * @overload\n * @param {Readonly | null | undefined} [options]\n * @returns {TransformMutate}\n *\n * @param {Readonly | Processor | null | undefined} [destination]\n * Processor or configuration (optional).\n * @param {Readonly | null | undefined} [options]\n * When a processor was given, configuration (optional).\n * @returns {TransformBridge | TransformMutate}\n * Transform.\n */\nexport default function remarkRehype(destination, options) {\n if (destination && 'run' in destination) {\n /**\n * @type {TransformBridge}\n */\n return async function (tree, file) {\n // Cast because root in -> root out.\n const hastTree = /** @type {HastRoot} */ (toHast(tree, options))\n await destination.run(hastTree, file)\n }\n }\n\n /**\n * @type {TransformMutate}\n */\n return function (tree) {\n // Cast because root in -> root out.\n return /** @type {HastRoot} */ (toHast(tree, options || destination))\n }\n}\n","/**\n * Throw a given error.\n *\n * @param {Error|null|undefined} [error]\n * Maybe error.\n * @returns {asserts error is null|undefined}\n */\nexport function bail(error) {\n if (error) {\n throw error\n }\n}\n","export default function isPlainObject(value) {\n\tif (typeof value !== 'object' || value === null) {\n\t\treturn false;\n\t}\n\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in value) && !(Symbol.iterator in value);\n}\n","/**\n * @typedef {(error?: Error|null|undefined, ...output: Array) => void} Callback\n * @typedef {(...input: Array) => any} Middleware\n *\n * @typedef {(...input: Array) => void} Run\n * Call all middleware.\n * @typedef {(fn: Middleware) => Pipeline} Use\n * Add `fn` (middleware) to the list.\n * @typedef {{run: Run, use: Use}} Pipeline\n * Middleware.\n */\n\n/**\n * Create new middleware.\n *\n * @returns {Pipeline}\n */\nexport function trough() {\n /** @type {Array} */\n const fns = []\n /** @type {Pipeline} */\n const pipeline = {run, use}\n\n return pipeline\n\n /** @type {Run} */\n function run(...values) {\n let middlewareIndex = -1\n /** @type {Callback} */\n const callback = values.pop()\n\n if (typeof callback !== 'function') {\n throw new TypeError('Expected function as last argument, not ' + callback)\n }\n\n next(null, ...values)\n\n /**\n * Run the next `fn`, or we’re done.\n *\n * @param {Error|null|undefined} error\n * @param {Array} output\n */\n function next(error, ...output) {\n const fn = fns[++middlewareIndex]\n let index = -1\n\n if (error) {\n callback(error)\n return\n }\n\n // Copy non-nullish input into values.\n while (++index < values.length) {\n if (output[index] === null || output[index] === undefined) {\n output[index] = values[index]\n }\n }\n\n // Save the newly created `output` for the next call.\n values = output\n\n // Next or done.\n if (fn) {\n wrap(fn, next)(...output)\n } else {\n callback(null, ...output)\n }\n }\n }\n\n /** @type {Use} */\n function use(middelware) {\n if (typeof middelware !== 'function') {\n throw new TypeError(\n 'Expected `middelware` to be a function, not ' + middelware\n )\n }\n\n fns.push(middelware)\n return pipeline\n }\n}\n\n/**\n * Wrap `middleware`.\n * Can be sync or async; return a promise, receive a callback, or return new\n * values and errors.\n *\n * @param {Middleware} middleware\n * @param {Callback} callback\n */\nexport function wrap(middleware, callback) {\n /** @type {boolean} */\n let called\n\n return wrapped\n\n /**\n * Call `middleware`.\n * @this {any}\n * @param {Array} parameters\n * @returns {void}\n */\n function wrapped(...parameters) {\n const fnExpectsCallback = middleware.length > parameters.length\n /** @type {any} */\n let result\n\n if (fnExpectsCallback) {\n parameters.push(done)\n }\n\n try {\n result = middleware.apply(this, parameters)\n } catch (error) {\n const exception = /** @type {Error} */ (error)\n\n // Well, this is quite the pickle.\n // `middleware` received a callback and called it synchronously, but that\n // threw an error.\n // The only thing left to do is to throw the thing instead.\n if (fnExpectsCallback && called) {\n throw exception\n }\n\n return done(exception)\n }\n\n if (!fnExpectsCallback) {\n if (result instanceof Promise) {\n result.then(then, done)\n } else if (result instanceof Error) {\n done(result)\n } else {\n then(result)\n }\n }\n }\n\n /**\n * Call `callback`, only once.\n * @type {Callback}\n */\n function done(error, ...output) {\n if (!called) {\n called = true\n callback(error, ...output)\n }\n }\n\n /**\n * Call `done` with one value.\n *\n * @param {any} [value]\n */\n function then(value) {\n done(null, value)\n }\n}\n","// A derivative work based on:\n// .\n// Which is licensed:\n//\n// MIT License\n//\n// Copyright (c) 2013 James Halliday\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of\n// this software and associated documentation files (the \"Software\"), to deal in\n// the Software without restriction, including without limitation the rights to\n// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\n// the Software, and to permit persons to whom the Software is furnished to do so,\n// subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in all\n// copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\n// FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\n// COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\n// IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\n// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n// A derivative work based on:\n//\n// Parts of that are extracted from Node’s internal `path` module:\n// .\n// Which is licensed:\n//\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nexport const path = {basename, dirname, extname, join, sep: '/'}\n\n/* eslint-disable max-depth, complexity */\n\n/**\n * Get the basename from a path.\n *\n * @param {string} path\n * File path.\n * @param {string | null | undefined} [ext]\n * Extension to strip.\n * @returns {string}\n * Stem or basename.\n */\nfunction basename(path, ext) {\n if (ext !== undefined && typeof ext !== 'string') {\n throw new TypeError('\"ext\" argument must be a string')\n }\n\n assertPath(path)\n let start = 0\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let seenNonSlash\n\n if (ext === undefined || ext.length === 0 || ext.length > path.length) {\n while (index--) {\n if (path.codePointAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // path component.\n seenNonSlash = true\n end = index + 1\n }\n }\n\n return end < 0 ? '' : path.slice(start, end)\n }\n\n if (ext === path) {\n return ''\n }\n\n let firstNonSlashEnd = -1\n let extIndex = ext.length - 1\n\n while (index--) {\n if (path.codePointAt(index) === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (seenNonSlash) {\n start = index + 1\n break\n }\n } else {\n if (firstNonSlashEnd < 0) {\n // We saw the first non-path separator, remember this index in case\n // we need it if the extension ends up not matching.\n seenNonSlash = true\n firstNonSlashEnd = index + 1\n }\n\n if (extIndex > -1) {\n // Try to match the explicit extension.\n if (path.codePointAt(index) === ext.codePointAt(extIndex--)) {\n if (extIndex < 0) {\n // We matched the extension, so mark this as the end of our path\n // component\n end = index\n }\n } else {\n // Extension does not match, so our result is the entire path\n // component\n extIndex = -1\n end = firstNonSlashEnd\n }\n }\n }\n }\n\n if (start === end) {\n end = firstNonSlashEnd\n } else if (end < 0) {\n end = path.length\n }\n\n return path.slice(start, end)\n}\n\n/**\n * Get the dirname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\nfunction dirname(path) {\n assertPath(path)\n\n if (path.length === 0) {\n return '.'\n }\n\n let end = -1\n let index = path.length\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n // Prefix `--` is important to not run on `0`.\n while (--index) {\n if (path.codePointAt(index) === 47 /* `/` */) {\n if (unmatchedSlash) {\n end = index\n break\n }\n } else if (!unmatchedSlash) {\n // We saw the first non-path separator\n unmatchedSlash = true\n }\n }\n\n return end < 0\n ? path.codePointAt(0) === 47 /* `/` */\n ? '/'\n : '.'\n : end === 1 && path.codePointAt(0) === 47 /* `/` */\n ? '//'\n : path.slice(0, end)\n}\n\n/**\n * Get an extname from a path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * Extname.\n */\nfunction extname(path) {\n assertPath(path)\n\n let index = path.length\n\n let end = -1\n let startPart = 0\n let startDot = -1\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find.\n let preDotState = 0\n /** @type {boolean | undefined} */\n let unmatchedSlash\n\n while (index--) {\n const code = path.codePointAt(index)\n\n if (code === 47 /* `/` */) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now.\n if (unmatchedSlash) {\n startPart = index + 1\n break\n }\n\n continue\n }\n\n if (end < 0) {\n // We saw the first non-path separator, mark this as the end of our\n // extension.\n unmatchedSlash = true\n end = index + 1\n }\n\n if (code === 46 /* `.` */) {\n // If this is our first dot, mark it as the start of our extension.\n if (startDot < 0) {\n startDot = index\n } else if (preDotState !== 1) {\n preDotState = 1\n }\n } else if (startDot > -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension.\n preDotState = -1\n }\n }\n\n if (\n startDot < 0 ||\n end < 0 ||\n // We saw a non-dot character immediately before the dot.\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly `..`.\n (preDotState === 1 && startDot === end - 1 && startDot === startPart + 1)\n ) {\n return ''\n }\n\n return path.slice(startDot, end)\n}\n\n/**\n * Join segments from a path.\n *\n * @param {Array} segments\n * Path segments.\n * @returns {string}\n * File path.\n */\nfunction join(...segments) {\n let index = -1\n /** @type {string | undefined} */\n let joined\n\n while (++index < segments.length) {\n assertPath(segments[index])\n\n if (segments[index]) {\n joined =\n joined === undefined ? segments[index] : joined + '/' + segments[index]\n }\n }\n\n return joined === undefined ? '.' : normalize(joined)\n}\n\n/**\n * Normalize a basic file path.\n *\n * @param {string} path\n * File path.\n * @returns {string}\n * File path.\n */\n// Note: `normalize` is not exposed as `path.normalize`, so some code is\n// manually removed from it.\nfunction normalize(path) {\n assertPath(path)\n\n const absolute = path.codePointAt(0) === 47 /* `/` */\n\n // Normalize the path according to POSIX rules.\n let value = normalizeString(path, !absolute)\n\n if (value.length === 0 && !absolute) {\n value = '.'\n }\n\n if (value.length > 0 && path.codePointAt(path.length - 1) === 47 /* / */) {\n value += '/'\n }\n\n return absolute ? '/' + value : value\n}\n\n/**\n * Resolve `.` and `..` elements in a path with directory names.\n *\n * @param {string} path\n * File path.\n * @param {boolean} allowAboveRoot\n * Whether `..` can move above root.\n * @returns {string}\n * File path.\n */\nfunction normalizeString(path, allowAboveRoot) {\n let result = ''\n let lastSegmentLength = 0\n let lastSlash = -1\n let dots = 0\n let index = -1\n /** @type {number | undefined} */\n let code\n /** @type {number} */\n let lastSlashIndex\n\n while (++index <= path.length) {\n if (index < path.length) {\n code = path.codePointAt(index)\n } else if (code === 47 /* `/` */) {\n break\n } else {\n code = 47 /* `/` */\n }\n\n if (code === 47 /* `/` */) {\n if (lastSlash === index - 1 || dots === 1) {\n // Empty.\n } else if (lastSlash !== index - 1 && dots === 2) {\n if (\n result.length < 2 ||\n lastSegmentLength !== 2 ||\n result.codePointAt(result.length - 1) !== 46 /* `.` */ ||\n result.codePointAt(result.length - 2) !== 46 /* `.` */\n ) {\n if (result.length > 2) {\n lastSlashIndex = result.lastIndexOf('/')\n\n if (lastSlashIndex !== result.length - 1) {\n if (lastSlashIndex < 0) {\n result = ''\n lastSegmentLength = 0\n } else {\n result = result.slice(0, lastSlashIndex)\n lastSegmentLength = result.length - 1 - result.lastIndexOf('/')\n }\n\n lastSlash = index\n dots = 0\n continue\n }\n } else if (result.length > 0) {\n result = ''\n lastSegmentLength = 0\n lastSlash = index\n dots = 0\n continue\n }\n }\n\n if (allowAboveRoot) {\n result = result.length > 0 ? result + '/..' : '..'\n lastSegmentLength = 2\n }\n } else {\n if (result.length > 0) {\n result += '/' + path.slice(lastSlash + 1, index)\n } else {\n result = path.slice(lastSlash + 1, index)\n }\n\n lastSegmentLength = index - lastSlash - 1\n }\n\n lastSlash = index\n dots = 0\n } else if (code === 46 /* `.` */ && dots > -1) {\n dots++\n } else {\n dots = -1\n }\n }\n\n return result\n}\n\n/**\n * Make sure `path` is a string.\n *\n * @param {string} path\n * File path.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path) {\n if (typeof path !== 'string') {\n throw new TypeError(\n 'Path must be a string. Received ' + JSON.stringify(path)\n )\n }\n}\n\n/* eslint-enable max-depth, complexity */\n","// Somewhat based on:\n// .\n// But I don’t think one tiny line of code can be copyrighted. 😅\nexport const proc = {cwd}\n\nfunction cwd() {\n return '/'\n}\n","/**\n * Checks if a value has the shape of a WHATWG URL object.\n *\n * Using a symbol or instanceof would not be able to recognize URL objects\n * coming from other implementations (e.g. in Electron), so instead we are\n * checking some well known properties for a lack of a better test.\n *\n * We use `href` and `protocol` as they are the only properties that are\n * easy to retrieve and calculate due to the lazy nature of the getters.\n *\n * We check for auth attribute to distinguish legacy url instance with\n * WHATWG URL instance.\n *\n * @param {unknown} fileUrlOrPath\n * File path or URL.\n * @returns {fileUrlOrPath is URL}\n * Whether it’s a URL.\n */\n// From: \nexport function isUrl(fileUrlOrPath) {\n return Boolean(\n fileUrlOrPath !== null &&\n typeof fileUrlOrPath === 'object' &&\n 'href' in fileUrlOrPath &&\n fileUrlOrPath.href &&\n 'protocol' in fileUrlOrPath &&\n fileUrlOrPath.protocol &&\n // @ts-expect-error: indexing is fine.\n fileUrlOrPath.auth === undefined\n )\n}\n","import {isUrl} from './minurl.shared.js'\n\nexport {isUrl} from './minurl.shared.js'\n\n// See: \n\n/**\n * @param {URL | string} path\n * File URL.\n * @returns {string}\n * File URL.\n */\nexport function urlToPath(path) {\n if (typeof path === 'string') {\n path = new URL(path)\n } else if (!isUrl(path)) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'The \"path\" argument must be of type string or an instance of URL. Received `' +\n path +\n '`'\n )\n error.code = 'ERR_INVALID_ARG_TYPE'\n throw error\n }\n\n if (path.protocol !== 'file:') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError('The URL must be of scheme file')\n error.code = 'ERR_INVALID_URL_SCHEME'\n throw error\n }\n\n return getPathFromURLPosix(path)\n}\n\n/**\n * Get a path from a POSIX URL.\n *\n * @param {URL} url\n * URL.\n * @returns {string}\n * File path.\n */\nfunction getPathFromURLPosix(url) {\n if (url.hostname !== '') {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL host must be \"localhost\" or empty on darwin'\n )\n error.code = 'ERR_INVALID_FILE_URL_HOST'\n throw error\n }\n\n const pathname = url.pathname\n let index = -1\n\n while (++index < pathname.length) {\n if (\n pathname.codePointAt(index) === 37 /* `%` */ &&\n pathname.codePointAt(index + 1) === 50 /* `2` */\n ) {\n const third = pathname.codePointAt(index + 2)\n if (third === 70 /* `F` */ || third === 102 /* `f` */) {\n /** @type {NodeJS.ErrnoException} */\n const error = new TypeError(\n 'File URL path must not include encoded / characters'\n )\n error.code = 'ERR_INVALID_FILE_URL_PATH'\n throw error\n }\n }\n }\n\n return decodeURIComponent(pathname)\n}\n","/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n * @typedef {import('vfile-message').Options} MessageOptions\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Value} Value\n */\n\n/**\n * @typedef {object & {type: string, position?: Position | undefined}} NodeLike\n *\n * @typedef {Options | URL | VFile | Value} Compatible\n * Things that can be passed to the constructor.\n *\n * @typedef VFileCoreOptions\n * Set multiple values.\n * @property {string | null | undefined} [basename]\n * Set `basename` (name).\n * @property {string | null | undefined} [cwd]\n * Set `cwd` (working directory).\n * @property {Data | null | undefined} [data]\n * Set `data` (associated info).\n * @property {string | null | undefined} [dirname]\n * Set `dirname` (path w/o basename).\n * @property {string | null | undefined} [extname]\n * Set `extname` (extension with dot).\n * @property {Array | null | undefined} [history]\n * Set `history` (paths the file moved between).\n * @property {URL | string | null | undefined} [path]\n * Set `path` (current path).\n * @property {string | null | undefined} [stem]\n * Set `stem` (name without extension).\n * @property {Value | null | undefined} [value]\n * Set `value` (the contents of the file).\n *\n * @typedef Map\n * Raw source map.\n *\n * See:\n * .\n * @property {number} version\n * Which version of the source map spec this map is following.\n * @property {Array} sources\n * An array of URLs to the original source files.\n * @property {Array} names\n * An array of identifiers which can be referenced by individual mappings.\n * @property {string | undefined} [sourceRoot]\n * The URL root from which all sources are relative.\n * @property {Array | undefined} [sourcesContent]\n * An array of contents of the original source files.\n * @property {string} mappings\n * A string of base64 VLQs which contain the actual mappings.\n * @property {string} file\n * The generated file this source map is associated with.\n *\n * @typedef {Record & VFileCoreOptions} Options\n * Configuration.\n *\n * A bunch of keys that will be shallow copied over to the new file.\n *\n * @typedef {Record} ReporterSettings\n * Configuration for reporters.\n */\n\n/**\n * @template [Settings=ReporterSettings]\n * Options type.\n * @callback Reporter\n * Type for a reporter.\n * @param {Array} files\n * Files to report.\n * @param {Settings} options\n * Configuration.\n * @returns {string}\n * Report.\n */\n\nimport {VFileMessage} from 'vfile-message'\nimport {path} from 'vfile/do-not-use-conditional-minpath'\nimport {proc} from 'vfile/do-not-use-conditional-minproc'\nimport {urlToPath, isUrl} from 'vfile/do-not-use-conditional-minurl'\n\n/**\n * Order of setting (least specific to most), we need this because otherwise\n * `{stem: 'a', path: '~/b.js'}` would throw, as a path is needed before a\n * stem can be set.\n */\nconst order = /** @type {const} */ ([\n 'history',\n 'path',\n 'basename',\n 'stem',\n 'extname',\n 'dirname'\n])\n\nexport class VFile {\n /**\n * Create a new virtual file.\n *\n * `options` is treated as:\n *\n * * `string` or `Uint8Array` — `{value: options}`\n * * `URL` — `{path: options}`\n * * `VFile` — shallow copies its data over to the new file\n * * `object` — all fields are shallow copied over to the new file\n *\n * Path related fields are set in the following order (least specific to\n * most specific): `history`, `path`, `basename`, `stem`, `extname`,\n * `dirname`.\n *\n * You cannot set `dirname` or `extname` without setting either `history`,\n * `path`, `basename`, or `stem` too.\n *\n * @param {Compatible | null | undefined} [value]\n * File value.\n * @returns\n * New instance.\n */\n constructor(value) {\n /** @type {Options | VFile} */\n let options\n\n if (!value) {\n options = {}\n } else if (isUrl(value)) {\n options = {path: value}\n } else if (typeof value === 'string' || isUint8Array(value)) {\n options = {value}\n } else {\n options = value\n }\n\n /* eslint-disable no-unused-expressions */\n\n /**\n * Base of `path` (default: `process.cwd()` or `'/'` in browsers).\n *\n * @type {string}\n */\n this.cwd = proc.cwd()\n\n /**\n * Place to store custom info (default: `{}`).\n *\n * It’s OK to store custom data directly on the file but moving it to\n * `data` is recommended.\n *\n * @type {Data}\n */\n this.data = {}\n\n /**\n * List of file paths the file moved between.\n *\n * The first is the original path and the last is the current path.\n *\n * @type {Array}\n */\n this.history = []\n\n /**\n * List of messages associated with the file.\n *\n * @type {Array}\n */\n this.messages = []\n\n /**\n * Raw value.\n *\n * @type {Value}\n */\n this.value\n\n // The below are non-standard, they are “well-known”.\n // As in, used in several tools.\n /**\n * Source map.\n *\n * This type is equivalent to the `RawSourceMap` type from the `source-map`\n * module.\n *\n * @type {Map | null | undefined}\n */\n this.map\n\n /**\n * Custom, non-string, compiled, representation.\n *\n * This is used by unified to store non-string results.\n * One example is when turning markdown into React nodes.\n *\n * @type {unknown}\n */\n this.result\n\n /**\n * Whether a file was saved to disk.\n *\n * This is used by vfile reporters.\n *\n * @type {boolean}\n */\n this.stored\n /* eslint-enable no-unused-expressions */\n\n // Set path related properties in the correct order.\n let index = -1\n\n while (++index < order.length) {\n const prop = order[index]\n\n // Note: we specifically use `in` instead of `hasOwnProperty` to accept\n // `vfile`s too.\n if (\n prop in options &&\n options[prop] !== undefined &&\n options[prop] !== null\n ) {\n // @ts-expect-error: TS doesn’t understand basic reality.\n this[prop] = prop === 'history' ? [...options[prop]] : options[prop]\n }\n }\n\n /** @type {string} */\n let prop\n\n // Set non-path related properties.\n for (prop in options) {\n // @ts-expect-error: fine to set other things.\n if (!order.includes(prop)) {\n // @ts-expect-error: fine to set other things.\n this[prop] = options[prop]\n }\n }\n }\n\n /**\n * Get the basename (including extname) (example: `'index.min.js'`).\n *\n * @returns {string | undefined}\n * Basename.\n */\n get basename() {\n return typeof this.path === 'string' ? path.basename(this.path) : undefined\n }\n\n /**\n * Set basename (including extname) (`'index.min.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n *\n * @param {string} basename\n * Basename.\n * @returns {undefined}\n * Nothing.\n */\n set basename(basename) {\n assertNonEmpty(basename, 'basename')\n assertPart(basename, 'basename')\n this.path = path.join(this.dirname || '', basename)\n }\n\n /**\n * Get the parent path (example: `'~'`).\n *\n * @returns {string | undefined}\n * Dirname.\n */\n get dirname() {\n return typeof this.path === 'string' ? path.dirname(this.path) : undefined\n }\n\n /**\n * Set the parent path (example: `'~'`).\n *\n * Cannot be set if there’s no `path` yet.\n *\n * @param {string | undefined} dirname\n * Dirname.\n * @returns {undefined}\n * Nothing.\n */\n set dirname(dirname) {\n assertPath(this.basename, 'dirname')\n this.path = path.join(dirname || '', this.basename)\n }\n\n /**\n * Get the extname (including dot) (example: `'.js'`).\n *\n * @returns {string | undefined}\n * Extname.\n */\n get extname() {\n return typeof this.path === 'string' ? path.extname(this.path) : undefined\n }\n\n /**\n * Set the extname (including dot) (example: `'.js'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be set if there’s no `path` yet.\n *\n * @param {string | undefined} extname\n * Extname.\n * @returns {undefined}\n * Nothing.\n */\n set extname(extname) {\n assertPart(extname, 'extname')\n assertPath(this.dirname, 'extname')\n\n if (extname) {\n if (extname.codePointAt(0) !== 46 /* `.` */) {\n throw new Error('`extname` must start with `.`')\n }\n\n if (extname.includes('.', 1)) {\n throw new Error('`extname` cannot contain multiple dots')\n }\n }\n\n this.path = path.join(this.dirname, this.stem + (extname || ''))\n }\n\n /**\n * Get the full path (example: `'~/index.min.js'`).\n *\n * @returns {string}\n * Path.\n */\n get path() {\n return this.history[this.history.length - 1]\n }\n\n /**\n * Set the full path (example: `'~/index.min.js'`).\n *\n * Cannot be nullified.\n * You can set a file URL (a `URL` object with a `file:` protocol) which will\n * be turned into a path with `url.fileURLToPath`.\n *\n * @param {URL | string} path\n * Path.\n * @returns {undefined}\n * Nothing.\n */\n set path(path) {\n if (isUrl(path)) {\n path = urlToPath(path)\n }\n\n assertNonEmpty(path, 'path')\n\n if (this.path !== path) {\n this.history.push(path)\n }\n }\n\n /**\n * Get the stem (basename w/o extname) (example: `'index.min'`).\n *\n * @returns {string | undefined}\n * Stem.\n */\n get stem() {\n return typeof this.path === 'string'\n ? path.basename(this.path, this.extname)\n : undefined\n }\n\n /**\n * Set the stem (basename w/o extname) (example: `'index.min'`).\n *\n * Cannot contain path separators (`'/'` on unix, macOS, and browsers, `'\\'`\n * on windows).\n * Cannot be nullified (use `file.path = file.dirname` instead).\n *\n * @param {string} stem\n * Stem.\n * @returns {undefined}\n * Nothing.\n */\n set stem(stem) {\n assertNonEmpty(stem, 'stem')\n assertPart(stem, 'stem')\n this.path = path.join(this.dirname || '', stem + (this.extname || ''))\n }\n\n // Normal prototypal methods.\n /**\n * Create a fatal message for `reason` associated with the file.\n *\n * The `fatal` field of the message is set to `true` (error; file not usable)\n * and the `file` field is set to the current file path.\n * The message is added to the `messages` field on `file`.\n *\n * > 🪦 **Note**: also has obsolete signatures.\n *\n * @overload\n * @param {string} reason\n * @param {MessageOptions | null | undefined} [options]\n * @returns {never}\n *\n * @overload\n * @param {string} reason\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {string} reason\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {string} reason\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {string | null | undefined} [origin]\n * @returns {never}\n *\n * @param {Error | VFileMessage | string} causeOrReason\n * Reason for message, should use markdown.\n * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]\n * Configuration (optional).\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {never}\n * Never.\n * @throws {VFileMessage}\n * Message.\n */\n fail(causeOrReason, optionsOrParentOrPlace, origin) {\n // @ts-expect-error: the overloads are fine.\n const message = this.message(causeOrReason, optionsOrParentOrPlace, origin)\n\n message.fatal = true\n\n throw message\n }\n\n /**\n * Create an info message for `reason` associated with the file.\n *\n * The `fatal` field of the message is set to `undefined` (info; change\n * likely not needed) and the `file` field is set to the current file path.\n * The message is added to the `messages` field on `file`.\n *\n * > 🪦 **Note**: also has obsolete signatures.\n *\n * @overload\n * @param {string} reason\n * @param {MessageOptions | null | undefined} [options]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @param {Error | VFileMessage | string} causeOrReason\n * Reason for message, should use markdown.\n * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]\n * Configuration (optional).\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n info(causeOrReason, optionsOrParentOrPlace, origin) {\n // @ts-expect-error: the overloads are fine.\n const message = this.message(causeOrReason, optionsOrParentOrPlace, origin)\n\n message.fatal = undefined\n\n return message\n }\n\n /**\n * Create a message for `reason` associated with the file.\n *\n * The `fatal` field of the message is set to `false` (warning; change may be\n * needed) and the `file` field is set to the current file path.\n * The message is added to the `messages` field on `file`.\n *\n * > 🪦 **Note**: also has obsolete signatures.\n *\n * @overload\n * @param {string} reason\n * @param {MessageOptions | null | undefined} [options]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {string} reason\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Node | NodeLike | null | undefined} parent\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {Point | Position | null | undefined} place\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @overload\n * @param {Error | VFileMessage} cause\n * @param {string | null | undefined} [origin]\n * @returns {VFileMessage}\n *\n * @param {Error | VFileMessage | string} causeOrReason\n * Reason for message, should use markdown.\n * @param {Node | NodeLike | MessageOptions | Point | Position | string | null | undefined} [optionsOrParentOrPlace]\n * Configuration (optional).\n * @param {string | null | undefined} [origin]\n * Place in code where the message originates (example:\n * `'my-package:my-rule'` or `'my-rule'`).\n * @returns {VFileMessage}\n * Message.\n */\n message(causeOrReason, optionsOrParentOrPlace, origin) {\n const message = new VFileMessage(\n // @ts-expect-error: the overloads are fine.\n causeOrReason,\n optionsOrParentOrPlace,\n origin\n )\n\n if (this.path) {\n message.name = this.path + ':' + message.name\n message.file = this.path\n }\n\n message.fatal = false\n\n this.messages.push(message)\n\n return message\n }\n\n /**\n * Serialize the file.\n *\n * > **Note**: which encodings are supported depends on the engine.\n * > For info on Node.js, see:\n * > .\n *\n * @param {string | null | undefined} [encoding='utf8']\n * Character encoding to understand `value` as when it’s a `Uint8Array`\n * (default: `'utf-8'`).\n * @returns {string}\n * Serialized file.\n */\n toString(encoding) {\n if (this.value === undefined) {\n return ''\n }\n\n if (typeof this.value === 'string') {\n return this.value\n }\n\n const decoder = new TextDecoder(encoding || undefined)\n return decoder.decode(this.value)\n }\n}\n\n/**\n * Assert that `part` is not a path (as in, does not contain `path.sep`).\n *\n * @param {string | null | undefined} part\n * File path part.\n * @param {string} name\n * Part name.\n * @returns {undefined}\n * Nothing.\n */\nfunction assertPart(part, name) {\n if (part && part.includes(path.sep)) {\n throw new Error(\n '`' + name + '` cannot be a path: did not expect `' + path.sep + '`'\n )\n }\n}\n\n/**\n * Assert that `part` is not empty.\n *\n * @param {string | undefined} part\n * Thing.\n * @param {string} name\n * Part name.\n * @returns {asserts part is string}\n * Nothing.\n */\nfunction assertNonEmpty(part, name) {\n if (!part) {\n throw new Error('`' + name + '` cannot be empty')\n }\n}\n\n/**\n * Assert `path` exists.\n *\n * @param {string | undefined} path\n * Path.\n * @param {string} name\n * Dependency name.\n * @returns {asserts path is string}\n * Nothing.\n */\nfunction assertPath(path, name) {\n if (!path) {\n throw new Error('Setting `' + name + '` requires `path` to be set too')\n }\n}\n\n/**\n * Assert `value` is an `Uint8Array`.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Uint8Array}\n * Whether `value` is an `Uint8Array`.\n */\nfunction isUint8Array(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'byteLength' in value &&\n 'byteOffset' in value\n )\n}\n","export const CallableInstance =\n /**\n * @type {new , Result>(property: string | symbol) => (...parameters: Parameters) => Result}\n */\n (\n /** @type {unknown} */\n (\n /**\n * @this {Function}\n * @param {string | symbol} property\n * @returns {(...parameters: Array) => unknown}\n */\n function (property) {\n const self = this\n const constr = self.constructor\n const proto = /** @type {Record} */ (\n // Prototypes do exist.\n // type-coverage:ignore-next-line\n constr.prototype\n )\n const func = proto[property]\n /** @type {(...parameters: Array) => unknown} */\n const apply = function () {\n return func.apply(apply, arguments)\n }\n\n Object.setPrototypeOf(apply, proto)\n\n const names = Object.getOwnPropertyNames(func)\n\n for (const p of names) {\n const descriptor = Object.getOwnPropertyDescriptor(func, p)\n if (descriptor) Object.defineProperty(apply, p, descriptor)\n }\n\n return apply\n }\n )\n )\n","/**\n * @typedef {import('trough').Pipeline} Pipeline\n *\n * @typedef {import('unist').Node} Node\n *\n * @typedef {import('vfile').Compatible} Compatible\n * @typedef {import('vfile').Value} Value\n *\n * @typedef {import('../index.js').CompileResultMap} CompileResultMap\n * @typedef {import('../index.js').Data} Data\n * @typedef {import('../index.js').Settings} Settings\n */\n\n/**\n * @typedef {CompileResultMap[keyof CompileResultMap]} CompileResults\n * Acceptable results from compilers.\n *\n * To register custom results, add them to\n * {@link CompileResultMap `CompileResultMap`}.\n */\n\n/**\n * @template {Node} [Tree=Node]\n * The node that the compiler receives (default: `Node`).\n * @template {CompileResults} [Result=CompileResults]\n * The thing that the compiler yields (default: `CompileResults`).\n * @callback Compiler\n * A **compiler** handles the compiling of a syntax tree to something else\n * (in most cases, text) (TypeScript type).\n *\n * It is used in the stringify phase and called with a {@link Node `Node`}\n * and {@link VFile `VFile`} representation of the document to compile.\n * It should return the textual representation of the given tree (typically\n * `string`).\n *\n * > 👉 **Note**: unified typically compiles by serializing: most compilers\n * > return `string` (or `Uint8Array`).\n * > Some compilers, such as the one configured with\n * > [`rehype-react`][rehype-react], return other values (in this case, a\n * > React tree).\n * > If you’re using a compiler that doesn’t serialize, expect different\n * > result values.\n * >\n * > To register custom results in TypeScript, add them to\n * > {@link CompileResultMap `CompileResultMap`}.\n *\n * [rehype-react]: https://github.com/rehypejs/rehype-react\n * @param {Tree} tree\n * Tree to compile.\n * @param {VFile} file\n * File associated with `tree`.\n * @returns {Result}\n * New content: compiled text (`string` or `Uint8Array`, for `file.value`) or\n * something else (for `file.result`).\n */\n\n/**\n * @template {Node} [Tree=Node]\n * The node that the parser yields (default: `Node`)\n * @callback Parser\n * A **parser** handles the parsing of text to a syntax tree.\n *\n * It is used in the parse phase and is called with a `string` and\n * {@link VFile `VFile`} of the document to parse.\n * It must return the syntax tree representation of the given file\n * ({@link Node `Node`}).\n * @param {string} document\n * Document to parse.\n * @param {VFile} file\n * File associated with `document`.\n * @returns {Tree}\n * Node representing the given file.\n */\n\n/**\n * @typedef {(\n * Plugin, any, any> |\n * PluginTuple, any, any> |\n * Preset\n * )} Pluggable\n * Union of the different ways to add plugins and settings.\n */\n\n/**\n * @typedef {Array} PluggableList\n * List of plugins and presets.\n */\n\n// Note: we can’t use `callback` yet as it messes up `this`:\n// .\n/**\n * @template {Array} [PluginParameters=[]]\n * Arguments passed to the plugin (default: `[]`, the empty tuple).\n * @template {Node | string | undefined} [Input=Node]\n * Value that is expected as input (default: `Node`).\n *\n * * If the plugin returns a {@link Transformer `Transformer`}, this\n * should be the node it expects.\n * * If the plugin sets a {@link Parser `Parser`}, this should be\n * `string`.\n * * If the plugin sets a {@link Compiler `Compiler`}, this should be the\n * node it expects.\n * @template [Output=Input]\n * Value that is yielded as output (default: `Input`).\n *\n * * If the plugin returns a {@link Transformer `Transformer`}, this\n * should be the node that that yields.\n * * If the plugin sets a {@link Parser `Parser`}, this should be the\n * node that it yields.\n * * If the plugin sets a {@link Compiler `Compiler`}, this should be\n * result it yields.\n * @typedef {(\n * (this: Processor, ...parameters: PluginParameters) =>\n * Input extends string ? // Parser.\n * Output extends Node | undefined ? undefined | void : never :\n * Output extends CompileResults ? // Compiler.\n * Input extends Node | undefined ? undefined | void : never :\n * Transformer<\n * Input extends Node ? Input : Node,\n * Output extends Node ? Output : Node\n * > | undefined | void\n * )} Plugin\n * Single plugin.\n *\n * Plugins configure the processors they are applied on in the following\n * ways:\n *\n * * they change the processor, such as the parser, the compiler, or by\n * configuring data\n * * they specify how to handle trees and files\n *\n * In practice, they are functions that can receive options and configure the\n * processor (`this`).\n *\n * > 👉 **Note**: plugins are called when the processor is *frozen*, not when\n * > they are applied.\n */\n\n/**\n * Tuple of a plugin and its configuration.\n *\n * The first item is a plugin, the rest are its parameters.\n *\n * @template {Array} [TupleParameters=[]]\n * Arguments passed to the plugin (default: `[]`, the empty tuple).\n * @template {Node | string | undefined} [Input=undefined]\n * Value that is expected as input (optional).\n *\n * * If the plugin returns a {@link Transformer `Transformer`}, this\n * should be the node it expects.\n * * If the plugin sets a {@link Parser `Parser`}, this should be\n * `string`.\n * * If the plugin sets a {@link Compiler `Compiler`}, this should be the\n * node it expects.\n * @template [Output=undefined] (optional).\n * Value that is yielded as output.\n *\n * * If the plugin returns a {@link Transformer `Transformer`}, this\n * should be the node that that yields.\n * * If the plugin sets a {@link Parser `Parser`}, this should be the\n * node that it yields.\n * * If the plugin sets a {@link Compiler `Compiler`}, this should be\n * result it yields.\n * @typedef {(\n * [\n * plugin: Plugin,\n * ...parameters: TupleParameters\n * ]\n * )} PluginTuple\n */\n\n/**\n * @typedef Preset\n * Sharable configuration.\n *\n * They can contain plugins and settings.\n * @property {PluggableList | undefined} [plugins]\n * List of plugins and presets (optional).\n * @property {Settings | undefined} [settings]\n * Shared settings for parsers and compilers (optional).\n */\n\n/**\n * @template {VFile} [File=VFile]\n * The file that the callback receives (default: `VFile`).\n * @callback ProcessCallback\n * Callback called when the process is done.\n *\n * Called with either an error or a result.\n * @param {Error | undefined} [error]\n * Fatal error (optional).\n * @param {File | undefined} [file]\n * Processed file (optional).\n * @returns {undefined}\n * Nothing.\n */\n\n/**\n * @template {Node} [Tree=Node]\n * The tree that the callback receives (default: `Node`).\n * @callback RunCallback\n * Callback called when transformers are done.\n *\n * Called with either an error or results.\n * @param {Error | undefined} [error]\n * Fatal error (optional).\n * @param {Tree | undefined} [tree]\n * Transformed tree (optional).\n * @param {VFile | undefined} [file]\n * File (optional).\n * @returns {undefined}\n * Nothing.\n */\n\n/**\n * @template {Node} [Output=Node]\n * Node type that the transformer yields (default: `Node`).\n * @callback TransformCallback\n * Callback passed to transforms.\n *\n * If the signature of a `transformer` accepts a third argument, the\n * transformer may perform asynchronous operations, and must call it.\n * @param {Error | undefined} [error]\n * Fatal error to stop the process (optional).\n * @param {Output | undefined} [tree]\n * New, changed, tree (optional).\n * @param {VFile | undefined} [file]\n * New, changed, file (optional).\n * @returns {undefined}\n * Nothing.\n */\n\n/**\n * @template {Node} [Input=Node]\n * Node type that the transformer expects (default: `Node`).\n * @template {Node} [Output=Input]\n * Node type that the transformer yields (default: `Input`).\n * @callback Transformer\n * Transformers handle syntax trees and files.\n *\n * They are functions that are called each time a syntax tree and file are\n * passed through the run phase.\n * When an error occurs in them (either because it’s thrown, returned,\n * rejected, or passed to `next`), the process stops.\n *\n * The run phase is handled by [`trough`][trough], see its documentation for\n * the exact semantics of these functions.\n *\n * > 👉 **Note**: you should likely ignore `next`: don’t accept it.\n * > it supports callback-style async work.\n * > But promises are likely easier to reason about.\n *\n * [trough]: https://github.com/wooorm/trough#function-fninput-next\n * @param {Input} tree\n * Tree to handle.\n * @param {VFile} file\n * File to handle.\n * @param {TransformCallback} next\n * Callback.\n * @returns {(\n * Promise |\n * Promise | // For some reason this is needed separately.\n * Output |\n * Error |\n * undefined |\n * void\n * )}\n * If you accept `next`, nothing.\n * Otherwise:\n *\n * * `Error` — fatal error to stop the process\n * * `Promise` or `undefined` — the next transformer keeps using\n * same tree\n * * `Promise` or `Node` — new, changed, tree\n */\n\n/**\n * @template {Node | undefined} ParseTree\n * Output of `parse`.\n * @template {Node | undefined} HeadTree\n * Input for `run`.\n * @template {Node | undefined} TailTree\n * Output for `run`.\n * @template {Node | undefined} CompileTree\n * Input of `stringify`.\n * @template {CompileResults | undefined} CompileResult\n * Output of `stringify`.\n * @template {Node | string | undefined} Input\n * Input of plugin.\n * @template Output\n * Output of plugin (optional).\n * @typedef {(\n * Input extends string\n * ? Output extends Node | undefined\n * ? // Parser.\n * Processor<\n * Output extends undefined ? ParseTree : Output,\n * HeadTree,\n * TailTree,\n * CompileTree,\n * CompileResult\n * >\n * : // Unknown.\n * Processor\n * : Output extends CompileResults\n * ? Input extends Node | undefined\n * ? // Compiler.\n * Processor<\n * ParseTree,\n * HeadTree,\n * TailTree,\n * Input extends undefined ? CompileTree : Input,\n * Output extends undefined ? CompileResult : Output\n * >\n * : // Unknown.\n * Processor\n * : Input extends Node | undefined\n * ? Output extends Node | undefined\n * ? // Transform.\n * Processor<\n * ParseTree,\n * HeadTree extends undefined ? Input : HeadTree,\n * Output extends undefined ? TailTree : Output,\n * CompileTree,\n * CompileResult\n * >\n * : // Unknown.\n * Processor\n * : // Unknown.\n * Processor\n * )} UsePlugin\n * Create a processor based on the input/output of a {@link Plugin plugin}.\n */\n\n/**\n * @template {CompileResults | undefined} Result\n * Node type that the transformer yields.\n * @typedef {(\n * Result extends Value | undefined ?\n * VFile :\n * VFile & {result: Result}\n * )} VFileWithOutput\n * Type to generate a {@link VFile `VFile`} corresponding to a compiler result.\n *\n * If a result that is not acceptable on a `VFile` is used, that will\n * be stored on the `result` field of {@link VFile `VFile`}.\n */\n\nimport {bail} from 'bail'\nimport extend from 'extend'\nimport {ok as assert} from 'devlop'\nimport isPlainObj from 'is-plain-obj'\nimport {trough} from 'trough'\nimport {VFile} from 'vfile'\nimport {CallableInstance} from './callable-instance.js'\n\n// To do: next major: drop `Compiler`, `Parser`: prefer lowercase.\n\n// To do: we could start yielding `never` in TS when a parser is missing and\n// `parse` is called.\n// Currently, we allow directly setting `processor.parser`, which is untyped.\n\nconst own = {}.hasOwnProperty\n\n/**\n * @template {Node | undefined} [ParseTree=undefined]\n * Output of `parse` (optional).\n * @template {Node | undefined} [HeadTree=undefined]\n * Input for `run` (optional).\n * @template {Node | undefined} [TailTree=undefined]\n * Output for `run` (optional).\n * @template {Node | undefined} [CompileTree=undefined]\n * Input of `stringify` (optional).\n * @template {CompileResults | undefined} [CompileResult=undefined]\n * Output of `stringify` (optional).\n * @extends {CallableInstance<[], Processor>}\n */\nexport class Processor extends CallableInstance {\n /**\n * Create a processor.\n */\n constructor() {\n // If `Processor()` is called (w/o new), `copy` is called instead.\n super('copy')\n\n /**\n * Compiler to use (deprecated).\n *\n * @deprecated\n * Use `compiler` instead.\n * @type {(\n * Compiler<\n * CompileTree extends undefined ? Node : CompileTree,\n * CompileResult extends undefined ? CompileResults : CompileResult\n * > |\n * undefined\n * )}\n */\n this.Compiler = undefined\n\n /**\n * Parser to use (deprecated).\n *\n * @deprecated\n * Use `parser` instead.\n * @type {(\n * Parser |\n * undefined\n * )}\n */\n this.Parser = undefined\n\n // Note: the following fields are considered private.\n // However, they are needed for tests, and TSC generates an untyped\n // `private freezeIndex` field for, which trips `type-coverage` up.\n // Instead, we use `@deprecated` to visualize that they shouldn’t be used.\n /**\n * Internal list of configured plugins.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {Array>>}\n */\n this.attachers = []\n\n /**\n * Compiler to use.\n *\n * @type {(\n * Compiler<\n * CompileTree extends undefined ? Node : CompileTree,\n * CompileResult extends undefined ? CompileResults : CompileResult\n * > |\n * undefined\n * )}\n */\n this.compiler = undefined\n\n /**\n * Internal state to track where we are while freezing.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {number}\n */\n this.freezeIndex = -1\n\n /**\n * Internal state to track whether we’re frozen.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {boolean | undefined}\n */\n this.frozen = undefined\n\n /**\n * Internal state.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {Data}\n */\n this.namespace = {}\n\n /**\n * Parser to use.\n *\n * @type {(\n * Parser |\n * undefined\n * )}\n */\n this.parser = undefined\n\n /**\n * Internal list of configured transformers.\n *\n * @deprecated\n * This is a private internal property and should not be used.\n * @type {Pipeline}\n */\n this.transformers = trough()\n }\n\n /**\n * Copy a processor.\n *\n * @deprecated\n * This is a private internal method and should not be used.\n * @returns {Processor}\n * New *unfrozen* processor ({@link Processor `Processor`}) that is\n * configured to work the same as its ancestor.\n * When the descendant processor is configured in the future it does not\n * affect the ancestral processor.\n */\n copy() {\n // Cast as the type parameters will be the same after attaching.\n const destination =\n /** @type {Processor} */ (\n new Processor()\n )\n let index = -1\n\n while (++index < this.attachers.length) {\n const attacher = this.attachers[index]\n destination.use(...attacher)\n }\n\n destination.data(extend(true, {}, this.namespace))\n\n return destination\n }\n\n /**\n * Configure the processor with info available to all plugins.\n * Information is stored in an object.\n *\n * Typically, options can be given to a specific plugin, but sometimes it\n * makes sense to have information shared with several plugins.\n * For example, a list of HTML elements that are self-closing, which is\n * needed during all phases.\n *\n * > 👉 **Note**: setting information cannot occur on *frozen* processors.\n * > Call the processor first to create a new unfrozen processor.\n *\n * > 👉 **Note**: to register custom data in TypeScript, augment the\n * > {@link Data `Data`} interface.\n *\n * @example\n * This example show how to get and set info:\n *\n * ```js\n * import {unified} from 'unified'\n *\n * const processor = unified().data('alpha', 'bravo')\n *\n * processor.data('alpha') // => 'bravo'\n *\n * processor.data() // => {alpha: 'bravo'}\n *\n * processor.data({charlie: 'delta'})\n *\n * processor.data() // => {charlie: 'delta'}\n * ```\n *\n * @template {keyof Data} Key\n *\n * @overload\n * @returns {Data}\n *\n * @overload\n * @param {Data} dataset\n * @returns {Processor}\n *\n * @overload\n * @param {Key} key\n * @returns {Data[Key]}\n *\n * @overload\n * @param {Key} key\n * @param {Data[Key]} value\n * @returns {Processor}\n *\n * @param {Data | Key} [key]\n * Key to get or set, or entire dataset to set, or nothing to get the\n * entire dataset (optional).\n * @param {Data[Key]} [value]\n * Value to set (optional).\n * @returns {unknown}\n * The current processor when setting, the value at `key` when getting, or\n * the entire dataset when getting without key.\n */\n data(key, value) {\n if (typeof key === 'string') {\n // Set `key`.\n if (arguments.length === 2) {\n assertUnfrozen('data', this.frozen)\n this.namespace[key] = value\n return this\n }\n\n // Get `key`.\n return (own.call(this.namespace, key) && this.namespace[key]) || undefined\n }\n\n // Set space.\n if (key) {\n assertUnfrozen('data', this.frozen)\n this.namespace = key\n return this\n }\n\n // Get space.\n return this.namespace\n }\n\n /**\n * Freeze a processor.\n *\n * Frozen processors are meant to be extended and not to be configured\n * directly.\n *\n * When a processor is frozen it cannot be unfrozen.\n * New processors working the same way can be created by calling the\n * processor.\n *\n * It’s possible to freeze processors explicitly by calling `.freeze()`.\n * Processors freeze automatically when `.parse()`, `.run()`, `.runSync()`,\n * `.stringify()`, `.process()`, or `.processSync()` are called.\n *\n * @returns {Processor}\n * The current processor.\n */\n freeze() {\n if (this.frozen) {\n return this\n }\n\n // Cast so that we can type plugins easier.\n // Plugins are supposed to be usable on different processors, not just on\n // this exact processor.\n const self = /** @type {Processor} */ (/** @type {unknown} */ (this))\n\n while (++this.freezeIndex < this.attachers.length) {\n const [attacher, ...options] = this.attachers[this.freezeIndex]\n\n if (options[0] === false) {\n continue\n }\n\n if (options[0] === true) {\n options[0] = undefined\n }\n\n const transformer = attacher.call(self, ...options)\n\n if (typeof transformer === 'function') {\n this.transformers.use(transformer)\n }\n }\n\n this.frozen = true\n this.freezeIndex = Number.POSITIVE_INFINITY\n\n return this\n }\n\n /**\n * Parse text to a syntax tree.\n *\n * > 👉 **Note**: `parse` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `parse` performs the parse phase, not the run phase or other\n * > phases.\n *\n * @param {Compatible | undefined} [file]\n * file to parse (optional); typically `string` or `VFile`; any value\n * accepted as `x` in `new VFile(x)`.\n * @returns {ParseTree extends undefined ? Node : ParseTree}\n * Syntax tree representing `file`.\n */\n parse(file) {\n this.freeze()\n const realFile = vfile(file)\n const parser = this.parser || this.Parser\n assertParser('parse', parser)\n return parser(String(realFile), realFile)\n }\n\n /**\n * Process the given file as configured on the processor.\n *\n * > 👉 **Note**: `process` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `process` performs the parse, run, and stringify phases.\n *\n * @overload\n * @param {Compatible | undefined} file\n * @param {ProcessCallback>} done\n * @returns {undefined}\n *\n * @overload\n * @param {Compatible | undefined} [file]\n * @returns {Promise>}\n *\n * @param {Compatible | undefined} [file]\n * File (optional); typically `string` or `VFile`]; any value accepted as\n * `x` in `new VFile(x)`.\n * @param {ProcessCallback> | undefined} [done]\n * Callback (optional).\n * @returns {Promise | undefined}\n * Nothing if `done` is given.\n * Otherwise a promise, rejected with a fatal error or resolved with the\n * processed file.\n *\n * The parsed, transformed, and compiled value is available at\n * `file.value` (see note).\n *\n * > 👉 **Note**: unified typically compiles by serializing: most\n * > compilers return `string` (or `Uint8Array`).\n * > Some compilers, such as the one configured with\n * > [`rehype-react`][rehype-react], return other values (in this case, a\n * > React tree).\n * > If you’re using a compiler that doesn’t serialize, expect different\n * > result values.\n * >\n * > To register custom results in TypeScript, add them to\n * > {@link CompileResultMap `CompileResultMap`}.\n *\n * [rehype-react]: https://github.com/rehypejs/rehype-react\n */\n process(file, done) {\n const self = this\n\n this.freeze()\n assertParser('process', this.parser || this.Parser)\n assertCompiler('process', this.compiler || this.Compiler)\n\n return done ? executor(undefined, done) : new Promise(executor)\n\n // Note: `void`s needed for TS.\n /**\n * @param {((file: VFileWithOutput) => undefined | void) | undefined} resolve\n * @param {(error: Error | undefined) => undefined | void} reject\n * @returns {undefined}\n */\n function executor(resolve, reject) {\n const realFile = vfile(file)\n // Assume `ParseTree` (the result of the parser) matches `HeadTree` (the\n // input of the first transform).\n const parseTree =\n /** @type {HeadTree extends undefined ? Node : HeadTree} */ (\n /** @type {unknown} */ (self.parse(realFile))\n )\n\n self.run(parseTree, realFile, function (error, tree, file) {\n if (error || !tree || !file) {\n return realDone(error)\n }\n\n // Assume `TailTree` (the output of the last transform) matches\n // `CompileTree` (the input of the compiler).\n const compileTree =\n /** @type {CompileTree extends undefined ? Node : CompileTree} */ (\n /** @type {unknown} */ (tree)\n )\n\n const compileResult = self.stringify(compileTree, file)\n\n if (looksLikeAValue(compileResult)) {\n file.value = compileResult\n } else {\n file.result = compileResult\n }\n\n realDone(error, /** @type {VFileWithOutput} */ (file))\n })\n\n /**\n * @param {Error | undefined} error\n * @param {VFileWithOutput | undefined} [file]\n * @returns {undefined}\n */\n function realDone(error, file) {\n if (error || !file) {\n reject(error)\n } else if (resolve) {\n resolve(file)\n } else {\n assert(done, '`done` is defined if `resolve` is not')\n done(undefined, file)\n }\n }\n }\n }\n\n /**\n * Process the given file as configured on the processor.\n *\n * An error is thrown if asynchronous transforms are configured.\n *\n * > 👉 **Note**: `processSync` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `processSync` performs the parse, run, and stringify phases.\n *\n * @param {Compatible | undefined} [file]\n * File (optional); typically `string` or `VFile`; any value accepted as\n * `x` in `new VFile(x)`.\n * @returns {VFileWithOutput}\n * The processed file.\n *\n * The parsed, transformed, and compiled value is available at\n * `file.value` (see note).\n *\n * > 👉 **Note**: unified typically compiles by serializing: most\n * > compilers return `string` (or `Uint8Array`).\n * > Some compilers, such as the one configured with\n * > [`rehype-react`][rehype-react], return other values (in this case, a\n * > React tree).\n * > If you’re using a compiler that doesn’t serialize, expect different\n * > result values.\n * >\n * > To register custom results in TypeScript, add them to\n * > {@link CompileResultMap `CompileResultMap`}.\n *\n * [rehype-react]: https://github.com/rehypejs/rehype-react\n */\n processSync(file) {\n /** @type {boolean} */\n let complete = false\n /** @type {VFileWithOutput | undefined} */\n let result\n\n this.freeze()\n assertParser('processSync', this.parser || this.Parser)\n assertCompiler('processSync', this.compiler || this.Compiler)\n\n this.process(file, realDone)\n assertDone('processSync', 'process', complete)\n assert(result, 'we either bailed on an error or have a tree')\n\n return result\n\n /**\n * @type {ProcessCallback>}\n */\n function realDone(error, file) {\n complete = true\n bail(error)\n result = file\n }\n }\n\n /**\n * Run *transformers* on a syntax tree.\n *\n * > 👉 **Note**: `run` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `run` performs the run phase, not other phases.\n *\n * @overload\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * @param {RunCallback} done\n * @returns {undefined}\n *\n * @overload\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * @param {Compatible | undefined} file\n * @param {RunCallback} done\n * @returns {undefined}\n *\n * @overload\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * @param {Compatible | undefined} [file]\n * @returns {Promise}\n *\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * Tree to transform and inspect.\n * @param {(\n * RunCallback |\n * Compatible\n * )} [file]\n * File associated with `node` (optional); any value accepted as `x` in\n * `new VFile(x)`.\n * @param {RunCallback} [done]\n * Callback (optional).\n * @returns {Promise | undefined}\n * Nothing if `done` is given.\n * Otherwise, a promise rejected with a fatal error or resolved with the\n * transformed tree.\n */\n run(tree, file, done) {\n assertNode(tree)\n this.freeze()\n\n const transformers = this.transformers\n\n if (!done && typeof file === 'function') {\n done = file\n file = undefined\n }\n\n return done ? executor(undefined, done) : new Promise(executor)\n\n // Note: `void`s needed for TS.\n /**\n * @param {(\n * ((tree: TailTree extends undefined ? Node : TailTree) => undefined | void) |\n * undefined\n * )} resolve\n * @param {(error: Error) => undefined | void} reject\n * @returns {undefined}\n */\n function executor(resolve, reject) {\n assert(\n typeof file !== 'function',\n '`file` can’t be a `done` anymore, we checked'\n )\n const realFile = vfile(file)\n transformers.run(tree, realFile, realDone)\n\n /**\n * @param {Error | undefined} error\n * @param {Node} outputTree\n * @param {VFile} file\n * @returns {undefined}\n */\n function realDone(error, outputTree, file) {\n const resultingTree =\n /** @type {TailTree extends undefined ? Node : TailTree} */ (\n outputTree || tree\n )\n\n if (error) {\n reject(error)\n } else if (resolve) {\n resolve(resultingTree)\n } else {\n assert(done, '`done` is defined if `resolve` is not')\n done(undefined, resultingTree, file)\n }\n }\n }\n }\n\n /**\n * Run *transformers* on a syntax tree.\n *\n * An error is thrown if asynchronous transforms are configured.\n *\n * > 👉 **Note**: `runSync` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `runSync` performs the run phase, not other phases.\n *\n * @param {HeadTree extends undefined ? Node : HeadTree} tree\n * Tree to transform and inspect.\n * @param {Compatible | undefined} [file]\n * File associated with `node` (optional); any value accepted as `x` in\n * `new VFile(x)`.\n * @returns {TailTree extends undefined ? Node : TailTree}\n * Transformed tree.\n */\n runSync(tree, file) {\n /** @type {boolean} */\n let complete = false\n /** @type {(TailTree extends undefined ? Node : TailTree) | undefined} */\n let result\n\n this.run(tree, file, realDone)\n\n assertDone('runSync', 'run', complete)\n assert(result, 'we either bailed on an error or have a tree')\n return result\n\n /**\n * @type {RunCallback}\n */\n function realDone(error, tree) {\n bail(error)\n result = tree\n complete = true\n }\n }\n\n /**\n * Compile a syntax tree.\n *\n * > 👉 **Note**: `stringify` freezes the processor if not already *frozen*.\n *\n * > 👉 **Note**: `stringify` performs the stringify phase, not the run phase\n * > or other phases.\n *\n * @param {CompileTree extends undefined ? Node : CompileTree} tree\n * Tree to compile.\n * @param {Compatible | undefined} [file]\n * File associated with `node` (optional); any value accepted as `x` in\n * `new VFile(x)`.\n * @returns {CompileResult extends undefined ? Value : CompileResult}\n * Textual representation of the tree (see note).\n *\n * > 👉 **Note**: unified typically compiles by serializing: most compilers\n * > return `string` (or `Uint8Array`).\n * > Some compilers, such as the one configured with\n * > [`rehype-react`][rehype-react], return other values (in this case, a\n * > React tree).\n * > If you’re using a compiler that doesn’t serialize, expect different\n * > result values.\n * >\n * > To register custom results in TypeScript, add them to\n * > {@link CompileResultMap `CompileResultMap`}.\n *\n * [rehype-react]: https://github.com/rehypejs/rehype-react\n */\n stringify(tree, file) {\n this.freeze()\n const realFile = vfile(file)\n const compiler = this.compiler || this.Compiler\n assertCompiler('stringify', compiler)\n assertNode(tree)\n\n return compiler(tree, realFile)\n }\n\n /**\n * Configure the processor to use a plugin, a list of usable values, or a\n * preset.\n *\n * If the processor is already using a plugin, the previous plugin\n * configuration is changed based on the options that are passed in.\n * In other words, the plugin is not added a second time.\n *\n * > 👉 **Note**: `use` cannot be called on *frozen* processors.\n * > Call the processor first to create a new unfrozen processor.\n *\n * @example\n * There are many ways to pass plugins to `.use()`.\n * This example gives an overview:\n *\n * ```js\n * import {unified} from 'unified'\n *\n * unified()\n * // Plugin with options:\n * .use(pluginA, {x: true, y: true})\n * // Passing the same plugin again merges configuration (to `{x: true, y: false, z: true}`):\n * .use(pluginA, {y: false, z: true})\n * // Plugins:\n * .use([pluginB, pluginC])\n * // Two plugins, the second with options:\n * .use([pluginD, [pluginE, {}]])\n * // Preset with plugins and settings:\n * .use({plugins: [pluginF, [pluginG, {}]], settings: {position: false}})\n * // Settings only:\n * .use({settings: {position: false}})\n * ```\n *\n * @template {Array} [Parameters=[]]\n * @template {Node | string | undefined} [Input=undefined]\n * @template [Output=Input]\n *\n * @overload\n * @param {Preset | null | undefined} [preset]\n * @returns {Processor}\n *\n * @overload\n * @param {PluggableList} list\n * @returns {Processor}\n *\n * @overload\n * @param {Plugin} plugin\n * @param {...(Parameters | [boolean])} parameters\n * @returns {UsePlugin}\n *\n * @param {PluggableList | Plugin | Preset | null | undefined} value\n * Usable value.\n * @param {...unknown} parameters\n * Parameters, when a plugin is given as a usable value.\n * @returns {Processor}\n * Current processor.\n */\n use(value, ...parameters) {\n const attachers = this.attachers\n const namespace = this.namespace\n\n assertUnfrozen('use', this.frozen)\n\n if (value === null || value === undefined) {\n // Empty.\n } else if (typeof value === 'function') {\n addPlugin(value, parameters)\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n addList(value)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n\n return this\n\n /**\n * @param {Pluggable} value\n * @returns {undefined}\n */\n function add(value) {\n if (typeof value === 'function') {\n addPlugin(value, [])\n } else if (typeof value === 'object') {\n if (Array.isArray(value)) {\n const [plugin, ...parameters] =\n /** @type {PluginTuple>} */ (value)\n addPlugin(plugin, parameters)\n } else {\n addPreset(value)\n }\n } else {\n throw new TypeError('Expected usable value, not `' + value + '`')\n }\n }\n\n /**\n * @param {Preset} result\n * @returns {undefined}\n */\n function addPreset(result) {\n if (!('plugins' in result) && !('settings' in result)) {\n throw new Error(\n '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'\n )\n }\n\n addList(result.plugins)\n\n if (result.settings) {\n namespace.settings = extend(true, namespace.settings, result.settings)\n }\n }\n\n /**\n * @param {PluggableList | null | undefined} plugins\n * @returns {undefined}\n */\n function addList(plugins) {\n let index = -1\n\n if (plugins === null || plugins === undefined) {\n // Empty.\n } else if (Array.isArray(plugins)) {\n while (++index < plugins.length) {\n const thing = plugins[index]\n add(thing)\n }\n } else {\n throw new TypeError('Expected a list of plugins, not `' + plugins + '`')\n }\n }\n\n /**\n * @param {Plugin} plugin\n * @param {Array} parameters\n * @returns {undefined}\n */\n function addPlugin(plugin, parameters) {\n let index = -1\n let entryIndex = -1\n\n while (++index < attachers.length) {\n if (attachers[index][0] === plugin) {\n entryIndex = index\n break\n }\n }\n\n if (entryIndex === -1) {\n attachers.push([plugin, ...parameters])\n }\n // Only set if there was at least a `primary` value, otherwise we’d change\n // `arguments.length`.\n else if (parameters.length > 0) {\n let [primary, ...rest] = parameters\n const currentPrimary = attachers[entryIndex][1]\n if (isPlainObj(currentPrimary) && isPlainObj(primary)) {\n primary = extend(true, currentPrimary, primary)\n }\n\n attachers[entryIndex] = [plugin, primary, ...rest]\n }\n }\n }\n}\n\n// Note: this returns a *callable* instance.\n// That’s why it’s documented as a function.\n/**\n * Create a new processor.\n *\n * @example\n * This example shows how a new processor can be created (from `remark`) and linked\n * to **stdin**(4) and **stdout**(4).\n *\n * ```js\n * import process from 'node:process'\n * import concatStream from 'concat-stream'\n * import {remark} from 'remark'\n *\n * process.stdin.pipe(\n * concatStream(function (buf) {\n * process.stdout.write(String(remark().processSync(buf)))\n * })\n * )\n * ```\n *\n * @returns\n * New *unfrozen* processor (`processor`).\n *\n * This processor is configured to work the same as its ancestor.\n * When the descendant processor is configured in the future it does not\n * affect the ancestral processor.\n */\nexport const unified = new Processor().freeze()\n\n/**\n * Assert a parser is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Parser}\n */\nfunction assertParser(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `parser`')\n }\n}\n\n/**\n * Assert a compiler is available.\n *\n * @param {string} name\n * @param {unknown} value\n * @returns {asserts value is Compiler}\n */\nfunction assertCompiler(name, value) {\n if (typeof value !== 'function') {\n throw new TypeError('Cannot `' + name + '` without `compiler`')\n }\n}\n\n/**\n * Assert the processor is not frozen.\n *\n * @param {string} name\n * @param {unknown} frozen\n * @returns {asserts frozen is false}\n */\nfunction assertUnfrozen(name, frozen) {\n if (frozen) {\n throw new Error(\n 'Cannot call `' +\n name +\n '` on a frozen processor.\\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.'\n )\n }\n}\n\n/**\n * Assert `node` is a unist node.\n *\n * @param {unknown} node\n * @returns {asserts node is Node}\n */\nfunction assertNode(node) {\n // `isPlainObj` unfortunately uses `any` instead of `unknown`.\n // type-coverage:ignore-next-line\n if (!isPlainObj(node) || typeof node.type !== 'string') {\n throw new TypeError('Expected node, got `' + node + '`')\n // Fine.\n }\n}\n\n/**\n * Assert that `complete` is `true`.\n *\n * @param {string} name\n * @param {string} asyncName\n * @param {unknown} complete\n * @returns {asserts complete is true}\n */\nfunction assertDone(name, asyncName, complete) {\n if (!complete) {\n throw new Error(\n '`' + name + '` finished async. Use `' + asyncName + '` instead'\n )\n }\n}\n\n/**\n * @param {Compatible | undefined} [value]\n * @returns {VFile}\n */\nfunction vfile(value) {\n return looksLikeAVFile(value) ? value : new VFile(value)\n}\n\n/**\n * @param {Compatible | undefined} [value]\n * @returns {value is VFile}\n */\nfunction looksLikeAVFile(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'message' in value &&\n 'messages' in value\n )\n}\n\n/**\n * @param {unknown} [value]\n * @returns {value is Value}\n */\nfunction looksLikeAValue(value) {\n return typeof value === 'string' || isUint8Array(value)\n}\n\n/**\n * Assert `value` is an `Uint8Array`.\n *\n * @param {unknown} value\n * thing.\n * @returns {value is Uint8Array}\n * Whether `value` is an `Uint8Array`.\n */\nfunction isUint8Array(value) {\n return Boolean(\n value &&\n typeof value === 'object' &&\n 'byteLength' in value &&\n 'byteOffset' in value\n )\n}\n","// Register `Raw` in tree:\n/// \n\n/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementContent} ElementContent\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Parents} Parents\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast-util-to-jsx-runtime').Components} JsxRuntimeComponents\n * @typedef {import('remark-rehype').Options} RemarkRehypeOptions\n * @typedef {import('unist-util-visit').BuildVisitor} Visitor\n * @typedef {import('unified').PluggableList} PluggableList\n */\n\n/**\n * @callback AllowElement\n * Filter elements.\n * @param {Readonly} element\n * Element to check.\n * @param {number} index\n * Index of `element` in `parent`.\n * @param {Readonly | undefined} parent\n * Parent of `element`.\n * @returns {boolean | null | undefined}\n * Whether to allow `element` (default: `false`).\n *\n * @typedef {Partial} Components\n * Map tag names to components.\n *\n * @typedef Deprecation\n * Deprecation.\n * @property {string} from\n * Old field.\n * @property {string} id\n * ID in readme.\n * @property {keyof Options} [to]\n * New field.\n *\n * @typedef Options\n * Configuration.\n * @property {AllowElement | null | undefined} [allowElement]\n * Filter elements (optional);\n * `allowedElements` / `disallowedElements` is used first.\n * @property {ReadonlyArray | null | undefined} [allowedElements]\n * Tag names to allow (default: all tag names);\n * cannot combine w/ `disallowedElements`.\n * @property {string | null | undefined} [children]\n * Markdown.\n * @property {string | null | undefined} [className]\n * Wrap in a `div` with this class name.\n * @property {Components | null | undefined} [components]\n * Map tag names to components.\n * @property {ReadonlyArray | null | undefined} [disallowedElements]\n * Tag names to disallow (default: `[]`);\n * cannot combine w/ `allowedElements`.\n * @property {PluggableList | null | undefined} [rehypePlugins]\n * List of rehype plugins to use.\n * @property {PluggableList | null | undefined} [remarkPlugins]\n * List of remark plugins to use.\n * @property {Readonly | null | undefined} [remarkRehypeOptions]\n * Options to pass through to `remark-rehype`.\n * @property {boolean | null | undefined} [skipHtml=false]\n * Ignore HTML in markdown completely (default: `false`).\n * @property {boolean | null | undefined} [unwrapDisallowed=false]\n * Extract (unwrap) what’s in disallowed elements (default: `false`);\n * normally when say `strong` is not allowed, it and it’s children are dropped,\n * with `unwrapDisallowed` the element itself is replaced by its children.\n * @property {UrlTransform | null | undefined} [urlTransform]\n * Change URLs (default: `defaultUrlTransform`)\n *\n * @callback UrlTransform\n * Transform all URLs.\n * @param {string} url\n * URL.\n * @param {string} key\n * Property name (example: `'href'`).\n * @param {Readonly} node\n * Node.\n * @returns {string | null | undefined}\n * Transformed URL (optional).\n */\n\nimport {unreachable} from 'devlop'\nimport {toJsxRuntime} from 'hast-util-to-jsx-runtime'\nimport {urlAttributes} from 'html-url-attributes'\n// @ts-expect-error: untyped.\nimport {Fragment, jsx, jsxs} from 'react/jsx-runtime'\nimport remarkParse from 'remark-parse'\nimport remarkRehype from 'remark-rehype'\nimport {unified} from 'unified'\nimport {visit} from 'unist-util-visit'\nimport {VFile} from 'vfile'\n\nconst changelog =\n 'https://github.com/remarkjs/react-markdown/blob/main/changelog.md'\n\n/** @type {PluggableList} */\nconst emptyPlugins = []\n/** @type {Readonly} */\nconst emptyRemarkRehypeOptions = {allowDangerousHtml: true}\nconst safeProtocol = /^(https?|ircs?|mailto|xmpp)$/i\n\n// Mutable because we `delete` any time it’s used and a message is sent.\n/** @type {ReadonlyArray>} */\nconst deprecations = [\n {from: 'astPlugins', id: 'remove-buggy-html-in-markdown-parser'},\n {from: 'allowDangerousHtml', id: 'remove-buggy-html-in-markdown-parser'},\n {\n from: 'allowNode',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes',\n to: 'allowElement'\n },\n {\n from: 'allowedTypes',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes',\n to: 'allowedElements'\n },\n {\n from: 'disallowedTypes',\n id: 'replace-allownode-allowedtypes-and-disallowedtypes',\n to: 'disallowedElements'\n },\n {from: 'escapeHtml', id: 'remove-buggy-html-in-markdown-parser'},\n {from: 'includeElementIndex', id: '#remove-includeelementindex'},\n {\n from: 'includeNodeIndex',\n id: 'change-includenodeindex-to-includeelementindex'\n },\n {from: 'linkTarget', id: 'remove-linktarget'},\n {from: 'plugins', id: 'change-plugins-to-remarkplugins', to: 'remarkPlugins'},\n {from: 'rawSourcePos', id: '#remove-rawsourcepos'},\n {from: 'renderers', id: 'change-renderers-to-components', to: 'components'},\n {from: 'source', id: 'change-source-to-children', to: 'children'},\n {from: 'sourcePos', id: '#remove-sourcepos'},\n {from: 'transformImageUri', id: '#add-urltransform', to: 'urlTransform'},\n {from: 'transformLinkUri', id: '#add-urltransform', to: 'urlTransform'}\n]\n\n/**\n * Component to render markdown.\n *\n * @param {Readonly} options\n * Props.\n * @returns {JSX.Element}\n * React element.\n */\nexport function Markdown(options) {\n const allowedElements = options.allowedElements\n const allowElement = options.allowElement\n const children = options.children || ''\n const className = options.className\n const components = options.components\n const disallowedElements = options.disallowedElements\n const rehypePlugins = options.rehypePlugins || emptyPlugins\n const remarkPlugins = options.remarkPlugins || emptyPlugins\n const remarkRehypeOptions = options.remarkRehypeOptions\n ? {...options.remarkRehypeOptions, ...emptyRemarkRehypeOptions}\n : emptyRemarkRehypeOptions\n const skipHtml = options.skipHtml\n const unwrapDisallowed = options.unwrapDisallowed\n const urlTransform = options.urlTransform || defaultUrlTransform\n\n const processor = unified()\n .use(remarkParse)\n .use(remarkPlugins)\n .use(remarkRehype, remarkRehypeOptions)\n .use(rehypePlugins)\n\n const file = new VFile()\n\n if (typeof children === 'string') {\n file.value = children\n } else {\n unreachable(\n 'Unexpected value `' +\n children +\n '` for `children` prop, expected `string`'\n )\n }\n\n if (allowedElements && disallowedElements) {\n unreachable(\n 'Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other'\n )\n }\n\n for (const deprecation of deprecations) {\n if (Object.hasOwn(options, deprecation.from)) {\n unreachable(\n 'Unexpected `' +\n deprecation.from +\n '` prop, ' +\n (deprecation.to\n ? 'use `' + deprecation.to + '` instead'\n : 'remove it') +\n ' (see <' +\n changelog +\n '#' +\n deprecation.id +\n '> for more info)'\n )\n }\n }\n\n const mdastTree = processor.parse(file)\n /** @type {Nodes} */\n let hastTree = processor.runSync(mdastTree, file)\n\n // Wrap in `div` if there’s a class name.\n if (className) {\n hastTree = {\n type: 'element',\n tagName: 'div',\n properties: {className},\n // Assume no doctypes.\n children: /** @type {Array} */ (\n hastTree.type === 'root' ? hastTree.children : [hastTree]\n )\n }\n }\n\n visit(hastTree, transform)\n\n return toJsxRuntime(hastTree, {\n Fragment,\n components,\n ignoreInvalidStyle: true,\n jsx,\n jsxs,\n passKeys: true,\n passNode: true\n })\n\n /** @type {Visitor} */\n function transform(node, index, parent) {\n if (node.type === 'raw' && parent && typeof index === 'number') {\n if (skipHtml) {\n parent.children.splice(index, 1)\n } else {\n parent.children[index] = {type: 'text', value: node.value}\n }\n\n return index\n }\n\n if (node.type === 'element') {\n /** @type {string} */\n let key\n\n for (key in urlAttributes) {\n if (\n Object.hasOwn(urlAttributes, key) &&\n Object.hasOwn(node.properties, key)\n ) {\n const value = node.properties[key]\n const test = urlAttributes[key]\n if (test === null || test.includes(node.tagName)) {\n node.properties[key] = urlTransform(String(value || ''), key, node)\n }\n }\n }\n }\n\n if (node.type === 'element') {\n let remove = allowedElements\n ? !allowedElements.includes(node.tagName)\n : disallowedElements\n ? disallowedElements.includes(node.tagName)\n : false\n\n if (!remove && allowElement && typeof index === 'number') {\n remove = !allowElement(node, index, parent)\n }\n\n if (remove && parent && typeof index === 'number') {\n if (unwrapDisallowed && node.children) {\n parent.children.splice(index, 1, ...node.children)\n } else {\n parent.children.splice(index, 1)\n }\n\n return index\n }\n }\n }\n}\n\n/**\n * Make a URL safe.\n *\n * @satisfies {UrlTransform}\n * @param {string} value\n * URL.\n * @returns {string}\n * Safe URL.\n */\nexport function defaultUrlTransform(value) {\n // Same as:\n // \n // But without the `encode` part.\n const colon = value.indexOf(':')\n const questionMark = value.indexOf('?')\n const numberSign = value.indexOf('#')\n const slash = value.indexOf('/')\n\n if (\n // If there is no protocol, it’s relative.\n colon < 0 ||\n // If the first colon is after a `?`, `#`, or `/`, it’s not a protocol.\n (slash > -1 && colon > slash) ||\n (questionMark > -1 && colon > questionMark) ||\n (numberSign > -1 && colon > numberSign) ||\n // It is a protocol, it should be allowed.\n safeProtocol.test(value.slice(0, colon))\n ) {\n return value\n }\n\n return ''\n}\n","/**\n * Count how often a character (or substring) is used in a string.\n *\n * @param {string} value\n * Value to search in.\n * @param {string} character\n * Character (or substring) to look for.\n * @return {number}\n * Number of times `character` occurred in `value`.\n */\nexport function ccount(value, character) {\n const source = String(value)\n\n if (typeof character !== 'string') {\n throw new TypeError('Expected character')\n }\n\n let count = 0\n let index = source.indexOf(character)\n\n while (index !== -1) {\n count++\n index = source.indexOf(character, index + character.length)\n }\n\n return count\n}\n","/**\n * @typedef {import('mdast').Nodes} Nodes\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast').Text} Text\n * @typedef {import('unist-util-visit-parents').Test} Test\n * @typedef {import('unist-util-visit-parents').VisitorResult} VisitorResult\n */\n\n/**\n * @typedef RegExpMatchObject\n * Info on the match.\n * @property {number} index\n * The index of the search at which the result was found.\n * @property {string} input\n * A copy of the search string in the text node.\n * @property {[...Array, Text]} stack\n * All ancestors of the text node, where the last node is the text itself.\n *\n * @typedef {RegExp | string} Find\n * Pattern to find.\n *\n * Strings are escaped and then turned into global expressions.\n *\n * @typedef {Array} FindAndReplaceList\n * Several find and replaces, in array form.\n *\n * @typedef {[Find, Replace?]} FindAndReplaceTuple\n * Find and replace in tuple form.\n *\n * @typedef {ReplaceFunction | string | null | undefined} Replace\n * Thing to replace with.\n *\n * @callback ReplaceFunction\n * Callback called when a search matches.\n * @param {...any} parameters\n * The parameters are the result of corresponding search expression:\n *\n * * `value` (`string`) — whole match\n * * `...capture` (`Array`) — matches from regex capture groups\n * * `match` (`RegExpMatchObject`) — info on the match\n * @returns {Array | PhrasingContent | string | false | null | undefined}\n * Thing to replace with.\n *\n * * when `null`, `undefined`, `''`, remove the match\n * * …or when `false`, do not replace at all\n * * …or when `string`, replace with a text node of that value\n * * …or when `Node` or `Array`, replace with those nodes\n *\n * @typedef {[RegExp, ReplaceFunction]} Pair\n * Normalized find and replace.\n *\n * @typedef {Array} Pairs\n * All find and replaced.\n *\n * @typedef Options\n * Configuration.\n * @property {Test | null | undefined} [ignore]\n * Test for which nodes to ignore (optional).\n */\n\nimport escape from 'escape-string-regexp'\nimport {visitParents} from 'unist-util-visit-parents'\nimport {convert} from 'unist-util-is'\n\n/**\n * Find patterns in a tree and replace them.\n *\n * The algorithm searches the tree in *preorder* for complete values in `Text`\n * nodes.\n * Partial matches are not supported.\n *\n * @param {Nodes} tree\n * Tree to change.\n * @param {FindAndReplaceList | FindAndReplaceTuple} list\n * Patterns to find.\n * @param {Options | null | undefined} [options]\n * Configuration (when `find` is not `Find`).\n * @returns {undefined}\n * Nothing.\n */\nexport function findAndReplace(tree, list, options) {\n const settings = options || {}\n const ignored = convert(settings.ignore || [])\n const pairs = toPairs(list)\n let pairIndex = -1\n\n while (++pairIndex < pairs.length) {\n visitParents(tree, 'text', visitor)\n }\n\n /** @type {import('unist-util-visit-parents').BuildVisitor} */\n function visitor(node, parents) {\n let index = -1\n /** @type {Parents | undefined} */\n let grandparent\n\n while (++index < parents.length) {\n const parent = parents[index]\n /** @type {Array | undefined} */\n const siblings = grandparent ? grandparent.children : undefined\n\n if (\n ignored(\n parent,\n siblings ? siblings.indexOf(parent) : undefined,\n grandparent\n )\n ) {\n return\n }\n\n grandparent = parent\n }\n\n if (grandparent) {\n return handler(node, parents)\n }\n }\n\n /**\n * Handle a text node which is not in an ignored parent.\n *\n * @param {Text} node\n * Text node.\n * @param {Array} parents\n * Parents.\n * @returns {VisitorResult}\n * Result.\n */\n function handler(node, parents) {\n const parent = parents[parents.length - 1]\n const find = pairs[pairIndex][0]\n const replace = pairs[pairIndex][1]\n let start = 0\n /** @type {Array} */\n const siblings = parent.children\n const index = siblings.indexOf(node)\n let change = false\n /** @type {Array} */\n let nodes = []\n\n find.lastIndex = 0\n\n let match = find.exec(node.value)\n\n while (match) {\n const position = match.index\n /** @type {RegExpMatchObject} */\n const matchObject = {\n index: match.index,\n input: match.input,\n stack: [...parents, node]\n }\n let value = replace(...match, matchObject)\n\n if (typeof value === 'string') {\n value = value.length > 0 ? {type: 'text', value} : undefined\n }\n\n // It wasn’t a match after all.\n if (value === false) {\n // False acts as if there was no match.\n // So we need to reset `lastIndex`, which currently being at the end of\n // the current match, to the beginning.\n find.lastIndex = position + 1\n } else {\n if (start !== position) {\n nodes.push({\n type: 'text',\n value: node.value.slice(start, position)\n })\n }\n\n if (Array.isArray(value)) {\n nodes.push(...value)\n } else if (value) {\n nodes.push(value)\n }\n\n start = position + match[0].length\n change = true\n }\n\n if (!find.global) {\n break\n }\n\n match = find.exec(node.value)\n }\n\n if (change) {\n if (start < node.value.length) {\n nodes.push({type: 'text', value: node.value.slice(start)})\n }\n\n parent.children.splice(index, 1, ...nodes)\n } else {\n nodes = [node]\n }\n\n return index + nodes.length\n }\n}\n\n/**\n * Turn a tuple or a list of tuples into pairs.\n *\n * @param {FindAndReplaceList | FindAndReplaceTuple} tupleOrList\n * Schema.\n * @returns {Pairs}\n * Clean pairs.\n */\nfunction toPairs(tupleOrList) {\n /** @type {Pairs} */\n const result = []\n\n if (!Array.isArray(tupleOrList)) {\n throw new TypeError('Expected find and replace tuple or list of tuples')\n }\n\n /** @type {FindAndReplaceList} */\n // @ts-expect-error: correct.\n const list =\n !tupleOrList[0] || Array.isArray(tupleOrList[0])\n ? tupleOrList\n : [tupleOrList]\n\n let index = -1\n\n while (++index < list.length) {\n const tuple = list[index]\n result.push([toExpression(tuple[0]), toFunction(tuple[1])])\n }\n\n return result\n}\n\n/**\n * Turn a find into an expression.\n *\n * @param {Find} find\n * Find.\n * @returns {RegExp}\n * Expression.\n */\nfunction toExpression(find) {\n return typeof find === 'string' ? new RegExp(escape(find), 'g') : find\n}\n\n/**\n * Turn a replace into a function.\n *\n * @param {Replace} replace\n * Replace.\n * @returns {ReplaceFunction}\n * Function.\n */\nfunction toFunction(replace) {\n return typeof replace === 'function'\n ? replace\n : function () {\n return replace\n }\n}\n","export default function escapeStringRegexp(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Escape characters with special meaning either inside or outside character sets.\n\t// Use a simple backslash escape when it’s always valid, and a `\\xnn` escape when the simpler form would be disallowed by Unicode patterns’ stricter grammar.\n\treturn string\n\t\t.replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&')\n\t\t.replace(/-/g, '\\\\x2d');\n}\n","/**\n * @typedef {import('mdast').Link} Link\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n * @typedef {import('mdast-util-from-markdown').Transform} FromMarkdownTransform\n *\n * @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n *\n * @typedef {import('mdast-util-find-and-replace').RegExpMatchObject} RegExpMatchObject\n * @typedef {import('mdast-util-find-and-replace').ReplaceFunction} ReplaceFunction\n */\n\nimport {ccount} from 'ccount'\nimport {ok as assert} from 'devlop'\nimport {unicodePunctuation, unicodeWhitespace} from 'micromark-util-character'\nimport {findAndReplace} from 'mdast-util-find-and-replace'\n\n/** @type {ConstructName} */\nconst inConstruct = 'phrasing'\n/** @type {Array} */\nconst notInConstruct = ['autolink', 'link', 'image', 'label']\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM autolink\n * literals in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.\n */\nexport function gfmAutolinkLiteralFromMarkdown() {\n return {\n transforms: [transformGfmAutolinkLiterals],\n enter: {\n literalAutolink: enterLiteralAutolink,\n literalAutolinkEmail: enterLiteralAutolinkValue,\n literalAutolinkHttp: enterLiteralAutolinkValue,\n literalAutolinkWww: enterLiteralAutolinkValue\n },\n exit: {\n literalAutolink: exitLiteralAutolink,\n literalAutolinkEmail: exitLiteralAutolinkEmail,\n literalAutolinkHttp: exitLiteralAutolinkHttp,\n literalAutolinkWww: exitLiteralAutolinkWww\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM autolink\n * literals in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM autolink literals.\n */\nexport function gfmAutolinkLiteralToMarkdown() {\n return {\n unsafe: [\n {\n character: '@',\n before: '[+\\\\-.\\\\w]',\n after: '[\\\\-.\\\\w]',\n inConstruct,\n notInConstruct\n },\n {\n character: '.',\n before: '[Ww]',\n after: '[\\\\-.\\\\w]',\n inConstruct,\n notInConstruct\n },\n {\n character: ':',\n before: '[ps]',\n after: '\\\\/',\n inConstruct,\n notInConstruct\n }\n ]\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterLiteralAutolink(token) {\n this.enter({type: 'link', title: null, url: '', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterLiteralAutolinkValue(token) {\n this.config.enter.autolinkProtocol.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkHttp(token) {\n this.config.exit.autolinkProtocol.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkWww(token) {\n this.config.exit.data.call(this, token)\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'link')\n node.url = 'http://' + this.sliceSerialize(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolinkEmail(token) {\n this.config.exit.autolinkEmail.call(this, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitLiteralAutolink(token) {\n this.exit(token)\n}\n\n/** @type {FromMarkdownTransform} */\nfunction transformGfmAutolinkLiterals(tree) {\n findAndReplace(\n tree,\n [\n [/(https?:\\/\\/|www(?=\\.))([-.\\w]+)([^ \\t\\r\\n]*)/gi, findUrl],\n [/([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)/g, findEmail]\n ],\n {ignore: ['link', 'linkReference']}\n )\n}\n\n/**\n * @type {ReplaceFunction}\n * @param {string} _\n * @param {string} protocol\n * @param {string} domain\n * @param {string} path\n * @param {RegExpMatchObject} match\n * @returns {Array | Link | false}\n */\n// eslint-disable-next-line max-params\nfunction findUrl(_, protocol, domain, path, match) {\n let prefix = ''\n\n // Not an expected previous character.\n if (!previous(match)) {\n return false\n }\n\n // Treat `www` as part of the domain.\n if (/^w/i.test(protocol)) {\n domain = protocol + domain\n protocol = ''\n prefix = 'http://'\n }\n\n if (!isCorrectDomain(domain)) {\n return false\n }\n\n const parts = splitUrl(domain + path)\n\n if (!parts[0]) return false\n\n /** @type {Link} */\n const result = {\n type: 'link',\n title: null,\n url: prefix + protocol + parts[0],\n children: [{type: 'text', value: protocol + parts[0]}]\n }\n\n if (parts[1]) {\n return [result, {type: 'text', value: parts[1]}]\n }\n\n return result\n}\n\n/**\n * @type {ReplaceFunction}\n * @param {string} _\n * @param {string} atext\n * @param {string} label\n * @param {RegExpMatchObject} match\n * @returns {Link | false}\n */\nfunction findEmail(_, atext, label, match) {\n if (\n // Not an expected previous character.\n !previous(match, true) ||\n // Label ends in not allowed character.\n /[-\\d_]$/.test(label)\n ) {\n return false\n }\n\n return {\n type: 'link',\n title: null,\n url: 'mailto:' + atext + '@' + label,\n children: [{type: 'text', value: atext + '@' + label}]\n }\n}\n\n/**\n * @param {string} domain\n * @returns {boolean}\n */\nfunction isCorrectDomain(domain) {\n const parts = domain.split('.')\n\n if (\n parts.length < 2 ||\n (parts[parts.length - 1] &&\n (/_/.test(parts[parts.length - 1]) ||\n !/[a-zA-Z\\d]/.test(parts[parts.length - 1]))) ||\n (parts[parts.length - 2] &&\n (/_/.test(parts[parts.length - 2]) ||\n !/[a-zA-Z\\d]/.test(parts[parts.length - 2])))\n ) {\n return false\n }\n\n return true\n}\n\n/**\n * @param {string} url\n * @returns {[string, string | undefined]}\n */\nfunction splitUrl(url) {\n const trailExec = /[!\"&'),.:;<>?\\]}]+$/.exec(url)\n\n if (!trailExec) {\n return [url, undefined]\n }\n\n url = url.slice(0, trailExec.index)\n\n let trail = trailExec[0]\n let closingParenIndex = trail.indexOf(')')\n const openingParens = ccount(url, '(')\n let closingParens = ccount(url, ')')\n\n while (closingParenIndex !== -1 && openingParens > closingParens) {\n url += trail.slice(0, closingParenIndex + 1)\n trail = trail.slice(closingParenIndex + 1)\n closingParenIndex = trail.indexOf(')')\n closingParens++\n }\n\n return [url, trail]\n}\n\n/**\n * @param {RegExpMatchObject} match\n * @param {boolean | null | undefined} [email=false]\n * @returns {boolean}\n */\nfunction previous(match, email) {\n const code = match.input.charCodeAt(match.index - 1)\n\n return (\n (match.index === 0 ||\n unicodeWhitespace(code) ||\n unicodePunctuation(code)) &&\n (!email || code !== 47)\n )\n}\n","/**\n * @typedef {import('mdast').FootnoteDefinition} FootnoteDefinition\n * @typedef {import('mdast').FootnoteReference} FootnoteReference\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Map} Map\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n */\n\nimport {ok as assert} from 'devlop'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\n\nfootnoteReference.peek = footnoteReferencePeek\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM footnotes\n * in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown`.\n */\nexport function gfmFootnoteFromMarkdown() {\n return {\n enter: {\n gfmFootnoteDefinition: enterFootnoteDefinition,\n gfmFootnoteDefinitionLabelString: enterFootnoteDefinitionLabelString,\n gfmFootnoteCall: enterFootnoteCall,\n gfmFootnoteCallString: enterFootnoteCallString\n },\n exit: {\n gfmFootnoteDefinition: exitFootnoteDefinition,\n gfmFootnoteDefinitionLabelString: exitFootnoteDefinitionLabelString,\n gfmFootnoteCall: exitFootnoteCall,\n gfmFootnoteCallString: exitFootnoteCallString\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM footnotes\n * in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown`.\n */\nexport function gfmFootnoteToMarkdown() {\n return {\n // This is on by default already.\n unsafe: [{character: '[', inConstruct: ['phrasing', 'label', 'reference']}],\n handlers: {footnoteDefinition, footnoteReference}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteDefinition(token) {\n this.enter(\n {type: 'footnoteDefinition', identifier: '', label: '', children: []},\n token\n )\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteDefinitionLabelString() {\n this.buffer()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteDefinitionLabelString(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'footnoteDefinition')\n node.label = label\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteDefinition(token) {\n this.exit(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteCall(token) {\n this.enter({type: 'footnoteReference', identifier: '', label: ''}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterFootnoteCallString() {\n this.buffer()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteCallString(token) {\n const label = this.resume()\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'footnoteReference')\n node.label = label\n node.identifier = normalizeIdentifier(\n this.sliceSerialize(token)\n ).toLowerCase()\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitFootnoteCall(token) {\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {FootnoteReference} node\n */\nfunction footnoteReference(node, _, state, info) {\n const tracker = state.createTracker(info)\n let value = tracker.move('[^')\n const exit = state.enter('footnoteReference')\n const subexit = state.enter('reference')\n value += tracker.move(\n state.safe(state.associationId(node), {\n ...tracker.current(),\n before: value,\n after: ']'\n })\n )\n subexit()\n exit()\n value += tracker.move(']')\n return value\n}\n\n/** @type {ToMarkdownHandle} */\nfunction footnoteReferencePeek() {\n return '['\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {FootnoteDefinition} node\n */\nfunction footnoteDefinition(node, _, state, info) {\n const tracker = state.createTracker(info)\n let value = tracker.move('[^')\n const exit = state.enter('footnoteDefinition')\n const subexit = state.enter('label')\n value += tracker.move(\n state.safe(state.associationId(node), {\n ...tracker.current(),\n before: value,\n after: ']'\n })\n )\n subexit()\n value += tracker.move(\n ']:' + (node.children && node.children.length > 0 ? ' ' : '')\n )\n tracker.shift(4)\n value += tracker.move(\n state.indentLines(state.containerFlow(node, tracker.current()), map)\n )\n exit()\n\n return value\n}\n\n/** @type {Map} */\nfunction map(line, index, blank) {\n if (index === 0) {\n return line\n }\n\n return (blank ? '' : ' ') + line\n}\n","/**\n * @typedef {import('mdast').Delete} Delete\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n *\n * @typedef {import('mdast-util-to-markdown').ConstructName} ConstructName\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n */\n\n/**\n * List of constructs that occur in phrasing (paragraphs, headings), but cannot\n * contain strikethrough.\n * So they sort of cancel each other out.\n * Note: could use a better name.\n *\n * Note: keep in sync with: \n *\n * @type {Array}\n */\nconst constructsWithoutStrikethrough = [\n 'autolink',\n 'destinationLiteral',\n 'destinationRaw',\n 'reference',\n 'titleQuote',\n 'titleApostrophe'\n]\n\nhandleDelete.peek = peekDelete\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM\n * strikethrough in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM strikethrough.\n */\nexport function gfmStrikethroughFromMarkdown() {\n return {\n canContainEols: ['delete'],\n enter: {strikethrough: enterStrikethrough},\n exit: {strikethrough: exitStrikethrough}\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM\n * strikethrough in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM strikethrough.\n */\nexport function gfmStrikethroughToMarkdown() {\n return {\n unsafe: [\n {\n character: '~',\n inConstruct: 'phrasing',\n notInConstruct: constructsWithoutStrikethrough\n }\n ],\n handlers: {delete: handleDelete}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterStrikethrough(token) {\n this.enter({type: 'delete', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitStrikethrough(token) {\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {Delete} node\n */\nfunction handleDelete(node, _, state, info) {\n const tracker = state.createTracker(info)\n const exit = state.enter('strikethrough')\n let value = tracker.move('~~')\n value += state.containerPhrasing(node, {\n ...tracker.current(),\n before: value,\n after: '~'\n })\n value += tracker.move('~~')\n exit()\n return value\n}\n\n/** @type {ToMarkdownHandle} */\nfunction peekDelete() {\n return '~'\n}\n","/**\n * @typedef Options\n * Configuration (optional).\n * @property {string|null|ReadonlyArray} [align]\n * One style for all columns, or styles for their respective columns.\n * Each style is either `'l'` (left), `'r'` (right), or `'c'` (center).\n * Other values are treated as `''`, which doesn’t place the colon in the\n * alignment row but does align left.\n * *Only the lowercased first character is used, so `Right` is fine.*\n * @property {boolean} [padding=true]\n * Whether to add a space of padding between delimiters and cells.\n *\n * When `true`, there is padding:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * When `false`, there is no padding:\n *\n * ```markdown\n * |Alpha|B |\n * |-----|-----|\n * |C |Delta|\n * ```\n * @property {boolean} [delimiterStart=true]\n * Whether to begin each row with the delimiter.\n *\n * > 👉 **Note**: please don’t use this: it could create fragile structures\n * > that aren’t understandable to some markdown parsers.\n *\n * When `true`, there are starting delimiters:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * When `false`, there are no starting delimiters:\n *\n * ```markdown\n * Alpha | B |\n * ----- | ----- |\n * C | Delta |\n * ```\n * @property {boolean} [delimiterEnd=true]\n * Whether to end each row with the delimiter.\n *\n * > 👉 **Note**: please don’t use this: it could create fragile structures\n * > that aren’t understandable to some markdown parsers.\n *\n * When `true`, there are ending delimiters:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * When `false`, there are no ending delimiters:\n *\n * ```markdown\n * | Alpha | B\n * | ----- | -----\n * | C | Delta\n * ```\n * @property {boolean} [alignDelimiters=true]\n * Whether to align the delimiters.\n * By default, they are aligned:\n *\n * ```markdown\n * | Alpha | B |\n * | ----- | ----- |\n * | C | Delta |\n * ```\n *\n * Pass `false` to make them staggered:\n *\n * ```markdown\n * | Alpha | B |\n * | - | - |\n * | C | Delta |\n * ```\n * @property {(value: string) => number} [stringLength]\n * Function to detect the length of table cell content.\n * This is used when aligning the delimiters (`|`) between table cells.\n * Full-width characters and emoji mess up delimiter alignment when viewing\n * the markdown source.\n * To fix this, you can pass this function, which receives the cell content\n * and returns its “visible” size.\n * Note that what is and isn’t visible depends on where the text is displayed.\n *\n * Without such a function, the following:\n *\n * ```js\n * markdownTable([\n * ['Alpha', 'Bravo'],\n * ['中文', 'Charlie'],\n * ['👩‍❤️‍👩', 'Delta']\n * ])\n * ```\n *\n * Yields:\n *\n * ```markdown\n * | Alpha | Bravo |\n * | - | - |\n * | 中文 | Charlie |\n * | 👩‍❤️‍👩 | Delta |\n * ```\n *\n * With [`string-width`](https://github.com/sindresorhus/string-width):\n *\n * ```js\n * import stringWidth from 'string-width'\n *\n * markdownTable(\n * [\n * ['Alpha', 'Bravo'],\n * ['中文', 'Charlie'],\n * ['👩‍❤️‍👩', 'Delta']\n * ],\n * {stringLength: stringWidth}\n * )\n * ```\n *\n * Yields:\n *\n * ```markdown\n * | Alpha | Bravo |\n * | ----- | ------- |\n * | 中文 | Charlie |\n * | 👩‍❤️‍👩 | Delta |\n * ```\n */\n\n/**\n * @typedef {Options} MarkdownTableOptions\n * @todo\n * Remove next major.\n */\n\n/**\n * Generate a markdown ([GFM](https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/organizing-information-with-tables)) table..\n *\n * @param {ReadonlyArray>} table\n * Table data (matrix of strings).\n * @param {Options} [options]\n * Configuration (optional).\n * @returns {string}\n */\nexport function markdownTable(table, options = {}) {\n const align = (options.align || []).concat()\n const stringLength = options.stringLength || defaultStringLength\n /** @type {Array} Character codes as symbols for alignment per column. */\n const alignments = []\n /** @type {Array>} Cells per row. */\n const cellMatrix = []\n /** @type {Array>} Sizes of each cell per row. */\n const sizeMatrix = []\n /** @type {Array} */\n const longestCellByColumn = []\n let mostCellsPerRow = 0\n let rowIndex = -1\n\n // This is a superfluous loop if we don’t align delimiters, but otherwise we’d\n // do superfluous work when aligning, so optimize for aligning.\n while (++rowIndex < table.length) {\n /** @type {Array} */\n const row = []\n /** @type {Array} */\n const sizes = []\n let columnIndex = -1\n\n if (table[rowIndex].length > mostCellsPerRow) {\n mostCellsPerRow = table[rowIndex].length\n }\n\n while (++columnIndex < table[rowIndex].length) {\n const cell = serialize(table[rowIndex][columnIndex])\n\n if (options.alignDelimiters !== false) {\n const size = stringLength(cell)\n sizes[columnIndex] = size\n\n if (\n longestCellByColumn[columnIndex] === undefined ||\n size > longestCellByColumn[columnIndex]\n ) {\n longestCellByColumn[columnIndex] = size\n }\n }\n\n row.push(cell)\n }\n\n cellMatrix[rowIndex] = row\n sizeMatrix[rowIndex] = sizes\n }\n\n // Figure out which alignments to use.\n let columnIndex = -1\n\n if (typeof align === 'object' && 'length' in align) {\n while (++columnIndex < mostCellsPerRow) {\n alignments[columnIndex] = toAlignment(align[columnIndex])\n }\n } else {\n const code = toAlignment(align)\n\n while (++columnIndex < mostCellsPerRow) {\n alignments[columnIndex] = code\n }\n }\n\n // Inject the alignment row.\n columnIndex = -1\n /** @type {Array} */\n const row = []\n /** @type {Array} */\n const sizes = []\n\n while (++columnIndex < mostCellsPerRow) {\n const code = alignments[columnIndex]\n let before = ''\n let after = ''\n\n if (code === 99 /* `c` */) {\n before = ':'\n after = ':'\n } else if (code === 108 /* `l` */) {\n before = ':'\n } else if (code === 114 /* `r` */) {\n after = ':'\n }\n\n // There *must* be at least one hyphen-minus in each alignment cell.\n let size =\n options.alignDelimiters === false\n ? 1\n : Math.max(\n 1,\n longestCellByColumn[columnIndex] - before.length - after.length\n )\n\n const cell = before + '-'.repeat(size) + after\n\n if (options.alignDelimiters !== false) {\n size = before.length + size + after.length\n\n if (size > longestCellByColumn[columnIndex]) {\n longestCellByColumn[columnIndex] = size\n }\n\n sizes[columnIndex] = size\n }\n\n row[columnIndex] = cell\n }\n\n // Inject the alignment row.\n cellMatrix.splice(1, 0, row)\n sizeMatrix.splice(1, 0, sizes)\n\n rowIndex = -1\n /** @type {Array} */\n const lines = []\n\n while (++rowIndex < cellMatrix.length) {\n const row = cellMatrix[rowIndex]\n const sizes = sizeMatrix[rowIndex]\n columnIndex = -1\n /** @type {Array} */\n const line = []\n\n while (++columnIndex < mostCellsPerRow) {\n const cell = row[columnIndex] || ''\n let before = ''\n let after = ''\n\n if (options.alignDelimiters !== false) {\n const size =\n longestCellByColumn[columnIndex] - (sizes[columnIndex] || 0)\n const code = alignments[columnIndex]\n\n if (code === 114 /* `r` */) {\n before = ' '.repeat(size)\n } else if (code === 99 /* `c` */) {\n if (size % 2) {\n before = ' '.repeat(size / 2 + 0.5)\n after = ' '.repeat(size / 2 - 0.5)\n } else {\n before = ' '.repeat(size / 2)\n after = before\n }\n } else {\n after = ' '.repeat(size)\n }\n }\n\n if (options.delimiterStart !== false && !columnIndex) {\n line.push('|')\n }\n\n if (\n options.padding !== false &&\n // Don’t add the opening space if we’re not aligning and the cell is\n // empty: there will be a closing space.\n !(options.alignDelimiters === false && cell === '') &&\n (options.delimiterStart !== false || columnIndex)\n ) {\n line.push(' ')\n }\n\n if (options.alignDelimiters !== false) {\n line.push(before)\n }\n\n line.push(cell)\n\n if (options.alignDelimiters !== false) {\n line.push(after)\n }\n\n if (options.padding !== false) {\n line.push(' ')\n }\n\n if (\n options.delimiterEnd !== false ||\n columnIndex !== mostCellsPerRow - 1\n ) {\n line.push('|')\n }\n }\n\n lines.push(\n options.delimiterEnd === false\n ? line.join('').replace(/ +$/, '')\n : line.join('')\n )\n }\n\n return lines.join('\\n')\n}\n\n/**\n * @param {string|null|undefined} [value]\n * @returns {string}\n */\nfunction serialize(value) {\n return value === null || value === undefined ? '' : String(value)\n}\n\n/**\n * @param {string} value\n * @returns {number}\n */\nfunction defaultStringLength(value) {\n return value.length\n}\n\n/**\n * @param {string|null|undefined} value\n * @returns {number}\n */\nfunction toAlignment(value) {\n const code = typeof value === 'string' ? value.codePointAt(0) : 0\n\n return code === 67 /* `C` */ || code === 99 /* `c` */\n ? 99 /* `c` */\n : code === 76 /* `L` */ || code === 108 /* `l` */\n ? 108 /* `l` */\n : code === 82 /* `R` */ || code === 114 /* `r` */\n ? 114 /* `r` */\n : 0\n}\n","/**\n * @typedef {import('mdast').Blockquote} Blockquote\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').Map} Map\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {Blockquote} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function blockquote(node, _, state, info) {\n const exit = state.enter('blockquote')\n const tracker = state.createTracker(info)\n tracker.move('> ')\n tracker.shift(2)\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return '>' + (blank ? '' : ' ') + line\n}\n","/**\n * @typedef {import('../types.js').ConstructName} ConstructName\n * @typedef {import('../types.js').Unsafe} Unsafe\n */\n\n/**\n * @param {Array} stack\n * @param {Unsafe} pattern\n * @returns {boolean}\n */\nexport function patternInScope(stack, pattern) {\n return (\n listInScope(stack, pattern.inConstruct, true) &&\n !listInScope(stack, pattern.notInConstruct, false)\n )\n}\n\n/**\n * @param {Array} stack\n * @param {Unsafe['inConstruct']} list\n * @param {boolean} none\n * @returns {boolean}\n */\nfunction listInScope(stack, list, none) {\n if (typeof list === 'string') {\n list = [list]\n }\n\n if (!list || list.length === 0) {\n return none\n }\n\n let index = -1\n\n while (++index < list.length) {\n if (stack.includes(list[index])) {\n return true\n }\n }\n\n return false\n}\n","/**\n * @typedef {import('mdast').Break} Break\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {patternInScope} from '../util/pattern-in-scope.js'\n\n/**\n * @param {Break} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function hardBreak(_, _1, state, info) {\n let index = -1\n\n while (++index < state.unsafe.length) {\n // If we can’t put eols in this construct (setext headings, tables), use a\n // space instead.\n if (\n state.unsafe[index].character === '\\n' &&\n patternInScope(state.stack, state.unsafe[index])\n ) {\n return /[ \\t]/.test(info.before) ? '' : ' '\n }\n }\n\n return '\\\\\\n'\n}\n","/**\n * @typedef {import('mdast').Code} Code\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').Map} Map\n * @typedef {import('../types.js').State} State\n */\n\nimport {longestStreak} from 'longest-streak'\nimport {formatCodeAsIndented} from '../util/format-code-as-indented.js'\nimport {checkFence} from '../util/check-fence.js'\n\n/**\n * @param {Code} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function code(node, _, state, info) {\n const marker = checkFence(state)\n const raw = node.value || ''\n const suffix = marker === '`' ? 'GraveAccent' : 'Tilde'\n\n if (formatCodeAsIndented(node, state)) {\n const exit = state.enter('codeIndented')\n const value = state.indentLines(raw, map)\n exit()\n return value\n }\n\n const tracker = state.createTracker(info)\n const sequence = marker.repeat(Math.max(longestStreak(raw, marker) + 1, 3))\n const exit = state.enter('codeFenced')\n let value = tracker.move(sequence)\n\n if (node.lang) {\n const subexit = state.enter(`codeFencedLang${suffix}`)\n value += tracker.move(\n state.safe(node.lang, {\n before: value,\n after: ' ',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n if (node.lang && node.meta) {\n const subexit = state.enter(`codeFencedMeta${suffix}`)\n value += tracker.move(' ')\n value += tracker.move(\n state.safe(node.meta, {\n before: value,\n after: '\\n',\n encode: ['`'],\n ...tracker.current()\n })\n )\n subexit()\n }\n\n value += tracker.move('\\n')\n\n if (raw) {\n value += tracker.move(raw + '\\n')\n }\n\n value += tracker.move(sequence)\n exit()\n return value\n}\n\n/** @type {Map} */\nfunction map(line, _, blank) {\n return (blank ? '' : ' ') + line\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkQuote(state) {\n const marker = state.options.quote || '\"'\n\n if (marker !== '\"' && marker !== \"'\") {\n throw new Error(\n 'Cannot serialize title with `' +\n marker +\n '` for `options.quote`, expected `\"`, or `\\'`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('mdast').Emphasis} Emphasis\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkEmphasis} from '../util/check-emphasis.js'\n\nemphasis.peek = emphasisPeek\n\n// To do: there are cases where emphasis cannot “form” depending on the\n// previous or next character of sequences.\n// There’s no way around that though, except for injecting zero-width stuff.\n// Do we need to safeguard against that?\n/**\n * @param {Emphasis} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function emphasis(node, _, state, info) {\n const marker = checkEmphasis(state)\n const exit = state.enter('emphasis')\n const tracker = state.createTracker(info)\n let value = tracker.move(marker)\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: marker,\n ...tracker.current()\n })\n )\n value += tracker.move(marker)\n exit()\n return value\n}\n\n/**\n * @param {Emphasis} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction emphasisPeek(_, _1, state) {\n return state.options.emphasis || '*'\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkEmphasis(state) {\n const marker = state.options.emphasis || '*'\n\n if (marker !== '*' && marker !== '_') {\n throw new Error(\n 'Cannot serialize emphasis with `' +\n marker +\n '` for `options.emphasis`, expected `*`, or `_`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('mdast').Html} Html\n */\n\nhtml.peek = htmlPeek\n\n/**\n * @param {Html} node\n * @returns {string}\n */\nexport function html(node) {\n return node.value || ''\n}\n\n/**\n * @returns {string}\n */\nfunction htmlPeek() {\n return '<'\n}\n","/**\n * @typedef {import('mdast').Image} Image\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\nimage.peek = imagePeek\n\n/**\n * @param {Image} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function image(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('image')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n value += tracker.move(\n state.safe(node.alt, {before: value, after: ']', ...tracker.current()})\n )\n value += tracker.move('](')\n\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n exit()\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imagePeek() {\n return '!'\n}\n","/**\n * @typedef {import('mdast').ImageReference} ImageReference\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimageReference.peek = imageReferencePeek\n\n/**\n * @param {ImageReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function imageReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('imageReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('![')\n const alt = state.safe(node.alt, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(alt + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !alt || alt !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction imageReferencePeek() {\n return '!'\n}\n","/**\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').State} State\n */\n\ninlineCode.peek = inlineCodePeek\n\n/**\n * @param {InlineCode} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nexport function inlineCode(node, _, state) {\n let value = node.value || ''\n let sequence = '`'\n let index = -1\n\n // If there is a single grave accent on its own in the code, use a fence of\n // two.\n // If there are two in a row, use one.\n while (new RegExp('(^|[^`])' + sequence + '([^`]|$)').test(value)) {\n sequence += '`'\n }\n\n // If this is not just spaces or eols (tabs don’t count), and either the\n // first or last character are a space, eol, or tick, then pad with spaces.\n if (\n /[^ \\r\\n]/.test(value) &&\n ((/^[ \\r\\n]/.test(value) && /[ \\r\\n]$/.test(value)) || /^`|`$/.test(value))\n ) {\n value = ' ' + value + ' '\n }\n\n // We have a potential problem: certain characters after eols could result in\n // blocks being seen.\n // For example, if someone injected the string `'\\n# b'`, then that would\n // result in an ATX heading.\n // We can’t escape characters in `inlineCode`, but because eols are\n // transformed to spaces when going from markdown to HTML anyway, we can swap\n // them out.\n while (++index < state.unsafe.length) {\n const pattern = state.unsafe[index]\n const expression = state.compilePattern(pattern)\n /** @type {RegExpExecArray | null} */\n let match\n\n // Only look for `atBreak`s.\n // Btw: note that `atBreak` patterns will always start the regex at LF or\n // CR.\n if (!pattern.atBreak) continue\n\n while ((match = expression.exec(value))) {\n let position = match.index\n\n // Support CRLF (patterns only look for one of the characters).\n if (\n value.charCodeAt(position) === 10 /* `\\n` */ &&\n value.charCodeAt(position - 1) === 13 /* `\\r` */\n ) {\n position--\n }\n\n value = value.slice(0, position) + ' ' + value.slice(match.index + 1)\n }\n }\n\n return sequence + value + sequence\n}\n\n/**\n * @returns {string}\n */\nfunction inlineCodePeek() {\n return '`'\n}\n","/**\n * @typedef {import('mdast').Link} Link\n * @typedef {import('../types.js').State} State\n */\n\nimport {toString} from 'mdast-util-to-string'\n\n/**\n * @param {Link} node\n * @param {State} state\n * @returns {boolean}\n */\nexport function formatLinkAsAutolink(node, state) {\n const raw = toString(node)\n\n return Boolean(\n !state.options.resourceLink &&\n // If there’s a url…\n node.url &&\n // And there’s a no title…\n !node.title &&\n // And the content of `node` is a single text node…\n node.children &&\n node.children.length === 1 &&\n node.children[0].type === 'text' &&\n // And if the url is the same as the content…\n (raw === node.url || 'mailto:' + raw === node.url) &&\n // And that starts w/ a protocol…\n /^[a-z][a-z+.-]+:/i.test(node.url) &&\n // And that doesn’t contain ASCII control codes (character escapes and\n // references don’t work), space, or angle brackets…\n !/[\\0- <>\\u007F]/.test(node.url)\n )\n}\n","/**\n * @typedef {import('mdast').Link} Link\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Exit} Exit\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkQuote} from '../util/check-quote.js'\nimport {formatLinkAsAutolink} from '../util/format-link-as-autolink.js'\n\nlink.peek = linkPeek\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function link(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const tracker = state.createTracker(info)\n /** @type {Exit} */\n let exit\n /** @type {Exit} */\n let subexit\n\n if (formatLinkAsAutolink(node, state)) {\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n exit = state.enter('autolink')\n let value = tracker.move('<')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '>',\n ...tracker.current()\n })\n )\n value += tracker.move('>')\n exit()\n state.stack = stack\n return value\n }\n\n exit = state.enter('link')\n subexit = state.enter('label')\n let value = tracker.move('[')\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: '](',\n ...tracker.current()\n })\n )\n value += tracker.move('](')\n subexit()\n\n if (\n // If there’s no url but there is a title…\n (!node.url && node.title) ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : ')',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n value += tracker.move(')')\n\n exit()\n return value\n}\n\n/**\n * @param {Link} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @returns {string}\n */\nfunction linkPeek(node, _, state) {\n return formatLinkAsAutolink(node, state) ? '<' : '['\n}\n","/**\n * @typedef {import('mdast').LinkReference} LinkReference\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nlinkReference.peek = linkReferencePeek\n\n/**\n * @param {LinkReference} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function linkReference(node, _, state, info) {\n const type = node.referenceType\n const exit = state.enter('linkReference')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n const text = state.containerPhrasing(node, {\n before: value,\n after: ']',\n ...tracker.current()\n })\n value += tracker.move(text + '][')\n\n subexit()\n // Hide the fact that we’re in phrasing, because escapes don’t work.\n const stack = state.stack\n state.stack = []\n subexit = state.enter('reference')\n // Note: for proper tracking, we should reset the output positions when we end\n // up making a `shortcut` reference, because then there is no brace output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n const reference = state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n subexit()\n state.stack = stack\n exit()\n\n if (type === 'full' || !text || text !== reference) {\n value += tracker.move(reference + ']')\n } else if (type === 'shortcut') {\n // Remove the unwanted `[`.\n value = value.slice(0, -1)\n } else {\n value += tracker.move(']')\n }\n\n return value\n}\n\n/**\n * @returns {string}\n */\nfunction linkReferencePeek() {\n return '['\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkBullet(state) {\n const marker = state.options.bullet || '*'\n\n if (marker !== '*' && marker !== '+' && marker !== '-') {\n throw new Error(\n 'Cannot serialize items with `' +\n marker +\n '` for `options.bullet`, expected `*`, `+`, or `-`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkRule(state) {\n const marker = state.options.rule || '*'\n\n if (marker !== '*' && marker !== '-' && marker !== '_') {\n throw new Error(\n 'Cannot serialize rules with `' +\n marker +\n '` for `options.rule`, expected `*`, `-`, or `_`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('mdast').PhrasingContent} PhrasingContent\n */\n\nimport {convert} from 'unist-util-is'\n\n/**\n * Check if the given value is *phrasing content*.\n *\n * > 👉 **Note**: Excludes `html`, which can be both phrasing or flow.\n *\n * @param node\n * Thing to check, typically `Node`.\n * @returns\n * Whether `value` is phrasing content.\n */\n\nexport const phrasing =\n /** @type {(node?: unknown) => node is PhrasingContent} */\n (\n convert([\n 'break',\n 'delete',\n 'emphasis',\n 'footnote',\n 'footnoteReference',\n 'image',\n 'imageReference',\n 'inlineCode',\n 'link',\n 'linkReference',\n 'strong',\n 'text'\n ])\n )\n","/**\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').Strong} Strong\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkStrong} from '../util/check-strong.js'\n\nstrong.peek = strongPeek\n\n// To do: there are cases where emphasis cannot “form” depending on the\n// previous or next character of sequences.\n// There’s no way around that though, except for injecting zero-width stuff.\n// Do we need to safeguard against that?\n/**\n * @param {Strong} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function strong(node, _, state, info) {\n const marker = checkStrong(state)\n const exit = state.enter('strong')\n const tracker = state.createTracker(info)\n let value = tracker.move(marker + marker)\n value += tracker.move(\n state.containerPhrasing(node, {\n before: value,\n after: marker,\n ...tracker.current()\n })\n )\n value += tracker.move(marker + marker)\n exit()\n return value\n}\n\n/**\n * @param {Strong} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nfunction strongPeek(_, _1, state) {\n return state.options.strong || '*'\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkStrong(state) {\n const marker = state.options.strong || '*'\n\n if (marker !== '*' && marker !== '_') {\n throw new Error(\n 'Cannot serialize strong with `' +\n marker +\n '` for `options.strong`, expected `*`, or `_`'\n )\n }\n\n return marker\n}\n","import {blockquote} from './blockquote.js'\nimport {hardBreak} from './break.js'\nimport {code} from './code.js'\nimport {definition} from './definition.js'\nimport {emphasis} from './emphasis.js'\nimport {heading} from './heading.js'\nimport {html} from './html.js'\nimport {image} from './image.js'\nimport {imageReference} from './image-reference.js'\nimport {inlineCode} from './inline-code.js'\nimport {link} from './link.js'\nimport {linkReference} from './link-reference.js'\nimport {list} from './list.js'\nimport {listItem} from './list-item.js'\nimport {paragraph} from './paragraph.js'\nimport {root} from './root.js'\nimport {strong} from './strong.js'\nimport {text} from './text.js'\nimport {thematicBreak} from './thematic-break.js'\n\n/**\n * Default (CommonMark) handlers.\n */\nexport const handle = {\n blockquote,\n break: hardBreak,\n code,\n definition,\n emphasis,\n hardBreak,\n heading,\n html,\n image,\n imageReference,\n inlineCode,\n link,\n linkReference,\n list,\n listItem,\n paragraph,\n root,\n strong,\n text,\n thematicBreak\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkFence(state) {\n const marker = state.options.fence || '`'\n\n if (marker !== '`' && marker !== '~') {\n throw new Error(\n 'Cannot serialize code with `' +\n marker +\n '` for `options.fence`, expected `` ` `` or `~`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('mdast').Code} Code\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {Code} node\n * @param {State} state\n * @returns {boolean}\n */\nexport function formatCodeAsIndented(node, state) {\n return Boolean(\n state.options.fences === false &&\n node.value &&\n // If there’s no info…\n !node.lang &&\n // And there’s a non-whitespace character…\n /[^ \\r\\n]/.test(node.value) &&\n // And the value doesn’t start or end in a blank…\n !/^[\\t ]*(?:[\\r\\n]|$)|(?:^|[\\r\\n])[\\t ]*$/.test(node.value)\n )\n}\n","/**\n * Get the count of the longest repeating streak of `substring` in `value`.\n *\n * @param {string} value\n * Content to search in.\n * @param {string} substring\n * Substring to look for, typically one character.\n * @returns {number}\n * Count of most frequent adjacent `substring`s in `value`.\n */\nexport function longestStreak(value, substring) {\n const source = String(value)\n let index = source.indexOf(substring)\n let expected = index\n let count = 0\n let max = 0\n\n if (typeof substring !== 'string') {\n throw new TypeError('Expected substring')\n }\n\n while (index !== -1) {\n if (index === expected) {\n if (++count > max) {\n max = count\n }\n } else {\n count = 1\n }\n\n expected = index + substring.length\n index = source.indexOf(substring, expected)\n }\n\n return max\n}\n","/**\n * @typedef {import('mdast').Definition} Definition\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkQuote} from '../util/check-quote.js'\n\n/**\n * @param {Definition} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function definition(node, _, state, info) {\n const quote = checkQuote(state)\n const suffix = quote === '\"' ? 'Quote' : 'Apostrophe'\n const exit = state.enter('definition')\n let subexit = state.enter('label')\n const tracker = state.createTracker(info)\n let value = tracker.move('[')\n value += tracker.move(\n state.safe(state.associationId(node), {\n before: value,\n after: ']',\n ...tracker.current()\n })\n )\n value += tracker.move(']: ')\n\n subexit()\n\n if (\n // If there’s no url, or…\n !node.url ||\n // If there are control characters or whitespace.\n /[\\0- \\u007F]/.test(node.url)\n ) {\n subexit = state.enter('destinationLiteral')\n value += tracker.move('<')\n value += tracker.move(\n state.safe(node.url, {before: value, after: '>', ...tracker.current()})\n )\n value += tracker.move('>')\n } else {\n // No whitespace, raw is prettier.\n subexit = state.enter('destinationRaw')\n value += tracker.move(\n state.safe(node.url, {\n before: value,\n after: node.title ? ' ' : '\\n',\n ...tracker.current()\n })\n )\n }\n\n subexit()\n\n if (node.title) {\n subexit = state.enter(`title${suffix}`)\n value += tracker.move(' ' + quote)\n value += tracker.move(\n state.safe(node.title, {\n before: value,\n after: quote,\n ...tracker.current()\n })\n )\n value += tracker.move(quote)\n subexit()\n }\n\n exit()\n\n return value\n}\n","/**\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {formatHeadingAsSetext} from '../util/format-heading-as-setext.js'\n\n/**\n * @param {Heading} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function heading(node, _, state, info) {\n const rank = Math.max(Math.min(6, node.depth || 1), 1)\n const tracker = state.createTracker(info)\n\n if (formatHeadingAsSetext(node, state)) {\n const exit = state.enter('headingSetext')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...tracker.current(),\n before: '\\n',\n after: '\\n'\n })\n subexit()\n exit()\n\n return (\n value +\n '\\n' +\n (rank === 1 ? '=' : '-').repeat(\n // The whole size…\n value.length -\n // Minus the position of the character after the last EOL (or\n // 0 if there is none)…\n (Math.max(value.lastIndexOf('\\r'), value.lastIndexOf('\\n')) + 1)\n )\n )\n }\n\n const sequence = '#'.repeat(rank)\n const exit = state.enter('headingAtx')\n const subexit = state.enter('phrasing')\n\n // Note: for proper tracking, we should reset the output positions when there\n // is no content returned, because then the space is not output.\n // Practically, in that case, there is no content, so it doesn’t matter that\n // we’ve tracked one too many characters.\n tracker.move(sequence + ' ')\n\n let value = state.containerPhrasing(node, {\n before: '# ',\n after: '\\n',\n ...tracker.current()\n })\n\n if (/^[\\t ]/.test(value)) {\n // To do: what effect has the character reference on tracking?\n value =\n '&#x' +\n value.charCodeAt(0).toString(16).toUpperCase() +\n ';' +\n value.slice(1)\n }\n\n value = value ? sequence + ' ' + value : sequence\n\n if (state.options.closeAtx) {\n value += ' ' + sequence\n }\n\n subexit()\n exit()\n\n return value\n}\n","/**\n * @typedef {import('mdast').Heading} Heading\n * @typedef {import('../types.js').State} State\n */\n\nimport {EXIT, visit} from 'unist-util-visit'\nimport {toString} from 'mdast-util-to-string'\n\n/**\n * @param {Heading} node\n * @param {State} state\n * @returns {boolean}\n */\nexport function formatHeadingAsSetext(node, state) {\n let literalWithBreak = false\n\n // Look for literals with a line break.\n // Note that this also\n visit(node, function (node) {\n if (\n ('value' in node && /\\r?\\n|\\r/.test(node.value)) ||\n node.type === 'break'\n ) {\n literalWithBreak = true\n return EXIT\n }\n })\n\n return Boolean(\n (!node.depth || node.depth < 3) &&\n toString(node) &&\n (state.options.setext || literalWithBreak)\n )\n}\n","/**\n * @typedef {import('mdast').List} List\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkBulletOther} from '../util/check-bullet-other.js'\nimport {checkBulletOrdered} from '../util/check-bullet-ordered.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {List} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function list(node, parent, state, info) {\n const exit = state.enter('list')\n const bulletCurrent = state.bulletCurrent\n /** @type {string} */\n let bullet = node.ordered ? checkBulletOrdered(state) : checkBullet(state)\n /** @type {string} */\n const bulletOther = node.ordered\n ? bullet === '.'\n ? ')'\n : '.'\n : checkBulletOther(state)\n let useDifferentMarker =\n parent && state.bulletLastUsed ? bullet === state.bulletLastUsed : false\n\n if (!node.ordered) {\n const firstListItem = node.children ? node.children[0] : undefined\n\n // If there’s an empty first list item directly in two list items,\n // we have to use a different bullet:\n //\n // ```markdown\n // * - *\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (\n // Bullet could be used as a thematic break marker:\n (bullet === '*' || bullet === '-') &&\n // Empty first list item:\n firstListItem &&\n (!firstListItem.children || !firstListItem.children[0]) &&\n // Directly in two other list items:\n state.stack[state.stack.length - 1] === 'list' &&\n state.stack[state.stack.length - 2] === 'listItem' &&\n state.stack[state.stack.length - 3] === 'list' &&\n state.stack[state.stack.length - 4] === 'listItem' &&\n // That are each the first child.\n state.indexStack[state.indexStack.length - 1] === 0 &&\n state.indexStack[state.indexStack.length - 2] === 0 &&\n state.indexStack[state.indexStack.length - 3] === 0\n ) {\n useDifferentMarker = true\n }\n\n // If there’s a thematic break at the start of the first list item,\n // we have to use a different bullet:\n //\n // ```markdown\n // * ---\n // ```\n //\n // …because otherwise it would become one big thematic break.\n if (checkRule(state) === bullet && firstListItem) {\n let index = -1\n\n while (++index < node.children.length) {\n const item = node.children[index]\n\n if (\n item &&\n item.type === 'listItem' &&\n item.children &&\n item.children[0] &&\n item.children[0].type === 'thematicBreak'\n ) {\n useDifferentMarker = true\n break\n }\n }\n }\n }\n\n if (useDifferentMarker) {\n bullet = bulletOther\n }\n\n state.bulletCurrent = bullet\n const value = state.containerFlow(node, info)\n state.bulletLastUsed = bullet\n state.bulletCurrent = bulletCurrent\n exit()\n return value\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkBulletOrdered(state) {\n const marker = state.options.bulletOrdered || '.'\n\n if (marker !== '.' && marker !== ')') {\n throw new Error(\n 'Cannot serialize items with `' +\n marker +\n '` for `options.bulletOrdered`, expected `.` or `)`'\n )\n }\n\n return marker\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkBullet} from './check-bullet.js'\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkBulletOther(state) {\n const bullet = checkBullet(state)\n const bulletOther = state.options.bulletOther\n\n if (!bulletOther) {\n return bullet === '*' ? '-' : '*'\n }\n\n if (bulletOther !== '*' && bulletOther !== '+' && bulletOther !== '-') {\n throw new Error(\n 'Cannot serialize items with `' +\n bulletOther +\n '` for `options.bulletOther`, expected `*`, `+`, or `-`'\n )\n }\n\n if (bulletOther === bullet) {\n throw new Error(\n 'Expected `bullet` (`' +\n bullet +\n '`) and `bulletOther` (`' +\n bulletOther +\n '`) to be different'\n )\n }\n\n return bulletOther\n}\n","/**\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').Map} Map\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkBullet} from '../util/check-bullet.js'\nimport {checkListItemIndent} from '../util/check-list-item-indent.js'\n\n/**\n * @param {ListItem} node\n * @param {Parents | undefined} parent\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function listItem(node, parent, state, info) {\n const listItemIndent = checkListItemIndent(state)\n let bullet = state.bulletCurrent || checkBullet(state)\n\n // Add the marker value for ordered lists.\n if (parent && parent.type === 'list' && parent.ordered) {\n bullet =\n (typeof parent.start === 'number' && parent.start > -1\n ? parent.start\n : 1) +\n (state.options.incrementListMarker === false\n ? 0\n : parent.children.indexOf(node)) +\n bullet\n }\n\n let size = bullet.length + 1\n\n if (\n listItemIndent === 'tab' ||\n (listItemIndent === 'mixed' &&\n ((parent && parent.type === 'list' && parent.spread) || node.spread))\n ) {\n size = Math.ceil(size / 4) * 4\n }\n\n const tracker = state.createTracker(info)\n tracker.move(bullet + ' '.repeat(size - bullet.length))\n tracker.shift(size)\n const exit = state.enter('listItem')\n const value = state.indentLines(\n state.containerFlow(node, tracker.current()),\n map\n )\n exit()\n\n return value\n\n /** @type {Map} */\n function map(line, index, blank) {\n if (index) {\n return (blank ? '' : ' '.repeat(size)) + line\n }\n\n return (blank ? bullet : bullet + ' '.repeat(size - bullet.length)) + line\n }\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkListItemIndent(state) {\n const style = state.options.listItemIndent || 'one'\n\n if (style !== 'tab' && style !== 'one' && style !== 'mixed') {\n throw new Error(\n 'Cannot serialize items with `' +\n style +\n '` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`'\n )\n }\n\n return style\n}\n","/**\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {Paragraph} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function paragraph(node, _, state, info) {\n const exit = state.enter('paragraph')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, info)\n subexit()\n exit()\n return value\n}\n","/**\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').Root} Root\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\nimport {phrasing} from 'mdast-util-phrasing'\n\n/**\n * @param {Root} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function root(node, _, state, info) {\n // Note: `html` nodes are ambiguous.\n const hasPhrasing = node.children.some(function (d) {\n return phrasing(d)\n })\n const fn = hasPhrasing ? state.containerPhrasing : state.containerFlow\n return fn.call(state, node, info)\n}\n","/**\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').Text} Text\n * @typedef {import('../types.js').Info} Info\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {Text} node\n * @param {Parents | undefined} _\n * @param {State} state\n * @param {Info} info\n * @returns {string}\n */\nexport function text(node, _, state, info) {\n return state.safe(node.value, info)\n}\n","/**\n * @typedef {import('mdast').Parents} Parents\n * @typedef {import('mdast').ThematicBreak} ThematicBreak\n * @typedef {import('../types.js').State} State\n */\n\nimport {checkRuleRepetition} from '../util/check-rule-repetition.js'\nimport {checkRule} from '../util/check-rule.js'\n\n/**\n * @param {ThematicBreak} _\n * @param {Parents | undefined} _1\n * @param {State} state\n * @returns {string}\n */\nexport function thematicBreak(_, _1, state) {\n const value = (\n checkRule(state) + (state.options.ruleSpaces ? ' ' : '')\n ).repeat(checkRuleRepetition(state))\n\n return state.options.ruleSpaces ? value.slice(0, -1) : value\n}\n","/**\n * @typedef {import('../types.js').Options} Options\n * @typedef {import('../types.js').State} State\n */\n\n/**\n * @param {State} state\n * @returns {Exclude}\n */\nexport function checkRuleRepetition(state) {\n const repetition = state.options.ruleRepetition || 3\n\n if (repetition < 3) {\n throw new Error(\n 'Cannot serialize rules with repetition `' +\n repetition +\n '` for `options.ruleRepetition`, expected `3` or more'\n )\n }\n\n return repetition\n}\n","/**\n * @typedef {import('mdast').InlineCode} InlineCode\n * @typedef {import('mdast').Table} Table\n * @typedef {import('mdast').TableCell} TableCell\n * @typedef {import('mdast').TableRow} TableRow\n *\n * @typedef {import('markdown-table').Options} MarkdownTableOptions\n *\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n *\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').State} State\n * @typedef {import('mdast-util-to-markdown').Info} Info\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {boolean | null | undefined} [tableCellPadding=true]\n * Whether to add a space of padding between delimiters and cells (default:\n * `true`).\n * @property {boolean | null | undefined} [tablePipeAlign=true]\n * Whether to align the delimiters (default: `true`).\n * @property {MarkdownTableOptions['stringLength'] | null | undefined} [stringLength]\n * Function to detect the length of table cell content, used when aligning\n * the delimiters between cells (optional).\n */\n\nimport {ok as assert} from 'devlop'\nimport {markdownTable} from 'markdown-table'\nimport {defaultHandlers} from 'mdast-util-to-markdown'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM tables in\n * markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM tables.\n */\nexport function gfmTableFromMarkdown() {\n return {\n enter: {\n table: enterTable,\n tableData: enterCell,\n tableHeader: enterCell,\n tableRow: enterRow\n },\n exit: {\n codeText: exitCodeText,\n table: exitTable,\n tableData: exit,\n tableHeader: exit,\n tableRow: exit\n }\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterTable(token) {\n const align = token._align\n assert(align, 'expected `_align` on table')\n this.enter(\n {\n type: 'table',\n align: align.map(function (d) {\n return d === 'none' ? null : d\n }),\n children: []\n },\n token\n )\n this.data.inTable = true\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitTable(token) {\n this.exit(token)\n this.data.inTable = undefined\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterRow(token) {\n this.enter({type: 'tableRow', children: []}, token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exit(token) {\n this.exit(token)\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction enterCell(token) {\n this.enter({type: 'tableCell', children: []}, token)\n}\n\n// Overwrite the default code text data handler to unescape escaped pipes when\n// they are in tables.\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitCodeText(token) {\n let value = this.resume()\n\n if (this.data.inTable) {\n value = value.replace(/\\\\([\\\\|])/g, replace)\n }\n\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'inlineCode')\n node.value = value\n this.exit(token)\n}\n\n/**\n * @param {string} $0\n * @param {string} $1\n * @returns {string}\n */\nfunction replace($0, $1) {\n // Pipes work, backslashes don’t (but can’t escape pipes).\n return $1 === '|' ? $1 : $0\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM tables in\n * markdown.\n *\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM tables.\n */\nexport function gfmTableToMarkdown(options) {\n const settings = options || {}\n const padding = settings.tableCellPadding\n const alignDelimiters = settings.tablePipeAlign\n const stringLength = settings.stringLength\n const around = padding ? ' ' : '|'\n\n return {\n unsafe: [\n {character: '\\r', inConstruct: 'tableCell'},\n {character: '\\n', inConstruct: 'tableCell'},\n // A pipe, when followed by a tab or space (padding), or a dash or colon\n // (unpadded delimiter row), could result in a table.\n {atBreak: true, character: '|', after: '[\\t :-]'},\n // A pipe in a cell must be encoded.\n {character: '|', inConstruct: 'tableCell'},\n // A colon must be followed by a dash, in which case it could start a\n // delimiter row.\n {atBreak: true, character: ':', after: '-'},\n // A delimiter row can also start with a dash, when followed by more\n // dashes, a colon, or a pipe.\n // This is a stricter version than the built in check for lists, thematic\n // breaks, and setex heading underlines though:\n // \n {atBreak: true, character: '-', after: '[:|-]'}\n ],\n handlers: {\n inlineCode: inlineCodeWithTable,\n table: handleTable,\n tableCell: handleTableCell,\n tableRow: handleTableRow\n }\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {Table} node\n */\n function handleTable(node, _, state, info) {\n return serializeData(handleTableAsData(node, state, info), node.align)\n }\n\n /**\n * This function isn’t really used normally, because we handle rows at the\n * table level.\n * But, if someone passes in a table row, this ensures we make somewhat sense.\n *\n * @type {ToMarkdownHandle}\n * @param {TableRow} node\n */\n function handleTableRow(node, _, state, info) {\n const row = handleTableRowAsData(node, state, info)\n const value = serializeData([row])\n // `markdown-table` will always add an align row\n return value.slice(0, value.indexOf('\\n'))\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {TableCell} node\n */\n function handleTableCell(node, _, state, info) {\n const exit = state.enter('tableCell')\n const subexit = state.enter('phrasing')\n const value = state.containerPhrasing(node, {\n ...info,\n before: around,\n after: around\n })\n subexit()\n exit()\n return value\n }\n\n /**\n * @param {Array>} matrix\n * @param {Array | null | undefined} [align]\n */\n function serializeData(matrix, align) {\n return markdownTable(matrix, {\n align,\n // @ts-expect-error: `markdown-table` types should support `null`.\n alignDelimiters,\n // @ts-expect-error: `markdown-table` types should support `null`.\n padding,\n // @ts-expect-error: `markdown-table` types should support `null`.\n stringLength\n })\n }\n\n /**\n * @param {Table} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array>} */\n const result = []\n const subexit = state.enter('table')\n\n while (++index < children.length) {\n result[index] = handleTableRowAsData(children[index], state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @param {TableRow} node\n * @param {State} state\n * @param {Info} info\n */\n function handleTableRowAsData(node, state, info) {\n const children = node.children\n let index = -1\n /** @type {Array} */\n const result = []\n const subexit = state.enter('tableRow')\n\n while (++index < children.length) {\n // Note: the positional info as used here is incorrect.\n // Making it correct would be impossible due to aligning cells?\n // And it would need copy/pasting `markdown-table` into this project.\n result[index] = handleTableCell(children[index], node, state, info)\n }\n\n subexit()\n\n return result\n }\n\n /**\n * @type {ToMarkdownHandle}\n * @param {InlineCode} node\n */\n function inlineCodeWithTable(node, parent, state) {\n let value = defaultHandlers.inlineCode(node, parent, state)\n\n if (state.stack.includes('tableCell')) {\n value = value.replace(/\\|/g, '\\\\$&')\n }\n\n return value\n }\n}\n","/**\n * @typedef {import('mdast').ListItem} ListItem\n * @typedef {import('mdast').Paragraph} Paragraph\n * @typedef {import('mdast-util-from-markdown').CompileContext} CompileContext\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-from-markdown').Handle} FromMarkdownHandle\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Handle} ToMarkdownHandle\n */\n\nimport {ok as assert} from 'devlop'\nimport {defaultHandlers} from 'mdast-util-to-markdown'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM task\n * list items in markdown.\n *\n * @returns {FromMarkdownExtension}\n * Extension for `mdast-util-from-markdown` to enable GFM task list items.\n */\nexport function gfmTaskListItemFromMarkdown() {\n return {\n exit: {\n taskListCheckValueChecked: exitCheck,\n taskListCheckValueUnchecked: exitCheck,\n paragraph: exitParagraphWithTaskListItem\n }\n }\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM task list\n * items in markdown.\n *\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM task list items.\n */\nexport function gfmTaskListItemToMarkdown() {\n return {\n unsafe: [{atBreak: true, character: '-', after: '[:|-]'}],\n handlers: {listItem: listItemWithTaskListItem}\n }\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitCheck(token) {\n // We’re always in a paragraph, in a list item.\n const node = this.stack[this.stack.length - 2]\n assert(node.type === 'listItem')\n node.checked = token.type === 'taskListCheckValueChecked'\n}\n\n/**\n * @this {CompileContext}\n * @type {FromMarkdownHandle}\n */\nfunction exitParagraphWithTaskListItem(token) {\n const parent = this.stack[this.stack.length - 2]\n\n if (\n parent &&\n parent.type === 'listItem' &&\n typeof parent.checked === 'boolean'\n ) {\n const node = this.stack[this.stack.length - 1]\n assert(node.type === 'paragraph')\n const head = node.children[0]\n\n if (head && head.type === 'text') {\n const siblings = parent.children\n let index = -1\n /** @type {Paragraph | undefined} */\n let firstParaghraph\n\n while (++index < siblings.length) {\n const sibling = siblings[index]\n if (sibling.type === 'paragraph') {\n firstParaghraph = sibling\n break\n }\n }\n\n if (firstParaghraph === node) {\n // Must start with a space or a tab.\n head.value = head.value.slice(1)\n\n if (head.value.length === 0) {\n node.children.shift()\n } else if (\n node.position &&\n head.position &&\n typeof head.position.start.offset === 'number'\n ) {\n head.position.start.column++\n head.position.start.offset++\n node.position.start = Object.assign({}, head.position.start)\n }\n }\n }\n }\n\n this.exit(token)\n}\n\n/**\n * @type {ToMarkdownHandle}\n * @param {ListItem} node\n */\nfunction listItemWithTaskListItem(node, parent, state, info) {\n const head = node.children[0]\n const checkable =\n typeof node.checked === 'boolean' && head && head.type === 'paragraph'\n const checkbox = '[' + (node.checked ? 'x' : ' ') + '] '\n const tracker = state.createTracker(info)\n\n if (checkable) {\n tracker.move(checkbox)\n }\n\n let value = defaultHandlers.listItem(node, parent, state, {\n ...info,\n ...tracker.current()\n })\n\n if (checkable) {\n value = value.replace(/^(?:[*+-]|\\d+\\.)([\\r\\n]| {1,3})/, check)\n }\n\n return value\n\n /**\n * @param {string} $0\n * @returns {string}\n */\n function check($0) {\n return $0 + checkbox\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Code} Code\n * @typedef {import('micromark-util-types').ConstructRecord} ConstructRecord\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Previous} Previous\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {\n asciiAlpha,\n asciiAlphanumeric,\n asciiControl,\n markdownLineEndingOrSpace,\n unicodePunctuation,\n unicodeWhitespace\n} from 'micromark-util-character'\nconst wwwPrefix = {\n tokenize: tokenizeWwwPrefix,\n partial: true\n}\nconst domain = {\n tokenize: tokenizeDomain,\n partial: true\n}\nconst path = {\n tokenize: tokenizePath,\n partial: true\n}\nconst trail = {\n tokenize: tokenizeTrail,\n partial: true\n}\nconst emailDomainDotTrail = {\n tokenize: tokenizeEmailDomainDotTrail,\n partial: true\n}\nconst wwwAutolink = {\n tokenize: tokenizeWwwAutolink,\n previous: previousWww\n}\nconst protocolAutolink = {\n tokenize: tokenizeProtocolAutolink,\n previous: previousProtocol\n}\nconst emailAutolink = {\n tokenize: tokenizeEmailAutolink,\n previous: previousEmail\n}\n\n/** @type {ConstructRecord} */\nconst text = {}\n\n/**\n * Create an extension for `micromark` to support GitHub autolink literal\n * syntax.\n *\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to enable GFM\n * autolink literal syntax.\n */\nexport function gfmAutolinkLiteral() {\n return {\n text\n }\n}\n\n/** @type {Code} */\nlet code = 48\n\n// Add alphanumerics.\nwhile (code < 123) {\n text[code] = emailAutolink\n code++\n if (code === 58) code = 65\n else if (code === 91) code = 97\n}\ntext[43] = emailAutolink\ntext[45] = emailAutolink\ntext[46] = emailAutolink\ntext[95] = emailAutolink\ntext[72] = [emailAutolink, protocolAutolink]\ntext[104] = [emailAutolink, protocolAutolink]\ntext[87] = [emailAutolink, wwwAutolink]\ntext[119] = [emailAutolink, wwwAutolink]\n\n// To do: perform email autolink literals on events, afterwards.\n// That’s where `markdown-rs` and `cmark-gfm` perform it.\n// It should look for `@`, then for atext backwards, and then for a label\n// forwards.\n// To do: `mailto:`, `xmpp:` protocol as prefix.\n\n/**\n * Email autolink literal.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^^^^^^^^^^^^^^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeEmailAutolink(effects, ok, nok) {\n const self = this\n /** @type {boolean | undefined} */\n let dot\n /** @type {boolean} */\n let data\n return start\n\n /**\n * Start of email autolink literal.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n if (\n !gfmAtext(code) ||\n !previousEmail.call(self, self.previous) ||\n previousUnbalanced(self.events)\n ) {\n return nok(code)\n }\n effects.enter('literalAutolink')\n effects.enter('literalAutolinkEmail')\n return atext(code)\n }\n\n /**\n * In email atext.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function atext(code) {\n if (gfmAtext(code)) {\n effects.consume(code)\n return atext\n }\n if (code === 64) {\n effects.consume(code)\n return emailDomain\n }\n return nok(code)\n }\n\n /**\n * In email domain.\n *\n * The reference code is a bit overly complex as it handles the `@`, of which\n * there may be just one.\n * Source: \n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function emailDomain(code) {\n // Dot followed by alphanumerical (not `-` or `_`).\n if (code === 46) {\n return effects.check(\n emailDomainDotTrail,\n emailDomainAfter,\n emailDomainDot\n )(code)\n }\n\n // Alphanumerical, `-`, and `_`.\n if (code === 45 || code === 95 || asciiAlphanumeric(code)) {\n data = true\n effects.consume(code)\n return emailDomain\n }\n\n // To do: `/` if xmpp.\n\n // Note: normally we’d truncate trailing punctuation from the link.\n // However, email autolink literals cannot contain any of those markers,\n // except for `.`, but that can only occur if it isn’t trailing.\n // So we can ignore truncating!\n return emailDomainAfter(code)\n }\n\n /**\n * In email domain, on dot that is not a trail.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function emailDomainDot(code) {\n effects.consume(code)\n dot = true\n return emailDomain\n }\n\n /**\n * After email domain.\n *\n * ```markdown\n * > | a contact@example.org b\n * ^\n * ```\n *\n * @type {State}\n */\n function emailDomainAfter(code) {\n // Domain must not be empty, must include a dot, and must end in alphabetical.\n // Source: .\n if (data && dot && asciiAlpha(self.previous)) {\n effects.exit('literalAutolinkEmail')\n effects.exit('literalAutolink')\n return ok(code)\n }\n return nok(code)\n }\n}\n\n/**\n * `www` autolink literal.\n *\n * ```markdown\n * > | a www.example.org b\n * ^^^^^^^^^^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeWwwAutolink(effects, ok, nok) {\n const self = this\n return wwwStart\n\n /**\n * Start of www autolink literal.\n *\n * ```markdown\n * > | www.example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function wwwStart(code) {\n if (\n (code !== 87 && code !== 119) ||\n !previousWww.call(self, self.previous) ||\n previousUnbalanced(self.events)\n ) {\n return nok(code)\n }\n effects.enter('literalAutolink')\n effects.enter('literalAutolinkWww')\n // Note: we *check*, so we can discard the `www.` we parsed.\n // If it worked, we consider it as a part of the domain.\n return effects.check(\n wwwPrefix,\n effects.attempt(domain, effects.attempt(path, wwwAfter), nok),\n nok\n )(code)\n }\n\n /**\n * After a www autolink literal.\n *\n * ```markdown\n * > | www.example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function wwwAfter(code) {\n effects.exit('literalAutolinkWww')\n effects.exit('literalAutolink')\n return ok(code)\n }\n}\n\n/**\n * Protocol autolink literal.\n *\n * ```markdown\n * > | a https://example.org b\n * ^^^^^^^^^^^^^^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeProtocolAutolink(effects, ok, nok) {\n const self = this\n let buffer = ''\n let seen = false\n return protocolStart\n\n /**\n * Start of protocol autolink literal.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function protocolStart(code) {\n if (\n (code === 72 || code === 104) &&\n previousProtocol.call(self, self.previous) &&\n !previousUnbalanced(self.events)\n ) {\n effects.enter('literalAutolink')\n effects.enter('literalAutolinkHttp')\n buffer += String.fromCodePoint(code)\n effects.consume(code)\n return protocolPrefixInside\n }\n return nok(code)\n }\n\n /**\n * In protocol.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^^^^^\n * ```\n *\n * @type {State}\n */\n function protocolPrefixInside(code) {\n // `5` is size of `https`\n if (asciiAlpha(code) && buffer.length < 5) {\n // @ts-expect-error: definitely number.\n buffer += String.fromCodePoint(code)\n effects.consume(code)\n return protocolPrefixInside\n }\n if (code === 58) {\n const protocol = buffer.toLowerCase()\n if (protocol === 'http' || protocol === 'https') {\n effects.consume(code)\n return protocolSlashesInside\n }\n }\n return nok(code)\n }\n\n /**\n * In slashes.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^^\n * ```\n *\n * @type {State}\n */\n function protocolSlashesInside(code) {\n if (code === 47) {\n effects.consume(code)\n if (seen) {\n return afterProtocol\n }\n seen = true\n return protocolSlashesInside\n }\n return nok(code)\n }\n\n /**\n * After protocol, before domain.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function afterProtocol(code) {\n // To do: this is different from `markdown-rs`:\n // https://github.com/wooorm/markdown-rs/blob/b3a921c761309ae00a51fe348d8a43adbc54b518/src/construct/gfm_autolink_literal.rs#L172-L182\n return code === null ||\n asciiControl(code) ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code) ||\n unicodePunctuation(code)\n ? nok(code)\n : effects.attempt(domain, effects.attempt(path, protocolAfter), nok)(code)\n }\n\n /**\n * After a protocol autolink literal.\n *\n * ```markdown\n * > | https://example.com/a?b#c\n * ^\n * ```\n *\n * @type {State}\n */\n function protocolAfter(code) {\n effects.exit('literalAutolinkHttp')\n effects.exit('literalAutolink')\n return ok(code)\n }\n}\n\n/**\n * `www` prefix.\n *\n * ```markdown\n * > | a www.example.org b\n * ^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeWwwPrefix(effects, ok, nok) {\n let size = 0\n return wwwPrefixInside\n\n /**\n * In www prefix.\n *\n * ```markdown\n * > | www.example.com\n * ^^^^\n * ```\n *\n * @type {State}\n */\n function wwwPrefixInside(code) {\n if ((code === 87 || code === 119) && size < 3) {\n size++\n effects.consume(code)\n return wwwPrefixInside\n }\n if (code === 46 && size === 3) {\n effects.consume(code)\n return wwwPrefixAfter\n }\n return nok(code)\n }\n\n /**\n * After www prefix.\n *\n * ```markdown\n * > | www.example.com\n * ^\n * ```\n *\n * @type {State}\n */\n function wwwPrefixAfter(code) {\n // If there is *anything*, we can link.\n return code === null ? nok(code) : ok(code)\n }\n}\n\n/**\n * Domain.\n *\n * ```markdown\n * > | a https://example.org b\n * ^^^^^^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeDomain(effects, ok, nok) {\n /** @type {boolean | undefined} */\n let underscoreInLastSegment\n /** @type {boolean | undefined} */\n let underscoreInLastLastSegment\n /** @type {boolean | undefined} */\n let seen\n return domainInside\n\n /**\n * In domain.\n *\n * ```markdown\n * > | https://example.com/a\n * ^^^^^^^^^^^\n * ```\n *\n * @type {State}\n */\n function domainInside(code) {\n // Check whether this marker, which is a trailing punctuation\n // marker, optionally followed by more trailing markers, and then\n // followed by an end.\n if (code === 46 || code === 95) {\n return effects.check(trail, domainAfter, domainAtPunctuation)(code)\n }\n\n // GH documents that only alphanumerics (other than `-`, `.`, and `_`) can\n // occur, which sounds like ASCII only, but they also support `www.點看.com`,\n // so that’s Unicode.\n // Instead of some new production for Unicode alphanumerics, markdown\n // already has that for Unicode punctuation and whitespace, so use those.\n // Source: .\n if (\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code) ||\n (code !== 45 && unicodePunctuation(code))\n ) {\n return domainAfter(code)\n }\n seen = true\n effects.consume(code)\n return domainInside\n }\n\n /**\n * In domain, at potential trailing punctuation, that was not trailing.\n *\n * ```markdown\n * > | https://example.com\n * ^\n * ```\n *\n * @type {State}\n */\n function domainAtPunctuation(code) {\n // There is an underscore in the last segment of the domain\n if (code === 95) {\n underscoreInLastSegment = true\n }\n // Otherwise, it’s a `.`: save the last segment underscore in the\n // penultimate segment slot.\n else {\n underscoreInLastLastSegment = underscoreInLastSegment\n underscoreInLastSegment = undefined\n }\n effects.consume(code)\n return domainInside\n }\n\n /**\n * After domain.\n *\n * ```markdown\n * > | https://example.com/a\n * ^\n * ```\n *\n * @type {State} */\n function domainAfter(code) {\n // Note: that’s GH says a dot is needed, but it’s not true:\n // \n if (underscoreInLastLastSegment || underscoreInLastSegment || !seen) {\n return nok(code)\n }\n return ok(code)\n }\n}\n\n/**\n * Path.\n *\n * ```markdown\n * > | a https://example.org/stuff b\n * ^^^^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizePath(effects, ok) {\n let sizeOpen = 0\n let sizeClose = 0\n return pathInside\n\n /**\n * In path.\n *\n * ```markdown\n * > | https://example.com/a\n * ^^\n * ```\n *\n * @type {State}\n */\n function pathInside(code) {\n if (code === 40) {\n sizeOpen++\n effects.consume(code)\n return pathInside\n }\n\n // To do: `markdown-rs` also needs this.\n // If this is a paren, and there are less closings than openings,\n // we don’t check for a trail.\n if (code === 41 && sizeClose < sizeOpen) {\n return pathAtPunctuation(code)\n }\n\n // Check whether this trailing punctuation marker is optionally\n // followed by more trailing markers, and then followed\n // by an end.\n if (\n code === 33 ||\n code === 34 ||\n code === 38 ||\n code === 39 ||\n code === 41 ||\n code === 42 ||\n code === 44 ||\n code === 46 ||\n code === 58 ||\n code === 59 ||\n code === 60 ||\n code === 63 ||\n code === 93 ||\n code === 95 ||\n code === 126\n ) {\n return effects.check(trail, ok, pathAtPunctuation)(code)\n }\n if (\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return ok(code)\n }\n effects.consume(code)\n return pathInside\n }\n\n /**\n * In path, at potential trailing punctuation, that was not trailing.\n *\n * ```markdown\n * > | https://example.com/a\"b\n * ^\n * ```\n *\n * @type {State}\n */\n function pathAtPunctuation(code) {\n // Count closing parens.\n if (code === 41) {\n sizeClose++\n }\n effects.consume(code)\n return pathInside\n }\n}\n\n/**\n * Trail.\n *\n * This calls `ok` if this *is* the trail, followed by an end, which means\n * the entire trail is not part of the link.\n * It calls `nok` if this *is* part of the link.\n *\n * ```markdown\n * > | https://example.com\").\n * ^^^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeTrail(effects, ok, nok) {\n return trail\n\n /**\n * In trail of domain or path.\n *\n * ```markdown\n * > | https://example.com\").\n * ^\n * ```\n *\n * @type {State}\n */\n function trail(code) {\n // Regular trailing punctuation.\n if (\n code === 33 ||\n code === 34 ||\n code === 39 ||\n code === 41 ||\n code === 42 ||\n code === 44 ||\n code === 46 ||\n code === 58 ||\n code === 59 ||\n code === 63 ||\n code === 95 ||\n code === 126\n ) {\n effects.consume(code)\n return trail\n }\n\n // `&` followed by one or more alphabeticals and then a `;`, is\n // as a whole considered as trailing punctuation.\n // In all other cases, it is considered as continuation of the URL.\n if (code === 38) {\n effects.consume(code)\n return trailCharRefStart\n }\n\n // Needed because we allow literals after `[`, as we fix:\n // .\n // Check that it is not followed by `(` or `[`.\n if (code === 93) {\n effects.consume(code)\n return trailBracketAfter\n }\n if (\n // `<` is an end.\n code === 60 ||\n // So is whitespace.\n code === null ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return ok(code)\n }\n return nok(code)\n }\n\n /**\n * In trail, after `]`.\n *\n * > 👉 **Note**: this deviates from `cmark-gfm` to fix a bug.\n * > See end of for more.\n *\n * ```markdown\n * > | https://example.com](\n * ^\n * ```\n *\n * @type {State}\n */\n function trailBracketAfter(code) {\n // Whitespace or something that could start a resource or reference is the end.\n // Switch back to trail otherwise.\n if (\n code === null ||\n code === 40 ||\n code === 91 ||\n markdownLineEndingOrSpace(code) ||\n unicodeWhitespace(code)\n ) {\n return ok(code)\n }\n return trail(code)\n }\n\n /**\n * In character-reference like trail, after `&`.\n *\n * ```markdown\n * > | https://example.com&).\n * ^\n * ```\n *\n * @type {State}\n */\n function trailCharRefStart(code) {\n // When non-alpha, it’s not a trail.\n return asciiAlpha(code) ? trailCharRefInside(code) : nok(code)\n }\n\n /**\n * In character-reference like trail.\n *\n * ```markdown\n * > | https://example.com&).\n * ^\n * ```\n *\n * @type {State}\n */\n function trailCharRefInside(code) {\n // Switch back to trail if this is well-formed.\n if (code === 59) {\n effects.consume(code)\n return trail\n }\n if (asciiAlpha(code)) {\n effects.consume(code)\n return trailCharRefInside\n }\n\n // It’s not a trail.\n return nok(code)\n }\n}\n\n/**\n * Dot in email domain trail.\n *\n * This calls `ok` if this *is* the trail, followed by an end, which means\n * the trail is not part of the link.\n * It calls `nok` if this *is* part of the link.\n *\n * ```markdown\n * > | contact@example.org.\n * ^\n * ```\n *\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeEmailDomainDotTrail(effects, ok, nok) {\n return start\n\n /**\n * Dot.\n *\n * ```markdown\n * > | contact@example.org.\n * ^ ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n // Must be dot.\n effects.consume(code)\n return after\n }\n\n /**\n * After dot.\n *\n * ```markdown\n * > | contact@example.org.\n * ^ ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // Not a trail if alphanumeric.\n return asciiAlphanumeric(code) ? nok(code) : ok(code)\n }\n}\n\n/**\n * See:\n * .\n *\n * @type {Previous}\n */\nfunction previousWww(code) {\n return (\n code === null ||\n code === 40 ||\n code === 42 ||\n code === 95 ||\n code === 91 ||\n code === 93 ||\n code === 126 ||\n markdownLineEndingOrSpace(code)\n )\n}\n\n/**\n * See:\n * .\n *\n * @type {Previous}\n */\nfunction previousProtocol(code) {\n return !asciiAlpha(code)\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Previous}\n */\nfunction previousEmail(code) {\n // Do not allow a slash “inside” atext.\n // The reference code is a bit weird, but that’s what it results in.\n // Source: .\n // Other than slash, every preceding character is allowed.\n return !(code === 47 || gfmAtext(code))\n}\n\n/**\n * @param {Code} code\n * @returns {boolean}\n */\nfunction gfmAtext(code) {\n return (\n code === 43 ||\n code === 45 ||\n code === 46 ||\n code === 95 ||\n asciiAlphanumeric(code)\n )\n}\n\n/**\n * @param {Array} events\n * @returns {boolean}\n */\nfunction previousUnbalanced(events) {\n let index = events.length\n let result = false\n while (index--) {\n const token = events[index][1]\n if (\n (token.type === 'labelLink' || token.type === 'labelImage') &&\n !token._balanced\n ) {\n result = true\n break\n }\n\n // If we’ve seen this token, and it was marked as not having any unbalanced\n // bracket before it, we can exit.\n if (token._gfmAutolinkLiteralWalkedInto) {\n result = false\n break\n }\n }\n if (events.length > 0 && !result) {\n // Mark the last token as “walked into” w/o finding\n // anything.\n events[events.length - 1][1]._gfmAutolinkLiteralWalkedInto = true\n }\n return result\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Exiter} Exiter\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {blankLine} from 'micromark-core-commonmark'\nimport {factorySpace} from 'micromark-factory-space'\nimport {markdownLineEndingOrSpace} from 'micromark-util-character'\nimport {normalizeIdentifier} from 'micromark-util-normalize-identifier'\nconst indent = {\n tokenize: tokenizeIndent,\n partial: true\n}\n\n// To do: micromark should support a `_hiddenGfmFootnoteSupport`, which only\n// affects label start (image).\n// That will let us drop `tokenizePotentialGfmFootnote*`.\n// It currently has a `_hiddenFootnoteSupport`, which affects that and more.\n// That can be removed when `micromark-extension-footnote` is archived.\n\n/**\n * Create an extension for `micromark` to enable GFM footnote syntax.\n *\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to\n * enable GFM footnote syntax.\n */\nexport function gfmFootnote() {\n /** @type {Extension} */\n return {\n document: {\n [91]: {\n tokenize: tokenizeDefinitionStart,\n continuation: {\n tokenize: tokenizeDefinitionContinuation\n },\n exit: gfmFootnoteDefinitionEnd\n }\n },\n text: {\n [91]: {\n tokenize: tokenizeGfmFootnoteCall\n },\n [93]: {\n add: 'after',\n tokenize: tokenizePotentialGfmFootnoteCall,\n resolveTo: resolveToPotentialGfmFootnoteCall\n }\n }\n }\n}\n\n// To do: remove after micromark update.\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizePotentialGfmFootnoteCall(effects, ok, nok) {\n const self = this\n let index = self.events.length\n const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = [])\n /** @type {Token} */\n let labelStart\n\n // Find an opening.\n while (index--) {\n const token = self.events[index][1]\n if (token.type === 'labelImage') {\n labelStart = token\n break\n }\n\n // Exit if we’ve walked far enough.\n if (\n token.type === 'gfmFootnoteCall' ||\n token.type === 'labelLink' ||\n token.type === 'label' ||\n token.type === 'image' ||\n token.type === 'link'\n ) {\n break\n }\n }\n return start\n\n /**\n * @type {State}\n */\n function start(code) {\n if (!labelStart || !labelStart._balanced) {\n return nok(code)\n }\n const id = normalizeIdentifier(\n self.sliceSerialize({\n start: labelStart.end,\n end: self.now()\n })\n )\n if (id.codePointAt(0) !== 94 || !defined.includes(id.slice(1))) {\n return nok(code)\n }\n effects.enter('gfmFootnoteCallLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteCallLabelMarker')\n return ok(code)\n }\n}\n\n// To do: remove after micromark update.\n/** @type {Resolver} */\nfunction resolveToPotentialGfmFootnoteCall(events, context) {\n let index = events.length\n /** @type {Token | undefined} */\n let labelStart\n\n // Find an opening.\n while (index--) {\n if (\n events[index][1].type === 'labelImage' &&\n events[index][0] === 'enter'\n ) {\n labelStart = events[index][1]\n break\n }\n }\n // Change the `labelImageMarker` to a `data`.\n events[index + 1][1].type = 'data'\n events[index + 3][1].type = 'gfmFootnoteCallLabelMarker'\n\n // The whole (without `!`):\n /** @type {Token} */\n const call = {\n type: 'gfmFootnoteCall',\n start: Object.assign({}, events[index + 3][1].start),\n end: Object.assign({}, events[events.length - 1][1].end)\n }\n // The `^` marker\n /** @type {Token} */\n const marker = {\n type: 'gfmFootnoteCallMarker',\n start: Object.assign({}, events[index + 3][1].end),\n end: Object.assign({}, events[index + 3][1].end)\n }\n // Increment the end 1 character.\n marker.end.column++\n marker.end.offset++\n marker.end._bufferIndex++\n /** @type {Token} */\n const string = {\n type: 'gfmFootnoteCallString',\n start: Object.assign({}, marker.end),\n end: Object.assign({}, events[events.length - 1][1].start)\n }\n /** @type {Token} */\n const chunk = {\n type: 'chunkString',\n contentType: 'string',\n start: Object.assign({}, string.start),\n end: Object.assign({}, string.end)\n }\n\n /** @type {Array} */\n const replacement = [\n // Take the `labelImageMarker` (now `data`, the `!`)\n events[index + 1],\n events[index + 2],\n ['enter', call, context],\n // The `[`\n events[index + 3],\n events[index + 4],\n // The `^`.\n ['enter', marker, context],\n ['exit', marker, context],\n // Everything in between.\n ['enter', string, context],\n ['enter', chunk, context],\n ['exit', chunk, context],\n ['exit', string, context],\n // The ending (`]`, properly parsed and labelled).\n events[events.length - 2],\n events[events.length - 1],\n ['exit', call, context]\n ]\n events.splice(index, events.length - index + 1, ...replacement)\n return events\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeGfmFootnoteCall(effects, ok, nok) {\n const self = this\n const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = [])\n let size = 0\n /** @type {boolean} */\n let data\n\n // Note: the implementation of `markdown-rs` is different, because it houses\n // core *and* extensions in one project.\n // Therefore, it can include footnote logic inside `label-end`.\n // We can’t do that, but luckily, we can parse footnotes in a simpler way than\n // needed for labels.\n return start\n\n /**\n * Start of footnote label.\n *\n * ```markdown\n * > | a [^b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('gfmFootnoteCall')\n effects.enter('gfmFootnoteCallLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteCallLabelMarker')\n return callStart\n }\n\n /**\n * After `[`, at `^`.\n *\n * ```markdown\n * > | a [^b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function callStart(code) {\n if (code !== 94) return nok(code)\n effects.enter('gfmFootnoteCallMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteCallMarker')\n effects.enter('gfmFootnoteCallString')\n effects.enter('chunkString').contentType = 'string'\n return callData\n }\n\n /**\n * In label.\n *\n * ```markdown\n * > | a [^b] c\n * ^\n * ```\n *\n * @type {State}\n */\n function callData(code) {\n if (\n // Too long.\n size > 999 ||\n // Closing brace with nothing.\n (code === 93 && !data) ||\n // Space or tab is not supported by GFM for some reason.\n // `\\n` and `[` not being supported makes sense.\n code === null ||\n code === 91 ||\n markdownLineEndingOrSpace(code)\n ) {\n return nok(code)\n }\n if (code === 93) {\n effects.exit('chunkString')\n const token = effects.exit('gfmFootnoteCallString')\n if (!defined.includes(normalizeIdentifier(self.sliceSerialize(token)))) {\n return nok(code)\n }\n effects.enter('gfmFootnoteCallLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteCallLabelMarker')\n effects.exit('gfmFootnoteCall')\n return ok\n }\n if (!markdownLineEndingOrSpace(code)) {\n data = true\n }\n size++\n effects.consume(code)\n return code === 92 ? callEscape : callData\n }\n\n /**\n * On character after escape.\n *\n * ```markdown\n * > | a [^b\\c] d\n * ^\n * ```\n *\n * @type {State}\n */\n function callEscape(code) {\n if (code === 91 || code === 92 || code === 93) {\n effects.consume(code)\n size++\n return callData\n }\n return callData(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeDefinitionStart(effects, ok, nok) {\n const self = this\n const defined = self.parser.gfmFootnotes || (self.parser.gfmFootnotes = [])\n /** @type {string} */\n let identifier\n let size = 0\n /** @type {boolean | undefined} */\n let data\n return start\n\n /**\n * Start of GFM footnote definition.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function start(code) {\n effects.enter('gfmFootnoteDefinition')._container = true\n effects.enter('gfmFootnoteDefinitionLabel')\n effects.enter('gfmFootnoteDefinitionLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteDefinitionLabelMarker')\n return labelAtMarker\n }\n\n /**\n * In label, at caret.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelAtMarker(code) {\n if (code === 94) {\n effects.enter('gfmFootnoteDefinitionMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteDefinitionMarker')\n effects.enter('gfmFootnoteDefinitionLabelString')\n effects.enter('chunkString').contentType = 'string'\n return labelInside\n }\n return nok(code)\n }\n\n /**\n * In label.\n *\n * > 👉 **Note**: `cmark-gfm` prevents whitespace from occurring in footnote\n * > definition labels.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelInside(code) {\n if (\n // Too long.\n size > 999 ||\n // Closing brace with nothing.\n (code === 93 && !data) ||\n // Space or tab is not supported by GFM for some reason.\n // `\\n` and `[` not being supported makes sense.\n code === null ||\n code === 91 ||\n markdownLineEndingOrSpace(code)\n ) {\n return nok(code)\n }\n if (code === 93) {\n effects.exit('chunkString')\n const token = effects.exit('gfmFootnoteDefinitionLabelString')\n identifier = normalizeIdentifier(self.sliceSerialize(token))\n effects.enter('gfmFootnoteDefinitionLabelMarker')\n effects.consume(code)\n effects.exit('gfmFootnoteDefinitionLabelMarker')\n effects.exit('gfmFootnoteDefinitionLabel')\n return labelAfter\n }\n if (!markdownLineEndingOrSpace(code)) {\n data = true\n }\n size++\n effects.consume(code)\n return code === 92 ? labelEscape : labelInside\n }\n\n /**\n * After `\\`, at a special character.\n *\n * > 👉 **Note**: `cmark-gfm` currently does not support escaped brackets:\n * > \n *\n * ```markdown\n * > | [^a\\*b]: c\n * ^\n * ```\n *\n * @type {State}\n */\n function labelEscape(code) {\n if (code === 91 || code === 92 || code === 93) {\n effects.consume(code)\n size++\n return labelInside\n }\n return labelInside(code)\n }\n\n /**\n * After definition label.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function labelAfter(code) {\n if (code === 58) {\n effects.enter('definitionMarker')\n effects.consume(code)\n effects.exit('definitionMarker')\n if (!defined.includes(identifier)) {\n defined.push(identifier)\n }\n\n // Any whitespace after the marker is eaten, forming indented code\n // is not possible.\n // No space is also fine, just like a block quote marker.\n return factorySpace(\n effects,\n whitespaceAfter,\n 'gfmFootnoteDefinitionWhitespace'\n )\n }\n return nok(code)\n }\n\n /**\n * After definition prefix.\n *\n * ```markdown\n * > | [^a]: b\n * ^\n * ```\n *\n * @type {State}\n */\n function whitespaceAfter(code) {\n // `markdown-rs` has a wrapping token for the prefix that is closed here.\n return ok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeDefinitionContinuation(effects, ok, nok) {\n /// Start of footnote definition continuation.\n ///\n /// ```markdown\n /// | [^a]: b\n /// > | c\n /// ^\n /// ```\n //\n // Either a blank line, which is okay, or an indented thing.\n return effects.check(blankLine, ok, effects.attempt(indent, ok, nok))\n}\n\n/** @type {Exiter} */\nfunction gfmFootnoteDefinitionEnd(effects) {\n effects.exit('gfmFootnoteDefinition')\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeIndent(effects, ok, nok) {\n const self = this\n return factorySpace(\n effects,\n afterPrefix,\n 'gfmFootnoteDefinitionIndent',\n 4 + 1\n )\n\n /**\n * @type {State}\n */\n function afterPrefix(code) {\n const tail = self.events[self.events.length - 1]\n return tail &&\n tail[1].type === 'gfmFootnoteDefinitionIndent' &&\n tail[2].sliceSerialize(tail[1], true).length === 4\n ? ok(code)\n : nok(code)\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n *\n * @typedef Options\n * Configuration (optional).\n * @property {boolean | null | undefined} [singleTilde=true]\n * Whether to support strikethrough with a single tilde (default: `true`).\n *\n * Single tildes work on github.com, but are technically prohibited by the\n * GFM spec.\n */\n\nimport {splice} from 'micromark-util-chunked'\nimport {classifyCharacter} from 'micromark-util-classify-character'\nimport {resolveAll} from 'micromark-util-resolve-all'\n/**\n * Create an extension for `micromark` to enable GFM strikethrough syntax.\n *\n * @param {Options | null | undefined} [options={}]\n * Configuration.\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions`, to\n * enable GFM strikethrough syntax.\n */\nexport function gfmStrikethrough(options) {\n const options_ = options || {}\n let single = options_.singleTilde\n const tokenizer = {\n tokenize: tokenizeStrikethrough,\n resolveAll: resolveAllStrikethrough\n }\n if (single === null || single === undefined) {\n single = true\n }\n return {\n text: {\n [126]: tokenizer\n },\n insideSpan: {\n null: [tokenizer]\n },\n attentionMarkers: {\n null: [126]\n }\n }\n\n /**\n * Take events and resolve strikethrough.\n *\n * @type {Resolver}\n */\n function resolveAllStrikethrough(events, context) {\n let index = -1\n\n // Walk through all events.\n while (++index < events.length) {\n // Find a token that can close.\n if (\n events[index][0] === 'enter' &&\n events[index][1].type === 'strikethroughSequenceTemporary' &&\n events[index][1]._close\n ) {\n let open = index\n\n // Now walk back to find an opener.\n while (open--) {\n // Find a token that can open the closer.\n if (\n events[open][0] === 'exit' &&\n events[open][1].type === 'strikethroughSequenceTemporary' &&\n events[open][1]._open &&\n // If the sizes are the same:\n events[index][1].end.offset - events[index][1].start.offset ===\n events[open][1].end.offset - events[open][1].start.offset\n ) {\n events[index][1].type = 'strikethroughSequence'\n events[open][1].type = 'strikethroughSequence'\n\n /** @type {Token} */\n const strikethrough = {\n type: 'strikethrough',\n start: Object.assign({}, events[open][1].start),\n end: Object.assign({}, events[index][1].end)\n }\n\n /** @type {Token} */\n const text = {\n type: 'strikethroughText',\n start: Object.assign({}, events[open][1].end),\n end: Object.assign({}, events[index][1].start)\n }\n\n // Opening.\n /** @type {Array} */\n const nextEvents = [\n ['enter', strikethrough, context],\n ['enter', events[open][1], context],\n ['exit', events[open][1], context],\n ['enter', text, context]\n ]\n const insideSpan = context.parser.constructs.insideSpan.null\n if (insideSpan) {\n // Between.\n splice(\n nextEvents,\n nextEvents.length,\n 0,\n resolveAll(insideSpan, events.slice(open + 1, index), context)\n )\n }\n\n // Closing.\n splice(nextEvents, nextEvents.length, 0, [\n ['exit', text, context],\n ['enter', events[index][1], context],\n ['exit', events[index][1], context],\n ['exit', strikethrough, context]\n ])\n splice(events, open - 1, index - open + 3, nextEvents)\n index = open + nextEvents.length - 2\n break\n }\n }\n }\n }\n index = -1\n while (++index < events.length) {\n if (events[index][1].type === 'strikethroughSequenceTemporary') {\n events[index][1].type = 'data'\n }\n }\n return events\n }\n\n /**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\n function tokenizeStrikethrough(effects, ok, nok) {\n const previous = this.previous\n const events = this.events\n let size = 0\n return start\n\n /** @type {State} */\n function start(code) {\n if (\n previous === 126 &&\n events[events.length - 1][1].type !== 'characterEscape'\n ) {\n return nok(code)\n }\n effects.enter('strikethroughSequenceTemporary')\n return more(code)\n }\n\n /** @type {State} */\n function more(code) {\n const before = classifyCharacter(previous)\n if (code === 126) {\n // If this is the third marker, exit.\n if (size > 1) return nok(code)\n effects.consume(code)\n size++\n return more\n }\n if (size < 2 && !single) return nok(code)\n const token = effects.exit('strikethroughSequenceTemporary')\n const after = classifyCharacter(code)\n token._open = !after || (after === 2 && Boolean(before))\n token._close = !before || (before === 2 && Boolean(after))\n return ok(code)\n }\n }\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n */\n\n// Port of `edit_map.rs` from `markdown-rs`.\n// This should move to `markdown-js` later.\n\n// Deal with several changes in events, batching them together.\n//\n// Preferably, changes should be kept to a minimum.\n// Sometimes, it’s needed to change the list of events, because parsing can be\n// messy, and it helps to expose a cleaner interface of events to the compiler\n// and other users.\n// It can also help to merge many adjacent similar events.\n// And, in other cases, it’s needed to parse subcontent: pass some events\n// through another tokenizer and inject the result.\n\n/**\n * @typedef {[number, number, Array]} Change\n * @typedef {[number, number, number]} Jump\n */\n\n/**\n * Tracks a bunch of edits.\n */\nexport class EditMap {\n /**\n * Create a new edit map.\n */\n constructor() {\n /**\n * Record of changes.\n *\n * @type {Array}\n */\n this.map = []\n }\n\n /**\n * Create an edit: a remove and/or add at a certain place.\n *\n * @param {number} index\n * @param {number} remove\n * @param {Array} add\n * @returns {undefined}\n */\n add(index, remove, add) {\n addImpl(this, index, remove, add)\n }\n\n // To do: add this when moving to `micromark`.\n // /**\n // * Create an edit: but insert `add` before existing additions.\n // *\n // * @param {number} index\n // * @param {number} remove\n // * @param {Array} add\n // * @returns {undefined}\n // */\n // addBefore(index, remove, add) {\n // addImpl(this, index, remove, add, true)\n // }\n\n /**\n * Done, change the events.\n *\n * @param {Array} events\n * @returns {undefined}\n */\n consume(events) {\n this.map.sort(function (a, b) {\n return a[0] - b[0]\n })\n\n /* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */\n if (this.map.length === 0) {\n return\n }\n\n // To do: if links are added in events, like they are in `markdown-rs`,\n // this is needed.\n // // Calculate jumps: where items in the current list move to.\n // /** @type {Array} */\n // const jumps = []\n // let index = 0\n // let addAcc = 0\n // let removeAcc = 0\n // while (index < this.map.length) {\n // const [at, remove, add] = this.map[index]\n // removeAcc += remove\n // addAcc += add.length\n // jumps.push([at, removeAcc, addAcc])\n // index += 1\n // }\n //\n // . shiftLinks(events, jumps)\n\n let index = this.map.length\n /** @type {Array>} */\n const vecs = []\n while (index > 0) {\n index -= 1\n vecs.push(\n events.slice(this.map[index][0] + this.map[index][1]),\n this.map[index][2]\n )\n\n // Truncate rest.\n events.length = this.map[index][0]\n }\n vecs.push([...events])\n events.length = 0\n let slice = vecs.pop()\n while (slice) {\n events.push(...slice)\n slice = vecs.pop()\n }\n\n // Truncate everything.\n this.map.length = 0\n }\n}\n\n/**\n * Create an edit.\n *\n * @param {EditMap} editMap\n * @param {number} at\n * @param {number} remove\n * @param {Array} add\n * @returns {undefined}\n */\nfunction addImpl(editMap, at, remove, add) {\n let index = 0\n\n /* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */\n if (remove === 0 && add.length === 0) {\n return\n }\n while (index < editMap.map.length) {\n if (editMap.map[index][0] === at) {\n editMap.map[index][1] += remove\n\n // To do: before not used by tables, use when moving to micromark.\n // if (before) {\n // add.push(...editMap.map[index][2])\n // editMap.map[index][2] = add\n // } else {\n editMap.map[index][2].push(...add)\n // }\n\n return\n }\n index += 1\n }\n editMap.map.push([at, remove, add])\n}\n\n// /**\n// * Shift `previous` and `next` links according to `jumps`.\n// *\n// * This fixes links in case there are events removed or added between them.\n// *\n// * @param {Array} events\n// * @param {Array} jumps\n// */\n// function shiftLinks(events, jumps) {\n// let jumpIndex = 0\n// let index = 0\n// let add = 0\n// let rm = 0\n\n// while (index < events.length) {\n// const rmCurr = rm\n\n// while (jumpIndex < jumps.length && jumps[jumpIndex][0] <= index) {\n// add = jumps[jumpIndex][2]\n// rm = jumps[jumpIndex][1]\n// jumpIndex += 1\n// }\n\n// // Ignore items that will be removed.\n// if (rm > rmCurr) {\n// index += rm - rmCurr\n// } else {\n// // ?\n// // if let Some(link) = &events[index].link {\n// // if let Some(next) = link.next {\n// // events[next].link.as_mut().unwrap().previous = Some(index + add - rm);\n// // while jumpIndex < jumps.len() && jumps[jumpIndex].0 <= next {\n// // add = jumps[jumpIndex].2;\n// // rm = jumps[jumpIndex].1;\n// // jumpIndex += 1;\n// // }\n// // events[index].link.as_mut().unwrap().next = Some(next + add - rm);\n// // index = next;\n// // continue;\n// // }\n// // }\n// index += 1\n// }\n// }\n// }\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n */\n\n/**\n * @typedef {'center' | 'left' | 'none' | 'right'} Align\n */\n\n/**\n * Figure out the alignment of a GFM table.\n *\n * @param {Readonly>} events\n * List of events.\n * @param {number} index\n * Table enter event.\n * @returns {Array}\n * List of aligns.\n */\nexport function gfmTableAlign(events, index) {\n let inDelimiterRow = false\n /** @type {Array} */\n const align = []\n while (index < events.length) {\n const event = events[index]\n if (inDelimiterRow) {\n if (event[0] === 'enter') {\n // Start of alignment value: set a new column.\n // To do: `markdown-rs` uses `tableDelimiterCellValue`.\n if (event[1].type === 'tableContent') {\n align.push(\n events[index + 1][1].type === 'tableDelimiterMarker'\n ? 'left'\n : 'none'\n )\n }\n }\n // Exits:\n // End of alignment value: change the column.\n // To do: `markdown-rs` uses `tableDelimiterCellValue`.\n else if (event[1].type === 'tableContent') {\n if (events[index - 1][1].type === 'tableDelimiterMarker') {\n const alignIndex = align.length - 1\n align[alignIndex] = align[alignIndex] === 'left' ? 'center' : 'right'\n }\n }\n // Done!\n else if (event[1].type === 'tableDelimiterRow') {\n break\n }\n } else if (event[0] === 'enter' && event[1].type === 'tableDelimiterRow') {\n inDelimiterRow = true\n }\n index += 1\n }\n return align\n}\n","/**\n * @typedef {import('micromark-util-types').Event} Event\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').Point} Point\n * @typedef {import('micromark-util-types').Resolver} Resolver\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').Token} Token\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\n/**\n * @typedef {[number, number, number, number]} Range\n * Cell info.\n *\n * @typedef {0 | 1 | 2 | 3} RowKind\n * Where we are: `1` for head row, `2` for delimiter row, `3` for body row.\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\nimport {EditMap} from './edit-map.js'\nimport {gfmTableAlign} from './infer.js'\n\n/**\n * Create an HTML extension for `micromark` to support GitHub tables syntax.\n *\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to enable GFM\n * table syntax.\n */\nexport function gfmTable() {\n return {\n flow: {\n null: {\n tokenize: tokenizeTable,\n resolveAll: resolveTable\n }\n }\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeTable(effects, ok, nok) {\n const self = this\n let size = 0\n let sizeB = 0\n /** @type {boolean | undefined} */\n let seen\n return start\n\n /**\n * Start of a GFM table.\n *\n * If there is a valid table row or table head before, then we try to parse\n * another row.\n * Otherwise, we try to parse a head.\n *\n * ```markdown\n * > | | a |\n * ^\n * | | - |\n * > | | b |\n * ^\n * ```\n * @type {State}\n */\n function start(code) {\n let index = self.events.length - 1\n while (index > -1) {\n const type = self.events[index][1].type\n if (\n type === 'lineEnding' ||\n // Note: markdown-rs uses `whitespace` instead of `linePrefix`\n type === 'linePrefix'\n )\n index--\n else break\n }\n const tail = index > -1 ? self.events[index][1].type : null\n const next =\n tail === 'tableHead' || tail === 'tableRow' ? bodyRowStart : headRowBefore\n\n // Don’t allow lazy body rows.\n if (next === bodyRowStart && self.parser.lazy[self.now().line]) {\n return nok(code)\n }\n return next(code)\n }\n\n /**\n * Before table head row.\n *\n * ```markdown\n * > | | a |\n * ^\n * | | - |\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headRowBefore(code) {\n effects.enter('tableHead')\n effects.enter('tableRow')\n return headRowStart(code)\n }\n\n /**\n * Before table head row, after whitespace.\n *\n * ```markdown\n * > | | a |\n * ^\n * | | - |\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headRowStart(code) {\n if (code === 124) {\n return headRowBreak(code)\n }\n\n // To do: micromark-js should let us parse our own whitespace in extensions,\n // like `markdown-rs`:\n //\n // ```js\n // // 4+ spaces.\n // if (markdownSpace(code)) {\n // return nok(code)\n // }\n // ```\n\n seen = true\n // Count the first character, that isn’t a pipe, double.\n sizeB += 1\n return headRowBreak(code)\n }\n\n /**\n * At break in table head row.\n *\n * ```markdown\n * > | | a |\n * ^\n * ^\n * ^\n * | | - |\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headRowBreak(code) {\n if (code === null) {\n // Note: in `markdown-rs`, we need to reset, in `micromark-js` we don‘t.\n return nok(code)\n }\n if (markdownLineEnding(code)) {\n // If anything other than one pipe (ignoring whitespace) was used, it’s fine.\n if (sizeB > 1) {\n sizeB = 0\n // To do: check if this works.\n // Feel free to interrupt:\n self.interrupt = true\n effects.exit('tableRow')\n effects.enter('lineEnding')\n effects.consume(code)\n effects.exit('lineEnding')\n return headDelimiterStart\n }\n\n // Note: in `markdown-rs`, we need to reset, in `micromark-js` we don‘t.\n return nok(code)\n }\n if (markdownSpace(code)) {\n // To do: check if this is fine.\n // effects.attempt(State::Next(StateName::GfmTableHeadRowBreak), State::Nok)\n // State::Retry(space_or_tab(tokenizer))\n return factorySpace(effects, headRowBreak, 'whitespace')(code)\n }\n sizeB += 1\n if (seen) {\n seen = false\n // Header cell count.\n size += 1\n }\n if (code === 124) {\n effects.enter('tableCellDivider')\n effects.consume(code)\n effects.exit('tableCellDivider')\n // Whether a delimiter was seen.\n seen = true\n return headRowBreak\n }\n\n // Anything else is cell data.\n effects.enter('data')\n return headRowData(code)\n }\n\n /**\n * In table head row data.\n *\n * ```markdown\n * > | | a |\n * ^\n * | | - |\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headRowData(code) {\n if (code === null || code === 124 || markdownLineEndingOrSpace(code)) {\n effects.exit('data')\n return headRowBreak(code)\n }\n effects.consume(code)\n return code === 92 ? headRowEscape : headRowData\n }\n\n /**\n * In table head row escape.\n *\n * ```markdown\n * > | | a\\-b |\n * ^\n * | | ---- |\n * | | c |\n * ```\n *\n * @type {State}\n */\n function headRowEscape(code) {\n if (code === 92 || code === 124) {\n effects.consume(code)\n return headRowData\n }\n return headRowData(code)\n }\n\n /**\n * Before delimiter row.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headDelimiterStart(code) {\n // Reset `interrupt`.\n self.interrupt = false\n\n // Note: in `markdown-rs`, we need to handle piercing here too.\n if (self.parser.lazy[self.now().line]) {\n return nok(code)\n }\n effects.enter('tableDelimiterRow')\n // Track if we’ve seen a `:` or `|`.\n seen = false\n if (markdownSpace(code)) {\n return factorySpace(\n effects,\n headDelimiterBefore,\n 'linePrefix',\n self.parser.constructs.disable.null.includes('codeIndented')\n ? undefined\n : 4\n )(code)\n }\n return headDelimiterBefore(code)\n }\n\n /**\n * Before delimiter row, after optional whitespace.\n *\n * Reused when a `|` is found later, to parse another cell.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * | | b |\n * ```\n *\n * @type {State}\n */\n function headDelimiterBefore(code) {\n if (code === 45 || code === 58) {\n return headDelimiterValueBefore(code)\n }\n if (code === 124) {\n seen = true\n // If we start with a pipe, we open a cell marker.\n effects.enter('tableCellDivider')\n effects.consume(code)\n effects.exit('tableCellDivider')\n return headDelimiterCellBefore\n }\n\n // More whitespace / empty row not allowed at start.\n return headDelimiterNok(code)\n }\n\n /**\n * After `|`, before delimiter cell.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterCellBefore(code) {\n if (markdownSpace(code)) {\n return factorySpace(effects, headDelimiterValueBefore, 'whitespace')(code)\n }\n return headDelimiterValueBefore(code)\n }\n\n /**\n * Before delimiter cell value.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterValueBefore(code) {\n // Align: left.\n if (code === 58) {\n sizeB += 1\n seen = true\n effects.enter('tableDelimiterMarker')\n effects.consume(code)\n effects.exit('tableDelimiterMarker')\n return headDelimiterLeftAlignmentAfter\n }\n\n // Align: none.\n if (code === 45) {\n sizeB += 1\n // To do: seems weird that this *isn’t* left aligned, but that state is used?\n return headDelimiterLeftAlignmentAfter(code)\n }\n if (code === null || markdownLineEnding(code)) {\n return headDelimiterCellAfter(code)\n }\n return headDelimiterNok(code)\n }\n\n /**\n * After delimiter cell left alignment marker.\n *\n * ```markdown\n * | | a |\n * > | | :- |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterLeftAlignmentAfter(code) {\n if (code === 45) {\n effects.enter('tableDelimiterFiller')\n return headDelimiterFiller(code)\n }\n\n // Anything else is not ok after the left-align colon.\n return headDelimiterNok(code)\n }\n\n /**\n * In delimiter cell filler.\n *\n * ```markdown\n * | | a |\n * > | | - |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterFiller(code) {\n if (code === 45) {\n effects.consume(code)\n return headDelimiterFiller\n }\n\n // Align is `center` if it was `left`, `right` otherwise.\n if (code === 58) {\n seen = true\n effects.exit('tableDelimiterFiller')\n effects.enter('tableDelimiterMarker')\n effects.consume(code)\n effects.exit('tableDelimiterMarker')\n return headDelimiterRightAlignmentAfter\n }\n effects.exit('tableDelimiterFiller')\n return headDelimiterRightAlignmentAfter(code)\n }\n\n /**\n * After delimiter cell right alignment marker.\n *\n * ```markdown\n * | | a |\n * > | | -: |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterRightAlignmentAfter(code) {\n if (markdownSpace(code)) {\n return factorySpace(effects, headDelimiterCellAfter, 'whitespace')(code)\n }\n return headDelimiterCellAfter(code)\n }\n\n /**\n * After delimiter cell.\n *\n * ```markdown\n * | | a |\n * > | | -: |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterCellAfter(code) {\n if (code === 124) {\n return headDelimiterBefore(code)\n }\n if (code === null || markdownLineEnding(code)) {\n // Exit when:\n // * there was no `:` or `|` at all (it’s a thematic break or setext\n // underline instead)\n // * the header cell count is not the delimiter cell count\n if (!seen || size !== sizeB) {\n return headDelimiterNok(code)\n }\n\n // Note: in markdown-rs`, a reset is needed here.\n effects.exit('tableDelimiterRow')\n effects.exit('tableHead')\n // To do: in `markdown-rs`, resolvers need to be registered manually.\n // effects.register_resolver(ResolveName::GfmTable)\n return ok(code)\n }\n return headDelimiterNok(code)\n }\n\n /**\n * In delimiter row, at a disallowed byte.\n *\n * ```markdown\n * | | a |\n * > | | x |\n * ^\n * ```\n *\n * @type {State}\n */\n function headDelimiterNok(code) {\n // Note: in `markdown-rs`, we need to reset, in `micromark-js` we don‘t.\n return nok(code)\n }\n\n /**\n * Before table body row.\n *\n * ```markdown\n * | | a |\n * | | - |\n * > | | b |\n * ^\n * ```\n *\n * @type {State}\n */\n function bodyRowStart(code) {\n // Note: in `markdown-rs` we need to manually take care of a prefix,\n // but in `micromark-js` that is done for us, so if we’re here, we’re\n // never at whitespace.\n effects.enter('tableRow')\n return bodyRowBreak(code)\n }\n\n /**\n * At break in table body row.\n *\n * ```markdown\n * | | a |\n * | | - |\n * > | | b |\n * ^\n * ^\n * ^\n * ```\n *\n * @type {State}\n */\n function bodyRowBreak(code) {\n if (code === 124) {\n effects.enter('tableCellDivider')\n effects.consume(code)\n effects.exit('tableCellDivider')\n return bodyRowBreak\n }\n if (code === null || markdownLineEnding(code)) {\n effects.exit('tableRow')\n return ok(code)\n }\n if (markdownSpace(code)) {\n return factorySpace(effects, bodyRowBreak, 'whitespace')(code)\n }\n\n // Anything else is cell content.\n effects.enter('data')\n return bodyRowData(code)\n }\n\n /**\n * In table body row data.\n *\n * ```markdown\n * | | a |\n * | | - |\n * > | | b |\n * ^\n * ```\n *\n * @type {State}\n */\n function bodyRowData(code) {\n if (code === null || code === 124 || markdownLineEndingOrSpace(code)) {\n effects.exit('data')\n return bodyRowBreak(code)\n }\n effects.consume(code)\n return code === 92 ? bodyRowEscape : bodyRowData\n }\n\n /**\n * In table body row escape.\n *\n * ```markdown\n * | | a |\n * | | ---- |\n * > | | b\\-c |\n * ^\n * ```\n *\n * @type {State}\n */\n function bodyRowEscape(code) {\n if (code === 92 || code === 124) {\n effects.consume(code)\n return bodyRowData\n }\n return bodyRowData(code)\n }\n}\n\n/** @type {Resolver} */\n\nfunction resolveTable(events, context) {\n let index = -1\n let inFirstCellAwaitingPipe = true\n /** @type {RowKind} */\n let rowKind = 0\n /** @type {Range} */\n let lastCell = [0, 0, 0, 0]\n /** @type {Range} */\n let cell = [0, 0, 0, 0]\n let afterHeadAwaitingFirstBodyRow = false\n let lastTableEnd = 0\n /** @type {Token | undefined} */\n let currentTable\n /** @type {Token | undefined} */\n let currentBody\n /** @type {Token | undefined} */\n let currentCell\n const map = new EditMap()\n while (++index < events.length) {\n const event = events[index]\n const token = event[1]\n if (event[0] === 'enter') {\n // Start of head.\n if (token.type === 'tableHead') {\n afterHeadAwaitingFirstBodyRow = false\n\n // Inject previous (body end and) table end.\n if (lastTableEnd !== 0) {\n flushTableEnd(map, context, lastTableEnd, currentTable, currentBody)\n currentBody = undefined\n lastTableEnd = 0\n }\n\n // Inject table start.\n currentTable = {\n type: 'table',\n start: Object.assign({}, token.start),\n // Note: correct end is set later.\n end: Object.assign({}, token.end)\n }\n map.add(index, 0, [['enter', currentTable, context]])\n } else if (\n token.type === 'tableRow' ||\n token.type === 'tableDelimiterRow'\n ) {\n inFirstCellAwaitingPipe = true\n currentCell = undefined\n lastCell = [0, 0, 0, 0]\n cell = [0, index + 1, 0, 0]\n\n // Inject table body start.\n if (afterHeadAwaitingFirstBodyRow) {\n afterHeadAwaitingFirstBodyRow = false\n currentBody = {\n type: 'tableBody',\n start: Object.assign({}, token.start),\n // Note: correct end is set later.\n end: Object.assign({}, token.end)\n }\n map.add(index, 0, [['enter', currentBody, context]])\n }\n rowKind = token.type === 'tableDelimiterRow' ? 2 : currentBody ? 3 : 1\n }\n // Cell data.\n else if (\n rowKind &&\n (token.type === 'data' ||\n token.type === 'tableDelimiterMarker' ||\n token.type === 'tableDelimiterFiller')\n ) {\n inFirstCellAwaitingPipe = false\n\n // First value in cell.\n if (cell[2] === 0) {\n if (lastCell[1] !== 0) {\n cell[0] = cell[1]\n currentCell = flushCell(\n map,\n context,\n lastCell,\n rowKind,\n undefined,\n currentCell\n )\n lastCell = [0, 0, 0, 0]\n }\n cell[2] = index\n }\n } else if (token.type === 'tableCellDivider') {\n if (inFirstCellAwaitingPipe) {\n inFirstCellAwaitingPipe = false\n } else {\n if (lastCell[1] !== 0) {\n cell[0] = cell[1]\n currentCell = flushCell(\n map,\n context,\n lastCell,\n rowKind,\n undefined,\n currentCell\n )\n }\n lastCell = cell\n cell = [lastCell[1], index, 0, 0]\n }\n }\n }\n // Exit events.\n else if (token.type === 'tableHead') {\n afterHeadAwaitingFirstBodyRow = true\n lastTableEnd = index\n } else if (\n token.type === 'tableRow' ||\n token.type === 'tableDelimiterRow'\n ) {\n lastTableEnd = index\n if (lastCell[1] !== 0) {\n cell[0] = cell[1]\n currentCell = flushCell(\n map,\n context,\n lastCell,\n rowKind,\n index,\n currentCell\n )\n } else if (cell[1] !== 0) {\n currentCell = flushCell(map, context, cell, rowKind, index, currentCell)\n }\n rowKind = 0\n } else if (\n rowKind &&\n (token.type === 'data' ||\n token.type === 'tableDelimiterMarker' ||\n token.type === 'tableDelimiterFiller')\n ) {\n cell[3] = index\n }\n }\n if (lastTableEnd !== 0) {\n flushTableEnd(map, context, lastTableEnd, currentTable, currentBody)\n }\n map.consume(context.events)\n\n // To do: move this into `html`, when events are exposed there.\n // That’s what `markdown-rs` does.\n // That needs updates to `mdast-util-gfm-table`.\n index = -1\n while (++index < context.events.length) {\n const event = context.events[index]\n if (event[0] === 'enter' && event[1].type === 'table') {\n event[1]._align = gfmTableAlign(context.events, index)\n }\n }\n return events\n}\n\n/**\n * Generate a cell.\n *\n * @param {EditMap} map\n * @param {Readonly} context\n * @param {Readonly} range\n * @param {RowKind} rowKind\n * @param {number | undefined} rowEnd\n * @param {Token | undefined} previousCell\n * @returns {Token | undefined}\n */\n// eslint-disable-next-line max-params\nfunction flushCell(map, context, range, rowKind, rowEnd, previousCell) {\n // `markdown-rs` uses:\n // rowKind === 2 ? 'tableDelimiterCell' : 'tableCell'\n const groupName =\n rowKind === 1\n ? 'tableHeader'\n : rowKind === 2\n ? 'tableDelimiter'\n : 'tableData'\n // `markdown-rs` uses:\n // rowKind === 2 ? 'tableDelimiterCellValue' : 'tableCellText'\n const valueName = 'tableContent'\n\n // Insert an exit for the previous cell, if there is one.\n //\n // ```markdown\n // > | | aa | bb | cc |\n // ^-- exit\n // ^^^^-- this cell\n // ```\n if (range[0] !== 0) {\n previousCell.end = Object.assign({}, getPoint(context.events, range[0]))\n map.add(range[0], 0, [['exit', previousCell, context]])\n }\n\n // Insert enter of this cell.\n //\n // ```markdown\n // > | | aa | bb | cc |\n // ^-- enter\n // ^^^^-- this cell\n // ```\n const now = getPoint(context.events, range[1])\n previousCell = {\n type: groupName,\n start: Object.assign({}, now),\n // Note: correct end is set later.\n end: Object.assign({}, now)\n }\n map.add(range[1], 0, [['enter', previousCell, context]])\n\n // Insert text start at first data start and end at last data end, and\n // remove events between.\n //\n // ```markdown\n // > | | aa | bb | cc |\n // ^-- enter\n // ^-- exit\n // ^^^^-- this cell\n // ```\n if (range[2] !== 0) {\n const relatedStart = getPoint(context.events, range[2])\n const relatedEnd = getPoint(context.events, range[3])\n /** @type {Token} */\n const valueToken = {\n type: valueName,\n start: Object.assign({}, relatedStart),\n end: Object.assign({}, relatedEnd)\n }\n map.add(range[2], 0, [['enter', valueToken, context]])\n if (rowKind !== 2) {\n // Fix positional info on remaining events\n const start = context.events[range[2]]\n const end = context.events[range[3]]\n start[1].end = Object.assign({}, end[1].end)\n start[1].type = 'chunkText'\n start[1].contentType = 'text'\n\n // Remove if needed.\n if (range[3] > range[2] + 1) {\n const a = range[2] + 1\n const b = range[3] - range[2] - 1\n map.add(a, b, [])\n }\n }\n map.add(range[3] + 1, 0, [['exit', valueToken, context]])\n }\n\n // Insert an exit for the last cell, if at the row end.\n //\n // ```markdown\n // > | | aa | bb | cc |\n // ^-- exit\n // ^^^^^^-- this cell (the last one contains two “between” parts)\n // ```\n if (rowEnd !== undefined) {\n previousCell.end = Object.assign({}, getPoint(context.events, rowEnd))\n map.add(rowEnd, 0, [['exit', previousCell, context]])\n previousCell = undefined\n }\n return previousCell\n}\n\n/**\n * Generate table end (and table body end).\n *\n * @param {Readonly} map\n * @param {Readonly} context\n * @param {number} index\n * @param {Token} table\n * @param {Token | undefined} tableBody\n */\n// eslint-disable-next-line max-params\nfunction flushTableEnd(map, context, index, table, tableBody) {\n /** @type {Array} */\n const exits = []\n const related = getPoint(context.events, index)\n if (tableBody) {\n tableBody.end = Object.assign({}, related)\n exits.push(['exit', tableBody, context])\n }\n table.end = Object.assign({}, related)\n exits.push(['exit', table, context])\n map.add(index + 1, 0, exits)\n}\n\n/**\n * @param {Readonly>} events\n * @param {number} index\n * @returns {Readonly}\n */\nfunction getPoint(events, index) {\n const event = events[index]\n const side = event[0] === 'enter' ? 'start' : 'end'\n return event[1][side]\n}\n","/**\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').State} State\n * @typedef {import('micromark-util-types').TokenizeContext} TokenizeContext\n * @typedef {import('micromark-util-types').Tokenizer} Tokenizer\n */\n\nimport {factorySpace} from 'micromark-factory-space'\nimport {\n markdownLineEnding,\n markdownLineEndingOrSpace,\n markdownSpace\n} from 'micromark-util-character'\nconst tasklistCheck = {\n tokenize: tokenizeTasklistCheck\n}\n\n/**\n * Create an HTML extension for `micromark` to support GFM task list items\n * syntax.\n *\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `htmlExtensions` to\n * support GFM task list items when serializing to HTML.\n */\nexport function gfmTaskListItem() {\n return {\n text: {\n [91]: tasklistCheck\n }\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction tokenizeTasklistCheck(effects, ok, nok) {\n const self = this\n return open\n\n /**\n * At start of task list item check.\n *\n * ```markdown\n * > | * [x] y.\n * ^\n * ```\n *\n * @type {State}\n */\n function open(code) {\n if (\n // Exit if there’s stuff before.\n self.previous !== null ||\n // Exit if not in the first content that is the first child of a list\n // item.\n !self._gfmTasklistFirstContentOfListItem\n ) {\n return nok(code)\n }\n effects.enter('taskListCheck')\n effects.enter('taskListCheckMarker')\n effects.consume(code)\n effects.exit('taskListCheckMarker')\n return inside\n }\n\n /**\n * In task list item check.\n *\n * ```markdown\n * > | * [x] y.\n * ^\n * ```\n *\n * @type {State}\n */\n function inside(code) {\n // Currently we match how GH works in files.\n // To match how GH works in comments, use `markdownSpace` (`[\\t ]`) instead\n // of `markdownLineEndingOrSpace` (`[\\t\\n\\r ]`).\n if (markdownLineEndingOrSpace(code)) {\n effects.enter('taskListCheckValueUnchecked')\n effects.consume(code)\n effects.exit('taskListCheckValueUnchecked')\n return close\n }\n if (code === 88 || code === 120) {\n effects.enter('taskListCheckValueChecked')\n effects.consume(code)\n effects.exit('taskListCheckValueChecked')\n return close\n }\n return nok(code)\n }\n\n /**\n * At close of task list item check.\n *\n * ```markdown\n * > | * [x] y.\n * ^\n * ```\n *\n * @type {State}\n */\n function close(code) {\n if (code === 93) {\n effects.enter('taskListCheckMarker')\n effects.consume(code)\n effects.exit('taskListCheckMarker')\n effects.exit('taskListCheck')\n return after\n }\n return nok(code)\n }\n\n /**\n * @type {State}\n */\n function after(code) {\n // EOL in paragraph means there must be something else after it.\n if (markdownLineEnding(code)) {\n return ok(code)\n }\n\n // Space or tab?\n // Check what comes after.\n if (markdownSpace(code)) {\n return effects.check(\n {\n tokenize: spaceThenNonSpace\n },\n ok,\n nok\n )(code)\n }\n\n // EOF, or non-whitespace, both wrong.\n return nok(code)\n }\n}\n\n/**\n * @this {TokenizeContext}\n * @type {Tokenizer}\n */\nfunction spaceThenNonSpace(effects, ok, nok) {\n return factorySpace(effects, after, 'whitespace')\n\n /**\n * After whitespace, after task list item check.\n *\n * ```markdown\n * > | * [x] y.\n * ^\n * ```\n *\n * @type {State}\n */\n function after(code) {\n // EOF means there was nothing, so bad.\n // EOL means there’s content after it, so good.\n // Impossible to have more spaces.\n // Anything else is good.\n return code === null ? nok(code) : ok(code)\n }\n}\n","/// \n/// \n\n/**\n * @typedef {import('mdast').Root} Root\n * @typedef {import('mdast-util-gfm').Options} MdastOptions\n * @typedef {import('micromark-extension-gfm').Options} MicromarkOptions\n * @typedef {import('unified').Processor} Processor\n */\n\n/**\n * @typedef {MicromarkOptions & MdastOptions} Options\n * Configuration.\n */\n\nimport {gfmFromMarkdown, gfmToMarkdown} from 'mdast-util-gfm'\nimport {gfm} from 'micromark-extension-gfm'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\n/**\n * Add support GFM (autolink literals, footnotes, strikethrough, tables,\n * tasklists).\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {undefined}\n * Nothing.\n */\nexport default function remarkGfm(options) {\n // @ts-expect-error: TS is wrong about `this`.\n // eslint-disable-next-line unicorn/no-this-assignment\n const self = /** @type {Processor} */ (this)\n const settings = options || emptyOptions\n const data = self.data()\n\n const micromarkExtensions =\n data.micromarkExtensions || (data.micromarkExtensions = [])\n const fromMarkdownExtensions =\n data.fromMarkdownExtensions || (data.fromMarkdownExtensions = [])\n const toMarkdownExtensions =\n data.toMarkdownExtensions || (data.toMarkdownExtensions = [])\n\n micromarkExtensions.push(gfm(settings))\n fromMarkdownExtensions.push(gfmFromMarkdown())\n toMarkdownExtensions.push(gfmToMarkdown(settings))\n}\n","/**\n * @typedef {import('micromark-extension-gfm-footnote').HtmlOptions} HtmlOptions\n * @typedef {import('micromark-extension-gfm-strikethrough').Options} Options\n * @typedef {import('micromark-util-types').Extension} Extension\n * @typedef {import('micromark-util-types').HtmlExtension} HtmlExtension\n */\n\nimport {\n combineExtensions,\n combineHtmlExtensions\n} from 'micromark-util-combine-extensions'\nimport {\n gfmAutolinkLiteral,\n gfmAutolinkLiteralHtml\n} from 'micromark-extension-gfm-autolink-literal'\nimport {gfmFootnote, gfmFootnoteHtml} from 'micromark-extension-gfm-footnote'\nimport {\n gfmStrikethrough,\n gfmStrikethroughHtml\n} from 'micromark-extension-gfm-strikethrough'\nimport {gfmTable, gfmTableHtml} from 'micromark-extension-gfm-table'\nimport {gfmTagfilterHtml} from 'micromark-extension-gfm-tagfilter'\nimport {\n gfmTaskListItem,\n gfmTaskListItemHtml\n} from 'micromark-extension-gfm-task-list-item'\n\n/**\n * Create an extension for `micromark` to enable GFM syntax.\n *\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n *\n * Passed to `micromark-extens-gfm-strikethrough`.\n * @returns {Extension}\n * Extension for `micromark` that can be passed in `extensions` to enable GFM\n * syntax.\n */\nexport function gfm(options) {\n return combineExtensions([\n gfmAutolinkLiteral(),\n gfmFootnote(),\n gfmStrikethrough(options),\n gfmTable(),\n gfmTaskListItem()\n ])\n}\n\n/**\n * Create an extension for `micromark` to support GFM when serializing to HTML.\n *\n * @param {HtmlOptions | null | undefined} [options]\n * Configuration (optional).\n *\n * Passed to `micromark-extens-gfm-footnote`.\n * @returns {HtmlExtension}\n * Extension for `micromark` that can be passed in `htmlExtensions` to\n * support GFM when serializing to HTML.\n */\nexport function gfmHtml(options) {\n return combineHtmlExtensions([\n gfmAutolinkLiteralHtml(),\n gfmFootnoteHtml(options),\n gfmStrikethroughHtml(),\n gfmTableHtml(),\n gfmTagfilterHtml(),\n gfmTaskListItemHtml()\n ])\n}\n","/**\n * @typedef {import('mdast-util-from-markdown').Extension} FromMarkdownExtension\n * @typedef {import('mdast-util-to-markdown').Options} ToMarkdownExtension\n */\n\n/**\n * @typedef {import('mdast-util-gfm-table').Options} Options\n * Configuration.\n */\n\nimport {\n gfmAutolinkLiteralFromMarkdown,\n gfmAutolinkLiteralToMarkdown\n} from 'mdast-util-gfm-autolink-literal'\nimport {\n gfmFootnoteFromMarkdown,\n gfmFootnoteToMarkdown\n} from 'mdast-util-gfm-footnote'\nimport {\n gfmStrikethroughFromMarkdown,\n gfmStrikethroughToMarkdown\n} from 'mdast-util-gfm-strikethrough'\nimport {gfmTableFromMarkdown, gfmTableToMarkdown} from 'mdast-util-gfm-table'\nimport {\n gfmTaskListItemFromMarkdown,\n gfmTaskListItemToMarkdown\n} from 'mdast-util-gfm-task-list-item'\n\n/**\n * Create an extension for `mdast-util-from-markdown` to enable GFM (autolink\n * literals, footnotes, strikethrough, tables, tasklists).\n *\n * @returns {Array}\n * Extension for `mdast-util-from-markdown` to enable GFM (autolink literals,\n * footnotes, strikethrough, tables, tasklists).\n */\nexport function gfmFromMarkdown() {\n return [\n gfmAutolinkLiteralFromMarkdown(),\n gfmFootnoteFromMarkdown(),\n gfmStrikethroughFromMarkdown(),\n gfmTableFromMarkdown(),\n gfmTaskListItemFromMarkdown()\n ]\n}\n\n/**\n * Create an extension for `mdast-util-to-markdown` to enable GFM (autolink\n * literals, footnotes, strikethrough, tables, tasklists).\n *\n * @param {Options | null | undefined} [options]\n * Configuration.\n * @returns {ToMarkdownExtension}\n * Extension for `mdast-util-to-markdown` to enable GFM (autolink literals,\n * footnotes, strikethrough, tables, tasklists).\n */\nexport function gfmToMarkdown(options) {\n return {\n extensions: [\n gfmAutolinkLiteralToMarkdown(),\n gfmFootnoteToMarkdown(),\n gfmStrikethroughToMarkdown(),\n gfmTableToMarkdown(options),\n gfmTaskListItemToMarkdown()\n ]\n }\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Properties} Properties\n */\n\n/**\n * @template {string} SimpleSelector\n * Selector type.\n * @template {string} DefaultTagName\n * Default tag name.\n * @typedef {(\n * SimpleSelector extends ''\n * ? DefaultTagName\n * : SimpleSelector extends `${infer TagName}.${infer Rest}`\n * ? ExtractTagName\n * : SimpleSelector extends `${infer TagName}#${infer Rest}`\n * ? ExtractTagName\n * : SimpleSelector extends string\n * ? SimpleSelector\n * : DefaultTagName\n * )} ExtractTagName\n * Extract tag name from a simple selector.\n */\n\nconst search = /[#.]/g\n\n/**\n * Create a hast element from a simple CSS selector.\n *\n * @template {string} Selector\n * Type of selector.\n * @template {string} [DefaultTagName='div']\n * Type of default tag name (default: `'div'`).\n * @param {Selector | null | undefined} [selector]\n * Simple CSS selector (optional).\n *\n * Can contain a tag name (`foo`), classes (`.bar`), and an ID (`#baz`).\n * Multiple classes are allowed.\n * Uses the last ID if multiple IDs are found.\n * @param {DefaultTagName | null | undefined} [defaultTagName='div']\n * Tag name to use if `selector` does not specify one (default: `'div'`).\n * @returns {Element & {tagName: ExtractTagName}}\n * Built element.\n */\nexport function parseSelector(selector, defaultTagName) {\n const value = selector || ''\n /** @type {Properties} */\n const props = {}\n let start = 0\n /** @type {string | undefined} */\n let previous\n /** @type {string | undefined} */\n let tagName\n\n while (start < value.length) {\n search.lastIndex = start\n const match = search.exec(value)\n const subvalue = value.slice(start, match ? match.index : value.length)\n\n if (subvalue) {\n if (!previous) {\n tagName = subvalue\n } else if (previous === '#') {\n props.id = subvalue\n } else if (Array.isArray(props.className)) {\n props.className.push(subvalue)\n } else {\n props.className = [subvalue]\n }\n\n start += subvalue.length\n }\n\n if (match) {\n previous = match[0]\n start++\n }\n }\n\n return {\n type: 'element',\n // @ts-expect-error: tag name is parsed.\n tagName: tagName || defaultTagName || 'div',\n properties: props,\n children: []\n }\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('property-information').Info} Info\n * @typedef {import('property-information').Schema} Schema\n */\n\n/**\n * @typedef {Element | Root} Result\n * Result from a `h` (or `s`) call.\n *\n * @typedef {number | string} StyleValue\n * Value for a CSS style field.\n * @typedef {Record} Style\n * Supported value of a `style` prop.\n * @typedef {boolean | number | string | null | undefined} PrimitiveValue\n * Primitive property value.\n * @typedef {Array} ArrayValue\n * List of property values for space- or comma separated values (such as `className`).\n * @typedef {ArrayValue | PrimitiveValue} PropertyValue\n * Primitive value or list value.\n * @typedef {{[property: string]: PropertyValue | Style}} Properties\n * Acceptable value for element properties.\n *\n * @typedef {number | string | null | undefined} PrimitiveChild\n * Primitive children, either ignored (nullish), or turned into text nodes.\n * @typedef {Array} ArrayChild\n * List of children.\n * @typedef {Array} ArrayChildNested\n * List of children (deep).\n * @typedef {ArrayChild | Nodes | PrimitiveChild} Child\n * Acceptable child value.\n */\n\nimport {parse as commas} from 'comma-separated-tokens'\nimport {parseSelector} from 'hast-util-parse-selector'\nimport {find, normalize} from 'property-information'\nimport {parse as spaces} from 'space-separated-tokens'\n\nconst buttonTypes = new Set(['button', 'menu', 'reset', 'submit'])\n\nconst own = {}.hasOwnProperty\n\n/**\n * @param {Schema} schema\n * Schema to use.\n * @param {string} defaultTagName\n * Default tag name.\n * @param {Array | undefined} [caseSensitive]\n * Case-sensitive tag names (default: `undefined`).\n * @returns\n * `h`.\n */\nexport function createH(schema, defaultTagName, caseSensitive) {\n const adjust = caseSensitive && createAdjustMap(caseSensitive)\n\n /**\n * Hyperscript compatible DSL for creating virtual hast trees.\n *\n * @overload\n * @param {null | undefined} [selector]\n * @param {...Child} children\n * @returns {Root}\n *\n * @overload\n * @param {string} selector\n * @param {Properties} properties\n * @param {...Child} children\n * @returns {Element}\n *\n * @overload\n * @param {string} selector\n * @param {...Child} children\n * @returns {Element}\n *\n * @param {string | null | undefined} [selector]\n * Selector.\n * @param {Child | Properties | null | undefined} [properties]\n * Properties (or first child) (default: `undefined`).\n * @param {...Child} children\n * Children.\n * @returns {Result}\n * Result.\n */\n function h(selector, properties, ...children) {\n let index = -1\n /** @type {Result} */\n let node\n\n if (selector === undefined || selector === null) {\n node = {type: 'root', children: []}\n // Properties are not supported for roots.\n const child = /** @type {Child} */ (properties)\n children.unshift(child)\n } else {\n node = parseSelector(selector, defaultTagName)\n // Normalize the name.\n node.tagName = node.tagName.toLowerCase()\n if (adjust && own.call(adjust, node.tagName)) {\n node.tagName = adjust[node.tagName]\n }\n\n // Handle props.\n if (isProperties(properties, node.tagName)) {\n /** @type {string} */\n let key\n\n for (key in properties) {\n if (own.call(properties, key)) {\n addProperty(schema, node.properties, key, properties[key])\n }\n }\n } else {\n children.unshift(properties)\n }\n }\n\n // Handle children.\n while (++index < children.length) {\n addChild(node.children, children[index])\n }\n\n if (node.type === 'element' && node.tagName === 'template') {\n node.content = {type: 'root', children: node.children}\n node.children = []\n }\n\n return node\n }\n\n return h\n}\n\n/**\n * Check if something is properties or a child.\n *\n * @param {Child | Properties} value\n * Value to check.\n * @param {string} name\n * Tag name.\n * @returns {value is Properties}\n * Whether `value` is a properties object.\n */\nfunction isProperties(value, name) {\n if (\n value === null ||\n value === undefined ||\n typeof value !== 'object' ||\n Array.isArray(value)\n ) {\n return false\n }\n\n if (name === 'input' || !value.type || typeof value.type !== 'string') {\n return true\n }\n\n if ('children' in value && Array.isArray(value.children)) {\n return false\n }\n\n if (name === 'button') {\n return buttonTypes.has(value.type.toLowerCase())\n }\n\n return !('value' in value)\n}\n\n/**\n * @param {Schema} schema\n * Schema.\n * @param {Properties} properties\n * Properties object.\n * @param {string} key\n * Property name.\n * @param {PropertyValue | Style} value\n * Property value.\n * @returns {undefined}\n * Nothing.\n */\nfunction addProperty(schema, properties, key, value) {\n const info = find(schema, key)\n let index = -1\n /** @type {PropertyValue} */\n let result\n\n // Ignore nullish and NaN values.\n if (value === undefined || value === null) return\n\n if (typeof value === 'number') {\n // Ignore NaN.\n if (Number.isNaN(value)) return\n\n result = value\n }\n // Booleans.\n else if (typeof value === 'boolean') {\n result = value\n }\n // Handle list values.\n else if (typeof value === 'string') {\n if (info.spaceSeparated) {\n result = spaces(value)\n } else if (info.commaSeparated) {\n result = commas(value)\n } else if (info.commaOrSpaceSeparated) {\n result = spaces(commas(value).join(' '))\n } else {\n result = parsePrimitive(info, info.property, value)\n }\n } else if (Array.isArray(value)) {\n result = value.concat()\n } else {\n result = info.property === 'style' ? style(value) : String(value)\n }\n\n if (Array.isArray(result)) {\n /** @type {Array} */\n const finalResult = []\n\n while (++index < result.length) {\n // Assume no booleans in array.\n const value = /** @type {number | string} */ (\n parsePrimitive(info, info.property, result[index])\n )\n finalResult[index] = value\n }\n\n result = finalResult\n }\n\n // Class names (which can be added both on the `selector` and here).\n if (info.property === 'className' && Array.isArray(properties.className)) {\n // Assume no booleans in `className`.\n const value = /** @type {number | string} */ (result)\n result = properties.className.concat(value)\n }\n\n properties[info.property] = result\n}\n\n/**\n * @param {Array} nodes\n * Children.\n * @param {Child} value\n * Child.\n * @returns {undefined}\n * Nothing.\n */\nfunction addChild(nodes, value) {\n let index = -1\n\n if (value === undefined || value === null) {\n // Empty.\n } else if (typeof value === 'string' || typeof value === 'number') {\n nodes.push({type: 'text', value: String(value)})\n } else if (Array.isArray(value)) {\n while (++index < value.length) {\n addChild(nodes, value[index])\n }\n } else if (typeof value === 'object' && 'type' in value) {\n if (value.type === 'root') {\n addChild(nodes, value.children)\n } else {\n nodes.push(value)\n }\n } else {\n throw new Error('Expected node, nodes, or string, got `' + value + '`')\n }\n}\n\n/**\n * Parse a single primitives.\n *\n * @param {Info} info\n * Property information.\n * @param {string} name\n * Property name.\n * @param {PrimitiveValue} value\n * Property value.\n * @returns {PrimitiveValue}\n * Property value.\n */\nfunction parsePrimitive(info, name, value) {\n if (typeof value === 'string') {\n if (info.number && value && !Number.isNaN(Number(value))) {\n return Number(value)\n }\n\n if (\n (info.boolean || info.overloadedBoolean) &&\n (value === '' || normalize(value) === normalize(name))\n ) {\n return true\n }\n }\n\n return value\n}\n\n/**\n * Serialize a `style` object as a string.\n *\n * @param {Style} value\n * Style object.\n * @returns {string}\n * CSS string.\n */\nfunction style(value) {\n /** @type {Array} */\n const result = []\n /** @type {string} */\n let key\n\n for (key in value) {\n if (own.call(value, key)) {\n result.push([key, value[key]].join(': '))\n }\n }\n\n return result.join('; ')\n}\n\n/**\n * Create a map to adjust casing.\n *\n * @param {Array} values\n * List of properly cased keys.\n * @returns {Record}\n * Map of lowercase keys to uppercase keys.\n */\nfunction createAdjustMap(values) {\n /** @type {Record} */\n const result = {}\n let index = -1\n\n while (++index < values.length) {\n result[values[index].toLowerCase()] = values[index]\n }\n\n return result\n}\n","export const svgCaseSensitiveTagNames = [\n 'altGlyph',\n 'altGlyphDef',\n 'altGlyphItem',\n 'animateColor',\n 'animateMotion',\n 'animateTransform',\n 'clipPath',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feDropShadow',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'foreignObject',\n 'glyphRef',\n 'linearGradient',\n 'radialGradient',\n 'solidColor',\n 'textArea',\n 'textPath'\n]\n","/**\n * @typedef {import('./create-h.js').Child} Child\n * Acceptable child value.\n * @typedef {import('./create-h.js').Properties} Properties\n * Acceptable value for element properties.\n * @typedef {import('./create-h.js').Result} Result\n * Result from a `h` (or `s`) call.\n */\n\n// Register the JSX namespace on `h`.\n/**\n * @typedef {import('./jsx-classic.js').Element} h.JSX.Element\n * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute\n * @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes\n * @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements\n */\n\n// Register the JSX namespace on `s`.\n/**\n * @typedef {import('./jsx-classic.js').Element} s.JSX.Element\n * @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute\n * @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes\n * @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements\n */\n\nimport {html, svg} from 'property-information'\nimport {createH} from './create-h.js'\nimport {svgCaseSensitiveTagNames} from './svg-case-sensitive-tag-names.js'\n\n// Note: this explicit type is needed, otherwise TS creates broken types.\n/** @type {ReturnType} */\nexport const h = createH(html, 'div')\n\n// Note: this explicit type is needed, otherwise TS creates broken types.\n/** @type {ReturnType} */\nexport const s = createH(svg, 'g', svgCaseSensitiveTagNames)\n","/**\n * @typedef {import('vfile').VFile} VFile\n * @typedef {import('vfile').Value} Value\n * @typedef {import('unist').Point} UnistPoint\n */\n\n/**\n *\n * @typedef PointLike\n * unist point, allowed as input.\n * @property {number | null | undefined} [line]\n * Line.\n * @property {number | null | undefined} [column]\n * Column.\n * @property {number | null | undefined} [offset]\n * Offset.\n *\n * @callback ToPoint\n * Get the line/column based `Point` for `offset` in the bound indices.\n *\n * Returns `undefined` when given out of bounds input.\n *\n * Also implemented in Rust in [`wooorm/markdown-rs`][markdown-rs].\n *\n * [markdown-rs]: https://github.com/wooorm/markdown-rs/blob/main/src/util/location.rs\n * @param {number | null | undefined} [offset]\n * Something that should be an `offset.\n * @returns {UnistPoint | undefined}\n * Point, if `offset` is valid and in-bounds input.\n *\n * @callback ToOffset\n * Get the `offset` from a line/column based `Point` in the bound indices.\n * @param {PointLike | null | undefined} [point]\n * Something that should be a `point.\n * @returns {number | undefined}\n * Offset (`number`) or `undefined` for invalid or out of bounds input.\n *\n * @typedef Location\n * Accessors for index.\n * @property {ToPoint} toPoint\n * Get the line/column based `Point` for `offset` in the bound indices.\n * @property {ToOffset} toOffset\n * Get the `offset` from a line/column based `Point` in the bound indices.\n */\n\nconst search = /\\r?\\n|\\r/g\n\n/**\n * Create an index of the given document to translate between line/column and\n * offset based positional info.\n *\n * Also implemented in Rust in [`wooorm/markdown-rs`][markdown-rs].\n *\n * [markdown-rs]: https://github.com/wooorm/markdown-rs/blob/main/src/util/location.rs\n *\n * @param {VFile | Value} file\n * File to index.\n * @returns {Location}\n * Accessors for index.\n */\nexport function location(file) {\n const value = String(file)\n /**\n * List, where each index is a line number (0-based), and each value is the\n * byte index *after* where the line ends.\n *\n * @type {Array}\n */\n const indices = []\n\n search.lastIndex = 0\n\n while (search.test(value)) {\n indices.push(search.lastIndex)\n }\n\n indices.push(value.length + 1)\n\n return {toPoint, toOffset}\n\n /** @type {ToPoint} */\n function toPoint(offset) {\n let index = -1\n\n if (\n typeof offset === 'number' &&\n offset > -1 &&\n offset < indices[indices.length - 1]\n ) {\n while (++index < indices.length) {\n if (indices[index] > offset) {\n return {\n line: index + 1,\n column: offset - (index > 0 ? indices[index - 1] : 0) + 1,\n offset\n }\n }\n }\n }\n }\n\n /** @type {ToOffset} */\n function toOffset(point) {\n const line = point && point.line\n const column = point && point.column\n\n if (\n typeof line === 'number' &&\n typeof column === 'number' &&\n !Number.isNaN(line) &&\n !Number.isNaN(column) &&\n line - 1 in indices\n ) {\n const offset = (indices[line - 2] || 0) + column - 1 || 0\n\n if (offset > -1 && offset < indices[indices.length - 1]) {\n return offset\n }\n }\n }\n}\n","/**\n * Map of web namespaces.\n *\n * @type {Record}\n */\nexport const webNamespaces = {\n html: 'http://www.w3.org/1999/xhtml',\n mathml: 'http://www.w3.org/1998/Math/MathML',\n svg: 'http://www.w3.org/2000/svg',\n xlink: 'http://www.w3.org/1999/xlink',\n xml: 'http://www.w3.org/XML/1998/namespace',\n xmlns: 'http://www.w3.org/2000/xmlns/'\n}\n","/**\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').ElementData} ElementData\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n *\n * @typedef {import('parse5').DefaultTreeAdapterMap} DefaultTreeAdapterMap\n * @typedef {import('parse5').Token.ElementLocation} P5ElementLocation\n * @typedef {import('parse5').Token.Location} P5Location\n *\n * @typedef {import('property-information').Schema} Schema\n *\n * @typedef {import('unist').Point} Point\n * @typedef {import('unist').Position} Position\n *\n * @typedef {import('vfile').VFile} VFile\n */\n\n/**\n * @typedef {DefaultTreeAdapterMap['document']} P5Document\n * @typedef {DefaultTreeAdapterMap['documentFragment']} P5DocumentFragment\n * @typedef {DefaultTreeAdapterMap['documentType']} P5DocumentType\n * @typedef {DefaultTreeAdapterMap['commentNode']} P5Comment\n * @typedef {DefaultTreeAdapterMap['textNode']} P5Text\n * @typedef {DefaultTreeAdapterMap['element']} P5Element\n * @typedef {DefaultTreeAdapterMap['node']} P5Node\n * @typedef {DefaultTreeAdapterMap['template']} P5Template\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {Space | null | undefined} [space='html']\n * Which space the document is in (default: `'html'`).\n *\n * When an `` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it.\n * @property {VFile | null | undefined} [file]\n * File used to add positional info to nodes (optional).\n *\n * If given, the file should represent the original HTML source.\n * @property {boolean | null | undefined} [verbose=false]\n * Whether to add extra positional info about starting tags, closing tags,\n * and attributes to elements (default: `false`).\n *\n * > 👉 **Note**: only used when `file` is given.\n *\n * @typedef {'html' | 'svg'} Space\n * Namespace.\n *\n * @typedef State\n * Info passed around about the current state.\n * @property {VFile | undefined} file\n * Corresponding file.\n * @property {boolean} location\n * Whether location info was found.\n * @property {Schema} schema\n * Current schema.\n * @property {boolean | undefined} verbose\n * Add extra positional info.\n */\n\nimport {ok as assert} from 'devlop'\nimport {h, s} from 'hastscript'\nimport {find, html, svg} from 'property-information'\nimport {location} from 'vfile-location'\nimport {webNamespaces} from 'web-namespaces'\n\nconst own = {}.hasOwnProperty\n/** @type {unknown} */\n// type-coverage:ignore-next-line\nconst proto = Object.prototype\n\n/**\n * Transform a `parse5` AST to hast.\n *\n * @param {P5Node} tree\n * `parse5` tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Nodes}\n * hast tree.\n */\nexport function fromParse5(tree, options) {\n const settings = options || {}\n\n return one(\n {\n file: settings.file || undefined,\n location: false,\n schema: settings.space === 'svg' ? svg : html,\n verbose: settings.verbose || false\n },\n tree\n )\n}\n\n/**\n * Transform a node.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {P5Node} node\n * p5 node.\n * @returns {Nodes}\n * hast node.\n */\nfunction one(state, node) {\n /** @type {Nodes} */\n let result\n\n switch (node.nodeName) {\n case '#comment': {\n const reference = /** @type {P5Comment} */ (node)\n result = {type: 'comment', value: reference.data}\n patch(state, reference, result)\n return result\n }\n\n case '#document':\n case '#document-fragment': {\n const reference = /** @type {P5Document | P5DocumentFragment} */ (node)\n const quirksMode =\n 'mode' in reference\n ? reference.mode === 'quirks' || reference.mode === 'limited-quirks'\n : false\n\n result = {\n type: 'root',\n children: all(state, node.childNodes),\n data: {quirksMode}\n }\n\n if (state.file && state.location) {\n const doc = String(state.file)\n const loc = location(doc)\n const start = loc.toPoint(0)\n const end = loc.toPoint(doc.length)\n // Always defined as we give valid input.\n assert(start, 'expected `start`')\n assert(end, 'expected `end`')\n result.position = {start, end}\n }\n\n return result\n }\n\n case '#documentType': {\n const reference = /** @type {P5DocumentType} */ (node)\n result = {type: 'doctype'}\n patch(state, reference, result)\n return result\n }\n\n case '#text': {\n const reference = /** @type {P5Text} */ (node)\n result = {type: 'text', value: reference.value}\n patch(state, reference, result)\n return result\n }\n\n // Element.\n default: {\n const reference = /** @type {P5Element} */ (node)\n result = element(state, reference)\n return result\n }\n }\n}\n\n/**\n * Transform children.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Array} nodes\n * Nodes.\n * @returns {Array}\n * hast nodes.\n */\nfunction all(state, nodes) {\n let index = -1\n /** @type {Array} */\n const results = []\n\n while (++index < nodes.length) {\n // Assume no roots in `nodes`.\n const result = /** @type {RootContent} */ (one(state, nodes[index]))\n results.push(result)\n }\n\n return results\n}\n\n/**\n * Transform an element.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {P5Element} node\n * `parse5` node to transform.\n * @returns {Element}\n * hast node.\n */\nfunction element(state, node) {\n const schema = state.schema\n\n state.schema = node.namespaceURI === webNamespaces.svg ? svg : html\n\n // Props.\n let index = -1\n /** @type {Record} */\n const props = {}\n\n while (++index < node.attrs.length) {\n const attribute = node.attrs[index]\n const name =\n (attribute.prefix ? attribute.prefix + ':' : '') + attribute.name\n if (!own.call(proto, name)) {\n props[name] = attribute.value\n }\n }\n\n // Build.\n const fn = state.schema.space === 'svg' ? s : h\n const result = fn(node.tagName, props, all(state, node.childNodes))\n patch(state, node, result)\n\n // Switch content.\n if (result.tagName === 'template') {\n const reference = /** @type {P5Template} */ (node)\n const pos = reference.sourceCodeLocation\n const startTag = pos && pos.startTag && position(pos.startTag)\n const endTag = pos && pos.endTag && position(pos.endTag)\n\n // Root in, root out.\n const content = /** @type {Root} */ (one(state, reference.content))\n\n if (startTag && endTag && state.file) {\n content.position = {start: startTag.end, end: endTag.start}\n }\n\n result.content = content\n }\n\n state.schema = schema\n\n return result\n}\n\n/**\n * Patch positional info from `from` onto `to`.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {P5Node} from\n * p5 node.\n * @param {Nodes} to\n * hast node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(state, from, to) {\n if ('sourceCodeLocation' in from && from.sourceCodeLocation && state.file) {\n const position = createLocation(state, to, from.sourceCodeLocation)\n\n if (position) {\n state.location = true\n to.position = position\n }\n }\n}\n\n/**\n * Create clean positional information.\n *\n * @param {State} state\n * Info passed around about the current state.\n * @param {Nodes} node\n * hast node.\n * @param {P5ElementLocation} location\n * p5 location info.\n * @returns {Position | undefined}\n * Position, or nothing.\n */\nfunction createLocation(state, node, location) {\n const result = position(location)\n\n if (node.type === 'element') {\n const tail = node.children[node.children.length - 1]\n\n // Bug for unclosed with children.\n // See: .\n if (\n result &&\n !location.endTag &&\n tail &&\n tail.position &&\n tail.position.end\n ) {\n result.end = Object.assign({}, tail.position.end)\n }\n\n if (state.verbose) {\n /** @type {Record} */\n const props = {}\n /** @type {string} */\n let key\n\n if (location.attrs) {\n for (key in location.attrs) {\n if (own.call(location.attrs, key)) {\n props[find(state.schema, key).property] = position(\n location.attrs[key]\n )\n }\n }\n }\n\n assert(location.startTag, 'a start tag should exist')\n const opening = position(location.startTag)\n const closing = location.endTag ? position(location.endTag) : undefined\n /** @type {ElementData['position']} */\n const data = {opening}\n if (closing) data.closing = closing\n data.properties = props\n\n node.data = {position: data}\n }\n }\n\n return result\n}\n\n/**\n * Turn a p5 location into a position.\n *\n * @param {P5Location} loc\n * Location.\n * @returns {Position | undefined}\n * Position or nothing.\n */\nfunction position(loc) {\n const start = point({\n line: loc.startLine,\n column: loc.startCol,\n offset: loc.startOffset\n })\n const end = point({\n line: loc.endLine,\n column: loc.endCol,\n offset: loc.endOffset\n })\n\n // @ts-expect-error: we do use `undefined` for points if one or the other\n // exists.\n return start || end ? {start, end} : undefined\n}\n\n/**\n * Filter out invalid points.\n *\n * @param {Point} point\n * Point with potentially `undefined` values.\n * @returns {Point | undefined}\n * Point or nothing.\n */\nfunction point(point) {\n return point.line && point.column ? point : undefined\n}\n","/**\n * @callback Handler\n * Handle a value, with a certain ID field set to a certain value.\n * The ID field is passed to `zwitch`, and it’s value is this function’s\n * place on the `handlers` record.\n * @param {...any} parameters\n * Arbitrary parameters passed to the zwitch.\n * The first will be an object with a certain ID field set to a certain value.\n * @returns {any}\n * Anything!\n */\n\n/**\n * @callback UnknownHandler\n * Handle values that do have a certain ID field, but it’s set to a value\n * that is not listed in the `handlers` record.\n * @param {unknown} value\n * An object with a certain ID field set to an unknown value.\n * @param {...any} rest\n * Arbitrary parameters passed to the zwitch.\n * @returns {any}\n * Anything!\n */\n\n/**\n * @callback InvalidHandler\n * Handle values that do not have a certain ID field.\n * @param {unknown} value\n * Any unknown value.\n * @param {...any} rest\n * Arbitrary parameters passed to the zwitch.\n * @returns {void|null|undefined|never}\n * This should crash or return nothing.\n */\n\n/**\n * @template {InvalidHandler} [Invalid=InvalidHandler]\n * @template {UnknownHandler} [Unknown=UnknownHandler]\n * @template {Record} [Handlers=Record]\n * @typedef Options\n * Configuration (required).\n * @property {Invalid} [invalid]\n * Handler to use for invalid values.\n * @property {Unknown} [unknown]\n * Handler to use for unknown values.\n * @property {Handlers} [handlers]\n * Handlers to use.\n */\n\nconst own = {}.hasOwnProperty\n\n/**\n * Handle values based on a field.\n *\n * @template {InvalidHandler} [Invalid=InvalidHandler]\n * @template {UnknownHandler} [Unknown=UnknownHandler]\n * @template {Record} [Handlers=Record]\n * @param {string} key\n * Field to switch on.\n * @param {Options} [options]\n * Configuration (required).\n * @returns {{unknown: Unknown, invalid: Invalid, handlers: Handlers, (...parameters: Parameters): ReturnType, (...parameters: Parameters): ReturnType}}\n */\nexport function zwitch(key, options) {\n const settings = options || {}\n\n /**\n * Handle one value.\n *\n * Based on the bound `key`, a respective handler will be called.\n * If `value` is not an object, or doesn’t have a `key` property, the special\n * “invalid” handler will be called.\n * If `value` has an unknown `key`, the special “unknown” handler will be\n * called.\n *\n * All arguments, and the context object, are passed through to the handler,\n * and it’s result is returned.\n *\n * @this {unknown}\n * Any context object.\n * @param {unknown} [value]\n * Any value.\n * @param {...unknown} parameters\n * Arbitrary parameters passed to the zwitch.\n * @property {Handler} invalid\n * Handle for values that do not have a certain ID field.\n * @property {Handler} unknown\n * Handle values that do have a certain ID field, but it’s set to a value\n * that is not listed in the `handlers` record.\n * @property {Handlers} handlers\n * Record of handlers.\n * @returns {unknown}\n * Anything.\n */\n function one(value, ...parameters) {\n /** @type {Handler|undefined} */\n let fn = one.invalid\n const handlers = one.handlers\n\n if (value && own.call(value, key)) {\n // @ts-expect-error Indexable.\n const id = String(value[key])\n // @ts-expect-error Indexable.\n fn = own.call(handlers, id) ? handlers[id] : one.unknown\n }\n\n if (fn) {\n return fn.call(this, value, ...parameters)\n }\n }\n\n one.handlers = settings.handlers || {}\n one.invalid = settings.invalid\n one.unknown = settings.unknown\n\n // @ts-expect-error: matches!\n return one\n}\n","/**\n * @typedef {import('hast').Comment} Comment\n * @typedef {import('hast').Doctype} Doctype\n * @typedef {import('hast').Element} Element\n * @typedef {import('hast').Nodes} Nodes\n * @typedef {import('hast').Root} Root\n * @typedef {import('hast').RootContent} RootContent\n * @typedef {import('hast').Text} Text\n *\n * @typedef {import('parse5').DefaultTreeAdapterMap['document']} Parse5Document\n * @typedef {import('parse5').DefaultTreeAdapterMap['documentFragment']} Parse5Fragment\n * @typedef {import('parse5').DefaultTreeAdapterMap['element']} Parse5Element\n * @typedef {import('parse5').DefaultTreeAdapterMap['node']} Parse5Nodes\n * @typedef {import('parse5').DefaultTreeAdapterMap['documentType']} Parse5Doctype\n * @typedef {import('parse5').DefaultTreeAdapterMap['commentNode']} Parse5Comment\n * @typedef {import('parse5').DefaultTreeAdapterMap['textNode']} Parse5Text\n * @typedef {import('parse5').DefaultTreeAdapterMap['parentNode']} Parse5Parent\n * @typedef {import('parse5').Token.Attribute} Parse5Attribute\n *\n * @typedef {import('property-information').Schema} Schema\n */\n\n/**\n * @typedef Options\n * Configuration.\n * @property {Space | null | undefined} [space='html']\n * Which space the document is in (default: `'html'`).\n *\n * When an `` element is found in the HTML space, this package already\n * automatically switches to and from the SVG space when entering and exiting\n * it.\n *\n * @typedef {Exclude} Parse5Content\n *\n * @typedef {'html' | 'svg'} Space\n */\n\nimport {stringify as commas} from 'comma-separated-tokens'\nimport {ok as assert} from 'devlop'\nimport {find, html, svg} from 'property-information'\nimport {stringify as spaces} from 'space-separated-tokens'\nimport {webNamespaces} from 'web-namespaces'\nimport {zwitch} from 'zwitch'\n\n/** @type {Options} */\nconst emptyOptions = {}\n\nconst own = {}.hasOwnProperty\n\nconst one = zwitch('type', {handlers: {root, element, text, comment, doctype}})\n\n/**\n * Transform a hast tree to a `parse5` AST.\n *\n * @param {Nodes} tree\n * Tree to transform.\n * @param {Options | null | undefined} [options]\n * Configuration (optional).\n * @returns {Parse5Nodes}\n * `parse5` node.\n */\nexport function toParse5(tree, options) {\n const settings = options || emptyOptions\n const space = settings.space\n return one(tree, space === 'svg' ? svg : html)\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Document}\n * Parse5 node.\n */\nfunction root(node, schema) {\n /** @type {Parse5Document} */\n const result = {\n nodeName: '#document',\n // @ts-expect-error: `parse5` uses enums, which are actually strings.\n mode: (node.data || {}).quirksMode ? 'quirks' : 'no-quirks',\n childNodes: []\n }\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Root} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Fragment}\n * Parse5 node.\n */\nfunction fragment(node, schema) {\n /** @type {Parse5Fragment} */\n const result = {nodeName: '#document-fragment', childNodes: []}\n result.childNodes = all(node.children, result, schema)\n patch(node, result)\n return result\n}\n\n/**\n * @param {Doctype} node\n * Node (hast) to transform.\n * @returns {Parse5Doctype}\n * Parse5 node.\n */\nfunction doctype(node) {\n /** @type {Parse5Doctype} */\n const result = {\n nodeName: '#documentType',\n name: 'html',\n publicId: '',\n systemId: '',\n parentNode: null\n }\n\n patch(node, result)\n return result\n}\n\n/**\n * @param {Text} node\n * Node (hast) to transform.\n * @returns {Parse5Text}\n * Parse5 node.\n */\nfunction text(node) {\n /** @type {Parse5Text} */\n const result = {\n nodeName: '#text',\n value: node.value,\n parentNode: null\n }\n patch(node, result)\n return result\n}\n\n/**\n * @param {Comment} node\n * Node (hast) to transform.\n * @returns {Parse5Comment}\n * Parse5 node.\n */\nfunction comment(node) {\n /** @type {Parse5Comment} */\n const result = {\n nodeName: '#comment',\n data: node.value,\n parentNode: null\n }\n\n patch(node, result)\n\n return result\n}\n\n/**\n * @param {Element} node\n * Node (hast) to transform.\n * @param {Schema} schema\n * Current schema.\n * @returns {Parse5Element}\n * Parse5 node.\n */\nfunction element(node, schema) {\n const parentSchema = schema\n let currentSchema = parentSchema\n\n if (\n node.type === 'element' &&\n node.tagName.toLowerCase() === 'svg' &&\n parentSchema.space === 'html'\n ) {\n currentSchema = svg\n }\n\n /** @type {Array} */\n const attrs = []\n /** @type {string} */\n let prop\n\n if (node.properties) {\n for (prop in node.properties) {\n if (prop !== 'children' && own.call(node.properties, prop)) {\n const result = createProperty(\n currentSchema,\n prop,\n node.properties[prop]\n )\n\n if (result) {\n attrs.push(result)\n }\n }\n }\n }\n\n const space = currentSchema.space\n // `html` and `svg` both have a space.\n assert(space)\n\n /** @type {Parse5Element} */\n const result = {\n nodeName: node.tagName,\n tagName: node.tagName,\n attrs,\n // @ts-expect-error: `parse5` types are wrong.\n namespaceURI: webNamespaces[space],\n childNodes: [],\n parentNode: null\n }\n result.childNodes = all(node.children, result, currentSchema)\n patch(node, result)\n\n if (node.tagName === 'template' && node.content) {\n // @ts-expect-error: `parse5` types are wrong.\n result.content = fragment(node.content, currentSchema)\n }\n\n return result\n}\n\n/**\n * Handle a property.\n *\n * @param {Schema} schema\n * Current schema.\n * @param {string} prop\n * Key.\n * @param {Array | boolean | number | string | null | undefined} value\n * hast property value.\n * @returns {Parse5Attribute | undefined}\n * Field for runtime, optional.\n */\nfunction createProperty(schema, prop, value) {\n const info = find(schema, prop)\n\n // Ignore nullish and `NaN` values.\n if (\n value === false ||\n value === null ||\n value === undefined ||\n (typeof value === 'number' && Number.isNaN(value)) ||\n (!value && info.boolean)\n ) {\n return\n }\n\n if (Array.isArray(value)) {\n // Accept `array`.\n // Most props are space-separated.\n value = info.commaSeparated ? commas(value) : spaces(value)\n }\n\n /** @type {Parse5Attribute} */\n const attribute = {\n name: info.attribute,\n value: value === true ? '' : String(value)\n }\n\n if (info.space && info.space !== 'html' && info.space !== 'svg') {\n const index = attribute.name.indexOf(':')\n\n if (index < 0) {\n attribute.prefix = ''\n } else {\n attribute.name = attribute.name.slice(index + 1)\n attribute.prefix = info.attribute.slice(0, index)\n }\n\n attribute.namespace = webNamespaces[info.space]\n }\n\n return attribute\n}\n\n/**\n * Transform all hast nodes.\n *\n * @param {Array} children\n * List of children.\n * @param {Parse5Parent} parentNode\n * `parse5` parent node.\n * @param {Schema} schema\n * Current schema.\n * @returns {Array}\n * Transformed children.\n */\nfunction all(children, parentNode, schema) {\n let index = -1\n /** @type {Array} */\n const results = []\n\n if (children) {\n while (++index < children.length) {\n /** @type {Parse5Content} */\n const child = one(children[index], schema)\n\n child.parentNode = parentNode\n\n results.push(child)\n }\n }\n\n return results\n}\n\n/**\n * Add position info from `from` to `to`.\n *\n * @param {Nodes} from\n * hast node.\n * @param {Parse5Nodes} to\n * `parse5` node.\n * @returns {undefined}\n * Nothing.\n */\nfunction patch(from, to) {\n const position = from.position\n\n if (position && position.start && position.end) {\n assert(typeof position.start.offset === 'number')\n assert(typeof position.end.offset === 'number')\n\n to.sourceCodeLocation = {\n startLine: position.start.line,\n startCol: position.start.column,\n startOffset: position.start.offset,\n endLine: position.end.line,\n endCol: position.end.column,\n endOffset: position.end.offset\n }\n }\n}\n","/**\n * List of HTML void tag names.\n *\n * @type {Array}\n */\nexport const htmlVoidElements = [\n 'area',\n 'base',\n 'basefont',\n 'bgsound',\n 'br',\n 'col',\n 'command',\n 'embed',\n 'frame',\n 'hr',\n 'image',\n 'img',\n 'input',\n 'keygen',\n 'link',\n 'meta',\n 'param',\n 'source',\n 'track',\n 'wbr'\n]\n","const UNDEFINED_CODE_POINTS = new Set([\n 65534, 65535, 131070, 131071, 196606, 196607, 262142, 262143, 327678, 327679, 393214,\n 393215, 458750, 458751, 524286, 524287, 589822, 589823, 655358, 655359, 720894,\n 720895, 786430, 786431, 851966, 851967, 917502, 917503, 983038, 983039, 1048574,\n 1048575, 1114110, 1114111,\n]);\nexport const REPLACEMENT_CHARACTER = '\\uFFFD';\nexport var CODE_POINTS;\n(function (CODE_POINTS) {\n CODE_POINTS[CODE_POINTS[\"EOF\"] = -1] = \"EOF\";\n CODE_POINTS[CODE_POINTS[\"NULL\"] = 0] = \"NULL\";\n CODE_POINTS[CODE_POINTS[\"TABULATION\"] = 9] = \"TABULATION\";\n CODE_POINTS[CODE_POINTS[\"CARRIAGE_RETURN\"] = 13] = \"CARRIAGE_RETURN\";\n CODE_POINTS[CODE_POINTS[\"LINE_FEED\"] = 10] = \"LINE_FEED\";\n CODE_POINTS[CODE_POINTS[\"FORM_FEED\"] = 12] = \"FORM_FEED\";\n CODE_POINTS[CODE_POINTS[\"SPACE\"] = 32] = \"SPACE\";\n CODE_POINTS[CODE_POINTS[\"EXCLAMATION_MARK\"] = 33] = \"EXCLAMATION_MARK\";\n CODE_POINTS[CODE_POINTS[\"QUOTATION_MARK\"] = 34] = \"QUOTATION_MARK\";\n CODE_POINTS[CODE_POINTS[\"NUMBER_SIGN\"] = 35] = \"NUMBER_SIGN\";\n CODE_POINTS[CODE_POINTS[\"AMPERSAND\"] = 38] = \"AMPERSAND\";\n CODE_POINTS[CODE_POINTS[\"APOSTROPHE\"] = 39] = \"APOSTROPHE\";\n CODE_POINTS[CODE_POINTS[\"HYPHEN_MINUS\"] = 45] = \"HYPHEN_MINUS\";\n CODE_POINTS[CODE_POINTS[\"SOLIDUS\"] = 47] = \"SOLIDUS\";\n CODE_POINTS[CODE_POINTS[\"DIGIT_0\"] = 48] = \"DIGIT_0\";\n CODE_POINTS[CODE_POINTS[\"DIGIT_9\"] = 57] = \"DIGIT_9\";\n CODE_POINTS[CODE_POINTS[\"SEMICOLON\"] = 59] = \"SEMICOLON\";\n CODE_POINTS[CODE_POINTS[\"LESS_THAN_SIGN\"] = 60] = \"LESS_THAN_SIGN\";\n CODE_POINTS[CODE_POINTS[\"EQUALS_SIGN\"] = 61] = \"EQUALS_SIGN\";\n CODE_POINTS[CODE_POINTS[\"GREATER_THAN_SIGN\"] = 62] = \"GREATER_THAN_SIGN\";\n CODE_POINTS[CODE_POINTS[\"QUESTION_MARK\"] = 63] = \"QUESTION_MARK\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_A\"] = 65] = \"LATIN_CAPITAL_A\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_F\"] = 70] = \"LATIN_CAPITAL_F\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_X\"] = 88] = \"LATIN_CAPITAL_X\";\n CODE_POINTS[CODE_POINTS[\"LATIN_CAPITAL_Z\"] = 90] = \"LATIN_CAPITAL_Z\";\n CODE_POINTS[CODE_POINTS[\"RIGHT_SQUARE_BRACKET\"] = 93] = \"RIGHT_SQUARE_BRACKET\";\n CODE_POINTS[CODE_POINTS[\"GRAVE_ACCENT\"] = 96] = \"GRAVE_ACCENT\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_A\"] = 97] = \"LATIN_SMALL_A\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_F\"] = 102] = \"LATIN_SMALL_F\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_X\"] = 120] = \"LATIN_SMALL_X\";\n CODE_POINTS[CODE_POINTS[\"LATIN_SMALL_Z\"] = 122] = \"LATIN_SMALL_Z\";\n CODE_POINTS[CODE_POINTS[\"REPLACEMENT_CHARACTER\"] = 65533] = \"REPLACEMENT_CHARACTER\";\n})(CODE_POINTS = CODE_POINTS || (CODE_POINTS = {}));\nexport const SEQUENCES = {\n DASH_DASH: '--',\n CDATA_START: '[CDATA[',\n DOCTYPE: 'doctype',\n SCRIPT: 'script',\n PUBLIC: 'public',\n SYSTEM: 'system',\n};\n//Surrogates\nexport function isSurrogate(cp) {\n return cp >= 55296 && cp <= 57343;\n}\nexport function isSurrogatePair(cp) {\n return cp >= 56320 && cp <= 57343;\n}\nexport function getSurrogatePairCodePoint(cp1, cp2) {\n return (cp1 - 55296) * 1024 + 9216 + cp2;\n}\n//NOTE: excluding NULL and ASCII whitespace\nexport function isControlCodePoint(cp) {\n return ((cp !== 0x20 && cp !== 0x0a && cp !== 0x0d && cp !== 0x09 && cp !== 0x0c && cp >= 0x01 && cp <= 0x1f) ||\n (cp >= 0x7f && cp <= 0x9f));\n}\nexport function isUndefinedCodePoint(cp) {\n return (cp >= 64976 && cp <= 65007) || UNDEFINED_CODE_POINTS.has(cp);\n}\n//# sourceMappingURL=unicode.js.map","export var ERR;\n(function (ERR) {\n ERR[\"controlCharacterInInputStream\"] = \"control-character-in-input-stream\";\n ERR[\"noncharacterInInputStream\"] = \"noncharacter-in-input-stream\";\n ERR[\"surrogateInInputStream\"] = \"surrogate-in-input-stream\";\n ERR[\"nonVoidHtmlElementStartTagWithTrailingSolidus\"] = \"non-void-html-element-start-tag-with-trailing-solidus\";\n ERR[\"endTagWithAttributes\"] = \"end-tag-with-attributes\";\n ERR[\"endTagWithTrailingSolidus\"] = \"end-tag-with-trailing-solidus\";\n ERR[\"unexpectedSolidusInTag\"] = \"unexpected-solidus-in-tag\";\n ERR[\"unexpectedNullCharacter\"] = \"unexpected-null-character\";\n ERR[\"unexpectedQuestionMarkInsteadOfTagName\"] = \"unexpected-question-mark-instead-of-tag-name\";\n ERR[\"invalidFirstCharacterOfTagName\"] = \"invalid-first-character-of-tag-name\";\n ERR[\"unexpectedEqualsSignBeforeAttributeName\"] = \"unexpected-equals-sign-before-attribute-name\";\n ERR[\"missingEndTagName\"] = \"missing-end-tag-name\";\n ERR[\"unexpectedCharacterInAttributeName\"] = \"unexpected-character-in-attribute-name\";\n ERR[\"unknownNamedCharacterReference\"] = \"unknown-named-character-reference\";\n ERR[\"missingSemicolonAfterCharacterReference\"] = \"missing-semicolon-after-character-reference\";\n ERR[\"unexpectedCharacterAfterDoctypeSystemIdentifier\"] = \"unexpected-character-after-doctype-system-identifier\";\n ERR[\"unexpectedCharacterInUnquotedAttributeValue\"] = \"unexpected-character-in-unquoted-attribute-value\";\n ERR[\"eofBeforeTagName\"] = \"eof-before-tag-name\";\n ERR[\"eofInTag\"] = \"eof-in-tag\";\n ERR[\"missingAttributeValue\"] = \"missing-attribute-value\";\n ERR[\"missingWhitespaceBetweenAttributes\"] = \"missing-whitespace-between-attributes\";\n ERR[\"missingWhitespaceAfterDoctypePublicKeyword\"] = \"missing-whitespace-after-doctype-public-keyword\";\n ERR[\"missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers\"] = \"missing-whitespace-between-doctype-public-and-system-identifiers\";\n ERR[\"missingWhitespaceAfterDoctypeSystemKeyword\"] = \"missing-whitespace-after-doctype-system-keyword\";\n ERR[\"missingQuoteBeforeDoctypePublicIdentifier\"] = \"missing-quote-before-doctype-public-identifier\";\n ERR[\"missingQuoteBeforeDoctypeSystemIdentifier\"] = \"missing-quote-before-doctype-system-identifier\";\n ERR[\"missingDoctypePublicIdentifier\"] = \"missing-doctype-public-identifier\";\n ERR[\"missingDoctypeSystemIdentifier\"] = \"missing-doctype-system-identifier\";\n ERR[\"abruptDoctypePublicIdentifier\"] = \"abrupt-doctype-public-identifier\";\n ERR[\"abruptDoctypeSystemIdentifier\"] = \"abrupt-doctype-system-identifier\";\n ERR[\"cdataInHtmlContent\"] = \"cdata-in-html-content\";\n ERR[\"incorrectlyOpenedComment\"] = \"incorrectly-opened-comment\";\n ERR[\"eofInScriptHtmlCommentLikeText\"] = \"eof-in-script-html-comment-like-text\";\n ERR[\"eofInDoctype\"] = \"eof-in-doctype\";\n ERR[\"nestedComment\"] = \"nested-comment\";\n ERR[\"abruptClosingOfEmptyComment\"] = \"abrupt-closing-of-empty-comment\";\n ERR[\"eofInComment\"] = \"eof-in-comment\";\n ERR[\"incorrectlyClosedComment\"] = \"incorrectly-closed-comment\";\n ERR[\"eofInCdata\"] = \"eof-in-cdata\";\n ERR[\"absenceOfDigitsInNumericCharacterReference\"] = \"absence-of-digits-in-numeric-character-reference\";\n ERR[\"nullCharacterReference\"] = \"null-character-reference\";\n ERR[\"surrogateCharacterReference\"] = \"surrogate-character-reference\";\n ERR[\"characterReferenceOutsideUnicodeRange\"] = \"character-reference-outside-unicode-range\";\n ERR[\"controlCharacterReference\"] = \"control-character-reference\";\n ERR[\"noncharacterCharacterReference\"] = \"noncharacter-character-reference\";\n ERR[\"missingWhitespaceBeforeDoctypeName\"] = \"missing-whitespace-before-doctype-name\";\n ERR[\"missingDoctypeName\"] = \"missing-doctype-name\";\n ERR[\"invalidCharacterSequenceAfterDoctypeName\"] = \"invalid-character-sequence-after-doctype-name\";\n ERR[\"duplicateAttribute\"] = \"duplicate-attribute\";\n ERR[\"nonConformingDoctype\"] = \"non-conforming-doctype\";\n ERR[\"missingDoctype\"] = \"missing-doctype\";\n ERR[\"misplacedDoctype\"] = \"misplaced-doctype\";\n ERR[\"endTagWithoutMatchingOpenElement\"] = \"end-tag-without-matching-open-element\";\n ERR[\"closingOfElementWithOpenChildElements\"] = \"closing-of-element-with-open-child-elements\";\n ERR[\"disallowedContentInNoscriptInHead\"] = \"disallowed-content-in-noscript-in-head\";\n ERR[\"openElementsLeftAfterEof\"] = \"open-elements-left-after-eof\";\n ERR[\"abandonedHeadElementChild\"] = \"abandoned-head-element-child\";\n ERR[\"misplacedStartTagForHeadElement\"] = \"misplaced-start-tag-for-head-element\";\n ERR[\"nestedNoscriptInHead\"] = \"nested-noscript-in-head\";\n ERR[\"eofInElementThatCanContainOnlyText\"] = \"eof-in-element-that-can-contain-only-text\";\n})(ERR = ERR || (ERR = {}));\n//# sourceMappingURL=error-codes.js.map","import { CODE_POINTS as $, getSurrogatePairCodePoint, isControlCodePoint, isSurrogate, isSurrogatePair, isUndefinedCodePoint, } from '../common/unicode.js';\nimport { ERR } from '../common/error-codes.js';\n//Const\nconst DEFAULT_BUFFER_WATERLINE = 1 << 16;\n//Preprocessor\n//NOTE: HTML input preprocessing\n//(see: http://www.whatwg.org/specs/web-apps/current-work/multipage/parsing.html#preprocessing-the-input-stream)\nexport class Preprocessor {\n constructor(handler) {\n this.handler = handler;\n this.html = '';\n this.pos = -1;\n // NOTE: Initial `lastGapPos` is -2, to ensure `col` on initialisation is 0\n this.lastGapPos = -2;\n this.gapStack = [];\n this.skipNextNewLine = false;\n this.lastChunkWritten = false;\n this.endOfChunkHit = false;\n this.bufferWaterline = DEFAULT_BUFFER_WATERLINE;\n this.isEol = false;\n this.lineStartPos = 0;\n this.droppedBufferSize = 0;\n this.line = 1;\n //NOTE: avoid reporting errors twice on advance/retreat\n this.lastErrOffset = -1;\n }\n /** The column on the current line. If we just saw a gap (eg. a surrogate pair), return the index before. */\n get col() {\n return this.pos - this.lineStartPos + Number(this.lastGapPos !== this.pos);\n }\n get offset() {\n return this.droppedBufferSize + this.pos;\n }\n getError(code) {\n const { line, col, offset } = this;\n return {\n code,\n startLine: line,\n endLine: line,\n startCol: col,\n endCol: col,\n startOffset: offset,\n endOffset: offset,\n };\n }\n _err(code) {\n if (this.handler.onParseError && this.lastErrOffset !== this.offset) {\n this.lastErrOffset = this.offset;\n this.handler.onParseError(this.getError(code));\n }\n }\n _addGap() {\n this.gapStack.push(this.lastGapPos);\n this.lastGapPos = this.pos;\n }\n _processSurrogate(cp) {\n //NOTE: try to peek a surrogate pair\n if (this.pos !== this.html.length - 1) {\n const nextCp = this.html.charCodeAt(this.pos + 1);\n if (isSurrogatePair(nextCp)) {\n //NOTE: we have a surrogate pair. Peek pair character and recalculate code point.\n this.pos++;\n //NOTE: add a gap that should be avoided during retreat\n this._addGap();\n return getSurrogatePairCodePoint(cp, nextCp);\n }\n }\n //NOTE: we are at the end of a chunk, therefore we can't infer the surrogate pair yet.\n else if (!this.lastChunkWritten) {\n this.endOfChunkHit = true;\n return $.EOF;\n }\n //NOTE: isolated surrogate\n this._err(ERR.surrogateInInputStream);\n return cp;\n }\n willDropParsedChunk() {\n return this.pos > this.bufferWaterline;\n }\n dropParsedChunk() {\n if (this.willDropParsedChunk()) {\n this.html = this.html.substring(this.pos);\n this.lineStartPos -= this.pos;\n this.droppedBufferSize += this.pos;\n this.pos = 0;\n this.lastGapPos = -2;\n this.gapStack.length = 0;\n }\n }\n write(chunk, isLastChunk) {\n if (this.html.length > 0) {\n this.html += chunk;\n }\n else {\n this.html = chunk;\n }\n this.endOfChunkHit = false;\n this.lastChunkWritten = isLastChunk;\n }\n insertHtmlAtCurrentPos(chunk) {\n this.html = this.html.substring(0, this.pos + 1) + chunk + this.html.substring(this.pos + 1);\n this.endOfChunkHit = false;\n }\n startsWith(pattern, caseSensitive) {\n // Check if our buffer has enough characters\n if (this.pos + pattern.length > this.html.length) {\n this.endOfChunkHit = !this.lastChunkWritten;\n return false;\n }\n if (caseSensitive) {\n return this.html.startsWith(pattern, this.pos);\n }\n for (let i = 0; i < pattern.length; i++) {\n const cp = this.html.charCodeAt(this.pos + i) | 0x20;\n if (cp !== pattern.charCodeAt(i)) {\n return false;\n }\n }\n return true;\n }\n peek(offset) {\n const pos = this.pos + offset;\n if (pos >= this.html.length) {\n this.endOfChunkHit = !this.lastChunkWritten;\n return $.EOF;\n }\n const code = this.html.charCodeAt(pos);\n return code === $.CARRIAGE_RETURN ? $.LINE_FEED : code;\n }\n advance() {\n this.pos++;\n //NOTE: LF should be in the last column of the line\n if (this.isEol) {\n this.isEol = false;\n this.line++;\n this.lineStartPos = this.pos;\n }\n if (this.pos >= this.html.length) {\n this.endOfChunkHit = !this.lastChunkWritten;\n return $.EOF;\n }\n let cp = this.html.charCodeAt(this.pos);\n //NOTE: all U+000D CARRIAGE RETURN (CR) characters must be converted to U+000A LINE FEED (LF) characters\n if (cp === $.CARRIAGE_RETURN) {\n this.isEol = true;\n this.skipNextNewLine = true;\n return $.LINE_FEED;\n }\n //NOTE: any U+000A LINE FEED (LF) characters that immediately follow a U+000D CARRIAGE RETURN (CR) character\n //must be ignored.\n if (cp === $.LINE_FEED) {\n this.isEol = true;\n if (this.skipNextNewLine) {\n // `line` will be bumped again in the recursive call.\n this.line--;\n this.skipNextNewLine = false;\n this._addGap();\n return this.advance();\n }\n }\n this.skipNextNewLine = false;\n if (isSurrogate(cp)) {\n cp = this._processSurrogate(cp);\n }\n //OPTIMIZATION: first check if code point is in the common allowed\n //range (ASCII alphanumeric, whitespaces, big chunk of BMP)\n //before going into detailed performance cost validation.\n const isCommonValidRange = this.handler.onParseError === null ||\n (cp > 0x1f && cp < 0x7f) ||\n cp === $.LINE_FEED ||\n cp === $.CARRIAGE_RETURN ||\n (cp > 0x9f && cp < 64976);\n if (!isCommonValidRange) {\n this._checkForProblematicCharacters(cp);\n }\n return cp;\n }\n _checkForProblematicCharacters(cp) {\n if (isControlCodePoint(cp)) {\n this._err(ERR.controlCharacterInInputStream);\n }\n else if (isUndefinedCodePoint(cp)) {\n this._err(ERR.noncharacterInInputStream);\n }\n }\n retreat(count) {\n this.pos -= count;\n while (this.pos < this.lastGapPos) {\n this.lastGapPos = this.gapStack.pop();\n this.pos--;\n }\n this.isEol = false;\n }\n}\n//# sourceMappingURL=preprocessor.js.map","export var TokenType;\n(function (TokenType) {\n TokenType[TokenType[\"CHARACTER\"] = 0] = \"CHARACTER\";\n TokenType[TokenType[\"NULL_CHARACTER\"] = 1] = \"NULL_CHARACTER\";\n TokenType[TokenType[\"WHITESPACE_CHARACTER\"] = 2] = \"WHITESPACE_CHARACTER\";\n TokenType[TokenType[\"START_TAG\"] = 3] = \"START_TAG\";\n TokenType[TokenType[\"END_TAG\"] = 4] = \"END_TAG\";\n TokenType[TokenType[\"COMMENT\"] = 5] = \"COMMENT\";\n TokenType[TokenType[\"DOCTYPE\"] = 6] = \"DOCTYPE\";\n TokenType[TokenType[\"EOF\"] = 7] = \"EOF\";\n TokenType[TokenType[\"HIBERNATION\"] = 8] = \"HIBERNATION\";\n})(TokenType = TokenType || (TokenType = {}));\nexport function getTokenAttr(token, attrName) {\n for (let i = token.attrs.length - 1; i >= 0; i--) {\n if (token.attrs[i].name === attrName) {\n return token.attrs[i].value;\n }\n }\n return null;\n}\n//# sourceMappingURL=token.js.map",null,null,null,null,"/** All valid namespaces in HTML. */\nexport var NS;\n(function (NS) {\n NS[\"HTML\"] = \"http://www.w3.org/1999/xhtml\";\n NS[\"MATHML\"] = \"http://www.w3.org/1998/Math/MathML\";\n NS[\"SVG\"] = \"http://www.w3.org/2000/svg\";\n NS[\"XLINK\"] = \"http://www.w3.org/1999/xlink\";\n NS[\"XML\"] = \"http://www.w3.org/XML/1998/namespace\";\n NS[\"XMLNS\"] = \"http://www.w3.org/2000/xmlns/\";\n})(NS = NS || (NS = {}));\nexport var ATTRS;\n(function (ATTRS) {\n ATTRS[\"TYPE\"] = \"type\";\n ATTRS[\"ACTION\"] = \"action\";\n ATTRS[\"ENCODING\"] = \"encoding\";\n ATTRS[\"PROMPT\"] = \"prompt\";\n ATTRS[\"NAME\"] = \"name\";\n ATTRS[\"COLOR\"] = \"color\";\n ATTRS[\"FACE\"] = \"face\";\n ATTRS[\"SIZE\"] = \"size\";\n})(ATTRS = ATTRS || (ATTRS = {}));\n/**\n * The mode of the document.\n *\n * @see {@link https://dom.spec.whatwg.org/#concept-document-limited-quirks}\n */\nexport var DOCUMENT_MODE;\n(function (DOCUMENT_MODE) {\n DOCUMENT_MODE[\"NO_QUIRKS\"] = \"no-quirks\";\n DOCUMENT_MODE[\"QUIRKS\"] = \"quirks\";\n DOCUMENT_MODE[\"LIMITED_QUIRKS\"] = \"limited-quirks\";\n})(DOCUMENT_MODE = DOCUMENT_MODE || (DOCUMENT_MODE = {}));\nexport var TAG_NAMES;\n(function (TAG_NAMES) {\n TAG_NAMES[\"A\"] = \"a\";\n TAG_NAMES[\"ADDRESS\"] = \"address\";\n TAG_NAMES[\"ANNOTATION_XML\"] = \"annotation-xml\";\n TAG_NAMES[\"APPLET\"] = \"applet\";\n TAG_NAMES[\"AREA\"] = \"area\";\n TAG_NAMES[\"ARTICLE\"] = \"article\";\n TAG_NAMES[\"ASIDE\"] = \"aside\";\n TAG_NAMES[\"B\"] = \"b\";\n TAG_NAMES[\"BASE\"] = \"base\";\n TAG_NAMES[\"BASEFONT\"] = \"basefont\";\n TAG_NAMES[\"BGSOUND\"] = \"bgsound\";\n TAG_NAMES[\"BIG\"] = \"big\";\n TAG_NAMES[\"BLOCKQUOTE\"] = \"blockquote\";\n TAG_NAMES[\"BODY\"] = \"body\";\n TAG_NAMES[\"BR\"] = \"br\";\n TAG_NAMES[\"BUTTON\"] = \"button\";\n TAG_NAMES[\"CAPTION\"] = \"caption\";\n TAG_NAMES[\"CENTER\"] = \"center\";\n TAG_NAMES[\"CODE\"] = \"code\";\n TAG_NAMES[\"COL\"] = \"col\";\n TAG_NAMES[\"COLGROUP\"] = \"colgroup\";\n TAG_NAMES[\"DD\"] = \"dd\";\n TAG_NAMES[\"DESC\"] = \"desc\";\n TAG_NAMES[\"DETAILS\"] = \"details\";\n TAG_NAMES[\"DIALOG\"] = \"dialog\";\n TAG_NAMES[\"DIR\"] = \"dir\";\n TAG_NAMES[\"DIV\"] = \"div\";\n TAG_NAMES[\"DL\"] = \"dl\";\n TAG_NAMES[\"DT\"] = \"dt\";\n TAG_NAMES[\"EM\"] = \"em\";\n TAG_NAMES[\"EMBED\"] = \"embed\";\n TAG_NAMES[\"FIELDSET\"] = \"fieldset\";\n TAG_NAMES[\"FIGCAPTION\"] = \"figcaption\";\n TAG_NAMES[\"FIGURE\"] = \"figure\";\n TAG_NAMES[\"FONT\"] = \"font\";\n TAG_NAMES[\"FOOTER\"] = \"footer\";\n TAG_NAMES[\"FOREIGN_OBJECT\"] = \"foreignObject\";\n TAG_NAMES[\"FORM\"] = \"form\";\n TAG_NAMES[\"FRAME\"] = \"frame\";\n TAG_NAMES[\"FRAMESET\"] = \"frameset\";\n TAG_NAMES[\"H1\"] = \"h1\";\n TAG_NAMES[\"H2\"] = \"h2\";\n TAG_NAMES[\"H3\"] = \"h3\";\n TAG_NAMES[\"H4\"] = \"h4\";\n TAG_NAMES[\"H5\"] = \"h5\";\n TAG_NAMES[\"H6\"] = \"h6\";\n TAG_NAMES[\"HEAD\"] = \"head\";\n TAG_NAMES[\"HEADER\"] = \"header\";\n TAG_NAMES[\"HGROUP\"] = \"hgroup\";\n TAG_NAMES[\"HR\"] = \"hr\";\n TAG_NAMES[\"HTML\"] = \"html\";\n TAG_NAMES[\"I\"] = \"i\";\n TAG_NAMES[\"IMG\"] = \"img\";\n TAG_NAMES[\"IMAGE\"] = \"image\";\n TAG_NAMES[\"INPUT\"] = \"input\";\n TAG_NAMES[\"IFRAME\"] = \"iframe\";\n TAG_NAMES[\"KEYGEN\"] = \"keygen\";\n TAG_NAMES[\"LABEL\"] = \"label\";\n TAG_NAMES[\"LI\"] = \"li\";\n TAG_NAMES[\"LINK\"] = \"link\";\n TAG_NAMES[\"LISTING\"] = \"listing\";\n TAG_NAMES[\"MAIN\"] = \"main\";\n TAG_NAMES[\"MALIGNMARK\"] = \"malignmark\";\n TAG_NAMES[\"MARQUEE\"] = \"marquee\";\n TAG_NAMES[\"MATH\"] = \"math\";\n TAG_NAMES[\"MENU\"] = \"menu\";\n TAG_NAMES[\"META\"] = \"meta\";\n TAG_NAMES[\"MGLYPH\"] = \"mglyph\";\n TAG_NAMES[\"MI\"] = \"mi\";\n TAG_NAMES[\"MO\"] = \"mo\";\n TAG_NAMES[\"MN\"] = \"mn\";\n TAG_NAMES[\"MS\"] = \"ms\";\n TAG_NAMES[\"MTEXT\"] = \"mtext\";\n TAG_NAMES[\"NAV\"] = \"nav\";\n TAG_NAMES[\"NOBR\"] = \"nobr\";\n TAG_NAMES[\"NOFRAMES\"] = \"noframes\";\n TAG_NAMES[\"NOEMBED\"] = \"noembed\";\n TAG_NAMES[\"NOSCRIPT\"] = \"noscript\";\n TAG_NAMES[\"OBJECT\"] = \"object\";\n TAG_NAMES[\"OL\"] = \"ol\";\n TAG_NAMES[\"OPTGROUP\"] = \"optgroup\";\n TAG_NAMES[\"OPTION\"] = \"option\";\n TAG_NAMES[\"P\"] = \"p\";\n TAG_NAMES[\"PARAM\"] = \"param\";\n TAG_NAMES[\"PLAINTEXT\"] = \"plaintext\";\n TAG_NAMES[\"PRE\"] = \"pre\";\n TAG_NAMES[\"RB\"] = \"rb\";\n TAG_NAMES[\"RP\"] = \"rp\";\n TAG_NAMES[\"RT\"] = \"rt\";\n TAG_NAMES[\"RTC\"] = \"rtc\";\n TAG_NAMES[\"RUBY\"] = \"ruby\";\n TAG_NAMES[\"S\"] = \"s\";\n TAG_NAMES[\"SCRIPT\"] = \"script\";\n TAG_NAMES[\"SECTION\"] = \"section\";\n TAG_NAMES[\"SELECT\"] = \"select\";\n TAG_NAMES[\"SOURCE\"] = \"source\";\n TAG_NAMES[\"SMALL\"] = \"small\";\n TAG_NAMES[\"SPAN\"] = \"span\";\n TAG_NAMES[\"STRIKE\"] = \"strike\";\n TAG_NAMES[\"STRONG\"] = \"strong\";\n TAG_NAMES[\"STYLE\"] = \"style\";\n TAG_NAMES[\"SUB\"] = \"sub\";\n TAG_NAMES[\"SUMMARY\"] = \"summary\";\n TAG_NAMES[\"SUP\"] = \"sup\";\n TAG_NAMES[\"TABLE\"] = \"table\";\n TAG_NAMES[\"TBODY\"] = \"tbody\";\n TAG_NAMES[\"TEMPLATE\"] = \"template\";\n TAG_NAMES[\"TEXTAREA\"] = \"textarea\";\n TAG_NAMES[\"TFOOT\"] = \"tfoot\";\n TAG_NAMES[\"TD\"] = \"td\";\n TAG_NAMES[\"TH\"] = \"th\";\n TAG_NAMES[\"THEAD\"] = \"thead\";\n TAG_NAMES[\"TITLE\"] = \"title\";\n TAG_NAMES[\"TR\"] = \"tr\";\n TAG_NAMES[\"TRACK\"] = \"track\";\n TAG_NAMES[\"TT\"] = \"tt\";\n TAG_NAMES[\"U\"] = \"u\";\n TAG_NAMES[\"UL\"] = \"ul\";\n TAG_NAMES[\"SVG\"] = \"svg\";\n TAG_NAMES[\"VAR\"] = \"var\";\n TAG_NAMES[\"WBR\"] = \"wbr\";\n TAG_NAMES[\"XMP\"] = \"xmp\";\n})(TAG_NAMES = TAG_NAMES || (TAG_NAMES = {}));\n/**\n * Tag IDs are numeric IDs for known tag names.\n *\n * We use tag IDs to improve the performance of tag name comparisons.\n */\nexport var TAG_ID;\n(function (TAG_ID) {\n TAG_ID[TAG_ID[\"UNKNOWN\"] = 0] = \"UNKNOWN\";\n TAG_ID[TAG_ID[\"A\"] = 1] = \"A\";\n TAG_ID[TAG_ID[\"ADDRESS\"] = 2] = \"ADDRESS\";\n TAG_ID[TAG_ID[\"ANNOTATION_XML\"] = 3] = \"ANNOTATION_XML\";\n TAG_ID[TAG_ID[\"APPLET\"] = 4] = \"APPLET\";\n TAG_ID[TAG_ID[\"AREA\"] = 5] = \"AREA\";\n TAG_ID[TAG_ID[\"ARTICLE\"] = 6] = \"ARTICLE\";\n TAG_ID[TAG_ID[\"ASIDE\"] = 7] = \"ASIDE\";\n TAG_ID[TAG_ID[\"B\"] = 8] = \"B\";\n TAG_ID[TAG_ID[\"BASE\"] = 9] = \"BASE\";\n TAG_ID[TAG_ID[\"BASEFONT\"] = 10] = \"BASEFONT\";\n TAG_ID[TAG_ID[\"BGSOUND\"] = 11] = \"BGSOUND\";\n TAG_ID[TAG_ID[\"BIG\"] = 12] = \"BIG\";\n TAG_ID[TAG_ID[\"BLOCKQUOTE\"] = 13] = \"BLOCKQUOTE\";\n TAG_ID[TAG_ID[\"BODY\"] = 14] = \"BODY\";\n TAG_ID[TAG_ID[\"BR\"] = 15] = \"BR\";\n TAG_ID[TAG_ID[\"BUTTON\"] = 16] = \"BUTTON\";\n TAG_ID[TAG_ID[\"CAPTION\"] = 17] = \"CAPTION\";\n TAG_ID[TAG_ID[\"CENTER\"] = 18] = \"CENTER\";\n TAG_ID[TAG_ID[\"CODE\"] = 19] = \"CODE\";\n TAG_ID[TAG_ID[\"COL\"] = 20] = \"COL\";\n TAG_ID[TAG_ID[\"COLGROUP\"] = 21] = \"COLGROUP\";\n TAG_ID[TAG_ID[\"DD\"] = 22] = \"DD\";\n TAG_ID[TAG_ID[\"DESC\"] = 23] = \"DESC\";\n TAG_ID[TAG_ID[\"DETAILS\"] = 24] = \"DETAILS\";\n TAG_ID[TAG_ID[\"DIALOG\"] = 25] = \"DIALOG\";\n TAG_ID[TAG_ID[\"DIR\"] = 26] = \"DIR\";\n TAG_ID[TAG_ID[\"DIV\"] = 27] = \"DIV\";\n TAG_ID[TAG_ID[\"DL\"] = 28] = \"DL\";\n TAG_ID[TAG_ID[\"DT\"] = 29] = \"DT\";\n TAG_ID[TAG_ID[\"EM\"] = 30] = \"EM\";\n TAG_ID[TAG_ID[\"EMBED\"] = 31] = \"EMBED\";\n TAG_ID[TAG_ID[\"FIELDSET\"] = 32] = \"FIELDSET\";\n TAG_ID[TAG_ID[\"FIGCAPTION\"] = 33] = \"FIGCAPTION\";\n TAG_ID[TAG_ID[\"FIGURE\"] = 34] = \"FIGURE\";\n TAG_ID[TAG_ID[\"FONT\"] = 35] = \"FONT\";\n TAG_ID[TAG_ID[\"FOOTER\"] = 36] = \"FOOTER\";\n TAG_ID[TAG_ID[\"FOREIGN_OBJECT\"] = 37] = \"FOREIGN_OBJECT\";\n TAG_ID[TAG_ID[\"FORM\"] = 38] = \"FORM\";\n TAG_ID[TAG_ID[\"FRAME\"] = 39] = \"FRAME\";\n TAG_ID[TAG_ID[\"FRAMESET\"] = 40] = \"FRAMESET\";\n TAG_ID[TAG_ID[\"H1\"] = 41] = \"H1\";\n TAG_ID[TAG_ID[\"H2\"] = 42] = \"H2\";\n TAG_ID[TAG_ID[\"H3\"] = 43] = \"H3\";\n TAG_ID[TAG_ID[\"H4\"] = 44] = \"H4\";\n TAG_ID[TAG_ID[\"H5\"] = 45] = \"H5\";\n TAG_ID[TAG_ID[\"H6\"] = 46] = \"H6\";\n TAG_ID[TAG_ID[\"HEAD\"] = 47] = \"HEAD\";\n TAG_ID[TAG_ID[\"HEADER\"] = 48] = \"HEADER\";\n TAG_ID[TAG_ID[\"HGROUP\"] = 49] = \"HGROUP\";\n TAG_ID[TAG_ID[\"HR\"] = 50] = \"HR\";\n TAG_ID[TAG_ID[\"HTML\"] = 51] = \"HTML\";\n TAG_ID[TAG_ID[\"I\"] = 52] = \"I\";\n TAG_ID[TAG_ID[\"IMG\"] = 53] = \"IMG\";\n TAG_ID[TAG_ID[\"IMAGE\"] = 54] = \"IMAGE\";\n TAG_ID[TAG_ID[\"INPUT\"] = 55] = \"INPUT\";\n TAG_ID[TAG_ID[\"IFRAME\"] = 56] = \"IFRAME\";\n TAG_ID[TAG_ID[\"KEYGEN\"] = 57] = \"KEYGEN\";\n TAG_ID[TAG_ID[\"LABEL\"] = 58] = \"LABEL\";\n TAG_ID[TAG_ID[\"LI\"] = 59] = \"LI\";\n TAG_ID[TAG_ID[\"LINK\"] = 60] = \"LINK\";\n TAG_ID[TAG_ID[\"LISTING\"] = 61] = \"LISTING\";\n TAG_ID[TAG_ID[\"MAIN\"] = 62] = \"MAIN\";\n TAG_ID[TAG_ID[\"MALIGNMARK\"] = 63] = \"MALIGNMARK\";\n TAG_ID[TAG_ID[\"MARQUEE\"] = 64] = \"MARQUEE\";\n TAG_ID[TAG_ID[\"MATH\"] = 65] = \"MATH\";\n TAG_ID[TAG_ID[\"MENU\"] = 66] = \"MENU\";\n TAG_ID[TAG_ID[\"META\"] = 67] = \"META\";\n TAG_ID[TAG_ID[\"MGLYPH\"] = 68] = \"MGLYPH\";\n TAG_ID[TAG_ID[\"MI\"] = 69] = \"MI\";\n TAG_ID[TAG_ID[\"MO\"] = 70] = \"MO\";\n TAG_ID[TAG_ID[\"MN\"] = 71] = \"MN\";\n TAG_ID[TAG_ID[\"MS\"] = 72] = \"MS\";\n TAG_ID[TAG_ID[\"MTEXT\"] = 73] = \"MTEXT\";\n TAG_ID[TAG_ID[\"NAV\"] = 74] = \"NAV\";\n TAG_ID[TAG_ID[\"NOBR\"] = 75] = \"NOBR\";\n TAG_ID[TAG_ID[\"NOFRAMES\"] = 76] = \"NOFRAMES\";\n TAG_ID[TAG_ID[\"NOEMBED\"] = 77] = \"NOEMBED\";\n TAG_ID[TAG_ID[\"NOSCRIPT\"] = 78] = \"NOSCRIPT\";\n TAG_ID[TAG_ID[\"OBJECT\"] = 79] = \"OBJECT\";\n TAG_ID[TAG_ID[\"OL\"] = 80] = \"OL\";\n TAG_ID[TAG_ID[\"OPTGROUP\"] = 81] = \"OPTGROUP\";\n TAG_ID[TAG_ID[\"OPTION\"] = 82] = \"OPTION\";\n TAG_ID[TAG_ID[\"P\"] = 83] = \"P\";\n TAG_ID[TAG_ID[\"PARAM\"] = 84] = \"PARAM\";\n TAG_ID[TAG_ID[\"PLAINTEXT\"] = 85] = \"PLAINTEXT\";\n TAG_ID[TAG_ID[\"PRE\"] = 86] = \"PRE\";\n TAG_ID[TAG_ID[\"RB\"] = 87] = \"RB\";\n TAG_ID[TAG_ID[\"RP\"] = 88] = \"RP\";\n TAG_ID[TAG_ID[\"RT\"] = 89] = \"RT\";\n TAG_ID[TAG_ID[\"RTC\"] = 90] = \"RTC\";\n TAG_ID[TAG_ID[\"RUBY\"] = 91] = \"RUBY\";\n TAG_ID[TAG_ID[\"S\"] = 92] = \"S\";\n TAG_ID[TAG_ID[\"SCRIPT\"] = 93] = \"SCRIPT\";\n TAG_ID[TAG_ID[\"SECTION\"] = 94] = \"SECTION\";\n TAG_ID[TAG_ID[\"SELECT\"] = 95] = \"SELECT\";\n TAG_ID[TAG_ID[\"SOURCE\"] = 96] = \"SOURCE\";\n TAG_ID[TAG_ID[\"SMALL\"] = 97] = \"SMALL\";\n TAG_ID[TAG_ID[\"SPAN\"] = 98] = \"SPAN\";\n TAG_ID[TAG_ID[\"STRIKE\"] = 99] = \"STRIKE\";\n TAG_ID[TAG_ID[\"STRONG\"] = 100] = \"STRONG\";\n TAG_ID[TAG_ID[\"STYLE\"] = 101] = \"STYLE\";\n TAG_ID[TAG_ID[\"SUB\"] = 102] = \"SUB\";\n TAG_ID[TAG_ID[\"SUMMARY\"] = 103] = \"SUMMARY\";\n TAG_ID[TAG_ID[\"SUP\"] = 104] = \"SUP\";\n TAG_ID[TAG_ID[\"TABLE\"] = 105] = \"TABLE\";\n TAG_ID[TAG_ID[\"TBODY\"] = 106] = \"TBODY\";\n TAG_ID[TAG_ID[\"TEMPLATE\"] = 107] = \"TEMPLATE\";\n TAG_ID[TAG_ID[\"TEXTAREA\"] = 108] = \"TEXTAREA\";\n TAG_ID[TAG_ID[\"TFOOT\"] = 109] = \"TFOOT\";\n TAG_ID[TAG_ID[\"TD\"] = 110] = \"TD\";\n TAG_ID[TAG_ID[\"TH\"] = 111] = \"TH\";\n TAG_ID[TAG_ID[\"THEAD\"] = 112] = \"THEAD\";\n TAG_ID[TAG_ID[\"TITLE\"] = 113] = \"TITLE\";\n TAG_ID[TAG_ID[\"TR\"] = 114] = \"TR\";\n TAG_ID[TAG_ID[\"TRACK\"] = 115] = \"TRACK\";\n TAG_ID[TAG_ID[\"TT\"] = 116] = \"TT\";\n TAG_ID[TAG_ID[\"U\"] = 117] = \"U\";\n TAG_ID[TAG_ID[\"UL\"] = 118] = \"UL\";\n TAG_ID[TAG_ID[\"SVG\"] = 119] = \"SVG\";\n TAG_ID[TAG_ID[\"VAR\"] = 120] = \"VAR\";\n TAG_ID[TAG_ID[\"WBR\"] = 121] = \"WBR\";\n TAG_ID[TAG_ID[\"XMP\"] = 122] = \"XMP\";\n})(TAG_ID = TAG_ID || (TAG_ID = {}));\nconst TAG_NAME_TO_ID = new Map([\n [TAG_NAMES.A, TAG_ID.A],\n [TAG_NAMES.ADDRESS, TAG_ID.ADDRESS],\n [TAG_NAMES.ANNOTATION_XML, TAG_ID.ANNOTATION_XML],\n [TAG_NAMES.APPLET, TAG_ID.APPLET],\n [TAG_NAMES.AREA, TAG_ID.AREA],\n [TAG_NAMES.ARTICLE, TAG_ID.ARTICLE],\n [TAG_NAMES.ASIDE, TAG_ID.ASIDE],\n [TAG_NAMES.B, TAG_ID.B],\n [TAG_NAMES.BASE, TAG_ID.BASE],\n [TAG_NAMES.BASEFONT, TAG_ID.BASEFONT],\n [TAG_NAMES.BGSOUND, TAG_ID.BGSOUND],\n [TAG_NAMES.BIG, TAG_ID.BIG],\n [TAG_NAMES.BLOCKQUOTE, TAG_ID.BLOCKQUOTE],\n [TAG_NAMES.BODY, TAG_ID.BODY],\n [TAG_NAMES.BR, TAG_ID.BR],\n [TAG_NAMES.BUTTON, TAG_ID.BUTTON],\n [TAG_NAMES.CAPTION, TAG_ID.CAPTION],\n [TAG_NAMES.CENTER, TAG_ID.CENTER],\n [TAG_NAMES.CODE, TAG_ID.CODE],\n [TAG_NAMES.COL, TAG_ID.COL],\n [TAG_NAMES.COLGROUP, TAG_ID.COLGROUP],\n [TAG_NAMES.DD, TAG_ID.DD],\n [TAG_NAMES.DESC, TAG_ID.DESC],\n [TAG_NAMES.DETAILS, TAG_ID.DETAILS],\n [TAG_NAMES.DIALOG, TAG_ID.DIALOG],\n [TAG_NAMES.DIR, TAG_ID.DIR],\n [TAG_NAMES.DIV, TAG_ID.DIV],\n [TAG_NAMES.DL, TAG_ID.DL],\n [TAG_NAMES.DT, TAG_ID.DT],\n [TAG_NAMES.EM, TAG_ID.EM],\n [TAG_NAMES.EMBED, TAG_ID.EMBED],\n [TAG_NAMES.FIELDSET, TAG_ID.FIELDSET],\n [TAG_NAMES.FIGCAPTION, TAG_ID.FIGCAPTION],\n [TAG_NAMES.FIGURE, TAG_ID.FIGURE],\n [TAG_NAMES.FONT, TAG_ID.FONT],\n [TAG_NAMES.FOOTER, TAG_ID.FOOTER],\n [TAG_NAMES.FOREIGN_OBJECT, TAG_ID.FOREIGN_OBJECT],\n [TAG_NAMES.FORM, TAG_ID.FORM],\n [TAG_NAMES.FRAME, TAG_ID.FRAME],\n [TAG_NAMES.FRAMESET, TAG_ID.FRAMESET],\n [TAG_NAMES.H1, TAG_ID.H1],\n [TAG_NAMES.H2, TAG_ID.H2],\n [TAG_NAMES.H3, TAG_ID.H3],\n [TAG_NAMES.H4, TAG_ID.H4],\n [TAG_NAMES.H5, TAG_ID.H5],\n [TAG_NAMES.H6, TAG_ID.H6],\n [TAG_NAMES.HEAD, TAG_ID.HEAD],\n [TAG_NAMES.HEADER, TAG_ID.HEADER],\n [TAG_NAMES.HGROUP, TAG_ID.HGROUP],\n [TAG_NAMES.HR, TAG_ID.HR],\n [TAG_NAMES.HTML, TAG_ID.HTML],\n [TAG_NAMES.I, TAG_ID.I],\n [TAG_NAMES.IMG, TAG_ID.IMG],\n [TAG_NAMES.IMAGE, TAG_ID.IMAGE],\n [TAG_NAMES.INPUT, TAG_ID.INPUT],\n [TAG_NAMES.IFRAME, TAG_ID.IFRAME],\n [TAG_NAMES.KEYGEN, TAG_ID.KEYGEN],\n [TAG_NAMES.LABEL, TAG_ID.LABEL],\n [TAG_NAMES.LI, TAG_ID.LI],\n [TAG_NAMES.LINK, TAG_ID.LINK],\n [TAG_NAMES.LISTING, TAG_ID.LISTING],\n [TAG_NAMES.MAIN, TAG_ID.MAIN],\n [TAG_NAMES.MALIGNMARK, TAG_ID.MALIGNMARK],\n [TAG_NAMES.MARQUEE, TAG_ID.MARQUEE],\n [TAG_NAMES.MATH, TAG_ID.MATH],\n [TAG_NAMES.MENU, TAG_ID.MENU],\n [TAG_NAMES.META, TAG_ID.META],\n [TAG_NAMES.MGLYPH, TAG_ID.MGLYPH],\n [TAG_NAMES.MI, TAG_ID.MI],\n [TAG_NAMES.MO, TAG_ID.MO],\n [TAG_NAMES.MN, TAG_ID.MN],\n [TAG_NAMES.MS, TAG_ID.MS],\n [TAG_NAMES.MTEXT, TAG_ID.MTEXT],\n [TAG_NAMES.NAV, TAG_ID.NAV],\n [TAG_NAMES.NOBR, TAG_ID.NOBR],\n [TAG_NAMES.NOFRAMES, TAG_ID.NOFRAMES],\n [TAG_NAMES.NOEMBED, TAG_ID.NOEMBED],\n [TAG_NAMES.NOSCRIPT, TAG_ID.NOSCRIPT],\n [TAG_NAMES.OBJECT, TAG_ID.OBJECT],\n [TAG_NAMES.OL, TAG_ID.OL],\n [TAG_NAMES.OPTGROUP, TAG_ID.OPTGROUP],\n [TAG_NAMES.OPTION, TAG_ID.OPTION],\n [TAG_NAMES.P, TAG_ID.P],\n [TAG_NAMES.PARAM, TAG_ID.PARAM],\n [TAG_NAMES.PLAINTEXT, TAG_ID.PLAINTEXT],\n [TAG_NAMES.PRE, TAG_ID.PRE],\n [TAG_NAMES.RB, TAG_ID.RB],\n [TAG_NAMES.RP, TAG_ID.RP],\n [TAG_NAMES.RT, TAG_ID.RT],\n [TAG_NAMES.RTC, TAG_ID.RTC],\n [TAG_NAMES.RUBY, TAG_ID.RUBY],\n [TAG_NAMES.S, TAG_ID.S],\n [TAG_NAMES.SCRIPT, TAG_ID.SCRIPT],\n [TAG_NAMES.SECTION, TAG_ID.SECTION],\n [TAG_NAMES.SELECT, TAG_ID.SELECT],\n [TAG_NAMES.SOURCE, TAG_ID.SOURCE],\n [TAG_NAMES.SMALL, TAG_ID.SMALL],\n [TAG_NAMES.SPAN, TAG_ID.SPAN],\n [TAG_NAMES.STRIKE, TAG_ID.STRIKE],\n [TAG_NAMES.STRONG, TAG_ID.STRONG],\n [TAG_NAMES.STYLE, TAG_ID.STYLE],\n [TAG_NAMES.SUB, TAG_ID.SUB],\n [TAG_NAMES.SUMMARY, TAG_ID.SUMMARY],\n [TAG_NAMES.SUP, TAG_ID.SUP],\n [TAG_NAMES.TABLE, TAG_ID.TABLE],\n [TAG_NAMES.TBODY, TAG_ID.TBODY],\n [TAG_NAMES.TEMPLATE, TAG_ID.TEMPLATE],\n [TAG_NAMES.TEXTAREA, TAG_ID.TEXTAREA],\n [TAG_NAMES.TFOOT, TAG_ID.TFOOT],\n [TAG_NAMES.TD, TAG_ID.TD],\n [TAG_NAMES.TH, TAG_ID.TH],\n [TAG_NAMES.THEAD, TAG_ID.THEAD],\n [TAG_NAMES.TITLE, TAG_ID.TITLE],\n [TAG_NAMES.TR, TAG_ID.TR],\n [TAG_NAMES.TRACK, TAG_ID.TRACK],\n [TAG_NAMES.TT, TAG_ID.TT],\n [TAG_NAMES.U, TAG_ID.U],\n [TAG_NAMES.UL, TAG_ID.UL],\n [TAG_NAMES.SVG, TAG_ID.SVG],\n [TAG_NAMES.VAR, TAG_ID.VAR],\n [TAG_NAMES.WBR, TAG_ID.WBR],\n [TAG_NAMES.XMP, TAG_ID.XMP],\n]);\nexport function getTagID(tagName) {\n var _a;\n return (_a = TAG_NAME_TO_ID.get(tagName)) !== null && _a !== void 0 ? _a : TAG_ID.UNKNOWN;\n}\nconst $ = TAG_ID;\nexport const SPECIAL_ELEMENTS = {\n [NS.HTML]: new Set([\n $.ADDRESS,\n $.APPLET,\n $.AREA,\n $.ARTICLE,\n $.ASIDE,\n $.BASE,\n $.BASEFONT,\n $.BGSOUND,\n $.BLOCKQUOTE,\n $.BODY,\n $.BR,\n $.BUTTON,\n $.CAPTION,\n $.CENTER,\n $.COL,\n $.COLGROUP,\n $.DD,\n $.DETAILS,\n $.DIR,\n $.DIV,\n $.DL,\n $.DT,\n $.EMBED,\n $.FIELDSET,\n $.FIGCAPTION,\n $.FIGURE,\n $.FOOTER,\n $.FORM,\n $.FRAME,\n $.FRAMESET,\n $.H1,\n $.H2,\n $.H3,\n $.H4,\n $.H5,\n $.H6,\n $.HEAD,\n $.HEADER,\n $.HGROUP,\n $.HR,\n $.HTML,\n $.IFRAME,\n $.IMG,\n $.INPUT,\n $.LI,\n $.LINK,\n $.LISTING,\n $.MAIN,\n $.MARQUEE,\n $.MENU,\n $.META,\n $.NAV,\n $.NOEMBED,\n $.NOFRAMES,\n $.NOSCRIPT,\n $.OBJECT,\n $.OL,\n $.P,\n $.PARAM,\n $.PLAINTEXT,\n $.PRE,\n $.SCRIPT,\n $.SECTION,\n $.SELECT,\n $.SOURCE,\n $.STYLE,\n $.SUMMARY,\n $.TABLE,\n $.TBODY,\n $.TD,\n $.TEMPLATE,\n $.TEXTAREA,\n $.TFOOT,\n $.TH,\n $.THEAD,\n $.TITLE,\n $.TR,\n $.TRACK,\n $.UL,\n $.WBR,\n $.XMP,\n ]),\n [NS.MATHML]: new Set([$.MI, $.MO, $.MN, $.MS, $.MTEXT, $.ANNOTATION_XML]),\n [NS.SVG]: new Set([$.TITLE, $.FOREIGN_OBJECT, $.DESC]),\n [NS.XLINK]: new Set(),\n [NS.XML]: new Set(),\n [NS.XMLNS]: new Set(),\n};\nexport function isNumberedHeader(tn) {\n return tn === $.H1 || tn === $.H2 || tn === $.H3 || tn === $.H4 || tn === $.H5 || tn === $.H6;\n}\nconst UNESCAPED_TEXT = new Set([\n TAG_NAMES.STYLE,\n TAG_NAMES.SCRIPT,\n TAG_NAMES.XMP,\n TAG_NAMES.IFRAME,\n TAG_NAMES.NOEMBED,\n TAG_NAMES.NOFRAMES,\n TAG_NAMES.PLAINTEXT,\n]);\nexport function hasUnescapedText(tn, scriptingEnabled) {\n return UNESCAPED_TEXT.has(tn) || (scriptingEnabled && tn === TAG_NAMES.NOSCRIPT);\n}\n//# sourceMappingURL=html.js.map","import { Preprocessor } from './preprocessor.js';\nimport { CODE_POINTS as $, SEQUENCES as $$, REPLACEMENT_CHARACTER, isSurrogate, isUndefinedCodePoint, isControlCodePoint, } from '../common/unicode.js';\nimport { TokenType, getTokenAttr, } from '../common/token.js';\nimport { htmlDecodeTree, BinTrieFlags, determineBranch } from 'entities/lib/decode.js';\nimport { ERR } from '../common/error-codes.js';\nimport { TAG_ID, getTagID } from '../common/html.js';\n//C1 Unicode control character reference replacements\nconst C1_CONTROLS_REFERENCE_REPLACEMENTS = new Map([\n [0x80, 8364],\n [0x82, 8218],\n [0x83, 402],\n [0x84, 8222],\n [0x85, 8230],\n [0x86, 8224],\n [0x87, 8225],\n [0x88, 710],\n [0x89, 8240],\n [0x8a, 352],\n [0x8b, 8249],\n [0x8c, 338],\n [0x8e, 381],\n [0x91, 8216],\n [0x92, 8217],\n [0x93, 8220],\n [0x94, 8221],\n [0x95, 8226],\n [0x96, 8211],\n [0x97, 8212],\n [0x98, 732],\n [0x99, 8482],\n [0x9a, 353],\n [0x9b, 8250],\n [0x9c, 339],\n [0x9e, 382],\n [0x9f, 376],\n]);\n//States\nvar State;\n(function (State) {\n State[State[\"DATA\"] = 0] = \"DATA\";\n State[State[\"RCDATA\"] = 1] = \"RCDATA\";\n State[State[\"RAWTEXT\"] = 2] = \"RAWTEXT\";\n State[State[\"SCRIPT_DATA\"] = 3] = \"SCRIPT_DATA\";\n State[State[\"PLAINTEXT\"] = 4] = \"PLAINTEXT\";\n State[State[\"TAG_OPEN\"] = 5] = \"TAG_OPEN\";\n State[State[\"END_TAG_OPEN\"] = 6] = \"END_TAG_OPEN\";\n State[State[\"TAG_NAME\"] = 7] = \"TAG_NAME\";\n State[State[\"RCDATA_LESS_THAN_SIGN\"] = 8] = \"RCDATA_LESS_THAN_SIGN\";\n State[State[\"RCDATA_END_TAG_OPEN\"] = 9] = \"RCDATA_END_TAG_OPEN\";\n State[State[\"RCDATA_END_TAG_NAME\"] = 10] = \"RCDATA_END_TAG_NAME\";\n State[State[\"RAWTEXT_LESS_THAN_SIGN\"] = 11] = \"RAWTEXT_LESS_THAN_SIGN\";\n State[State[\"RAWTEXT_END_TAG_OPEN\"] = 12] = \"RAWTEXT_END_TAG_OPEN\";\n State[State[\"RAWTEXT_END_TAG_NAME\"] = 13] = \"RAWTEXT_END_TAG_NAME\";\n State[State[\"SCRIPT_DATA_LESS_THAN_SIGN\"] = 14] = \"SCRIPT_DATA_LESS_THAN_SIGN\";\n State[State[\"SCRIPT_DATA_END_TAG_OPEN\"] = 15] = \"SCRIPT_DATA_END_TAG_OPEN\";\n State[State[\"SCRIPT_DATA_END_TAG_NAME\"] = 16] = \"SCRIPT_DATA_END_TAG_NAME\";\n State[State[\"SCRIPT_DATA_ESCAPE_START\"] = 17] = \"SCRIPT_DATA_ESCAPE_START\";\n State[State[\"SCRIPT_DATA_ESCAPE_START_DASH\"] = 18] = \"SCRIPT_DATA_ESCAPE_START_DASH\";\n State[State[\"SCRIPT_DATA_ESCAPED\"] = 19] = \"SCRIPT_DATA_ESCAPED\";\n State[State[\"SCRIPT_DATA_ESCAPED_DASH\"] = 20] = \"SCRIPT_DATA_ESCAPED_DASH\";\n State[State[\"SCRIPT_DATA_ESCAPED_DASH_DASH\"] = 21] = \"SCRIPT_DATA_ESCAPED_DASH_DASH\";\n State[State[\"SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN\"] = 22] = \"SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN\";\n State[State[\"SCRIPT_DATA_ESCAPED_END_TAG_OPEN\"] = 23] = \"SCRIPT_DATA_ESCAPED_END_TAG_OPEN\";\n State[State[\"SCRIPT_DATA_ESCAPED_END_TAG_NAME\"] = 24] = \"SCRIPT_DATA_ESCAPED_END_TAG_NAME\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPE_START\"] = 25] = \"SCRIPT_DATA_DOUBLE_ESCAPE_START\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED\"] = 26] = \"SCRIPT_DATA_DOUBLE_ESCAPED\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED_DASH\"] = 27] = \"SCRIPT_DATA_DOUBLE_ESCAPED_DASH\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH\"] = 28] = \"SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN\"] = 29] = \"SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN\";\n State[State[\"SCRIPT_DATA_DOUBLE_ESCAPE_END\"] = 30] = \"SCRIPT_DATA_DOUBLE_ESCAPE_END\";\n State[State[\"BEFORE_ATTRIBUTE_NAME\"] = 31] = \"BEFORE_ATTRIBUTE_NAME\";\n State[State[\"ATTRIBUTE_NAME\"] = 32] = \"ATTRIBUTE_NAME\";\n State[State[\"AFTER_ATTRIBUTE_NAME\"] = 33] = \"AFTER_ATTRIBUTE_NAME\";\n State[State[\"BEFORE_ATTRIBUTE_VALUE\"] = 34] = \"BEFORE_ATTRIBUTE_VALUE\";\n State[State[\"ATTRIBUTE_VALUE_DOUBLE_QUOTED\"] = 35] = \"ATTRIBUTE_VALUE_DOUBLE_QUOTED\";\n State[State[\"ATTRIBUTE_VALUE_SINGLE_QUOTED\"] = 36] = \"ATTRIBUTE_VALUE_SINGLE_QUOTED\";\n State[State[\"ATTRIBUTE_VALUE_UNQUOTED\"] = 37] = \"ATTRIBUTE_VALUE_UNQUOTED\";\n State[State[\"AFTER_ATTRIBUTE_VALUE_QUOTED\"] = 38] = \"AFTER_ATTRIBUTE_VALUE_QUOTED\";\n State[State[\"SELF_CLOSING_START_TAG\"] = 39] = \"SELF_CLOSING_START_TAG\";\n State[State[\"BOGUS_COMMENT\"] = 40] = \"BOGUS_COMMENT\";\n State[State[\"MARKUP_DECLARATION_OPEN\"] = 41] = \"MARKUP_DECLARATION_OPEN\";\n State[State[\"COMMENT_START\"] = 42] = \"COMMENT_START\";\n State[State[\"COMMENT_START_DASH\"] = 43] = \"COMMENT_START_DASH\";\n State[State[\"COMMENT\"] = 44] = \"COMMENT\";\n State[State[\"COMMENT_LESS_THAN_SIGN\"] = 45] = \"COMMENT_LESS_THAN_SIGN\";\n State[State[\"COMMENT_LESS_THAN_SIGN_BANG\"] = 46] = \"COMMENT_LESS_THAN_SIGN_BANG\";\n State[State[\"COMMENT_LESS_THAN_SIGN_BANG_DASH\"] = 47] = \"COMMENT_LESS_THAN_SIGN_BANG_DASH\";\n State[State[\"COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH\"] = 48] = \"COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH\";\n State[State[\"COMMENT_END_DASH\"] = 49] = \"COMMENT_END_DASH\";\n State[State[\"COMMENT_END\"] = 50] = \"COMMENT_END\";\n State[State[\"COMMENT_END_BANG\"] = 51] = \"COMMENT_END_BANG\";\n State[State[\"DOCTYPE\"] = 52] = \"DOCTYPE\";\n State[State[\"BEFORE_DOCTYPE_NAME\"] = 53] = \"BEFORE_DOCTYPE_NAME\";\n State[State[\"DOCTYPE_NAME\"] = 54] = \"DOCTYPE_NAME\";\n State[State[\"AFTER_DOCTYPE_NAME\"] = 55] = \"AFTER_DOCTYPE_NAME\";\n State[State[\"AFTER_DOCTYPE_PUBLIC_KEYWORD\"] = 56] = \"AFTER_DOCTYPE_PUBLIC_KEYWORD\";\n State[State[\"BEFORE_DOCTYPE_PUBLIC_IDENTIFIER\"] = 57] = \"BEFORE_DOCTYPE_PUBLIC_IDENTIFIER\";\n State[State[\"DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED\"] = 58] = \"DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED\";\n State[State[\"DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED\"] = 59] = \"DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED\";\n State[State[\"AFTER_DOCTYPE_PUBLIC_IDENTIFIER\"] = 60] = \"AFTER_DOCTYPE_PUBLIC_IDENTIFIER\";\n State[State[\"BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS\"] = 61] = \"BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS\";\n State[State[\"AFTER_DOCTYPE_SYSTEM_KEYWORD\"] = 62] = \"AFTER_DOCTYPE_SYSTEM_KEYWORD\";\n State[State[\"BEFORE_DOCTYPE_SYSTEM_IDENTIFIER\"] = 63] = \"BEFORE_DOCTYPE_SYSTEM_IDENTIFIER\";\n State[State[\"DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED\"] = 64] = \"DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED\";\n State[State[\"DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED\"] = 65] = \"DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED\";\n State[State[\"AFTER_DOCTYPE_SYSTEM_IDENTIFIER\"] = 66] = \"AFTER_DOCTYPE_SYSTEM_IDENTIFIER\";\n State[State[\"BOGUS_DOCTYPE\"] = 67] = \"BOGUS_DOCTYPE\";\n State[State[\"CDATA_SECTION\"] = 68] = \"CDATA_SECTION\";\n State[State[\"CDATA_SECTION_BRACKET\"] = 69] = \"CDATA_SECTION_BRACKET\";\n State[State[\"CDATA_SECTION_END\"] = 70] = \"CDATA_SECTION_END\";\n State[State[\"CHARACTER_REFERENCE\"] = 71] = \"CHARACTER_REFERENCE\";\n State[State[\"NAMED_CHARACTER_REFERENCE\"] = 72] = \"NAMED_CHARACTER_REFERENCE\";\n State[State[\"AMBIGUOUS_AMPERSAND\"] = 73] = \"AMBIGUOUS_AMPERSAND\";\n State[State[\"NUMERIC_CHARACTER_REFERENCE\"] = 74] = \"NUMERIC_CHARACTER_REFERENCE\";\n State[State[\"HEXADEMICAL_CHARACTER_REFERENCE_START\"] = 75] = \"HEXADEMICAL_CHARACTER_REFERENCE_START\";\n State[State[\"HEXADEMICAL_CHARACTER_REFERENCE\"] = 76] = \"HEXADEMICAL_CHARACTER_REFERENCE\";\n State[State[\"DECIMAL_CHARACTER_REFERENCE\"] = 77] = \"DECIMAL_CHARACTER_REFERENCE\";\n State[State[\"NUMERIC_CHARACTER_REFERENCE_END\"] = 78] = \"NUMERIC_CHARACTER_REFERENCE_END\";\n})(State || (State = {}));\n//Tokenizer initial states for different modes\nexport const TokenizerMode = {\n DATA: State.DATA,\n RCDATA: State.RCDATA,\n RAWTEXT: State.RAWTEXT,\n SCRIPT_DATA: State.SCRIPT_DATA,\n PLAINTEXT: State.PLAINTEXT,\n CDATA_SECTION: State.CDATA_SECTION,\n};\n//Utils\n//OPTIMIZATION: these utility functions should not be moved out of this module. V8 Crankshaft will not inline\n//this functions if they will be situated in another module due to context switch.\n//Always perform inlining check before modifying this functions ('node --trace-inlining').\nfunction isAsciiDigit(cp) {\n return cp >= $.DIGIT_0 && cp <= $.DIGIT_9;\n}\nfunction isAsciiUpper(cp) {\n return cp >= $.LATIN_CAPITAL_A && cp <= $.LATIN_CAPITAL_Z;\n}\nfunction isAsciiLower(cp) {\n return cp >= $.LATIN_SMALL_A && cp <= $.LATIN_SMALL_Z;\n}\nfunction isAsciiLetter(cp) {\n return isAsciiLower(cp) || isAsciiUpper(cp);\n}\nfunction isAsciiAlphaNumeric(cp) {\n return isAsciiLetter(cp) || isAsciiDigit(cp);\n}\nfunction isAsciiUpperHexDigit(cp) {\n return cp >= $.LATIN_CAPITAL_A && cp <= $.LATIN_CAPITAL_F;\n}\nfunction isAsciiLowerHexDigit(cp) {\n return cp >= $.LATIN_SMALL_A && cp <= $.LATIN_SMALL_F;\n}\nfunction isAsciiHexDigit(cp) {\n return isAsciiDigit(cp) || isAsciiUpperHexDigit(cp) || isAsciiLowerHexDigit(cp);\n}\nfunction toAsciiLower(cp) {\n return cp + 32;\n}\nfunction isWhitespace(cp) {\n return cp === $.SPACE || cp === $.LINE_FEED || cp === $.TABULATION || cp === $.FORM_FEED;\n}\nfunction isEntityInAttributeInvalidEnd(nextCp) {\n return nextCp === $.EQUALS_SIGN || isAsciiAlphaNumeric(nextCp);\n}\nfunction isScriptDataDoubleEscapeSequenceEnd(cp) {\n return isWhitespace(cp) || cp === $.SOLIDUS || cp === $.GREATER_THAN_SIGN;\n}\n//Tokenizer\nexport class Tokenizer {\n constructor(options, handler) {\n this.options = options;\n this.handler = handler;\n this.paused = false;\n /** Ensures that the parsing loop isn't run multiple times at once. */\n this.inLoop = false;\n /**\n * Indicates that the current adjusted node exists, is not an element in the HTML namespace,\n * and that it is not an integration point for either MathML or HTML.\n *\n * @see {@link https://html.spec.whatwg.org/multipage/parsing.html#tree-construction}\n */\n this.inForeignNode = false;\n this.lastStartTagName = '';\n this.active = false;\n this.state = State.DATA;\n this.returnState = State.DATA;\n this.charRefCode = -1;\n this.consumedAfterSnapshot = -1;\n this.currentCharacterToken = null;\n this.currentToken = null;\n this.currentAttr = { name: '', value: '' };\n this.preprocessor = new Preprocessor(handler);\n this.currentLocation = this.getCurrentLocation(-1);\n }\n //Errors\n _err(code) {\n var _a, _b;\n (_b = (_a = this.handler).onParseError) === null || _b === void 0 ? void 0 : _b.call(_a, this.preprocessor.getError(code));\n }\n // NOTE: `offset` may never run across line boundaries.\n getCurrentLocation(offset) {\n if (!this.options.sourceCodeLocationInfo) {\n return null;\n }\n return {\n startLine: this.preprocessor.line,\n startCol: this.preprocessor.col - offset,\n startOffset: this.preprocessor.offset - offset,\n endLine: -1,\n endCol: -1,\n endOffset: -1,\n };\n }\n _runParsingLoop() {\n if (this.inLoop)\n return;\n this.inLoop = true;\n while (this.active && !this.paused) {\n this.consumedAfterSnapshot = 0;\n const cp = this._consume();\n if (!this._ensureHibernation()) {\n this._callState(cp);\n }\n }\n this.inLoop = false;\n }\n //API\n pause() {\n this.paused = true;\n }\n resume(writeCallback) {\n if (!this.paused) {\n throw new Error('Parser was already resumed');\n }\n this.paused = false;\n // Necessary for synchronous resume.\n if (this.inLoop)\n return;\n this._runParsingLoop();\n if (!this.paused) {\n writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();\n }\n }\n write(chunk, isLastChunk, writeCallback) {\n this.active = true;\n this.preprocessor.write(chunk, isLastChunk);\n this._runParsingLoop();\n if (!this.paused) {\n writeCallback === null || writeCallback === void 0 ? void 0 : writeCallback();\n }\n }\n insertHtmlAtCurrentPos(chunk) {\n this.active = true;\n this.preprocessor.insertHtmlAtCurrentPos(chunk);\n this._runParsingLoop();\n }\n //Hibernation\n _ensureHibernation() {\n if (this.preprocessor.endOfChunkHit) {\n this._unconsume(this.consumedAfterSnapshot);\n this.active = false;\n return true;\n }\n return false;\n }\n //Consumption\n _consume() {\n this.consumedAfterSnapshot++;\n return this.preprocessor.advance();\n }\n _unconsume(count) {\n this.consumedAfterSnapshot -= count;\n this.preprocessor.retreat(count);\n }\n _reconsumeInState(state, cp) {\n this.state = state;\n this._callState(cp);\n }\n _advanceBy(count) {\n this.consumedAfterSnapshot += count;\n for (let i = 0; i < count; i++) {\n this.preprocessor.advance();\n }\n }\n _consumeSequenceIfMatch(pattern, caseSensitive) {\n if (this.preprocessor.startsWith(pattern, caseSensitive)) {\n // We will already have consumed one character before calling this method.\n this._advanceBy(pattern.length - 1);\n return true;\n }\n return false;\n }\n //Token creation\n _createStartTagToken() {\n this.currentToken = {\n type: TokenType.START_TAG,\n tagName: '',\n tagID: TAG_ID.UNKNOWN,\n selfClosing: false,\n ackSelfClosing: false,\n attrs: [],\n location: this.getCurrentLocation(1),\n };\n }\n _createEndTagToken() {\n this.currentToken = {\n type: TokenType.END_TAG,\n tagName: '',\n tagID: TAG_ID.UNKNOWN,\n selfClosing: false,\n ackSelfClosing: false,\n attrs: [],\n location: this.getCurrentLocation(2),\n };\n }\n _createCommentToken(offset) {\n this.currentToken = {\n type: TokenType.COMMENT,\n data: '',\n location: this.getCurrentLocation(offset),\n };\n }\n _createDoctypeToken(initialName) {\n this.currentToken = {\n type: TokenType.DOCTYPE,\n name: initialName,\n forceQuirks: false,\n publicId: null,\n systemId: null,\n location: this.currentLocation,\n };\n }\n _createCharacterToken(type, chars) {\n this.currentCharacterToken = {\n type,\n chars,\n location: this.currentLocation,\n };\n }\n //Tag attributes\n _createAttr(attrNameFirstCh) {\n this.currentAttr = {\n name: attrNameFirstCh,\n value: '',\n };\n this.currentLocation = this.getCurrentLocation(0);\n }\n _leaveAttrName() {\n var _a;\n var _b;\n const token = this.currentToken;\n if (getTokenAttr(token, this.currentAttr.name) === null) {\n token.attrs.push(this.currentAttr);\n if (token.location && this.currentLocation) {\n const attrLocations = ((_a = (_b = token.location).attrs) !== null && _a !== void 0 ? _a : (_b.attrs = Object.create(null)));\n attrLocations[this.currentAttr.name] = this.currentLocation;\n // Set end location\n this._leaveAttrValue();\n }\n }\n else {\n this._err(ERR.duplicateAttribute);\n }\n }\n _leaveAttrValue() {\n if (this.currentLocation) {\n this.currentLocation.endLine = this.preprocessor.line;\n this.currentLocation.endCol = this.preprocessor.col;\n this.currentLocation.endOffset = this.preprocessor.offset;\n }\n }\n //Token emission\n prepareToken(ct) {\n this._emitCurrentCharacterToken(ct.location);\n this.currentToken = null;\n if (ct.location) {\n ct.location.endLine = this.preprocessor.line;\n ct.location.endCol = this.preprocessor.col + 1;\n ct.location.endOffset = this.preprocessor.offset + 1;\n }\n this.currentLocation = this.getCurrentLocation(-1);\n }\n emitCurrentTagToken() {\n const ct = this.currentToken;\n this.prepareToken(ct);\n ct.tagID = getTagID(ct.tagName);\n if (ct.type === TokenType.START_TAG) {\n this.lastStartTagName = ct.tagName;\n this.handler.onStartTag(ct);\n }\n else {\n if (ct.attrs.length > 0) {\n this._err(ERR.endTagWithAttributes);\n }\n if (ct.selfClosing) {\n this._err(ERR.endTagWithTrailingSolidus);\n }\n this.handler.onEndTag(ct);\n }\n this.preprocessor.dropParsedChunk();\n }\n emitCurrentComment(ct) {\n this.prepareToken(ct);\n this.handler.onComment(ct);\n this.preprocessor.dropParsedChunk();\n }\n emitCurrentDoctype(ct) {\n this.prepareToken(ct);\n this.handler.onDoctype(ct);\n this.preprocessor.dropParsedChunk();\n }\n _emitCurrentCharacterToken(nextLocation) {\n if (this.currentCharacterToken) {\n //NOTE: if we have a pending character token, make it's end location equal to the\n //current token's start location.\n if (nextLocation && this.currentCharacterToken.location) {\n this.currentCharacterToken.location.endLine = nextLocation.startLine;\n this.currentCharacterToken.location.endCol = nextLocation.startCol;\n this.currentCharacterToken.location.endOffset = nextLocation.startOffset;\n }\n switch (this.currentCharacterToken.type) {\n case TokenType.CHARACTER: {\n this.handler.onCharacter(this.currentCharacterToken);\n break;\n }\n case TokenType.NULL_CHARACTER: {\n this.handler.onNullCharacter(this.currentCharacterToken);\n break;\n }\n case TokenType.WHITESPACE_CHARACTER: {\n this.handler.onWhitespaceCharacter(this.currentCharacterToken);\n break;\n }\n }\n this.currentCharacterToken = null;\n }\n }\n _emitEOFToken() {\n const location = this.getCurrentLocation(0);\n if (location) {\n location.endLine = location.startLine;\n location.endCol = location.startCol;\n location.endOffset = location.startOffset;\n }\n this._emitCurrentCharacterToken(location);\n this.handler.onEof({ type: TokenType.EOF, location });\n this.active = false;\n }\n //Characters emission\n //OPTIMIZATION: specification uses only one type of character tokens (one token per character).\n //This causes a huge memory overhead and a lot of unnecessary parser loops. parse5 uses 3 groups of characters.\n //If we have a sequence of characters that belong to the same group, the parser can process it\n //as a single solid character token.\n //So, there are 3 types of character tokens in parse5:\n //1)TokenType.NULL_CHARACTER - \\u0000-character sequences (e.g. '\\u0000\\u0000\\u0000')\n //2)TokenType.WHITESPACE_CHARACTER - any whitespace/new-line character sequences (e.g. '\\n \\r\\t \\f')\n //3)TokenType.CHARACTER - any character sequence which don't belong to groups 1 and 2 (e.g. 'abcdef1234@@#$%^')\n _appendCharToCurrentCharacterToken(type, ch) {\n if (this.currentCharacterToken) {\n if (this.currentCharacterToken.type !== type) {\n this.currentLocation = this.getCurrentLocation(0);\n this._emitCurrentCharacterToken(this.currentLocation);\n this.preprocessor.dropParsedChunk();\n }\n else {\n this.currentCharacterToken.chars += ch;\n return;\n }\n }\n this._createCharacterToken(type, ch);\n }\n _emitCodePoint(cp) {\n const type = isWhitespace(cp)\n ? TokenType.WHITESPACE_CHARACTER\n : cp === $.NULL\n ? TokenType.NULL_CHARACTER\n : TokenType.CHARACTER;\n this._appendCharToCurrentCharacterToken(type, String.fromCodePoint(cp));\n }\n //NOTE: used when we emit characters explicitly.\n //This is always for non-whitespace and non-null characters, which allows us to avoid additional checks.\n _emitChars(ch) {\n this._appendCharToCurrentCharacterToken(TokenType.CHARACTER, ch);\n }\n // Character reference helpers\n _matchNamedCharacterReference(cp) {\n let result = null;\n let excess = 0;\n let withoutSemicolon = false;\n for (let i = 0, current = htmlDecodeTree[0]; i >= 0; cp = this._consume()) {\n i = determineBranch(htmlDecodeTree, current, i + 1, cp);\n if (i < 0)\n break;\n excess += 1;\n current = htmlDecodeTree[i];\n const masked = current & BinTrieFlags.VALUE_LENGTH;\n // If the branch is a value, store it and continue\n if (masked) {\n // The mask is the number of bytes of the value, including the current byte.\n const valueLength = (masked >> 14) - 1;\n // Attribute values that aren't terminated properly aren't parsed, and shouldn't lead to a parser error.\n // See the example in https://html.spec.whatwg.org/multipage/parsing.html#named-character-reference-state\n if (cp !== $.SEMICOLON &&\n this._isCharacterReferenceInAttribute() &&\n isEntityInAttributeInvalidEnd(this.preprocessor.peek(1))) {\n //NOTE: we don't flush all consumed code points here, and instead switch back to the original state after\n //emitting an ampersand. This is fine, as alphanumeric characters won't be parsed differently in attributes.\n result = [$.AMPERSAND];\n // Skip over the value.\n i += valueLength;\n }\n else {\n // If this is a surrogate pair, consume the next two bytes.\n result =\n valueLength === 0\n ? [htmlDecodeTree[i] & ~BinTrieFlags.VALUE_LENGTH]\n : valueLength === 1\n ? [htmlDecodeTree[++i]]\n : [htmlDecodeTree[++i], htmlDecodeTree[++i]];\n excess = 0;\n withoutSemicolon = cp !== $.SEMICOLON;\n }\n if (valueLength === 0) {\n // If the value is zero-length, we're done.\n this._consume();\n break;\n }\n }\n }\n this._unconsume(excess);\n if (withoutSemicolon && !this.preprocessor.endOfChunkHit) {\n this._err(ERR.missingSemicolonAfterCharacterReference);\n }\n // We want to emit the error above on the code point after the entity.\n // We always consume one code point too many in the loop, and we wait to\n // unconsume it until after the error is emitted.\n this._unconsume(1);\n return result;\n }\n _isCharacterReferenceInAttribute() {\n return (this.returnState === State.ATTRIBUTE_VALUE_DOUBLE_QUOTED ||\n this.returnState === State.ATTRIBUTE_VALUE_SINGLE_QUOTED ||\n this.returnState === State.ATTRIBUTE_VALUE_UNQUOTED);\n }\n _flushCodePointConsumedAsCharacterReference(cp) {\n if (this._isCharacterReferenceInAttribute()) {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n else {\n this._emitCodePoint(cp);\n }\n }\n // Calling states this way turns out to be much faster than any other approach.\n _callState(cp) {\n switch (this.state) {\n case State.DATA: {\n this._stateData(cp);\n break;\n }\n case State.RCDATA: {\n this._stateRcdata(cp);\n break;\n }\n case State.RAWTEXT: {\n this._stateRawtext(cp);\n break;\n }\n case State.SCRIPT_DATA: {\n this._stateScriptData(cp);\n break;\n }\n case State.PLAINTEXT: {\n this._statePlaintext(cp);\n break;\n }\n case State.TAG_OPEN: {\n this._stateTagOpen(cp);\n break;\n }\n case State.END_TAG_OPEN: {\n this._stateEndTagOpen(cp);\n break;\n }\n case State.TAG_NAME: {\n this._stateTagName(cp);\n break;\n }\n case State.RCDATA_LESS_THAN_SIGN: {\n this._stateRcdataLessThanSign(cp);\n break;\n }\n case State.RCDATA_END_TAG_OPEN: {\n this._stateRcdataEndTagOpen(cp);\n break;\n }\n case State.RCDATA_END_TAG_NAME: {\n this._stateRcdataEndTagName(cp);\n break;\n }\n case State.RAWTEXT_LESS_THAN_SIGN: {\n this._stateRawtextLessThanSign(cp);\n break;\n }\n case State.RAWTEXT_END_TAG_OPEN: {\n this._stateRawtextEndTagOpen(cp);\n break;\n }\n case State.RAWTEXT_END_TAG_NAME: {\n this._stateRawtextEndTagName(cp);\n break;\n }\n case State.SCRIPT_DATA_LESS_THAN_SIGN: {\n this._stateScriptDataLessThanSign(cp);\n break;\n }\n case State.SCRIPT_DATA_END_TAG_OPEN: {\n this._stateScriptDataEndTagOpen(cp);\n break;\n }\n case State.SCRIPT_DATA_END_TAG_NAME: {\n this._stateScriptDataEndTagName(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPE_START: {\n this._stateScriptDataEscapeStart(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPE_START_DASH: {\n this._stateScriptDataEscapeStartDash(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED: {\n this._stateScriptDataEscaped(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_DASH: {\n this._stateScriptDataEscapedDash(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_DASH_DASH: {\n this._stateScriptDataEscapedDashDash(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN: {\n this._stateScriptDataEscapedLessThanSign(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN: {\n this._stateScriptDataEscapedEndTagOpen(cp);\n break;\n }\n case State.SCRIPT_DATA_ESCAPED_END_TAG_NAME: {\n this._stateScriptDataEscapedEndTagName(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPE_START: {\n this._stateScriptDataDoubleEscapeStart(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED: {\n this._stateScriptDataDoubleEscaped(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH: {\n this._stateScriptDataDoubleEscapedDash(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH: {\n this._stateScriptDataDoubleEscapedDashDash(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN: {\n this._stateScriptDataDoubleEscapedLessThanSign(cp);\n break;\n }\n case State.SCRIPT_DATA_DOUBLE_ESCAPE_END: {\n this._stateScriptDataDoubleEscapeEnd(cp);\n break;\n }\n case State.BEFORE_ATTRIBUTE_NAME: {\n this._stateBeforeAttributeName(cp);\n break;\n }\n case State.ATTRIBUTE_NAME: {\n this._stateAttributeName(cp);\n break;\n }\n case State.AFTER_ATTRIBUTE_NAME: {\n this._stateAfterAttributeName(cp);\n break;\n }\n case State.BEFORE_ATTRIBUTE_VALUE: {\n this._stateBeforeAttributeValue(cp);\n break;\n }\n case State.ATTRIBUTE_VALUE_DOUBLE_QUOTED: {\n this._stateAttributeValueDoubleQuoted(cp);\n break;\n }\n case State.ATTRIBUTE_VALUE_SINGLE_QUOTED: {\n this._stateAttributeValueSingleQuoted(cp);\n break;\n }\n case State.ATTRIBUTE_VALUE_UNQUOTED: {\n this._stateAttributeValueUnquoted(cp);\n break;\n }\n case State.AFTER_ATTRIBUTE_VALUE_QUOTED: {\n this._stateAfterAttributeValueQuoted(cp);\n break;\n }\n case State.SELF_CLOSING_START_TAG: {\n this._stateSelfClosingStartTag(cp);\n break;\n }\n case State.BOGUS_COMMENT: {\n this._stateBogusComment(cp);\n break;\n }\n case State.MARKUP_DECLARATION_OPEN: {\n this._stateMarkupDeclarationOpen(cp);\n break;\n }\n case State.COMMENT_START: {\n this._stateCommentStart(cp);\n break;\n }\n case State.COMMENT_START_DASH: {\n this._stateCommentStartDash(cp);\n break;\n }\n case State.COMMENT: {\n this._stateComment(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN: {\n this._stateCommentLessThanSign(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN_BANG: {\n this._stateCommentLessThanSignBang(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN_BANG_DASH: {\n this._stateCommentLessThanSignBangDash(cp);\n break;\n }\n case State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH: {\n this._stateCommentLessThanSignBangDashDash(cp);\n break;\n }\n case State.COMMENT_END_DASH: {\n this._stateCommentEndDash(cp);\n break;\n }\n case State.COMMENT_END: {\n this._stateCommentEnd(cp);\n break;\n }\n case State.COMMENT_END_BANG: {\n this._stateCommentEndBang(cp);\n break;\n }\n case State.DOCTYPE: {\n this._stateDoctype(cp);\n break;\n }\n case State.BEFORE_DOCTYPE_NAME: {\n this._stateBeforeDoctypeName(cp);\n break;\n }\n case State.DOCTYPE_NAME: {\n this._stateDoctypeName(cp);\n break;\n }\n case State.AFTER_DOCTYPE_NAME: {\n this._stateAfterDoctypeName(cp);\n break;\n }\n case State.AFTER_DOCTYPE_PUBLIC_KEYWORD: {\n this._stateAfterDoctypePublicKeyword(cp);\n break;\n }\n case State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER: {\n this._stateBeforeDoctypePublicIdentifier(cp);\n break;\n }\n case State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED: {\n this._stateDoctypePublicIdentifierDoubleQuoted(cp);\n break;\n }\n case State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED: {\n this._stateDoctypePublicIdentifierSingleQuoted(cp);\n break;\n }\n case State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER: {\n this._stateAfterDoctypePublicIdentifier(cp);\n break;\n }\n case State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS: {\n this._stateBetweenDoctypePublicAndSystemIdentifiers(cp);\n break;\n }\n case State.AFTER_DOCTYPE_SYSTEM_KEYWORD: {\n this._stateAfterDoctypeSystemKeyword(cp);\n break;\n }\n case State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER: {\n this._stateBeforeDoctypeSystemIdentifier(cp);\n break;\n }\n case State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED: {\n this._stateDoctypeSystemIdentifierDoubleQuoted(cp);\n break;\n }\n case State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED: {\n this._stateDoctypeSystemIdentifierSingleQuoted(cp);\n break;\n }\n case State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER: {\n this._stateAfterDoctypeSystemIdentifier(cp);\n break;\n }\n case State.BOGUS_DOCTYPE: {\n this._stateBogusDoctype(cp);\n break;\n }\n case State.CDATA_SECTION: {\n this._stateCdataSection(cp);\n break;\n }\n case State.CDATA_SECTION_BRACKET: {\n this._stateCdataSectionBracket(cp);\n break;\n }\n case State.CDATA_SECTION_END: {\n this._stateCdataSectionEnd(cp);\n break;\n }\n case State.CHARACTER_REFERENCE: {\n this._stateCharacterReference(cp);\n break;\n }\n case State.NAMED_CHARACTER_REFERENCE: {\n this._stateNamedCharacterReference(cp);\n break;\n }\n case State.AMBIGUOUS_AMPERSAND: {\n this._stateAmbiguousAmpersand(cp);\n break;\n }\n case State.NUMERIC_CHARACTER_REFERENCE: {\n this._stateNumericCharacterReference(cp);\n break;\n }\n case State.HEXADEMICAL_CHARACTER_REFERENCE_START: {\n this._stateHexademicalCharacterReferenceStart(cp);\n break;\n }\n case State.HEXADEMICAL_CHARACTER_REFERENCE: {\n this._stateHexademicalCharacterReference(cp);\n break;\n }\n case State.DECIMAL_CHARACTER_REFERENCE: {\n this._stateDecimalCharacterReference(cp);\n break;\n }\n case State.NUMERIC_CHARACTER_REFERENCE_END: {\n this._stateNumericCharacterReferenceEnd(cp);\n break;\n }\n default: {\n throw new Error('Unknown state');\n }\n }\n }\n // State machine\n // Data state\n //------------------------------------------------------------------\n _stateData(cp) {\n switch (cp) {\n case $.LESS_THAN_SIGN: {\n this.state = State.TAG_OPEN;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.DATA;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitCodePoint(cp);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // RCDATA state\n //------------------------------------------------------------------\n _stateRcdata(cp) {\n switch (cp) {\n case $.AMPERSAND: {\n this.returnState = State.RCDATA;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.LESS_THAN_SIGN: {\n this.state = State.RCDATA_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // RAWTEXT state\n //------------------------------------------------------------------\n _stateRawtext(cp) {\n switch (cp) {\n case $.LESS_THAN_SIGN: {\n this.state = State.RAWTEXT_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // Script data state\n //------------------------------------------------------------------\n _stateScriptData(cp) {\n switch (cp) {\n case $.LESS_THAN_SIGN: {\n this.state = State.SCRIPT_DATA_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // PLAINTEXT state\n //------------------------------------------------------------------\n _statePlaintext(cp) {\n switch (cp) {\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // Tag open state\n //------------------------------------------------------------------\n _stateTagOpen(cp) {\n if (isAsciiLetter(cp)) {\n this._createStartTagToken();\n this.state = State.TAG_NAME;\n this._stateTagName(cp);\n }\n else\n switch (cp) {\n case $.EXCLAMATION_MARK: {\n this.state = State.MARKUP_DECLARATION_OPEN;\n break;\n }\n case $.SOLIDUS: {\n this.state = State.END_TAG_OPEN;\n break;\n }\n case $.QUESTION_MARK: {\n this._err(ERR.unexpectedQuestionMarkInsteadOfTagName);\n this._createCommentToken(1);\n this.state = State.BOGUS_COMMENT;\n this._stateBogusComment(cp);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofBeforeTagName);\n this._emitChars('<');\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.invalidFirstCharacterOfTagName);\n this._emitChars('<');\n this.state = State.DATA;\n this._stateData(cp);\n }\n }\n }\n // End tag open state\n //------------------------------------------------------------------\n _stateEndTagOpen(cp) {\n if (isAsciiLetter(cp)) {\n this._createEndTagToken();\n this.state = State.TAG_NAME;\n this._stateTagName(cp);\n }\n else\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingEndTagName);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofBeforeTagName);\n this._emitChars('');\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.state = State.SCRIPT_DATA_ESCAPED;\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInScriptHtmlCommentLikeText);\n this._emitEOFToken();\n break;\n }\n default: {\n this.state = State.SCRIPT_DATA_ESCAPED;\n this._emitCodePoint(cp);\n }\n }\n }\n // Script data escaped less-than sign state\n //------------------------------------------------------------------\n _stateScriptDataEscapedLessThanSign(cp) {\n if (cp === $.SOLIDUS) {\n this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_OPEN;\n }\n else if (isAsciiLetter(cp)) {\n this._emitChars('<');\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_START;\n this._stateScriptDataDoubleEscapeStart(cp);\n }\n else {\n this._emitChars('<');\n this.state = State.SCRIPT_DATA_ESCAPED;\n this._stateScriptDataEscaped(cp);\n }\n }\n // Script data escaped end tag open state\n //------------------------------------------------------------------\n _stateScriptDataEscapedEndTagOpen(cp) {\n if (isAsciiLetter(cp)) {\n this.state = State.SCRIPT_DATA_ESCAPED_END_TAG_NAME;\n this._stateScriptDataEscapedEndTagName(cp);\n }\n else {\n this._emitChars('');\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._emitChars(REPLACEMENT_CHARACTER);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInScriptHtmlCommentLikeText);\n this._emitEOFToken();\n break;\n }\n default: {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._emitCodePoint(cp);\n }\n }\n }\n // Script data double escaped less-than sign state\n //------------------------------------------------------------------\n _stateScriptDataDoubleEscapedLessThanSign(cp) {\n if (cp === $.SOLIDUS) {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPE_END;\n this._emitChars('/');\n }\n else {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._stateScriptDataDoubleEscaped(cp);\n }\n }\n // Script data double escape end state\n //------------------------------------------------------------------\n _stateScriptDataDoubleEscapeEnd(cp) {\n if (this.preprocessor.startsWith($$.SCRIPT, false) &&\n isScriptDataDoubleEscapeSequenceEnd(this.preprocessor.peek($$.SCRIPT.length))) {\n this._emitCodePoint(cp);\n for (let i = 0; i < $$.SCRIPT.length; i++) {\n this._emitCodePoint(this._consume());\n }\n this.state = State.SCRIPT_DATA_ESCAPED;\n }\n else if (!this._ensureHibernation()) {\n this.state = State.SCRIPT_DATA_DOUBLE_ESCAPED;\n this._stateScriptDataDoubleEscaped(cp);\n }\n }\n // Before attribute name state\n //------------------------------------------------------------------\n _stateBeforeAttributeName(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.SOLIDUS:\n case $.GREATER_THAN_SIGN:\n case $.EOF: {\n this.state = State.AFTER_ATTRIBUTE_NAME;\n this._stateAfterAttributeName(cp);\n break;\n }\n case $.EQUALS_SIGN: {\n this._err(ERR.unexpectedEqualsSignBeforeAttributeName);\n this._createAttr('=');\n this.state = State.ATTRIBUTE_NAME;\n break;\n }\n default: {\n this._createAttr('');\n this.state = State.ATTRIBUTE_NAME;\n this._stateAttributeName(cp);\n }\n }\n }\n // Attribute name state\n //------------------------------------------------------------------\n _stateAttributeName(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED:\n case $.SOLIDUS:\n case $.GREATER_THAN_SIGN:\n case $.EOF: {\n this._leaveAttrName();\n this.state = State.AFTER_ATTRIBUTE_NAME;\n this._stateAfterAttributeName(cp);\n break;\n }\n case $.EQUALS_SIGN: {\n this._leaveAttrName();\n this.state = State.BEFORE_ATTRIBUTE_VALUE;\n break;\n }\n case $.QUOTATION_MARK:\n case $.APOSTROPHE:\n case $.LESS_THAN_SIGN: {\n this._err(ERR.unexpectedCharacterInAttributeName);\n this.currentAttr.name += String.fromCodePoint(cp);\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.name += REPLACEMENT_CHARACTER;\n break;\n }\n default: {\n this.currentAttr.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);\n }\n }\n }\n // After attribute name state\n //------------------------------------------------------------------\n _stateAfterAttributeName(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.SOLIDUS: {\n this.state = State.SELF_CLOSING_START_TAG;\n break;\n }\n case $.EQUALS_SIGN: {\n this.state = State.BEFORE_ATTRIBUTE_VALUE;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this._createAttr('');\n this.state = State.ATTRIBUTE_NAME;\n this._stateAttributeName(cp);\n }\n }\n }\n // Before attribute value state\n //------------------------------------------------------------------\n _stateBeforeAttributeValue(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.QUOTATION_MARK: {\n this.state = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this.state = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingAttributeValue);\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n default: {\n this.state = State.ATTRIBUTE_VALUE_UNQUOTED;\n this._stateAttributeValueUnquoted(cp);\n }\n }\n }\n // Attribute value (double-quoted) state\n //------------------------------------------------------------------\n _stateAttributeValueDoubleQuoted(cp) {\n switch (cp) {\n case $.QUOTATION_MARK: {\n this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.ATTRIBUTE_VALUE_DOUBLE_QUOTED;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.value += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n }\n }\n // Attribute value (single-quoted) state\n //------------------------------------------------------------------\n _stateAttributeValueSingleQuoted(cp) {\n switch (cp) {\n case $.APOSTROPHE: {\n this.state = State.AFTER_ATTRIBUTE_VALUE_QUOTED;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.ATTRIBUTE_VALUE_SINGLE_QUOTED;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.value += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n }\n }\n // Attribute value (unquoted) state\n //------------------------------------------------------------------\n _stateAttributeValueUnquoted(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this._leaveAttrValue();\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n break;\n }\n case $.AMPERSAND: {\n this.returnState = State.ATTRIBUTE_VALUE_UNQUOTED;\n this.state = State.CHARACTER_REFERENCE;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._leaveAttrValue();\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this.currentAttr.value += REPLACEMENT_CHARACTER;\n break;\n }\n case $.QUOTATION_MARK:\n case $.APOSTROPHE:\n case $.LESS_THAN_SIGN:\n case $.EQUALS_SIGN:\n case $.GRAVE_ACCENT: {\n this._err(ERR.unexpectedCharacterInUnquotedAttributeValue);\n this.currentAttr.value += String.fromCodePoint(cp);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this.currentAttr.value += String.fromCodePoint(cp);\n }\n }\n }\n // After attribute value (quoted) state\n //------------------------------------------------------------------\n _stateAfterAttributeValueQuoted(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this._leaveAttrValue();\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n break;\n }\n case $.SOLIDUS: {\n this._leaveAttrValue();\n this.state = State.SELF_CLOSING_START_TAG;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._leaveAttrValue();\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingWhitespaceBetweenAttributes);\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n this._stateBeforeAttributeName(cp);\n }\n }\n }\n // Self-closing start tag state\n //------------------------------------------------------------------\n _stateSelfClosingStartTag(cp) {\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n const token = this.currentToken;\n token.selfClosing = true;\n this.state = State.DATA;\n this.emitCurrentTagToken();\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInTag);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.unexpectedSolidusInTag);\n this.state = State.BEFORE_ATTRIBUTE_NAME;\n this._stateBeforeAttributeName(cp);\n }\n }\n }\n // Bogus comment state\n //------------------------------------------------------------------\n _stateBogusComment(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EOF: {\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.data += REPLACEMENT_CHARACTER;\n break;\n }\n default: {\n token.data += String.fromCodePoint(cp);\n }\n }\n }\n // Markup declaration open state\n //------------------------------------------------------------------\n _stateMarkupDeclarationOpen(cp) {\n if (this._consumeSequenceIfMatch($$.DASH_DASH, true)) {\n this._createCommentToken($$.DASH_DASH.length + 1);\n this.state = State.COMMENT_START;\n }\n else if (this._consumeSequenceIfMatch($$.DOCTYPE, false)) {\n // NOTE: Doctypes tokens are created without fixed offsets. We keep track of the moment a doctype *might* start here.\n this.currentLocation = this.getCurrentLocation($$.DOCTYPE.length + 1);\n this.state = State.DOCTYPE;\n }\n else if (this._consumeSequenceIfMatch($$.CDATA_START, true)) {\n if (this.inForeignNode) {\n this.state = State.CDATA_SECTION;\n }\n else {\n this._err(ERR.cdataInHtmlContent);\n this._createCommentToken($$.CDATA_START.length + 1);\n this.currentToken.data = '[CDATA[';\n this.state = State.BOGUS_COMMENT;\n }\n }\n //NOTE: Sequence lookups can be abrupted by hibernation. In that case, lookup\n //results are no longer valid and we will need to start over.\n else if (!this._ensureHibernation()) {\n this._err(ERR.incorrectlyOpenedComment);\n this._createCommentToken(2);\n this.state = State.BOGUS_COMMENT;\n this._stateBogusComment(cp);\n }\n }\n // Comment start state\n //------------------------------------------------------------------\n _stateCommentStart(cp) {\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_START_DASH;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptClosingOfEmptyComment);\n this.state = State.DATA;\n const token = this.currentToken;\n this.emitCurrentComment(token);\n break;\n }\n default: {\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment start dash state\n //------------------------------------------------------------------\n _stateCommentStartDash(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_END;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptClosingOfEmptyComment);\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '-';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment state\n //------------------------------------------------------------------\n _stateComment(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_END_DASH;\n break;\n }\n case $.LESS_THAN_SIGN: {\n token.data += '<';\n this.state = State.COMMENT_LESS_THAN_SIGN;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.data += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += String.fromCodePoint(cp);\n }\n }\n }\n // Comment less-than sign state\n //------------------------------------------------------------------\n _stateCommentLessThanSign(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.EXCLAMATION_MARK: {\n token.data += '!';\n this.state = State.COMMENT_LESS_THAN_SIGN_BANG;\n break;\n }\n case $.LESS_THAN_SIGN: {\n token.data += '<';\n break;\n }\n default: {\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment less-than sign bang state\n //------------------------------------------------------------------\n _stateCommentLessThanSignBang(cp) {\n if (cp === $.HYPHEN_MINUS) {\n this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH;\n }\n else {\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n // Comment less-than sign bang dash state\n //------------------------------------------------------------------\n _stateCommentLessThanSignBangDash(cp) {\n if (cp === $.HYPHEN_MINUS) {\n this.state = State.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH;\n }\n else {\n this.state = State.COMMENT_END_DASH;\n this._stateCommentEndDash(cp);\n }\n }\n // Comment less-than sign bang dash dash state\n //------------------------------------------------------------------\n _stateCommentLessThanSignBangDashDash(cp) {\n if (cp !== $.GREATER_THAN_SIGN && cp !== $.EOF) {\n this._err(ERR.nestedComment);\n }\n this.state = State.COMMENT_END;\n this._stateCommentEnd(cp);\n }\n // Comment end dash state\n //------------------------------------------------------------------\n _stateCommentEndDash(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n this.state = State.COMMENT_END;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '-';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment end state\n //------------------------------------------------------------------\n _stateCommentEnd(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EXCLAMATION_MARK: {\n this.state = State.COMMENT_END_BANG;\n break;\n }\n case $.HYPHEN_MINUS: {\n token.data += '-';\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '--';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // Comment end bang state\n //------------------------------------------------------------------\n _stateCommentEndBang(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.HYPHEN_MINUS: {\n token.data += '--!';\n this.state = State.COMMENT_END_DASH;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.incorrectlyClosedComment);\n this.state = State.DATA;\n this.emitCurrentComment(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInComment);\n this.emitCurrentComment(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.data += '--!';\n this.state = State.COMMENT;\n this._stateComment(cp);\n }\n }\n }\n // DOCTYPE state\n //------------------------------------------------------------------\n _stateDoctype(cp) {\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BEFORE_DOCTYPE_NAME;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.BEFORE_DOCTYPE_NAME;\n this._stateBeforeDoctypeName(cp);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n this._createDoctypeToken(null);\n const token = this.currentToken;\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingWhitespaceBeforeDoctypeName);\n this.state = State.BEFORE_DOCTYPE_NAME;\n this._stateBeforeDoctypeName(cp);\n }\n }\n }\n // Before DOCTYPE name state\n //------------------------------------------------------------------\n _stateBeforeDoctypeName(cp) {\n if (isAsciiUpper(cp)) {\n this._createDoctypeToken(String.fromCharCode(toAsciiLower(cp)));\n this.state = State.DOCTYPE_NAME;\n }\n else\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n this._createDoctypeToken(REPLACEMENT_CHARACTER);\n this.state = State.DOCTYPE_NAME;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypeName);\n this._createDoctypeToken(null);\n const token = this.currentToken;\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n this._createDoctypeToken(null);\n const token = this.currentToken;\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._createDoctypeToken(String.fromCodePoint(cp));\n this.state = State.DOCTYPE_NAME;\n }\n }\n }\n // DOCTYPE name state\n //------------------------------------------------------------------\n _stateDoctypeName(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.AFTER_DOCTYPE_NAME;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.name += REPLACEMENT_CHARACTER;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.name += String.fromCodePoint(isAsciiUpper(cp) ? toAsciiLower(cp) : cp);\n }\n }\n }\n // After DOCTYPE name state\n //------------------------------------------------------------------\n _stateAfterDoctypeName(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n if (this._consumeSequenceIfMatch($$.PUBLIC, false)) {\n this.state = State.AFTER_DOCTYPE_PUBLIC_KEYWORD;\n }\n else if (this._consumeSequenceIfMatch($$.SYSTEM, false)) {\n this.state = State.AFTER_DOCTYPE_SYSTEM_KEYWORD;\n }\n //NOTE: sequence lookup can be abrupted by hibernation. In that case lookup\n //results are no longer valid and we will need to start over.\n else if (!this._ensureHibernation()) {\n this._err(ERR.invalidCharacterSequenceAfterDoctypeName);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n }\n // After DOCTYPE public keyword state\n //------------------------------------------------------------------\n _stateAfterDoctypePublicKeyword(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;\n break;\n }\n case $.QUOTATION_MARK: {\n this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this._err(ERR.missingWhitespaceAfterDoctypePublicKeyword);\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Before DOCTYPE public identifier state\n //------------------------------------------------------------------\n _stateBeforeDoctypePublicIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.QUOTATION_MARK: {\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n token.publicId = '';\n this.state = State.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // DOCTYPE public identifier (double-quoted) state\n //------------------------------------------------------------------\n _stateDoctypePublicIdentifierDoubleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.QUOTATION_MARK: {\n this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.publicId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.publicId += String.fromCodePoint(cp);\n }\n }\n }\n // DOCTYPE public identifier (single-quoted) state\n //------------------------------------------------------------------\n _stateDoctypePublicIdentifierSingleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.APOSTROPHE: {\n this.state = State.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.publicId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypePublicIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.publicId += String.fromCodePoint(cp);\n }\n }\n }\n // After DOCTYPE public identifier state\n //------------------------------------------------------------------\n _stateAfterDoctypePublicIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.QUOTATION_MARK: {\n this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this._err(ERR.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Between DOCTYPE public and system identifiers state\n //------------------------------------------------------------------\n _stateBetweenDoctypePublicAndSystemIdentifiers(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.QUOTATION_MARK: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // After DOCTYPE system keyword state\n //------------------------------------------------------------------\n _stateAfterDoctypeSystemKeyword(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n this.state = State.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;\n break;\n }\n case $.QUOTATION_MARK: {\n this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n this._err(ERR.missingWhitespaceAfterDoctypeSystemKeyword);\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Before DOCTYPE system identifier state\n //------------------------------------------------------------------\n _stateBeforeDoctypeSystemIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.QUOTATION_MARK: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;\n break;\n }\n case $.APOSTROPHE: {\n token.systemId = '';\n this.state = State.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.missingDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.DATA;\n this.emitCurrentDoctype(token);\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.missingQuoteBeforeDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // DOCTYPE system identifier (double-quoted) state\n //------------------------------------------------------------------\n _stateDoctypeSystemIdentifierDoubleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.QUOTATION_MARK: {\n this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.systemId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.systemId += String.fromCodePoint(cp);\n }\n }\n }\n // DOCTYPE system identifier (single-quoted) state\n //------------------------------------------------------------------\n _stateDoctypeSystemIdentifierSingleQuoted(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.APOSTROPHE: {\n this.state = State.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n token.systemId += REPLACEMENT_CHARACTER;\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this._err(ERR.abruptDoctypeSystemIdentifier);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n token.systemId += String.fromCodePoint(cp);\n }\n }\n }\n // After DOCTYPE system identifier state\n //------------------------------------------------------------------\n _stateAfterDoctypeSystemIdentifier(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.SPACE:\n case $.LINE_FEED:\n case $.TABULATION:\n case $.FORM_FEED: {\n // Ignore whitespace\n break;\n }\n case $.GREATER_THAN_SIGN: {\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInDoctype);\n token.forceQuirks = true;\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default: {\n this._err(ERR.unexpectedCharacterAfterDoctypeSystemIdentifier);\n this.state = State.BOGUS_DOCTYPE;\n this._stateBogusDoctype(cp);\n }\n }\n }\n // Bogus DOCTYPE state\n //------------------------------------------------------------------\n _stateBogusDoctype(cp) {\n const token = this.currentToken;\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.emitCurrentDoctype(token);\n this.state = State.DATA;\n break;\n }\n case $.NULL: {\n this._err(ERR.unexpectedNullCharacter);\n break;\n }\n case $.EOF: {\n this.emitCurrentDoctype(token);\n this._emitEOFToken();\n break;\n }\n default:\n // Do nothing\n }\n }\n // CDATA section state\n //------------------------------------------------------------------\n _stateCdataSection(cp) {\n switch (cp) {\n case $.RIGHT_SQUARE_BRACKET: {\n this.state = State.CDATA_SECTION_BRACKET;\n break;\n }\n case $.EOF: {\n this._err(ERR.eofInCdata);\n this._emitEOFToken();\n break;\n }\n default: {\n this._emitCodePoint(cp);\n }\n }\n }\n // CDATA section bracket state\n //------------------------------------------------------------------\n _stateCdataSectionBracket(cp) {\n if (cp === $.RIGHT_SQUARE_BRACKET) {\n this.state = State.CDATA_SECTION_END;\n }\n else {\n this._emitChars(']');\n this.state = State.CDATA_SECTION;\n this._stateCdataSection(cp);\n }\n }\n // CDATA section end state\n //------------------------------------------------------------------\n _stateCdataSectionEnd(cp) {\n switch (cp) {\n case $.GREATER_THAN_SIGN: {\n this.state = State.DATA;\n break;\n }\n case $.RIGHT_SQUARE_BRACKET: {\n this._emitChars(']');\n break;\n }\n default: {\n this._emitChars(']]');\n this.state = State.CDATA_SECTION;\n this._stateCdataSection(cp);\n }\n }\n }\n // Character reference state\n //------------------------------------------------------------------\n _stateCharacterReference(cp) {\n if (cp === $.NUMBER_SIGN) {\n this.state = State.NUMERIC_CHARACTER_REFERENCE;\n }\n else if (isAsciiAlphaNumeric(cp)) {\n this.state = State.NAMED_CHARACTER_REFERENCE;\n this._stateNamedCharacterReference(cp);\n }\n else {\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this._reconsumeInState(this.returnState, cp);\n }\n }\n // Named character reference state\n //------------------------------------------------------------------\n _stateNamedCharacterReference(cp) {\n const matchResult = this._matchNamedCharacterReference(cp);\n //NOTE: Matching can be abrupted by hibernation. In that case, match\n //results are no longer valid and we will need to start over.\n if (this._ensureHibernation()) {\n // Stay in the state, try again.\n }\n else if (matchResult) {\n for (let i = 0; i < matchResult.length; i++) {\n this._flushCodePointConsumedAsCharacterReference(matchResult[i]);\n }\n this.state = this.returnState;\n }\n else {\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this.state = State.AMBIGUOUS_AMPERSAND;\n }\n }\n // Ambiguos ampersand state\n //------------------------------------------------------------------\n _stateAmbiguousAmpersand(cp) {\n if (isAsciiAlphaNumeric(cp)) {\n this._flushCodePointConsumedAsCharacterReference(cp);\n }\n else {\n if (cp === $.SEMICOLON) {\n this._err(ERR.unknownNamedCharacterReference);\n }\n this._reconsumeInState(this.returnState, cp);\n }\n }\n // Numeric character reference state\n //------------------------------------------------------------------\n _stateNumericCharacterReference(cp) {\n this.charRefCode = 0;\n if (cp === $.LATIN_SMALL_X || cp === $.LATIN_CAPITAL_X) {\n this.state = State.HEXADEMICAL_CHARACTER_REFERENCE_START;\n }\n // Inlined decimal character reference start state\n else if (isAsciiDigit(cp)) {\n this.state = State.DECIMAL_CHARACTER_REFERENCE;\n this._stateDecimalCharacterReference(cp);\n }\n else {\n this._err(ERR.absenceOfDigitsInNumericCharacterReference);\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this._flushCodePointConsumedAsCharacterReference($.NUMBER_SIGN);\n this._reconsumeInState(this.returnState, cp);\n }\n }\n // Hexademical character reference start state\n //------------------------------------------------------------------\n _stateHexademicalCharacterReferenceStart(cp) {\n if (isAsciiHexDigit(cp)) {\n this.state = State.HEXADEMICAL_CHARACTER_REFERENCE;\n this._stateHexademicalCharacterReference(cp);\n }\n else {\n this._err(ERR.absenceOfDigitsInNumericCharacterReference);\n this._flushCodePointConsumedAsCharacterReference($.AMPERSAND);\n this._flushCodePointConsumedAsCharacterReference($.NUMBER_SIGN);\n this._unconsume(2);\n this.state = this.returnState;\n }\n }\n // Hexademical character reference state\n //------------------------------------------------------------------\n _stateHexademicalCharacterReference(cp) {\n if (isAsciiUpperHexDigit(cp)) {\n this.charRefCode = this.charRefCode * 16 + cp - 0x37;\n }\n else if (isAsciiLowerHexDigit(cp)) {\n this.charRefCode = this.charRefCode * 16 + cp - 0x57;\n }\n else if (isAsciiDigit(cp)) {\n this.charRefCode = this.charRefCode * 16 + cp - 0x30;\n }\n else if (cp === $.SEMICOLON) {\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n }\n else {\n this._err(ERR.missingSemicolonAfterCharacterReference);\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n this._stateNumericCharacterReferenceEnd(cp);\n }\n }\n // Decimal character reference state\n //------------------------------------------------------------------\n _stateDecimalCharacterReference(cp) {\n if (isAsciiDigit(cp)) {\n this.charRefCode = this.charRefCode * 10 + cp - 0x30;\n }\n else if (cp === $.SEMICOLON) {\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n }\n else {\n this._err(ERR.missingSemicolonAfterCharacterReference);\n this.state = State.NUMERIC_CHARACTER_REFERENCE_END;\n this._stateNumericCharacterReferenceEnd(cp);\n }\n }\n // Numeric character reference end state\n //------------------------------------------------------------------\n _stateNumericCharacterReferenceEnd(cp) {\n if (this.charRefCode === $.NULL) {\n this._err(ERR.nullCharacterReference);\n this.charRefCode = $.REPLACEMENT_CHARACTER;\n }\n else if (this.charRefCode > 1114111) {\n this._err(ERR.characterReferenceOutsideUnicodeRange);\n this.charRefCode = $.REPLACEMENT_CHARACTER;\n }\n else if (isSurrogate(this.charRefCode)) {\n this._err(ERR.surrogateCharacterReference);\n this.charRefCode = $.REPLACEMENT_CHARACTER;\n }\n else if (isUndefinedCodePoint(this.charRefCode)) {\n this._err(ERR.noncharacterCharacterReference);\n }\n else if (isControlCodePoint(this.charRefCode) || this.charRefCode === $.CARRIAGE_RETURN) {\n this._err(ERR.controlCharacterReference);\n const replacement = C1_CONTROLS_REFERENCE_REPLACEMENTS.get(this.charRefCode);\n if (replacement !== undefined) {\n this.charRefCode = replacement;\n }\n }\n this._flushCodePointConsumedAsCharacterReference(this.charRefCode);\n this._reconsumeInState(this.returnState, cp);\n }\n}\n//# sourceMappingURL=index.js.map","import { TAG_ID as $, NS, isNumberedHeader } from '../common/html.js';\n//Element utils\nconst IMPLICIT_END_TAG_REQUIRED = new Set([$.DD, $.DT, $.LI, $.OPTGROUP, $.OPTION, $.P, $.RB, $.RP, $.RT, $.RTC]);\nconst IMPLICIT_END_TAG_REQUIRED_THOROUGHLY = new Set([\n ...IMPLICIT_END_TAG_REQUIRED,\n $.CAPTION,\n $.COLGROUP,\n $.TBODY,\n $.TD,\n $.TFOOT,\n $.TH,\n $.THEAD,\n $.TR,\n]);\nconst SCOPING_ELEMENT_NS = new Map([\n [$.APPLET, NS.HTML],\n [$.CAPTION, NS.HTML],\n [$.HTML, NS.HTML],\n [$.MARQUEE, NS.HTML],\n [$.OBJECT, NS.HTML],\n [$.TABLE, NS.HTML],\n [$.TD, NS.HTML],\n [$.TEMPLATE, NS.HTML],\n [$.TH, NS.HTML],\n [$.ANNOTATION_XML, NS.MATHML],\n [$.MI, NS.MATHML],\n [$.MN, NS.MATHML],\n [$.MO, NS.MATHML],\n [$.MS, NS.MATHML],\n [$.MTEXT, NS.MATHML],\n [$.DESC, NS.SVG],\n [$.FOREIGN_OBJECT, NS.SVG],\n [$.TITLE, NS.SVG],\n]);\nconst NAMED_HEADERS = [$.H1, $.H2, $.H3, $.H4, $.H5, $.H6];\nconst TABLE_ROW_CONTEXT = [$.TR, $.TEMPLATE, $.HTML];\nconst TABLE_BODY_CONTEXT = [$.TBODY, $.TFOOT, $.THEAD, $.TEMPLATE, $.HTML];\nconst TABLE_CONTEXT = [$.TABLE, $.TEMPLATE, $.HTML];\nconst TABLE_CELLS = [$.TD, $.TH];\n//Stack of open elements\nexport class OpenElementStack {\n get currentTmplContentOrNode() {\n return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current;\n }\n constructor(document, treeAdapter, handler) {\n this.treeAdapter = treeAdapter;\n this.handler = handler;\n this.items = [];\n this.tagIDs = [];\n this.stackTop = -1;\n this.tmplCount = 0;\n this.currentTagId = $.UNKNOWN;\n this.current = document;\n }\n //Index of element\n _indexOf(element) {\n return this.items.lastIndexOf(element, this.stackTop);\n }\n //Update current element\n _isInTemplate() {\n return this.currentTagId === $.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === NS.HTML;\n }\n _updateCurrentElement() {\n this.current = this.items[this.stackTop];\n this.currentTagId = this.tagIDs[this.stackTop];\n }\n //Mutations\n push(element, tagID) {\n this.stackTop++;\n this.items[this.stackTop] = element;\n this.current = element;\n this.tagIDs[this.stackTop] = tagID;\n this.currentTagId = tagID;\n if (this._isInTemplate()) {\n this.tmplCount++;\n }\n this.handler.onItemPush(element, tagID, true);\n }\n pop() {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount--;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, true);\n }\n replace(oldElement, newElement) {\n const idx = this._indexOf(oldElement);\n this.items[idx] = newElement;\n if (idx === this.stackTop) {\n this.current = newElement;\n }\n }\n insertAfter(referenceElement, newElement, newElementID) {\n const insertionIdx = this._indexOf(referenceElement) + 1;\n this.items.splice(insertionIdx, 0, newElement);\n this.tagIDs.splice(insertionIdx, 0, newElementID);\n this.stackTop++;\n if (insertionIdx === this.stackTop) {\n this._updateCurrentElement();\n }\n this.handler.onItemPush(this.current, this.currentTagId, insertionIdx === this.stackTop);\n }\n popUntilTagNamePopped(tagName) {\n let targetIdx = this.stackTop + 1;\n do {\n targetIdx = this.tagIDs.lastIndexOf(tagName, targetIdx - 1);\n } while (targetIdx > 0 && this.treeAdapter.getNamespaceURI(this.items[targetIdx]) !== NS.HTML);\n this.shortenToLength(targetIdx < 0 ? 0 : targetIdx);\n }\n shortenToLength(idx) {\n while (this.stackTop >= idx) {\n const popped = this.current;\n if (this.tmplCount > 0 && this._isInTemplate()) {\n this.tmplCount -= 1;\n }\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(popped, this.stackTop < idx);\n }\n }\n popUntilElementPopped(element) {\n const idx = this._indexOf(element);\n this.shortenToLength(idx < 0 ? 0 : idx);\n }\n popUntilPopped(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(idx < 0 ? 0 : idx);\n }\n popUntilNumberedHeaderPopped() {\n this.popUntilPopped(NAMED_HEADERS, NS.HTML);\n }\n popUntilTableCellPopped() {\n this.popUntilPopped(TABLE_CELLS, NS.HTML);\n }\n popAllUpToHtmlElement() {\n //NOTE: here we assume that the root element is always first in the open element stack, so\n //we perform this fast stack clean up.\n this.tmplCount = 0;\n this.shortenToLength(1);\n }\n _indexOfTagNames(tagNames, namespace) {\n for (let i = this.stackTop; i >= 0; i--) {\n if (tagNames.includes(this.tagIDs[i]) && this.treeAdapter.getNamespaceURI(this.items[i]) === namespace) {\n return i;\n }\n }\n return -1;\n }\n clearBackTo(tagNames, targetNS) {\n const idx = this._indexOfTagNames(tagNames, targetNS);\n this.shortenToLength(idx + 1);\n }\n clearBackToTableContext() {\n this.clearBackTo(TABLE_CONTEXT, NS.HTML);\n }\n clearBackToTableBodyContext() {\n this.clearBackTo(TABLE_BODY_CONTEXT, NS.HTML);\n }\n clearBackToTableRowContext() {\n this.clearBackTo(TABLE_ROW_CONTEXT, NS.HTML);\n }\n remove(element) {\n const idx = this._indexOf(element);\n if (idx >= 0) {\n if (idx === this.stackTop) {\n this.pop();\n }\n else {\n this.items.splice(idx, 1);\n this.tagIDs.splice(idx, 1);\n this.stackTop--;\n this._updateCurrentElement();\n this.handler.onItemPop(element, false);\n }\n }\n }\n //Search\n tryPeekProperlyNestedBodyElement() {\n //Properly nested element (should be second element in stack).\n return this.stackTop >= 1 && this.tagIDs[1] === $.BODY ? this.items[1] : null;\n }\n contains(element) {\n return this._indexOf(element) > -1;\n }\n getCommonAncestor(element) {\n const elementIdx = this._indexOf(element) - 1;\n return elementIdx >= 0 ? this.items[elementIdx] : null;\n }\n isRootHtmlElementCurrent() {\n return this.stackTop === 0 && this.tagIDs[0] === $.HTML;\n }\n //Element in scope\n hasInScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (tn === tagName && ns === NS.HTML) {\n return true;\n }\n if (SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasNumberedHeaderInScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (isNumberedHeader(tn) && ns === NS.HTML) {\n return true;\n }\n if (SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasInListItemScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (tn === tagName && ns === NS.HTML) {\n return true;\n }\n if (((tn === $.UL || tn === $.OL) && ns === NS.HTML) || SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasInButtonScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (tn === tagName && ns === NS.HTML) {\n return true;\n }\n if ((tn === $.BUTTON && ns === NS.HTML) || SCOPING_ELEMENT_NS.get(tn) === ns) {\n return false;\n }\n }\n return true;\n }\n hasInTableScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (ns !== NS.HTML) {\n continue;\n }\n if (tn === tagName) {\n return true;\n }\n if (tn === $.TABLE || tn === $.TEMPLATE || tn === $.HTML) {\n return false;\n }\n }\n return true;\n }\n hasTableBodyContextInTableScope() {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (ns !== NS.HTML) {\n continue;\n }\n if (tn === $.TBODY || tn === $.THEAD || tn === $.TFOOT) {\n return true;\n }\n if (tn === $.TABLE || tn === $.HTML) {\n return false;\n }\n }\n return true;\n }\n hasInSelectScope(tagName) {\n for (let i = this.stackTop; i >= 0; i--) {\n const tn = this.tagIDs[i];\n const ns = this.treeAdapter.getNamespaceURI(this.items[i]);\n if (ns !== NS.HTML) {\n continue;\n }\n if (tn === tagName) {\n return true;\n }\n if (tn !== $.OPTION && tn !== $.OPTGROUP) {\n return false;\n }\n }\n return true;\n }\n //Implied end tags\n generateImpliedEndTags() {\n while (IMPLICIT_END_TAG_REQUIRED.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsThoroughly() {\n while (IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n generateImpliedEndTagsWithExclusion(exclusionId) {\n while (this.currentTagId !== exclusionId && IMPLICIT_END_TAG_REQUIRED_THOROUGHLY.has(this.currentTagId)) {\n this.pop();\n }\n }\n}\n//# sourceMappingURL=open-element-stack.js.map","//Const\nconst NOAH_ARK_CAPACITY = 3;\nexport var EntryType;\n(function (EntryType) {\n EntryType[EntryType[\"Marker\"] = 0] = \"Marker\";\n EntryType[EntryType[\"Element\"] = 1] = \"Element\";\n})(EntryType = EntryType || (EntryType = {}));\nconst MARKER = { type: EntryType.Marker };\n//List of formatting elements\nexport class FormattingElementList {\n constructor(treeAdapter) {\n this.treeAdapter = treeAdapter;\n this.entries = [];\n this.bookmark = null;\n }\n //Noah Ark's condition\n //OPTIMIZATION: at first we try to find possible candidates for exclusion using\n //lightweight heuristics without thorough attributes check.\n _getNoahArkConditionCandidates(newElement, neAttrs) {\n const candidates = [];\n const neAttrsLength = neAttrs.length;\n const neTagName = this.treeAdapter.getTagName(newElement);\n const neNamespaceURI = this.treeAdapter.getNamespaceURI(newElement);\n for (let i = 0; i < this.entries.length; i++) {\n const entry = this.entries[i];\n if (entry.type === EntryType.Marker) {\n break;\n }\n const { element } = entry;\n if (this.treeAdapter.getTagName(element) === neTagName &&\n this.treeAdapter.getNamespaceURI(element) === neNamespaceURI) {\n const elementAttrs = this.treeAdapter.getAttrList(element);\n if (elementAttrs.length === neAttrsLength) {\n candidates.push({ idx: i, attrs: elementAttrs });\n }\n }\n }\n return candidates;\n }\n _ensureNoahArkCondition(newElement) {\n if (this.entries.length < NOAH_ARK_CAPACITY)\n return;\n const neAttrs = this.treeAdapter.getAttrList(newElement);\n const candidates = this._getNoahArkConditionCandidates(newElement, neAttrs);\n if (candidates.length < NOAH_ARK_CAPACITY)\n return;\n //NOTE: build attrs map for the new element, so we can perform fast lookups\n const neAttrsMap = new Map(neAttrs.map((neAttr) => [neAttr.name, neAttr.value]));\n let validCandidates = 0;\n //NOTE: remove bottommost candidates, until Noah's Ark condition will not be met\n for (let i = 0; i < candidates.length; i++) {\n const candidate = candidates[i];\n // We know that `candidate.attrs.length === neAttrs.length`\n if (candidate.attrs.every((cAttr) => neAttrsMap.get(cAttr.name) === cAttr.value)) {\n validCandidates += 1;\n if (validCandidates >= NOAH_ARK_CAPACITY) {\n this.entries.splice(candidate.idx, 1);\n }\n }\n }\n }\n //Mutations\n insertMarker() {\n this.entries.unshift(MARKER);\n }\n pushElement(element, token) {\n this._ensureNoahArkCondition(element);\n this.entries.unshift({\n type: EntryType.Element,\n element,\n token,\n });\n }\n insertElementAfterBookmark(element, token) {\n const bookmarkIdx = this.entries.indexOf(this.bookmark);\n this.entries.splice(bookmarkIdx, 0, {\n type: EntryType.Element,\n element,\n token,\n });\n }\n removeEntry(entry) {\n const entryIndex = this.entries.indexOf(entry);\n if (entryIndex >= 0) {\n this.entries.splice(entryIndex, 1);\n }\n }\n /**\n * Clears the list of formatting elements up to the last marker.\n *\n * @see https://html.spec.whatwg.org/multipage/parsing.html#clear-the-list-of-active-formatting-elements-up-to-the-last-marker\n */\n clearToLastMarker() {\n const markerIdx = this.entries.indexOf(MARKER);\n if (markerIdx >= 0) {\n this.entries.splice(0, markerIdx + 1);\n }\n else {\n this.entries.length = 0;\n }\n }\n //Search\n getElementEntryInScopeWithTagName(tagName) {\n const entry = this.entries.find((entry) => entry.type === EntryType.Marker || this.treeAdapter.getTagName(entry.element) === tagName);\n return entry && entry.type === EntryType.Element ? entry : null;\n }\n getElementEntry(element) {\n return this.entries.find((entry) => entry.type === EntryType.Element && entry.element === element);\n }\n}\n//# sourceMappingURL=formatting-element-list.js.map","import { DOCUMENT_MODE } from '../common/html.js';\nfunction createTextNode(value) {\n return {\n nodeName: '#text',\n value,\n parentNode: null,\n };\n}\nexport const defaultTreeAdapter = {\n //Node construction\n createDocument() {\n return {\n nodeName: '#document',\n mode: DOCUMENT_MODE.NO_QUIRKS,\n childNodes: [],\n };\n },\n createDocumentFragment() {\n return {\n nodeName: '#document-fragment',\n childNodes: [],\n };\n },\n createElement(tagName, namespaceURI, attrs) {\n return {\n nodeName: tagName,\n tagName,\n attrs,\n namespaceURI,\n childNodes: [],\n parentNode: null,\n };\n },\n createCommentNode(data) {\n return {\n nodeName: '#comment',\n data,\n parentNode: null,\n };\n },\n //Tree mutation\n appendChild(parentNode, newNode) {\n parentNode.childNodes.push(newNode);\n newNode.parentNode = parentNode;\n },\n insertBefore(parentNode, newNode, referenceNode) {\n const insertionIdx = parentNode.childNodes.indexOf(referenceNode);\n parentNode.childNodes.splice(insertionIdx, 0, newNode);\n newNode.parentNode = parentNode;\n },\n setTemplateContent(templateElement, contentElement) {\n templateElement.content = contentElement;\n },\n getTemplateContent(templateElement) {\n return templateElement.content;\n },\n setDocumentType(document, name, publicId, systemId) {\n const doctypeNode = document.childNodes.find((node) => node.nodeName === '#documentType');\n if (doctypeNode) {\n doctypeNode.name = name;\n doctypeNode.publicId = publicId;\n doctypeNode.systemId = systemId;\n }\n else {\n const node = {\n nodeName: '#documentType',\n name,\n publicId,\n systemId,\n parentNode: null,\n };\n defaultTreeAdapter.appendChild(document, node);\n }\n },\n setDocumentMode(document, mode) {\n document.mode = mode;\n },\n getDocumentMode(document) {\n return document.mode;\n },\n detachNode(node) {\n if (node.parentNode) {\n const idx = node.parentNode.childNodes.indexOf(node);\n node.parentNode.childNodes.splice(idx, 1);\n node.parentNode = null;\n }\n },\n insertText(parentNode, text) {\n if (parentNode.childNodes.length > 0) {\n const prevNode = parentNode.childNodes[parentNode.childNodes.length - 1];\n if (defaultTreeAdapter.isTextNode(prevNode)) {\n prevNode.value += text;\n return;\n }\n }\n defaultTreeAdapter.appendChild(parentNode, createTextNode(text));\n },\n insertTextBefore(parentNode, text, referenceNode) {\n const prevNode = parentNode.childNodes[parentNode.childNodes.indexOf(referenceNode) - 1];\n if (prevNode && defaultTreeAdapter.isTextNode(prevNode)) {\n prevNode.value += text;\n }\n else {\n defaultTreeAdapter.insertBefore(parentNode, createTextNode(text), referenceNode);\n }\n },\n adoptAttributes(recipient, attrs) {\n const recipientAttrsMap = new Set(recipient.attrs.map((attr) => attr.name));\n for (let j = 0; j < attrs.length; j++) {\n if (!recipientAttrsMap.has(attrs[j].name)) {\n recipient.attrs.push(attrs[j]);\n }\n }\n },\n //Tree traversing\n getFirstChild(node) {\n return node.childNodes[0];\n },\n getChildNodes(node) {\n return node.childNodes;\n },\n getParentNode(node) {\n return node.parentNode;\n },\n getAttrList(element) {\n return element.attrs;\n },\n //Node data\n getTagName(element) {\n return element.tagName;\n },\n getNamespaceURI(element) {\n return element.namespaceURI;\n },\n getTextNodeContent(textNode) {\n return textNode.value;\n },\n getCommentNodeContent(commentNode) {\n return commentNode.data;\n },\n getDocumentTypeNodeName(doctypeNode) {\n return doctypeNode.name;\n },\n getDocumentTypeNodePublicId(doctypeNode) {\n return doctypeNode.publicId;\n },\n getDocumentTypeNodeSystemId(doctypeNode) {\n return doctypeNode.systemId;\n },\n //Node types\n isTextNode(node) {\n return node.nodeName === '#text';\n },\n isCommentNode(node) {\n return node.nodeName === '#comment';\n },\n isDocumentTypeNode(node) {\n return node.nodeName === '#documentType';\n },\n isElementNode(node) {\n return Object.prototype.hasOwnProperty.call(node, 'tagName');\n },\n // Source code location\n setNodeSourceCodeLocation(node, location) {\n node.sourceCodeLocation = location;\n },\n getNodeSourceCodeLocation(node) {\n return node.sourceCodeLocation;\n },\n updateNodeSourceCodeLocation(node, endLocation) {\n node.sourceCodeLocation = { ...node.sourceCodeLocation, ...endLocation };\n },\n};\n//# sourceMappingURL=default.js.map","import { DOCUMENT_MODE } from './html.js';\n//Const\nconst VALID_DOCTYPE_NAME = 'html';\nconst VALID_SYSTEM_ID = 'about:legacy-compat';\nconst QUIRKS_MODE_SYSTEM_ID = 'http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd';\nconst QUIRKS_MODE_PUBLIC_ID_PREFIXES = [\n '+//silmaril//dtd html pro v0r11 19970101//',\n '-//as//dtd html 3.0 aswedit + extensions//',\n '-//advasoft ltd//dtd html 3.0 aswedit + extensions//',\n '-//ietf//dtd html 2.0 level 1//',\n '-//ietf//dtd html 2.0 level 2//',\n '-//ietf//dtd html 2.0 strict level 1//',\n '-//ietf//dtd html 2.0 strict level 2//',\n '-//ietf//dtd html 2.0 strict//',\n '-//ietf//dtd html 2.0//',\n '-//ietf//dtd html 2.1e//',\n '-//ietf//dtd html 3.0//',\n '-//ietf//dtd html 3.2 final//',\n '-//ietf//dtd html 3.2//',\n '-//ietf//dtd html 3//',\n '-//ietf//dtd html level 0//',\n '-//ietf//dtd html level 1//',\n '-//ietf//dtd html level 2//',\n '-//ietf//dtd html level 3//',\n '-//ietf//dtd html strict level 0//',\n '-//ietf//dtd html strict level 1//',\n '-//ietf//dtd html strict level 2//',\n '-//ietf//dtd html strict level 3//',\n '-//ietf//dtd html strict//',\n '-//ietf//dtd html//',\n '-//metrius//dtd metrius presentational//',\n '-//microsoft//dtd internet explorer 2.0 html strict//',\n '-//microsoft//dtd internet explorer 2.0 html//',\n '-//microsoft//dtd internet explorer 2.0 tables//',\n '-//microsoft//dtd internet explorer 3.0 html strict//',\n '-//microsoft//dtd internet explorer 3.0 html//',\n '-//microsoft//dtd internet explorer 3.0 tables//',\n '-//netscape comm. corp.//dtd html//',\n '-//netscape comm. corp.//dtd strict html//',\n \"-//o'reilly and associates//dtd html 2.0//\",\n \"-//o'reilly and associates//dtd html extended 1.0//\",\n \"-//o'reilly and associates//dtd html extended relaxed 1.0//\",\n '-//sq//dtd html 2.0 hotmetal + extensions//',\n '-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//',\n '-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//',\n '-//spyglass//dtd html 2.0 extended//',\n '-//sun microsystems corp.//dtd hotjava html//',\n '-//sun microsystems corp.//dtd hotjava strict html//',\n '-//w3c//dtd html 3 1995-03-24//',\n '-//w3c//dtd html 3.2 draft//',\n '-//w3c//dtd html 3.2 final//',\n '-//w3c//dtd html 3.2//',\n '-//w3c//dtd html 3.2s draft//',\n '-//w3c//dtd html 4.0 frameset//',\n '-//w3c//dtd html 4.0 transitional//',\n '-//w3c//dtd html experimental 19960712//',\n '-//w3c//dtd html experimental 970421//',\n '-//w3c//dtd w3 html//',\n '-//w3o//dtd w3 html 3.0//',\n '-//webtechs//dtd mozilla html 2.0//',\n '-//webtechs//dtd mozilla html//',\n];\nconst QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES = [\n ...QUIRKS_MODE_PUBLIC_ID_PREFIXES,\n '-//w3c//dtd html 4.01 frameset//',\n '-//w3c//dtd html 4.01 transitional//',\n];\nconst QUIRKS_MODE_PUBLIC_IDS = new Set([\n '-//w3o//dtd w3 html strict 3.0//en//',\n '-/w3c/dtd html 4.0 transitional/en',\n 'html',\n]);\nconst LIMITED_QUIRKS_PUBLIC_ID_PREFIXES = ['-//w3c//dtd xhtml 1.0 frameset//', '-//w3c//dtd xhtml 1.0 transitional//'];\nconst LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES = [\n ...LIMITED_QUIRKS_PUBLIC_ID_PREFIXES,\n '-//w3c//dtd html 4.01 frameset//',\n '-//w3c//dtd html 4.01 transitional//',\n];\n//Utils\nfunction hasPrefix(publicId, prefixes) {\n return prefixes.some((prefix) => publicId.startsWith(prefix));\n}\n//API\nexport function isConforming(token) {\n return (token.name === VALID_DOCTYPE_NAME &&\n token.publicId === null &&\n (token.systemId === null || token.systemId === VALID_SYSTEM_ID));\n}\nexport function getDocumentMode(token) {\n if (token.name !== VALID_DOCTYPE_NAME) {\n return DOCUMENT_MODE.QUIRKS;\n }\n const { systemId } = token;\n if (systemId && systemId.toLowerCase() === QUIRKS_MODE_SYSTEM_ID) {\n return DOCUMENT_MODE.QUIRKS;\n }\n let { publicId } = token;\n if (publicId !== null) {\n publicId = publicId.toLowerCase();\n if (QUIRKS_MODE_PUBLIC_IDS.has(publicId)) {\n return DOCUMENT_MODE.QUIRKS;\n }\n let prefixes = systemId === null ? QUIRKS_MODE_NO_SYSTEM_ID_PUBLIC_ID_PREFIXES : QUIRKS_MODE_PUBLIC_ID_PREFIXES;\n if (hasPrefix(publicId, prefixes)) {\n return DOCUMENT_MODE.QUIRKS;\n }\n prefixes =\n systemId === null ? LIMITED_QUIRKS_PUBLIC_ID_PREFIXES : LIMITED_QUIRKS_WITH_SYSTEM_ID_PUBLIC_ID_PREFIXES;\n if (hasPrefix(publicId, prefixes)) {\n return DOCUMENT_MODE.LIMITED_QUIRKS;\n }\n }\n return DOCUMENT_MODE.NO_QUIRKS;\n}\n//# sourceMappingURL=doctype.js.map","import { TAG_ID as $, NS, ATTRS, getTagID } from './html.js';\n//MIME types\nconst MIME_TYPES = {\n TEXT_HTML: 'text/html',\n APPLICATION_XML: 'application/xhtml+xml',\n};\n//Attributes\nconst DEFINITION_URL_ATTR = 'definitionurl';\nconst ADJUSTED_DEFINITION_URL_ATTR = 'definitionURL';\nconst SVG_ATTRS_ADJUSTMENT_MAP = new Map([\n 'attributeName',\n 'attributeType',\n 'baseFrequency',\n 'baseProfile',\n 'calcMode',\n 'clipPathUnits',\n 'diffuseConstant',\n 'edgeMode',\n 'filterUnits',\n 'glyphRef',\n 'gradientTransform',\n 'gradientUnits',\n 'kernelMatrix',\n 'kernelUnitLength',\n 'keyPoints',\n 'keySplines',\n 'keyTimes',\n 'lengthAdjust',\n 'limitingConeAngle',\n 'markerHeight',\n 'markerUnits',\n 'markerWidth',\n 'maskContentUnits',\n 'maskUnits',\n 'numOctaves',\n 'pathLength',\n 'patternContentUnits',\n 'patternTransform',\n 'patternUnits',\n 'pointsAtX',\n 'pointsAtY',\n 'pointsAtZ',\n 'preserveAlpha',\n 'preserveAspectRatio',\n 'primitiveUnits',\n 'refX',\n 'refY',\n 'repeatCount',\n 'repeatDur',\n 'requiredExtensions',\n 'requiredFeatures',\n 'specularConstant',\n 'specularExponent',\n 'spreadMethod',\n 'startOffset',\n 'stdDeviation',\n 'stitchTiles',\n 'surfaceScale',\n 'systemLanguage',\n 'tableValues',\n 'targetX',\n 'targetY',\n 'textLength',\n 'viewBox',\n 'viewTarget',\n 'xChannelSelector',\n 'yChannelSelector',\n 'zoomAndPan',\n].map((attr) => [attr.toLowerCase(), attr]));\nconst XML_ATTRS_ADJUSTMENT_MAP = new Map([\n ['xlink:actuate', { prefix: 'xlink', name: 'actuate', namespace: NS.XLINK }],\n ['xlink:arcrole', { prefix: 'xlink', name: 'arcrole', namespace: NS.XLINK }],\n ['xlink:href', { prefix: 'xlink', name: 'href', namespace: NS.XLINK }],\n ['xlink:role', { prefix: 'xlink', name: 'role', namespace: NS.XLINK }],\n ['xlink:show', { prefix: 'xlink', name: 'show', namespace: NS.XLINK }],\n ['xlink:title', { prefix: 'xlink', name: 'title', namespace: NS.XLINK }],\n ['xlink:type', { prefix: 'xlink', name: 'type', namespace: NS.XLINK }],\n ['xml:base', { prefix: 'xml', name: 'base', namespace: NS.XML }],\n ['xml:lang', { prefix: 'xml', name: 'lang', namespace: NS.XML }],\n ['xml:space', { prefix: 'xml', name: 'space', namespace: NS.XML }],\n ['xmlns', { prefix: '', name: 'xmlns', namespace: NS.XMLNS }],\n ['xmlns:xlink', { prefix: 'xmlns', name: 'xlink', namespace: NS.XMLNS }],\n]);\n//SVG tag names adjustment map\nexport const SVG_TAG_NAMES_ADJUSTMENT_MAP = new Map([\n 'altGlyph',\n 'altGlyphDef',\n 'altGlyphItem',\n 'animateColor',\n 'animateMotion',\n 'animateTransform',\n 'clipPath',\n 'feBlend',\n 'feColorMatrix',\n 'feComponentTransfer',\n 'feComposite',\n 'feConvolveMatrix',\n 'feDiffuseLighting',\n 'feDisplacementMap',\n 'feDistantLight',\n 'feFlood',\n 'feFuncA',\n 'feFuncB',\n 'feFuncG',\n 'feFuncR',\n 'feGaussianBlur',\n 'feImage',\n 'feMerge',\n 'feMergeNode',\n 'feMorphology',\n 'feOffset',\n 'fePointLight',\n 'feSpecularLighting',\n 'feSpotLight',\n 'feTile',\n 'feTurbulence',\n 'foreignObject',\n 'glyphRef',\n 'linearGradient',\n 'radialGradient',\n 'textPath',\n].map((tn) => [tn.toLowerCase(), tn]));\n//Tags that causes exit from foreign content\nconst EXITS_FOREIGN_CONTENT = new Set([\n $.B,\n $.BIG,\n $.BLOCKQUOTE,\n $.BODY,\n $.BR,\n $.CENTER,\n $.CODE,\n $.DD,\n $.DIV,\n $.DL,\n $.DT,\n $.EM,\n $.EMBED,\n $.H1,\n $.H2,\n $.H3,\n $.H4,\n $.H5,\n $.H6,\n $.HEAD,\n $.HR,\n $.I,\n $.IMG,\n $.LI,\n $.LISTING,\n $.MENU,\n $.META,\n $.NOBR,\n $.OL,\n $.P,\n $.PRE,\n $.RUBY,\n $.S,\n $.SMALL,\n $.SPAN,\n $.STRONG,\n $.STRIKE,\n $.SUB,\n $.SUP,\n $.TABLE,\n $.TT,\n $.U,\n $.UL,\n $.VAR,\n]);\n//Check exit from foreign content\nexport function causesExit(startTagToken) {\n const tn = startTagToken.tagID;\n const isFontWithAttrs = tn === $.FONT &&\n startTagToken.attrs.some(({ name }) => name === ATTRS.COLOR || name === ATTRS.SIZE || name === ATTRS.FACE);\n return isFontWithAttrs || EXITS_FOREIGN_CONTENT.has(tn);\n}\n//Token adjustments\nexport function adjustTokenMathMLAttrs(token) {\n for (let i = 0; i < token.attrs.length; i++) {\n if (token.attrs[i].name === DEFINITION_URL_ATTR) {\n token.attrs[i].name = ADJUSTED_DEFINITION_URL_ATTR;\n break;\n }\n }\n}\nexport function adjustTokenSVGAttrs(token) {\n for (let i = 0; i < token.attrs.length; i++) {\n const adjustedAttrName = SVG_ATTRS_ADJUSTMENT_MAP.get(token.attrs[i].name);\n if (adjustedAttrName != null) {\n token.attrs[i].name = adjustedAttrName;\n }\n }\n}\nexport function adjustTokenXMLAttrs(token) {\n for (let i = 0; i < token.attrs.length; i++) {\n const adjustedAttrEntry = XML_ATTRS_ADJUSTMENT_MAP.get(token.attrs[i].name);\n if (adjustedAttrEntry) {\n token.attrs[i].prefix = adjustedAttrEntry.prefix;\n token.attrs[i].name = adjustedAttrEntry.name;\n token.attrs[i].namespace = adjustedAttrEntry.namespace;\n }\n }\n}\nexport function adjustTokenSVGTagName(token) {\n const adjustedTagName = SVG_TAG_NAMES_ADJUSTMENT_MAP.get(token.tagName);\n if (adjustedTagName != null) {\n token.tagName = adjustedTagName;\n token.tagID = getTagID(token.tagName);\n }\n}\n//Integration points\nfunction isMathMLTextIntegrationPoint(tn, ns) {\n return ns === NS.MATHML && (tn === $.MI || tn === $.MO || tn === $.MN || tn === $.MS || tn === $.MTEXT);\n}\nfunction isHtmlIntegrationPoint(tn, ns, attrs) {\n if (ns === NS.MATHML && tn === $.ANNOTATION_XML) {\n for (let i = 0; i < attrs.length; i++) {\n if (attrs[i].name === ATTRS.ENCODING) {\n const value = attrs[i].value.toLowerCase();\n return value === MIME_TYPES.TEXT_HTML || value === MIME_TYPES.APPLICATION_XML;\n }\n }\n }\n return ns === NS.SVG && (tn === $.FOREIGN_OBJECT || tn === $.DESC || tn === $.TITLE);\n}\nexport function isIntegrationPoint(tn, ns, attrs, foreignNS) {\n return (((!foreignNS || foreignNS === NS.HTML) && isHtmlIntegrationPoint(tn, ns, attrs)) ||\n ((!foreignNS || foreignNS === NS.MATHML) && isMathMLTextIntegrationPoint(tn, ns)));\n}\n//# sourceMappingURL=foreign-content.js.map","import { Tokenizer, TokenizerMode } from '../tokenizer/index.js';\nimport { OpenElementStack } from './open-element-stack.js';\nimport { FormattingElementList, EntryType } from './formatting-element-list.js';\nimport { defaultTreeAdapter } from '../tree-adapters/default.js';\nimport * as doctype from '../common/doctype.js';\nimport * as foreignContent from '../common/foreign-content.js';\nimport { ERR } from '../common/error-codes.js';\nimport * as unicode from '../common/unicode.js';\nimport { TAG_ID as $, TAG_NAMES as TN, NS, ATTRS, SPECIAL_ELEMENTS, DOCUMENT_MODE, isNumberedHeader, getTagID, } from '../common/html.js';\nimport { TokenType, getTokenAttr, } from '../common/token.js';\n//Misc constants\nconst HIDDEN_INPUT_TYPE = 'hidden';\n//Adoption agency loops iteration count\nconst AA_OUTER_LOOP_ITER = 8;\nconst AA_INNER_LOOP_ITER = 3;\n//Insertion modes\nvar InsertionMode;\n(function (InsertionMode) {\n InsertionMode[InsertionMode[\"INITIAL\"] = 0] = \"INITIAL\";\n InsertionMode[InsertionMode[\"BEFORE_HTML\"] = 1] = \"BEFORE_HTML\";\n InsertionMode[InsertionMode[\"BEFORE_HEAD\"] = 2] = \"BEFORE_HEAD\";\n InsertionMode[InsertionMode[\"IN_HEAD\"] = 3] = \"IN_HEAD\";\n InsertionMode[InsertionMode[\"IN_HEAD_NO_SCRIPT\"] = 4] = \"IN_HEAD_NO_SCRIPT\";\n InsertionMode[InsertionMode[\"AFTER_HEAD\"] = 5] = \"AFTER_HEAD\";\n InsertionMode[InsertionMode[\"IN_BODY\"] = 6] = \"IN_BODY\";\n InsertionMode[InsertionMode[\"TEXT\"] = 7] = \"TEXT\";\n InsertionMode[InsertionMode[\"IN_TABLE\"] = 8] = \"IN_TABLE\";\n InsertionMode[InsertionMode[\"IN_TABLE_TEXT\"] = 9] = \"IN_TABLE_TEXT\";\n InsertionMode[InsertionMode[\"IN_CAPTION\"] = 10] = \"IN_CAPTION\";\n InsertionMode[InsertionMode[\"IN_COLUMN_GROUP\"] = 11] = \"IN_COLUMN_GROUP\";\n InsertionMode[InsertionMode[\"IN_TABLE_BODY\"] = 12] = \"IN_TABLE_BODY\";\n InsertionMode[InsertionMode[\"IN_ROW\"] = 13] = \"IN_ROW\";\n InsertionMode[InsertionMode[\"IN_CELL\"] = 14] = \"IN_CELL\";\n InsertionMode[InsertionMode[\"IN_SELECT\"] = 15] = \"IN_SELECT\";\n InsertionMode[InsertionMode[\"IN_SELECT_IN_TABLE\"] = 16] = \"IN_SELECT_IN_TABLE\";\n InsertionMode[InsertionMode[\"IN_TEMPLATE\"] = 17] = \"IN_TEMPLATE\";\n InsertionMode[InsertionMode[\"AFTER_BODY\"] = 18] = \"AFTER_BODY\";\n InsertionMode[InsertionMode[\"IN_FRAMESET\"] = 19] = \"IN_FRAMESET\";\n InsertionMode[InsertionMode[\"AFTER_FRAMESET\"] = 20] = \"AFTER_FRAMESET\";\n InsertionMode[InsertionMode[\"AFTER_AFTER_BODY\"] = 21] = \"AFTER_AFTER_BODY\";\n InsertionMode[InsertionMode[\"AFTER_AFTER_FRAMESET\"] = 22] = \"AFTER_AFTER_FRAMESET\";\n})(InsertionMode || (InsertionMode = {}));\nconst BASE_LOC = {\n startLine: -1,\n startCol: -1,\n startOffset: -1,\n endLine: -1,\n endCol: -1,\n endOffset: -1,\n};\nconst TABLE_STRUCTURE_TAGS = new Set([$.TABLE, $.TBODY, $.TFOOT, $.THEAD, $.TR]);\nconst defaultParserOptions = {\n scriptingEnabled: true,\n sourceCodeLocationInfo: false,\n treeAdapter: defaultTreeAdapter,\n onParseError: null,\n};\n//Parser\nexport class Parser {\n constructor(options, document, fragmentContext = null, scriptHandler = null) {\n this.fragmentContext = fragmentContext;\n this.scriptHandler = scriptHandler;\n this.currentToken = null;\n this.stopped = false;\n this.insertionMode = InsertionMode.INITIAL;\n this.originalInsertionMode = InsertionMode.INITIAL;\n this.headElement = null;\n this.formElement = null;\n /** Indicates that the current node is not an element in the HTML namespace */\n this.currentNotInHTML = false;\n /**\n * The template insertion mode stack is maintained from the left.\n * Ie. the topmost element will always have index 0.\n */\n this.tmplInsertionModeStack = [];\n this.pendingCharacterTokens = [];\n this.hasNonWhitespacePendingCharacterToken = false;\n this.framesetOk = true;\n this.skipNextNewLine = false;\n this.fosterParentingEnabled = false;\n this.options = {\n ...defaultParserOptions,\n ...options,\n };\n this.treeAdapter = this.options.treeAdapter;\n this.onParseError = this.options.onParseError;\n // Always enable location info if we report parse errors.\n if (this.onParseError) {\n this.options.sourceCodeLocationInfo = true;\n }\n this.document = document !== null && document !== void 0 ? document : this.treeAdapter.createDocument();\n this.tokenizer = new Tokenizer(this.options, this);\n this.activeFormattingElements = new FormattingElementList(this.treeAdapter);\n this.fragmentContextID = fragmentContext ? getTagID(this.treeAdapter.getTagName(fragmentContext)) : $.UNKNOWN;\n this._setContextModes(fragmentContext !== null && fragmentContext !== void 0 ? fragmentContext : this.document, this.fragmentContextID);\n this.openElements = new OpenElementStack(this.document, this.treeAdapter, this);\n }\n // API\n static parse(html, options) {\n const parser = new this(options);\n parser.tokenizer.write(html, true);\n return parser.document;\n }\n static getFragmentParser(fragmentContext, options) {\n const opts = {\n ...defaultParserOptions,\n ...options,\n };\n //NOTE: use a