@stlite/desktop 0.24.0 → 0.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/dump_artifacts.js +3 -3
- package/build/asset-manifest.json +150 -82
- package/build/index.html +1 -1
- package/build/static/css/3683.60b7ada4.chunk.css +1 -0
- package/build/static/css/4320.1edfa457.chunk.css +1 -0
- package/build/static/css/main.b43a24ba.css +1 -0
- package/build/static/js/1367.9dcea0bc.chunk.js +9 -0
- package/build/static/js/142.85e6074f.chunk.js +1 -0
- package/build/static/js/1579.10c95eae.chunk.js +1 -0
- package/build/static/js/1839.410079bf.chunk.js +1 -0
- package/build/static/js/2116.2e449b06.chunk.js +1 -0
- package/build/static/js/2458.cfb63c88.chunk.js +1 -0
- package/build/static/js/2523.7919ada5.chunk.js +5 -0
- package/build/static/js/2632.3ed5d578.chunk.js +1 -0
- package/build/static/js/277.fbace0b9.chunk.js +1 -0
- package/build/static/js/2909.783348bb.chunk.js +1 -0
- package/build/static/js/2961.e91b0c14.chunk.js +2 -0
- package/build/static/js/2961.e91b0c14.chunk.js.LICENSE.txt +45 -0
- package/build/static/js/3392.d73d4efc.chunk.js +1 -0
- package/build/static/js/3683.68da2452.chunk.js +1 -0
- package/build/static/js/3975.5538132d.chunk.js +1 -0
- package/build/static/js/3977.8a9ac9d7.chunk.js +1 -0
- package/build/static/js/4210.66c14600.chunk.js +1 -0
- package/build/static/js/4320.8fa60786.chunk.js +2 -0
- package/build/static/js/{7.e8b702b0.chunk.js.LICENSE.txt → 4320.8fa60786.chunk.js.LICENSE.txt} +2 -0
- package/build/static/js/4514.ff4d47b7.chunk.js +5 -0
- package/build/static/js/458.895bbb73.chunk.js +1 -0
- package/build/static/js/464.8a875fdd.chunk.js +1 -0
- package/build/static/js/4994.8f0118ec.chunk.js +1 -0
- package/build/static/js/5070.1d0d565e.chunk.js +1 -0
- package/build/static/js/5608.314b94e4.chunk.js +1 -0
- package/build/static/js/5678.b7f865a0.chunk.js +1 -0
- package/build/static/js/5752.d5d30939.chunk.js +1 -0
- package/build/static/js/5865.90a40692.chunk.js +17 -0
- package/build/static/js/6097.56c4b02a.chunk.js +1 -0
- package/build/static/js/6242.5e6f91ac.chunk.js +1 -0
- package/build/static/js/6391.6cdac98a.chunk.js +1 -0
- package/build/static/js/6422.f69a61a8.chunk.js +1 -0
- package/build/static/js/6449.702355ee.chunk.js +1 -0
- package/build/static/js/6668.8cb69721.chunk.js +2 -0
- package/build/static/js/{9.d99eed24.chunk.js.LICENSE.txt → 6668.8cb69721.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/6679.d28318d1.chunk.js +2 -0
- package/build/static/js/{18.b32ef4e7.chunk.js.LICENSE.txt → 6679.d28318d1.chunk.js.LICENSE.txt} +9 -9
- package/build/static/js/6865.b0803b6b.chunk.js +1 -0
- package/build/static/js/6928.228563da.chunk.js +2 -0
- package/build/static/js/{2.90589c59.chunk.js.LICENSE.txt → 6928.228563da.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/7135.57023452.chunk.js +1 -0
- package/build/static/js/7496.37614377.chunk.js +1 -0
- package/build/static/js/761.e16e6486.chunk.js +1 -0
- package/build/static/js/7698.095351a0.chunk.js +1 -0
- package/build/static/js/7842.a98fbb15.chunk.js +1 -0
- package/build/static/js/7858.fa281cb7.chunk.js +5 -0
- package/build/static/js/7937.a3bc5cdb.chunk.js +1 -0
- package/build/static/js/8355.7352ad1b.chunk.js +1 -0
- package/build/static/js/8461.87a9a578.chunk.js +1 -0
- package/build/static/js/8565.f27e3917.chunk.js +1 -0
- package/build/static/js/8910.e6dda87e.chunk.js +2 -0
- package/build/static/js/{15.b28e3a9f.chunk.js.LICENSE.txt → 8910.e6dda87e.chunk.js.LICENSE.txt} +0 -0
- package/build/static/js/91.f23bbeac.chunk.js +1 -0
- package/build/static/js/9462.6616e921.chunk.js +1 -0
- package/build/static/js/9551.e50bee9b.chunk.js +1 -0
- package/build/static/js/9733.aa290ea2.chunk.js +2 -0
- package/build/static/js/9733.aa290ea2.chunk.js.LICENSE.txt +10 -0
- package/build/static/js/9735.0e70600f.chunk.js +1 -0
- package/build/static/js/main.91a73418.js +28 -0
- package/build/static/js/{6.9c8c6dae.chunk.js.LICENSE.txt → main.91a73418.js.LICENSE.txt} +11 -66
- package/build/static/media/{KaTeX_AMS-Regular.73ea273a.woff2 → KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2} +0 -0
- package/build/static/media/{KaTeX_AMS-Regular.853be924.ttf → KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf} +0 -0
- package/build/static/media/{KaTeX_AMS-Regular.d562e886.woff → KaTeX_AMS-Regular.d562e886c52f12660a41.woff} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Bold.7489a2fb.ttf → KaTeX_Caligraphic-Bold.7489a2fbfb9bfe704420.ttf} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Bold.a1abf90d.woff2 → KaTeX_Caligraphic-Bold.a1abf90dfd72792a577a.woff2} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Bold.d757c535.woff → KaTeX_Caligraphic-Bold.d757c535a2e5902f1325.woff} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Regular.7e873d38.ttf → KaTeX_Caligraphic-Regular.7e873d3833eb108a0758.ttf} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Regular.d6484fce.woff2 → KaTeX_Caligraphic-Regular.d6484fce1ef428d5bd94.woff2} +0 -0
- package/build/static/media/{KaTeX_Caligraphic-Regular.db074fa2.woff → KaTeX_Caligraphic-Regular.db074fa22cf224af93d7.woff} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Bold.354501ba.woff → KaTeX_Fraktur-Bold.354501bac435c3264834.woff} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Bold.4c761b37.ttf → KaTeX_Fraktur-Bold.4c761b3711973ab04edf.ttf} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Bold.931d67ea.woff2 → KaTeX_Fraktur-Bold.931d67ea207ab37ee693.woff2} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Regular.172d3529.woff2 → KaTeX_Fraktur-Regular.172d3529b26f8cedef6b.woff2} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Regular.6fdf0ac5.woff → KaTeX_Fraktur-Regular.6fdf0ac577be0ba82a4c.woff} +0 -0
- package/build/static/media/{KaTeX_Fraktur-Regular.ed305b54.ttf → KaTeX_Fraktur-Regular.ed305b5434865e06ffde.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-Bold.0c3b8929.woff → KaTeX_Main-Bold.0c3b8929d377c0e9b2f3.woff} +0 -0
- package/build/static/media/{KaTeX_Main-Bold.39890742.woff2 → KaTeX_Main-Bold.39890742bc957b368704.woff2} +0 -0
- package/build/static/media/{KaTeX_Main-Bold.8169508b.ttf → KaTeX_Main-Bold.8169508bf58f8bd92ad8.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-BoldItalic.20f389c4.woff2 → KaTeX_Main-BoldItalic.20f389c4120be058d80a.woff2} +0 -0
- package/build/static/media/{KaTeX_Main-BoldItalic.428978dc.woff → KaTeX_Main-BoldItalic.428978dc7837d46de091.woff} +0 -0
- package/build/static/media/{KaTeX_Main-BoldItalic.828abcb2.ttf → KaTeX_Main-BoldItalic.828abcb200061cffbaae.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-Italic.fa675e5e.ttf → KaTeX_Main-Italic.fa675e5e4bec9eb250b6.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-Italic.fd947498.woff → KaTeX_Main-Italic.fd947498bc16392e76c2.woff} +0 -0
- package/build/static/media/{KaTeX_Main-Italic.fe2176f7.woff2 → KaTeX_Main-Italic.fe2176f79edaa716e621.woff2} +0 -0
- package/build/static/media/{KaTeX_Main-Regular.4f35fbcc.woff → KaTeX_Main-Regular.4f35fbcc9ee8614c2bcc.woff} +0 -0
- package/build/static/media/{KaTeX_Main-Regular.9eba1d77.ttf → KaTeX_Main-Regular.9eba1d77abcf2aa6e94e.ttf} +0 -0
- package/build/static/media/{KaTeX_Main-Regular.f650f111.woff2 → KaTeX_Main-Regular.f650f111a3b890d116f1.woff2} +0 -0
- package/build/static/media/{KaTeX_Math-BoldItalic.3f07ed67.woff → KaTeX_Math-BoldItalic.3f07ed67f06c720120ce.woff} +0 -0
- package/build/static/media/{KaTeX_Math-BoldItalic.bf2d440b.ttf → KaTeX_Math-BoldItalic.bf2d440b3a42ea78a998.ttf} +0 -0
- package/build/static/media/{KaTeX_Math-BoldItalic.dcbcbd93.woff2 → KaTeX_Math-BoldItalic.dcbcbd93bac0470b462d.woff2} +0 -0
- package/build/static/media/{KaTeX_Math-Italic.6d3d25f4.woff2 → KaTeX_Math-Italic.6d3d25f4820d0da8f01f.woff2} +0 -0
- package/build/static/media/{KaTeX_Math-Italic.8a5f9363.ttf → KaTeX_Math-Italic.8a5f936332e8028c7278.ttf} +0 -0
- package/build/static/media/{KaTeX_Math-Italic.96759856.woff → KaTeX_Math-Italic.96759856b4e70f3a8338.woff} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Bold.5b49f499.ttf → KaTeX_SansSerif-Bold.5b49f4993ae22d7975b4.ttf} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Bold.95591a92.woff2 → KaTeX_SansSerif-Bold.95591a929f0d32aa282a.woff2} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Bold.b9cd458a.woff → KaTeX_SansSerif-Bold.b9cd458ac6d5889ff9c3.woff} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Italic.7d393d38.woff2 → KaTeX_SansSerif-Italic.7d393d382f3e7fb1c637.woff2} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Italic.8d593cfa.woff → KaTeX_SansSerif-Italic.8d593cfaa96238d5e2f8.woff} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Italic.b257a18c.ttf → KaTeX_SansSerif-Italic.b257a18c016f37ee4543.ttf} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Regular.02271ec5.woff → KaTeX_SansSerif-Regular.02271ec5cb9f5b4588ac.woff} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Regular.2f7bc363.ttf → KaTeX_SansSerif-Regular.2f7bc363fc5424ebda59.ttf} +0 -0
- package/build/static/media/{KaTeX_SansSerif-Regular.cd5e231e.woff2 → KaTeX_SansSerif-Regular.cd5e231e0cc53b2cb2c0.woff2} +0 -0
- package/build/static/media/{KaTeX_Script-Regular.073b3402.woff → KaTeX_Script-Regular.073b3402d036714b4370.woff} +0 -0
- package/build/static/media/{KaTeX_Script-Regular.c81d1b2a.woff2 → KaTeX_Script-Regular.c81d1b2a4b75d3eded60.woff2} +0 -0
- package/build/static/media/{KaTeX_Script-Regular.fc9ba524.ttf → KaTeX_Script-Regular.fc9ba5249878cd8f8d88.ttf} +0 -0
- package/build/static/media/{KaTeX_Size1-Regular.0108e89c.woff → KaTeX_Size1-Regular.0108e89c9003e8c14ea3.woff} +0 -0
- package/build/static/media/{KaTeX_Size1-Regular.6de7d4b5.ttf → KaTeX_Size1-Regular.6de7d4b539221a49e9e2.ttf} +0 -0
- package/build/static/media/{KaTeX_Size1-Regular.6eec866c.woff2 → KaTeX_Size1-Regular.6eec866c69313624be60.woff2} +0 -0
- package/build/static/media/{KaTeX_Size2-Regular.2960900c.woff2 → KaTeX_Size2-Regular.2960900c4f271311eb36.woff2} +0 -0
- package/build/static/media/{KaTeX_Size2-Regular.3a99e70a.woff → KaTeX_Size2-Regular.3a99e70aee4076660d38.woff} +0 -0
- package/build/static/media/{KaTeX_Size2-Regular.57f5c183.ttf → KaTeX_Size2-Regular.57f5c1837853986ea1db.ttf} +0 -0
- package/build/static/media/{KaTeX_Size3-Regular.7947224e.woff → KaTeX_Size3-Regular.7947224e8a9914fa332b.woff} +0 -0
- package/build/static/media/{KaTeX_Size3-Regular.8d6b6822.ttf → KaTeX_Size3-Regular.8d6b6822586eea3d3b20.ttf} +0 -0
- package/build/static/media/{KaTeX_Size3-Regular.e1951519.woff2 → KaTeX_Size3-Regular.e1951519f6f0596f7356.woff2} +0 -0
- package/build/static/media/{KaTeX_Size4-Regular.4ad7c7e8.ttf → KaTeX_Size4-Regular.4ad7c7e8bb8d10a34bb7.ttf} +0 -0
- package/build/static/media/{KaTeX_Size4-Regular.aeffd802.woff → KaTeX_Size4-Regular.aeffd8025cba3647f1a6.woff} +0 -0
- package/build/static/media/{KaTeX_Size4-Regular.e418bf25.woff2 → KaTeX_Size4-Regular.e418bf257af1052628d8.woff2} +0 -0
- package/build/static/media/{KaTeX_Typewriter-Regular.4c6b94fd.woff → KaTeX_Typewriter-Regular.4c6b94fd1d07f8beff7c.woff} +0 -0
- package/build/static/media/{KaTeX_Typewriter-Regular.c295e7f7.woff2 → KaTeX_Typewriter-Regular.c295e7f71970f03c0549.woff2} +0 -0
- package/build/static/media/{KaTeX_Typewriter-Regular.c5c02d76.ttf → KaTeX_Typewriter-Regular.c5c02d763c89380dcb4e.ttf} +0 -0
- package/build/static/media/{SourceCodePro-Bold.52ac8f30.ttf → SourceCodePro-Bold.52ac8f3034507f1d9e53.ttf} +0 -0
- package/build/static/media/{SourceCodePro-BoldItalic.05b61807.ttf → SourceCodePro-BoldItalic.05b618077343fbbd92b7.ttf} +0 -0
- package/build/static/media/{SourceCodePro-Italic.454577c2.ttf → SourceCodePro-Italic.454577c22304619db035.ttf} +0 -0
- package/build/static/media/{SourceCodePro-Regular.70cc7ff2.ttf → SourceCodePro-Regular.70cc7ff27245e82ad414.ttf} +0 -0
- package/build/static/media/{SourceCodePro-SemiBold.4d4c53c0.ttf → SourceCodePro-SemiBold.4d4c53c06b5bebed1cf3.ttf} +0 -0
- package/build/static/media/{SourceCodePro-SemiBoldItalic.2f5470bc.ttf → SourceCodePro-SemiBoldItalic.2f5470bc8b2cd27a5c4b.ttf} +0 -0
- package/build/static/media/{SourceSansPro-Bold.12e6acd2.ttf → SourceSansPro-Bold.12e6acd2589d00c9d0aa.ttf} +0 -0
- package/build/static/media/{SourceSansPro-BoldItalic.7c4f9b00.ttf → SourceSansPro-BoldItalic.7c4f9b00300acb82f0f6.ttf} +0 -0
- package/build/static/media/{SourceSansPro-Italic.3c01996d.ttf → SourceSansPro-Italic.3c01996d38a55834ddcb.ttf} +0 -0
- package/build/static/media/{SourceSansPro-Regular.efa76f83.ttf → SourceSansPro-Regular.efa76f8326aa5cee3bdd.ttf} +0 -0
- package/build/static/media/{SourceSansPro-SemiBold.43cc81b4.ttf → SourceSansPro-SemiBold.43cc81b496222dc9ce3c.ttf} +0 -0
- package/build/static/media/{SourceSansPro-SemiBoldItalic.c30987e2.ttf → SourceSansPro-SemiBoldItalic.c30987e28fc21daba1ae.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-Bold.bada4fe1.ttf → SourceSerifPro-Bold.bada4fe17051c992f22f.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-BoldItalic.9f9b1eb2.ttf → SourceSerifPro-BoldItalic.9f9b1eb2d82e26bb2f4a.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-Italic.90931d6a.ttf → SourceSerifPro-Italic.90931d6ad253cd8de8e4.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-Regular.6f22301c.ttf → SourceSerifPro-Regular.6f22301c30206f4bad62.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-SemiBold.b27cb117.ttf → SourceSerifPro-SemiBold.b27cb117978bab2c80a3.ttf} +0 -0
- package/build/static/media/{SourceSerifPro-SemiBoldItalic.1266f2c1.ttf → SourceSerifPro-SemiBoldItalic.1266f2c17835efdcff7b.ttf} +0 -0
- package/build/static/media/{balloon-0.0e6e96ec.png → balloon-0.0e6e96ece0ea0719d6b6.png} +0 -0
- package/build/static/media/{balloon-1.a503c271.png → balloon-1.a503c271109e9a0fdd2d.png} +0 -0
- package/build/static/media/{balloon-2.872250f3.png → balloon-2.872250f3bf3a8965d655.png} +0 -0
- package/build/static/media/{balloon-3.e772fafd.png → balloon-3.e772fafd3bfc55fb439b.png} +0 -0
- package/build/static/media/{balloon-4.1a741624.png → balloon-4.1a74162473d81c9cb9ee.png} +0 -0
- package/build/static/media/{balloon-5.edb75c74.png → balloon-5.edb75c74c54165b29856.png} +0 -0
- package/build/static/media/{fireworks.0906f02e.gif → fireworks.0906f02ea43f1018a6d2.gif} +0 -0
- package/build/static/media/{flake-0.beded754.png → flake-0.beded754e8024c73d9d2.png} +0 -0
- package/build/static/media/{flake-1.8077dc15.png → flake-1.8077dc154e0bf900aa73.png} +0 -0
- package/build/static/media/{flake-2.e3f07d06.png → flake-2.e3f07d06933dd0e84c24.png} +0 -0
- package/build/static/media/{icon_running.de1119da.gif → icon_running.de1119daebe465fa5263.gif} +0 -0
- package/build/static/media/index.09797f5e19b3c0491904.cjs +1 -0
- package/build/static/media/index.1e3d64b0fcde879f0060.cjs +1 -0
- package/build/static/media/index.294a0edb7af7d19b781b.cjs +1 -0
- package/build/static/media/index.85823dd8655ed4119d0c.cjs +1 -0
- package/build/static/media/index.b599194a631d76b49328.cjs +1 -0
- package/package.json +12 -11
- package/build/static/css/6.69790b96.chunk.css +0 -1
- package/build/static/css/7.3d0f8b8b.chunk.css +0 -1
- package/build/static/css/9.f71f4f0d.chunk.css +0 -1
- package/build/static/css/main.7bc75681.chunk.css +0 -1
- package/build/static/js/0.1470a040.chunk.js +0 -1
- package/build/static/js/1.75536554.chunk.js +0 -1
- package/build/static/js/10.e9d08ce6.chunk.js +0 -1
- package/build/static/js/11.245d6c33.chunk.js +0 -9
- package/build/static/js/12.a31ecc8c.chunk.js +0 -17
- package/build/static/js/13.6a2e32ae.chunk.js +0 -1
- package/build/static/js/14.1655f4db.chunk.js +0 -1
- package/build/static/js/15.b28e3a9f.chunk.js +0 -2
- package/build/static/js/16.4002de21.chunk.js +0 -1
- package/build/static/js/17.f01379ea.chunk.js +0 -1
- package/build/static/js/18.b32ef4e7.chunk.js +0 -2
- package/build/static/js/19.757ce6cd.chunk.js +0 -1
- package/build/static/js/2.90589c59.chunk.js +0 -2
- package/build/static/js/20.06333e7b.chunk.js +0 -1
- package/build/static/js/21.3fab05ae.chunk.js +0 -5
- package/build/static/js/22.a1775ac4.chunk.js +0 -1
- package/build/static/js/23.fd21f92a.chunk.js +0 -1
- package/build/static/js/24.50f424ba.chunk.js +0 -5
- package/build/static/js/25.3855f89c.chunk.js +0 -1
- package/build/static/js/26.5f51a172.chunk.js +0 -1
- package/build/static/js/27.f075da8f.chunk.js +0 -1
- package/build/static/js/28.e76203d9.chunk.js +0 -5
- package/build/static/js/29.12291bff.chunk.js +0 -1
- package/build/static/js/3.8dacc9e7.chunk.js +0 -1
- package/build/static/js/30.9780f1e6.chunk.js +0 -1
- package/build/static/js/31.622e28f6.chunk.js +0 -1
- package/build/static/js/32.44bddfd2.chunk.js +0 -1
- package/build/static/js/33.e3480cb9.chunk.js +0 -1
- package/build/static/js/34.4e913e44.chunk.js +0 -1
- package/build/static/js/35.d8c3a90e.chunk.js +0 -1
- package/build/static/js/36.d7336b9b.chunk.js +0 -1
- package/build/static/js/37.b06f1532.chunk.js +0 -1
- package/build/static/js/38.2303d913.chunk.js +0 -1
- package/build/static/js/39.9cb4bae4.chunk.js +0 -1
- package/build/static/js/40.b8f90b9a.chunk.js +0 -1
- package/build/static/js/41.bb169dbf.chunk.js +0 -1
- package/build/static/js/42.e8639ee2.chunk.js +0 -1
- package/build/static/js/43.b5e07f4c.chunk.js +0 -1
- package/build/static/js/44.0206e0dc.chunk.js +0 -1
- package/build/static/js/45.db4595ee.chunk.js +0 -1
- package/build/static/js/46.f534e5a2.chunk.js +0 -1
- package/build/static/js/47.89ae0b12.chunk.js +0 -1
- package/build/static/js/48.86b245a1.chunk.js +0 -1
- package/build/static/js/49.1db19a37.chunk.js +0 -1
- package/build/static/js/6.9c8c6dae.chunk.js +0 -2
- package/build/static/js/7.e8b702b0.chunk.js +0 -2
- package/build/static/js/8.348fb43a.chunk.js +0 -2
- package/build/static/js/8.348fb43a.chunk.js.LICENSE.txt +0 -1
- package/build/static/js/9.d99eed24.chunk.js +0 -2
- package/build/static/js/main.31e91b88.chunk.js +0 -27
- package/build/static/js/runtime-main.e5a1f36a.js +0 -1
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 9.d99eed24.chunk.js.LICENSE.txt */
|
|
2
|
-
(this["webpackJsonp@stlite/desktop"]=this["webpackJsonp@stlite/desktop"]||[]).push([[9],{1241:function(e,t,n){var r=n(1276)();e.exports=r},1242:function(e,t,n){var r=n(1279),i=n(103),o=n(249),l=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,s=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return NaN;if(i(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=i(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=a.test(e);return n||s.test(e)?u(e.slice(2),n?2:8):l.test(e)?NaN:+e}},1276:function(e,t,n){var r=n(1277),i=n(479),o=n(1278);e.exports=function(e){return function(t,n,l){return l&&"number"!=typeof l&&i(t,n,l)&&(n=l=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),l=void 0===l?t<n?1:-1:o(l),r(t,n,l,e)}}},1277:function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,i,o){for(var l=-1,a=r(n((t-e)/(i||1)),0),s=Array(a);a--;)s[o?a:++l]=e,e+=i;return s}},1278:function(e,t,n){var r=n(1242),i=1/0;e.exports=function(e){return e?(e=r(e))===i||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},1279:function(e,t,n){var r=n(1280),i=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(i,""):e}},1280:function(e,t){var n=/\s/;e.exports=function(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}},1281:function(e,t,n){var r=n(1512),i=n(1242);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=i(n))===n?n:0),void 0!==t&&(t=(t=i(t))===t?t:0),r(i(e),t,n)}},1339:function(e,t,n){var r=n(1340);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},1340:function(e,t,n){var r=n(1341),i=n(1342),o=n(1343);e.exports=function(e,t,n){return t===t?o(e,t,n):r(e,i,n)}},1341:function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},1342:function(e,t){e.exports=function(e){return e!==e}},1343:function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},1344:function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},1345:function(e,t,n){var r=n(103),i=n(1520),o=n(1242),l=Math.max,a=Math.min;e.exports=function(e,t,n){var s,u,c,d,h,f,p=0,g=!1,v=!1,m=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function w(t){var n=s,r=u;return s=u=void 0,p=t,d=e.apply(r,n)}function y(e){return p=e,h=setTimeout(D,t),g?w(e):d}function b(e){var n=e-f;return void 0===f||n>=t||n<0||v&&e-p>=c}function D(){var e=i();if(b(e))return x(e);h=setTimeout(D,function(e){var n=t-(e-f);return v?a(n,c-(e-p)):n}(e))}function x(e){return h=void 0,m&&s?w(e):(s=u=void 0,d)}function C(){var e=i(),n=b(e);if(s=arguments,u=this,f=e,n){if(void 0===h)return y(f);if(v)return clearTimeout(h),h=setTimeout(D,t),w(f)}return void 0===h&&(h=setTimeout(D,t)),d}return t=o(t)||0,r(n)&&(g=!!n.leading,c=(v="maxWait"in n)?l(o(n.maxWait)||0,t):c,m="trailing"in n?!!n.trailing:m),C.cancel=function(){void 0!==h&&clearTimeout(h),p=0,s=f=u=h=void 0},C.flush=function(){return void 0===h?d:x(i())},C}},1346:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e,t,n){var r=0===e?e:e+t;return"translate3d"+("("+("horizontal"===n?[r,0,0]:[0,r,0]).join(",")+")")}},1385:function(e,t,n){"use strict";n.d(t,"a",(function(){return ue})),n.d(t,"b",(function(){return _n})),n.d(t,"c",(function(){return $}));var r=n(1396),i=n(0),o=n.n(i),l=n(1281),a=n.n(l),s=n(1513),u=n.n(s),c=n(1517),d=n.n(c),h=n(1241),f=n.n(h),p=n(1345),g=n.n(p),v=n(49),m=n(1521),w=n.n(m),y=n(1523),b=n.n(y),D=new Map,x=new Map,C=new Map;function k(e,t,n,r){var i,o;let l=x.get(n);if(r&&void 0!==l&&l.count>2e4){let r=C.get(n);if(void 0===r&&(r=function(e,t){var n;let r=new Map,i=0;for(let s of"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890,.-+=?"){let t=e.measureText(s).width;r.set(s,t),i+=t}let o=i/r.size,l=(t/o+3)/4,a=r.keys();for(let s of a)r.set(s,(null!=(n=r.get(s))?n:o)*l);return r}(e,l.size),C.set(n,r)),l.count>5e5){let e=0;for(let n of t)e+=null!=(i=r.get(n))?i:l.size;return 1.01*e}let o=e.measureText(t);return function(e,t,n,r,i){var o,l,a;let s=0,u={};for(let d of e)s+=null!=(o=n.get(d))?o:i,u[d]=(null!=(l=u[d])?l:0)+1;let c=t-s;for(let d of Object.keys(u)){let e=u[d],t=null!=(a=n.get(d))?a:i,o=t+c*(t*e/s)*r/e;n.set(d,o)}}(t,o.width,r,Math.max(.05,1-l.count/2e5),l.size),x.set(n,{count:l.count+t.length,size:l.size}),o.width}let a=e.measureText(t),s=a.width/t.length;if((null!=(o=null==l?void 0:l.count)?o:0)>2e4)return a.width;if(void 0===l)x.set(n,{count:t.length,size:s});else{let e=s-l.size,r=t.length/(l.count+t.length),i=l.size+e*r;x.set(n,{count:l.count+t.length,size:i})}return a.width}function E(e,t,n,r,i,o,l,a){if(t.length<=1)return t.length;if(i<n)return-1;let s=Math.floor(n/i*o),u=k(e,t.slice(0,Math.max(0,s)),r,l),c=null==a?void 0:a(t);if(u!==n)if(u<n){for(;u<n;)s++,u=k(e,t.slice(0,Math.max(0,s)),r,l);s--}else for(;u>n;){let n=void 0!==c?0:t.lastIndexOf(" ",s-1);n>0?s=n:s--,u=k(e,t.slice(0,Math.max(0,s)),r,l)}if(" "!==t[s]){let e=0;if(void 0===c)e=t.lastIndexOf(" ",s);else for(let t of c){if(t>s)break;e=t}e>0&&(s=e)}return s}var S=n(1524),F=n.n(S),A=n(1528),M=n(1539);function R(e="This should not happen"){throw new Error(e)}function I(e,t="Assertion failed"){if(!e)return R(t)}function T(e){return R("Hell froze over")}var H=Object.prototype.hasOwnProperty;function O(e,t){let n,r;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&O(e[r],t[r]););return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(H.call(e,n)&&++r&&!H.call(t,n))return!1;if(!(n in t)||!O(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}var B=class extends i.PureComponent{constructor(){super(...arguments),this.wrapperRef=i.createRef(),this.clickOutside=e=>{if(null!==this.wrapperRef.current&&!this.wrapperRef.current.contains(e.target)){let t=e.target;for(;null!==t;){if(t.classList.contains("click-outside-ignore"))return;t=t.parentElement}this.props.onClickOutside()}}}componentDidMount(){document.addEventListener("mousedown",this.clickOutside,!0),document.addEventListener("contextmenu",this.clickOutside,!0)}componentWillUnmount(){document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("contextmenu",this.clickOutside)}render(){const{onClickOutside:e,...t}=this.props;return i.createElement("div",{...t,ref:this.wrapperRef},this.props.children)}};function z(e){var t,n;return{"--gdg-accent-color":e.accentColor,"--gdg-accent-fg":e.accentFg,"--gdg-accent-light":e.accentLight,"--gdg-text-dark":e.textDark,"--gdg-text-medium":e.textMedium,"--gdg-text-light":e.textLight,"--gdg-text-bubble":e.textBubble,"--gdg-bg-icon-header":e.bgIconHeader,"--gdg-fg-icon-header":e.fgIconHeader,"--gdg-text-header":e.textHeader,"--gdg-text-group-header":null!=(t=e.textGroupHeader)?t:e.textHeader,"--gdg-text-header-selected":e.textHeaderSelected,"--gdg-bg-cell":e.bgCell,"--gdg-bg-cell-medium":e.bgCellMedium,"--gdg-bg-header":e.bgHeader,"--gdg-bg-header-has-focus":e.bgHeaderHasFocus,"--gdg-bg-header-hovered":e.bgHeaderHovered,"--gdg-bg-bubble":e.bgBubble,"--gdg-bg-bubble-selected":e.bgBubbleSelected,"--gdg-bg-search-result":e.bgSearchResult,"--gdg-border-color":e.borderColor,"--gdg-horizontal-border-color":null!=(n=e.horizontalBorderColor)?n:e.borderColor,"--gdg-drilldown-border":e.drilldownBorder,"--gdg-link-color":e.linkColor,"--gdg-cell-horizontal-padding":`${e.cellHorizontalPadding}px`,"--gdg-cell-vertical-padding":`${e.cellVerticalPadding}px`,"--gdg-header-font-style":e.headerFontStyle,"--gdg-base-font-style":e.baseFontStyle,"--gdg-font-family":e.fontFamily,"--gdg-editor-font-size":e.editorFontSize}}var P={accentColor:"#4F5DFF",accentFg:"#FFFFFF",accentLight:"rgba(62, 116, 253, 0.1)",textDark:"#313139",textMedium:"#737383",textLight:"#B2B2C0",textBubble:"#313139",bgIconHeader:"#737383",fgIconHeader:"#FFFFFF",textHeader:"#313139",textGroupHeader:"#313139BB",textHeaderSelected:"#FFFFFF",bgCell:"#FFFFFF",bgCellMedium:"#FAFAFB",bgHeader:"#F7F7F8",bgHeaderHasFocus:"#E9E9EB",bgHeaderHovered:"#EFEFF1",bgBubble:"#EDEDF3",bgBubbleSelected:"#FFFFFF",bgSearchResult:"#fff9e3",borderColor:"rgba(115, 116, 131, 0.16)",drilldownBorder:"rgba(0, 0, 0, 0)",linkColor:"#4F5DFF",cellHorizontalPadding:8,cellVerticalPadding:3,headerIconSize:18,headerFontStyle:"600 13px",baseFontStyle:"13px",fontFamily:"Inter, Roboto, -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Ubuntu, noto, arial, sans-serif",editorFontSize:"13px",lineHeight:1.4};function L(){return P}var _=o.a.createContext(P);var $,N,W,j,X=null,K=void 0,Y="header",U="group-header",V="out-of-bounds";(N=$||($={})).Uri="uri",N.Text="text",N.Image="image",N.RowID="row-id",N.Number="number",N.Bubble="bubble",N.Boolean="boolean",N.Loading="loading",N.Markdown="markdown",N.Drilldown="drilldown",N.Protected="protected",N.Custom="custom",(j=W||(W={})).HeaderRowID="headerRowID",j.HeaderCode="headerCode",j.HeaderNumber="headerNumber",j.HeaderString="headerString",j.HeaderBoolean="headerBoolean",j.HeaderAudioUri="headerAudioUri",j.HeaderVideoUri="headerVideoUri",j.HeaderEmoji="headerEmoji",j.HeaderImage="headerImage",j.HeaderUri="headerUri",j.HeaderPhone="headerPhone",j.HeaderMarkdown="headerMarkdown",j.HeaderDate="headerDate",j.HeaderTime="headerTime",j.HeaderEmail="headerEmail",j.HeaderReference="headerReference",j.HeaderIfThenElse="headerIfThenElse",j.HeaderSingleValue="headerSingleValue",j.HeaderLookup="headerLookup",j.HeaderTextTemplate="headerTextTemplate",j.HeaderMath="headerMath",j.HeaderRollup="headerRollup",j.HeaderJoinStrings="headerJoinStrings",j.HeaderSplitString="headerSplitString",j.HeaderGeoDistance="headerGeoDistance",j.HeaderArray="headerArray",j.RowOwnerOverlay="rowOwnerOverlay",j.ProtectedColumnOverlay="protectedColumnOverlay";var G,q,Z,Q="___gdg_header_cell_",J="___gdg_header_cell_checked",ee="___gdg_header_cell_unchecked";function te(e){return"width"in e&&"number"===typeof e.width}async function ne(e){return"object"===typeof e?e:await e()}function re(e){return e.kind!==$.Loading&&e.kind!==$.Bubble&&e.kind!==$.RowID&&e.kind!==$.Protected&&e.kind!==$.Drilldown}function ie(e){return e.kind===G.Marker||e.kind===G.NewRow}function oe(e){return!(!re(e)||e.kind===$.Image)&&(e.kind===$.Text||e.kind===$.Number||e.kind===$.Markdown||e.kind===$.Uri||e.kind===$.Custom||e.kind===$.Boolean?!0!==e.readonly:void T())}function le(e){return w()(e,"editor")}function ae(e){var t;return!(null!=(t=e.readonly)&&t)}(q=G||(G={})).NewRow="new-row",q.Marker="marker";var se=class{constructor(e){this.items=e,this.offset=e=>{if(0===e)return this;const t=this.items.map((t=>[t[0]+e,t[1]+e]));return new se(t)},this.add=e=>{const t="number"===typeof e?[e,e+1]:e,n=function(e){if(0===e.length)return[];const t=[...e],n=[];t.sort((function(e,t){return e[0]-t[0]})),n.push([...t[0]]);for(const r of t.slice(1)){const e=n[n.length-1];e[1]<r[0]?n.push([...r]):e[1]<r[1]&&(e[1]=r[1])}return n}([...this.items,t]);return new se(n)},this.remove=e=>{const t=[...this.items],n="number"===typeof e?e:e[0],r="number"===typeof e?e+1:e[1];for(const[i,o]of t.entries()){const[e,l]=o;if(e<=r&&n<=l){const o=[];e<n&&o.push([e,n]),r<l&&o.push([r,l]),t.splice(i,1,...o)}}return new se(t)},this.first=()=>{if(0!==this.items.length)return this.items[0][0]},this.last=()=>{if(0!==this.items.length)return this.items.slice(-1)[0][1]-1},this.hasIndex=e=>{for(let t=0;t<this.items.length;t++){const[n,r]=this.items[t];if(e>=n&&e<r)return!0}return!1},this.hasAll=e=>{for(let t=e[0];t<e[1];t++)if(!this.hasIndex(t))return!1;return!0},this.some=e=>{for(const t of this)if(e(t))return!0;return!1},this.equals=e=>{if(e===this)return!0;if(e.items.length!==this.items.length)return!1;for(let t=0;t<this.items.length;t++){const n=e.items[t],r=this.items[t];if(n[0]!==r[0]||n[1]!==r[1])return!1}return!0},this.toArray=()=>{const e=[];for(const[t,n]of this.items)for(let r=t;r<n;r++)e.push(r);return e}}get length(){let e=0;for(const[t,n]of this.items)e+=n-t;return e}*[Symbol.iterator](){for(const[e,t]of this.items)for(let n=e;n<t;n++)yield n}},ue=se;ue.empty=()=>null!=Z?Z:Z=new se([]),ue.fromSingleSelection=e=>se.empty().add(e);var ce=Object(r.a)("div")({name:"DataGridOverlayEditorStyle",class:"d1t1th9s",vars:{"d1t1th9s-0":[e=>e.targetY,"px"],"d1t1th9s-1":[e=>e.targetX-1,"px"],"d1t1th9s-2":[e=>e.targetY-1,"px"],"d1t1th9s-3":[e=>e.targetWidth+2,"px"],"d1t1th9s-4":[e=>e.targetHeight+2,"px"],"d1t1th9s-5":[e=>e.targetY+10,"px"],"d1t1th9s-6":[e=>Math.max(0,(e.targetHeight-28)/2),"px"]}});function de(){const[e,t]=function(){const[e,t]=i.useState();return[null!=e?e:void 0,t]}(),[n,r]=i.useState(0),[o,l]=i.useState(!0);i.useLayoutEffect((()=>{if(void 0===e)return;if(!("IntersectionObserver"in window))return;const t=new IntersectionObserver((e=>{0!==e.length&&l(e[0].isIntersecting)}),{threshold:1});return t.observe(e),()=>t.disconnect()}),[e]),i.useEffect((()=>{if(o||void 0===e)return;let t;const n=()=>{const{right:i}=e.getBoundingClientRect();r((e=>Math.min(e+window.innerWidth-i-10,0))),t=requestAnimationFrame(n)};return t=requestAnimationFrame(n),()=>{void 0!==t&&cancelAnimationFrame(t)}}),[e,o]);return{ref:t,style:i.useMemo((()=>({transform:`translateX(${n}px)`})),[n])}}var he=e=>{const{target:t,content:n,onFinishEditing:r,forceEditMode:o,initialValue:l,imageEditorOverride:a,markdownDivCreateNode:s,highlight:u,className:c,theme:d,id:h,cell:f,validateCell:p,getCellRenderer:g,provideEditor:m}=e,[w,y]=i.useState(o?n:void 0),b=i.useRef(null!=w?w:n);b.current=null!=w?w:n;const[D,x]=i.useState((()=>void 0===p||!(re(n)&&!1===(null==p?void 0:p(f,n,b.current))))),C=i.useCallback(((e,t)=>{r(D?e:void 0,t)}),[D,r]),k=i.useCallback((e=>{if(void 0!==p&&void 0!==e&&re(e)){const t=p(f,e,b.current);!1===t?x(!1):"object"===typeof t?(e=t,x(!0)):x(!0)}y(e)}),[f,p]),E=i.useRef(!1),S=i.useRef(void 0),F=i.useCallback((()=>{C(w,[0,0]),E.current=!0}),[w,C]),A=i.useCallback((e=>{var t;C(e,null!=(t=S.current)?t:[0,0]),E.current=!0}),[C]),M=i.useCallback((async e=>{let t=!1;"Escape"===e.key?(e.stopPropagation(),e.preventDefault(),S.current=[0,0]):"Enter"!==e.key||e.shiftKey?"Tab"===e.key&&(e.stopPropagation(),e.preventDefault(),S.current=[e.shiftKey?-1:1,0],t=!0):(e.stopPropagation(),e.preventDefault(),S.current=[0,1],t=!0),window.setTimeout((()=>{E.current||void 0===S.current||(C(t?w:void 0,S.current),E.current=!0)}),0)}),[C,w]),R=null!=w?w:n,[I,T]=i.useMemo((()=>{var e,t;if(ie(n))return[];const r=null==m?void 0:m(n);return void 0!==r?[r,!1]:[null==(t=null==(e=g(n))?void 0:e.provideEditor)?void 0:t.call(e,n),!1]}),[n,g,m]),{ref:H,style:O}=de();let P,L,$=!0,N=!0;if(void 0!==I){$=!0!==I.disablePadding,N=!0!==I.disableStyling;const e=le(I);e&&(L=I.styleOverride);const n=e?I.editor:I;P=i.createElement(n,{isHighlighted:u,onChange:k,value:R,initialValue:l,onFinishedEditing:A,validatedSelection:re(R)?R.selectionRange:void 0,forceEditMode:o,target:t,imageEditorOverride:a,markdownDivCreateNode:s,isValid:D})}L={...L,...O};const W=document.getElementById("portal");if(null===W)return console.error('Cannot open Data Grid overlay editor, because portal not found. Please add `<div id="portal" />` as the last child of your `<body>`.'),null;let j=N?"gdg-style":"gdg-unstyle";return D||(j+=" invalid"),$&&(j+=" pad"),Object(v.createPortal)(i.createElement(_.Provider,{value:d},i.createElement(B,{style:z(d),className:c,onClickOutside:F},i.createElement(ce,{ref:H,id:h,className:j,style:L,as:!0===T?"label":void 0,targetX:t.x,targetY:t.y,targetWidth:t.width,targetHeight:t.height},i.createElement("div",{className:"clip-region",onKeyDown:M},P)))),W)},fe=65536,pe=[];function ge(e,t){return t*fe+e}function ve(e){return e%fe}function me(e,t){return(e-t)/fe}function we(e){const t=ve(e);return[t,me(e,t)]}var ye=class{constructor(){this.imageLoaded=()=>{},this.loadedLocations=[],this.visibleWindow={x:0,y:0,width:0,height:0},this.freezeCols=0,this.isInWindow=e=>{const t=ve(e),n=me(e,t),r=this.visibleWindow;return t<this.freezeCols&&n>=r.y&&n<=r.y+r.height||t>=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},this.cache={},this.sendLoaded=b()((()=>{this.imageLoaded(this.loadedLocations),this.loadedLocations=[]}),20),this.clearOutOfWindow=()=>{const e=Object.keys(this.cache);for(const t of e){const e=this.cache[t];let n=!1;for(let t=0;t<e.cells.length;t++){const r=e.cells[t];if(this.isInWindow(r)){n=!0;break}}n?e.cells=e.cells.filter(this.isInWindow):(e.cancel(),delete this.cache[t])}}}setCallback(e){this.imageLoaded=e}setWindow(e,t){this.visibleWindow.x===e.x&&this.visibleWindow.y===e.y&&this.visibleWindow.width===e.width&&this.visibleWindow.height===e.height&&this.freezeCols===t||(this.visibleWindow=e,this.freezeCols=t,this.clearOutOfWindow())}loadImage(e,t,n,r){var i;let o=!1;const l=null!=(i=pe.pop())?i:new Image;let a=!1;const s={img:void 0,cells:[ge(t,n)],url:e,cancel:()=>{a||(a=!0,pe.length<12?pe.unshift(l):o||(l.src=""))}},u=new Promise((e=>l.addEventListener("load",(()=>e(null)))));requestAnimationFrame((async()=>{try{l.src=e,await u,await l.decode();const t=this.cache[r];if(void 0!==t&&!a){t.img=l;for(const e of t.cells)this.loadedLocations.push(we(e));o=!0,this.sendLoaded()}}catch(t){s.cancel()}})),this.cache[r]=s}loadOrGetImage(e,t,n){const r=e,i=this.cache[r];if(void 0!==i){const e=ge(t,n);return i.cells.includes(e)||i.cells.push(e),i.img}this.loadImage(e,t,n,r)}};function be(e,t,n,r,o=!1){const l=i.useRef();l.current=t,i.useEffect((()=>{if(null===n||void 0===n.addEventListener)return;const t=n,i=e=>{var n;null==(n=l.current)||n.call(t,e)};return t.addEventListener(e,i,{passive:r,capture:o}),()=>{t.removeEventListener(e,i,{capture:o})}}),[e,n,r,o])}function De(e,t){return void 0===e?void 0:t}var xe=Math.PI;function Ce(e){return e*xe/180}var ke=e=>{var t;const n=null!=(t=e.fgColor)?t:"currentColor";return i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M12.7073 7.05029C7.87391 11.8837 10.4544 9.30322 6.03024 13.7273C5.77392 13.9836 5.58981 14.3071 5.50189 14.6587L4.52521 18.5655C4.38789 19.1148 4.88543 19.6123 5.43472 19.475L9.34146 18.4983C9.69313 18.4104 10.0143 18.2286 10.2706 17.9722L16.9499 11.2929",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}),i.createElement("path",{d:"M20.4854 4.92901L19.0712 3.5148C18.2901 2.73375 17.0238 2.73375 16.2428 3.5148L14.475 5.28257C15.5326 7.71912 16.4736 8.6278 18.7176 9.52521L20.4854 7.75744C21.2665 6.97639 21.2665 5.71006 20.4854 4.92901Z",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",fill:"none",vectorEffect:"non-scaling-stroke"}))},Ee=e=>{var t;const n=null!=(t=e.fgColor)?t:"currentColor";return i.createElement("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i.createElement("path",{d:"M19 6L10.3802 17L5.34071 11.8758",vectorEffect:"non-scaling-stroke",stroke:n,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}))};var Se="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",Fe=new RegExp("^[^"+Se+"]*["+"\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]"),Ae=new RegExp("^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*["+Se+"]");var Me=void 0;var Re=Symbol();function Ie(e,t){return(null!=e?e:"")===(null!=t?t:"")}function Te(e,t,n){const r=n.x,i=n.x+n.width-1,o=n.y,l=n.y+n.height-1,[a,s]=e;if(s<o||s>l)return!1;if(void 0===t.span)return a>=r&&a<=i;const[u,c]=t.span;return u>=r&&u<=i||c>=r&&u<=i||u<r&&c>i}function He(e,t){let n=e;if(void 0!==t){let r=[...e];const i=n[t.src];t.src>t.dest?(r.splice(t.src,1),r.splice(t.dest,0,i)):(r.splice(t.dest+1,0,i),r.splice(t.src,1)),r=r.map(((t,n)=>({...t,sticky:e[n].sticky}))),n=r}return n}function Oe(e,t){let n=0;const r=He(e,t);for(let i=0;i<r.length;i++){const e=r[i];if(!e.sticky)break;n+=e.width}return n}function Be(e,t,n,r,i){const o=He(e,r),l=[];for(const u of o){if(!u.sticky)break;l.push(u)}if(l.length>0)for(const u of l)n-=u.width;let a=t,s=null!=i?i:0;for(;s<=n&&a<o.length;)s+=o[a].width,a++;for(let u=t;u<a;u++){const e=o[u];e.sticky||l.push(e)}return l}var ze=0,Pe={},Le="undefined"===typeof window;function _e(e,t,n){const r=function(e,t,n,r){return`${e}_${null!=r?r:t.font}_${n}`}(e,t,"middle",n);let i=Pe[r];return void 0===i&&(i=t.measureText(e),Pe[r]=i,ze++),ze>1e4&&(Pe={},ze=0),i}function $e(e,t){return"string"!==typeof t&&(t=`${t.baseFontStyle} ${t.fontFamily}`),function(e,t){for(const i of We)if(i.key===t)return i.val;const n=Ne(e,"alphabetic"),r=-(Ne(e,"middle").actualBoundingBoxDescent-n.actualBoundingBoxDescent)+n.actualBoundingBoxAscent/2;return We.push({key:t,val:r}),r}(e,t)}function Ne(e,t){e.save(),e.textBaseline=t;const n=e.measureText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");return e.restore(),n}!async function(){var e;Le||void 0===(null==(e=null==document?void 0:document.fonts)?void 0:e.ready)||(await document.fonts.ready,ze=0,Pe={},D.clear(),C.clear(),x.clear())}();var We=[];function je(e,t,n){const{ctx:r,theme:i}=e,o=null!=t?t:{},l=null!=n?n:i.textDark;return l!==o.fillStyle&&(r.fillStyle=l,o.fillStyle=l),o}function Xe(e,t,n,r,i,o,l,a,s){"right"===s?e.fillText(t,n+i-(a.cellHorizontalPadding+.5),r+o/2+l):"center"===s?e.fillText(t,n+i/2,r+o/2+l):e.fillText(t,n+a.cellHorizontalPadding+.5,r+o/2+l)}function Ke(e,t){const n=_e("ABCi09jgqpy",e,t);return n.actualBoundingBoxAscent+n.actualBoundingBoxDescent}function Ye(e,t,n,r,i){const{ctx:o,rect:l,theme:a}=e,{x:s,y:u,width:c,height:d}=l;if(!(r=null!=r&&r)){t.includes("\n")&&(t=t.split(/\r?\n/)[0]);const e=c/4;t.length>e&&(t=t.slice(0,e))}const h=$e(o,a),f="rtl"===(p=t,Fe.test(p)?"rtl":Ae.test(p)?"ltr":"neutral");var p;if(void 0===n&&f&&(n="right"),f&&(o.direction="rtl"),t.length>0){let e=!1;if("right"===n?(o.textAlign="right",e=!0):void 0!==n&&"left"!==n&&(o.textAlign=n,e=!0),r){const e=`${a.fontFamily} ${a.baseFontStyle}`,r=function(e,t,n,r,i,o){let l=`${t}_${n}_${r}px`,a=D.get(l);if(void 0!==a)return a;if(r<=0)return[];let s=[],u=t.split("\n"),c=x.get(n),d=void 0===c?t.length:r/c.size*1.5,h=i&&void 0!==c&&c.count>2e4;for(let f of u){let t=k(e,f.slice(0,Math.max(0,d)),n,h),i=Math.min(f.length,d);if(t<=r)s.push(f);else{for(;t>r;){let l=E(e,f,r,n,t,i,h,o),a=f.slice(0,Math.max(0,l));f=f.slice(a.length),s.push(a),t=k(e,f.slice(0,Math.max(0,d)),n,h),i=Math.min(f.length,d)}t>0&&s.push(f)}}return s=s.map(((e,t)=>0===t?e.trimEnd():e.trim())),D.set(l,s),D.size>500&&D.delete(D.keys().next().value),s}(o,t,e,c-2*a.cellHorizontalPadding,null!=i&&i),l=Ke(o,e),f=a.lineHeight*l,p=l+f*(r.length-1),g=p+a.cellVerticalPadding>d;g&&(o.save(),o.rect(s,u,c,d),o.clip());const v=u+d/2-p/2;let m=Math.max(u+a.cellVerticalPadding,v);for(const t of r)if(Xe(o,t,s,m,c,l,h,a,n),m+=f,m>u+d)break;g&&o.restore()}else Xe(o,t,s,u,c,d,h,a,n);e&&(o.textAlign="start"),f&&(o.direction="inherit")}}function Ue(e,t,n,r,i,o,l,a,s=-20,u=-20){const c=r+o/2,d=i+l/2,h=l/1.89,f=l/2,p=l/3.4,g=Math.abs(s-o/2)<p&&Math.abs(u-l/2)<p,v=l/4.25,m=l/4,w=l/8.5;switch(n){case!0:e.beginPath(),Ge(e,c-h/2,d-h/2,h,h,4),e.fillStyle=a?t.accentColor:t.textMedium,e.fill(),e.beginPath(),e.moveTo(c-v+l/9.31,d-v+l/4.33),e.lineTo(c-v+l/5.33,d-v+l/3.17),e.lineTo(c-v+l/2.83,d-v+l/7.16),e.strokeStyle=t.bgCell,e.lineJoin="round",e.lineCap="round",e.lineWidth=1.9,e.stroke();break;case X:case!1:e.beginPath(),Ge(e,c-m,d-m,f,f,4),e.lineWidth=1,e.strokeStyle=g?t.textDark:t.textMedium,e.stroke();break;case K:e.beginPath(),Ge(e,c-m,d-m,f,f,4),e.fillStyle=g?t.textMedium:t.textLight,e.fill(),e.beginPath(),e.moveTo(c-w,d),e.lineTo(c+w,d),e.strokeStyle=t.bgCell,e.lineCap="round",e.lineWidth=1.9,e.stroke();break;default:T()}}function Ve(e){const{ctx:t}=e;t.textAlign="start"}function Ge(e,t,n,r,i,o){"number"===typeof o&&(o={tl:o,tr:o,br:o,bl:o}),o={tl:Math.min(o.tl,i/2,r/2),tr:Math.min(o.tr,i/2,r/2),bl:Math.min(o.bl,i/2,r/2),br:Math.min(o.br,i/2,r/2)},e.moveTo(t+o.tl,n),e.arcTo(t+r,n,t+r,n+o.tr,o.tr),e.arcTo(t+r,n+i,t+r-o.br,n+i,o.br),e.arcTo(t,n+i,t,n+i-o.bl,o.bl),e.arcTo(t,n,t+o.tl,n,o.tl)}var qe={};function Ze(e,t){const{rect:n,theme:r,ctx:i,imageLoader:o,col:l,row:a}=e,{x:s,width:u}=n,c=`${r.baseFontStyle} ${r.fontFamily}`,d=Ke(i,c),h=Math.min(n.height,Math.max(16,2*Math.ceil(d*r.lineHeight))),f=Math.floor(n.y+(n.height-h)/2),p=h-10;let g=s+r.cellHorizontalPadding;const v=function(e,t,n){const r=Math.ceil(window.devicePixelRatio),i=n-10,o=n*r,l=28*r,a=`${e},${t},${r},${n}`;if(void 0!==qe[a])return{el:qe[a],height:o,width:l,middleWidth:4*r,sideWidth:11*r,padding:5*r,dpr:r};const s=document.createElement("canvas"),u=s.getContext("2d");if(null===u)return null;s.width=l,s.height=o,u.scale(r,r),qe[a]=s;const c=Math.min(6,9,i/2);return u.beginPath(),Ge(u,5,5,18,i,c),u.shadowColor="rgba(24, 25, 34, 0.4)",u.shadowBlur=1,u.fillStyle=e,u.fill(),u.shadowColor="rgba(24, 25, 34, 0.3)",u.shadowOffsetY=1,u.shadowBlur=5,u.fillStyle=e,u.fill(),u.shadowOffsetY=0,u.shadowBlur=0,u.shadowBlur=0,u.beginPath(),Ge(u,5.5,5.5,18,i,c),u.strokeStyle=t,u.lineWidth=1,u.stroke(),{el:s,height:o,width:l,sideWidth:11*r,middleWidth:6*r,padding:5*r,dpr:r}}(r.bgCell,r.drilldownBorder,h),m=[];for(const w of t){if(g>s+u)break;const e=_e(w.text,i,c).width;let t=0;if(void 0!==w.img){void 0!==o.loadOrGetImage(w.img,l,a)&&(t=p-8+4)}const n=e+t+16;m.push({x:g,width:n}),g+=n+4}if(null!==v){const{el:e,height:t,middleWidth:n,sideWidth:r,width:o,dpr:l,padding:a}=v,s=r/l,u=a/l;for(const c of m){const l=Math.floor(c.x),a=Math.floor(c.width);i.imageSmoothingEnabled=!1,i.drawImage(e,0,0,r,t,l-u,f,s,h),c.width>2*r&&i.drawImage(e,r,0,n,t,l+(s-u),f,a-2*(s-u),h),i.drawImage(e,o-r,0,r,t,l+a-(s-u),f,s,h),i.imageSmoothingEnabled=!0}}i.beginPath();for(const[w,y]of m.entries()){const e=t[w];let n=y.x+8;if(void 0!==e.img){const t=o.loadOrGetImage(e.img,l,a);if(void 0!==t){const e=p-8;let r=0,o=0,l=t.width,a=t.height;l>a?(r+=(l-a)/2,l=a):a>l&&(o+=(a-l)/2,a=l),i.beginPath(),Ge(i,n,f+h/2-e/2,e,e,3),i.save(),i.clip(),i.drawImage(t,r,o,l,a,n,f+h/2-e/2,e,e),i.restore(),n+=e+4}}i.beginPath(),i.fillStyle=r.textBubble,i.fillText(e.text,n,f+h/2+$e(i,r))}}function Qe(e,t,n,r,i,o,l,a,s,u,c,d,h,f,p){const g={x:0,y:o+u,width:0,height:0},v=o-i;if(e>=d){const t=l>e?-1:1,n=Oe(f);g.x+=n+s;for(let r=l;r!==e;r+=t)g.x+=f[1===t?r:r-1].width*t}else for(let m=0;m<e;m++)g.x+=f[m].width;if(g.width=f[e].width+1,-1===t)g.y=i,g.height=v;else if(-2===t){g.y=0,g.height=i;let t=e;const r=f[e].group,o=f[e].sticky;for(;t>0&&Ie(f[t-1].group,r)&&f[t-1].sticky===o;){const e=f[t-1];g.x-=e.width,g.width+=e.width,t--}let l=e;for(;l+1<f.length&&Ie(f[l+1].group,r)&&f[l+1].sticky===o;){const e=f[l+1];g.width+=e.width,l++}if(!o){const e=Oe(f),t=g.x-e;t<0&&(g.x-=t,g.width+=t),g.x+g.width>n&&(g.width=n-g.x)}}else if(h&&t===c-1){const e="number"===typeof p?p:p(t);g.y=r-e,g.height=e}else{const e=a>t?-1:1;if("number"===typeof p){const e=t-a;g.y+=e*p}else for(let n=a;n!==t;n+=e)g.y+=p(n)*e;g.height=("number"===typeof p?p:p(t))+1}return g}var Je='<svg width="20" height="20" fill="none" xmlns="http://www.w3.org/2000/svg">',et=e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n<path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${n}"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.29 4.947a3.368 3.368 0 014.723.04 3.375 3.375 0 01.041 4.729l-.009.009-1.596 1.597a3.367 3.367 0 01-5.081-.364.71.71 0 011.136-.85 1.95 1.95 0 002.942.21l1.591-1.593a1.954 1.954 0 00-.027-2.733 1.95 1.95 0 00-2.732-.027l-.91.907a.709.709 0 11-1.001-1.007l.915-.911.007-.007z" fill="${t}"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.55 8.678a3.368 3.368 0 015.082.364.71.71 0 01-1.136.85 1.95 1.95 0 00-2.942-.21l-1.591 1.593a1.954 1.954 0 00.027 2.733 1.95 1.95 0 002.73.028l.906-.906a.709.709 0 111.003 1.004l-.91.91-.008.01a3.368 3.368 0 01-4.724-.042 3.375 3.375 0 01-.041-4.728l.009-.009L6.55 8.678z" fill="${t}"/>\n</svg>\n `},tt={headerRowID:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}<rect x="2" y="2" width="16" height="16" rx="2" fill="${n}"/><path d="M15.75 4h-1.5a.25.25 0 0 0-.177.074L9.308 8.838a3.75 3.75 0 1 0 1.854 1.854l1.155-1.157.967.322a.5.5 0 0 0 .65-.55l-.18-1.208.363-.363.727.331a.5.5 0 0 0 .69-.59l-.254-.904.647-.647A.25.25 0 0 0 16 5.75v-1.5a.25.25 0 0 0-.25-.25zM7.5 13.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0z" fill="${t}"/></svg>`},headerNumber:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${n}"/>\n <path d="M6.52 12.78H5.51V8.74l-1.33.47v-.87l2.29-.83h.05v5.27zm5.2 0H8.15v-.69l1.7-1.83a6.38 6.38 0 0 0 .34-.4c.09-.11.16-.22.22-.32s.1-.19.12-.27a.9.9 0 0 0 0-.56.63.63 0 0 0-.15-.23.58.58 0 0 0-.22-.15.75.75 0 0 0-.29-.05c-.27 0-.48.08-.62.23a.95.95 0 0 0-.2.65H8.03c0-.24.04-.46.13-.67a1.67 1.67 0 0 1 .97-.91c.23-.1.49-.14.77-.14.26 0 .5.04.7.11.21.08.38.18.52.32.14.13.25.3.32.48a1.74 1.74 0 0 1 .03 1.13 2.05 2.05 0 0 1-.24.47 4.16 4.16 0 0 1-.35.47l-.47.5-1 1.05h2.32v.8zm1.8-3.08h.55c.28 0 .48-.06.61-.2a.76.76 0 0 0 .2-.55.8.8 0 0 0-.05-.28.56.56 0 0 0-.13-.22.6.6 0 0 0-.23-.15.93.93 0 0 0-.32-.05.92.92 0 0 0-.29.05.72.72 0 0 0-.23.12.57.57 0 0 0-.21.46H12.4a1.3 1.3 0 0 1 .5-1.04c.15-.13.33-.23.54-.3a2.48 2.48 0 0 1 1.4 0c.2.06.4.15.55.28.15.13.27.28.36.47.08.19.13.4.13.65a1.15 1.15 0 0 1-.2.65 1.36 1.36 0 0 1-.58.49c.15.05.28.12.38.2a1.14 1.14 0 0 1 .43.62c.03.13.05.26.05.4 0 .25-.05.47-.14.66a1.42 1.42 0 0 1-.4.49c-.16.13-.35.23-.58.3a2.51 2.51 0 0 1-.73.1c-.22 0-.44-.03-.65-.09a1.8 1.8 0 0 1-.57-.28 1.43 1.43 0 0 1-.4-.47 1.41 1.41 0 0 1-.15-.66h1a.66.66 0 0 0 .22.5.87.87 0 0 0 .58.2c.25 0 .45-.07.6-.2a.71.71 0 0 0 .21-.56.97.97 0 0 0-.06-.36.61.61 0 0 0-.18-.25.74.74 0 0 0-.28-.15 1.33 1.33 0 0 0-.37-.04h-.55V9.7z" fill="${t}"/>\n </svg>`},headerCode:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}<rect x="2" y="2" width="16" height="16" rx="4" fill="${n}"/><path d="m12.223 13.314 3.052-2.826a.65.65 0 0 0 0-.984l-3.052-2.822c-.27-.25-.634-.242-.865.022-.232.263-.206.636.056.882l2.601 2.41-2.601 2.41c-.262.245-.288.619-.056.882.231.263.595.277.865.026Zm-4.444.005c.266.25.634.241.866-.027.231-.263.206-.636-.06-.882L5.983 10l2.602-2.405c.266-.25.291-.62.06-.887-.232-.263-.596-.272-.866-.022L4.723 9.51a.653.653 0 0 0 0 .983l3.056 2.827Z" fill="${t}"/></svg>`},headerString:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${n}"/>\n <path d="M8.182 12.4h3.636l.655 1.6H14l-3.454-8H9.455L6 14h1.527l.655-1.6zM10 7.44l1.36 3.651H8.64L10 7.441z" fill="${t}"/>\n</svg>`},headerBoolean:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <path\n d="M16.2222 2H3.77778C2.8 2 2 2.8 2 3.77778V16.2222C2 17.2 2.8 18 3.77778 18H16.2222C17.2 18 17.9911 17.2 17.9911 16.2222L18 3.77778C18 2.8 17.2 2 16.2222 2Z"\n fill="${n}"\n />\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M7.66667 6.66669C5.73368 6.66669 4.16667 8.15907 4.16667 10C4.16667 11.841 5.73368 13.3334 7.66667 13.3334H12.3333C14.2663 13.3334 15.8333 11.841 15.8333 10C15.8333 8.15907 14.2663 6.66669 12.3333 6.66669H7.66667ZM12.5 12.5C13.8807 12.5 15 11.3807 15 10C15 8.61931 13.8807 7.50002 12.5 7.50002C11.1193 7.50002 10 8.61931 10 10C10 11.3807 11.1193 12.5 12.5 12.5Z"\n fill="${t}"\n />\n</svg>`},headerAudioUri:et,headerVideoUri:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${n}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7 13.138a.5.5 0 00.748.434l5.492-3.138a.5.5 0 000-.868L7.748 6.427A.5.5 0 007 6.862v6.276z" fill="${t}"/>\n</svg>`},headerEmoji:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}\n <path d="M10 5a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0 9.17A4.17 4.17 0 0 1 5.83 10 4.17 4.17 0 0 1 10 5.83 4.17 4.17 0 0 1 14.17 10 4.17 4.17 0 0 1 10 14.17z" fill="${t}"/>\n <path d="M8.33 8.21a.83.83 0 1 0-.03 1.67.83.83 0 0 0 .03-1.67zm3.34 0a.83.83 0 1 0-.04 1.67.83.83 0 0 0 .04-1.67z" fill="${t}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.53 13.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="${t}"/>\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${n}"/>\n <path d="M10 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12zm0 11a5 5 0 1 1 .01-10.01A5 5 0 0 1 10 15z" fill="${t}"/>\n <path d="M8 7.86a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2zm4 0a1 1 0 1 0-.04 2 1 1 0 0 0 .04-2z" fill="${t}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M12.53 11.9a2.82 2.82 0 0 1-5.06 0l.77-.38a1.97 1.97 0 0 0 3.52 0l.77.39z" fill="${t}"/>\n </svg>`},headerImage:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${n}"/>\n <path opacity=".5" fill-rule="evenodd" clip-rule="evenodd" d="M12.499 10.801a.5.5 0 01.835 0l2.698 4.098a.5.5 0 01-.418.775H10.22a.5.5 0 01-.417-.775l2.697-4.098z" fill="${t}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.07 8.934a.5.5 0 01.824 0l4.08 5.958a.5.5 0 01-.412.782h-8.16a.5.5 0 01-.413-.782l4.08-5.958zM13.75 8.333a2.083 2.083 0 100-4.166 2.083 2.083 0 000 4.166z" fill="${t}"/>\n</svg>`},headerUri:et,headerPhone:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}\n <path fill="${t}" d="M3 3h14v14H3z"/>\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2zm-7.24 9.78h1.23c.15 0 .27.06.36.18l.98 1.28a.43.43 0 0 1-.05.58l-1.2 1.21a.45.45 0 0 1-.6.04A6.72 6.72 0 0 1 7.33 10c0-.61.1-1.2.25-1.78a6.68 6.68 0 0 1 2.12-3.3.44.44 0 0 1 .6.04l1.2 1.2c.16.17.18.42.05.59l-.98 1.29a.43.43 0 0 1-.36.17H8.98A5.38 5.38 0 0 0 8.67 10c0 .62.11 1.23.3 1.79z" fill="${n}"/>\n </svg>`},headerMarkdown:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${n}"/>\n <path d="m13.49 13.15-2.32-3.27h1.4V7h1.86v2.88h1.4l-2.34 3.27zM11 13H9v-3l-1.5 1.92L6 10v3H4V7h2l1.5 2L9 7h2v6z" fill="${t}"/>\n </svg>`},headerDate:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${n}"/>\n <path d="M14.8 4.182h-.6V3H13v1.182H7V3H5.8v1.182h-.6c-.66 0-1.2.532-1.2 1.182v9.454C4 15.468 4.54 16 5.2 16h9.6c.66 0 1.2-.532 1.2-1.182V5.364c0-.65-.54-1.182-1.2-1.182zm0 10.636H5.2V7.136h9.6v7.682z" fill="${t}"/>\n</svg>`},headerTime:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${n}"/>\n <path d="M10 4a6 6 0 0 0-6 6 6 6 0 0 0 6 6 6 6 0 0 0 6-6 6 6 0 0 0-6-6zm0 10.8A4.8 4.8 0 0 1 5.2 10a4.8 4.8 0 1 1 4.8 4.8z" fill="${t}"/>\n <path d="M10 7H9v3.93L12.5 13l.5-.8-3-1.76V7z" fill="${t}"/>\n </svg>`},headerEmail:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <rect x="2" y="2" width="16" height="16" rx="2" fill="${n}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M10 8.643a1.357 1.357 0 100 2.714 1.357 1.357 0 000-2.714zM7.357 10a2.643 2.643 0 115.286 0 2.643 2.643 0 01-5.286 0z" fill="${t}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.589 4.898A5.643 5.643 0 0115.643 10v.5a2.143 2.143 0 01-4.286 0V8a.643.643 0 011.286 0v2.5a.857.857 0 001.714 0V10a4.357 4.357 0 10-1.708 3.46.643.643 0 01.782 1.02 5.643 5.643 0 11-5.842-9.582z" fill="${t}"/>\n</svg>`},headerReference:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}\n <rect x="2" y="8" width="10" height="8" rx="2" fill="${n}"/>\n <rect x="8" y="4" width="10" height="8" rx="2" fill="${n}"/>\n <path d="M10.68 7.73V6l2.97 3.02-2.97 3.02v-1.77c-2.13 0-3.62.7-4.68 2.2.43-2.15 1.7-4.31 4.68-4.74z" fill="${t}"/>\n </svg>`},headerIfThenElse:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <path fill="${t}" d="M4 3h12v14H4z"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M3.6 2A1.6 1.6 0 002 3.6v12.8A1.6 1.6 0 003.6 18h12.8a1.6 1.6 0 001.6-1.6V3.6A1.6 1.6 0 0016.4 2H3.6zm11.3 10.8a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7h-1.4a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.6-.693.117.117 0 00.1-.115V10.35a.117.117 0 00-.117-.116h-2.8a.117.117 0 00-.117.116v2.333c0 .064.053.117.117.117h.117a.7.7 0 01.7.7v1.4a.7.7 0 01-.7.7H9.3a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.117a.117.117 0 00.117-.117V10.35a.117.117 0 00-.117-.117h-2.8a.117.117 0 00-.117.117v2.342c0 .058.042.106.1.115a.7.7 0 01.6.693v1.4a.7.7 0 01-.7.7H5.1a.7.7 0 01-.7-.7v-1.4a.7.7 0 01.7-.7h.35a.116.116 0 00.116-.117v-2.45c0-.515.418-.933.934-.933h2.917a.117.117 0 00.117-.117V6.85a.117.117 0 00-.117-.116h-2.45a.7.7 0 01-.7-.7V5.1a.7.7 0 01.7-.7h6.067a.7.7 0 01.7.7v.934a.7.7 0 01-.7.7h-2.45a.117.117 0 00-.118.116v2.333c0 .064.053.117.117.117H13.5c.516 0 .934.418.934.934v2.45c0 .063.052.116.116.116h.35z" fill="${n}"/>\n</svg>`},headerSingleValue:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}\n <rect x="2" y="2" width="16" height="16" rx="2" fill="${n}"/>\n <path d="M9.98 13.33c.45 0 .74-.3.73-.75l-.01-.1-.16-1.67 1.45 1.05a.81.81 0 0 0 .5.18c.37 0 .72-.32.72-.76 0-.3-.17-.54-.49-.68l-1.63-.77 1.63-.77c.32-.14.49-.37.49-.67 0-.45-.34-.76-.71-.76a.81.81 0 0 0-.5.18l-1.47 1.03.16-1.74.01-.08c.01-.46-.27-.76-.72-.76-.46 0-.76.32-.75.76l.01.08.16 1.74-1.47-1.03a.77.77 0 0 0-.5-.18.74.74 0 0 0-.72.76c0 .3.17.53.49.67l1.63.77-1.62.77c-.32.14-.5.37-.5.68 0 .44.35.75.72.75a.78.78 0 0 0 .5-.17L9.4 10.8l-.16 1.68v.09c-.02.44.28.75.74.75z" fill="${t}"/>\n </svg>`},headerLookup:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}\n <rect x="2" y="2" width="16" height="16" rx="2" fill="${n}"/>\n <path d="M8 5.83H5.83a.83.83 0 0 0 0 1.67h1.69A4.55 4.55 0 0 1 8 5.83zm-.33 3.34H5.83a.83.83 0 0 0 0 1.66h2.72a4.57 4.57 0 0 1-.88-1.66zM5.83 12.5a.83.83 0 0 0 0 1.67h7.5a.83.83 0 1 0 0-1.67h-7.5zm8.8-2.9a3.02 3.02 0 0 0 .46-1.6c0-1.66-1.32-3-2.94-3C10.52 5 9.2 6.34 9.2 8s1.31 3 2.93 3c.58 0 1.11-.17 1.56-.47l2.04 2.08.93-.94-2.04-2.08zm-2.48.07c-.9 0-1.63-.75-1.63-1.67s.73-1.67 1.63-1.67c.9 0 1.63.75 1.63 1.67s-.73 1.67-1.63 1.67z" fill="${t}"/>\n </svg>`},headerTextTemplate:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <rect x="2" y="2" width="16" height="16" rx="2" fill="${n}"/>\n <path d="M7.676 4.726V3l2.976 3.021-2.976 3.022v-1.77c-2.125 0-3.613.69-4.676 2.201.425-2.158 1.7-4.316 4.676-4.748zM10.182 14.4h3.636l.655 1.6H16l-3.454-8h-1.091L8 16h1.527l.655-1.6zM12 9.44l1.36 3.65h-2.72L12 9.44z" fill="${t}"/>\n</svg>`},headerMath:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <rect x="2" y="2" width="16" height="16" rx="2" fill="${n}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.167 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666H4.167z" fill="${t}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M7.083 4.167a.833.833 0 10-1.666 0v4.166a.833.833 0 101.666 0V4.167zM11.667 5.417a.833.833 0 100 1.666h4.166a.833.833 0 100-1.666h-4.166zM5.367 11.688a.833.833 0 00-1.179 1.179l2.947 2.946a.833.833 0 001.178-1.178l-2.946-2.947z" fill="${t}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M8.313 12.867a.833.833 0 10-1.178-1.179l-2.947 2.947a.833.833 0 101.179 1.178l2.946-2.946z" fill="${t}"/>\n <path d="M10.833 12.5c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833zM10.833 15c0-.46.373-.833.834-.833h4.166a.833.833 0 110 1.666h-4.166a.833.833 0 01-.834-.833z" fill="${t}"/>\n</svg>`},headerRollup:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}\n <path d="M16.22 2H3.78C2.8 2 2 2.8 2 3.78v12.44C2 17.2 2.8 18 3.78 18h12.44c.98 0 1.77-.8 1.77-1.78L18 3.78C18 2.8 17.2 2 16.22 2z" fill="${n}"/>\n <path d="M10 8.84a1.16 1.16 0 1 0 0 2.32 1.16 1.16 0 0 0 0-2.32zm3.02 3.61a3.92 3.92 0 0 0 .78-3.28.49.49 0 1 0-.95.2c.19.87-.02 1.78-.58 2.47a2.92 2.92 0 1 1-4.13-4.08 2.94 2.94 0 0 1 2.43-.62.49.49 0 1 0 .17-.96 3.89 3.89 0 1 0 2.28 6.27zM10 4.17a5.84 5.84 0 0 0-5.44 7.93.49.49 0 1 0 .9-.35 4.86 4.86 0 1 1 2.5 2.67.49.49 0 1 0-.4.88c.76.35 1.6.54 2.44.53a5.83 5.83 0 0 0 0-11.66zm3.02 3.5a.7.7 0 1 0-1.4 0 .7.7 0 0 0 1.4 0zm-6.97 5.35a.7.7 0 1 1 0 1.4.7.7 0 0 1 0-1.4z" fill="${t}"/>\n </svg>`},headerJoinStrings:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <rect x="2" y="2" width="16" height="16" rx="2" fill="${n}"/>\n <path d="M12.4 13.565c1.865-.545 3.645-2.083 3.645-4.396 0-1.514-.787-2.604-2.071-2.604C12.69 6.565 12 7.63 12 8.939c1.114.072 1.865.726 1.865 1.683 0 .933-.8 1.647-1.84 2.023l.375.92zM4 5h6v2H4zM4 9h5v2H4zM4 13h4v2H4z" fill="${t}"/>\n</svg>`},headerSplitString:e=>{const t=e.fgColor,n=e.bgColor;return`\n ${Je}\n <rect x="2" y="2" width="16" height="16" rx="2" fill="${n}"/>\n <path d="M12.4 13.56c1.86-.54 3.65-2.08 3.65-4.4 0-1.5-.8-2.6-2.08-2.6S12 7.64 12 8.95c1.11.07 1.86.73 1.86 1.68 0 .94-.8 1.65-1.83 2.03l.37.91zM4 5h6v2H4zm0 4h5v2H4zm0 4h4v2H4z" fill="${t}"/>\n </svg>`},headerGeoDistance:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <path d="M16.222 2H3.778C2.8 2 2 2.8 2 3.778v12.444C2 17.2 2.8 18 3.778 18h12.444c.978 0 1.77-.8 1.77-1.778L18 3.778C18 2.8 17.2 2 16.222 2z" fill="${n}"/>\n <path d="M10 7a1 1 0 100-2v2zm0 6a1 1 0 100 2v-2zm0-8H7v2h3V5zm-3 6h5V9H7v2zm5 2h-2v2h2v-2zm1-1a1 1 0 01-1 1v2a3 3 0 003-3h-2zm-1-1a1 1 0 011 1h2a3 3 0 00-3-3v2zM4 8a3 3 0 003 3V9a1 1 0 01-1-1H4zm3-3a3 3 0 00-3 3h2a1 1 0 011-1V5z" fill="${t}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M4.856 12.014a.5.5 0 00-.712.702L5.409 14l-1.265 1.284a.5.5 0 00.712.702l1.255-1.274 1.255 1.274a.5.5 0 00.712-.702L6.813 14l1.265-1.284a.5.5 0 00-.712-.702L6.11 13.288l-1.255-1.274zM12.856 4.014a.5.5 0 00-.712.702L13.409 6l-1.265 1.284a.5.5 0 10.712.702l1.255-1.274 1.255 1.274a.5.5 0 10.712-.702L14.813 6l1.265-1.284a.5.5 0 00-.712-.702L14.11 5.288l-1.255-1.274z" fill="${t}"/>\n</svg>`},headerArray:e=>{const t=e.fgColor,n=e.bgColor;return`${Je}\n <rect x="2" y="2" width="16" height="16" rx="2" fill="${n}"/>\n <path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 7.25a.75.75 0 000-1.5h-6.5a.75.75 0 100 1.5h6.5zM15 10a.75.75 0 01-.75.75h-6.5a.75.75 0 010-1.5h6.5A.75.75 0 0115 10zm-.75 4.25a.75.75 0 000-1.5h-6.5a.75.75 0 000 1.5h6.5zm-8.987-7a.75.75 0 100-1.5.75.75 0 000 1.5zm.75 2.75a.75.75 0 11-1.5 0 .75.75 0 011.5 0zm-.75 4.25a.75.75 0 100-1.5.75.75 0 000 1.5z" fill="${t}"/>\n</svg>`},rowOwnerOverlay:e=>{const t=e.fgColor;return`\n <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M2 15v1h14v-2.5c0-.87-.44-1.55-.98-2.04a6.19 6.19 0 0 0-1.9-1.14 12.1 12.1 0 0 0-2.48-.67A4 4 0 1 0 5 6a4 4 0 0 0 2.36 3.65c-.82.13-1.7.36-2.48.67-.69.28-1.37.65-1.9 1.13A2.8 2.8 0 0 0 2 13.5V15z" fill="${e.bgColor}" stroke="${t}" stroke-width="2"/>\n </svg>`},protectedColumnOverlay:e=>{const t=e.fgColor;return`\n <svg width="18" height="18" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M12.43 6.04v-.18a3.86 3.86 0 0 0-7.72 0v.18A2.15 2.15 0 0 0 3 8.14v5.72C3 15.04 3.96 16 5.14 16H12c1.18 0 2.14-.96 2.14-2.14V8.14c0-1.03-.73-1.9-1.71-2.1zM7.86 6v-.14a.71.71 0 1 1 1.43 0V6H7.86z" fill="${e.bgColor}" stroke="${t}" stroke-width="2"/>\n </svg>\n`},renameIcon:e=>{const t=e.bgColor;return`${Je}\n <path stroke="${t}" stroke-width="2" d="M12 3v14"/>\n <path stroke="${t}" stroke-width="2" stroke-linecap="round" d="M10 4h4m-4 12h4"/>\n <path d="M11 14h4a3 3 0 0 0 3-3V9a3 3 0 0 0-3-3h-4v2h4a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-4v2ZM9.5 8H5a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h4.5v2H5a3 3 0 0 1-3-3V9a3 3 0 0 1 3-3h4.5v2Z" fill="${t}"/>\n </svg>\n`}};var nt={},rt=null;function it(e){const t=e.toLowerCase().trim();if(void 0!==nt[t])return nt[t];(rt=rt||function(){const e=document.createElement("div");return e.style.opacity="0",e.style.pointerEvents="none",e.style.position="fixed",document.body.append(e),e}()).style.color="#000",rt.style.color=t;const n=getComputedStyle(rt).color;rt.style.color="#fff",rt.style.color=t;const r=getComputedStyle(rt).color;if(r!==n)throw new Error("Could not parse color");const i=r.replace(/[^\d.,]/g,"").split(",").map(Number.parseFloat);return i.length<4&&i.push(1),nt[t]=i,i}function ot(e,t){const[n,r,i]=it(e);return`rgba(${n}, ${r}, ${i}, ${t})`}function lt(e,t){if(void 0===t)return e;const[n,r,i,o]=it(e);if(1===o)return e;const[l,a,s,u]=it(t),c=o+u*(1-o);return`rgba(${(o*n+u*l*(1-o))/c}, ${(o*r+u*a*(1-o))/c}, ${(o*i+u*s*(1-o))/c}, ${c})`}var at={kind:$.Loading,allowOverlay:!1};function st(e,t,n,r,i,o,l,a,s,u,c,d,h,f,p,g,v,m,w,y){let b,D,x;void 0!==p&&p[0][0]===r&&p[0][1]===t&&(b=p[1][0],D=p[1][1]);const C={ctx:e,theme:u,col:r,row:t,cell:n,rect:{x:i,y:o,width:l,height:a},highlighted:s,hoverAmount:f,hoverX:b,hoverY:D,imageLoader:d,spriteManager:h,hyperWrapping:g,requestAnimationFrame:()=>{k=!0}};let k=!1;return(function(e,t,n,r,i){const{ctx:o,rect:l,theme:a}=e;let s=Number.MAX_SAFE_INTEGER;if(void 0!==t&&(s=n-t,s<500)){const e=1-s/500;o.globalAlpha=e,o.fillStyle=a.bgSearchResult,o.fillRect(l.x,l.y,l.width,l.height),o.globalAlpha=1,void 0!==r&&(r.fillStyle=a.bgSearchResult)}return i(),s<500}(C,n.lastUpdated,v,m,(()=>{var e,t;if(!(!ie(n)&&!0===(null==c?void 0:c(C)))){const r=y(n);if(void 0!==r){(null==m?void 0:m.renderer)!==r&&(null==(e=null==m?void 0:m.deprep)||e.call(m,C),m=void 0);const i=null==(t=r.drawPrep)?void 0:t.call(r,C,m);r.draw(C,n),x={deprep:null==i?void 0:i.deprep,fillStyle:null==i?void 0:i.fillStyle,font:null==i?void 0:i.font,renderer:r}}}}))||k)&&(null==w||w([r,t])),x}function ut(e,t,n,r,i,o,l,a,s,u,c,d,h,f,p,g,v,m=!1){var w,y,b;if(void 0!==s){e.beginPath(),e.save(),e.rect(0,0,o,l);for(const t of s)e.rect(t.x+1,t.y+1,t.width-1,t.height-1);e.clip("evenodd")}const D=null!=(w=v.horizontalBorderColor)?w:v.borderColor,x=v.borderColor;let C=0,k=o,E=0,S=l;if(void 0!==a&&a.length>0){C=Number.MAX_SAFE_INTEGER,E=Number.MAX_SAFE_INTEGER,k=Number.MIN_SAFE_INTEGER,S=Number.MIN_SAFE_INTEGER;for(const e of a)C=Math.min(C,e.x-1),k=Math.max(k,e.x+e.width+1),E=Math.min(E,e.y-1),S=Math.max(S,e.y+e.height+1)}const A=[];e.beginPath();let M=.5;for(let F=0;F<t.length;F++){const e=t[F];if(0===e.width)continue;M+=e.width;const n=e.sticky?M:M+r;n>=C&&n<=k&&f(F+1)&&A.push({x1:n,y1:Math.max(u,E),x2:n,y2:Math.min(l,S),color:x})}const R=d(g-1),I=l-R+.5,T="sticky"===p;if(T&&A.push({x1:C,y1:I,x2:k,y2:I,color:D}),!0!==m){let e=c+.5,t=n;const r=T?l-R:l;for(;e+i<=r;){const n=e+i;if(n>=E&&n<=S-1&&(!T||t!==g-1||Math.abs(n-I)>1)){const e=null==h?void 0:h(t);A.push({x1:C,y1:n,x2:k,y2:n,color:null!=(b=null!=(y=null==e?void 0:e.horizontalBorderColor)?y:null==e?void 0:e.borderColor)?b:D})}e+=d(t),t++}}const H=F()(A,(e=>e.color));for(const F of Object.keys(H)){e.strokeStyle=F;for(const t of H[F])e.moveTo(t.x1,t.y1),e.lineTo(t.x2,t.y2);e.stroke(),e.beginPath()}void 0!==s&&e.restore()}function ct(e,t){const n=[];let r=e.x+e.width-26*t.length;const i=e.y+e.height/2-13;for(let o=0;o<t.length;o++)n.push({x:r,y:i,width:26,height:26}),r+=26;return n}function dt(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height}function ht(e,t,n,r){return{x:e+n-30,y:Math.max(t,t+r/2-15),width:30,height:Math.min(30,r)}}function ft(e,t,n,r,i,o,l,a,s,u,c,d,h,f){const p=o.title.startsWith(Q),g=ht(t,n,r,i);if(void 0!==h){let f=o;if(p&&(f={...o,title:""}),h({ctx:e,theme:a,rect:{x:t,y:n,width:r,height:i},column:f,columnIndex:f.sourceIndex,isSelected:l,hoverAmount:c,isHovered:s,hasSelectedCell:u,spriteManager:d,menuBounds:g}))return}if(p){let l;return o.title===J&&(l=!0),o.title===ee&&(l=!1),!0!==l&&(e.globalAlpha=c),Ue(e,a,l,t,n,r,i,!1,void 0,void 0),void(!0!==l&&(e.globalAlpha=1))}const v=a.cellHorizontalPadding,m=l?a.textHeaderSelected:a.textHeader,w=!0===o.hasMenu&&(s||f&&l);let y=t+v;if(void 0!==o.icon){let t=l?"selected":"normal";"highlight"===o.style&&(t=l?"selected":"special");const r=a.headerIconSize;d.drawSprite(o.icon,t,e,y,n+(i-r)/2,r,a),void 0!==o.overlayIcon&&d.drawSprite(o.overlayIcon,l?"selected":"special",e,y+9,n+((i-18)/2+6),18,a),y+=Math.ceil(1.3*r)}if(w&&!0===o.hasMenu&&r>35){const n=35,i=(r-n)/r,o=(r-.7*n)/r,l=e.createLinearGradient(t,0,t+r,0),a=ot(m,0);l.addColorStop(0,m),l.addColorStop(i,m),l.addColorStop(o,a),l.addColorStop(1,a),e.fillStyle=l}else e.fillStyle=m;if(e.fillText(o.title,y,n+i/2+$e(e,`${a.headerFontStyle} ${a.fontFamily}`)),w&&!0===o.hasMenu){e.beginPath();const t=g.x+g.width/2-5.5,n=g.y+g.height/2-3;!function(e,t,n){const r=function(e,t){const n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),o=n/i,l=r/i;return{x:n,y:t.y-e.y,len:i,nx:o,ny:l,ang:Math.atan2(l,o)}};let i;const o=t.length;let l=t[o-1];for(let a=0;a<o;a++){let s=t[a%o];const u=t[(a+1)%o],c=r(s,l),d=r(s,u),h=c.nx*d.ny-c.ny*d.nx,f=c.nx*d.nx-c.ny*-d.ny;let p=Math.asin(h<-1?-1:h>1?1:h),g=1,v=!1;f<0?p<0?p=Math.PI+p:(p=Math.PI-p,g=-1,v=!0):p>0&&(g=-1,v=!0),i=void 0!==s.radius?s.radius:n;const m=p/2;let w,y=Math.abs(Math.cos(m)*i/Math.sin(m));y>Math.min(c.len/2,d.len/2)?(y=Math.min(c.len/2,d.len/2),w=Math.abs(y*Math.sin(m)/Math.cos(m))):w=i;let b=s.x+d.nx*y,D=s.y+d.ny*y;b+=-d.ny*w*g,D+=d.nx*w*g,e.arc(b,D,w,c.ang+Math.PI/2*g,d.ang-Math.PI/2*g,v),l=s,s=u}e.closePath()}(e,[{x:t,y:n},{x:t+11,y:n},{x:t+5.5,y:n+6}],1),e.fillStyle=m,e.fill()}}function pt(e,t,n,r,i,o,l,a,s,u,c,d,h,f,p,g,v,m,w){var y;const b=l+a;if(b<=0)return;e.fillStyle=d.bgHeader,e.fillRect(0,0,i,b);const[D,x]=null!=(y=null==r?void 0:r[0])?y:[],C=`${d.headerFontStyle} ${d.fontFamily}`;e.font=C,xt(t,0,o,0,b,((t,r,i,o)=>{var p,y,b;if(void 0!==v&&!v.some((e=>-1===e[1]&&e[0]===t.sourceIndex)))return;const k=Math.max(0,o-r);e.save(),e.beginPath(),e.rect(r+k,a,t.width-k,l),e.clip();const E=g(null!=(p=t.group)?p:"").overrideTheme,S=void 0===t.themeOverride&&void 0===E?d:{...d,...E,...t.themeOverride};S.bgHeader!==d.bgHeader&&(e.fillStyle=S.bgHeader,e.fill());const F=`${S.headerFontStyle} ${S.fontFamily}`;C!==F&&(e.font=F);const A=c.columns.hasIndex(t.sourceIndex),M=void 0!==s||u,R=!M&&-1===x&&D===t.sourceIndex,I=M?0:null!=(b=null==(y=f.find((e=>e.item[0]===t.sourceIndex&&-1===e.item[1])))?void 0:y.hoverAmount)?b:0,T=void 0!==(null==c?void 0:c.current)&&c.current.cell[0]===t.sourceIndex,H=A?S.accentColor:T?S.bgHeaderHasFocus:S.bgHeader,O=n?a:0,B=0===t.sourceIndex?0:1;A?(e.fillStyle=H,e.fillRect(r+B,O,t.width-B,l)):(T||I>0)&&(e.beginPath(),e.rect(r+B,O,t.width-B,l),T&&(e.fillStyle=S.bgHeaderHasFocus,e.fill()),I>0&&(e.globalAlpha=I,e.fillStyle=S.bgHeaderHovered,e.fill(),e.globalAlpha=1)),ft(e,r,O,t.width,l,t,A,S,R,T,I,h,m,w),e.restore()})),n&&function(e,t,n,r,i,o,l,a,s,u,c,d){var h;const[f,p]=null!=(h=null==o?void 0:o[0])?h:[];let g=0;Ct(t,n,r,i,((t,n,r,s,h,v)=>{var m,w;if(void 0!==d&&!d.some((e=>-2===e[1]&&e[0]>=t[0]&&e[0]<=t[1])))return;e.save(),e.beginPath(),e.rect(r,s,h,v),e.clip();const y=c(n),b=void 0===(null==y?void 0:y.overrideTheme)?l:{...l,...y.overrideTheme},D=-2===p&&void 0!==f&&f>=t[0]&&f<=t[1],x=D?b.bgHeaderHovered:b.bgHeader;if(x!==l.bgHeader&&(e.fillStyle=x,e.fill()),e.fillStyle=null!=(m=b.textGroupHeader)?m:b.textHeader,void 0!==y){let t=r;if(void 0!==y.icon&&(a.drawSprite(y.icon,"normal",e,t+8,(i-20)/2,20,b),t+=26),e.fillText(y.name,t+8,i/2+$e(e,`${l.headerFontStyle} ${l.fontFamily}`)),void 0!==y.actions&&D){const t=ct({x:r,y:s,width:h,height:v},y.actions);e.beginPath();const n=t[0].x-10,l=r+h-n;e.rect(n,0,l,i);const u=e.createLinearGradient(n,0,n+l,0),c=ot(x,0);u.addColorStop(0,c),u.addColorStop(10/l,x),u.addColorStop(1,x),e.fillStyle=u,e.fill(),e.globalAlpha=.6;const[d,f]=null!=(w=null==o?void 0:o[1])?w:[-1,-1];for(let i=0;i<y.actions.length;i++){const n=y.actions[i],o=t[i],l=dt(o,d+r,f);l&&(e.globalAlpha=1),a.drawSprite(n.icon,"normal",e,o.x+o.width/2-10,o.y+o.height/2-10,20,b),l&&(e.globalAlpha=.6)}e.globalAlpha=1}}0!==r&&u(t[0])&&(e.beginPath(),e.moveTo(r+.5,0),e.lineTo(r+.5,i),e.strokeStyle=l.borderColor,e.lineWidth=1,e.stroke()),e.restore(),g=r+h})),e.beginPath(),e.moveTo(g+.5,0),e.lineTo(g+.5,i),e.moveTo(0,i+.5),e.lineTo(n,i+.5),e.strokeStyle=l.borderColor,e.lineWidth=1,e.stroke()}(e,t,i,o,a,r,d,h,0,p,g,v)}function gt(e,t,n,r,i,o,l,a){return e<=i+l&&i<=e+n&&t<=o+a&&o<=t+r}function vt(e,t,n,r,i,o,l,a,s,u,c,d,h,f){if(void 0===h||0===h.length)return;const p="sticky"===d?c(u-1):0;e.beginPath(),Ct(t,n,l,i,((t,n,r,i,o,l)=>{for(let a=0;a<h.length;a++){const n=h[a];if(-2===n[1]&&n[0]>=t[0]&&n[0]<=t[1]){e.rect(r,i,o,l);break}}})),xt(t,s,l,a,o,((t,n,l,a,s)=>{const g=Math.max(0,a-n),v=n+g+1,m=t.width-g-1;for(let r=0;r<h.length;r++){const n=h[r];if(n[0]===t.sourceIndex&&(-1===n[1]||void 0===n[1])){e.rect(v,i,m,o-i);break}}f&&Dt(s,l,r,u,c,d,((n,i,o,l)=>{let a=!1;for(let e=0;e<h.length;e++){const n=h[e];if(n[0]===t.sourceIndex&&n[1]===i){a=!0;break}}if(a){const t=n+1,i=(l?t+o-1:Math.min(t+o-1,r-p))-t;i>0&&e.rect(v,t,m,i)}}))})),e.clip()}function mt(e,t,n,r,i,o,l){var a,s;const[u,c]=e;let d,h;const f=null!=(s=null==(a=l.find((e=>!e.sticky)))?void 0:a.sourceIndex)?s:0;if(c>f){const e=Math.max(u,f);let a=t,s=r;for(let t=o.sourceIndex-1;t>=e;t--)a-=l[t].width,s+=l[t].width;for(let t=o.sourceIndex+1;t<=c;t++)s+=l[t].width;h={x:a,y:n,width:s,height:i}}if(f>u){const e=Math.min(c,f-1);let a=t,s=r;for(let t=o.sourceIndex-1;t>=u;t--)a-=l[t].width,s+=l[t].width;for(let t=o.sourceIndex+1;t<=e;t++)s+=l[t].width;d={x:a,y:n,width:s,height:i}}return[d,h]}function wt(e,t,n,r,i,o,l,a,s,u,c,d,h,f,p,g,v,m,w,y,b,D,x,C,k,E,S,F,A,M,R){var I;let T=null!=(I=null==w?void 0:w.length)?I:Number.MAX_SAFE_INTEGER;const H=performance.now();let O,B=`${A.baseFontStyle} ${A.fontFamily}`;e.font=B;const z=new Set;return xt(t,a,o,l,i,((t,o,l,a,I)=>{var P;const L=Math.max(0,a-o),_=o+L,N=i+1,W=t.width-L,j=r-i-1;if(m.length>0){let e=!1;for(let t=0;t<m.length;t++){const n=m[t];if(gt(_,N,W,j,n.x,n.y,n.width,n.height)){e=!0;break}}if(!e)return}const X=()=>{e.save(),e.beginPath(),e.rect(_,N,W,j),e.clip()},K=y.columns.hasIndex(t.sourceIndex),Y=d(null!=(P=t.group)?P:"").overrideTheme,U=void 0===t.themeOverride&&void 0===Y?A:{...A,...Y,...t.themeOverride},V=`${U.baseFontStyle} ${U.fontFamily}`;let G;return V!==B&&(B=V,e.font=V),X(),Dt(I,l,r,s,u,v,((r,i,l,u,d)=>{var v,I,P,L;if(i<0)return;if(void 0!==w){let e=!1;for(let n=0;n<w.length;n++){const r=w[n];if(r[0]===t.sourceIndex&&r[1]===i){e=!0;break}}if(!e)return}if(m.length>0){let e=!1;for(let n=0;n<m.length;n++){const i=m[n];if(gt(o,r,t.width,l,i.x,i.y,i.width,i.height)){e=!0;break}}if(!e)return}const _=y.rows.hasIndex(i),N=f.hasIndex(i),W=i<s?c([t.sourceIndex,i]):at;let j=o,Y=t.width,q=!1,Z=!1;if(void 0!==W.span){const[s,u]=W.span,c=`${i},${s},${u},${t.sticky}`;if(z.has(c))return void T--;{const i=mt(W.span,o,r,t.width,l,t,n),s=t.sticky?i[0]:i[1];if(t.sticky||void 0===i[0]||(Z=!0),void 0!==s){j=s.x,Y=s.width,z.add(c),e.restore(),G=void 0,e.save(),e.beginPath();const t=Math.max(0,a-s.x);e.rect(s.x+t,r,s.width-t,l),void 0===O&&(O=[]),O.push({x:s.x+t,y:r,width:s.width-t,height:l}),e.clip(),q=!0}}}const Q=null==h?void 0:h(i),J=d&&void 0!==(null==(v=t.trailingRowOptions)?void 0:v.themeOverride)?null==(I=t.trailingRowOptions)?void 0:I.themeOverride:void 0,ee=void 0===W.themeOverride&&void 0===Q&&void 0===J?U:{...U,...Q,...J,...W.themeOverride};e.beginPath();const te=[t.sourceIndex,i],ne=function(e,t,n){if(void 0===(null==n?void 0:n.current))return!1;const[r,i]=n.current.cell,[o,l]=e;return l===i&&(void 0===t.span?r===o:r>=t.span[0]&&r<=t.span[1])}(te,W,y);let re=function(e,t,n){let r=0;if(void 0===n.current)return r;Te(e,t,n.current.range)&&r++;for(const i of n.current.rangeStack)Te(e,t,i)&&r++;return r}(te,W,y);const ie=void 0!==W.span&&y.columns.some((e=>void 0!==W.span&&e>=W.span[0]&&e<=W.span[1]));ne&&!p&&g?re=0:ne&&(re=Math.max(re,1)),ie&&re++,ne||(_&&re++,K&&!u&&re++);const oe=W.kind===$.Protected?ee.bgCellMedium:ee.bgCell;let le;if((u||oe!==A.bgCell)&&(le=lt(oe,le)),re>0||N){N&&(le=lt(ee.bgHeader,le));for(let e=0;e<re;e++)le=lt(ee.accentLight,le)}else!0===(null==b?void 0:b.some((e=>e[0]===t.sourceIndex&&e[1]===i)))&&(le=lt(ee.bgSearchResult,le));if(void 0!==D)for(const e of D){const n=e.range;n.x<=t.sourceIndex&&t.sourceIndex<n.x+n.width&&n.y<=i&&i<n.y+n.height&&(le=lt(e.color,le))}void 0!==le&&(e.fillStyle=le,void 0!==G&&(G.fillStyle=le),e.fillRect(j,r,Y,l)),"faded"===W.style&&(e.globalAlpha=.6);const ae=E.find((e=>e.item[0]===t.sourceIndex&&e.item[1]===i));if(Y>10&&!Z){const n=`${ee.baseFontStyle} ${ee.fontFamily}`;n!==B&&(e.font=n,B=n),G=st(e,i,W,t.sourceIndex,j,r,Y,l,re>0,ee,x,C,k,null!=(P=null==ae?void 0:ae.hoverAmount)?P:0,S,F,H,G,M,R)}return"faded"===W.style&&(e.globalAlpha=1),T--,q&&(e.restore(),null==(L=null==G?void 0:G.deprep)||L.call(G,{ctx:e}),G=void 0,X(),B=V,e.font=V),T<=0})),e.restore(),T<=0})),O}function yt(e,t,n,r,i,o,l,a,s,u,c,d,h,f,p,g){var v;if(void 0===c.current||!l.some((e=>{var t;return e.sourceIndex===(null==(t=c.current)?void 0:t.cell[0])})))return;const[m,w]=c.current.cell,y=h(c.current.cell),b=null!=(v=y.span)?v:[m,m],D="sticky"!==f||"sticky"===f&&w===g-1?0:d(g-1)-1;let x;if(xt(l,r,i,o,u,((r,i,o,l,u)=>{if(!(r.sticky&&m>r.sourceIndex)&&!(r.sourceIndex<b[0]||r.sourceIndex>b[1]))return Dt(u,o,n,g,d,f,((o,u,c)=>{if(u!==w)return;let d=i,h=r.width;if(void 0!==y.span){const e=mt(y.span,i,o,r.width,c,r,a),t=r.sticky?e[0]:e[1];void 0!==t&&(d=t.x,h=t.width)}return x=()=>{var i,a,u,f;l>d&&!r.sticky&&(e.beginPath(),e.rect(l,0,t-l,n),e.clip()),e.beginPath(),e.rect(d+.5,o+.5,h,c),e.strokeStyle=null!=(a=null==(i=r.themeOverride)?void 0:i.accentColor)?a:s.accentColor,e.lineWidth=1,e.stroke(),p&&(e.beginPath(),e.rect(d+h-4,o+c-4,4,4),e.fillStyle=null!=(f=null==(u=r.themeOverride)?void 0:u.accentColor)?f:s.accentColor,e.fill())},!0})),!0})),void 0===x)return;const C=()=>{e.save(),e.beginPath(),e.rect(0,u,t,n-u-D),e.clip(),null==x||x(),e.restore()};return C(),C}function bt(e,t){var n,r;const{canvas:i,headerCanvas:o,width:l,height:a,cellXOffset:s,cellYOffset:u,translateX:c,translateY:d,mappedColumns:h,enableGroups:f,freezeColumns:p,dragAndDropState:g,theme:v,drawFocus:m,headerHeight:w,groupHeaderHeight:y,disabledRows:b,rowHeight:D,verticalBorder:x,isResizing:C,selection:k,fillHandle:E,lastRowSticky:S,rows:F,getCellContent:A,getGroupDetails:M,getRowThemeOverride:R,isFocused:T,drawCustomCell:H,drawHeaderCallback:B,prelightCells:z,highlightRegions:P,imageLoader:L,lastBlitData:_,hoverValues:$,hyperWrapping:N,hoverInfo:W,spriteManager:j,scrolling:X,touchMode:K,enqueue:Y,getCellRenderer:U,renderStrategy:V,bufferA:G,bufferB:q}=e;let{damage:Z}=e;if(0===l||0===a)return;const Q="double-buffer"===V,J=X?1:Math.ceil(null!=(n=window.devicePixelRatio)?n:1),ee="direct"!==V&&function(e,t){if(void 0===t)return!1;if(e.width!==t.width||e.height!==t.height||e.theme!==t.theme||e.headerHeight!==t.headerHeight||e.rowHeight!==t.rowHeight||e.rows!==t.rows||e.getRowThemeOverride!==t.getRowThemeOverride||e.isFocused!==t.isFocused||e.isResizing!==t.isResizing||e.verticalBorder!==t.verticalBorder||e.getCellContent!==t.getCellContent||e.highlightRegions!==t.highlightRegions||e.selection!==t.selection||e.dragAndDropState!==t.dragAndDropState||e.prelightCells!==t.prelightCells||e.touchMode!==t.touchMode||e.scrolling!==t.scrolling)return!1;if(e.mappedColumns!==t.mappedColumns){if(e.mappedColumns.length>100||e.mappedColumns.length!==t.mappedColumns.length)return!1;let n;for(let r=0;r<e.mappedColumns.length;r++){const i=e.mappedColumns[r],o=t.mappedColumns[r];if(O(i,o))continue;if(void 0!==n)return!1;if(i.width===o.width)return!1;const{width:l,...a}=i,{width:s,...u}=o;if(!O(a,u))return!1;n=r}return void 0===n||n}return!0}(e,t);i.width===l*J&&i.height===a*J||(i.width=l*J,i.height=a*J,i.style.width=l+"px",i.style.height=a+"px");const te=o,ne=f?y+w:w,re=ne+1;te.width===l*J&&te.height===re*J||(te.width=l*J,te.height=re*J,te.style.width=l+"px",te.style.height=re+"px"),!Q||G.width===l*J&&G.height===a*J||(G.width=l*J,G.height=a*J),!Q||q.width===l*J&&q.height===a*J||(q.width=l*J,q.height=a*J);const ie=_.current;if(!0===ee&&s===(null==ie?void 0:ie.cellXOffset)&&u===(null==ie?void 0:ie.cellYOffset)&&c===(null==ie?void 0:ie.translateX)&&d===(null==ie?void 0:ie.translateY))return;let oe=null;Q&&(oe=i.getContext("2d",{alpha:!1}));const le=te.getContext("2d",{alpha:!1});let ae;ae=Q?void 0!==Z?"b"===(null==ie?void 0:ie.lastBuffer)?q:G:"b"===(null==ie?void 0:ie.lastBuffer)?G:q:i;const se=ae.getContext("2d",{alpha:!1}),ue=Q?ae===G?q:G:i;if(null===le||null===se)return;const ce="number"===typeof D?()=>D:D;le.save(),le.beginPath(),se.save(),se.beginPath(),le.textBaseline="middle",se.textBaseline="middle",1!==J&&(le.scale(J,J),se.scale(J,J));const de=Be(h,s,l,g,c);let he=[];const fe=m&&(null==(r=k.current)?void 0:r.cell[1])===u&&0===d,pe=()=>{var e,t;pt(le,de,f,W,l,c,w,y,g,C,k,v,j,$,x,M,Z,B,K),ut(le,de,u,c,d,l,a,void 0,void 0,y,ne,ce,R,x,S,F,v,!0),le.beginPath(),le.moveTo(0,re-.5),le.lineTo(l,re-.5),le.strokeStyle=lt(null!=(t=null!=(e=v.headerBottomBorderColor)?e:v.horizontalBorderColor)?t:v.borderColor,v.bgHeader),le.stroke(),fe&&yt(le,l,a,u,c,d,de,h,v,ne,k,ce,A,S,E,F)};if(void 0!==Z){let e=!1;return Z=Z.filter((t=>(e=e||t[1]<0,t[1]<0||gt(s,u,de.length,300,t[0],t[1],1,1)||gt(0,u,p,300,t[0],t[1],1,1)||S&>(s,F-1,de.length,1,t[0],t[1],1,1)))),Z.length>0&&(vt(se,de,l,a,y,ne,c,d,u,F,ce,S,Z,!0),se.fillStyle=v.bgCell,se.fillRect(0,ne+1,l,a-ne-1),wt(se,de,h,a,ne,c,d,u,F,ce,A,M,R,b,T,m,S,he,Z,k,z,P,H,L,j,$,W,N,v,Y,U),E&&m&&void 0!==k.current&&Z.some((e=>{var t,n;return e[0]===(null==(t=k.current)?void 0:t.cell[0])&&e[1]===(null==(n=k.current)?void 0:n.cell[1])}))&&yt(se,l,a,u,c,d,de,h,v,ne,k,ce,A,S,E,F)),e&&(vt(le,de,l,ne,y,ne,c,d,u,F,ce,S,Z,!1),pe()),se.restore(),le.restore(),void(null!==oe&&(oe.fillStyle=v.bgCell,oe.fillRect(0,0,l,a),oe.drawImage(se.canvas,0,0)))}if(!0===ee&&s===(null==ie?void 0:ie.cellXOffset)&&c===(null==ie?void 0:ie.translateX)&&fe===(null==ie?void 0:ie.mustDrawFocusOnHeader)||pe(),!0===ee){I(void 0!==ue&&void 0!==ie);const{regions:e}=function(e,t,n,r,i,o,l,a,s,u,c,d,h,f,p,g,v){const m=[];let w=!1;e.imageSmoothingEnabled=!1;const y=Math.min(n.cellYOffset,i),b=Math.max(n.cellYOffset,i);let D=0;if("number"===typeof g)D+=(b-y)*g;else for(let M=y;M<b;M++)D+=g(M);i>n.cellYOffset&&(D=-D),D+=l-n.translateY;const x=Math.min(n.cellXOffset,r),C=Math.max(n.cellXOffset,r);let k=0;for(let M=x;M<C;M++)k+=f[M].width;r>n.cellXOffset&&(k=-k),k+=o-n.translateX;let E=Oe(p);if(E>0&&E++,0!==k&&0!==D)return{regions:[],yOnly:!1};const S=a?"number"===typeof g?g:g(c-1):0,F=s-E-Math.abs(k),A=u-d-S-Math.abs(D)-1;if(F>150&&A>150){w=0===k;const n={sx:0,sy:0,sw:s*h,sh:u*h,dx:0,dy:0,dw:s*h,dh:u*h};D>0?(n.sy=(d+1)*h,n.sh=A*h,n.dy=(D+d+1)*h,n.dh=A*h,m.push({x:0,y:d,width:s,height:D+1})):D<0&&(n.sy=(-D+d+1)*h,n.sh=A*h,n.dy=(d+1)*h,n.dh=A*h,m.push({x:0,y:u+D-S,width:s,height:-D+S})),k>0?(n.sx=E*h,n.sw=F*h,n.dx=(k+E)*h,n.dw=F*h,m.push({x:E-1,y:0,width:k+2,height:u})):k<0&&(n.sx=(E-k)*h,n.sw=F*h,n.dx=E*h,n.dw=F*h,m.push({x:s+k,y:0,width:-k,height:u})),e.setTransform(1,0,0,1,0,0),E>0&&0!==k&&0===D&&v&&e.drawImage(t,0,0,E*h,u*h,0,0,E*h,u*h),e.drawImage(t,n.sx,n.sy,n.sw,n.sh,n.dx,n.dy,n.dw,n.dh),e.scale(h,h)}return e.imageSmoothingEnabled=!0,{regions:m,yOnly:w}}(se,ue,ie,s,u,c,d,"sticky"===S,l,a,F,ne,J,h,de,D,Q);he=e}else if(!1!==ee){I(void 0!==ie);he=function(e,t,n,r,i,o,l,a,s,u){const c=[];return t!==e.cellXOffset||n!==e.cellYOffset||r!==e.translateX||i!==e.translateY||xt(s,n,r,i,a,((e,t,n,r)=>{if(e.sourceIndex===u){const e=Math.max(t,r)+1;return c.push({x:e,y:0,width:o-e,height:l}),!0}})),c}(ie,s,u,c,d,l,a,ne,de,ee)}!function(e,t,n,r,i,o,l,a,s){var u;let c=!1;for(const p of t)if(!p.sticky){c=l(p.sourceIndex);break}const d=null!=(u=s.horizontalBorderColor)?u:s.borderColor,h=s.borderColor,f=c?Oe(t):0;if(0!==f&&(e.beginPath(),e.moveTo(f+.5,0),e.lineTo(f+.5,r),e.strokeStyle=lt(h,s.bgCell),e.stroke()),i){const t=a(o-1);e.beginPath(),e.moveTo(0,r-t+.5),e.lineTo(n,r-t+.5),e.strokeStyle=lt(d,s.bgCell),e.stroke()}}(se,de,l,a,"sticky"===S,F,x,ce,v);const ge=m?yt(se,l,a,u,c,d,de,h,v,ne,k,ce,A,S,E,F):void 0,ve=function(e,t,n,r,i,o,l,a,s,u,c,d,h,f,p){const g=null==p?void 0:p.filter((e=>"no-outline"!==e.style));if(void 0===g||0===g.length)return;const v=g.map((e=>{var p,g,v,m,w;const y=e.range,b=Qe(y.x,y.y,t,n,c,u+c,r,i,o,l,f,s,h,a,d);if(1===y.width&&1===y.height)return y.x<s?[{color:e.color,style:null!=(p=e.style)?p:"dashed",rect:b},void 0]:[void 0,{color:e.color,style:null!=(g=e.style)?g:"dashed",rect:b}];const D=Qe(y.x+y.width-1,y.y+y.height-1,t,n,c,u+c,r,i,o,l,f,s,h,a,d);if(y.x<s&&y.x+y.width>=s){const p=Qe(s-1,y.y+y.height-1,t,n,c,u+c,r,i,o,l,f,s,h,a,d),g=Qe(s,y.y+y.height-1,t,n,c,u+c,r,i,o,l,f,s,h,a,d);return[{color:e.color,style:null!=(v=e.style)?v:"dashed",rect:{x:b.x,y:b.y,width:p.x+p.width-b.x,height:p.y+p.height-b.y}},{color:e.color,style:null!=(m=e.style)?m:"dashed",rect:{x:g.x,y:g.y,width:D.x+D.width-g.x,height:D.y+D.height-g.y}}]}return[void 0,{color:e.color,style:null!=(w=e.style)?w:"dashed",rect:{x:b.x,y:b.y,width:D.x+D.width-b.x,height:D.y+D.height-b.y}}]})),m=Oe(a),w=()=>{e.beginPath(),e.save();let r=!1;const i=t=>{r!==t&&(e.setLineDash(t?[5,3]:[]),r=t)};e.lineWidth=1;for(const l of v){const[r]=l;void 0!==r&>(0,0,t,n,r.rect.x,r.rect.y,r.rect.width,r.rect.height)&&(i("dashed"===r.style),e.strokeStyle=ot(r.color,1),e.strokeRect(r.rect.x+1,r.rect.y+1,r.rect.width-2,r.rect.height-2))}let o=!1;for(const l of v){const[,r]=l;void 0!==r&>(0,0,t,n,r.rect.x,r.rect.y,r.rect.width,r.rect.height)&&(i("dashed"===r.style),!o&&r.rect.x<m&&(e.rect(m,0,t,n),e.clip(),o=!0),e.strokeStyle=ot(r.color,1),e.strokeRect(r.rect.x+1,r.rect.y+1,r.rect.width-2,r.rect.height-2))}e.restore()};return w(),w}(se,l,a,s,u,c,d,h,p,w,y,D,"sticky"===S,F,P);if(se.fillStyle=v.bgCell,he.length>0){se.beginPath();for(const e of he)se.rect(e.x,e.y,e.width,e.height);se.clip(),se.fill(),se.beginPath()}else se.fillRect(0,0,l,a);const me=wt(se,de,h,a,ne,c,d,u,F,ce,A,M,R,b,T,m,S,he,Z,k,z,P,H,L,j,$,W,N,v,Y,U);!function(e,t,n,r,i,o,l,a,s,u,c,d,h,f,p,g,v,m){void 0===v&&t[t.length-1]===n[t.length-1]&&xt(t,s,l,a,o,((n,l,a,s,v)=>{if(n!==t[t.length-1])return;l+=n.width;const w=Math.max(l,s);w>r||(e.save(),e.beginPath(),e.rect(w,o+1,1e4,i-o-1),e.clip(),Dt(v,a,i,u,c,p,((t,n,r,i)=>{if(!i&&g.length>0&&!g.some((e=>gt(l,t,1e4,r,e.x,e.y,e.width,e.height))))return;const o=h.hasIndex(n),a=f.hasIndex(n);e.beginPath();const s=null==d?void 0:d(n),u=void 0===s?m:{...m,...s};u.bgCell!==m.bgCell&&(e.fillStyle=u.bgCell,e.fillRect(l,t,1e4,r)),a&&(e.fillStyle=u.bgHeader,e.fillRect(l,t,1e4,r)),o&&(e.fillStyle=u.accentLight,e.fillRect(l,t,1e4,r))})),e.restore())}))}(se,de,h,l,a,ne,c,d,u,F,ce,R,k.rows,b,S,he,Z,v),ut(se,de,u,c,d,l,a,he,me,y,ne,ce,R,x,S,F,v),null==ge||ge(),null==ve||ve(),null!==oe&&(oe.fillStyle=v.bgCell,oe.fillRect(0,0,l,a),oe.drawImage(se.canvas,0,0));const we=function(e,t,n,r,i,o,l,a,s){let u=0;return xt(e,o,r,i,n,((e,n,r,i,o)=>(Dt(o,r,t,l,a,s,((e,t,n,r)=>{r||(u=Math.max(t,u))})),!0))),u}(de,a,ne,c,d,u,F,ce,S);null==L||L.setWindow({x:s,y:u,width:de.length,height:we-u},p),_.current={cellXOffset:s,cellYOffset:u,translateX:c,translateY:d,mustDrawFocusOnHeader:fe,lastBuffer:Q?ae===G?"a":"b":void 0},se.restore(),le.restore()}function Dt(e,t,n,r,i,o,l){let a=t,s=e,u="sticky"===o;for(;a<n||u;){const e=u&&a>=n;e&&(u=!1,s=r-1);const t=i(s);e&&(a=n-t);if(!(u&&s===r-1)&&!0===l(a,s,t,e,"none"!==o&&s===r-1))break;if(e)break;a+=t,s++}}function xt(e,t,n,r,i,o){let l=0,a=0;const s=i+r;for(const u of e){if(!0===o(u,u.sticky?a:l+n,s,a,t))break;l+=u.width,a+=u.sticky?u.width:0}}function Ct(e,t,n,r,i){var o;let l=0,a=0;for(let s=0;s<e.length;s++){const u=e[s];let c=s+1,d=u.width;for(u.sticky&&(a+=d);c<e.length&&Ie(e[c].group,u.group)&&e[c].sticky===e[s].sticky;){const t=e[c];d+=t.width,c++,s++,t.sticky&&(a+=t.width)}const h=l+(u.sticky?0:n),f=u.sticky?0:Math.max(0,a-h),p=Math.min(d-f,t-(h+f));i([u.sourceIndex,e[c-1].sourceIndex],null!=(o=u.group)?o:"",h+f,0,p,r),l+=d}}function kt(e){const t=e-1;return t*t*t+1}function Et(e){return new class{constructor(e){this.fn=e}get value(){var e;return null!=(e=this.val)?e:this.val=this.fn()}}(e)}var St=Et((()=>window.navigator.userAgent.includes("Firefox"))),Ft=Et((()=>window.navigator.userAgent.includes("Mac OS")&&window.navigator.userAgent.includes("Safari")&&!window.navigator.userAgent.includes("Chrome"))),At=Et((()=>window.navigator.platform.toLowerCase().startsWith("mac")));var Mt=i.memo(i.forwardRef(((e,t)=>{var n,r,l,s,u,c,d,h;const{width:p,height:v,accessibilityHeight:m,columns:w,cellXOffset:y,cellYOffset:b,headerHeight:D,fillHandle:x=!1,groupHeaderHeight:C,rowHeight:k,rows:E,getCellContent:S,getRowThemeOverride:F,onHeaderMenuClick:A,enableGroups:M,isFilling:R,onCanvasFocused:T,onCanvasBlur:H,isFocused:O,selection:B,freezeColumns:z,onContextMenu:P,trailingRowType:L,fixedShadowX:_=!0,fixedShadowY:N=!0,drawFocusRing:W=!0,onMouseDown:j,onMouseUp:X,onMouseMoveRaw:K,onMouseMove:q,onItemHovered:Z,dragAndDropState:Q,firstColAccessible:J,onKeyDown:ee,onKeyUp:te,highlightRegions:ne,canvasRef:re,onDragStart:le,onDragEnd:se,eventTargetRef:ce,isResizing:de,isDragging:he,isDraggable:fe=!1,allowResize:pe,disabledRows:ge,getGroupDetails:ve,theme:me,prelightCells:we,headerIcons:De,verticalBorder:xe,drawHeader:Ce,drawCustomCell:ke,onCellFocused:Ee,onDragOverCell:Se,onDrop:Fe,onDragLeave:Ae,imageWindowLoader:Me,smoothScrollX:Re=!1,smoothScrollY:Ie=!1,experimental:Te,getCellRenderer:He}=e,ze=null!=(n=e.translateX)?n:0,Pe=null!=(r=e.translateY)?r:0,Le=Math.max(z,Math.min(w.length-1,y)),_e=i.useRef(null),$e=i.useMemo((()=>new ye),[]),Ne=null!=Me?Me:$e,We=i.useRef(),[je,Xe]=i.useState(!1),Ke=i.useRef([]),Ye=i.useRef(),[Ue,Ve]=i.useState(),[Ge,qe]=i.useState(),Ze=i.useRef(null),[Je,et]=i.useState(!1),nt=i.useRef(Je);nt.current=Je;const rt=i.useMemo((()=>new class{constructor(e,t){this.onSettled=t,this.spriteMap=new Map,this.inFlight=0,this.headerIcons={...tt,...e}}drawSprite(e,t,n,r,i,o,l,a=1){const[s,u]=function(e,t){return"normal"===e?[t.bgIconHeader,t.fgIconHeader]:"selected"===e?["white",t.accentColor]:[t.accentColor,t.bgHeader]}(t,l),c=o*Math.ceil(window.devicePixelRatio),d=`${s}_${u}_${c}_${e}`;let h=this.spriteMap.get(d);if(void 0===h){const t=this.headerIcons[e];if(void 0===t)return;h=document.createElement("canvas");const n=h.getContext("2d");if(null===n)return;const r=new Image;r.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(t({fgColor:u,bgColor:s}))}`,this.spriteMap.set(d,h);const i=r.decode();if(void 0===i)return;this.inFlight++,i.then((()=>{n.drawImage(r,0,0,c,c)})).finally((()=>{this.inFlight--,0===this.inFlight&&this.onSettled()}))}else a<1&&(n.globalAlpha=a),n.drawImage(h,0,0,c,c,r,i,o,o),a<1&&(n.globalAlpha=1)}}(De,(()=>{Dt.current=void 0,Ct.current()}))),[De]),it=M?C+D:D,ot=i.useRef(-1),lt=!0!==(null==Te?void 0:Te.enableFirefoxRescaling);i.useLayoutEffect((()=>{St.value&&1!==window.devicePixelRatio&&!lt&&(-1!==ot.current&&Xe(!0),window.clearTimeout(ot.current),ot.current=window.setTimeout((()=>{Xe(!1),ot.current=-1}),200))}),[b,Le,ze,Pe,lt]);const at=function(e,t){return o.a.useMemo((()=>e.map(((e,n)=>({...e,sourceIndex:n,sticky:n<t})))),[e,t])}(w,z),ut=i.useCallback(((e,t,n)=>{const r=e.getBoundingClientRect();if(t>=at.length||n>=E)return;const i=r.width/p,o=Qe(t,n,p,v,C,it,Le,b,ze,Pe,E,z,"sticky"===L,at,k);return 1!==i&&(o.x*=i,o.y*=i,o.width*=i,o.height*=i),o.x+=r.x,o.y+=r.y,o}),[p,v,C,it,Le,b,ze,Pe,E,z,L,at,k]),pt=i.useCallback(((e,t,n,r)=>{var i,o;const l=e.getBoundingClientRect(),a=l.width/p,s=(t-l.left)/a,u=(n-l.top)/a,c=Be(at,Le,p,void 0,ze);let d=0;r instanceof MouseEvent&&(d=r.button);const h=function(e,t,n){let r=0;for(const i of t){if(e<=(i.sticky?r:r+(null!=n?n:0))+i.width)return i.sourceIndex;r+=i.width}return-1}(s,c,ze),f=function(e,t,n,r,i,o,l,a,s,u){const c=r+i;if(n&&e<=i)return-2;if(e<=c)return-1;const d="number"===typeof l?l:l(o-1);if(u&&e>t-d)return o-1;const h=o-(u?1:0),f=e-(null!=s?s:0);if("number"===typeof l){const e=Math.floor((f-c)/l)+a;if(e>=h)return;return e}{let e=c;for(let t=a;t<h;t++){const n=l(t);if(f<=e+n)return t;e+=n}return}}(u,v,M,D,C,E,k,b,Pe,"sticky"===L),g=!0===(null==r?void 0:r.shiftKey),m=!0===(null==r?void 0:r.ctrlKey),w=!0===(null==r?void 0:r.metaKey),y=void 0!==r&&!(r instanceof MouseEvent),S=[Math.abs(s)<20?-1:Math.abs(l.width-s)<20?1:0,Math.abs(u)<20?-1:Math.abs(l.height-u)<20?1:0];let F;if(-1===h||u<0||s<0||void 0===f||s>p||u>v){const n=s>p?-1:s<0?1:0,r=u>v?1:u<0?-1:0;let i=!1;if(-1===h&&-1===f){const n=ut(e,at.length-1,-1);I(void 0!==n),i=t<n.x+n.width+5}F={kind:V,location:[-1!==h?h:s<0?0:at.length-1,null!=f?f:E-1],direction:[n,r],shiftKey:g,ctrlKey:m,metaKey:w,isEdge:i,isTouch:y,button:d,scrollEdge:S}}else if(f<=-1){let r=ut(e,h,f);I(void 0!==r);let l=void 0!==r&&r.x+r.width-t<=5;const a=h-1;t-r.x<=5&&a>=0?(l=!0,r=ut(e,a,f),I(void 0!==r),F={kind:M&&-2===f?U:Y,location:[a,f],bounds:r,group:null!=(i=at[a].group)?i:"",isEdge:l,shiftKey:g,ctrlKey:m,metaKey:w,isTouch:y,localEventX:t-r.x,localEventY:n-r.y,button:d,scrollEdge:S}):F={kind:M&&-2===f?U:Y,group:null!=(o=at[h].group)?o:"",location:[h,f],bounds:r,isEdge:l,shiftKey:g,ctrlKey:m,metaKey:w,isTouch:y,localEventX:t-r.x,localEventY:n-r.y,button:d,scrollEdge:S}}else{const r=ut(e,h,f);I(void 0!==r);F={kind:"cell",location:[h,f],bounds:r,isEdge:void 0!==r&&r.x+r.width-t<5,shiftKey:g,ctrlKey:m,isFillHandle:x&&void 0!==r&&r.x+r.width-t<6&&r.y+r.height-n<6,metaKey:w,isTouch:y,localEventX:t-r.x,localEventY:n-r.y,button:d,scrollEdge:S}}return F}),[at,Le,p,ze,v,M,D,C,E,k,b,Pe,L,ut,x]);const[gt]=null!=Ue?Ue:[],vt=i.useRef((e=>{})),mt=i.useRef(Ue);mt.current=Ue;const[wt,yt]=i.useMemo((()=>{const e=document.createElement("canvas"),t=document.createElement("canvas");return e.style.display="none",e.style.opacity="0",e.style.position="fixed",t.style.display="none",t.style.opacity="0",t.style.position="fixed",[e,t]}),[]);i.useLayoutEffect((()=>(document.documentElement.append(wt),document.documentElement.append(yt),()=>{wt.remove(),yt.remove()})),[wt,yt]);const Dt=i.useRef(),xt=i.useCallback((()=>{var e,t;const n=_e.current,r=Ze.current;if(null===n||null===r)return;const i=Dt.current,o={canvas:n,bufferA:wt,bufferB:yt,headerCanvas:r,width:p,height:v,cellXOffset:Le,cellYOffset:b,translateX:Math.round(ze),translateY:Math.round(Pe),mappedColumns:at,enableGroups:M,freezeColumns:z,dragAndDropState:Q,theme:me,headerHeight:D,groupHeaderHeight:C,disabledRows:null!=ge?ge:ue.empty(),rowHeight:k,verticalBorder:xe,isResizing:de,isFocused:O,selection:B,fillHandle:x,lastRowSticky:L,rows:E,drawFocus:W,getCellContent:S,getGroupDetails:null!=ve?ve:e=>({name:e}),getRowThemeOverride:F,drawCustomCell:ke,drawHeaderCallback:Ce,prelightCells:we,highlightRegions:ne,imageLoader:Ne,lastBlitData:Ye,damage:We.current,hoverValues:Ke.current,hoverInfo:mt.current,spriteManager:rt,scrolling:je,hyperWrapping:null!=(e=null==Te?void 0:Te.hyperWrapping)&&e,touchMode:Je,enqueue:vt.current,renderStrategy:null!=(t=null==Te?void 0:Te.renderStrategy)?t:Ft.value?"double-buffer":"single-buffer",getCellRenderer:He};void 0===o.damage?(Dt.current=o,bt(o,i)):bt(o,void 0)}),[wt,yt,p,v,Le,b,ze,Pe,at,M,z,Q,me,D,C,ge,k,xe,de,O,B,x,L,E,W,S,ve,F,ke,Ce,we,ne,Ne,rt,je,null==Te?void 0:Te.hyperWrapping,null==Te?void 0:Te.renderStrategy,Je,He]),Ct=i.useRef(xt);i.useLayoutEffect((()=>{xt(),Ct.current=xt}),[xt]),i.useLayoutEffect((()=>{(async()=>{var e;void 0!==(null==(e=null==document?void 0:document.fonts)?void 0:e.ready)&&(await document.fonts.ready,Dt.current=void 0,Ct.current())})()}),[]);const Et=i.useCallback((e=>{We.current=e,Ct.current(),We.current=void 0}),[]),At=function(e){const t=i.useRef([]),n=i.useRef(0),r=i.useRef(e);r.current=e;const o=i.useCallback((()=>{const e=()=>{const e=t.current;t.current=[],r.current(e),t.current.length>0?n.current++:n.current=0};window.requestAnimationFrame(n.current>600?()=>window.requestAnimationFrame(e):e)}),[]);return i.useCallback((e=>{(function(e,t){for(const n of e)if(n[0]===t[0]&&n[1]===t[1])return!0;return!1})(t.current,e)||(0===t.current.length&&o(),t.current.push(e))}),[o])}(Et);vt.current=At;const Mt=i.useCallback((e=>{Et(e.map((e=>e.cell)))}),[Et]);Ne.setCallback(Et);const[Rt,It]=i.useState(!1),[Tt,Ht]=null!=gt?gt:[],Ot=void 0!==Tt&&-1===Ht,Bt=void 0!==Tt&&-2===Ht;let zt,Pt=!1,Lt=!1;if(void 0!==Tt&&void 0!==Ht&&Ht>-1){const e=S([Tt,Ht]);Pt=e.kind===G.NewRow||e.kind===G.Marker&&"number"!==e.markerKind,Lt=e.kind===$.Boolean&&ae(e),zt=e.cursor}const _t=he?"grabbing":null!=Ge&&Ge||de?"col-resize":Rt||R?"crosshair":void 0!==zt?zt:Ot||Pt||Lt||Bt?"pointer":"default",$t=i.useMemo((()=>({contain:"strict",display:"block",cursor:_t})),[_t]),Nt=i.useRef("default"),Wt=null==ce?void 0:ce.current;null!==Wt&&void 0!==Wt&&Nt.current!==$t.cursor&&(Wt.style.cursor=Nt.current=$t.cursor);const jt=i.useCallback(((e,t,n,r)=>{if(void 0===ve)return;const i=ve(e);if(void 0!==i.actions){const e=ct(t,i.actions);for(const[o,l]of e.entries())if(dt(l,n+t.x,r+l.y))return i.actions[o]}}),[ve]),Xt=i.useCallback(((e,t,n,r)=>{const i=w[t];if(!he&&!de&&!0===i.hasMenu&&(null==Ge||!Ge)){const i=ut(e,t,-1);I(void 0!==i);const o=ht(i.x,i.y,i.width,i.height);if(n>o.x&&n<o.x+o.width&&r>o.y&&r<o.y+o.height)return i}}),[w,ut,Ge,he,de]),Kt=i.useRef(0),Yt=i.useRef(),Ut=i.useCallback((e=>{const t=_e.current,n=null==ce?void 0:ce.current;if(null===t||e.target!==t&&e.target!==n)return;let r,i;if(e instanceof MouseEvent?(r=e.clientX,i=e.clientY):(r=e.touches[0].clientX,i=e.touches[0].clientY),e.target===n&&null!==n){const e=n.getBoundingClientRect();if(r>e.left+n.clientWidth)return;if(i>e.top+n.clientHeight)return}const o=pt(t,r,i,e);if(Yt.current=o.location,o.isTouch&&(Kt.current=Date.now()),nt.current!==o.isTouch&&et(o.isTouch),o.kind!==Y||void 0===Xt(t,o.location[0],r,i)){if(o.kind===U){if(void 0!==jt(o.group,o.bounds,o.localEventX,o.localEventY))return}null==j||j(o),o.isTouch||!0===fe||fe===o.kind||e.preventDefault()}}),[ce,fe,pt,jt,Xt,j]);be("touchstart",Ut,window,!1),be("mousedown",Ut,window,!1);const Vt=i.useCallback((e=>{var t,n;const r=_e.current;if(void 0===X||null===r)return;const i=null==ce?void 0:ce.current,o=e.target!==r&&e.target!==i;let l,a;e instanceof MouseEvent?(l=e.clientX,a=e.clientY):(l=e.changedTouches[0].clientX,a=e.changedTouches[0].clientY);let s=pt(r,l,a,e);if(s.isTouch&&0!==Kt.current&&Date.now()-Kt.current>500&&(s={...s,isLongTouch:!0}),nt.current!==s.isTouch&&et(s.isTouch),!o&&e.cancelable&&e.preventDefault(),s.kind===Y&&Xt(r,s.location[0],l,a)){const[e]=s.location,i=Xt(r,e,l,a);if(void 0!==i)return void(0===s.button&&(null==(t=Yt.current)?void 0:t[0])===e&&-1===(null==(n=Yt.current)?void 0:n[1])?null==A||A(e,i):X(s,!0))}else if(s.kind===U){const e=jt(s.group,s.bounds,s.localEventX,s.localEventY);if(void 0!==e)return void(0===s.button&&e.onClick(s))}X(s,o)}),[X,ce,pt,Xt,A,jt]);be("mouseup",Vt,window,!1),be("touchend",Vt,window,!1);be("contextmenu",i.useCallback((e=>{const t=_e.current;if(null===t||void 0===P)return;const n=pt(t,e.clientX,e.clientY,e);P(n,(()=>{e.cancelable&&e.preventDefault()}))}),[pt,P]),null!=(l=null==ce?void 0:ce.current)?l:null,!1);const Gt=i.useCallback((e=>{We.current=e.map((e=>e.item)),Ke.current=e,Ct.current(),We.current=void 0}),[]),qt=i.useMemo((()=>new class{constructor(e){this.callback=e,this.currentHoveredItem=void 0,this.leavingItems=[],this.areSameItems=(e,t)=>(null==e?void 0:e[0])===(null==t?void 0:t[0])&&(null==e?void 0:e[1])===(null==t?void 0:t[1]),this.addToLeavingItems=e=>{this.leavingItems.some((t=>this.areSameItems(t.item,e.item)))||this.leavingItems.push(e)},this.removeFromLeavingItems=e=>{var t;const n=this.leavingItems.find((t=>this.areSameItems(t.item,e)));return this.leavingItems=this.leavingItems.filter((e=>e!==n)),null!=(t=null==n?void 0:n.hoverAmount)?t:0},this.cleanUpLeavingElements=()=>{this.leavingItems=this.leavingItems.filter((e=>e.hoverAmount>0))},this.shouldStep=()=>{const e=this.leavingItems.length>0,t=void 0!==this.currentHoveredItem&&this.currentHoveredItem.hoverAmount<1;return e||t},this.getAnimatingItems=()=>void 0!==this.currentHoveredItem?[...this.leavingItems,this.currentHoveredItem]:this.leavingItems.map((e=>({...e,hoverAmount:kt(e.hoverAmount)}))),this.step=e=>{if(void 0===this.lastAnimationTime)this.lastAnimationTime=e;else{const t=(e-this.lastAnimationTime)/80;for(const e of this.leavingItems)e.hoverAmount=a()(e.hoverAmount-t,0,1);void 0!==this.currentHoveredItem&&(this.currentHoveredItem.hoverAmount=a()(this.currentHoveredItem.hoverAmount+t,0,1));const n=this.getAnimatingItems();this.callback(n),this.cleanUpLeavingElements()}this.shouldStep()?(this.lastAnimationTime=e,window.requestAnimationFrame(this.step)):this.lastAnimationTime=void 0},this.setHovered=e=>{var t;if(!this.areSameItems(null==(t=this.currentHoveredItem)?void 0:t.item,e)){if(void 0!==this.currentHoveredItem&&this.addToLeavingItems(this.currentHoveredItem),void 0!==e){const t=this.removeFromLeavingItems(e);this.currentHoveredItem={item:e,hoverAmount:t}}else this.currentHoveredItem=void 0;void 0===this.lastAnimationTime&&window.requestAnimationFrame(this.step)}}}}(Gt)),[Gt]),Zt=i.useRef(qt);Zt.current=qt,i.useLayoutEffect((()=>{const e=Zt.current;if(void 0===gt||gt[1]<0)return void e.setHovered(gt);const t=S(gt),n=He(t);e.setHovered(void 0===n&&t.kind===$.Custom||!0===(null==n?void 0:n.needsHover)?gt:void 0)}),[S,He,gt]);const Qt=i.useRef();be("mousemove",i.useCallback((e=>{var t;const n=_e.current;if(null===n)return;const r=pt(n,e.clientX,e.clientY,e);if(i=r,o=Qt.current,i===o||(null==i?void 0:i.kind)===(null==o?void 0:o.kind)&&(null==i?void 0:i.location[0])===(null==o?void 0:o.location[0])&&(null==i?void 0:i.location[1])===(null==o?void 0:o.location[1])){if("cell"===r.kind||r.kind===Y||r.kind===U){const e=[r.location,[r.localEventX,r.localEventY]];if(Ve(e),mt.current=e,"cell"===r.kind){const e=S(r.location);e.kind!==$.Custom&&!0!==(null==(t=He(e))?void 0:t.needsHoverPosition)||Et([r.location])}else r.kind===U&&Et([r.location])}}else null==Z||Z(r),Ve(r.kind===V?void 0:[r.location,[r.localEventX,r.localEventY]]),Qt.current=r;var i,o;if(qe(r.kind===Y&&r.isEdge&&!0===pe),x&&void 0!==B.current){const[t,r]=B.current.cell,i=ut(n,t,r),o=e.clientX,l=e.clientY;I(void 0!==i),It(o>=i.x+i.width-6&&o<=i.x+i.width&&l>=i.y+i.height-6&&l<=i.y+i.height)}else It(!1);null==K||K(e),q(r)}),[pt,pe,x,B,K,q,Z,S,He,Et,ut]),window,!0);const Jt=i.useCallback((e=>{const t=_e.current;if(null===t)return;let n;void 0!==B.current&&(n=ut(t,B.current.cell[0],B.current.cell[1])),null==ee||ee({bounds:n,stopPropagation:()=>e.stopPropagation(),preventDefault:()=>e.preventDefault(),cancel:()=>{},ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,altKey:e.altKey,key:e.key,keyCode:e.keyCode,rawEvent:e})}),[ee,B,ut]),en=i.useCallback((e=>{const t=_e.current;if(null===t)return;let n;void 0!==B.current&&(n=ut(t,B.current.cell[0],B.current.cell[1])),null==te||te({bounds:n,stopPropagation:()=>e.stopPropagation(),preventDefault:()=>e.preventDefault(),cancel:()=>{},ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,altKey:e.altKey,key:e.key,keyCode:e.keyCode,rawEvent:e})}),[te,B,ut]),tn=i.useCallback((e=>{_e.current=e,void 0!==re&&(re.current=e)}),[re]);be("dragstart",i.useCallback((e=>{const t=_e.current;if(null===t||!1===fe||de)return void e.preventDefault();let n,r;const i=pt(t,e.clientX,e.clientY);if(!0!==fe&&i.kind!==fe)return void e.preventDefault();let o,l,a;let s=!1;if(null==le||le({...i,setData:(e,t)=>{n=e,r=t},setDragImage:(e,t,n)=>{o=e,l=t,a=n},preventDefault:()=>s=!0,defaultPrevented:()=>s}),s||void 0===n||void 0===r||null===e.dataTransfer)e.preventDefault();else if(e.dataTransfer.setData(n,r),e.dataTransfer.effectAllowed="copyLink",void 0!==o&&void 0!==l&&void 0!==a)e.dataTransfer.setDragImage(o,l,a);else{const[n,r]=i.location;if(void 0!==r){const i=document.createElement("canvas"),o=ut(t,n,r);I(void 0!==o),i.width=o.width,i.height=o.height;const l=i.getContext("2d");null!==l&&(l.textBaseline="middle",-1===r?(l.font=`${me.headerFontStyle} ${me.fontFamily}`,l.fillStyle=me.bgHeader,l.fillRect(0,0,i.width,i.height),ft(l,0,0,o.width,o.height,at[n],!1,me,!1,!1,0,rt,Ce,!1)):(l.font=`${me.baseFontStyle} ${me.fontFamily}`,l.fillStyle=me.bgCell,l.fillRect(0,0,i.width,i.height),st(l,r,S([n,r]),0,0,0,o.width,o.height,!1,me,ke,Ne,rt,1,void 0,!1,0,void 0,void 0,He))),i.style.left="-100%",i.style.position="absolute",document.body.append(i),e.dataTransfer.setDragImage(i,o.width/2,o.height/2),window.setTimeout((()=>{i.remove()}),0)}}}),[fe,de,pt,le,ut,me,at,rt,Ce,S,ke,Ne,He]),null!=(s=null==ce?void 0:ce.current)?s:null,!1,!1);const nn=i.useRef();be("dragover",i.useCallback((e=>{var t;const n=_e.current;if(void 0!==Fe&&e.preventDefault(),null===n||void 0===Se)return;const r=pt(n,e.clientX,e.clientY),[i,o]=r.location,l=i-(J?0:1),[a,s]=null!=(t=nn.current)?t:[];a===l&&s===o||(nn.current=[l,o],Se([l,o],e.dataTransfer))}),[J,pt,Se,Fe]),null!=(u=null==ce?void 0:ce.current)?u:null,!1,!1);be("dragend",i.useCallback((()=>{nn.current=void 0,null==se||se()}),[se]),null!=(c=null==ce?void 0:ce.current)?c:null,!1,!1);be("drop",i.useCallback((e=>{const t=_e.current;if(null===t||void 0===Fe)return;e.preventDefault();const n=pt(t,e.clientX,e.clientY),[r,i]=n.location;Fe([r-(J?0:1),i],e.dataTransfer)}),[J,pt,Fe]),null!=(d=null==ce?void 0:ce.current)?d:null,!1,!1);be("dragleave",i.useCallback((()=>{null==Ae||Ae()}),[Ae]),null!=(h=null==ce?void 0:ce.current)?h:null,!1,!1);const rn=i.useRef(B);rn.current=B;const on=i.useRef(null),ln=i.useCallback((e=>{var t;null!==_e.current&&_e.current.contains(document.activeElement)&&(null===e&&void 0!==rn.current.current?null==(t=null==re?void 0:re.current)||t.focus({preventScroll:!0}):null!==e&&e.focus({preventScroll:!0}),on.current=e)}),[re]);i.useImperativeHandle(t,(()=>({focus:()=>{var e;const t=on.current;null!==t&&document.contains(t)?t.focus({preventScroll:!0}):null==(e=null==re?void 0:re.current)||e.focus({preventScroll:!0})},getBounds:(e,t)=>{if(void 0!==re&&null!==re.current)return ut(re.current,e,null!=t?t:-1)},damage:Mt})),[re,Mt,ut]);const an=i.useRef(),sn=function(e,t,n){const[r,o]=i.useState(e),l=i.useRef(!0);i.useEffect((()=>()=>{l.current=!1}),[]);const a=i.useRef(g()((e=>{l.current&&o(e)}),n));return i.useLayoutEffect((()=>{l.current&&a.current((()=>e()))}),t),r}((()=>{var e,t,n,r;if(p<50)return null;let o=Be(at,Le,p,Q,ze);const l=J?0:-1;J||0!==(null==(e=o[0])?void 0:e.sourceIndex)||(o=o.slice(1));const[a,s]=null!=(n=null==(t=B.current)?void 0:t.cell)?n:[],u=null==(r=B.current)?void 0:r.range,c=o.map((e=>e.sourceIndex)),d=f()(b,Math.min(E,b+m));return void 0===a||void 0===s||c.includes(a)&&d.includes(s)||ln(null),i.createElement("table",{key:"access-tree",role:"grid","aria-rowcount":E+1,"aria-multiselectable":"true","aria-colcount":at.length+l},i.createElement("thead",{role:"rowgroup"},i.createElement("tr",{role:"row","aria-rowindex":1},o.map((e=>i.createElement("th",{role:"columnheader","aria-selected":B.columns.hasIndex(e.sourceIndex),"aria-colindex":e.sourceIndex+1+l,tabIndex:-1,onFocus:t=>{if(t.target!==on.current)return null==Ee?void 0:Ee([e.sourceIndex,-1])},key:e.sourceIndex},e.title))))),i.createElement("tbody",{role:"rowgroup"},d.map((e=>i.createElement("tr",{role:"row","aria-selected":B.rows.hasIndex(e),key:e,"aria-rowindex":e+2},o.map((t=>{const n=t.sourceIndex,r=`${n},${e}`,o=a===n&&s===e,c=void 0!==u&&n>=u.x&&n<u.x+u.width&&e>=u.y&&e<u.y+u.height,d=`glide-cell-${n}-${e}`,h=S([n,e]);return i.createElement("td",{key:r,role:"gridcell","aria-colindex":n+1+l,"aria-selected":c,"aria-readonly":ie(h)||!oe(h),id:d,"data-testid":d,onClick:()=>{const t=null==re?void 0:re.current;if(null!==t&&void 0!==t)return null==ee?void 0:ee({bounds:ut(t,n,e),cancel:()=>{},preventDefault:()=>{},stopPropagation:()=>{},ctrlKey:!1,key:"Enter",keyCode:13,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0})},onFocusCapture:t=>{var r,i;if(t.target!==on.current&&((null==(r=an.current)?void 0:r[0])!==n||(null==(i=an.current)?void 0:i[1])!==e))return an.current=[n,e],null==Ee?void 0:Ee([n,e])},ref:o?ln:void 0,tabIndex:-1},((e,t)=>{var n;if(e.kind===$.Custom)return e.copyData;const r=null==t?void 0:t(e);return null!=(n=null==r?void 0:r.getAccessibilityString(e))?n:""})(h,He))})))))))}),[p,at,Le,Q,ze,E,b,m,B,ln,S,re,ee,ut,Ee],200),un=_?Oe(at,Q):0,cn=0!==z&&_?Le>z?1:a()(-ze/100,0,1):0,dn=32*-b+Pe,hn=N?a()(-dn/100,0,1):0,fn=i.useMemo((()=>{if(!cn&&!hn)return null;const e={position:"absolute",top:0,left:un,width:p-un,height:v,opacity:cn,pointerEvents:"none",transition:Re?void 0:"opacity 0.2s",boxShadow:"inset 13px 0 10px -13px rgba(0, 0, 0, 0.2)"},t={position:"absolute",top:it,left:0,width:p,height:v,opacity:hn,pointerEvents:"none",transition:Ie?void 0:"opacity 0.2s",boxShadow:"inset 0 13px 10px -13px rgba(0, 0, 0, 0.2)"};return i.createElement(i.Fragment,null,cn>0&&i.createElement("div",{id:"shadow-x",style:e}),hn>0&&i.createElement("div",{id:"shadow-y",style:t}))}),[cn,hn,un,p,Re,it,v,Ie]),pn=i.useMemo((()=>({position:"absolute",top:0,left:0})),[]);return i.createElement(i.Fragment,null,i.createElement("canvas",{"data-testid":"data-grid-canvas",tabIndex:0,onKeyDown:Jt,onKeyUp:en,onFocus:T,onBlur:H,ref:tn,style:$t},sn),i.createElement("canvas",{ref:Ze,style:pn}),fn)})));function Rt(e,t,n,r){var i;return a()(Math.round(t-(null!=(i=e.growOffset)?i:0)),Math.ceil(n),Math.floor(r))}var It=e=>{var t;const[n,r]=i.useState(),[o,l]=i.useState(),[a,s]=i.useState(),[u,c]=i.useState(),[d,h]=i.useState(!1),[f,p]=i.useState(),[g,v]=i.useState(),[m,w]=i.useState(),[y,b]=i.useState(!1),[D,x]=i.useState(),{onHeaderMenuClick:C,getCellContent:k,onColumnMoved:E,onColumnResize:S,onColumnResizeStart:F,onColumnResizeEnd:A,gridRef:M,maxColumnWidth:R,minColumnWidth:I,onRowMoved:T,lockColumns:H,onMouseDown:O,onMouseUp:B,onItemHovered:z,onDragStart:P}=e,L=void 0!==(null!=(t=null!=S?S:A)?t:F),{columns:_,selection:$}=e,N=$.columns,W=i.useCallback((e=>{const[t,n]=e.location;void 0!==a&&u!==t&&t>=H?(h(!0),c(t)):void 0!==g&&void 0!==n?(b(!0),w(Math.max(0,n))):null==z||z(e)}),[a,g,u,z,H]),j=void 0!==E,X=i.useCallback((e=>{var t,n;if(0===e.button){const[i,o]=e.location;if("out-of-bounds"===e.kind&&e.isEdge&&L){const e=null==(t=null==M?void 0:M.current)?void 0:t.getBounds(_.length-1,-1);void 0!==e&&(r(e.x),l(_.length-1))}else"header"===e.kind&&i>=H?e.isEdge&&L?(r(e.bounds.x),l(i),null==F||F(_[i],e.bounds.width,i,e.bounds.width+(null!=(n=_[i].growOffset)?n:0))):"header"===e.kind&&j&&(p(e.bounds.x),s(i)):"cell"===e.kind&&H>0&&0===i&&void 0!==o&&void 0!==T&&(x(e.bounds.y),v(o))}null==O||O(e)}),[O,L,H,T,M,_,j,F]),K=i.useCallback(((e,t)=>{d||y||null==C||C(e,t)}),[d,y,C]),Y=i.useRef(-1),U=i.useCallback((()=>{Y.current=-1,v(void 0),w(void 0),x(void 0),b(!1),s(void 0),c(void 0),p(void 0),h(!1),l(void 0),r(void 0)}),[]),V=i.useCallback(((e,t)=>{var n,r,i;if(0===e.button){if(void 0!==o){if(!0===(null==N?void 0:N.hasIndex(o)))for(const t of N){if(t===o)continue;const e=_[t],r=Rt(e,Y.current,I,R);null==S||S(e,r,t,r+(null!=(n=e.growOffset)?n:0))}const e=Rt(_[o],Y.current,I,R);null==A||A(_[o],e,o,e+(null!=(r=_[o].growOffset)?r:0));for(const t of N){if(t===o)continue;const e=_[t],n=Rt(e,Y.current,I,R);null==A||A(e,n,t,n+(null!=(i=e.growOffset)?i:0))}}U(),void 0!==a&&void 0!==u&&(null==E||E(a,u)),void 0!==g&&void 0!==m&&(null==T||T(g,m))}null==B||B(e,t)}),[B,o,a,u,g,m,N,A,_,I,R,S,E,T,U]),G=i.useMemo((()=>{if(void 0!==a&&void 0!==u&&a!==u)return{src:a,dest:u}}),[a,u]),q=i.useCallback((e=>{var t,r;if(void 0!==a&&void 0!==f){Math.abs(e.clientX-f)>20&&h(!0)}else if(void 0!==g&&void 0!==D){Math.abs(e.clientY-D)>20&&b(!0)}else if(void 0!==o&&void 0!==n){const i=_[o],l=e.clientX-n,a=Rt(i,l,I,R);if(null==S||S(i,a,o,a+(null!=(t=i.growOffset)?t:0)),Y.current=l,(null==N?void 0:N.first())===o)for(const e of N){if(e===o)continue;const t=_[e],n=Rt(t,Y.current,I,R);null==S||S(t,n,e,n+(null!=(r=t.growOffset)?r:0))}}}),[a,f,g,D,o,n,_,I,R,S,N]),Z=i.useCallback((e=>{if(void 0===g||void 0===m)return k(e);let[t,n]=e;return n===m?n=g:(n>m&&(n-=1),n>=g&&(n+=1)),k([t,n])}),[g,m,k]),Q=i.useCallback((e=>{null==P||P(e),e.defaultPrevented()||U()}),[U,P]);return i.createElement(Mt,{accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,drawCustomCell:e.drawCustomCell,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,enableGroups:e.enableGroups,eventTargetRef:e.eventTargetRef,experimental:e.experimental,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,headerIcons:e.headerIcons,height:e.height,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,isDraggable:e.isDraggable,isFilling:e.isFilling,isFocused:e.isFocused,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDrop:e.onDrop,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,theme:e.theme,trailingRowType:e.trailingRowType,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,width:e.width,getCellContent:Z,isResizing:void 0!==o,onHeaderMenuClick:K,isDragging:d,onItemHovered:W,onDragStart:Q,onMouseDown:X,allowResize:L,onMouseUp:V,dragAndDropState:G,onMouseMoveRaw:q,ref:M})};var Tt=Object(r.a)("div")({name:"ScrollRegionStyle",class:"s1jz82f8",vars:{"s1jz82f8-0":[e=>e.isSafari?"scroll":"auto"]}});function Ht(e){e.stopPropagation()}var Ot=e=>{var t,n,r,o;const{children:l,clientHeight:a,scrollHeight:s,scrollWidth:u,update:c,draggable:d,className:h,preventDiagonalScrolling:f=!1,paddingBottom:p=0,paddingRight:g=0,rightElement:v,rightElementProps:m,scrollRef:w,scrollToEnd:y,initialSize:b,minimap:D}=e,x=[],C=null!=(t=null==m?void 0:m.sticky)&&t,k=null!=(n=null==m?void 0:m.fill)&&n,E=i.useRef(0),S=i.useRef(0),F=i.useRef(null),A=window.devicePixelRatio;i.useEffect((()=>{const e=F.current;null!==e&&!0===y&&(e.scrollLeft=e.scrollWidth-e.clientWidth)}),[y]);const M=i.useRef({scrollLeft:0,scrollTop:0,lockDirection:void 0}),R=i.useRef(null),I=function(e){const[t,n]=i.useState(!1),r=i.useRef(0);return be("touchstart",i.useCallback((()=>{window.clearTimeout(r.current),n(!0)}),[]),window,!0,!1),be("touchend",i.useCallback((t=>{0===t.touches.length&&(r.current=window.setTimeout((()=>n(!1)),e))}),[e]),window,!0,!1),t}(200),[T,H]=i.useState(!0),O=i.useRef(0);i.useEffect((()=>{if(!T||I||void 0===M.current.lockDirection)return;const e=F.current;if(null===e)return;const[t,n]=M.current.lockDirection;void 0!==t?e.scrollLeft=t:void 0!==n&&(e.scrollTop=n),M.current.lockDirection=void 0}),[I,T]);const B=i.useCallback((()=>{var e,t,n,r;const i=F.current;if(null===i)return;let o=i.scrollTop,l=i.scrollLeft;const a=M.current.scrollTop,u=M.current.scrollLeft,d=l-u,h=o-a;I&&0!==d&&0!==h&&(Math.abs(d)>3||Math.abs(h)>3)&&f&&void 0===M.current.lockDirection&&(M.current.lockDirection=Math.abs(d)<Math.abs(h)?[u,void 0]:[void 0,a]);const v=M.current.lockDirection;l=null!=(e=null==v?void 0:v[0])?e:l,o=null!=(t=null==v?void 0:v[1])?t:o,M.current.scrollLeft=l,M.current.scrollTop=o;const m=o,w=S.current-m,y=i.scrollHeight-i.clientHeight;if(S.current=m,y>0&&(Math.abs(w)>2e3||0===m||m===y)&&s>i.scrollHeight+5){const e=m/y,t=(s-i.clientHeight)*e;E.current=t-m}void 0!==v&&(window.clearTimeout(O.current),H(!1),O.current=window.setTimeout((()=>H(!0)),200)),c({x:l,y:m+E.current,width:i.clientWidth-g,height:i.clientHeight-p,paddingRight:null!=(r=null==(n=R.current)?void 0:n.clientWidth)?r:0})}),[p,g,s,c,f,I]),z=i.useRef(B);z.current=B;const P=i.useRef(),L=i.useRef(!1);i.useEffect((()=>{L.current?B():L.current=!0}),[B,p,g]);const _=i.useCallback((e=>{F.current=e,void 0!==w&&(w.current=e)}),[w]);let $=0,N=0;for(x.push(i.createElement("div",{key:$++,style:{width:u,height:0}}));N<s;){const e=Math.min(5e6,s-N);x.push(i.createElement("div",{key:$++,style:{width:0,height:e}})),N+=e}const{ref:W,width:j,height:X}=function(e){const t=Object(i.useRef)(null),[n,r]=Object(i.useState)({width:null==e?void 0:e[0],height:null==e?void 0:e[1]});return Object(i.useLayoutEffect)((()=>{const e=new window.ResizeObserver((e=>{for(const t of e){const{width:e,height:n}=t&&t.contentRect||{};r((t=>t.width===e&&t.height===n?t:{width:e,height:n}))}}));return t.current&&e.observe(t.current,void 0),()=>{e.disconnect()}}),[t.current]),{ref:t,...n}}(b);return(null==(r=P.current)?void 0:r.height)===X&&(null==(o=P.current)?void 0:o.width)===j||(window.setTimeout((()=>z.current()),0),P.current={width:j,height:X}),0===(null!=j?j:0)||0===(null!=X?X:0)?i.createElement("div",{ref:W}):i.createElement("div",{ref:W},i.createElement(Tt,{isSafari:Ft.value},D,i.createElement("div",{className:"dvn-underlay"},l),i.createElement("div",{ref:_,style:P.current,draggable:d,onDragStart:e=>{d||(e.stopPropagation(),e.preventDefault())},className:"dvn-scroller "+(null!=h?h:""),onScroll:B},i.createElement("div",{className:"dvn-scroll-inner"+(void 0===v?" hidden":"")},i.createElement("div",{className:"dvn-stack"},x),void 0!==v&&i.createElement(i.Fragment,null,!k&&i.createElement("div",{className:"dvn-spacer"}),i.createElement("div",{ref:R,onMouseDown:Ht,onMouseUp:Ht,onMouseMove:Ht,style:{height:X,maxHeight:a-Math.ceil(A%1),position:"sticky",top:0,paddingLeft:1,marginBottom:-40,marginRight:g,flexGrow:k?1:void 0,right:C?null!=g?g:0:void 0,pointerEvents:"auto"}},v))))))},Bt=Object(r.a)("div")({name:"MinimapStyle",class:"m15w2ly5"}),zt=e=>{var t,n,r;const{columns:o,rows:l,rowHeight:s,headerHeight:u,groupHeaderHeight:c,enableGroups:d,freezeColumns:h,experimental:f,clientSize:p,className:g,onVisibleRegionChanged:v,scrollToEnd:m,scrollRef:w,preventDiagonalScrolling:y,rightElement:b,rightElementProps:D,overscrollX:x,overscrollY:C,showMinimap:k=!1,initialSize:E,smoothScrollX:S=!1,smoothScrollY:F=!1,isDraggable:A}=e,{paddingRight:M,paddingBottom:R}=null!=f?f:{},[I,T]=p,H=i.useRef(),O=i.useRef(),B=i.useRef(),z=i.useRef(),P=i.useMemo((()=>{let e=Math.max(0,null!=x?x:0);for(const t of o)e+=t.width;return e}),[o,x]);let L=d?u+c:u;if("number"===typeof s)L+=l*s;else for(let i=0;i<l;i++)L+=s(i);void 0!==C&&(L+=C);const _=i.useRef(),$=i.useCallback((()=>{var e,t,n;if(void 0===_.current)return;const r={..._.current};let i=0,a=r.x<0?-r.x:0,u=0,c=0;r.x=r.x<0?0:r.x;let d=0;for(let l=0;l<h;l++)d+=o[l].width;for(const l of o){const e=i-d;if(r.x>=e+l.width)i+=l.width,c++,u++;else if(r.x>e)i+=l.width,S?a+=e-r.x:c++,u++;else{if(!(r.x+r.width>e))break;i+=l.width,u++}}let f=0,p=0,g=0;if("number"===typeof s)F?(p=Math.floor(r.y/s),f=p*s-r.y):p=Math.ceil(r.y/s),g=Math.ceil(r.height/s)+p,f<0&&g++;else{let e=0;for(let t=0;t<l;t++){const n=s(t),i=e+(F?0:n/2);if(r.y>=e+n)e+=n,p++,g++;else if(r.y>i)e+=n,F?f+=i-r.y:p++,g++;else{if(!(r.y+r.height>n/2+e))break;e+=n,g++}}}const m={x:c,y:p,width:u-c,height:g-p},w=H.current;void 0!==w&&w.y===m.y&&w.x===m.x&&w.height===m.height&&w.width===m.width&&O.current===a&&B.current===f&&r.width===(null==(e=z.current)?void 0:e[0])&&r.height===(null==(t=z.current)?void 0:t[1])||(null==v||v({x:c,y:p,width:u-c,height:g-p},r.width,r.height,null!=(n=r.paddingRight)?n:0,a,f),H.current=m,O.current=a,B.current=f,z.current=[r.width,r.height])}),[o,s,l,v,h,S,F]),N=i.useCallback((e=>{_.current=e,$()}),[$]);i.useEffect((()=>{$()}),[$]);const W=null!=(t=null==w?void 0:w.current)?t:void 0,j=a()(P/L,2/3,1.5),X=200,K=j>1?X:Math.ceil(X*j),Y=j>1?Math.ceil(X/j):X,U=K/P,V=Y/L,G=Math.min(I*Math.max(U,.01),K),q=Math.min(T*Math.max(V,.01),Y),Z=(null!=(n=null==W?void 0:W.scrollLeft)?n:0)/(P-I)*(K-G),Q=(null!=(r=null==W?void 0:W.scrollTop)?r:0)/(L-T)*(Y-q),J=i.useMemo((()=>{if(!k||0===G||0===q)return;const e=e=>{if(void 0===W)return;const t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.x-G/2,r=e.clientY-t.y-q/2,i=(P-W.clientWidth)*(n/(K-G)),o=(L-W.clientHeight)*(r/(Y-q));W.scrollTo({left:i,top:o,behavior:"mousemove"===e.type?"auto":"smooth"})};return i.createElement(Bt,{style:{width:K,height:Y},"data-testid":"minimap-container",onMouseMove:t=>{1===t.buttons&&e(t)},onClick:e},i.createElement("div",{className:"header"}),i.createElement("div",{className:"locationMarker",onDragStart:e=>e.preventDefault(),style:{left:Z,top:Q,width:G,height:q,borderRadius:Math.min(G,.2*q,9)}}))}),[Y,L,Z,W,k,Q,q,G,K,P]);return i.createElement(Ot,{scrollRef:w,minimap:J,className:g,preventDiagonalScrolling:y,draggable:!0===A||"string"===typeof A,scrollWidth:P+(null!=M?M:0),scrollHeight:L+(null!=R?R:0),clientHeight:T,rightElement:b,paddingBottom:R,paddingRight:M,rightElementProps:D,update:N,initialSize:E,scrollToEnd:m},i.createElement(It,{eventTargetRef:w,width:I,height:T,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,prelightCells:e.prelightCells,rowHeight:e.rowHeight,rows:e.rows,selection:e.selection,theme:e.theme,trailingRowType:e.trailingRowType,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,drawCustomCell:e.drawCustomCell,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY}))},Pt=Object(r.a)("div")({name:"SearchWrapper",class:"sxep88s",vars:{"sxep88s-0":[e=>e.showSearch?0:400,"px"]}}),Lt=i.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},i.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 244l144-144 144 144M256 120v292"})),_t=i.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},i.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"48",d:"M112 268l144 144 144-144M256 392V100"})),$t=i.createElement("svg",{className:"button-icon",viewBox:"0 0 512 512"},i.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"32",d:"M368 368L144 144M368 144L144 368"})),Nt=e=>{const{canvasRef:t,cellYOffset:n,rows:r,columns:o,searchInputRef:l,getCellsForSelection:a,onSearchResultsChanged:s,showSearch:u=!1,onSearchClose:c}=e,[d]=i.useState((()=>"search-box-"+Math.round(1e3*Math.random()))),[h,f]=i.useState(""),[p,g]=i.useState(),v=i.useRef(p);v.current=p;const m=i.useRef(new AbortController),w=i.useRef(),[y,b]=i.useState([]),D=i.useCallback((()=>{void 0!==w.current&&(window.cancelAnimationFrame(w.current),w.current=void 0,m.current.abort())}),[]),x=i.useRef(n);x.current=n;const C=i.useCallback((e=>{const t=new RegExp(e.replace(/([$()*+.?[\\\]^{|}-])/g,"\\$1"),"i");let n=x.current,i=Math.min(10,r),l=0;g(void 0),b([]);const u=[],c=async()=>{var e,d;if(void 0===a)return;const h=performance.now(),f=r-l;let p=a({x:0,y:n,width:o.length,height:Math.min(i,f,r-n)},m.current.signal);"function"===typeof p&&(p=await p());let y=!1;for(const[r,i]of p.entries())for(const[e,o]of i.entries()){let i;switch(o.kind){case $.Text:case $.Number:i=o.displayData;break;case $.Uri:case $.Markdown:i=o.data;break;case $.Boolean:i="boolean"===typeof o.data?o.data.toString():void 0;break;case $.Image:case $.Bubble:i=o.data.join("\ud83d\udc33");break;case $.Custom:i=o.copyData}void 0!==i&&t.test(i)&&(u.push([e,r+n]),y=!0)}const D=performance.now();y&&b([...u]),l+=p.length,I(l<=r);const x=null!=(d=null==(e=v.current)?void 0:e.selectedIndex)?d:-1;g({results:u.length,rowsSearched:l,selectedIndex:x}),null==s||s(u,x),n+i>=r?n=0:n+=i;const C=D-h,k=10/Math.max(C,1);i=Math.ceil(i*k),l<r&&u.length<1e3&&(w.current=window.requestAnimationFrame(c))};D(),w.current=window.requestAnimationFrame(c)}),[D,o.length,a,s,r]),k=i.useCallback((()=>{var e;null==c||c(),g(void 0),b([]),null==s||s([],-1),D(),null==(e=null==t?void 0:t.current)||e.focus()}),[D,t,c,s]),E=i.useCallback((e=>{f(e.target.value),""===e.target.value?(g(void 0),b([]),D()):C(e.target.value)}),[C,D]);i.useEffect((()=>{u&&null!==l.current&&(f(""),l.current.focus({preventScroll:!0}))}),[u,l]);const S=i.useCallback((e=>{var t;if(null==(t=null==e?void 0:e.stopPropagation)||t.call(e),void 0===p)return;const n=(p.selectedIndex+1)%p.results;g({...p,selectedIndex:n}),null==s||s(y,n)}),[p,s,y]),F=i.useCallback((e=>{var t;if(null==(t=null==e?void 0:e.stopPropagation)||t.call(e),void 0===p)return;let n=(p.selectedIndex-1)%p.results;n<0&&(n+=p.results),g({...p,selectedIndex:n}),null==s||s(y,n)}),[s,y,p]),A=i.useCallback((e=>{(e.ctrlKey||e.metaKey)&&"KeyF"===e.nativeEvent.code||"Escape"===e.key?(k(),e.stopPropagation(),e.preventDefault()):"Enter"===e.key&&(e.shiftKey?F():S())}),[k,S,F]);i.useEffect((()=>()=>{D()}),[D]);const M=i.useMemo((()=>{var e,t,n;let o;void 0!==p&&(o=p.results>=1e3?"over 1000":`${p.results} result${1!==p.results?"s":""}`,p.selectedIndex>=0&&(o=`${p.selectedIndex+1} of ${o}`));const a=e=>{e.stopPropagation()},s={width:`${Math.floor((null!=(e=null==p?void 0:p.rowsSearched)?e:0)/r*100)}%`};return i.createElement(Pt,{showSearch:u,onMouseDown:a,onMouseMove:a,onMouseUp:a,onClick:a},i.createElement("div",{className:"search-bar-inner"},i.createElement("input",{id:d,"aria-hidden":!u,"data-testid":"search-input",ref:l,onChange:E,value:h,tabIndex:u?void 0:-1,onKeyDownCapture:A}),i.createElement("button",{"aria-label":"Previous Result","aria-hidden":!u,tabIndex:u?void 0:-1,onClick:F,disabled:0===(null!=(t=null==p?void 0:p.results)?t:0)},Lt),i.createElement("button",{"aria-label":"Next Result","aria-hidden":!u,tabIndex:u?void 0:-1,onClick:S,disabled:0===(null!=(n=null==p?void 0:p.results)?n:0)},_t),void 0!==c&&i.createElement("button",{"aria-label":"Close Search","aria-hidden":!u,"data-testid":"search-close-button",tabIndex:u?void 0:-1,onClick:k},$t)),void 0!==p?i.createElement(i.Fragment,null,i.createElement("div",{className:"search-status"},i.createElement("div",{"data-testid":"search-result-area"},o)),i.createElement("div",{className:"search-progress",style:s})):i.createElement("div",{className:"search-status"},i.createElement("label",{htmlFor:d},"Type to search")))}),[k,S,F,E,c,A,r,p,h,u,d,l]);return i.createElement(i.Fragment,null,i.createElement(zt,{prelightCells:y,accessibilityHeight:e.accessibilityHeight,canvasRef:e.canvasRef,cellXOffset:e.cellXOffset,cellYOffset:e.cellYOffset,className:e.className,clientSize:e.clientSize,columns:e.columns,disabledRows:e.disabledRows,enableGroups:e.enableGroups,fillHandle:e.fillHandle,firstColAccessible:e.firstColAccessible,fixedShadowX:e.fixedShadowX,fixedShadowY:e.fixedShadowY,freezeColumns:e.freezeColumns,getCellContent:e.getCellContent,getCellRenderer:e.getCellRenderer,getGroupDetails:e.getGroupDetails,getRowThemeOverride:e.getRowThemeOverride,groupHeaderHeight:e.groupHeaderHeight,headerHeight:e.headerHeight,highlightRegions:e.highlightRegions,imageWindowLoader:e.imageWindowLoader,initialSize:e.initialSize,isFilling:e.isFilling,isFocused:e.isFocused,lockColumns:e.lockColumns,maxColumnWidth:e.maxColumnWidth,minColumnWidth:e.minColumnWidth,onHeaderMenuClick:e.onHeaderMenuClick,onMouseMove:e.onMouseMove,onVisibleRegionChanged:e.onVisibleRegionChanged,overscrollX:e.overscrollX,overscrollY:e.overscrollY,preventDiagonalScrolling:e.preventDiagonalScrolling,rightElement:e.rightElement,rightElementProps:e.rightElementProps,rowHeight:e.rowHeight,rows:e.rows,scrollRef:e.scrollRef,selection:e.selection,showMinimap:e.showMinimap,theme:e.theme,trailingRowType:e.trailingRowType,translateX:e.translateX,translateY:e.translateY,verticalBorder:e.verticalBorder,drawCustomCell:e.drawCustomCell,drawFocusRing:e.drawFocusRing,drawHeader:e.drawHeader,experimental:e.experimental,gridRef:e.gridRef,headerIcons:e.headerIcons,isDraggable:e.isDraggable,onCanvasBlur:e.onCanvasBlur,onCanvasFocused:e.onCanvasFocused,onCellFocused:e.onCellFocused,onColumnMoved:e.onColumnMoved,onColumnResize:e.onColumnResize,onColumnResizeEnd:e.onColumnResizeEnd,onColumnResizeStart:e.onColumnResizeStart,onContextMenu:e.onContextMenu,onDragEnd:e.onDragEnd,onDragLeave:e.onDragLeave,onDragOverCell:e.onDragOverCell,onDragStart:e.onDragStart,onDrop:e.onDrop,onItemHovered:e.onItemHovered,onKeyDown:e.onKeyDown,onKeyUp:e.onKeyUp,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onRowMoved:e.onRowMoved,smoothScrollX:e.smoothScrollX,smoothScrollY:e.smoothScrollY,scrollToEnd:e.scrollToEnd}),M)},Wt=Object(r.a)("input")({name:"RenameInput",class:"r1kzy40b",vars:{"r1kzy40b-0":[e=>Math.max(16,e.targetHeight-10),"px"]}}),jt=e=>{const{bounds:t,group:n,onClose:r,canvasBounds:i,onFinish:l}=e,[a,s]=o.a.useState(n);return o.a.createElement(B,{style:{position:"absolute",left:t.x-i.left+1,top:t.y-i.top,width:t.width-2,height:t.height},className:"c1sqdbw3",onClickOutside:r},o.a.createElement(Wt,{targetHeight:t.height,"data-testid":"group-rename-input",value:a,onBlur:r,onFocus:e=>e.target.setSelectionRange(0,a.length),onChange:e=>s(e.target.value),onKeyDown:e=>{"Enter"===e.key?l(a):"Escape"===e.key&&r()},autoFocus:!0}))},Xt=150;function Kt(e,t,n,r,i,o,l,a,s){let u=[];if(void 0!==i&&u.push(...i.map((e=>e[r])).map((n=>function(e,t,n,r){var i,o;if(t.kind===$.Custom)return Xt;const l=r(t);return null!=(o=null==(i=null==l?void 0:l.measure)?void 0:i.call(l,e,t,n))?o:Xt}(e,n,t,s)))),u.length>5&&a){const e=u.reduce(((e,t)=>e+t))/u.length;u=u.filter((t=>t<2*e))}u.push(e.measureText(n.title).width+16+(void 0===n.icon?0:28));const c=Math.max(...u),d=Math.max(Math.ceil(o),Math.min(Math.floor(l),Math.ceil(c)));return{...n,width:d}}function Yt(e,t){if(0===e.length)return!1;let n=!1,r=!1,i=!1,o=!1;const l=e.split("+");if(!function(e,t){if(void 0===e)return!1;if(e.length>1&&e.startsWith("_")){if(Number.parseInt(e.slice(1))!==t.keyCode)return!1}else if(e!==t.key)return!1;return!0}(l.pop(),t))return!1;for(const a of l)switch(a){case"ctrl":n=!0;break;case"shift":r=!0;break;case"alt":i=!0;break;case"meta":o=!0;break;case"primary":At.value?o=!0:n=!0}return t.altKey===i&&t.ctrlKey===n&&t.shiftKey===r&&t.metaKey===o}function Ut(e){return e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1).replace(/""/g,'"')),e}function Vt(e){var t,n;(n=t||(t={}))[n.None=0]="None",n[n.inString=1]="inString",n[n.inStringPostQuote=2]="inStringPostQuote";const r=[];let i=[],o=0,l=0;e=e.replace(/\r\n/g,"\n");let a=0;for(const s of e){switch(l){case 0:"\t"===s||"\n"===s?(i.push(e.slice(o,a)),o=a+1,"\n"===s&&(r.push(i),i=[])):'"'===s&&(l=1);break;case 1:'"'===s&&(l=2);break;case 2:'"'===s?l=1:"\t"===s||"\n"===s?(i.push(Ut(e.slice(o,a))),o=a+1,"\n"===s&&(r.push(i),i=[]),l=0):l=0}a++}return o<e.length&&i.push(Ut(e.slice(o,e.length))),r.push(i),r}function Gt(e){var t,n;const r=[e],i=[];let o;for(;r.length>0;){const e=r.pop();if(void 0===e)break;e instanceof HTMLTableElement||"TBODY"===e.nodeName?r.push(...[...e.children].reverse()):e instanceof HTMLTableRowElement?(void 0!==o&&i.push(o),o=[],r.push(...[...e.children].reverse())):e instanceof HTMLTableCellElement&&(null==o||o.push(null!=(n=null!=(t=e.innerText)?t:e.textContent)?n:""))}return void 0!==o&&i.push(o),i}function qt(e){return/[\t\n"]/.test(e)&&(e=`"${e.replace(/"/g,'""')}"`),e}function Zt(e,t,n){var r,i,o,l;const a=(e,n,r)=>{var i,o;const l=t[n];if(void 0!==e.span&&e.span[0]!==l)return"";switch(e.kind){case $.Text:case $.Number:return qt(r?null!=(o=null==(i=e.data)?void 0:i.toString())?o:"":e.displayData);case $.Markdown:case $.RowID:case $.Uri:return qt(e.data);case $.Image:case $.Bubble:return e.data.reduce(((e,t)=>`${qt(e)},${qt(t)}`));case $.Boolean:return(e=>{switch(e){case!0:return"TRUE";case!1:return"FALSE";case K:return"INDETERMINATE";case X:return"";default:T()}})(e.data);case $.Loading:return r?"":"#LOADING";case $.Protected:return r?"":"************";case $.Drilldown:return e.data.map((e=>e.text)).reduce(((e,t)=>`${qt(e)},${qt(t)}`));case $.Custom:return qt(e.copyData);default:T()}},s=e.map((e=>e.map(((e,t)=>a(e,t,!1))).join("\t"))).join("\n");if(void 0!==(null==(r=window.navigator.clipboard)?void 0:r.write)||void 0!==n){const t=document.createElement("tbody");for(const n of e){const e=document.createElement("tr");for(const[t,r]of n.entries()){const n=document.createElement("td");if(r.kind===$.Uri){const e=document.createElement("a");e.href=r.data,e.innerText=r.data,n.append(e)}else n.innerText=a(r,t,!0);e.append(n)}t.append(e)}if(void 0!==(null==(i=window.navigator.clipboard)?void 0:i.write))window.navigator.clipboard.write([new ClipboardItem({"text/plain":new Blob([s],{type:"text/plain"}),"text/html":new Blob([`<table>${t.outerHTML}</table>`],{type:"text/html"})})]);else if(void 0!==n&&null!==(null==n?void 0:n.clipboardData))try{n.clipboardData.setData("text/plain",s),n.clipboardData.setData("text/html",`<table>${t.outerHTML}</table>`)}catch(u){null==(o=window.navigator.clipboard)||o.writeText(s)}}else null==(l=window.navigator.clipboard)||l.writeText(s);null==n||n.preventDefault()}function Qt(e){return"string"===typeof e?e:`${e}px`}var Jt=Object(r.a)("div")({name:"Wrapper",class:"wzg2m5k",vars:{"wzg2m5k-0":[e=>e.innerWidth],"wzg2m5k-1":[e=>e.innerHeight]}}),en=e=>{const{inWidth:t,inHeight:n,children:r,...o}=e;return i.createElement(Jt,{innerHeight:Qt(n),innerWidth:Qt(t),...o},r)};function tn(e){return!0!==e}var nn={getAccessibilityString:e=>{var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:"false"},kind:$.Boolean,needsHover:!0,useLabel:!1,needsHoverPosition:!0,measure:()=>50,draw:e=>function(e,t,n){if(!n&&t===X)return;const{ctx:r,hoverAmount:i,theme:o,rect:l,highlighted:a,hoverX:s,hoverY:u}=e,{x:c,y:d,width:h,height:f}=l;let p=n?.65+.35*i:.4;t===X&&(p*=i),0!==p&&(r.globalAlpha=p,Ue(r,o,t,c,d,h,f,a,s,u),r.globalAlpha=1)}(e,e.cell.data,ae(e.cell)),onDelete:e=>({...e,data:!1}),onClick:e=>{const{cell:t,posX:n,posY:r,bounds:i}=e;if(ae(t)&&Math.abs(n-i.width/2)<=i.height/3.4&&Math.abs(r-i.height/2)<=i.height/3.4)return{...t,data:tn(t.data)}},onPaste:(e,t)=>{let n=X;return"true"===e.toLowerCase()?n=!0:"false"===e.toLowerCase()?n=!1:"indeterminate"===e.toLowerCase()&&(n=K),n===t.data?void 0:{...t,data:n}}};var rn=Object(r.a)("div")({name:"BubblesOverlayEditorStyle",class:"b1bqsp5z"}),on=e=>{const{bubbles:t}=e;return i.createElement(rn,null,t.map(((e,t)=>i.createElement("div",{key:t,className:"boe-bubble"},e))),i.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},ln={getAccessibilityString:e=>{var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:$.Bubble,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,n)=>t.data.reduce(((t,n)=>e.measureText(n).width+t+20),0)+2*n.cellHorizontalPadding-4,draw:e=>function(e,t){const{rect:n,theme:r,ctx:i,highlighted:o}=e,{x:l,y:a,width:s,height:u}=n;let c=l+r.cellHorizontalPadding;const d=[];for(const h of t){if(c>l+s)break;const e=_e(h,i,`${r.baseFontStyle} ${r.fontFamily}`).width;d.push({x:c,width:e}),c+=e+16+4}i.beginPath();for(const h of d)Ge(i,h.x,a+(u-20)/2,h.width+16,20,10);i.fillStyle=o?r.bgBubbleSelected:r.bgBubble,i.fill();for(const[h,f]of d.entries())i.beginPath(),i.fillStyle=r.textBubble,i.fillText(t[h],f.x+8,a+u/2+$e(i,r))}(e,e.cell.data),provideEditor:()=>e=>{const{value:t}=e;return i.createElement(on,{bubbles:t.data})},onPaste:()=>{}},an=Object(r.a)("div")({name:"DrilldownOverlayEditorStyle",class:"df2kt4a"}),sn=e=>{const{drilldowns:t}=e;return i.createElement(an,null,t.map(((e,t)=>i.createElement("div",{key:t,className:"doe-bubble"},void 0!==e.img&&i.createElement("img",{src:e.img}),i.createElement("div",null,e.text)))))},un={getAccessibilityString:e=>e.data.map((e=>e.text)).join(", "),kind:$.Drilldown,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:(e,t,n)=>t.data.reduce(((t,n)=>e.measureText(n.text).width+t+20+(void 0!==n.img?18:0)),0)+2*n.cellHorizontalPadding-4,draw:e=>Ze(e,e.cell.data),provideEditor:()=>e=>{const{value:t}=e;return i.createElement(sn,{drilldowns:t.data})},onPaste:()=>{}},cn=Object(r.a)("div")({name:"ImageOverlayEditorStyle",class:"i1eozt10"}),dn=e=>{const{urls:t,canWrite:n,onEditClick:r,renderImage:o}=e,l=t.filter((e=>""!==e));if(0===l.length)return null;const a=l.length>1;return i.createElement(cn,{"data-testid":"GDG-default-image-overlay-editor"},i.createElement(A.Carousel,{showArrows:a,showThumbs:!1,swipeable:a,emulateTouch:a,infiniteLoop:a},l.map((e=>{var t;const n=null!=(t=null==o?void 0:o(e))?t:i.createElement("img",{draggable:!1,src:e});return i.createElement("div",{className:"centering-container",key:e},n)}))),n&&r&&i.createElement("button",{className:"edit-icon",onClick:r},i.createElement(ke,null)))},hn={getAccessibilityString:e=>e.data.join(", "),kind:$.Image,needsHover:!1,useLabel:!1,needsHoverPosition:!1,draw:e=>{var t;return function(e,t,n=4){const{rect:r,col:i,row:o,theme:l,ctx:a,imageLoader:s}=e,{x:u,y:c,height:d}=r;let h=u+l.cellHorizontalPadding;for(const f of t){if(0===f.length)continue;const e=s.loadOrGetImage(f,i,o);if(void 0!==e){const t=d-2*l.cellVerticalPadding,r=e.width*(t/e.height);n>0&&(Ge(a,h,c+l.cellVerticalPadding,r,t,n),a.save(),a.clip()),a.drawImage(e,h,c+l.cellVerticalPadding,r,t),n>0&&a.restore(),h+=r+4}}}(e,null!=(t=e.cell.displayData)?t:e.cell.data,e.cell.rounding)},measure:(e,t)=>50*t.data.length,onDelete:e=>({...e,data:[]}),provideEditor:()=>e=>{const{value:t,onFinishedEditing:n,imageEditorOverride:r}=e,o=null!=r?r:dn;return i.createElement(o,{urls:t.data,canWrite:t.allowAdd,onCancel:n,onChange:e=>{n({...t,data:[e]})}})},onPaste:(e,t)=>{const n=(e=e.trim()).split(",").map((e=>{try{return new URL(e),e}catch(t){return}})).filter((e=>void 0!==e));if(n.length!==t.data.length||!n.every(((e,n)=>e===t.data[n])))return{...t,data:n}}},fn={getAccessibilityString:()=>"",kind:$.Loading,needsHover:!1,useLabel:!1,needsHoverPosition:!1,measure:()=>120,draw:()=>{},onPaste:()=>{}},pn=Object(r.a)("div")({name:"MarkdownContainer",class:"mlbeo71"}),gn=class extends o.a.PureComponent{constructor(){super(...arguments),this.targetElement=null,this.containerRefHook=e=>{this.targetElement=e,this.renderMarkdownIntoDiv()}}renderMarkdownIntoDiv(){const{targetElement:e,props:t}=this;if(null===e)return;const{contents:n,createNode:r}=t,i=Object(M.marked)(n),o=document.createRange();o.selectNodeContents(e),o.deleteContents();let l=null==r?void 0:r(i);if(void 0===l){const e=document.createElement("template");e.innerHTML=i,l=e.content}e.append(l);const a=e.getElementsByTagName("a");for(const s of a)s.target="_blank",s.rel="noreferrer noopener"}render(){return this.renderMarkdownIntoDiv(),o.a.createElement(pn,{ref:this.containerRefHook})}},vn=Object(r.a)("textarea")({name:"InputBox",class:"ijuk0po"}),mn=Object(r.a)("div")({name:"ShadowBox",class:"saq3p5l"}),wn=Object(r.a)("div")({name:"GrowingEntryStyle",class:"gf8vzix"}),yn=e=>{const{placeholder:t,value:n,onKeyDown:r,highlight:o,altNewline:l,validatedSelection:a,...s}=e,{onChange:u,className:c}=s,d=i.useRef(null),h=null!=n?n:"";I(void 0!==u,"GrowingEntry must be a controlled input area"),i.useEffect((()=>{const e=d.current;if(null===e)return;if(e.disabled)return;const t=h.toString().length;e.focus(),e.setSelectionRange(o?0:t,t)}),[]),i.useLayoutEffect((()=>{var e;if(void 0!==a){const t="number"===typeof a?[a,null]:a;null==(e=d.current)||e.setSelectionRange(t[0],t[1])}}),[a]);const f=i.useCallback((e=>{"Enter"===e.key&&e.shiftKey&&!0===l||null==r||r(e)}),[l,r]);return i.createElement(wn,{className:"gdg-growing-entry"},i.createElement(mn,{className:c},h+"\n"),i.createElement(vn,{...s,className:(null!=c?c:"")+" gdg-input",ref:d,onKeyDown:f,value:h,placeholder:t,dir:"auto"}))},bn=Object(r.a)("div")({name:"MarkdownOverlayEditorStyle",class:"mdwzdl1",vars:{"mdwzdl1-0":[e=>e.targetWidth,"px"]}}),Dn=e=>{const{value:t,onChange:n,forceEditMode:r,createNode:o,targetRect:l,onFinish:a,validatedSelection:s}=e,u=t.data,c=!0===t.readonly,[d,h]=i.useState(""===u||r),f=i.useCallback((()=>{h((e=>!e))}),[]),p=u?"ml-6":"";return d?i.createElement(bn,{targetWidth:l.width-20},i.createElement(yn,{autoFocus:!0,highlight:!1,validatedSelection:s,value:u,onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},onChange:n}),i.createElement("div",{className:`edit-icon checkmark-hover ${p}`,onClick:()=>a(t)},i.createElement(Ee,null))):i.createElement(bn,{targetWidth:l.width},i.createElement(gn,{contents:u,createNode:o}),!c&&i.createElement(i.Fragment,null,i.createElement("div",{className:"spacer"}),i.createElement("div",{className:`edit-icon edit-hover ${p}`,onClick:f},i.createElement(ke,null))),i.createElement("textarea",{className:"md-edit-textarea gdg-input",autoFocus:!0}))},xn={getAccessibilityString:e=>{var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:$.Markdown,needsHover:!1,needsHoverPosition:!1,drawPrep:je,measure:(e,t,n)=>{const r=t.data.split("\n")[0];return e.measureText(r).width+2*n.cellHorizontalPadding},draw:e=>Ye(e,e.cell.data,e.cell.contentAlign),onDelete:e=>({...e,data:""}),provideEditor:()=>e=>{const{onChange:t,value:n,target:r,onFinishedEditing:o,markdownDivCreateNode:l,forceEditMode:a,validatedSelection:s}=e;return i.createElement(Dn,{onFinish:o,targetRect:r,value:n,validatedSelection:s,onChange:e=>t({...n,data:e.target.value}),forceEditMode:a,createNode:l})},onPaste:(e,t)=>e===t.data?void 0:{...t,data:e}},Cn={getAccessibilityString:e=>e.row.toString(),kind:G.Marker,needsHover:!0,needsHoverPosition:!1,drawPrep:function(e,t){const{ctx:n,theme:r}=e,i=`9px ${r.fontFamily}`,o=null!=t?t:{};return(null==o?void 0:o.font)!==i&&(n.font=i,o.font=i),o.deprep=Ve,n.textAlign="center",o},measure:()=>44,draw:e=>function(e,t,n,r,i){const{ctx:o,rect:l,hoverAmount:a,theme:s}=e,{x:u,y:c,width:d,height:h}=l,f=n?1:a;if("number"!==r&&f>0){o.globalAlpha=f;const e=7*(n?a:1);if(Ue(o,s,n,i?u+e:u,c,i?d-e:d,h,!0),i){o.globalAlpha=a,o.beginPath();for(const e of[3,6])for(const t of[-5,-1,3])o.rect(u+e,c+h/2+t,2,2);o.fillStyle=s.textLight,o.fill(),o.beginPath()}o.globalAlpha=1}if("number"===r||"both"===r&&!n){const e=t.toString(),n=u+d/2;"both"===r&&0!==a&&(o.globalAlpha=1-a),o.fillStyle=s.textLight,o.fillText(e,n,c+h/2+$e(o,`9px ${s.fontFamily}`)),0!==a&&(o.globalAlpha=1)}}(e,e.cell.row,e.cell.checked,e.cell.markerKind,e.cell.drawHandle),onClick:e=>{const{bounds:t,cell:n,posX:r,posY:i}=e,{width:o,height:l}=t,a=n.drawHandle?7+(o-7)/2:o/2,s=l/2;if(Math.abs(r-a)<=10&&Math.abs(i-s)<=10)return{...n,checked:!n.checked}},onPaste:()=>{}},kn={getAccessibilityString:()=>"",kind:G.NewRow,needsHover:!0,needsHoverPosition:!1,measure:()=>200,draw:e=>function(e,t,n){const{ctx:r,rect:i,hoverAmount:o,theme:l,spriteManager:a}=e,{x:s,y:u,width:c,height:d}=i;r.beginPath(),r.globalAlpha=o,r.rect(s,u,c,d),r.fillStyle=l.bgHeaderHovered,r.fill(),r.globalAlpha=1,r.beginPath();const h=""!==t;let f=0;if(void 0!==n){const e=8,t=d-e,i=s+e/2,c=u+e/2;a.drawSprite(n,"normal",r,i,c,t,l,h?1:o),f=t}else{f=24;const e=12,t=h?e:o*e,n=h?0:(1-o)*e*.5,i=l.cellHorizontalPadding+4;t>0&&(r.moveTo(s+i+n,u+d/2),r.lineTo(s+i+n+t,u+d/2),r.moveTo(s+i+n+.5*t,u+d/2-.5*t),r.lineTo(s+i+n+.5*t,u+d/2+.5*t),r.lineWidth=2,r.strokeStyle=l.bgIconHeader,r.lineCap="round",r.stroke())}r.fillStyle=l.textMedium,r.fillText(t,f+s+l.cellHorizontalPadding+.5,u+d/2+$e(r,l)),r.beginPath()}(e,e.cell.hint,e.cell.icon),onPaste:()=>{}},En=i.lazy((async()=>await n.e(48).then(n.bind(null,1789)))),Sn={getAccessibilityString:e=>{var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:$.Number,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:je,draw:e=>Ye(e,e.cell.displayData,e.cell.contentAlign),measure:(e,t)=>e.measureText(t.displayData).width+16,onDelete:e=>({...e,data:void 0}),provideEditor:()=>e=>{const{isHighlighted:t,onChange:n,value:r,validatedSelection:o}=e;return i.createElement(i.Suspense,{fallback:null},i.createElement(En,{highlight:t,disabled:!0===r.readonly,value:r.data,validatedSelection:o,onChange:e=>{var t;return n({...r,data:Number.isNaN(null!=(t=e.floatValue)?t:0)?0:e.floatValue})}}))},onPaste:(e,t)=>{const n=Number.parseFloat(e);if(!Number.isNaN(n)&&t.data!==n)return{...t,data:n}}},Fn={getAccessibilityString:()=>"",measure:()=>108,kind:$.Protected,needsHover:!1,needsHoverPosition:!1,draw:function(e){const{ctx:t,theme:n,rect:r}=e,{x:i,y:o,height:l}=r;t.beginPath();const a=2.5;let s=i+n.cellHorizontalPadding+a;const u=o+l/2,c=Math.cos(Ce(30))*a,d=Math.sin(Ce(30))*a;for(let h=0;h<12;h++)t.moveTo(s,u-a),t.lineTo(s,u+a),t.moveTo(s+c,u-d),t.lineTo(s-c,u+d),t.moveTo(s-c,u-d),t.lineTo(s+c,u+d),s+=8;t.lineWidth=1.1,t.lineCap="square",t.strokeStyle=n.textLight,t.stroke()},onPaste:()=>{}},An={getAccessibilityString:e=>{var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:$.RowID,needsHover:!1,needsHoverPosition:!1,drawPrep:(e,t)=>je(e,t,e.theme.textLight),draw:e=>Ye(e,e.cell.data,e.cell.contentAlign),measure:(e,t)=>e.measureText(t.data).width+16,provideEditor:()=>e=>{const{isHighlighted:t,onChange:n,value:r,validatedSelection:i}=e;return o.a.createElement(yn,{highlight:t,autoFocus:!0!==r.readonly,disabled:!1!==r.readonly,value:r.data,validatedSelection:i,onChange:e=>n({...r,data:e.target.value})})},onPaste:()=>{}},Mn={getAccessibilityString:e=>{var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:$.Text,needsHover:!1,needsHoverPosition:!1,drawPrep:je,useLabel:!0,draw:e=>(Ye(e,e.cell.displayData,e.cell.contentAlign,e.cell.allowWrapping,e.hyperWrapping),!0),measure:(e,t,n)=>{const r=t.displayData.split("\n").slice(0,!0===t.allowWrapping?void 0:1);return Math.max(...r.map((t=>e.measureText(t).width+2*n.cellHorizontalPadding)))},onDelete:e=>({...e,data:""}),provideEditor:()=>e=>{const{isHighlighted:t,onChange:n,value:r,validatedSelection:o}=e;return i.createElement(yn,{highlight:t,autoFocus:!0!==r.readonly,disabled:!0===r.readonly,altNewline:!0,value:r.data,validatedSelection:o,onChange:e=>n({...r,data:e.target.value})})},onPaste:(e,t)=>e===t.data?void 0:{...t,data:e}},Rn=Object(r.a)("div")({name:"UriOverlayEditorStyle",class:"uf0sjo8"}),In=e=>{const{uri:t,onChange:n,forceEditMode:r,readonly:o,validatedSelection:l}=e,[a,s]=i.useState(""===t||r),u=i.useCallback((()=>{s(!0)}),[]);return a?i.createElement(yn,{validatedSelection:l,highlight:!0,autoFocus:!0,value:t,onChange:n}):i.createElement(Rn,null,i.createElement("a",{className:"link-area",href:t,target:"_blank",rel:"noopener noreferrer"},t),!o&&i.createElement("div",{className:"edit-icon",onClick:u},i.createElement(ke,null)),i.createElement("textarea",{className:"gdg-input",autoFocus:!0}))},Tn={getAccessibilityString:e=>{var t,n;return null!=(n=null==(t=e.data)?void 0:t.toString())?n:""},kind:$.Uri,needsHover:!1,needsHoverPosition:!1,useLabel:!0,drawPrep:je,draw:e=>Ye(e,e.cell.data,e.cell.contentAlign),measure:(e,t)=>e.measureText(t.data).width+16,onDelete:e=>({...e,data:""}),provideEditor:()=>e=>{const{onChange:t,value:n,forceEditMode:r,validatedSelection:o}=e;return i.createElement(In,{forceEditMode:r,uri:n.data,validatedSelection:o,readonly:!0===n.readonly,onChange:e=>t({...n,data:e.target.value})})},onPaste:(e,t)=>e===t.data?void 0:{...t,data:e}},Hn={[G.Marker]:Cn,[G.NewRow]:kn,[$.Boolean]:nn,[$.Bubble]:ln,[$.Drilldown]:un,[$.Image]:hn,[$.Loading]:fn,[$.Markdown]:xn,[$.Number]:Sn,[$.Protected]:Fn,[$.RowID]:An,[$.Text]:Mn,[$.Uri]:Tn},On=0;function Bn(e,t){return void 0===e||0===t||0===e.columns.length&&void 0===e.current?e:{current:void 0===e.current?void 0:{cell:[e.current.cell[0]+t,e.current.cell[1]],range:{...e.current.range,x:e.current.range.x+t},rangeStack:e.current.rangeStack.map((e=>({...e,x:e.x+t})))},rows:e.rows,columns:e.columns.offset(t)}}var zn={selectAll:!0,selectRow:!0,selectColumn:!0,downFill:!1,rightFill:!1,pageUp:!1,pageDown:!1,clear:!0,copy:!0,paste:!0,search:!1,first:!0,last:!0},Pn={kind:$.Loading,allowOverlay:!1},Ln={columns:ue.empty(),rows:ue.empty(),current:void 0},_n=i.forwardRef(((e,t)=>{var n,r,l,s,c;const[h,p]=i.useState(Ln),[v,m]=i.useState(),w=i.useRef(null),y=i.useRef(null),[b,D]=i.useState(),x=i.useRef(null),C=i.useRef(),{rowMarkers:k="none",rowMarkerWidth:E,imageEditorOverride:S,getRowThemeOverride:F,markdownDivCreateNode:A,width:M,height:R,columns:H,rows:O,getCellContent:B,onCellClicked:P,onCellActivated:N,onFinishedEditing:W,coercePasteValue:j,drawHeader:X,onHeaderClicked:K,spanRangeBehavior:q="default",onGroupHeaderClicked:Z,onCellContextMenu:Q,className:ae,onHeaderContextMenu:se,getCellsForSelection:ce,onGroupHeaderContextMenu:de,onGroupHeaderRenamed:fe,onCellEdited:pe,onCellsEdited:ge,onKeyDown:ve,onKeyUp:me,keybindings:we,onRowAppended:ye,onColumnMoved:xe,validateCell:Ce,highlightRegions:ke,drawCell:Ee,rangeSelect:Se="rect",columnSelect:Fe="multi",rowSelect:Ae="multi",rangeSelectionBlending:Te="exclusive",columnSelectionBlending:He="exclusive",rowSelectionBlending:Oe="exclusive",onDelete:Be,onDragStart:ze,onMouseMove:Pe,onPaste:Le,copyHeaders:_e=!1,freezeColumns:$e=0,rowSelectionMode:Ne="auto",rowMarkerStartIndex:We=1,rowMarkerTheme:je,onHeaderMenuClick:Xe,getGroupDetails:Ke,onSearchClose:Ye,onItemHovered:Ue,onSelectionCleared:Ve,showSearch:Ge,onVisibleRegionChanged:qe,gridSelection:Ze,onGridSelectionChange:Qe,minColumnWidth:Je=50,maxColumnWidth:et=500,maxColumnAutoWidth:tt,provideEditor:nt,trailingRowOptions:rt,scrollOffsetX:it,scrollOffsetY:ot,verticalBorder:lt,onDragOverCell:at,onDrop:st,onColumnResize:ut,onColumnResizeEnd:ct,onColumnResizeStart:dt,customRenderers:ht,fillHandle:ft,drawFocusRing:pt,experimental:gt,fixedShadowX:vt,fixedShadowY:mt,headerIcons:wt,imageWindowLoader:yt,initialSize:bt,isDraggable:Dt,onDragLeave:xt,onRowMoved:Ct,overscrollX:kt,overscrollY:Et,preventDiagonalScrolling:St,rightElement:Ft,rightElementProps:Mt,showMinimap:Rt,smoothScrollX:It,smoothScrollY:Tt,scrollToEnd:Ht,scaleToRem:Ot=!1,rowHeight:Bt=34,headerHeight:zt=36,groupHeaderHeight:Pt=zt,theme:Lt}=e,_t=Math.max(Je,20),$t=Math.max(et,_t),Wt=Math.max(null!=tt?tt:$t,_t),Ut=i.useMemo((()=>"undefined"===typeof window?{fontSize:"16px"}:window.getComputedStyle(document.documentElement)),[]).fontSize,qt=i.useMemo((()=>Number.parseFloat(Ut)),[Ut]),[Qt,Jt,nn,rn,on,ln]=i.useMemo((()=>{var e,t,n;if(!Ot||16===qt)return[Bt,zt,Pt,Lt,kt,Et];const r=qt/16,i=Bt,o=L();return["number"===typeof i?i*r:e=>Math.ceil(i(e)*r),Math.ceil(zt*r),Math.ceil(Pt*r),{...Lt,headerIconSize:(null!=(e=null==Lt?void 0:Lt.headerIconSize)?e:o.headerIconSize)*r,cellHorizontalPadding:(null!=(t=null==Lt?void 0:Lt.cellHorizontalPadding)?t:o.cellHorizontalPadding)*r,cellVerticalPadding:(null!=(n=null==Lt?void 0:Lt.cellVerticalPadding)?n:o.cellVerticalPadding)*r},Math.ceil((null!=kt?kt:0)*r),Math.ceil((null!=Et?Et:0)*r)]}),[Pt,zt,kt,Et,qt,Bt,Ot,Lt]),an=i.useMemo((()=>void 0===we?zn:{...zn,...we}),[we]),sn=null!=E?E:O>1e4?48:O>1e3?44:O>100?36:32,un="none"!==k,cn=un?1:0,dn=void 0!==ye,hn=!0===(null==rt?void 0:rt.sticky),[fn,pn]=i.useState(!1),gn=null!=Ge?Ge:fn,vn=i.useCallback((()=>{void 0!==Ye?Ye():pn(!1)}),[Ye]),mn=i.useMemo((()=>void 0===Ze?void 0:Bn(Ze,cn)),[Ze,cn]),wn=null!=mn?mn:h,yn=i.useRef(new AbortController);i.useEffect((()=>()=>{null==yn||yn.current.abort()}),[]);const[bn,Dn]=function(e,t,n,r){const o=i.useCallback((n=>{var i;if(!0===e){const e=[];for(let r=n.y;r<n.y+n.height;r++){const i=[];for(let e=n.x;e<n.x+n.width;e++)e<0?i.push({kind:$.Loading,allowOverlay:!1}):i.push(t([e,r]));e.push(i)}return e}return null!=(i=null==e?void 0:e(n,r.signal))?i:[]}),[r.signal,t,e]),l=void 0!==e?o:void 0,a=i.useCallback((e=>{if(void 0===l)return[];const t={...e,x:e.x-n};if(t.x<0){t.x=0,t.width--;const e=l(t,r.signal);return"function"===typeof e?async()=>(await e()).map((e=>[{kind:$.Loading,allowOverlay:!1},...e])):e.map((e=>[{kind:$.Loading,allowOverlay:!1},...e]))}return l(t,r.signal)}),[r.signal,l,n]);return[void 0!==e?a:void 0,l]}(ce,B,cn,yn.current),xn=i.useCallback(((e,t,n)=>{if(void 0===Ce)return!0;const r=[e[0]-cn,e[1]];return null==Ce?void 0:Ce(r,t,n)}),[cn,Ce]),Cn=i.useRef(Ze),kn=i.useCallback(((e,t)=>{t&&(e=function(e,t,n,r,i){var o,l;const a=e;if("allowPartial"===r||void 0===e.current)return e;if(void 0!==t){let r=!1;do{if(void 0===(null==e?void 0:e.current))break;const s=null==(o=e.current)?void 0:o.range,u=[];if(s.width>2){const e=t({x:s.x,y:s.y,width:1,height:s.height},i.signal);if("function"===typeof e)return a;u.push(...e);const n=t({x:s.x+s.width-1,y:s.y,width:1,height:s.height},i.signal);if("function"===typeof n)return a;u.push(...n)}else{const e=t({x:s.x,y:s.y,width:s.width,height:s.height},i.signal);if("function"===typeof e)return a;u.push(...e)}let c=s.x-n,d=s.x+s.width-1-n;for(const e of u)for(const t of e)void 0!==t.span&&(c=Math.min(t.span[0],c),d=Math.max(t.span[1],d));c===s.x-n&&d===s.x+s.width-1-n?r=!0:e={current:{cell:null!=(l=e.current.cell)?l:[0,0],range:{x:c+n,y:s.y,width:d-c+1,height:s.height},rangeStack:e.current.rangeStack},columns:e.columns,rows:e.rows}}while(!r)}return e}(e,bn,cn,q,yn.current)),void 0!==Qe?(Cn.current=Bn(e,-cn),Qe(Cn.current)):p(e)}),[Qe,bn,cn,q]),En=De(ut,i.useCallback(((e,t,n,r)=>{null==ut||ut(H[n-cn],t,n-cn,r)}),[ut,cn,H])),Sn=De(ct,i.useCallback(((e,t,n,r)=>{null==ct||ct(H[n-cn],t,n-cn,r)}),[ct,cn,H])),Fn=De(dt,i.useCallback(((e,t,n,r)=>{null==dt||dt(H[n-cn],t,n-cn,r)}),[dt,cn,H])),An=De(X,i.useCallback((e=>{var t;return null!=(t=null==X?void 0:X({...e,columnIndex:e.columnIndex-cn}))&&t}),[X,cn])),Mn=i.useCallback((e=>{if(void 0!==Be){const t=Be(Bn(e,-cn));return"boolean"===typeof t?t:Bn(t,cn)}return!0}),[Be,cn]),[Rn,In,Tn]=function(e,t,n,r,i,l){return[o.a.useCallback(((o,a,s,u)=>{var c,d;"cell"!==l&&"multi-cell"!==l||void 0===o||(o={...o,range:{x:o.cell[0],y:o.cell[1],width:1,height:1}});const h="mixed"===n&&(s||"drag"===u),f="mixed"===r&&h,p="mixed"===i&&h;let g={current:void 0===o?void 0:{...o,rangeStack:"drag"===u&&null!=(d=null==(c=e.current)?void 0:c.rangeStack)?d:[]},columns:f?e.columns:ue.empty(),rows:p?e.rows:ue.empty()};s&&("multi-rect"===l||"multi-cell"===l)&&void 0!==g.current&&void 0!==e.current&&(g={...g,current:{...g.current,rangeStack:[...e.current.rangeStack,e.current.range]}}),t(g,a)}),[r,e,n,l,i,t]),o.a.useCallback(((o,l,a)=>{let s;if(o=null!=o?o:e.rows,void 0!==l&&(o=o.add(l)),"exclusive"===i&&o.length>0)s={current:void 0,columns:ue.empty(),rows:o};else{const t=a&&"mixed"===r;s={current:a&&"mixed"===n?e.current:void 0,columns:t?e.columns:ue.empty(),rows:o}}t(s,!1)}),[r,e,n,i,t]),o.a.useCallback(((o,l,a)=>{let s;if(o=null!=o?o:e.columns,void 0!==l&&(o=o.add(l)),"exclusive"===r&&o.length>0)s={current:void 0,rows:ue.empty(),columns:o};else{const t=a&&"mixed"===i;s={current:a&&"mixed"===n?e.current:void 0,rows:t?e.rows:ue.empty(),columns:o}}t(s,!1)}),[r,e,n,i,t])]}(wn,kn,Te,He,Oe,Se),_n=i.useMemo((()=>({...L(),...rn})),[rn]),[$n,Nn]=i.useState([10,10,0]),Wn=i.useCallback((e=>e.kind!==$.Custom?Hn[e.kind]:null==ht?void 0:ht.find((t=>t.isMatch(e)))),[ht]),jn=function(e,t,n,r,o,l,a,s,u){const c=i.useRef(t),d=i.useRef(n),h=i.useRef(a);c.current=t,d.current=n,h.current=a;const[f]=i.useState((()=>{if(void 0===typeof window)return null;const e=document.createElement("canvas");return e.style.display="none",e.style.opacity="0",e.style.position="fixed",document.documentElement.append(e),e.getContext("2d",{alpha:!1})})),p=i.useRef({}),g=i.useRef(),[v,m]=i.useState();return i.useLayoutEffect((()=>{const t=d.current;if(void 0===t||e.every(te))return;let n=Math.max(1,10-Math.floor(e.length/1e4)),r=0;n<c.current&&n>1&&(n--,r=1);const i={x:0,y:0,width:e.length,height:Math.min(c.current,n)},o={x:0,y:c.current-1,width:e.length,height:1};(async()=>{const n=t(i,u.signal),l=r>0?t(o,u.signal):void 0;let a;a="object"===typeof n?n:await ne(n),void 0!==l&&(a="object"===typeof l?[...a,...l]:[...a,...await ne(l)]),g.current=e,m(a)})()}),[u.signal,e]),i.useMemo((()=>{var t;let n=e.every(te)?e:null===f?e.map((e=>te(e)?e:{...e,width:Xt})):(f.font=`${h.current.baseFontStyle} ${h.current.fontFamily}`,e.map(((t,n)=>{if(te(t))return t;if(void 0!==p.current[t.id])return{...t,width:p.current[t.id]};if(void 0===v||g.current!==e||void 0===t.id)return{...t,width:Xt};const r=Kt(f,a,t,n,v,o,l,!0,s);return p.current[t.id]=r.width,r}))),i=0,u=0;const c=[];for(const[e,r]of n.entries())i+=r.width,void 0!==r.grow&&r.grow>0&&(u+=r.grow,c.push(e));if(i<r&&c.length>0){const e=[...n],o=r-i;let l=o;for(let r=0;r<c.length;r++){const i=c[r],a=(null!=(t=n[i].grow)?t:0)/u,s=r===c.length-1?l:Math.min(l,Math.floor(o*a));e[i]={...n[i],growOffset:s,width:n[i].width+s},l-=s}n=e}return n}),[r,e,f,v,a,o,l,s])}(H,O,Dn,$n[0]-(0===cn?0:sn)-$n[2],_t,Wt,_n,Wn,yn.current),Xn=i.useMemo((()=>jn.some((e=>void 0!==e.group))),[jn]),Kn=Xn?Jt+nn:Jt,Yn=wn.rows.length,Un="none"===k?"":0===Yn?ee:Yn===O?J:"___gdg_header_cell_indeterminate",Vn=i.useMemo((()=>"none"===k?jn:[{title:Un,width:sn,icon:void 0,hasMenu:!1,style:"normal",themeOverride:je},...jn]),[jn,sn,k,Un,je]),[Gn,qn]=i.useMemo((()=>[void 0!==ot&&"number"===typeof Qt?Math.floor(ot/Qt):0,void 0!==ot&&"number"===typeof Qt?-ot%Qt:0]),[ot,Qt]),Zn=i.useRef({height:1,width:1,x:0,y:0}),Qn=i.useMemo((()=>{var e,t;return{x:Zn.current.x,y:Gn,width:null!=(e=Zn.current.width)?e:1,height:null!=(t=Zn.current.height)?t:1,ty:qn}}),[qn,Gn]),Jn=i.useRef(!1),[er,tr,nr]=function(e){const t=i.useRef([Re,e]);t.current[1]!==e&&(t.current[0]=e),t.current[1]=e;const[n,r]=i.useState(e),[,o]=i.useState(),l=i.useCallback((e=>{const n=t.current[0];n!==Re&&(e="function"===typeof e?e(n):e)===n||(n!==Re&&o({}),r((t=>"function"===typeof e?e(n===Re?t:n):e)),t.current[0]=Re)}),[]),a=i.useCallback((()=>{t.current[0]=Re,o({})}),[]);return[t.current[0]===Re?n:t.current[0],l,a]}(Qn);Zn.current=er;const rr=(null!=(n=er.height)?n:1)>1;i.useLayoutEffect((()=>{if(void 0!==ot&&null!==x.current&&rr){if(x.current.scrollTop===ot)return;x.current.scrollTop=ot,x.current.scrollTop!==ot&&nr(),Jn.current=!0}}),[ot,rr,nr]);const ir=(null!=(r=er.width)?r:1)>1;i.useLayoutEffect((()=>{if(void 0!==it&&null!==x.current&&ir){if(x.current.scrollLeft===it)return;x.current.scrollLeft=it,x.current.scrollLeft!==it&&nr(),Jn.current=!0}}),[it,ir,nr]);const or=er.x+cn,lr=er.y,ar=i.useRef(null),sr=i.useCallback((e=>{var t;!0===e?null==(t=ar.current)||t.focus():window.requestAnimationFrame((()=>{var e;null==(e=ar.current)||e.focus()}))}),[]),ur=dn?O+1:O,cr=i.useCallback((e=>{const t=0===cn?e:e.map((e=>({...e,location:[e.location[0]-cn,e.location[1]]}))),n=null==ge?void 0:ge(t);if(!0!==n)for(const r of t)null==pe||pe(r.location,r.value);return n}),[pe,ge,cn]),dr=i.useMemo((()=>{if(void 0!==ke)return 0===cn?ke:ke.map((e=>{const t=Vn.length-e.range.x-cn;if(!(t<=0))return{color:e.color,range:{...e.range,x:e.range.x+cn,width:Math.min(t,e.range.width)},style:e.style}})).filter((e=>void 0!==e))}),[ke,Vn.length,cn]),hr=i.useRef(Vn);hr.current=Vn;const fr=i.useCallback((([e,t])=>{var n,r,i,o,l,a,s,u,c,d;const h=dn&&t===ur-1;if(0===e&&un)return h?Pn:{kind:G.Marker,allowOverlay:!1,checked:!0===(null==wn?void 0:wn.rows.hasIndex(t)),markerKind:"clickable-number"===k?"number":k,row:We+t,drawHandle:void 0!==Ct};if(h){const t=e===cn&&null!=(n=null==rt?void 0:rt.hint)?n:"",s=hr.current[e];if(!0===(null==(r=null==s?void 0:s.trailingRowOptions)?void 0:r.disabled))return Pn;{const e=null!=(o=null==(i=null==s?void 0:s.trailingRowOptions)?void 0:i.hint)?o:t,n=null!=(a=null==(l=null==s?void 0:s.trailingRowOptions)?void 0:l.addIcon)?a:null==rt?void 0:rt.addIcon;return{kind:G.NewRow,hint:e,allowOverlay:!1,icon:n}}}{const n=e-cn;if(!0===(null==gt?void 0:gt.strict)){const e=Zn.current,r=e.x>n||n>e.x+e.width||e.y>t||t>e.y+e.height,i=n===(null==(u=null==(s=e.extras)?void 0:s.selected)?void 0:u[0])&&t===(null==(c=e.extras)?void 0:c.selected[1]),o=void 0===(null==(d=e.extras)?void 0:d.freezeRegion)||e.extras.freezeRegion.x>n||n>e.extras.freezeRegion.x+e.extras.freezeRegion.width||e.extras.freezeRegion.y>t||t>e.extras.freezeRegion.y+e.extras.freezeRegion.height;if(r&&!i&&o)return{kind:$.Loading,allowOverlay:!1}}let r=B([n,t]);return 0!==cn&&void 0!==r.span&&(r={...r,span:[r.span[0]+cn,r.span[1]+cn]}),r}}),[dn,ur,un,null==wn?void 0:wn.rows,Ct,k,cn,null==rt?void 0:rt.hint,null==rt?void 0:rt.addIcon,null==gt?void 0:gt.strict,B,We]),pr=i.useCallback((e=>{var t,n;let r=null!=(t=null==Ke?void 0:Ke(e))?t:{name:e};return void 0!==fe&&""!==e&&(r={icon:r.icon,name:r.name,overrideTheme:r.overrideTheme,actions:[...null!=(n=r.actions)?n:[],{title:"Rename",icon:"renameIcon",onClick:e=>Hr({group:r.name,bounds:e.bounds})}]}),r}),[Ke,fe]),gr=i.useCallback((e=>{var t;const[n,r]=e.cell,i=Vn[n],o=void 0!==(null==i?void 0:i.group)?null==(t=pr(i.group))?void 0:t.overrideTheme:void 0,l=null==i?void 0:i.themeOverride,a=null==F?void 0:F(r);m({...e,theme:{..._n,...o,...l,...a,...e.content.themeOverride}})}),[F,Vn,pr,_n]),vr=i.useCallback(((e,t,n)=>{var r;if(void 0===wn.current)return;const[i,o]=wn.current.cell,l=fr([i,o]);if(l.kind!==$.Boolean&&l.allowOverlay){let t=l;if(void 0!==n)switch(t.kind){case $.Number:{const e=function(e,t){try{return e()}catch(n){return t}}((()=>"-"===n?-0:Number.parseFloat(n)),0);t={...t,data:Number.isNaN(e)?0:e};break}case $.Text:case $.Markdown:case $.Uri:t={...t,data:n}}gr({target:e,content:t,initialValue:n,cell:[i,o],highlight:void 0===n,forceEditMode:void 0!==n})}else l.kind===$.Boolean&&t&&!0!==l.readonly&&(cr([{location:wn.current.cell,value:{...l,data:tn(l.data)}}]),null==(r=ar.current)||r.damage([{cell:wn.current.cell}]))}),[fr,wn,cr,gr]),mr=i.useCallback(((e,t)=>{var n;const r=null==(n=ar.current)?void 0:n.getBounds(e,t);if(void 0===r||null===x.current)return;const i=fr([e,t]);i.allowOverlay&&gr({target:r,content:i,initialValue:void 0,highlight:!0,cell:[e,t],forceEditMode:!0})}),[fr,gr]),wr=i.useCallback(((e,t,n="both",r=0,i=0,o)=>{var l;if(null!==x.current){const a=ar.current,s=y.current,u="number"!==typeof e?"cell"===e.unit?e.amount:void 0:e,c="number"!==typeof t?"cell"===t.unit?t.amount:void 0:t,d="number"!==typeof e&&"px"===e.unit?e.amount:void 0,h="number"!==typeof t&&"px"===t.unit?t.amount:void 0;if(null!==a&&null!==s){let t={x:0,y:0,width:0,height:0},f=0,p=0;if((void 0!==u||void 0!==c)&&(t=null!=(l=a.getBounds((null!=u?u:0)+cn,null!=c?c:0))?l:t,0===t.width||0===t.height))return;const g=s.getBoundingClientRect();if(void 0!==d&&(t={...t,x:d-g.left-x.current.scrollLeft,width:1}),void 0!==h&&(t={...t,y:h+g.top-x.current.scrollTop,height:1}),void 0!==t){const l={x:t.x-r,y:t.y-i,width:t.width+2*r,height:t.height+2*i};let a=0;for(let e=0;e<$e;e++)a+=jn[e].width;let s=0;hn&&(s="number"===typeof Qt?Qt:Qt(O));let u=a+g.left+cn*sn,c=g.right,d=g.top+Kn,h=g.bottom-s;const v=t.width+2*r;switch(null==o?void 0:o.hAlign){case"start":c=u+v;break;case"end":u=c-v;break;case"center":u=Math.floor((u+c)/2)-v/2,c=u+v}const m=t.height+2*i;switch(null==o?void 0:o.vAlign){case"start":h=d+m;break;case"end":d=h-m;break;case"center":d=Math.floor((d+h)/2)-m/2,h=d+m}u>l.x?f=l.x-u:c<l.x+l.width&&(f=l.x+l.width-c),d>l.y?p=l.y-d:h<l.y+l.height&&(p=l.y+l.height-h),"vertical"===n||e<$e?f=0:"horizontal"===n&&(p=0),0===f&&0===p||x.current.scrollTo(f+x.current.scrollLeft,p+x.current.scrollTop)}}}}),[cn,sn,Kn,hn,$e,jn,Qt,O]),yr=i.useRef(mr),br=i.useRef(B),Dr=i.useRef(O);yr.current=mr,br.current=B,Dr.current=O;const xr=i.useCallback((async e=>{var t;const n=Vn[e];if(!0===(null==(t=null==n?void 0:n.trailingRowOptions)?void 0:t.disabled))return;const r=null==ye?void 0:ye();let i,o=!0;void 0!==r&&(i=await r,"top"===i&&(o=!1),"number"===typeof i&&(o=!1));let l=0;const a=()=>{if(Dr.current<=O)return l<500&&window.setTimeout(a,l),void(l=50+2*l);const t="number"===typeof i?i:o?O:0;wr(e-cn,t),Rn({cell:[e,t],range:{x:e,y:t,width:1,height:1}},!1,!1,"edit");const n=br.current([e-cn,t]);n.allowOverlay&&oe(n)&&!0!==n.readonly&&window.setTimeout((()=>{yr.current(e,t)}),0)};a()}),[Vn,ye,cn,O,wr,Rn]),Cr=i.useCallback((e=>{var t,n,r;const i=null!=(r=null==(n=null==(t=jn[e])?void 0:t.trailingRowOptions)?void 0:n.targetColumn)?r:null==rt?void 0:rt.targetColumn;if("number"===typeof i){return i+(un?1:0)}if("object"===typeof i){const e=H.indexOf(i);if(e>=0){return e+(un?1:0)}}}),[jn,H,un,null==rt?void 0:rt.targetColumn]),kr=i.useRef(),Er=i.useRef(),Sr=i.useCallback(((e,t)=>{var n;const[r,i]=t;return{..._n,...null==(n=Vn[r])?void 0:n.themeOverride,...null==F?void 0:F(i),...e.themeOverride}}),[F,Vn,_n]),Fr=i.useCallback((e=>{var t,n,r,i;const o=At.value?e.metaKey:e.ctrlKey,l=o&&"multi"===Ae,a=o&&"multi"===Fe,[s,u]=e.location,c=wn.columns,d=wn.rows,[h,f]=null!=(n=null==(t=wn.current)?void 0:t.cell)?n:[];if("cell"===e.kind){if(Er.current=void 0,Ar.current=[s,u],0===s&&un){if(!0===dn&&u===O||"number"===k||"none"===Ae)return;const t=fr(e.location);if(t.kind!==G.Marker)return;if(void 0!==Ct){const n=Wn(t);I((null==n?void 0:n.kind)===G.Marker);const i=null==(r=null==n?void 0:n.onClick)?void 0:r.call(n,{...e,cell:t,posX:e.localEventX,posY:e.localEventY,bounds:e.bounds,theme:Sr(t,e.location),preventDefault:()=>{}});if(void 0===i||i.checked===t.checked)return}m(void 0),sr();const n=d.hasIndex(u),i=kr.current;if("multi"===Ae&&(e.shiftKey||!0===e.isLongTouch)&&void 0!==i&&d.hasIndex(i)){const e=[Math.min(i,u),Math.max(i,u)+1];l||"multi"===Ne?In(void 0,e,!0):In(ue.fromSingleSelection(e),void 0,l)}else l||e.isTouch||"multi"===Ne?n?In(d.remove(u),void 0,!0):(In(void 0,u,!0),kr.current=u):n&&1===d.length?In(ue.empty(),void 0,o):(In(ue.fromSingleSelection(u),void 0,o),kr.current=u)}else if(s>=cn&&dn&&u===O){const e=Cr(s);xr(null!=e?e:s)}else if(h!==s||f!==u){const t=fr(e.location),n=Wn(t);if(void 0!==(null==n?void 0:n.onSelect)){let r=!1;if(n.onSelect({...e,cell:t,posX:e.localEventX,posY:e.localEventY,bounds:e.bounds,preventDefault:()=>r=!0,theme:Sr(t,e.location)}),r)return}const r=hn&&u===O,l=hn&&void 0!==wn&&(null==(i=wn.current)?void 0:i.cell[1])===O;if(!e.shiftKey&&!0!==e.isLongTouch||void 0===h||void 0===f||void 0===wn.current||l)Rn({cell:[s,u],range:{x:s,y:u,width:1,height:1}},!0,o,"click"),kr.current=void 0,m(void 0),sr();else{if(r)return;const e=Math.min(s,h),t=Math.max(s,h),n=Math.min(u,f),i=Math.max(u,f);Rn({...wn.current,range:{x:e,y:n,width:t-e+1,height:i-n+1}},!0,o,"click"),kr.current=void 0,sr()}}}else if("header"===e.kind)if(Ar.current=[s,u],m(void 0),un&&0===s)kr.current=void 0,Er.current=void 0,"multi"===Ae&&(d.length!==O?In(ue.fromSingleSelection([0,O]),void 0,o):In(ue.empty(),void 0,o),sr());else{const t=Er.current;if("multi"===Fe&&(e.shiftKey||!0===e.isLongTouch)&&void 0!==t&&c.hasIndex(t)){const e=[Math.min(t,s),Math.max(t,s)+1];a?Tn(void 0,e,o):Tn(ue.fromSingleSelection(e),void 0,o)}else a?(c.hasIndex(s)?Tn(c.remove(s),void 0,o):Tn(void 0,s,o),Er.current=s):"none"!==Fe&&(Tn(ue.fromSingleSelection(s),void 0,o),Er.current=s);kr.current=void 0,sr()}else e.kind===U?Ar.current=[s,u]:e.kind===V&&(kn(Ln,!1),m(void 0),sr(),null==Ve||Ve(),kr.current=void 0,Er.current=void 0)}),[xr,Fe,sr,Wn,Cr,fr,wn,un,hn,Ve,Ct,cn,k,Ae,Ne,O,Rn,kn,Tn,In,dn,Sr]),Ar=i.useRef(),Mr=i.useRef(er),Rr=i.useRef(),Ir=i.useCallback((e=>{var t,n;if(zr.current=!1,Mr.current=Zn.current,0!==e.button)return void(Rr.current=void 0);const r=performance.now(),i=r-(null!=(n=null==(t=Rr.current)?void 0:t.time)?n:-1e3)<250;Rr.current={wasDoubleClick:i,time:r,location:e.location};const o="cell"===e.kind&&e.isFillHandle;!o&&"cell"!==e.kind&&e.isEdge||(D({previousSelection:wn,fillHandle:o}),Ar.current=void 0,e.isTouch||Fr(e))}),[wn,Fr]),[Tr,Hr]=i.useState(),Or=i.useCallback((e=>{if(e.kind!==U||"multi"!==Fe)return;const t=At.value?e.metaKey:e.ctrlKey,[n]=e.location,r=wn.columns;if(n<cn)return;const i=Vn[n];let o=n,l=n;for(let a=n-1;a>=cn&&Ie(i.group,Vn[a].group);a--)o--;for(let a=n+1;a<Vn.length&&Ie(i.group,Vn[a].group);a++)l++;if(sr(),t)if(r.hasAll([o,l+1])){let e=r;for(let t=o;t<=l;t++)e=e.remove(t);Tn(e,void 0,t)}else Tn(void 0,[o,l+1],t);else Tn(ue.fromSingleSelection([o,l+1]),void 0,t)}),[Fe,sr,wn.columns,Vn,cn,Tn]),Br=i.useCallback((e=>{var t;if(void 0===wn.current)return;const n=[],r=wn.current.range;for(let i=0;i<r.width;i++){const t=i+r.x,o=fr([t,e?r.y+r.height-1:r.y]);if(!ie(o)&&oe(o))for(let i=1;i<r.height;i++){const l=[t,e?r.y+r.height-(i+1):i+r.y];n.push({location:l,value:{...o}})}}cr(n),null==(t=ar.current)||t.damage(n.map((e=>({cell:e.location}))))}),[fr,wn,cr]),zr=i.useRef(!1),Pr=i.useCallback((async e=>{var t;if(!0===(null==(t=Rr.current)?void 0:t.wasDoubleClick)&&void 0!==bn&&void 0!==En){const t=Zn.current.y,n=Zn.current.height;let r=bn({x:e,y:t,width:1,height:Math.min(n,O-t)},yn.current.signal);"object"!==typeof r&&(r=await r());const i=jn[e-cn],o=document.createElement("canvas").getContext("2d",{alpha:!1});if(null!==o){o.font=`${_n.baseFontStyle} ${_n.fontFamily}`;const t=Kt(o,_n,i,0,r,_t,$t,!1,Wn);null==En||En(i,t.width,e,t.width)}}}),[jn,bn,$t,_n,_t,En,cn,O,Wn]),[Lr,_r]=i.useState(),$r=i.useCallback(((e,t)=>{var n,r,i;const o=b;if(D(void 0),_r(void 0),t)return;if(!0===(null==o?void 0:o.fillHandle)&&void 0!==wn.current)return void Br(wn.current.cell[1]!==wn.current.range.y);const[l,a]=e.location,[s,u]=null!=(n=Ar.current)?n:[],c=()=>{zr.current=!0},d=t=>{var n,r,i;if((t.isTouch||s===l&&u===a)&&(null==P||P([l-cn,a],{...t,preventDefault:c})),!zr.current){const s=fr(e.location),u=Wn(s);if(void 0!==u&&void 0!==u.onClick){const r=u.onClick({...t,cell:s,posX:t.localEventX,posY:t.localEventY,bounds:t.bounds,theme:Sr(s,e.location),preventDefault:c});void 0!==r&&!ie(r)&&re(r)&&(cr([{location:t.location,value:r}]),null==(n=ar.current)||n.damage([{cell:t.location}]))}if(!zr.current&&void 0!==(null==(i=null==(r=null==o?void 0:o.previousSelection)?void 0:r.current)?void 0:i.cell)&&void 0!==wn.current){const[e,n]=wn.current.cell,[r,i]=o.previousSelection.current.cell;if(l===e&&l===r&&a===n&&a===i)return null==N||N([l-cn,a]),vr(t.bounds,!1),!0}}return!1},h=e.location[0]-cn;if(e.isTouch){const t=Zn.current,n=Mr.current;if(t.x!==n.x||t.y!==n.y)return;if(!0===e.isLongTouch){if("cell"===e.kind&&(null==(r=null==wn?void 0:wn.current)?void 0:r.cell[0])===l&&(null==(i=null==wn?void 0:wn.current)?void 0:i.cell[1])===a)return void(null==Q||Q([h,e.location[1]],{...e,preventDefault:c}));if("header"===e.kind&&wn.columns.hasIndex(l))return void(null==se||se(h,{...e,preventDefault:c}));if(e.kind===U){if(h<0)return;return void(null==de||de(h,{...e,preventDefault:c}))}}"cell"===e.kind?d(e)||Fr(e):e.kind===U?null==Z||Z(h,{...e,preventDefault:c}):(e.kind===Y&&(null==K||K(h,{...e,preventDefault:c})),Fr(e))}else{if("header"===e.kind){if(h<0)return;e.isEdge?Pr(l):0===e.button&&l===s&&a===u&&(null==K||K(h,{...e,preventDefault:c}))}if(e.kind===U){if(h<0)return;0===e.button&&l===s&&a===u&&(null==Z||Z(h,{...e,preventDefault:c}),zr.current||Or(e))}"cell"===e.kind&&0===e.button&&d(e),Ar.current=void 0}}),[b,cn,wn,P,Br,fr,Wn,Sr,cr,N,vr,Q,se,de,Fr,Z,Pr,K,Or]),Nr=i.useCallback((e=>{const t={...e,location:[e.location[0]-cn,e.location[1]]};null==Pe||Pe(t),_r((t=>{var n,r;return e.scrollEdge[0]===(null==t?void 0:t[0])&&e.scrollEdge[1]===t[1]?t:void 0===b||(null!=(r=null==(n=Rr.current)?void 0:n.location[0])?r:0)<cn?void 0:e.scrollEdge}))}),[b,Pe,cn]);!function(e,t){const n=o.a.useRef(0),[r,i]=null!=e?e:[0,0];o.a.useEffect((()=>{if(0===r&&0===i)return void(n.current=0);let e=0;const o=a=>{var s;if(0===e)e=a;else{const o=a-e;n.current=Math.min(1,n.current+o/1300);const l=n.current**1.618*o*2;null==(s=t.current)||s.scrollBy(r*l,i*l),e=a}l=window.requestAnimationFrame(o)};let l=window.requestAnimationFrame(o);return()=>window.cancelAnimationFrame(l)}),[t,r,i])}(Lr,x);const Wr=i.useCallback(((e,t)=>{null==Xe||Xe(e-cn,t)}),[Xe,cn]),jr=null==(l=null==wn?void 0:wn.current)?void 0:l.cell,Xr=i.useCallback(((e,t,n,r,i,o)=>{Jn.current=!1;let l=jr;void 0!==l&&(l=[l[0]-cn,l[1]]);const a={x:e.x-cn,y:e.y,width:e.width,height:dn&&e.y+e.height>=O?e.height-1:e.height,tx:i,ty:o,extras:{selected:l,freezeRegion:0===$e?void 0:{x:0,y:e.y,width:$e,height:e.height}}};Nn([t,n,r]),tr(a),null==qe||qe(a,a.tx,a.ty,a.extras)}),[jr,cn,dn,O,$e,tr,qe]),Kr=De(xe,i.useCallback(((e,t)=>{null==xe||xe(e-cn,t-cn),"none"!==Fe&&Tn(ue.fromSingleSelection(t),void 0,!0)}),[Fe,xe,cn,Tn])),Yr=i.useRef(!1),Ur=i.useCallback((e=>{0===e.location[0]&&cn>0?e.preventDefault():(null==ze||ze({...e,location:[e.location[0]-cn,e.location[1]]}),e.defaultPrevented()||(Yr.current=!0),D(void 0))}),[ze,cn]),Vr=i.useCallback((()=>{Yr.current=!1}),[]),Gr=i.useCallback((e=>{var t;if(void 0!==b&&0===(null==(t=Rr.current)?void 0:t.location[0])&&0===e.location[0]&&1===cn&&"multi"===Ae&&b.previousSelection&&!b.previousSelection.rows.hasIndex(Rr.current.location[1])&&wn.rows.hasIndex(Rr.current.location[1])){const t=Math.min(Rr.current.location[1],e.location[1]),n=Math.max(Rr.current.location[1],e.location[1])+1;In(ue.fromSingleSelection([t,n]),void 0,!1)}if(void 0!==b&&void 0!==wn.current&&!Yr.current&&("rect"===Se||"multi-rect"===Se)){const[t,n]=wn.current.cell;let[r,i]=e.location;i<0&&(i=Zn.current.y);if(hn&&n===O)return;if(hn&&i===O){if(e.kind!==V)return;i--}r=Math.max(r,cn);const o=r-t,l=i-n,a={x:o>=0?t:r,y:l>=0?n:i,width:Math.abs(o)+1,height:Math.abs(l)+1};Rn({...wn.current,range:a},!0,!1,"drag")}null==Ue||Ue({...e,location:[e.location[0]-cn,e.location[1]]})}),[b,cn,Ae,wn,Se,Ue,In,hn,O,Rn]),qr=i.useCallback((e=>{if(void 0===wn.current)return;const[t,n]=e,[r,i]=wn.current.cell,o=wn.current.range;let l=o.x,a=o.x+o.width,s=o.y,c=o.y+o.height;if(0!==n)switch(n){case 2:c=O,s=i,wr(0,c,"vertical");break;case-2:s=0,c=i+1,wr(0,s,"vertical");break;case 1:s<i?(s++,wr(0,s,"vertical")):(c=Math.min(O,c+1),wr(0,c,"vertical"));break;case-1:c>i+1?(c--,wr(0,c,"vertical")):(s=Math.max(0,s-1),wr(0,s,"vertical"));break;default:T()}if(0!==t)if(2===t)a=Vn.length,l=r,wr(a-1-cn,0,"horizontal");else if(-2===t)l=cn,a=r+1,wr(l-cn,0,"horizontal");else{let e=[];if(void 0!==bn){const t=bn({x:l,y:s,width:a-l-cn,height:c-s},yn.current.signal);"object"===typeof t&&(e=function(e){return u()(d()(d()(e).filter((e=>void 0!==e.span)).map((e=>{var t,n,r,i;return f()((null!=(n=null==(t=e.span)?void 0:t[0])?n:0)+1,(null!=(i=null==(r=e.span)?void 0:r[1])?i:0)+1)}))))}(t))}if(1===t){let t=!1;if(l<r){if(e.length>0){const n=f()(l+1,r+1).find((t=>!e.includes(t-cn)));void 0!==n&&(l=n,t=!0)}else l++,t=!0;t&&wr(l,0,"horizontal")}t||(a=Math.min(Vn.length,a+1),wr(a-1-cn,0,"horizontal"))}else if(-1===t){let t=!1;if(a>r+1){if(e.length>0){const n=f()(a-1,r,-1).find((t=>!e.includes(t-cn)));void 0!==n&&(a=n,t=!0)}else a--,t=!0;t&&wr(a-cn,0,"horizontal")}t||(l=Math.max(cn,l-1),wr(l-cn,0,"horizontal"))}else T()}Rn({cell:wn.current.cell,range:{x:l,y:s,width:a-l,height:c-s}},!0,!1,"keyboard-select")}),[bn,wn,Vn.length,cn,O,wr,Rn]),Zr=i.useCallback(((e,t,n,r)=>{const i=ur-(n?0:1);if(e=a()(e,cn,jn.length-1+cn),t=a()(t,0,i),e===(null==jr?void 0:jr[0])&&t===(null==jr?void 0:jr[1]))return!1;if(r&&void 0!==wn.current){const n=[...wn.current.rangeStack];(wn.current.range.width>1||wn.current.range.height>1)&&n.push(wn.current.range),kn({...wn,current:{cell:[e,t],range:{x:e,y:t,width:1,height:1},rangeStack:n}},!0)}else Rn({cell:[e,t],range:{x:e,y:t,width:1,height:1}},!0,!1,"keyboard-nav");return void 0!==C.current&&C.current[0]===e&&C.current[1]===t&&(C.current=void 0),wr(e-cn,t),!0}),[ur,cn,jn.length,jr,wn,wr,kn,Rn]),Qr=i.useCallback(((e,t)=>{void 0!==(null==v?void 0:v.cell)&&void 0!==e&&re(e)&&(cr([{location:v.cell,value:e}]),window.requestAnimationFrame((()=>{var e;null==(e=ar.current)||e.damage([{cell:v.cell}])}))),sr(!0),m(void 0);const[n,r]=t;if(void 0!==wn.current&&(0!==n||0!==r)){const t=wn.current.cell[1]===ur-1&&void 0!==e;Zr(a()(wn.current.cell[0]+n,0,Vn.length-1),a()(wn.current.cell[1]+r,0,ur-1),t,!1)}null==W||W(e,t)}),[null==v?void 0:v.cell,sr,wn,W,cr,ur,Zr,Vn.length]),Jr=i.useMemo((()=>"gdg-overlay-"+On++),[]),ei=i.useCallback((e=>{(async()=>{var t,n,r,i,o;let l=!1;if(void 0!==ve&&ve({...e,cancel:()=>{l=!0}}),l)return;const a=()=>{e.stopPropagation(),e.preventDefault()},s=void 0!==v,{altKey:u,shiftKey:c,metaKey:d,ctrlKey:h,key:f,bounds:p}=e,g=At.value,y=g?d:h,b="Delete"===f||g&&"Backspace"===f,D=Zn.current,x=wn.columns,C=wn.rows;if("Escape"===f)return void(s?m(void 0):an.clear&&(kn(Ln,!1),null==Ve||Ve()));if(Yt("primary+a",e)&&an.selectAll){if(s){const e=document.getElementById(Jr);if(null!==e){const t=window.getSelection(),n=document.createRange();n.selectNodeContents(e),null==t||t.removeAllRanges(),null==t||t.addRange(n)}}else kn({columns:ue.empty(),rows:ue.empty(),current:{cell:null!=(n=null==(t=wn.current)?void 0:t.cell)?n:[cn,0],range:{x:cn,y:0,width:H.length,height:O},rangeStack:[]}},!1);return void a()}function k(e){var t,n,r;sr();const i=[];for(let o=e.x;o<e.x+e.width;o++)for(let r=e.y;r<e.y+e.height;r++){const e=B([o-cn,r]);if(!e.allowOverlay&&e.kind!==$.Boolean)continue;let l;if(e.kind===$.Custom){const n=null==nt?void 0:nt(e);le(n)&&(l=null==(t=null==n?void 0:n.deletedValue)?void 0:t.call(n,e))}else if(re(e)&&e.allowOverlay||e.kind===$.Boolean){const t=Wn(e);l=null==(n=null==t?void 0:t.onDelete)?void 0:n.call(t,e)}void 0!==l&&!ie(l)&&re(l)&&i.push({location:[o,r],value:l})}cr(i),null==(r=ar.current)||r.damage(i.map((e=>({cell:e.location}))))}if(Yt("primary+f",e)&&an.search&&(a(),null==(r=null==w?void 0:w.current)||r.focus({preventScroll:!0}),pn(!0)),b){const e=null==(i=null==Mn?void 0:Mn(wn))||i;if(a(),!1!==e){const t=!0===e?wn:e;if(void 0!==t.current){k(t.current.range);for(const e of t.current.rangeStack)k(e)}for(const e of t.rows)k({x:cn,y:e,width:Vn.length-cn,height:1});for(const e of t.columns)k({x:e,y:0,width:1,height:O})}return}if(void 0===wn.current)return;let[E,S]=wn.current.cell,F=!1;if(an.selectColumn&&Yt("ctrl+ ",e)&&"none"!==Fe)x.hasIndex(E)?Tn(x.remove(E),void 0,!0):"single"===Fe?Tn(ue.fromSingleSelection(E),void 0,!0):Tn(void 0,E,!0);else if(an.selectRow&&Yt("shift+ ",e)&&"none"!==Ae)C.hasIndex(S)?In(C.remove(S),void 0,!0):"single"===Ae?In(ue.fromSingleSelection(S),void 0,!0):In(void 0,S,!0);else if((Yt("Enter",e)||Yt(" ",e)||Yt("shift+Enter",e))&&void 0!==p)s?(m(void 0),Yt("Enter",e)?S++:Yt("shift+Enter",e)&&S--):S===O&&dn?window.setTimeout((()=>{const e=Cr(E);xr(null!=e?e:E)}),0):(null==N||N([E-cn,S]),vr(p,!0),a());else if(an.downFill&&Yt("primary+_68",e)&&wn.current.range.height>1)Br(!1),a();else if(an.rightFill&&Yt("primary+_82",e)&&wn.current.range.width>1){const e=[],t=wn.current.range;for(let n=0;n<t.height;n++){const r=n+t.y,i=fr([t.x,r]);if(!ie(i)&&oe(i))for(let n=1;n<t.width;n++){const o=[n+t.x,r];e.push({location:o,value:{...i}})}}cr(e),null==(o=ar.current)||o.damage(e.map((e=>({cell:e.location})))),a()}else if(an.pageDown&&Yt("PageDown",e))S+=Math.max(1,Zn.current.height-4),a();else if(an.pageUp&&Yt("PageUp",e))S-=Math.max(1,Zn.current.height-4),a();else if(an.first&&Yt("primary+Home",e))m(void 0),S=0,E=0;else if(an.last&&Yt("primary+End",e))m(void 0),S=Number.MAX_SAFE_INTEGER,E=Number.MAX_SAFE_INTEGER;else if(an.first&&Yt("primary+shift+Home",e))m(void 0),qr([-2,-2]);else if(an.last&&Yt("primary+shift+End",e))m(void 0),qr([2,2]);else if("ArrowDown"===f){if(h&&u)return;m(void 0),!c||"rect"!==Se&&"multi-rect"!==Se?(u&&!y&&(F=!0),y&&!u?S=O-1:S+=1):qr([0,y&&!u?2:1])}else if("ArrowUp"===f||"Home"===f){const e="Home"===f||y;m(void 0),!c||"rect"!==Se&&"multi-rect"!==Se?(u&&!e&&(F=!0),S+=e&&!u?Number.MIN_SAFE_INTEGER:-1):qr([0,e&&!u?-2:-1])}else if("ArrowRight"===f||"End"===f){const e="End"===f||y;m(void 0),!c||"rect"!==Se&&"multi-rect"!==Se?(u&&!e&&(F=!0),E+=e&&!u?Number.MAX_SAFE_INTEGER:1):qr([e&&!u?2:1,0])}else if("ArrowLeft"===f)m(void 0),!c||"rect"!==Se&&"multi-rect"!==Se?(u&&!y&&(F=!0),E+=y&&!u?Number.MIN_SAFE_INTEGER:-1):qr([y&&!u?-2:-1,0]);else if("Tab"===f)m(void 0),c?E--:E++;else if(!d&&!h&&void 0!==wn.current&&1===f.length&&/[ -~]/g.test(f)&&void 0!==p&&oe(B([E-cn,Math.max(0,S-1)]))){if((!hn||S!==O)&&(D.y>S||S>D.y+D.height||D.x>E||E>D.x+D.width))return;vr(p,!0,f),a()}Zr(E,S,!1,F)&&a()})()}),[ve,v,wn,an.selectAll,an.search,an.selectColumn,an.selectRow,an.downFill,an.rightFill,an.pageDown,an.pageUp,an.first,an.last,an.clear,Fe,Ae,B,cn,Zr,kn,Ve,H.length,O,Jr,sr,cr,nt,Wn,Mn,Vn.length,Tn,In,dn,Cr,xr,N,vr,Br,fr,qr,Se,hn]),ti=i.useCallback(((e,t)=>{const n=e.location[0]-cn;if("header"===e.kind&&(null==se||se(n,{...e,preventDefault:t})),e.kind===U){if(n<0)return;null==de||de(n,{...e,preventDefault:t})}if("cell"===e.kind){const[r,i]=e.location;null==Q||Q([n,i],{...e,preventDefault:t}),function(e,t){const[n,r]=t;if(e.columns.hasIndex(n)||e.rows.hasIndex(r))return!0;if(void 0!==e.current){if(e.current.cell[0]===n&&e.current.cell[1]===r)return!0;const t=[e.current.range,...e.current.rangeStack];for(const e of t)if(n>=e.x&&n<e.x+e.width&&r>=e.y&&r<e.y+e.height)return!0}return!1}(wn,e.location)||Zr(r,i,!1,!1)}}),[wn,Q,de,se,cn,Zr]),ni=i.useCallback((async e=>{var t,n,r,i,o,l,a;if(!an.paste)return;function s(e,t,n){var r,i;if(!ie(e)&&oe(e)&&!0!==e.readonly){const o=null==j?void 0:j(n,e);if(void 0!==o&&re(o))return o.kind!==e.kind&&console.warn("Coercion should not change cell kind."),{location:t,value:o};const l=Wn(e);if(void 0===l)return;if(l.kind===$.Custom){I(e.kind===$.Custom);const i=null==(r=l.onPaste)?void 0:r.call(l,n,e);if(void 0===i)return;return{location:t,value:{...e,data:i}}}{const r=null==(i=l.onPaste)?void 0:i.call(l,n,e);if(void 0===r)return;return I(r.kind===e.kind),{location:t,value:r}}}}const u=wn.columns,c=wn.rows,d=!0===(null==(t=x.current)?void 0:t.contains(document.activeElement))||!0===(null==(n=y.current)?void 0:n.contains(document.activeElement));let h=null==(r=wn.current)?void 0:r.cell;if(void 0===h&&1===u.length&&(h=[null!=(i=u.first())?i:0,0]),void 0===h&&1===c.length&&(h=[cn,null!=(o=c.first())?o:0]),d&&void 0!==h){let t,n;const r="text/plain",i="text/html";if(void 0!==navigator.clipboard.read){const e=await navigator.clipboard.read();for(const o of e){if(o.types.includes(i)){const e=await o.getType(i),n=await e.text(),r=document.createElement("html");r.innerHTML=n;const l=r.querySelector("table");if(null!==l){t=Gt(l);break}}o.types.includes(r)&&(n=await(await o.getType(r)).text())}}else if(void 0!==navigator.clipboard.readText)n=await navigator.clipboard.readText();else{if(void 0===e||null===(null==e?void 0:e.clipboardData))return;if(e.clipboardData.types.includes(i)){const n=e.clipboardData.getData(i),r=document.createElement("html");r.innerHTML=n;const o=r.querySelector("table");null!==o&&(t=Gt(o))}void 0===t&&e.clipboardData.types.includes(r)&&(n=e.clipboardData.getData(r))}const[o,u]=h,c=[];do{if(void 0===Le){const e=s(fr(h),h,null!=(l=null!=n?n:null==t?void 0:t.map((e=>e.join("\t"))).join("\t"))?l:"");void 0!==e&&c.push(e);break}if(void 0===t){if(void 0===n)return;t=Vt(n)}if(!1===Le||"function"===typeof Le&&!0!==(null==Le?void 0:Le([h[0]-cn,h[1]],t)))return;for(const[e,n]of t.entries()){if(e+u>=O)break;for(const[t,r]of n.entries()){const n=[t+o,e+u],i=s(fr(n),n,r);void 0!==i&&c.push(i)}}}while(0);cr(c),null==(a=ar.current)||a.damage(c.map((e=>({cell:e.location}))))}}),[j,Wn,fr,wn,an.paste,cr,Le,cn,O]);be("paste",ni,window,!1,!0);const ri=i.useCallback((async(e,t)=>{var n,r;if(!an.copy)return;const i=!0===t||!0===(null==(n=x.current)?void 0:n.contains(document.activeElement))||!0===(null==(r=y.current)?void 0:r.contains(document.activeElement)),o=wn.columns,l=wn.rows,a=(t,n)=>{if(_e){Zt([n.map((e=>({kind:$.Text,data:H[e].title,displayData:H[e].title,allowOverlay:!1}))),...t],n,e)}else Zt(t,n,e)};if(i&&void 0!==bn)if(void 0!==wn.current){let e=bn(wn.current.range,yn.current.signal);"object"!==typeof e&&(e=await e()),a(e,f()(wn.current.range.x-cn,wn.current.range.x+wn.current.range.width-cn))}else if(void 0!==l&&l.length>0){const e=[...l].map((e=>{const t=bn({x:cn,y:e,width:H.length-cn,height:1},yn.current.signal);return"object"===typeof t?t[0]:t().then((e=>e[0]))}));if(e.some((e=>e instanceof Promise))){a(await Promise.all(e),f()(H.length))}else a(e,f()(H.length))}else if(o.length>0){const e=[],t=[];for(const n of o){let r=bn({x:n,y:0,width:1,height:O},yn.current.signal);"object"!==typeof r&&(r=await r()),e.push(r),t.push(n-cn)}if(1===e.length)a(e[0],t);else{a(e.reduce(((e,t)=>e.map(((e,n)=>[...e,...t[n]])))),t)}}}),[H,bn,wn,an.copy,cn,O,_e]);be("copy",ri,window,!1,!1);const ii=i.useCallback(((e,t)=>{if(0===e.length||-1===t)return;const[n,r]=e[t];void 0!==C.current&&C.current[0]===n&&C.current[1]===r||(C.current=[n,r],Zr(n,r,!1,!1))}),[Zr]),[oi,li]=null!=(c=null==(s=null==Ze?void 0:Ze.current)?void 0:s.cell)?c:[],ai=i.useRef(wr);ai.current=wr,i.useLayoutEffect((()=>{var e,t,n,r;Jn.current||void 0===oi||void 0===li||oi===(null==(t=null==(e=Cn.current)?void 0:e.current)?void 0:t.cell[0])&&li===(null==(r=null==(n=Cn.current)?void 0:n.current)?void 0:r.cell[1])||ai.current(oi,li),Jn.current=!1}),[oi,li]);const si=i.useMemo((()=>!0===dn&&!0===(null==rt?void 0:rt.tint)?ue.fromSingleSelection(ur-1):ue.empty()),[ur,dn,null==rt?void 0:rt.tint]),ui=i.useCallback((e=>{var t;return"boolean"===typeof lt?lt:null==(t=null==lt?void 0:lt(e-cn))||t}),[cn,lt]),ci=i.useMemo((()=>{if(void 0===Tr||null===y.current)return null;const{bounds:e,group:t}=Tr,n=y.current.getBoundingClientRect();return i.createElement(jt,{bounds:e,group:t,canvasBounds:n,onClose:()=>Hr(void 0),onFinish:e=>{Hr(void 0),null==fe||fe(t,e)}})}),[fe,Tr]),di=Math.min(Vn.length,$e+(un?1:0));i.useImperativeHandle(t,(()=>({appendRow:e=>xr(e+cn),updateCells:e=>{var t;return 0!==cn&&(e=e.map((e=>({cell:[e.cell[0]+cn,e.cell[1]]})))),null==(t=ar.current)?void 0:t.damage(e)},getBounds:(e,t)=>{var n;return null==(n=ar.current)?void 0:n.getBounds(e+cn,t)},focus:()=>{var e;return null==(e=ar.current)?void 0:e.focus()},emit:async e=>{switch(e){case"delete":ei({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!1,key:"Delete",keyCode:46,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0});break;case"fill-right":ei({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"r",keyCode:82,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0});break;case"fill-down":ei({bounds:void 0,cancel:()=>{},stopPropagation:()=>{},preventDefault:()=>{},ctrlKey:!0,key:"d",keyCode:68,metaKey:!1,shiftKey:!1,altKey:!1,rawEvent:void 0});break;case"copy":await ri(void 0,!0);break;case"paste":await ni()}},scrollTo:wr})),[xr,ri,ei,ni,cn,wr]);const[hi,fi]=null!=jr?jr:[],pi=i.useCallback((e=>{const[t,n]=e;-1!==n?hi===t&&fi===n||(Rn({cell:e,range:{x:t,y:n,width:1,height:1}},!0,!1,"keyboard-nav"),wr(t,n)):"none"!==Fe&&(Tn(ue.fromSingleSelection(t),void 0,!1),sr())}),[Fe,sr,wr,hi,fi,Rn,Tn]),[gi,vi]=i.useState(!1),mi=i.useRef(g()((e=>{vi(e)}),5)),wi=i.useCallback((()=>{mi.current(!0),void 0===wn.current&&0===wn.columns.length&&0===wn.rows.length&&void 0===b&&Rn({cell:[cn,lr],range:{x:cn,y:lr,width:1,height:1}},!0,!1,"keyboard-select")}),[lr,wn,b,cn,Rn]),yi=i.useCallback((()=>{mi.current(!1)}),[]),[bi,Di]=i.useMemo((()=>{var e;let t;const n=null!=(e=null==gt?void 0:gt.scrollbarWidthOverride)?e:function(){if(void 0!==Me)return Me;const e=document.createElement("p");e.style.width="100%",e.style.height="200px";const t=document.createElement("div");t.id="testScrollbar",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.append(e),document.body.append(t);const n=e.offsetWidth;t.style.overflow="scroll";let r=e.offsetWidth;return n===r&&(r=t.clientWidth),t.remove(),Me=n-r}(),r=O+(dn?1:0);if("number"===typeof Qt)t=Kn+r*Qt;else{let e=0;const n=Math.min(r,10);for(let t=0;t<n;t++)e+=Qt(t);e=Math.floor(e/n),t=Kn+r*e}t+=n;const i=Vn.reduce(((e,t)=>t.width+e),0)+n;return[`${Math.min(1e5,i)}px`,`${Math.min(1e5,t)}px`]}),[Vn,null==gt?void 0:gt.scrollbarWidthOverride,Qt,O,dn,Kn]);return i.createElement(_.Provider,{value:_n},i.createElement(en,{style:z(_n),className:ae,inWidth:null!=M?M:bi,inHeight:null!=R?R:Di},i.createElement(Nt,{fillHandle:ft,drawFocusRing:pt,experimental:gt,fixedShadowX:vt,fixedShadowY:mt,getRowThemeOverride:F,headerIcons:wt,imageWindowLoader:yt,initialSize:bt,isDraggable:Dt,onDragLeave:xt,onRowMoved:Ct,overscrollX:on,overscrollY:ln,preventDiagonalScrolling:St,rightElement:Ft,rightElementProps:Mt,showMinimap:Rt,smoothScrollX:It,smoothScrollY:Tt,className:ae,enableGroups:Xn,onCanvasFocused:wi,onCanvasBlur:yi,canvasRef:y,onContextMenu:ti,theme:_n,cellXOffset:or,cellYOffset:lr,accessibilityHeight:er.height,onDragEnd:Vr,columns:Vn,drawCustomCell:Ee,drawHeader:An,disabledRows:si,freezeColumns:di,lockColumns:cn,firstColAccessible:0===cn,getCellContent:fr,minColumnWidth:_t,maxColumnWidth:$t,searchInputRef:w,showSearch:gn,onSearchClose:vn,highlightRegions:dr,getCellsForSelection:bn,getGroupDetails:pr,headerHeight:Jt,isFocused:gi,groupHeaderHeight:Xn?nn:0,trailingRowType:dn?!0===(null==rt?void 0:rt.sticky)?"sticky":"appended":"none",onColumnResize:En,onColumnResizeEnd:Sn,onColumnResizeStart:Fn,onCellFocused:pi,onColumnMoved:Kr,onDragStart:Ur,onHeaderMenuClick:Wr,onItemHovered:Gr,isFilling:!0===(null==b?void 0:b.fillHandle),onMouseMove:Nr,onKeyDown:ei,onKeyUp:me,onMouseDown:Ir,onMouseUp:$r,onDragOverCell:at,onDrop:st,onSearchResultsChanged:ii,onVisibleRegionChanged:Xr,clientSize:[$n[0],$n[1]],rowHeight:Qt,rows:ur,scrollRef:x,selection:wn,translateX:er.tx,translateY:er.ty,verticalBorder:ui,gridRef:ar,getCellRenderer:Wn,scrollToEnd:Ht}),ci,void 0!==v&&i.createElement(he,{...v,validateCell:xn,id:Jr,getCellRenderer:Wn,className:!0===(null==gt?void 0:gt.isSubGrid)?"click-outside-ignore":void 0,provideEditor:nt,imageEditorOverride:S,onFinishEditing:Qr,markdownDivCreateNode:A})))}))},1396:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n.n(r);var o=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,l=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){return o.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),a=function(){const e=Array.prototype.slice.call(arguments).filter(Boolean),t={},n=[];e.forEach((e=>{(e?e.split(" "):[]).forEach((e=>{if(e.startsWith("atm_")){const[,n]=e.split("_");t[n]=e}else n.push(e)}))}));const r=[];for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&r.push(t[i]);return r.push(...n),r.join(" ")},s=(e,t)=>{const n={};return Object.keys(e).filter((e=>t=>-1===e.indexOf(t))(t)).forEach((t=>{n[t]=e[t]})),n};var u=(e,t)=>{{if("string"===typeof e||"number"===typeof e&&isFinite(e))return;const n="object"===typeof e?JSON.stringify(e):String(e);console.warn(`An interpolation evaluated to '${n}' in the component '${t}', which is probably a mistake. You should explicitly cast or transform the value to a string.`)}};var c=new Proxy((function(e){return t=>{if(Array.isArray(t))throw new Error('Using the "styled" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly. See https://github.com/callstack/linaria#setup');const n=(n,r)=>{const{as:o=e,class:c}=n,d=function(e,t,n){const r=s(t,n);var i;return"string"===typeof e&&-1===e.indexOf("-")&&(i=e[0]).toUpperCase()!==i&&Object.keys(r).forEach((e=>{l(e)||delete r[e]})),r}(o,n,["as","class"]);d.ref=r,d.className=t.atomic?a(t.class,d.className||c):a(d.className||c,t.class);const{vars:h}=t;if(h){const e={};for(const o in h){const r=h[o],i=r[0],l=r[1]||"",a="function"===typeof i?i(n):i;u(a,t.name),e[`--${o}`]=`${a}${l}`}const r=d.style||{},i=Object.keys(r);i.length>0&&i.forEach((t=>{e[t]=r[t]})),d.style=e}return e.__linaria&&e!==o?(d.as=o,i.a.createElement(e,d)):i.a.createElement(o,d)},r=i.a.forwardRef?i.a.forwardRef(n):e=>{const t=s(e,["innerRef"]);return n(t,e.innerRef)};return r.displayName=t.name,r.__linaria={className:t.class,extends:e},r}}),{get:(e,t)=>e(t)})},1397:function(e,t,n){var r,i,o;i=[t,n(1530)],void 0===(o="function"===typeof(r=function(e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=r(t);function r(e){return e&&e.__esModule?e:{default:e}}e.default=n.default})?r.apply(t,i):r)||(e.exports=o)},1398:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,i=(r=n(1534))&&r.__esModule?r:{default:r};var o={ROOT:function(e){return(0,i.default)(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({"carousel-root":!0},e||"",!!e))},CAROUSEL:function(e){return(0,i.default)({carousel:!0,"carousel-slider":e})},WRAPPER:function(e,t){return(0,i.default)({"thumbs-wrapper":!e,"slider-wrapper":e,"axis-horizontal":"horizontal"===t,"axis-vertical":"horizontal"!==t})},SLIDER:function(e,t){return(0,i.default)({thumbs:!e,slider:e,animated:!t})},ITEM:function(e,t,n){return(0,i.default)({thumb:!e,slide:e,selected:t,previous:n})},ARROW_PREV:function(e){return(0,i.default)({"control-arrow control-prev":!0,"control-disabled":e})},ARROW_NEXT:function(e){return(0,i.default)({"control-arrow control-next":!0,"control-disabled":e})},DOT:function(e){return(0,i.default)({dot:!0,selected:e})}};t.default=o},1399:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==d(e)&&"function"!==typeof e)return{default:e};var t=c();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=u(n(1398)),o=n(1535),l=u(n(1346)),a=u(n(1397)),s=u(n(1400));function u(e){return e&&e.__esModule?e:{default:e}}function c(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return c=function(){return e},e}function d(e){return(d="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)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(d,e);var t,n,u,c=g(d);function d(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),y(m(t=c.call(this,e)),"itemsWrapperRef",void 0),y(m(t),"itemsListRef",void 0),y(m(t),"thumbsRef",void 0),y(m(t),"setItemsWrapperRef",(function(e){t.itemsWrapperRef=e})),y(m(t),"setItemsListRef",(function(e){t.itemsListRef=e})),y(m(t),"setThumbsRef",(function(e,n){t.thumbsRef||(t.thumbsRef=[]),t.thumbsRef[n]=e})),y(m(t),"updateSizes",(function(){if(t.props.children&&t.itemsWrapperRef&&t.thumbsRef){var e=r.Children.count(t.props.children),n=t.itemsWrapperRef.clientWidth,i=t.props.thumbWidth?t.props.thumbWidth:(0,o.outerWidth)(t.thumbsRef[0]),l=Math.floor(n/i),a=l<e,s=a?e-l:0;t.setState((function(e,n){return{itemSize:i,visibleItems:l,firstItem:a?t.getFirstItem(n.selectedItem):0,lastPosition:s,showArrows:a}}))}})),y(m(t),"handleClickItem",(function(e,n,r){if(!function(e){return e.hasOwnProperty("key")}(r)||"Enter"===r.key){var i=t.props.onSelectItem;"function"===typeof i&&i(e,n)}})),y(m(t),"onSwipeStart",(function(){t.setState({swiping:!0})})),y(m(t),"onSwipeEnd",(function(){t.setState({swiping:!1})})),y(m(t),"onSwipeMove",(function(e){var n=e.x;if(!t.state.itemSize||!t.itemsWrapperRef||!t.state.visibleItems)return!1;var i=r.Children.count(t.props.children),o=-100*t.state.firstItem/t.state.visibleItems;0===o&&n>0&&(n=0),o===100*-Math.max(i-t.state.visibleItems,0)/t.state.visibleItems&&n<0&&(n=0);var a=o+100/(t.itemsWrapperRef.clientWidth/n);return t.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(e){t.itemsListRef.style[e]=(0,l.default)(a,"%",t.props.axis)})),!0})),y(m(t),"slideRight",(function(e){t.moveTo(t.state.firstItem-("number"===typeof e?e:1))})),y(m(t),"slideLeft",(function(e){t.moveTo(t.state.firstItem+("number"===typeof e?e:1))})),y(m(t),"moveTo",(function(e){e=(e=e<0?0:e)>=t.state.lastPosition?t.state.lastPosition:e,t.setState({firstItem:e})})),t.state={selectedItem:e.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},t}return t=d,(n=[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(e){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==e.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(e){var t=e;return e>=this.state.lastPosition&&(t=this.state.lastPosition),e<this.state.firstItem+this.state.visibleItems&&(t=this.state.firstItem),e<this.state.firstItem&&(t=e),t}},{key:"renderItems",value:function(){var e=this;return this.props.children.map((function(t,n){var o=i.default.ITEM(!1,n===e.state.selectedItem),l={key:n,ref:function(t){return e.setThumbsRef(t,n)},className:o,onClick:e.handleClickItem.bind(e,n,e.props.children[n]),onKeyDown:e.handleClickItem.bind(e,n,e.props.children[n]),"aria-label":"".concat(e.props.labels.item," ").concat(n+1),style:{width:e.props.thumbWidth}};return r.default.createElement("li",h({},l,{role:"button",tabIndex:0}),t)}))}},{key:"render",value:function(){var e=this;if(!this.props.children)return null;var t,n=r.Children.count(this.props.children)>1,o=this.state.showArrows&&this.state.firstItem>0,s=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,u=-this.state.firstItem*(this.state.itemSize||0),c=(0,l.default)(u,"px",this.props.axis),d=this.props.transitionTime+"ms";return t={WebkitTransform:c,MozTransform:c,MsTransform:c,OTransform:c,transform:c,msTransform:c,WebkitTransitionDuration:d,MozTransitionDuration:d,MsTransitionDuration:d,OTransitionDuration:d,transitionDuration:d,msTransitionDuration:d},r.default.createElement("div",{className:i.default.CAROUSEL(!1)},r.default.createElement("div",{className:i.default.WRAPPER(!1),ref:this.setItemsWrapperRef},r.default.createElement("button",{type:"button",className:i.default.ARROW_PREV(!o),onClick:function(){return e.slideRight()},"aria-label":this.props.labels.leftArrow}),n?r.default.createElement(a.default,{tagName:"ul",className:i.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:t,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):r.default.createElement("ul",{className:i.default.SLIDER(!1,this.state.swiping),ref:function(t){return e.setItemsListRef(t)},style:t},this.renderItems()),r.default.createElement("button",{type:"button",className:i.default.ARROW_NEXT(!s),onClick:function(){return e.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}])&&f(t.prototype,n),u&&f(t,u),d}(r.Component);t.default=b,y(b,"displayName","Thumbs"),y(b,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350})},1400:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return window}},1401:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setPosition=t.getPosition=t.isKeyboardEvent=t.defaultStatusFormatter=t.noop=void 0;var r,i=n(0),o=(r=n(1346))&&r.__esModule?r:{default:r};t.noop=function(){};t.defaultStatusFormatter=function(e,t){return"".concat(e," of ").concat(t)};t.isKeyboardEvent=function(e){return!!e&&e.hasOwnProperty("key")};t.getPosition=function(e,t){if(t.infiniteLoop&&++e,0===e)return 0;var n=i.Children.count(t.children);if(t.centerMode&&"horizontal"===t.axis){var r=-e*t.centerSlidePercentage,o=n-1;return e&&(e!==o||t.infiniteLoop)?r+=(100-t.centerSlidePercentage)/2:e===o&&(r+=100-t.centerSlidePercentage),r}return 100*-e};t.setPosition=function(e,t){var n={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach((function(r){n[r]=(0,o.default)(e,"%",t)})),n}},1512:function(e,t){e.exports=function(e,t,n){return e===e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},1513:function(e,t,n){var r=n(1514);e.exports=function(e){return e&&e.length?r(e):[]}},1514:function(e,t,n){var r=n(480),i=n(1339),o=n(1344),l=n(481),a=n(1515),s=n(320);e.exports=function(e,t,n){var u=-1,c=i,d=e.length,h=!0,f=[],p=f;if(n)h=!1,c=o;else if(d>=200){var g=t?null:a(e);if(g)return s(g);h=!1,c=l,p=new r}else p=t?[]:f;e:for(;++u<d;){var v=e[u],m=t?t(v):v;if(v=n||0!==v?v:0,h&&m===m){for(var w=p.length;w--;)if(p[w]===m)continue e;t&&p.push(m),f.push(v)}else c(p,m,n)||(p!==f&&p.push(m),f.push(v))}return f}},1515:function(e,t,n){var r=n(484),i=n(1516),o=n(320),l=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=l},1516:function(e,t){e.exports=function(){}},1517:function(e,t,n){var r=n(1518);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},1518:function(e,t,n){var r=n(322),i=n(1519);e.exports=function e(t,n,o,l,a){var s=-1,u=t.length;for(o||(o=i),a||(a=[]);++s<u;){var c=t[s];n>0&&o(c)?n>1?e(c,n-1,o,l,a):r(a,c):l||(a[a.length]=c)}return a}},1519:function(e,t,n){var r=n(146),i=n(251),o=n(77),l=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(l&&e&&e[l])}},1520:function(e,t,n){var r=n(83);e.exports=function(){return r.Date.now()}},1521:function(e,t,n){var r=n(1522),i=n(487);e.exports=function(e,t){return null!=e&&i(e,t,r)}},1522:function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},1523:function(e,t,n){var r=n(1345),i=n(103);e.exports=function(e,t,n){var o=!0,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(o="leading"in n?!!n.leading:o,l="trailing"in n?!!n.trailing:l),r(e,t,{leading:o,maxWait:t,trailing:l})}},1524:function(e,t,n){var r=n(203),i=n(1525),o=Object.prototype.hasOwnProperty,l=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=l},1525:function(e,t,n){var r=n(1526),i=n(1527),o=n(324),l=n(77);e.exports=function(e,t){return function(n,a){var s=l(n)?r:i,u=t?t():{};return s(n,e,o(a,2),u)}}},1526:function(e,t){e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var l=e[i];t(r,l,n(l),e)}return r}},1527:function(e,t,n){var r=n(488);e.exports=function(e,t,n,i){return r(e,(function(e,r,o){t(i,e,n(e),o)})),i}},1528:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Carousel",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"CarouselProps",{enumerable:!0,get:function(){return i.CarouselProps}}),Object.defineProperty(t,"Thumbs",{enumerable:!0,get:function(){return o.default}});var r=l(n(1529)),i=n(1538),o=l(n(1399));function l(e){return e&&e.__esModule?e:{default:e}}},1529:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==f(e)&&"function"!==typeof e)return{default:e};var t=h();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}n.default=e,t&&t.set(e,n);return n}(n(0)),i=d(n(1397)),o=d(n(1398)),l=d(n(1399)),a=d(n(1536)),s=d(n(1400)),u=n(1401),c=n(1537);function d(e){return e&&e.__esModule?e:{default:e}}function h(){if("function"!==typeof WeakMap)return null;var e=new WeakMap;return h=function(){return e},e}function f(e){return(f="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)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=x(e);if(t){var i=x(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==f(t)&&"function"!==typeof t?D(e):t}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var k=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(f,e);var t,n,d,h=y(f);function f(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),C(D(t=h.call(this,e)),"thumbsRef",void 0),C(D(t),"carouselWrapperRef",void 0),C(D(t),"listRef",void 0),C(D(t),"itemsRef",void 0),C(D(t),"timer",void 0),C(D(t),"animationHandler",void 0),C(D(t),"setThumbsRef",(function(e){t.thumbsRef=e})),C(D(t),"setCarouselWrapperRef",(function(e){t.carouselWrapperRef=e})),C(D(t),"setListRef",(function(e){t.listRef=e})),C(D(t),"setItemsRef",(function(e,n){t.itemsRef||(t.itemsRef=[]),t.itemsRef[n]=e})),C(D(t),"autoPlay",(function(){r.Children.count(t.props.children)<=1||(t.clearAutoPlay(),t.props.autoPlay&&(t.timer=setTimeout((function(){t.increment()}),t.props.interval)))})),C(D(t),"clearAutoPlay",(function(){t.timer&&clearTimeout(t.timer)})),C(D(t),"resetAutoPlay",(function(){t.clearAutoPlay(),t.autoPlay()})),C(D(t),"stopOnHover",(function(){t.setState({isMouseEntered:!0},t.clearAutoPlay)})),C(D(t),"startOnLeave",(function(){t.setState({isMouseEntered:!1},t.autoPlay)})),C(D(t),"isFocusWithinTheCarousel",(function(){return!!t.carouselWrapperRef&&!((0,a.default)().activeElement!==t.carouselWrapperRef&&!t.carouselWrapperRef.contains((0,a.default)().activeElement))})),C(D(t),"navigateWithKeyboard",(function(e){if(t.isFocusWithinTheCarousel()){var n="horizontal"===t.props.axis,r=n?37:38;(n?39:40)===e.keyCode?t.increment():r===e.keyCode&&t.decrement()}})),C(D(t),"updateSizes",(function(){if(t.state.initialized&&t.itemsRef&&0!==t.itemsRef.length){var e="horizontal"===t.props.axis,n=t.itemsRef[0];if(n){var r=e?n.clientWidth:n.clientHeight;t.setState({itemSize:r}),t.thumbsRef&&t.thumbsRef.updateSizes()}}})),C(D(t),"setMountState",(function(){t.setState({hasMount:!0}),t.updateSizes()})),C(D(t),"handleClickItem",(function(e,n){0!==r.Children.count(t.props.children)&&(t.state.cancelClick?t.setState({cancelClick:!1}):(t.props.onClickItem(e,n),e!==t.state.selectedItem&&t.setState({selectedItem:e})))})),C(D(t),"handleOnChange",(function(e,n){r.Children.count(t.props.children)<=1||t.props.onChange(e,n)})),C(D(t),"handleClickThumb",(function(e,n){t.props.onClickThumb(e,n),t.moveTo(e)})),C(D(t),"onSwipeStart",(function(e){t.setState({swiping:!0}),t.props.onSwipeStart(e)})),C(D(t),"onSwipeEnd",(function(e){t.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),t.props.onSwipeEnd(e),t.clearAutoPlay(),t.state.autoPlay&&t.autoPlay()})),C(D(t),"onSwipeMove",(function(e,n){t.props.onSwipeMove(n);var r=t.props.swipeAnimationHandler(e,t.props,t.state,t.setState.bind(D(t)));return t.setState(v({},r)),!!Object.keys(r).length})),C(D(t),"decrement",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem-("number"===typeof e?e:1))})),C(D(t),"increment",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;t.moveTo(t.state.selectedItem+("number"===typeof e?e:1))})),C(D(t),"moveTo",(function(e){if("number"===typeof e){var n=r.Children.count(t.props.children)-1;e<0&&(e=t.props.infiniteLoop?n:0),e>n&&(e=t.props.infiniteLoop?0:n),t.selectItem({selectedItem:e}),t.state.autoPlay&&!1===t.state.isMouseEntered&&t.resetAutoPlay()}})),C(D(t),"onClickNext",(function(){t.increment(1)})),C(D(t),"onClickPrev",(function(){t.decrement(1)})),C(D(t),"onSwipeForward",(function(){t.increment(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),C(D(t),"onSwipeBackwards",(function(){t.decrement(1),t.props.emulateTouch&&t.setState({cancelClick:!0})})),C(D(t),"changeItem",(function(e){return function(n){(0,u.isKeyboardEvent)(n)&&"Enter"!==n.key||t.moveTo(e)}})),C(D(t),"selectItem",(function(e){t.setState(v({previousItem:t.state.selectedItem},e),(function(){t.setState(t.animationHandler(t.props,t.state))})),t.handleOnChange(e.selectedItem,r.Children.toArray(t.props.children)[e.selectedItem])})),C(D(t),"getInitialImage",(function(){var e=t.props.selectedItem,n=t.itemsRef&&t.itemsRef[e];return(n&&n.getElementsByTagName("img")||[])[0]})),C(D(t),"getVariableItemHeight",(function(e){var n=t.itemsRef&&t.itemsRef[e];if(t.state.hasMount&&n&&n.children.length){var r=n.children[0].getElementsByTagName("img")||[];if(r.length>0){var i=r[0];if(!i.complete){i.addEventListener("load",(function e(){t.forceUpdate(),i.removeEventListener("load",e)}))}}var o=(r[0]||n.children[0]).clientHeight;return o>0?o:null}return null}));var n={initialized:!1,previousItem:e.selectedItem,selectedItem:e.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:e.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return t.animationHandler="function"===typeof e.animationHandler&&e.animationHandler||"fade"===e.animationHandler&&c.fadeAnimationHandler||c.slideAnimationHandler,t.state=v(v({},n),t.animationHandler(e,n)),t}return t=f,(n=[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(e,t){e.children||!this.props.children||this.state.initialized||this.setupCarousel(),!e.autoFocus&&this.props.autoFocus&&this.forceFocus(),t.swiping&&!this.state.swiping&&this.setState(v({},this.props.stopSwipingHandler(this.props,this.state))),e.selectedItem===this.props.selectedItem&&e.centerMode===this.props.centerMode||(this.updateSizes(),this.moveTo(this.props.selectedItem)),e.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var e=this;this.bindEvents(),this.state.autoPlay&&r.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},(function(){var t=e.getInitialImage();t&&!t.complete?t.addEventListener("load",e.setMountState):e.setMountState()}))}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.addEventListener("mouseenter",this.stopOnHover),e.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var e=this.carouselWrapperRef;this.props.stopOnHover&&e&&(e.removeEventListener("mouseenter",this.stopOnHover),e.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,a.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var e=this.getInitialImage();e&&e.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,a.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var e;null===(e=this.carouselWrapperRef)||void 0===e||e.focus()}},{key:"renderItems",value:function(e){var t=this;return this.props.children?r.Children.map(this.props.children,(function(n,i){var l=i===t.state.selectedItem,a=i===t.state.previousItem,s=l&&t.state.selectedStyle||a&&t.state.prevStyle||t.state.slideStyle||{};t.props.centerMode&&"horizontal"===t.props.axis&&(s=v(v({},s),{},{minWidth:t.props.centerSlidePercentage+"%"})),t.state.swiping&&t.state.swipeMovementStarted&&(s=v(v({},s),{},{pointerEvents:"none"}));var u={ref:function(e){return t.setItemsRef(e,i)},key:"itemKey"+i+(e?"clone":""),className:o.default.ITEM(!0,i===t.state.selectedItem,i===t.state.previousItem),onClick:t.handleClickItem.bind(t,i,n),style:s};return r.default.createElement("li",u,t.props.renderItem(n,{isSelected:i===t.state.selectedItem,isPrevious:i===t.state.previousItem}))})):[]}},{key:"renderControls",value:function(){var e=this,t=this.props,n=t.showIndicators,i=t.labels,o=t.renderIndicator,l=t.children;return n?r.default.createElement("ul",{className:"control-dots"},r.Children.map(l,(function(t,n){return o&&o(e.changeItem(n),n===e.state.selectedItem,n,i.item)}))):null}},{key:"renderStatus",value:function(){return this.props.showStatus?r.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,r.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return this.props.showThumbs&&this.props.children&&0!==r.Children.count(this.props.children)?r.default.createElement(l.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children)):null}},{key:"render",value:function(){var e=this;if(!this.props.children||0===r.Children.count(this.props.children))return null;var t=this.props.swipeable&&r.Children.count(this.props.children)>1,n="horizontal"===this.props.axis,l=this.props.showArrows&&r.Children.count(this.props.children)>1,a=l&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,s=l&&(this.state.selectedItem<r.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,u=this.renderItems(!0),c=u.shift(),d=u.pop(),h={className:o.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},f={};if(n){if(h.onSwipeLeft=this.onSwipeForward,h.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var g=this.getVariableItemHeight(this.state.selectedItem);f.height=g||"auto"}}else h.onSwipeUp="natural"===this.props.verticalSwipe?this.onSwipeBackwards:this.onSwipeForward,h.onSwipeDown="natural"===this.props.verticalSwipe?this.onSwipeForward:this.onSwipeBackwards,h.style=v(v({},h.style),{},{height:this.state.itemSize}),f.height=this.state.itemSize;return r.default.createElement("div",{"aria-label":this.props.ariaLabel,className:o.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},r.default.createElement("div",{className:o.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,a,this.props.labels.leftArrow),r.default.createElement("div",{className:o.default.WRAPPER(!0,this.props.axis),style:f},t?r.default.createElement(i.default,p({tagName:"ul",innerRef:this.setListRef},h,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&d,this.renderItems(),this.props.infiniteLoop&&c):r.default.createElement("ul",{className:o.default.SLIDER(!0,this.state.swiping),ref:function(t){return e.setListRef(t)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&d,this.renderItems(),this.props.infiniteLoop&&c)),this.props.renderArrowNext(this.onClickNext,s,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}])&&m(t.prototype,n),d&&m(t,d),f}(r.default.Component);t.default=k,C(k,"displayName","Carousel"),C(k,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:u.noop,onClickThumb:u.noop,onChange:u.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(e,t,n){return r.default.createElement("button",{type:"button","aria-label":n,className:o.default.ARROW_PREV(!t),onClick:e})},renderArrowNext:function(e,t,n){return r.default.createElement("button",{type:"button","aria-label":n,className:o.default.ARROW_NEXT(!t),onClick:e})},renderIndicator:function(e,t,n,i){return r.default.createElement("li",{className:o.default.DOT(t),onClick:e,onKeyDown:e,value:n,key:n,role:"button",tabIndex:0,"aria-label":"".concat(i," ").concat(n+1)})},renderItem:function(e){return e},renderThumbs:function(e){var t=r.Children.map(e,(function(e){var t=e;if("img"!==e.type&&(t=r.Children.toArray(e.props.children).find((function(e){return"img"===e.type}))),t)return t}));return 0===t.filter((function(e){return e})).length?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):t},statusFormatter:u.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler})},1530:function(e,t,n){var r,i,o;i=[t,n(0),n(1531)],void 0===(o="function"===typeof(r=function(e,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHasSupportToCaptureOption=f;var r=o(t),i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}var l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function d(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=!1;function f(e){h=e}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){f(!0)}}))}catch(m){}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{capture:!0};return h?e:e.capture}function g(e){if("touches"in e){var t=e.touches[0];return{x:t.pageX,y:t.pageY}}return{x:e.screenX,y:e.screenY}}var v=function(e){function t(){var e;s(this,t);for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=c(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(r)));return o._handleSwipeStart=o._handleSwipeStart.bind(o),o._handleSwipeMove=o._handleSwipeMove.bind(o),o._handleSwipeEnd=o._handleSwipeEnd.bind(o),o._onMouseDown=o._onMouseDown.bind(o),o._onMouseMove=o._onMouseMove.bind(o),o._onMouseUp=o._onMouseUp.bind(o),o._setSwiperRef=o._setSwiperRef.bind(o),o}return d(t,e),u(t,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,p({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,p({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(e){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(e))}},{key:"_onMouseMove",value:function(e){this.mouseDown&&this._handleSwipeMove(e)}},{key:"_onMouseUp",value:function(e){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(e)}},{key:"_handleSwipeStart",value:function(e){var t=g(e),n=t.x,r=t.y;this.moveStart={x:n,y:r},this.props.onSwipeStart(e)}},{key:"_handleSwipeMove",value:function(e){if(this.moveStart){var t=g(e),n=t.x,r=t.y,i=n-this.moveStart.x,o=r-this.moveStart.y;this.moving=!0,this.props.onSwipeMove({x:i,y:o},e)&&e.cancelable&&e.preventDefault(),this.movePosition={deltaX:i,deltaY:o}}}},{key:"_handleSwipeEnd",value:function(e){this.props.onSwipeEnd(e);var t=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-t?this.props.onSwipeLeft(1,e):this.movePosition.deltaX>t&&this.props.onSwipeRight(1,e),this.movePosition.deltaY<-t?this.props.onSwipeUp(1,e):this.movePosition.deltaY>t&&this.props.onSwipeDown(1,e)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(e){this.swiper=e,this.props.innerRef(e)}},{key:"render",value:function(){var e=this.props,t=(e.tagName,e.className),n=e.style,i=e.children,o=(e.allowMouseEvents,e.onSwipeUp,e.onSwipeDown,e.onSwipeLeft,e.onSwipeRight,e.onSwipeStart,e.onSwipeMove,e.onSwipeEnd,e.innerRef,e.tolerance,a(e,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]));return r.default.createElement(this.props.tagName,l({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:t,style:n},o),i)}}]),t}(t.Component);v.displayName="ReactSwipe",v.propTypes={tagName:i.default.string,className:i.default.string,style:i.default.object,children:i.default.node,allowMouseEvents:i.default.bool,onSwipeUp:i.default.func,onSwipeDown:i.default.func,onSwipeLeft:i.default.func,onSwipeRight:i.default.func,onSwipeStart:i.default.func,onSwipeMove:i.default.func,onSwipeEnd:i.default.func,innerRef:i.default.func,tolerance:i.default.number.isRequired},v.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},e.default=v})?r.apply(t,i):r)||(e.exports=o)},1531:function(e,t,n){e.exports=n(1532)()},1532:function(e,t,n){"use strict";var r=n(1533);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,l){if(l!==r){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},1533:function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},1534:function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)){if(r.length){var l=i.apply(null,r);l&&e.push(l)}}else if("object"===o)if(r.toString===Object.prototype.toString)for(var a in r)n.call(r,a)&&r[a]&&e.push(a);else e.push(r.toString())}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},1535:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.outerWidth=void 0;t.outerWidth=function(e){var t=e.offsetWidth,n=getComputedStyle(e);return t+=parseInt(n.marginLeft)+parseInt(n.marginRight)}},1536:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){return document}},1537:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fadeAnimationHandler=t.slideStopSwipingHandler=t.slideSwipeAnimationHandler=t.slideAnimationHandler=void 0;var r,i=n(0),o=(r=n(1346))&&r.__esModule?r:{default:r},l=n(1401);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.slideAnimationHandler=function(e,t){var n={},r=t.selectedItem,a=r,u=i.Children.count(e.children)-1;if(e.infiniteLoop&&(r<0||r>u))return a<0?e.centerMode&&e.centerSlidePercentage&&"horizontal"===e.axis?n.itemListStyle=(0,l.setPosition)(-(u+2)*e.centerSlidePercentage-(100-e.centerSlidePercentage)/2,e.axis):n.itemListStyle=(0,l.setPosition)(100*-(u+2),e.axis):a>u&&(n.itemListStyle=(0,l.setPosition)(0,e.axis)),n;var c=(0,l.getPosition)(r,e),d=(0,o.default)(c,"%",e.axis),h=e.transitionTime+"ms";return n.itemListStyle={WebkitTransform:d,msTransform:d,OTransform:d,transform:d},t.swiping||(n.itemListStyle=s(s({},n.itemListStyle),{},{WebkitTransitionDuration:h,MozTransitionDuration:h,OTransitionDuration:h,transitionDuration:h,msTransitionDuration:h})),n};t.slideSwipeAnimationHandler=function(e,t,n,r){var o={},a="horizontal"===t.axis,s=i.Children.count(t.children),u=(0,l.getPosition)(n.selectedItem,t),c=t.infiniteLoop?(0,l.getPosition)(s-1,t)-100:(0,l.getPosition)(s-1,t),d=a?e.x:e.y,h=d;0===u&&d>0&&(h=0),u===c&&d<0&&(h=0);var f=u+100/(n.itemSize/h),p=Math.abs(d)>t.swipeScrollTolerance;return t.infiniteLoop&&p&&(0===n.selectedItem&&f>-100?f-=100*s:n.selectedItem===s-1&&f<100*-s&&(f+=100*s)),(!t.preventMovementUntilSwipeScrollTolerance||p||n.swipeMovementStarted)&&(n.swipeMovementStarted||r({swipeMovementStarted:!0}),o.itemListStyle=(0,l.setPosition)(f,t.axis)),p&&!n.cancelClick&&r({cancelClick:!0}),o};t.slideStopSwipingHandler=function(e,t){var n=(0,l.getPosition)(t.selectedItem,e);return{itemListStyle:(0,l.setPosition)(n,e.axis)}};t.fadeAnimationHandler=function(e,t){var n=e.transitionTime+"ms",r="ease-in-out",i={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:r,msTransitionTimingFunction:r,MozTransitionTimingFunction:r,WebkitTransitionTimingFunction:r,OTransitionTimingFunction:r};return t.swiping||(i=s(s({},i),{},{WebkitTransitionDuration:n,MozTransitionDuration:n,OTransitionDuration:n,transitionDuration:n,msTransitionDuration:n})),{slideStyle:i,selectedStyle:s(s({},i),{},{opacity:1,position:"relative"}),prevStyle:s({},i)}}},1538:function(e,t,n){},1539:function(e,t,n){!function(e){"use strict";function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function o(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function a(e){var t=l(e,"string");return"symbol"===typeof t?t:String(t)}function s(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function u(t){e.defaults=t}e.defaults=s();var c=/[&<>"']/,d=new RegExp(c.source,"g"),h=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,f=new RegExp(h.source,"g"),p={"&":"&","<":"<",">":">",'"':""","'":"'"},g=function(e){return p[e]};function v(e,t){if(t){if(c.test(e))return e.replace(d,g)}else if(h.test(e))return e.replace(f,g);return e}var m=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function w(e){return e.replace(m,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var y=/(^|[^\[])\^/g;function b(e,t){e="string"===typeof e?e:e.source,t=t||"";var n={replace:function(t,r){return r=(r=r.source||r).replace(y,"$1"),e=e.replace(t,r),n},getRegex:function(){return new RegExp(e,t)}};return n}var D=/[^\w:]/g,x=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function C(e,t,n){if(e){var r;try{r=decodeURIComponent(w(n)).replace(D,"").toLowerCase()}catch(i){return null}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return null}t&&!x.test(n)&&(n=A(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(i){return null}return n}var k={},E=/^[^:]+:\/*[^/]*$/,S=/^([^:]+:)[\s\S]*$/,F=/^([^:]+:\/*[^/]*)[\s\S]*$/;function A(e,t){k[" "+e]||(E.test(e)?k[" "+e]=e+"/":k[" "+e]=T(e,"/",!0));var n=-1===(e=k[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(S,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(F,"$1")+t:e+t}var M={exec:function(){}};function R(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function I(e,t){var n=e.replace(/\|/g,(function(e,t,n){for(var r=!1,i=t;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(/\\\|/g,"|");return n}function T(e,t,n){var r=e.length;if(0===r)return"";for(var i=0;i<r;){var o=e.charAt(r-i-1);if(o!==t||n){if(o===t||!n)break;i++}else i++}return e.slice(0,r-i)}function H(e,t){if(-1===e.indexOf(t[1]))return-1;for(var n=e.length,r=0,i=0;i<n;i++)if("\\"===e[i])i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&--r<0)return i;return-1}function O(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function B(e,t){if(t<1)return"";for(var n="";t>1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function z(e,t,n,r){var i=t.href,o=t.title?v(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;var a={type:"link",raw:n,href:i,title:o,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:o,text:v(l)}}function P(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}var L=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.space=function(e){var t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}},n.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:T(n,"\n")}}},n.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=P(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:r}}},n.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=T(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}},n.hr=function(e){var t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}},n.blockquote=function(e){var t=this.rules.block.blockquote.exec(e);if(t){var n=t[0].replace(/^ *>[ \t]?/gm,""),r=this.lexer.state.top;this.lexer.state.top=!0;var i=this.lexer.blockTokens(n);return this.lexer.state.top=r,{type:"blockquote",raw:t[0],tokens:i,text:n}}},n.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,i,o,l,a,s,u,c,d,h,f,p=t[1].trim(),g=p.length>1,v={type:"list",raw:"",ordered:g,start:g?+p.slice(0,-1):"",loose:!1,items:[]};p=g?"\\d{1,9}\\"+p.slice(-1):"\\"+p,this.options.pedantic&&(p=g?p:"[*+-]");for(var m=new RegExp("^( {0,3}"+p+")((?:[\t ][^\\n]*)?(?:\\n|$))");e&&(f=!1,t=m.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),u=t[2].split("\n",1)[0].replace(/^\t+/,(function(e){return" ".repeat(3*e.length)})),c=e.split("\n",1)[0],this.options.pedantic?(o=2,h=u.trimLeft()):(o=(o=t[2].search(/[^ ]/))>4?1:o,h=u.slice(o),o+=t[1].length),a=!1,!u&&/^ *$/.test(c)&&(n+=c+"\n",e=e.substring(c.length+1),f=!0),!f)for(var w=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))"),y=new RegExp("^ {0,"+Math.min(3,o-1)+"}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)"),b=new RegExp("^ {0,"+Math.min(3,o-1)+"}(?:```|~~~)"),D=new RegExp("^ {0,"+Math.min(3,o-1)+"}#");e&&(c=d=e.split("\n",1)[0],this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!b.test(c))&&!D.test(c)&&!w.test(c)&&!y.test(e);){if(c.search(/[^ ]/)>=o||!c.trim())h+="\n"+c.slice(o);else{if(a)break;if(u.search(/[^ ]/)>=4)break;if(b.test(u))break;if(D.test(u))break;if(y.test(u))break;h+="\n"+c}a||c.trim()||(a=!0),n+=d+"\n",e=e.substring(d.length+1),u=c.slice(o)}v.loose||(s?v.loose=!0:/\n *\n *$/.test(n)&&(s=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(h))&&(i="[ ] "!==r[0],h=h.replace(/^\[[ xX]\] +/,"")),v.items.push({type:"list_item",raw:n,task:!!r,checked:i,loose:!1,text:h}),v.raw+=n}v.items[v.items.length-1].raw=n.trimRight(),v.items[v.items.length-1].text=h.trimRight(),v.raw=v.raw.trimRight();var x=v.items.length;for(l=0;l<x;l++)if(this.lexer.state.top=!1,v.items[l].tokens=this.lexer.blockTokens(v.items[l].text,[]),!v.loose){var C=v.items[l].tokens.filter((function(e){return"space"===e.type})),k=C.length>0&&C.some((function(e){return/\n.*\n/.test(e.raw)}));v.loose=k}if(v.loose)for(l=0;l<x;l++)v.items[l].loose=!0;return v}},n.html=function(e){var t=this.rules.block.html.exec(e);if(t){var n={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){var r=this.options.sanitizer?this.options.sanitizer(t[0]):v(t[0]);n.type="paragraph",n.text=r,n.tokens=this.lexer.inline(r)}return n}},n.def=function(e){var t=this.rules.block.def.exec(e);if(t){var n=t[1].toLowerCase().replace(/\s+/g," "),r=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:r,title:i}}},n.table=function(e){var t=this.rules.block.table.exec(e);if(t){var n={type:"table",header:I(t[1]).map((function(e){return{text:e}})),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(n.header.length===n.align.length){n.raw=t[0];var r,i,o,l,a=n.align.length;for(r=0;r<a;r++)/^ *-+: *$/.test(n.align[r])?n.align[r]="right":/^ *:-+: *$/.test(n.align[r])?n.align[r]="center":/^ *:-+ *$/.test(n.align[r])?n.align[r]="left":n.align[r]=null;for(a=n.rows.length,r=0;r<a;r++)n.rows[r]=I(n.rows[r],n.header.length).map((function(e){return{text:e}}));for(a=n.header.length,i=0;i<a;i++)n.header[i].tokens=this.lexer.inline(n.header[i].text);for(a=n.rows.length,i=0;i<a;i++)for(l=n.rows[i],o=0;o<l.length;o++)l[o].tokens=this.lexer.inline(l[o].text);return n}}},n.lheading=function(e){var t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}},n.paragraph=function(e){var t=this.rules.block.paragraph.exec(e);if(t){var n="\n"===t[1].charAt(t[1].length-1)?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}},n.text=function(e){var t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}},n.escape=function(e){var t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:v(t[1])}},n.tag=function(e){var t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):v(t[0]):t[0]}},n.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;var r=T(n.slice(0,-1),"\\");if((n.length-r.length)%2===0)return}else{var i=H(t[2],"()");if(i>-1){var o=(0===t[0].indexOf("!")?5:4)+t[1].length+i;t[2]=t[2].substring(0,i),t[0]=t[0].substring(0,o).trim(),t[3]=""}}var l=t[2],a="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(l);s&&(l=s[1],a=s[3])}else a=t[3]?t[3].slice(1,-1):"";return l=l.trim(),/^</.test(l)&&(l=this.options.pedantic&&!/>$/.test(n)?l.slice(1):l.slice(1,-1)),z(t,{href:l?l.replace(this.rules.inline._escapes,"$1"):l,title:a?a.replace(this.rules.inline._escapes,"$1"):a},t[0],this.lexer)}},n.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])){var i=n[0].charAt(0);return{type:"text",raw:i,text:i}}return z(n,r,n[0],this.lexer)}},n.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var i=r[1]||r[2]||"";if(!i||i&&(""===n||this.rules.inline.punctuation.exec(n))){var o,l,a=r[0].length-1,s=a,u=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+a);null!=(r=c.exec(t));)if(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(l=o.length,r[3]||r[4])s+=l;else if(!((r[5]||r[6])&&a%3)||(a+l)%3){if(!((s-=l)>0)){l=Math.min(l,l+s+u);var d=e.slice(0,a+r.index+(r[0].length-o.length)+l);if(Math.min(a,l)%2){var h=d.slice(1,-1);return{type:"em",raw:d,text:h,tokens:this.lexer.inlineTokens(h)}}var f=d.slice(2,-2);return{type:"strong",raw:d,text:f,tokens:this.lexer.inlineTokens(f)}}}else u+=l}}},n.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return r&&i&&(n=n.substring(1,n.length-1)),n=v(n,!0),{type:"codespan",raw:t[0],text:n}}},n.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},n.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}},n.autolink=function(e,t){var n,r,i=this.rules.inline.autolink.exec(e);if(i)return r="@"===i[2]?"mailto:"+(n=v(this.options.mangle?t(i[1]):i[1])):n=v(i[1]),{type:"link",raw:i[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},n.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,i;if("@"===n[2])i="mailto:"+(r=v(this.options.mangle?t(n[0]):n[0]));else{var o;do{o=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(o!==n[0]);r=v(n[0]),i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}},n.inlineText=function(e,t){var n,r=this.rules.inline.text.exec(e);if(r)return n=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):v(r[0]):r[0]:v(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}},t}(),_={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:M,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};_.def=b(_.def).replace("label",_._label).replace("title",_._title).getRegex(),_.bullet=/(?:[*+-]|\d{1,9}[.)])/,_.listItemStart=b(/^( *)(bull) */).replace("bull",_.bullet).getRegex(),_.list=b(_.list).replace(/bull/g,_.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+_.def.source+")").getRegex(),_._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/,_.html=b(_.html,"i").replace("comment",_._comment).replace("tag",_._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),_.paragraph=b(_._paragraph).replace("hr",_.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_._tag).getRegex(),_.blockquote=b(_.blockquote).replace("paragraph",_.paragraph).getRegex(),_.normal=R({},_),_.gfm=R({},_.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),_.gfm.table=b(_.gfm.table).replace("hr",_.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_._tag).getRegex(),_.gfm.paragraph=b(_._paragraph).replace("hr",_.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",_.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",_._tag).getRegex(),_.pedantic=R({},_.normal,{html:b("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",_._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:M,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(_.normal._paragraph).replace("hr",_.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",_.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var $={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:M,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:M,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};function N(e){return e.replace(/---/g,"\u2014").replace(/--/g,"\u2013").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1\u2018").replace(/'/g,"\u2019").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1\u201c").replace(/"/g,"\u201d").replace(/\.{3}/g,"\u2026")}function W(e){var t,n,r="",i=e.length;for(t=0;t<i;t++)n=e.charCodeAt(t),Math.random()>.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}$._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",$.punctuation=b($.punctuation).replace(/punctuation/g,$._punctuation).getRegex(),$.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,$.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,$._comment=b(_._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),$.emStrong.lDelim=b($.emStrong.lDelim).replace(/punct/g,$._punctuation).getRegex(),$.emStrong.rDelimAst=b($.emStrong.rDelimAst,"g").replace(/punct/g,$._punctuation).getRegex(),$.emStrong.rDelimUnd=b($.emStrong.rDelimUnd,"g").replace(/punct/g,$._punctuation).getRegex(),$._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,$._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,$._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,$.autolink=b($.autolink).replace("scheme",$._scheme).replace("email",$._email).getRegex(),$._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,$.tag=b($.tag).replace("comment",$._comment).replace("attribute",$._attribute).getRegex(),$._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,$._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,$._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,$.link=b($.link).replace("label",$._label).replace("href",$._href).replace("title",$._title).getRegex(),$.reflink=b($.reflink).replace("label",$._label).replace("ref",_._label).getRegex(),$.nolink=b($.nolink).replace("ref",_._label).getRegex(),$.reflinkSearch=b($.reflinkSearch,"g").replace("reflink",$.reflink).replace("nolink",$.nolink).getRegex(),$.normal=R({},$),$.pedantic=R({},$.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",$._label).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",$._label).getRegex()}),$.gfm=R({},$.normal,{escape:b($.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/}),$.gfm.url=b($.gfm.url,"i").replace("email",$.gfm._extended_email).getRegex(),$.breaks=R({},$.gfm,{br:b($.br).replace("{2,}","*").getRegex(),text:b($.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var j=function(){function t(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||e.defaults,this.options.tokenizer=this.options.tokenizer||new L,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};var n={block:_.normal,inline:$.normal};this.options.pedantic?(n.block=_.pedantic,n.inline=$.pedantic):this.options.gfm&&(n.block=_.gfm,this.options.breaks?n.inline=$.breaks:n.inline=$.gfm),this.tokenizer.rules=n}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var r=t.prototype;return r.lex=function(e){var t;for(e=e.replace(/\r\n|\r/g,"\n"),this.blockTokens(e,this.tokens);t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens},r.blockTokens=function(e,t){var n,r,i,o,l=this;for(void 0===t&&(t=[]),e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,(function(e,t,n){return t+" ".repeat(n.length)}));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(r){return!!(n=r.call({lexer:l},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),1===n.raw.length&&t.length>0?t[t.length-1].raw+="\n":t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),!(r=t[t.length-1])||"paragraph"!==r.type&&"text"!==r.type?t.push(n):(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),!(r=t[t.length-1])||"paragraph"!==r.type&&"text"!==r.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(r.raw+="\n"+n.raw,r.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=r.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);else if(i=e,this.options.extensions&&this.options.extensions.startBlock&&function(){var t=1/0,n=e.slice(1),r=void 0;l.options.extensions.startBlock.forEach((function(e){"number"===typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),this.state.top&&(n=this.tokenizer.paragraph(i)))r=t[t.length-1],o&&"paragraph"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n),o=i.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===r.type?(r.raw+="\n"+n.raw,r.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=r.text):t.push(n);else if(e){var a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}throw new Error(a)}return this.state.top=!0,t},r.inline=function(e,t){return void 0===t&&(t=[]),this.inlineQueue.push({src:e,tokens:t}),t},r.inlineTokens=function(e,t){var n,r,i,o=this;void 0===t&&(t=[]);var l,a,s,u=e;if(this.tokens.links){var c=Object.keys(this.tokens.links);if(c.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(u));)c.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,l.index)+"["+B("a",l[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(u));)u=u.slice(0,l.index)+"["+B("a",l[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.escapedEmSt.exec(u));)u=u.slice(0,l.index+l[0].length-2)+"++"+u.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(a||(s=""),a=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(r){return!!(n=r.call({lexer:o},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)}))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),(r=t[t.length-1])&&"text"===n.type&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,u,s))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,W))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,W))){if(i=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),r=void 0;o.options.extensions.startInline.forEach((function(e){"number"===typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),n=this.tokenizer.inlineText(i,N))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0,(r=t[t.length-1])&&"text"===r.type?(r.raw+=n.raw,r.text+=n.text):t.push(n);else if(e){var d="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(d);break}throw new Error(d)}}else e=e.substring(n.raw.length),t.push(n);return t},n(t,null,[{key:"rules",get:function(){return{block:_,inline:$}}}]),t}(),X=function(){function t(t){this.options=t||e.defaults}var n=t.prototype;return n.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var i=this.options.highlight(e,r);null!=i&&i!==e&&(n=!0,e=i)}return e=e.replace(/\n$/,"")+"\n",r?'<pre><code class="'+this.options.langPrefix+v(r)+'">'+(n?e:v(e,!0))+"</code></pre>\n":"<pre><code>"+(n?e:v(e,!0))+"</code></pre>\n"},n.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},n.html=function(e){return e},n.heading=function(e,t,n,r){return this.options.headerIds?"<h"+t+' id="'+(this.options.headerPrefix+r.slug(n))+'">'+e+"</h"+t+">\n":"<h"+t+">"+e+"</h"+t+">\n"},n.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},n.listitem=function(e){return"<li>"+e+"</li>\n"},n.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},n.paragraph=function(e){return"<p>"+e+"</p>\n"},n.table=function(e,t){return t&&(t="<tbody>"+t+"</tbody>"),"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"},n.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},n.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},n.strong=function(e){return"<strong>"+e+"</strong>"},n.em=function(e){return"<em>"+e+"</em>"},n.codespan=function(e){return"<code>"+e+"</code>"},n.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.del=function(e){return"<del>"+e+"</del>"},n.link=function(e,t,n){if(null===(e=C(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<a href="'+e+'"';return t&&(r+=' title="'+t+'"'),r+=">"+n+"</a>"},n.image=function(e,t,n){if(null===(e=C(this.options.sanitize,this.options.baseUrl,e)))return n;var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},n.text=function(e){return e},t}(),K=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),Y=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),U=function(){function t(t){this.options=t||e.defaults,this.options.renderer=this.options.renderer||new X,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new K,this.slugger=new Y}t.parse=function(e,n){return new t(n).parse(e)},t.parseInline=function(e,n){return new t(n).parseInline(e)};var n=t.prototype;return n.parse=function(e,t){void 0===t&&(t=!0);var n,r,i,o,l,a,s,u,c,d,h,f,p,g,v,m,y,b,D,x="",C=e.length;for(n=0;n<C;n++)if(d=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[d.type])||!1===(D=this.options.extensions.renderers[d.type].call({parser:this},d))&&["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(d.type))switch(d.type){case"space":continue;case"hr":x+=this.renderer.hr();continue;case"heading":x+=this.renderer.heading(this.parseInline(d.tokens),d.depth,w(this.parseInline(d.tokens,this.textRenderer)),this.slugger);continue;case"code":x+=this.renderer.code(d.text,d.lang,d.escaped);continue;case"table":for(u="",s="",o=d.header.length,r=0;r<o;r++)s+=this.renderer.tablecell(this.parseInline(d.header[r].tokens),{header:!0,align:d.align[r]});for(u+=this.renderer.tablerow(s),c="",o=d.rows.length,r=0;r<o;r++){for(s="",l=(a=d.rows[r]).length,i=0;i<l;i++)s+=this.renderer.tablecell(this.parseInline(a[i].tokens),{header:!1,align:d.align[i]});c+=this.renderer.tablerow(s)}x+=this.renderer.table(u,c);continue;case"blockquote":c=this.parse(d.tokens),x+=this.renderer.blockquote(c);continue;case"list":for(h=d.ordered,f=d.start,p=d.loose,o=d.items.length,c="",r=0;r<o;r++)m=(v=d.items[r]).checked,y=v.task,g="",v.task&&(b=this.renderer.checkbox(m),p?v.tokens.length>0&&"paragraph"===v.tokens[0].type?(v.tokens[0].text=b+" "+v.tokens[0].text,v.tokens[0].tokens&&v.tokens[0].tokens.length>0&&"text"===v.tokens[0].tokens[0].type&&(v.tokens[0].tokens[0].text=b+" "+v.tokens[0].tokens[0].text)):v.tokens.unshift({type:"text",text:b}):g+=b),g+=this.parse(v.tokens,p),c+=this.renderer.listitem(g,y,m);x+=this.renderer.list(c,h,f);continue;case"html":x+=this.renderer.html(d.text);continue;case"paragraph":x+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(c=d.tokens?this.parseInline(d.tokens):d.text;n+1<C&&"text"===e[n+1].type;)c+="\n"+((d=e[++n]).tokens?this.parseInline(d.tokens):d.text);x+=t?this.renderer.paragraph(c):c;continue;default:var k='Token with "'+d.type+'" type was not found.';if(this.options.silent)return void console.error(k);throw new Error(k)}else x+=D||"";return x},n.parseInline=function(e,t){t=t||this.renderer;var n,r,i,o="",l=e.length;for(n=0;n<l;n++)if(r=e[n],!(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type])||!1===(i=this.options.extensions.renderers[r.type].call({parser:this},r))&&["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type))switch(r.type){case"escape":o+=t.text(r.text);break;case"html":o+=t.html(r.text);break;case"link":o+=t.link(r.href,r.title,this.parseInline(r.tokens,t));break;case"image":o+=t.image(r.href,r.title,r.text);break;case"strong":o+=t.strong(this.parseInline(r.tokens,t));break;case"em":o+=t.em(this.parseInline(r.tokens,t));break;case"codespan":o+=t.codespan(r.text);break;case"br":o+=t.br();break;case"del":o+=t.del(this.parseInline(r.tokens,t));break;case"text":o+=t.text(r.text);break;default:var a='Token with "'+r.type+'" type was not found.';if(this.options.silent)return void console.error(a);throw new Error(a)}else o+=i||"";return o},t}();function V(e,t,n){if("undefined"===typeof e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if("function"===typeof t&&(n=t,t=null),O(t=R({},V.defaults,t||{})),n){var r,i=t.highlight;try{r=j.lex(e,t)}catch(u){return n(u)}var o=function(e){var o;if(!e)try{t.walkTokens&&V.walkTokens(r,t.walkTokens),o=U.parse(r,t)}catch(u){e=u}return t.highlight=i,e?n(e):n(null,o)};if(!i||i.length<3)return o();if(delete t.highlight,!r.length)return o();var l=0;return V.walkTokens(r,(function(e){"code"===e.type&&(l++,setTimeout((function(){i(e.text,e.lang,(function(t,n){if(t)return o(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),0===--l&&o()}))}),0))})),void(0===l&&o())}function a(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+v(e.message+"",!0)+"</pre>";throw e}try{var s=j.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(V.walkTokens(s,t.walkTokens)).then((function(){return U.parse(s,t)})).catch(a);V.walkTokens(s,t.walkTokens)}return U.parse(s,t)}catch(u){a(u)}}V.options=V.setOptions=function(e){return R(V.defaults,e),u(V.defaults),V},V.getDefaults=s,V.defaults=e.defaults,V.use=function(){for(var e=V.defaults.extensions||{renderers:{},childTokens:{}},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach((function(t){var n=R({},t);if(n.async=V.defaults.async||n.async,t.extensions&&(t.extensions.forEach((function(t){if(!t.name)throw new Error("extension name required");if(t.renderer){var n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=t.renderer.apply(this,r);return!1===o&&(o=n.apply(this,r)),o}:t.renderer}if(t.tokenizer){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw new Error("extension level must be 'block' or 'inline'");e[t.level]?e[t.level].unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}t.childTokens&&(e.childTokens[t.name]=t.childTokens)})),n.extensions=e),t.renderer&&function(){var e=V.defaults.renderer||new X,r=function(n){var r=e[n];e[n]=function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];var a=t.renderer[n].apply(e,o);return!1===a&&(a=r.apply(e,o)),a}};for(var i in t.renderer)r(i);n.renderer=e}(),t.tokenizer&&function(){var e=V.defaults.tokenizer||new L,r=function(n){var r=e[n];e[n]=function(){for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];var a=t.tokenizer[n].apply(e,o);return!1===a&&(a=r.apply(e,o)),a}};for(var i in t.tokenizer)r(i);n.tokenizer=e}(),t.walkTokens){var r=V.defaults.walkTokens;n.walkTokens=function(e){var n=[];return n.push(t.walkTokens.call(this,e)),r&&(n=n.concat(r.call(this,e))),n}}V.setOptions(n)}))},V.walkTokens=function(e,t){for(var n,r=[],i=function(){var e=n.value;switch(r=r.concat(t.call(V,e)),e.type){case"table":for(var i,l=o(e.header);!(i=l()).done;){var a=i.value;r=r.concat(V.walkTokens(a.tokens,t))}for(var s,u=o(e.rows);!(s=u()).done;)for(var c,d=o(s.value);!(c=d()).done;){var h=c.value;r=r.concat(V.walkTokens(h.tokens,t))}break;case"list":r=r.concat(V.walkTokens(e.items,t));break;default:V.defaults.extensions&&V.defaults.extensions.childTokens&&V.defaults.extensions.childTokens[e.type]?V.defaults.extensions.childTokens[e.type].forEach((function(n){r=r.concat(V.walkTokens(e[n],t))})):e.tokens&&(r=r.concat(V.walkTokens(e.tokens,t)))}},l=o(e);!(n=l()).done;)i();return r},V.parseInline=function(e,t){if("undefined"===typeof e||null===e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!==typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");O(t=R({},V.defaults,t||{}));try{var n=j.lexInline(e,t);return t.walkTokens&&V.walkTokens(n,t.walkTokens),U.parseInline(n,t)}catch(r){if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"<p>An error occurred:</p><pre>"+v(r.message+"",!0)+"</pre>";throw r}},V.Parser=U,V.parser=U.parse,V.Renderer=X,V.TextRenderer=K,V.Lexer=j,V.lexer=j.lex,V.Tokenizer=L,V.Slugger=Y,V.parse=V;var G=V.options,q=V.setOptions,Z=V.use,Q=V.walkTokens,J=V.parseInline,ee=V,te=U.parse,ne=j.lex;e.Lexer=j,e.Parser=U,e.Renderer=X,e.Slugger=Y,e.TextRenderer=K,e.Tokenizer=L,e.getDefaults=s,e.lexer=ne,e.marked=V,e.options=G,e.parse=ee,e.parseInline=J,e.parser=te,e.setOptions=q,e.use=Z,e.walkTokens=Q}(t)},1540:function(e,t,n){},1723:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1385),i=n(1241),o=n.n(i),l=n(0);function a(e){var t,n,i,o,l;switch(e.kind){case r.c.Number:return null!==(t=null===(n=e.data)||void 0===n?void 0:n.toString())&&void 0!==t?t:"";case r.c.Boolean:return null!==(i=null===(o=e.data)||void 0===o?void 0:o.toString())&&void 0!==i?i:"";case r.c.Markdown:case r.c.RowID:case r.c.Text:case r.c.Uri:return null!==(l=e.data)&&void 0!==l?l:"";case r.c.Bubble:case r.c.Image:return e.data.join("");case r.c.Drilldown:return e.data.map((e=>e.text)).join("");case r.c.Protected:case r.c.Loading:return"";case r.c.Custom:return e.copyData}}function s(e){if("number"===typeof e)return e;if(e.length>0){const t=parseFloat(e);isNaN(t)||(e=t)}return e}function u(e){var t;const{sort:n,rows:r,getCellContent:i}=e;let u=void 0===n?void 0:e.columns.findIndex((e=>n.column===e||void 0!==e.id&&n.column.id===e.id));-1===u&&(u=void 0);const c=null!==(t=null===n||void 0===n?void 0:n.direction)&&void 0!==t?t:"asc",d=l.useMemo((()=>{if(void 0===u)return;const e=new Array(r),t=[u,0];for(let n=0;n<r;n++)t[1]=n,e[n]=a(i(t));let l;return l="raw"===(null===n||void 0===n?void 0:n.mode)?o()(r).sort(((t,n)=>function(e,t){return e>t?1:e===t?0:-1}(e[t],e[n]))):"smart"===(null===n||void 0===n?void 0:n.mode)?o()(r).sort(((t,n)=>function(e,t){return e=s(e),t=s(t),"string"===typeof e&&"string"===typeof t?e.localeCompare(t):"number"===typeof e&&"number"===typeof t?e===t?0:e>t?1:-1:e==t?0:e>t?1:-1}(e[t],e[n]))):o()(r).sort(((t,n)=>e[t].localeCompare(e[n]))),"desc"===c&&l.reverse(),l}),[i,r,null===n||void 0===n?void 0:n.mode,c,u]),h=l.useCallback((e=>void 0===d?e:d[e]),[d]),f=l.useCallback((e=>{let[t,n]=e;return void 0===d||(n=d[n]),i([t,n])}),[i,d]);return void 0===d?{getCellContent:e.getCellContent,getOriginalIndex:h}:{getOriginalIndex:h,getCellContent:f}}}}]);
|