@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
package/build/static/js/{7.e8b702b0.chunk.js.LICENSE.txt → 4320.8fa60786.chunk.js.LICENSE.txt}
RENAMED
|
@@ -11,6 +11,8 @@ License: MIT
|
|
|
11
11
|
* Copyright (c) 2016 Jorik Tangelder;
|
|
12
12
|
* Licensed under the MIT license */
|
|
13
13
|
|
|
14
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
15
|
+
|
|
14
16
|
/**
|
|
15
17
|
* @license long.js (c) 2013 Daniel Wirtz <dcode@dcode.io>
|
|
16
18
|
* Released under the Apache License, Version 2.0
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[4514],{6757:(e,t,r)=>{r.d(t,{Z:()=>u});r(5057);var n=r(34422),o=r(86964),i=r(45490);const a=r(21371).F4`
|
|
2
|
+
50% {
|
|
3
|
+
color: rgba(0, 0, 0, 0);
|
|
4
|
+
}
|
|
5
|
+
`,s=(0,i.Z)("span",{target:"e1m4n6jn0"})((({includeDot:e,shouldBlink:t,theme:r})=>({...e?{"&::before":{opacity:1,content:'"\u2022"',animation:"none",color:r.colors.gray,margin:"0 5px"}}:{},...t?{color:r.colors.red,animationName:`${a}`,animationDuration:"0.5s",animationIterationCount:5}:{}})),"");var l=r(96266);const u=({dirty:e,value:t,maxLength:r,className:i,type:a="single"})=>{const u=[],c=(e,t=!1)=>{u.push((0,l.jsx)(s,{includeDot:u.length>0,shouldBlink:t,children:e},u.length))};return e&&("multiline"===a?(0,n.Ge)()?c("Press \u2318+Enter to apply"):c("Press Ctrl+Enter to apply"):c("Press Enter to apply")),r&&c(`${t.length}/${r}`,e&&t.length>=r),(0,l.jsx)(o.X7,{className:i,children:u})}},54514:(e,t,r)=>{r.r(t),r.d(t,{default:()=>_});var n=r(5057),o=r(56846),i=r(80099),a=r(97135),s=r(18150),l=r(53381),u=r(4547);function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){d(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function d(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=(0,l.zo)("div",(function(e){return p(p({},(0,u.d5)(p(p({$positive:!1},e),{},{$hasIconTrailing:!1}))),{},{width:e.$resize?"fit-content":"100%"})}));f.displayName="StyledTextAreaRoot",f.displayName="StyledTextAreaRoot";var h=(0,l.zo)("div",(function(e){return(0,u.hB)(p({$positive:!1},e))}));h.displayName="StyledTextareaContainer",h.displayName="StyledTextareaContainer";var y=(0,l.zo)("textarea",(function(e){return p(p({},(0,u.Hx)(e)),{},{resize:e.$resize||"none"})}));function m(e){return m="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},m(e)}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},b.apply(this,arguments)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],a=!0,s=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);a=!0);}catch(l){s=!0,o=l}finally{try{a||null==r.return||r.return()}finally{if(s)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function O(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function j(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=x(e);if(t){var o=x(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return P(e)}(this,r)}}function P(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}y.displayName="StyledTextarea",y.displayName="StyledTextarea";var C=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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(u,e);var t,r,o,l=j(u);function u(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return S(P(e=l.call.apply(l,[this].concat(r))),"state",{isFocused:e.props.autoFocus||!1}),S(P(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t)})),S(P(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t)})),e}return t=u,(r=[{key:"render",value:function(){var e=this.props.overrides,t=void 0===e?{}:e,r=v((0,i.jb)(t.Root,f),2),o=r[0],l=r[1],u=(0,i.aO)({Input:{component:y},InputContainer:{component:h}},t);return n.createElement(o,b({"data-baseweb":"textarea",$isFocused:this.state.isFocused,$isReadOnly:this.props.readOnly,$disabled:this.props.disabled,$error:this.props.error,$positive:this.props.positive,$required:this.props.required,$resize:this.props.resize},l),n.createElement(a.Z,b({},this.props,{type:s.iB.textarea,overrides:u,onFocus:this.onFocus,onBlur:this.onBlur,resize:this.props.resize})))}}])&&O(t.prototype,r),o&&O(t,o),Object.defineProperty(t,"prototype",{writable:!1}),u}(n.Component);S(C,"defaultProps",{autoFocus:!1,disabled:!1,readOnly:!1,error:!1,name:"",onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){},onFocus:function(){},overrides:{},placeholder:"",required:!1,rows:3,size:s.NO.default});const F=C;var T=r(6757),$=r(86964),V=r(8429),B=r(54840),D=r(34422);const E=(0,r(45490).Z)("div",{target:"e1y61itm0"})({name:"1om1ktf",styles:"div{border-width:1px;}"});var k=r(96266);class z extends n.PureComponent{constructor(...e){super(...e),this.formClearHelper=new o.Kz,this.state={dirty:!1,value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringValue(this.props.element,this.state.value,e),this.setState({dirty:!1})},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onBlur=()=>{this.state.dirty&&this.commitWidgetValue({fromUi:!0})},this.onChange=e=>{const{value:t}=e.target,{element:r}=this.props,{maxChars:n}=r;0!==n&&t.length>n||((0,D.$b)(this.props.element)?this.setState({dirty:!1,value:t},(()=>this.commitWidgetValue({fromUi:!0}))):this.setState({dirty:!0,value:t}))},this.isEnterKeyPressed=e=>{const{keyCode:t,key:r}=e;return"Enter"===r||13===t||10===t},this.onKeyDown=e=>{const{metaKey:t,ctrlKey:r}=e,{dirty:n}=this.state;this.isEnterKeyPressed(e)&&(r||t)&&n&&(e.preventDefault(),this.commitWidgetValue({fromUi:!0}))}}get initialValue(){const e=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{element:t,disabled:r,width:n,widgetMgr:o}=this.props,{value:i,dirty:a}=this.state,s={width:n},{height:l,placeholder:u}=t;return this.formClearHelper.manageFormClearListener(o,t.formId,this.onFormCleared),(0,k.jsxs)("div",{className:"stTextArea",style:s,children:[(0,k.jsx)($.ON,{label:t.label,disabled:r,labelVisibility:(0,D.iF)(null===(e=t.labelVisibility)||void 0===e?void 0:e.value),children:t.help&&(0,k.jsx)($.dT,{children:(0,k.jsx)(V.Z,{content:t.help,placement:B.ug.TOP_RIGHT})})}),(0,k.jsx)(E,{children:(0,k.jsx)(F,{"data-testid":"stTextArea",value:i,placeholder:u,onBlur:this.onBlur,onChange:this.onChange,onKeyDown:this.onKeyDown,"aria-label":t.label,disabled:r,overrides:{Input:{style:{lineHeight:"1.4",height:l?`${l}px`:"",minHeight:"95px",resize:"vertical","::placeholder":{opacity:"0.7"},paddingRight:"1rem",paddingLeft:"1rem",paddingBottom:"1rem",paddingTop:"1rem"}}}})}),(0,k.jsx)(T.Z,{dirty:a,value:i,maxLength:t.maxChars,type:"multiline"})]})}}const _=z}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[458],{10458:(e,t,r)=>{e.exports=r(89922)},1768:(e,t,r)=>{"use strict";var n=r(79870),o=r(96038),i=r(82050),s=r(62865),a=r(35020),u=r(44030),c=r(89666),f=r(20498),l=r(72232),p=r(46545),d=r(4862);e.exports=function(e){return new Promise((function(t,r){var h,m=e.data,v=e.headers,y=e.responseType;function g(){e.cancelToken&&e.cancelToken.unsubscribe(h),e.signal&&e.signal.removeEventListener("abort",h)}n.isFormData(m)&&n.isStandardBrowserEnv()&&delete v["Content-Type"];var E=new XMLHttpRequest;if(e.auth){var b=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";v.Authorization="Basic "+btoa(b+":"+w)}var O=a(e.baseURL,e.url);function R(){if(E){var n="getAllResponseHeaders"in E?u(E.getAllResponseHeaders()):null,i={data:y&&"text"!==y&&"json"!==y?E.response:E.responseText,status:E.status,statusText:E.statusText,headers:n,config:e,request:E};o((function(e){t(e),g()}),(function(e){r(e),g()}),i),E=null}}if(E.open(e.method.toUpperCase(),s(O,e.params,e.paramsSerializer),!0),E.timeout=e.timeout,"onloadend"in E?E.onloadend=R:E.onreadystatechange=function(){E&&4===E.readyState&&(0!==E.status||E.responseURL&&0===E.responseURL.indexOf("file:"))&&setTimeout(R)},E.onabort=function(){E&&(r(new l("Request aborted",l.ECONNABORTED,e,E)),E=null)},E.onerror=function(){r(new l("Network Error",l.ERR_NETWORK,e,E,E)),E=null},E.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",n=e.transitional||f;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(new l(t,n.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,e,E)),E=null},n.isStandardBrowserEnv()){var x=(e.withCredentials||c(O))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;x&&(v[e.xsrfHeaderName]=x)}"setRequestHeader"in E&&n.forEach(v,(function(e,t){"undefined"===typeof m&&"content-type"===t.toLowerCase()?delete v[t]:E.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(E.withCredentials=!!e.withCredentials),y&&"json"!==y&&(E.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&E.addEventListener("progress",e.onDownloadProgress),"function"===typeof e.onUploadProgress&&E.upload&&E.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(h=function(e){E&&(r(!e||e&&e.type?new p:e),E.abort(),E=null)},e.cancelToken&&e.cancelToken.subscribe(h),e.signal&&(e.signal.aborted?h():e.signal.addEventListener("abort",h))),m||(m=null);var A=d(O);A&&-1===["http","https","file"].indexOf(A)?r(new l("Unsupported protocol "+A+":",l.ERR_BAD_REQUEST,e)):E.send(m)}))}},89922:(e,t,r)=>{"use strict";var n=r(79870),o=r(76832),i=r(52645),s=r(41923);var a=function e(t){var r=new i(t),a=o(i.prototype.request,r);return n.extend(a,i.prototype,r),n.extend(a,r),a.create=function(r){return e(s(t,r))},a}(r(23778));a.Axios=i,a.CanceledError=r(46545),a.CancelToken=r(89577),a.isCancel=r(69710),a.VERSION=r(44765).version,a.toFormData=r(47091),a.AxiosError=r(72232),a.Cancel=a.CanceledError,a.all=function(e){return Promise.all(e)},a.spread=r(23456),a.isAxiosError=r(54879),e.exports=a,e.exports.default=a},89577:(e,t,r)=>{"use strict";var n=r(46545);function o(e){if("function"!==typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var r=this;this.promise.then((function(e){if(r._listeners){var t,n=r._listeners.length;for(t=0;t<n;t++)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e((function(e){r.reason||(r.reason=new n(e),t(r.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},o.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},46545:(e,t,r)=>{"use strict";var n=r(72232);function o(e){n.call(this,null==e?"canceled":e,n.ERR_CANCELED),this.name="CanceledError"}r(79870).inherits(o,n,{__CANCEL__:!0}),e.exports=o},69710:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},52645:(e,t,r)=>{"use strict";var n=r(79870),o=r(62865),i=r(77555),s=r(53090),a=r(41923),u=r(35020),c=r(94037),f=c.validators;function l(e){this.defaults=e,this.interceptors={request:new i,response:new i}}l.prototype.request=function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{},(t=a(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var r=t.transitional;void 0!==r&&c.assertOptions(r,{silentJSONParsing:f.transitional(f.boolean),forcedJSONParsing:f.transitional(f.boolean),clarifyTimeoutError:f.transitional(f.boolean)},!1);var n=[],o=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(o=o&&e.synchronous,n.unshift(e.fulfilled,e.rejected))}));var i,u=[];if(this.interceptors.response.forEach((function(e){u.push(e.fulfilled,e.rejected)})),!o){var l=[s,void 0];for(Array.prototype.unshift.apply(l,n),l=l.concat(u),i=Promise.resolve(t);l.length;)i=i.then(l.shift(),l.shift());return i}for(var p=t;n.length;){var d=n.shift(),h=n.shift();try{p=d(p)}catch(m){h(m);break}}try{i=s(p)}catch(m){return Promise.reject(m)}for(;u.length;)i=i.then(u.shift(),u.shift());return i},l.prototype.getUri=function(e){e=a(this.defaults,e);var t=u(e.baseURL,e.url);return o(t,e.params,e.paramsSerializer)},n.forEach(["delete","get","head","options"],(function(e){l.prototype[e]=function(t,r){return this.request(a(r||{},{method:e,url:t,data:(r||{}).data}))}})),n.forEach(["post","put","patch"],(function(e){function t(t){return function(r,n,o){return this.request(a(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}l.prototype[e]=t(),l.prototype[e+"Form"]=t(!0)})),e.exports=l},72232:(e,t,r)=>{"use strict";var n=r(79870);function o(e,t,r,n,o){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),o&&(this.response=o)}n.inherits(o,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var i=o.prototype,s={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach((function(e){s[e]={value:e}})),Object.defineProperties(o,s),Object.defineProperty(i,"isAxiosError",{value:!0}),o.from=function(e,t,r,s,a,u){var c=Object.create(i);return n.toFlatObject(e,c,(function(e){return e!==Error.prototype})),o.call(c,e.message,t,r,s,a),c.name=e.name,u&&Object.assign(c,u),c},e.exports=o},77555:(e,t,r)=>{"use strict";var n=r(79870);function o(){this.handlers=[]}o.prototype.use=function(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){n.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},35020:(e,t,r)=>{"use strict";var n=r(13568),o=r(38829);e.exports=function(e,t){return e&&!n(t)?o(e,t):t}},53090:(e,t,r)=>{"use strict";var n=r(79870),o=r(41503),i=r(69710),s=r(23778),a=r(46545);function u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new a}e.exports=function(e){return u(e),e.headers=e.headers||{},e.data=o.call(e,e.data,e.headers,e.transformRequest),e.headers=n.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),n.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return u(e),t.data=o.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},41923:(e,t,r)=>{"use strict";var n=r(79870);e.exports=function(e,t){t=t||{};var r={};function o(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function i(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(e[r],t[r])}function s(e){if(!n.isUndefined(t[e]))return o(void 0,t[e])}function a(r){return n.isUndefined(t[r])?n.isUndefined(e[r])?void 0:o(void 0,e[r]):o(void 0,t[r])}function u(r){return r in t?o(e[r],t[r]):r in e?o(void 0,e[r]):void 0}var c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u};return n.forEach(Object.keys(e).concat(Object.keys(t)),(function(e){var t=c[e]||i,o=t(e);n.isUndefined(o)&&t!==u||(r[e]=o)})),r}},96038:(e,t,r)=>{"use strict";var n=r(72232);e.exports=function(e,t,r){var o=r.config.validateStatus;r.status&&o&&!o(r.status)?t(new n("Request failed with status code "+r.status,[n.ERR_BAD_REQUEST,n.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r)):e(r)}},41503:(e,t,r)=>{"use strict";var n=r(79870),o=r(23778);e.exports=function(e,t,r){var i=this||o;return n.forEach(r,(function(r){e=r.call(i,e,t)})),e}},23778:(e,t,r)=>{"use strict";var n=r(79870),o=r(44348),i=r(72232),s=r(20498),a=r(47091),u={"Content-Type":"application/x-www-form-urlencoded"};function c(e,t){!n.isUndefined(e)&&n.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var f={transitional:s,adapter:function(){var e;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(e=r(1768)),e}(),transformRequest:[function(e,t){if(o(t,"Accept"),o(t,"Content-Type"),n.isFormData(e)||n.isArrayBuffer(e)||n.isBuffer(e)||n.isStream(e)||n.isFile(e)||n.isBlob(e))return e;if(n.isArrayBufferView(e))return e.buffer;if(n.isURLSearchParams(e))return c(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var r,i=n.isObject(e),s=t&&t["Content-Type"];if((r=n.isFileList(e))||i&&"multipart/form-data"===s){var u=this.env&&this.env.FormData;return a(r?{"files[]":e}:e,u&&new u)}return i||"application/json"===s?(c(t,"application/json"),function(e,t,r){if(n.isString(e))try{return(t||JSON.parse)(e),n.trim(e)}catch(o){if("SyntaxError"!==o.name)throw o}return(r||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||f.transitional,r=t&&t.silentJSONParsing,o=t&&t.forcedJSONParsing,s=!r&&"json"===this.responseType;if(s||o&&n.isString(e)&&e.length)try{return JSON.parse(e)}catch(a){if(s){if("SyntaxError"===a.name)throw i.from(a,i.ERR_BAD_RESPONSE,this,null,this.response);throw a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:r(61323)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],(function(e){f.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){f.headers[e]=n.merge(u)})),e.exports=f},20498:e=>{"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},44765:e=>{e.exports={version:"0.27.2"}},76832:e=>{"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n<r.length;n++)r[n]=arguments[n];return e.apply(t,r)}}},62865:(e,t,r)=>{"use strict";var n=r(79870);function o(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,r){if(!t)return e;var i;if(r)i=r(t);else if(n.isURLSearchParams(t))i=t.toString();else{var s=[];n.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(n.isArray(e)?t+="[]":e=[e],n.forEach(e,(function(e){n.isDate(e)?e=e.toISOString():n.isObject(e)&&(e=JSON.stringify(e)),s.push(o(t)+"="+o(e))})))})),i=s.join("&")}if(i){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}},38829:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},82050:(e,t,r)=>{"use strict";var n=r(79870);e.exports=n.isStandardBrowserEnv()?{write:function(e,t,r,o,i,s){var a=[];a.push(e+"="+encodeURIComponent(t)),n.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),n.isString(o)&&a.push("path="+o),n.isString(i)&&a.push("domain="+i),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},13568:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},54879:(e,t,r)=>{"use strict";var n=r(79870);e.exports=function(e){return n.isObject(e)&&!0===e.isAxiosError}},89666:(e,t,r)=>{"use strict";var n=r(79870);e.exports=n.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a");function o(e){var n=e;return t&&(r.setAttribute("href",n),n=r.href),r.setAttribute("href",n),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:"/"===r.pathname.charAt(0)?r.pathname:"/"+r.pathname}}return e=o(window.location.href),function(t){var r=n.isString(t)?o(t):t;return r.protocol===e.protocol&&r.host===e.host}}():function(){return!0}},44348:(e,t,r)=>{"use strict";var n=r(79870);e.exports=function(e,t){n.forEach(e,(function(r,n){n!==t&&n.toUpperCase()===t.toUpperCase()&&(e[t]=r,delete e[n])}))}},61323:e=>{e.exports=null},44030:(e,t,r)=>{"use strict";var n=r(79870),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,r,i,s={};return e?(n.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=n.trim(e.substr(0,i)).toLowerCase(),r=n.trim(e.substr(i+1)),t){if(s[t]&&o.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([r]):s[t]?s[t]+", "+r:r}})),s):s}},4862:e=>{"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},23456:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},47091:(e,t,r)=>{"use strict";var n=r(79870);e.exports=function(e,t){t=t||new FormData;var r=[];function o(e){return null===e?"":n.isDate(e)?e.toISOString():n.isArrayBuffer(e)||n.isTypedArray(e)?"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(i,s){if(n.isPlainObject(i)||n.isArray(i)){if(-1!==r.indexOf(i))throw Error("Circular reference detected in "+s);r.push(i),n.forEach(i,(function(r,i){if(!n.isUndefined(r)){var a,u=s?s+"."+i:i;if(r&&!s&&"object"===typeof r)if(n.endsWith(i,"{}"))r=JSON.stringify(r);else if(n.endsWith(i,"[]")&&(a=n.toArray(r)))return void a.forEach((function(e){!n.isUndefined(e)&&t.append(u,o(e))}));e(r,u)}})),r.pop()}else t.append(s,o(i))}(e),t}},94037:(e,t,r)=>{"use strict";var n=r(44765).version,o=r(72232),i={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){i[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}}));var s={};i.transitional=function(e,t,r){function i(e,t){return"[Axios v"+n+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return function(r,n,a){if(!1===e)throw new o(i(n," has been removed"+(t?" in "+t:"")),o.ERR_DEPRECATED);return t&&!s[n]&&(s[n]=!0,console.warn(i(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,n,a)}},e.exports={assertOptions:function(e,t,r){if("object"!==typeof e)throw new o("options must be an object",o.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),i=n.length;i-- >0;){var s=n[i],a=t[s];if(a){var u=e[s],c=void 0===u||a(u,s,e);if(!0!==c)throw new o("option "+s+" must be "+c,o.ERR_BAD_OPTION_VALUE)}else if(!0!==r)throw new o("Unknown option "+s,o.ERR_BAD_OPTION)}},validators:i}},79870:(e,t,r)=>{"use strict";var n,o=r(76832),i=Object.prototype.toString,s=(n=Object.create(null),function(e){var t=i.call(e);return n[t]||(n[t]=t.slice(8,-1).toLowerCase())});function a(e){return e=e.toLowerCase(),function(t){return s(t)===e}}function u(e){return Array.isArray(e)}function c(e){return"undefined"===typeof e}var f=a("ArrayBuffer");function l(e){return null!==e&&"object"===typeof e}function p(e){if("object"!==s(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var d=a("Date"),h=a("File"),m=a("Blob"),v=a("FileList");function y(e){return"[object Function]"===i.call(e)}var g=a("URLSearchParams");function E(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),u(e))for(var r=0,n=e.length;r<n;r++)t.call(null,e[r],r,e);else for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.call(null,e[o],o,e)}var b,w=(b="undefined"!==typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return b&&e instanceof b});e.exports={isArray:u,isArrayBuffer:f,isBuffer:function(e){return null!==e&&!c(e)&&null!==e.constructor&&!c(e.constructor)&&"function"===typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){var t="[object FormData]";return e&&("function"===typeof FormData&&e instanceof FormData||i.call(e)===t||y(e.toString)&&e.toString()===t)},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&f(e.buffer)},isString:function(e){return"string"===typeof e},isNumber:function(e){return"number"===typeof e},isObject:l,isPlainObject:p,isUndefined:c,isDate:d,isFile:h,isBlob:m,isFunction:y,isStream:function(e){return l(e)&&y(e.pipe)},isURLSearchParams:g,isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:E,merge:function e(){var t={};function r(r,n){p(t[n])&&p(r)?t[n]=e(t[n],r):p(r)?t[n]=e({},r):u(r)?t[n]=r.slice():t[n]=r}for(var n=0,o=arguments.length;n<o;n++)E(arguments[n],r);return t},extend:function(e,t,r){return E(t,(function(t,n){e[n]=r&&"function"===typeof t?o(t,r):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,r,n){e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,r&&Object.assign(e.prototype,r)},toFlatObject:function(e,t,r){var n,o,i,s={};t=t||{};do{for(o=(n=Object.getOwnPropertyNames(e)).length;o-- >0;)s[i=n[o]]||(t[i]=e[i],s[i]=!0);e=Object.getPrototypeOf(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:a,endsWith:function(e,t,r){e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;var n=e.indexOf(t,r);return-1!==n&&n===r},toArray:function(e){if(!e)return null;var t=e.length;if(c(t))return null;for(var r=new Array(t);t-- >0;)r[t]=e[t];return r},isTypedArray:w,isFileList:v}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[464],{60464:(e,t,i)=>{i.r(t),i.d(t,{default:()=>w});var s=i(5057),a=i(65873),o=i(55790),n=i(31476),r=i(59500),l=i(56846),d=i(32291),h=i(34422),m=i(9187),u=i.n(m),p=i(86964),c=i(8429),g=i(54840),b=i(45490),f=i(59990);const T=(0,b.Z)("div",{target:"e88czh83"})((({disabled:e,theme:t})=>({alignItems:"center",backgroundColor:e?t.colors.gray:t.colors.primary,borderTopLeftRadius:"100%",borderTopRightRadius:"100%",borderBottomLeftRadius:"100%",borderBottomRightRadius:"100%",borderTopStyle:"none",borderBottomStyle:"none",borderRightStyle:"none",borderLeftStyle:"none",boxShadow:"none",display:"flex",height:t.radii.xl,justifyContent:"center",width:t.radii.xl,":focus":{boxShadow:`0 0 0 0.2rem ${(0,f.DZ)(t.colors.primary,.5)}`,outline:"none"}})),""),y=(0,b.Z)("div",{target:"e88czh82"})((({disabled:e,theme:t})=>({fontFamily:t.fonts.monospace,fontSize:t.fontSizes.sm,paddingBottom:t.spacing.twoThirdsSmFont,color:e?t.colors.gray:t.colors.primary,top:"-22px",position:"absolute",whiteSpace:"nowrap",backgroundColor:t.colors.transparent,lineHeight:t.lineHeights.base,fontWeight:"normal"})),""),R=(0,b.Z)("div",{target:"e88czh81"})((({theme:e})=>({paddingBottom:e.spacing.none,paddingLeft:e.spacing.none,paddingRight:e.spacing.none,paddingTop:e.spacing.twoThirdsSmFont,justifyContent:"space-between",alignItems:"center",display:"flex"})),""),v=(0,b.Z)("div",{target:"e88czh80"})((({disabled:e,theme:t})=>({lineHeight:t.lineHeights.base,fontWeight:"normal",fontSize:t.fontSizes.sm,fontFamily:t.fonts.monospace,color:e?t.colors.fadedText40:"inherit"})),"");var V=i(96266);class x extends s.PureComponent{constructor(e){super(e),this.formClearHelper=new l.Kz,this.state=void 0,this.sliderRef=s.createRef(),this.thumbRef=[],this.thumbValueRef=[],this.commitWidgetValueDebounced=void 0,this.commitWidgetValue=e=>{this.props.widgetMgr.setDoubleArrayValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.handleChange=({value:e})=>{this.setState({value:e},(()=>this.commitWidgetValueDebounced({fromUi:!0})))},this.renderThumb=s.forwardRef(((e,t)=>{const{$value:i,$thumbIndex:o}=e,n=o||0;this.thumbRef[n]=t,this.thumbValueRef[n]||=s.createRef();const r=i?this.formatValue(i[o]):"",l=(0,a.pick)(e,["role","style","aria-valuemax","aria-valuemin","aria-valuenow","tabIndex","onKeyUp","onKeyDown","onMouseEnter","onMouseLeave","draggable"]),d={};return(this.props.element.options.length>0||this.isDateTimeType())&&(d["aria-valuetext"]=r),this.thumbValueAlignment(this.thumbRef[n].current,this.thumbValueRef[n].current),(0,V.jsx)(T,{...l,disabled:!0===e.$disabled,ref:this.thumbRef[n],"aria-valuetext":r,"aria-label":this.props.element.label,children:(0,V.jsx)(y,{className:"StyledThumbValue","data-testid":"stThumbValue",disabled:!0===e.$disabled,ref:this.thumbValueRef[n],children:r})})})),this.renderTickBar=()=>{const{disabled:e,element:t}=this.props,{max:i,min:s}=t;return(0,V.jsxs)(R,{"data-testid":"stTickBar",children:[(0,V.jsx)(v,{disabled:e,"data-testid":"stTickBarMin",children:this.formatValue(s)}),(0,V.jsx)(v,{disabled:e,"data-testid":"stTickBarMax",children:this.formatValue(i)})]})},this.commitWidgetValueDebounced=(0,h.Ds)(200,this.commitWidgetValue.bind(this)),this.state={value:this.initialValue}}get initialValue(){const e=this.props.widgetMgr.getDoubleArrayValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){for(let e=0;e<Math.min(this.thumbRef.length,this.thumbValueRef.length);e++)this.thumbValueAlignment(this.thumbRef[e].current,this.thumbValueRef[e].current);this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}get value(){const{min:e,max:t}=this.props.element,{value:i}=this.state;let s=i[0],a=i.length>1?i[1]:i[0];return s>a&&(s=a),s<e&&(s=e),s>t&&(s=t),a<e&&(a=e),a>t&&(a=t),i.length>1?[s,a]:[s]}isDateTimeType(){const{dataType:e}=this.props.element;return e===d.iR.DataType.DATETIME||e===d.iR.DataType.DATE||e===d.iR.DataType.TIME}formatValue(e){const{format:t,options:i}=this.props.element;return this.isDateTimeType()?u().utc(e/1e3).format(t):i.length>0?(0,r.sprintf)(t,i[e]):(0,r.sprintf)(t,e)}thumbValueAlignment(e,t){const i=this.sliderRef.current;if(i&&e&&t){const s=i.getBoundingClientRect(),a=e.getBoundingClientRect(),o=t.getBoundingClientRect(),n=a.left+a.width/2,r=n-o.width/2<s.left,l=n+o.width/2>s.right;t.style.left=r?"0":"",t.style.right=l?"0":""}}render(){var e;const{disabled:t,element:i,theme:s,width:a,widgetMgr:n}=this.props,{colors:r,fonts:l,fontSizes:d,spacing:m}=s,u={width:a};return this.formClearHelper.manageFormClearListener(n,i.formId,this.onFormCleared),(0,V.jsxs)("div",{ref:this.sliderRef,className:"stSlider",style:u,children:[(0,V.jsx)(p.ON,{label:i.label,disabled:t,labelVisibility:(0,h.iF)(null===(e=i.labelVisibility)||void 0===e?void 0:e.value),children:i.help&&(0,V.jsx)(p.dT,{children:(0,V.jsx)(c.Z,{content:i.help,placement:g.ug.TOP_RIGHT})})}),(0,V.jsx)(o.Z,{min:i.min,max:i.max,step:i.step,value:this.value,onChange:this.handleChange,disabled:t,overrides:{Root:{style:{paddingTop:m.twoThirdsSmFont}},Thumb:this.renderThumb,Tick:{style:{fontFamily:l.monospace,fontSize:d.sm}},Track:{style:{backgroundColor:"none !important",paddingBottom:0,paddingLeft:0,paddingRight:0,paddingTop:m.twoThirdsSmFont}},InnerTrack:{style:({$disabled:e})=>({height:"4px",...e?{background:r.darkenedBgMix25}:{}})},TickBar:this.renderTickBar}})]})}}const w=(0,n.b)(x)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[4994],{54994:e=>{!function(t){if("undefined"!==typeof window){var n=!0,o=10,i="",r=0,a="",u=null,c="",s=!1,d={resize:1,click:1},l=128,f=!0,m=1,h="bodyOffset",g=h,p=!0,v="",y={},w=32,b=null,T=!1,E=!1,O="[iFrameSizer]",S=O.length,M="",I={max:1,min:1,bodyScroll:1,documentElementScroll:1},N="child",k=!0,A=window.parent,C="*",z=0,R=!1,x=null,L=16,F=1,P="scroll",D=P,j=window,q=function(){ee("onMessage function not defined")},H=function(){},W=function(){},B={height:function(){return ee("Custom height calculation function not defined"),document.documentElement.offsetHeight},width:function(){return ee("Custom width calculation function not defined"),document.body.scrollWidth}},J={},U=!1;try{var _=Object.create({},{passive:{get:function(){U=!0}}});window.addEventListener("test",K,_),window.removeEventListener("test",K,_)}catch(Oe){}var V={bodyOffset:function(){return document.body.offsetHeight+le("marginTop")+le("marginBottom")},offset:function(){return V.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},custom:function(){return B.height()},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,me(V))},min:function(){return Math.min.apply(null,me(V))},grow:function(){return V.max()},lowestElement:function(){return Math.max(V.bodyOffset()||V.documentElementOffset(),fe("bottom",ge()))},taggedElement:function(){return he("bottom","data-iframe-height")}},X={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},custom:function(){return B.width()},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(X.bodyScroll(),X.documentElementScroll())},max:function(){return Math.max.apply(null,me(X))},min:function(){return Math.min.apply(null,me(X))},rightMostElement:function(){return fe("right",ge())},taggedElement:function(){return he("right","data-iframe-width")}},Y=function(e){var t,n,o,i=null,r=0,a=function(){r=Date.now(),i=null,o=e.apply(t,n),i||(t=n=null)};return function(){var u=Date.now();r||(r=u);var c=L-(u-r);return t=this,n=arguments,c<=0||c>L?(i&&(clearTimeout(i),i=null),r=u,o=e.apply(t,n),i||(t=n=null)):i||(i=setTimeout(a,c)),o}}(pe);Q(window,"message",(function(n){var o={init:function(){v=n.data,A=n.source,te(),f=!1,setTimeout((function(){p=!1}),l)},reset:function(){p?$("Page reset ignored by init"):($("Page size reset by host page"),we("resetPage"))},resize:function(){ve("resizeParent","Parent window requested size check")},moveToAnchor:function(){y.findTarget(r())},inPageLink:function(){this.moveToAnchor()},pageInfo:function(){var e=r();$("PageInfoFromParent called from parent: "+e),W(JSON.parse(e)),$(" --")},message:function(){var e=r();$("onMessage called from parent: "+e),q(JSON.parse(e)),$(" --")}};function i(){return n.data.split("]")[1].split(":")[0]}function r(){return n.data.slice(n.data.indexOf(":")+1)}function a(){return n.data.split(":")[2]in{true:1,false:1}}function u(){var r=i();r in o?o[r]():!e.exports&&"iFrameResize"in window||window.jQuery!==t&&"iFrameResize"in window.jQuery.prototype||a()||ee("Unexpected message ("+n.data+")")}O===(""+n.data).slice(0,S)&&(!1===f?u():a()?o.init():$('Ignored message of type "'+i()+'". Received before initialization.'))})),Q(window,"readystatechange",Ee),Ee()}function K(){}function Q(e,t,n,o){e.addEventListener(t,n,!!U&&(o||{}))}function G(e){return e.charAt(0).toUpperCase()+e.slice(1)}function Z(e){return O+"["+M+"] "+e}function $(e){T&&"object"===typeof window.console&&console.log(Z(e))}function ee(e){"object"===typeof window.console&&console.warn(Z(e))}function te(){!function(){function e(e){return"true"===e}var o=v.slice(S).split(":");M=o[0],r=t===o[1]?r:Number(o[1]),s=t===o[2]?s:e(o[2]),T=t===o[3]?T:e(o[3]),w=t===o[4]?w:Number(o[4]),n=t===o[6]?n:e(o[6]),a=o[7],g=t===o[8]?g:o[8],i=o[9],c=o[10],z=t===o[11]?z:Number(o[11]),y.enable=t!==o[12]&&e(o[12]),N=t===o[13]?N:o[13],D=t===o[14]?D:o[14],E=t===o[15]?E:Boolean(o[15])}(),$("Initialising iFrame ("+window.location.href+")"),function(){function e(){var e=window.iFrameResizer;$("Reading data from page: "+JSON.stringify(e)),Object.keys(e).forEach(ne,e),q="onMessage"in e?e.onMessage:q,H="onReady"in e?e.onReady:H,C="targetOrigin"in e?e.targetOrigin:C,g="heightCalculationMethod"in e?e.heightCalculationMethod:g,D="widthCalculationMethod"in e?e.widthCalculationMethod:D}function t(e,t){return"function"===typeof e&&($("Setup custom "+t+"CalcMethod"),B[t]=e,e="custom"),e}"iFrameResizer"in window&&Object===window.iFrameResizer.constructor&&(e(),g=t(g,"height"),D=t(D,"width"));$("TargetOrigin for parent set to: "+C)}(),function(){t===a&&(a=r+"px");oe("margin",function(e,t){-1!==t.indexOf("-")&&(ee("Negative CSS value ignored for "+e),t="");return t}("margin",a))}(),oe("background",i),oe("padding",c),function(){var e=document.createElement("div");e.style.clear="both",e.style.display="block",e.style.height="0",document.body.appendChild(e)}(),ue(),ce(),document.documentElement.style.height="",document.body.style.height="",$('HTML & body height set to "auto"'),$("Enable public methods"),j.parentIFrame={autoResize:function(e){return!0===e&&!1===n?(n=!0,se()):!1===e&&!0===n&&(n=!1,re("remove"),null!==u&&u.disconnect(),clearInterval(b)),Te(0,0,"autoResize",JSON.stringify(n)),n},close:function(){Te(0,0,"close")},getId:function(){return M},getPageInfo:function(e){"function"===typeof e?(W=e,Te(0,0,"pageInfo")):(W=function(){},Te(0,0,"pageInfoStop"))},moveToAnchor:function(e){y.findTarget(e)},reset:function(){be("parentIFrame.reset")},scrollTo:function(e,t){Te(t,e,"scrollTo")},scrollToOffset:function(e,t){Te(t,e,"scrollToOffset")},sendMessage:function(e,t){Te(0,0,"message",JSON.stringify(e),t)},setHeightCalculationMethod:function(e){g=e,ue()},setWidthCalculationMethod:function(e){D=e,ce()},setTargetOrigin:function(e){$("Set targetOrigin: "+e),C=e},size:function(e,t){ve("size","parentIFrame.size("+(e||"")+(t?","+t:"")+")",e,t)}},function(){if(!0!==E)return;function e(e){Te(0,0,e.type,e.screenY+":"+e.screenX)}function t(t,n){$("Add event listener: "+n),Q(window.document,t,e)}t("mouseenter","Mouse Enter"),t("mouseleave","Mouse Leave")}(),se(),y=function(){function e(){return{x:window.pageXOffset===t?document.documentElement.scrollLeft:window.pageXOffset,y:window.pageYOffset===t?document.documentElement.scrollTop:window.pageYOffset}}function n(t){var n=t.getBoundingClientRect(),o=e();return{x:parseInt(n.left,10)+parseInt(o.x,10),y:parseInt(n.top,10)+parseInt(o.y,10)}}function o(e){function o(e){var t=n(e);$("Moving to in page link (#"+i+") at x: "+t.x+" y: "+t.y),Te(t.y,t.x,"scrollToOffset")}var i=e.split("#")[1]||e,r=decodeURIComponent(i),a=document.getElementById(r)||document.getElementsByName(r)[0];t===a?($("In page link (#"+i+") not found in iFrame, so sending to parent"),Te(0,0,"inPageLink","#"+i)):o(a)}function i(){var e=window.location.hash,t=window.location.href;""!==e&&"#"!==e&&o(t)}function r(){function e(e){function t(e){e.preventDefault(),o(this.getAttribute("href"))}"#"!==e.getAttribute("href")&&Q(e,"click",t)}Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),e)}function a(){Q(window,"hashchange",i)}function u(){setTimeout(i,l)}function c(){Array.prototype.forEach&&document.querySelectorAll?($("Setting up location.hash handlers"),r(),a(),u()):ee("In page linking not fully supported in this browser! (See README.md for IE8 workaround)")}y.enable?c():$("In page linking not enabled");return{findTarget:o}}(),ve("init","Init message from host page"),H()}function ne(e){var t=e.split("Callback");if(2===t.length){var n="on"+t[0].charAt(0).toUpperCase()+t[0].slice(1);this[n]=this[e],delete this[e],ee("Deprecated: '"+e+"' has been renamed '"+n+"'. The old method will be removed in the next major version.")}}function oe(e,n){t!==n&&""!==n&&"null"!==n&&(document.body.style[e]=n,$("Body "+e+' set to "'+n+'"'))}function ie(e){var t={add:function(t){function n(){ve(e.eventName,e.eventType)}J[t]=n,Q(window,t,n,{passive:!0})},remove:function(e){var t,n,o,i=J[e];delete J[e],t=window,n=e,o=i,t.removeEventListener(n,o,!1)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(t[e.method])):t[e.method](e.eventName),$(G(e.method)+" event listener: "+e.eventType)}function re(e){ie({method:e,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),ie({method:e,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),ie({method:e,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),ie({method:e,eventType:"Input",eventName:"input"}),ie({method:e,eventType:"Mouse Up",eventName:"mouseup"}),ie({method:e,eventType:"Mouse Down",eventName:"mousedown"}),ie({method:e,eventType:"Orientation Change",eventName:"orientationchange"}),ie({method:e,eventType:"Print",eventNames:["afterprint","beforeprint"]}),ie({method:e,eventType:"Ready State Change",eventName:"readystatechange"}),ie({method:e,eventType:"Touch Start",eventName:"touchstart"}),ie({method:e,eventType:"Touch End",eventName:"touchend"}),ie({method:e,eventType:"Touch Cancel",eventName:"touchcancel"}),ie({method:e,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),ie({method:e,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),ie({method:e,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}),"child"===N&&ie({method:e,eventType:"IFrame Resized",eventName:"resize"})}function ae(e,t,n,o){return t!==e&&(e in n||(ee(e+" is not a valid option for "+o+"CalculationMethod."),e=t),$(o+' calculation method set to "'+e+'"')),e}function ue(){g=ae(g,h,V,"height")}function ce(){D=ae(D,P,X,"width")}function se(){!0===n?(re("add"),function(){var e=0>w;window.MutationObserver||window.WebKitMutationObserver?e?de():u=function(){function e(e){function t(e){!1===e.complete&&($("Attach listeners to "+e.src),e.addEventListener("load",i,!1),e.addEventListener("error",r,!1),c.push(e))}"attributes"===e.type&&"src"===e.attributeName?t(e.target):"childList"===e.type&&Array.prototype.forEach.call(e.target.querySelectorAll("img"),t)}function t(e){c.splice(c.indexOf(e),1)}function n(e){$("Remove listeners from "+e.src),e.removeEventListener("load",i,!1),e.removeEventListener("error",r,!1),t(e)}function o(e,t,o){n(e.target),ve(t,o+": "+e.target.src)}function i(e){o(e,"imageLoad","Image loaded")}function r(e){o(e,"imageLoadFailed","Image load failed")}function a(t){ve("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}function u(){var e=document.querySelector("body"),t={attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0};return d=new s(a),$("Create body MutationObserver"),d.observe(e,t),d}var c=[],s=window.MutationObserver||window.WebKitMutationObserver,d=u();return{disconnect:function(){"disconnect"in d&&($("Disconnect body MutationObserver"),d.disconnect(),c.forEach(n))}}}():($("MutationObserver not supported in this browser!"),de())}()):$("Auto Resize disabled")}function de(){0!==w&&($("setInterval: "+w+"ms"),b=setInterval((function(){ve("interval","setInterval: "+w)}),Math.abs(w)))}function le(e,t){var n=0;return t=t||document.body,n=null===(n=document.defaultView.getComputedStyle(t,null))?0:n[e],parseInt(n,o)}function fe(e,t){for(var n=t.length,o=0,i=0,r=G(e),a=Date.now(),u=0;u<n;u++)(o=t[u].getBoundingClientRect()[e]+le("margin"+r,t[u]))>i&&(i=o);return a=Date.now()-a,$("Parsed "+n+" HTML elements"),$("Element position calculated in "+a+"ms"),function(e){e>L/2&&$("Event throttle increased to "+(L=2*e)+"ms")}(a),i}function me(e){return[e.bodyOffset(),e.bodyScroll(),e.documentElementOffset(),e.documentElementScroll()]}function he(e,t){var n=document.querySelectorAll("["+t+"]");return 0===n.length&&(ee("No tagged elements ("+t+") found on page"),document.querySelectorAll("body *")),fe(e,n)}function ge(){return document.querySelectorAll("body *")}function pe(e,n,o,i){var r,a;!function(){function e(e,t){return!(Math.abs(e-t)<=z)}return r=t===o?V[g]():o,a=t===i?X[D]():i,e(m,r)||s&&e(F,a)}()&&"init"!==e?!(e in{init:1,interval:1,size:1})&&(g in I||s&&D in I)?be(n):e in{interval:1}||$("No change in size detected"):(ye(),Te(m=r,F=a,e))}function ve(e,t,n,o){R&&e in d?$("Trigger event cancelled: "+e):(e in{reset:1,resetPage:1,init:1}||$("Trigger event: "+t),"init"===e?pe(e,t,n,o):Y(e,t,n,o))}function ye(){R||(R=!0,$("Trigger event lock on")),clearTimeout(x),x=setTimeout((function(){R=!1,$("Trigger event lock off"),$("--")}),l)}function we(e){m=V[g](),F=X[D](),Te(m,F,e)}function be(e){var t=g;g=h,$("Reset trigger event: "+e),ye(),we("reset"),g=t}function Te(e,n,o,i,r){!0===k&&(t===r?r=C:$("Message targetOrigin: "+r),function(){var a=M+":"+e+":"+n+":"+o+(t===i?"":":"+i);$("Sending message to host page ("+a+")"),A.postMessage(O+a,r)}())}function Ee(){"loading"!==document.readyState&&window.parent.postMessage("[iFrameResizerChild]Ready","*")}}()}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[5070],{25070:(e,t,i)=>{i.r(t),i.d(t,{default:()=>p});var s=i(5057),o=i(56846),l=i(95323),a=i(34422),r=i(96266);class n extends s.PureComponent{constructor(...e){super(...e),this.formClearHelper=new o.Kz,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setIntValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{this.setState({value:e},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getIntValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){const{options:e,help:t,label:i,labelVisibility:s,formId:o}=this.props.element,{disabled:n,widgetMgr:p}=this.props;return this.formClearHelper.manageFormClearListener(p,o,this.onFormCleared),(0,r.jsx)(l.Z,{label:i,labelVisibility:(0,a.iF)(null===s||void 0===s?void 0:s.value),options:e,disabled:n,width:this.props.width,onChange:this.onChange,value:this.state.value,help:t})}}const p=n}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[5608],{75608:(o,t,e)=>{e.r(t),e.d(t,{default:()=>c});e(5057);var s=e(77390),i=e(45490),n=e(99362);const a=(0,i.Z)("div",{target:"edb2rvg0"})((({theme:o})=>({paddingBottom:o.spacing.smPx,lineHeight:o.lineHeights.normal,color:(0,n.yq)(o)})),"");var r=e(46540),g=e(96266);const c=function({element:o,width:t}){return(0,g.jsxs)("div",{className:"stProgress",children:[(0,g.jsx)(a,{children:(0,g.jsx)(r.Z,{source:o.text,allowHTML:!1,isLabel:!0})}),(0,g.jsx)(s.Z,{value:o.value,width:t})]})}},77390:(o,t,e)=>{e.d(t,{$:()=>l,Z:()=>d});var s=e(5057),i=e(31476),n=e(85493),a=e(99362),r=e(16449),g=e(80099),c=e(96266);let l;!function(o){o.EXTRASMALL="xs",o.SMALL="sm",o.MEDIUM="md",o.LARGE="lg",o.EXTRALARGE="xl"}(l||(l={}));const d=function({value:o,width:t,size:e=l.SMALL,overrides:d}){const p=(0,i.u)(),m={xs:p.spacing.twoXS,sm:p.spacing.sm,md:p.spacing.lg,lg:p.spacing.xl,xl:p.spacing.twoXL},{activeTheme:u}=s.useContext(n.Z),h=!(0,a.MJ)(u),b={BarContainer:{style:{marginTop:p.spacing.none,marginBottom:p.spacing.none,marginRight:p.spacing.none,marginLeft:p.spacing.none}},Bar:{style:({$theme:o})=>({width:t?t.toString():void 0,marginTop:p.spacing.none,marginBottom:p.spacing.none,marginRight:p.spacing.none,marginLeft:p.spacing.none,height:m[e],backgroundColor:o.colors.progressbarTrackFill,borderTopLeftRadius:p.spacing.twoXS,borderTopRightRadius:p.spacing.twoXS,borderBottomLeftRadius:p.spacing.twoXS,borderBottomRightRadius:p.spacing.twoXS})},BarProgress:{style:({$theme:o})=>({backgroundColor:h?p.colors.primary:p.colors.blue70,borderTopLeftRadius:p.spacing.twoXS,borderTopRightRadius:p.spacing.twoXS,borderBottomLeftRadius:p.spacing.twoXS,borderBottomRightRadius:p.spacing.twoXS})}};return(0,c.jsx)(r.Z,{value:o,overrides:(0,g.aO)(b,d)})}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[5678],{15678:(t,e,i)=>{i.r(e),i.d(e,{default:()=>V});var a=i(5057),n=i(31476),s=i(52801),o=i(40807),r=i.n(o),h=i(62658),d=i(42429),l=i(47143),c=i(86928),g=i(12808),u=i(79220);const f=(0,i(45490).Z)("div",{target:"e10fe9o10"})((({theme:t})=>({"&.vega-embed":{".vega-actions":{zIndex:t.zIndices.popupMenu},summary:{height:"auto",zIndex:t.zIndices.menuButton}}})),"");var p=i(96266);const m={DATAFRAME_INDEX:"(index)"},w="source",v=new Set(["datetimeIndex","float_64Index","int_64Index","rangeIndex","timedeltaIndex","uint_64Index"]);class b extends a.PureComponent{constructor(...t){super(...t),this.vegaView=void 0,this.vegaFinalizer=void 0,this.defaultDataName=w,this.element=null,this.state={error:void 0},this.finalizeView=()=>{this.vegaFinalizer&&this.vegaFinalizer(),this.vegaFinalizer=void 0,this.vegaView=void 0},this.generateSpec=()=>{const{element:t,theme:e}=this.props,i=JSON.parse(t.get("spec")),a=JSON.parse(t.get("useContainerWidth"));if(i.config=function(t,e){const{colors:i,fontSizes:a,genericFonts:n}=e,s={labelFont:n.bodyFont,titleFont:n.bodyFont,labelFontSize:a.twoSmPx,titleFontSize:a.twoSmPx},o={background:i.bgColor,axis:{labelColor:i.bodyText,titleColor:i.bodyText,gridColor:i.fadedText10,...s},legend:{labelColor:i.bodyText,titleColor:i.bodyText,...s},title:{color:i.bodyText,subtitleColor:i.bodyText,...s},header:{labelColor:i.bodyText},view:{continuousHeight:300,continuousWidth:400}};if(!t)return o;return r()({},o,t)}(i.config,e),this.props.height?(i.width=this.props.width-38,i.height=this.props.height):a&&(i.width=this.props.width-38),i.padding||(i.padding={}),null==i.padding.bottom&&(i.padding.bottom=20),i.datasets)throw new Error("Datasets should not be passed as part of the spec");return i}}async componentDidMount(){try{await this.createView()}catch(t){const e=(0,l.b)(t);this.setState({error:e})}}componentWillUnmount(){this.finalizeView()}async componentDidUpdate(t){const{element:e,theme:i}=t,{element:a,theme:n}=this.props,o=e.get("spec"),r=a.get("spec");if(!this.vegaView||o!==r||i!==n||t.width!==this.props.width||t.height!==this.props.height){(0,s.ji)("Vega spec changed.");try{await this.createView()}catch(u){const t=(0,l.b)(u);this.setState({error:t})}return}const h=e.get("data"),d=a.get("data");(h||d)&&this.updateData(this.defaultDataName,h,d);const c=y(e)||{},g=y(a)||{};for(const[s,l]of Object.entries(g)){const t=s||this.defaultDataName,e=c[t];this.updateData(t,e,l)}for(const s of Object.keys(c))g.hasOwnProperty(s)||s===this.defaultDataName||this.updateData(s,null,null);this.vegaView.resize().runAsync()}updateData(t,e,i){if(!this.vegaView)throw new Error("Chart has not been drawn yet");if(!i||!i.get("data")){return void(this.vegaView._runtime.data.hasOwnProperty(t)&&this.vegaView.remove(t,g.truthy))}if(!e||!e.get("data"))return void this.vegaView.insert(t,x(i));const[a,n]=(0,d.oo)(e.get("data")),[o,r]=(0,d.oo)(i.get("data"));if(function(t,e,i,a,n,s){if(i!==s)return!1;if(e>=n)return!1;if(0===e)return!1;const o=t.get("data"),r=a.get("data"),h=s-1,l=e-1;if((0,d.Fm)(o,h,0)!==(0,d.Fm)(r,h,0)||(0,d.Fm)(o,h,l)!==(0,d.Fm)(r,h,l))return!1;return!0}(e,a,n,i,o,r))a<o&&this.vegaView.insert(t,x(i,a));else{const e=g.changeset().remove(g.truthy).insert(x(i));this.vegaView.change(t,e),(0,s.ji)(`Had to clear the ${t} dataset before inserting data through Vega view.`)}}async createView(){if((0,s.ji)("Creating a new Vega view."),!this.element)throw Error("Element missing.");this.finalizeView();const t=this.props.element,e=this.generateSpec(),i={ast:!0,expr:u.N},{vgSpec:a,view:n,finalize:o}=await(0,c.ZP)(this.element,e,i);this.vegaView=n,this.vegaFinalizer=o;const r=function(t){const e=y(t);if(null==e)return null;const i={};for(const[a,n]of Object.entries(e))i[a]=x(n);return i}(t),h=r?Object.keys(r):[];if(1===h.length){const[t]=h;this.defaultDataName=t}else 0===h.length&&a.data&&(this.defaultDataName=w);const d=function(t){const e=t.get("data");if(!e)return null;return x(e)}(t);if(d&&n.insert(this.defaultDataName,d),r)for(const[s,l]of Object.entries(r))n.insert(s,l);await n.runAsync(),this.vegaView.resize().runAsync()}render(){if(this.state.error)throw this.state.error;return(0,p.jsx)(f,{"data-testid":"stVegaLiteChart",ref:t=>{this.element=t}})}}function y(t){if(!t.get("datasets")||t.get("datasets").isEmpty())return null;const e={};return t.get("datasets").forEach(((t,i)=>{if(!t)return;const a=t.get("hasName")?t.get("name"):null;e[a]=t.get("data")})),e}function x(t,e=0){if(!t.get("data"))return[];if(!t.get("index"))return[];if(!t.get("columns"))return[];const i=[],[a,n]=(0,d.oo)(t.get("data")),s=t.get("index").get("type"),o=v.has(s);for(let r=e;r<a;r++){const e={};o&&(e[m.DATAFRAME_INDEX]=(0,d.l$)(t.get("index"),0,r));for(let i=0;i<n;i++)e[(0,d.l$)(t.get("columns"),0,i)]=(0,d.Fm)(t.get("data"),i,r);i.push(e)}return i}const V=(0,n.b)((0,h.Z)(b))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[5752],{15752:(t,e,o)=>{o.r(e),o.d(e,{default:()=>r});var s=o(5057),i=o(62658),h=o(96266);const r=(0,i.Z)((function({width:t,element:e,height:o}){const i=`bokeh-chart-${e.elementId}`,r=(0,s.useCallback)((()=>JSON.parse(e.figure)),[e]),l=(0,s.useCallback)((s=>{const{Bokeh:h}=window,r=document.getElementById(i),l=s&&s.doc&&s.doc.roots&&s.doc.roots.references?s.doc.roots.references.find((t=>"Plot"===t.type)):void 0;if(l){const{chartWidth:s,chartHeight:i}=(s=>{let i=s.attributes.plot_width,h=s.attributes.plot_height;return o?(i=t,h=o):e.useContainerWidth&&(i=t),{chartWidth:i,chartHeight:h}})(l);s>0&&(l.attributes.plot_width=s),i>0&&(l.attributes.plot_height=i)}null!==r&&((t=>{for(;t.lastChild;)t.lastChild.remove()})(r),h.embed.embed_item(s,i))}),[t,o,e]);return(0,s.useEffect)((()=>{l(r())}),[t,o,e,r,l]),(0,h.jsx)("div",{id:i,className:"stBokehChart"})}))}}]);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[5865],{26156:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var a=n(5057),r=n(66904),i=n.n(r),o=n(52277),s=n.n(o),c=n(96266);const p=({className:t,scriptRunId:e,numParticles:n,numParticleTypes:a,ParticleComponent:r})=>(0,c.jsx)("div",{className:s()(t,"stHidden"),children:i()(n).map((t=>{const n=Math.floor(Math.random()*a);return(0,c.jsx)(r,{particleType:n},e+t)}))}),u=(0,a.memo)(p)},24709:(t,e,n)=>{"use strict";n.r(e),n.d(e,{NUM_FLAKES:()=>d,default:()=>g});var a=n(5057);const r=n.p+"static/media/flake-0.beded754e8024c73d9d2.png",i=n.p+"static/media/flake-1.8077dc154e0bf900aa73.png",o=n.p+"static/media/flake-2.e3f07d06933dd0e84c24.png";var s=n(26156),c=n(45490),p=n(21371);const u=(t,e=0)=>Math.random()*(t-e)+e,l=(0,c.Z)("img",{target:"e1hbdfkw0"})((({theme:t})=>({position:"fixed",top:"-150px",marginLeft:"-75px",zIndex:t.zIndices.balloons,left:`${u(90,10)}vw`,animationDelay:`${u(4e3)}ms`,height:"150px",width:"150px",pointerEvents:"none",animationDuration:"3000ms",animationName:p.F4`
|
|
2
|
+
from {
|
|
3
|
+
transform:
|
|
4
|
+
translateY(0)
|
|
5
|
+
rotateX(${u(360)}deg)
|
|
6
|
+
rotateY(${u(360)}deg)
|
|
7
|
+
rotateZ(${u(360)}deg);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
to {
|
|
11
|
+
transform:
|
|
12
|
+
translateY(calc(100vh + ${150}px))
|
|
13
|
+
rotateX(0)
|
|
14
|
+
rotateY(0)
|
|
15
|
+
rotateZ(0);
|
|
16
|
+
}
|
|
17
|
+
`,animationTimingFunction:"ease-in",animationDirection:"normal",animationIterationCount:1,opacity:1})),"");var m=n(96266);const d=100,f=[r,i,o],v=f.length,h=({particleType:t})=>(0,m.jsx)(l,{src:f[t]}),x=function({scriptRunId:t}){return(0,m.jsx)(s.Z,{className:"snow",scriptRunId:t,numParticleTypes:v,numParticles:d,ParticleComponent:h})},g=(0,a.memo)(x)},99980:t=>{var e=Math.ceil,n=Math.max;t.exports=function(t,a,r,i){for(var o=-1,s=n(e((a-t)/(r||1)),0),c=Array(s);s--;)c[i?s:++o]=t,t+=r;return c}},39594:(t,e,n)=>{var a=n(36418),r=/^\s+/;t.exports=function(t){return t?t.slice(0,a(t)+1).replace(r,""):t}},9186:(t,e,n)=>{var a=n(99980),r=n(27396),i=n(17046);t.exports=function(t){return function(e,n,o){return o&&"number"!=typeof o&&r(e,n,o)&&(n=o=void 0),e=i(e),void 0===n?(n=e,e=0):n=i(n),o=void 0===o?e<n?1:-1:i(o),a(e,n,o,t)}}},36418:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},66904:(t,e,n)=>{var a=n(9186)();t.exports=a},17046:(t,e,n)=>{var a=n(81692),r=1/0,i=17976931348623157e292;t.exports=function(t){return t?(t=a(t))===r||t===-r?(t<0?-1:1)*i:t===t?t:0:0===t?t:0}},81692:(t,e,n)=>{var a=n(39594),r=n(26271),i=n(71490),o=NaN,s=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,p=/^0o[0-7]+$/i,u=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=a(t);var n=c.test(t);return n||p.test(t)?u(t.slice(2),n?2:8):s.test(t)?o:+t}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[6097],{96543:(t,e,h)=>{"use strict";h.r(e),h.d(e,{default:()=>d});var i=h(5057),a=h(30669),r=h(46928),s=h(52801),c=h(62658);const n=(0,h(45490).Z)("div",{target:"e1p558ko0"})((({theme:t})=>({"& *":{fontFamily:t.genericFonts.bodyFont,fontSize:"9.6px"},"& svg":{maxWidth:"100%"}})),"");var o=h(96266);r.graphviz;const d=(0,c.Z)((function({width:t,element:e,height:h}){const c=`graphviz-chart-${e.elementId}`;let d=0,g=0;const l=()=>{let i=g,a=d;return h?(i=t,a=h):e.useContainerWidth&&(i=t),{chartWidth:i,chartHeight:a}},p=()=>{try{const t=(0,r.graphviz)(`#${c}`).zoom(!1).fit(!0).scale(1).renderDot(e.spec).on("end",(()=>{const t=(0,a.Ys)(`#${c} > svg`).node();t&&(d=t.getBBox().height,g=t.getBBox().width)})),{chartHeight:h,chartWidth:i}=l();h>0&&t.height(h),i>0&&t.width(i)}catch(t){(0,s.H)(t)}};(0,i.useEffect)((()=>{p()}));const u=l(),v=u.chartWidth?u.chartWidth:t,f=u.chartHeight?u.chartHeight:h;return(0,o.jsx)(n,{className:"graphviz stGraphVizChart",id:c,style:{width:v,height:f}})}))},63778:()=>{},32725:()=>{},14966:()=>{}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[6242],{32523:(e,t,i)=>{i.r(t),i.d(t,{default:()=>u});var s=i(5057),o=i(56846),l=i(40691),a=i(34422),r=i(96266);class n extends s.PureComponent{constructor(...e){super(...e),this.formClearHelper=new o.Kz,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onColorClose=e=>{this.setState({value:e},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getStringValue(this.props.element);return void 0!==e?e:this.props.element.default}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({value:e},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{element:t,width:i,disabled:s,widgetMgr:o}=this.props,{value:n}=this.state;return this.formClearHelper.manageFormClearListener(o,t.formId,this.onFormCleared),(0,r.jsx)(l.Z,{label:t.label,labelVisibility:(0,a.iF)(null===(e=t.labelVisibility)||void 0===e?void 0:e.value),help:t.help,onChange:this.onColorClose,disabled:s,width:i,value:n})}}const u=n}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(()=>{"use strict";var e={56977:e=>{function t(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,t){for(var n,r="",o=0,a=-1,i=0,s=0;s<=e.length;++s){if(s<e.length)n=e.charCodeAt(s);else{if(47===n)break;n=47}if(47===n){if(a===s-1||1===i);else if(a!==s-1&&2===i){if(r.length<2||2!==o||46!==r.charCodeAt(r.length-1)||46!==r.charCodeAt(r.length-2))if(r.length>2){var l=r.lastIndexOf("/");if(l!==r.length-1){-1===l?(r="",o=0):o=(r=r.slice(0,l)).length-1-r.lastIndexOf("/"),a=s,i=0;continue}}else if(2===r.length||1===r.length){r="",o=0,a=s,i=0;continue}t&&(r.length>0?r+="/..":r="..",o=2)}else r.length>0?r+="/"+e.slice(a+1,s):r=e.slice(a+1,s),o=s-a-1;a=s,i=0}else 46===n&&-1!==i?++i:i=-1}return r}var r={resolve:function(){for(var e,r="",o=!1,a=arguments.length-1;a>=-1&&!o;a--){var i;a>=0?i=arguments[a]:(void 0===e&&(e=process.cwd()),i=e),t(i),0!==i.length&&(r=i+"/"+r,o=47===i.charCodeAt(0))}return r=n(r,!o),o?r.length>0?"/"+r:"/":r.length>0?r:"."},normalize:function(e){if(t(e),0===e.length)return".";var r=47===e.charCodeAt(0),o=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!r)).length||r||(e="."),e.length>0&&o&&(e+="/"),r?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,n=0;n<arguments.length;++n){var o=arguments[n];t(o),o.length>0&&(void 0===e?e=o:e+="/"+o)}return void 0===e?".":r.normalize(e)},relative:function(e,n){if(t(e),t(n),e===n)return"";if((e=r.resolve(e))===(n=r.resolve(n)))return"";for(var o=1;o<e.length&&47===e.charCodeAt(o);++o);for(var a=e.length,i=a-o,s=1;s<n.length&&47===n.charCodeAt(s);++s);for(var l=n.length-s,c=i<l?i:l,g=-1,d=0;d<=c;++d){if(d===c){if(l>c){if(47===n.charCodeAt(s+d))return n.slice(s+d+1);if(0===d)return n.slice(s+d)}else i>c&&(47===e.charCodeAt(o+d)?g=d:0===d&&(g=0));break}var u=e.charCodeAt(o+d);if(u!==n.charCodeAt(s+d))break;47===u&&(g=d)}var p="";for(d=o+g+1;d<=a;++d)d!==a&&47!==e.charCodeAt(d)||(0===p.length?p+="..":p+="/..");return p.length>0?p+n.slice(s+g):(s+=g,47===n.charCodeAt(s)&&++s,n.slice(s))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var n=e.charCodeAt(0),r=47===n,o=-1,a=!0,i=e.length-1;i>=1;--i)if(47===(n=e.charCodeAt(i))){if(!a){o=i;break}}else a=!1;return-1===o?r?"/":".":r&&1===o?"//":e.slice(0,o)},basename:function(e,n){if(void 0!==n&&"string"!==typeof n)throw new TypeError('"ext" argument must be a string');t(e);var r,o=0,a=-1,i=!0;if(void 0!==n&&n.length>0&&n.length<=e.length){if(n.length===e.length&&n===e)return"";var s=n.length-1,l=-1;for(r=e.length-1;r>=0;--r){var c=e.charCodeAt(r);if(47===c){if(!i){o=r+1;break}}else-1===l&&(i=!1,l=r+1),s>=0&&(c===n.charCodeAt(s)?-1===--s&&(a=r):(s=-1,a=l))}return o===a?a=l:-1===a&&(a=e.length),e.slice(o,a)}for(r=e.length-1;r>=0;--r)if(47===e.charCodeAt(r)){if(!i){o=r+1;break}}else-1===a&&(i=!1,a=r+1);return-1===a?"":e.slice(o,a)},extname:function(e){t(e);for(var n=-1,r=0,o=-1,a=!0,i=0,s=e.length-1;s>=0;--s){var l=e.charCodeAt(s);if(47!==l)-1===o&&(a=!1,o=s+1),46===l?-1===n?n=s:1!==i&&(i=1):-1!==n&&(i=-1);else if(!a){r=s+1;break}}return-1===n||-1===o||0===i||1===i&&n===o-1&&n===r+1?"":e.slice(n,o)},format:function(e){if(null===e||"object"!==typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}("/",e)},parse:function(e){t(e);var n={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return n;var r,o=e.charCodeAt(0),a=47===o;a?(n.root="/",r=1):r=0;for(var i=-1,s=0,l=-1,c=!0,g=e.length-1,d=0;g>=r;--g)if(47!==(o=e.charCodeAt(g)))-1===l&&(c=!1,l=g+1),46===o?-1===i?i=g:1!==d&&(d=1):-1!==i&&(d=-1);else if(!c){s=g+1;break}return-1===i||-1===l||0===d||1===d&&i===l-1&&i===s+1?-1!==l&&(n.base=n.name=0===s&&a?e.slice(1,l):e.slice(s,l)):(0===s&&a?(n.name=e.slice(1,i),n.base=e.slice(1,l)):(n.name=e.slice(s,i),n.base=e.slice(s,l)),n.ext=e.slice(i,l)),s>0?n.dir=e.slice(0,s-1):a&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};r.posix=r,e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;!function(e){function t(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e}function n(e){return Array.isArray(e)}function r(e,o){if(e===o)return!0;if(t(e)||t(o))return!1;var a=n(e),i=n(o);return a===i&&(a&&i?function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;++n)if(!r(e[n],t[n]))return!1;return!0}(e,o):function(e,t){if(e===t)return!0;for(var n in e)if(void 0!==e[n]&&!(n in t))return!1;for(var n in t)if(void 0!==t[n]&&!(n in e))return!1;for(var n in e){var o=e[n],a=t[n];if(void 0!==o||void 0!==a){if(void 0===o||void 0===a)return!1;if(!r(o,a))return!1}}return!0}(e,o))}function o(e){return t(e)?e:n(e)?function(e){for(var t=new Array(e.length),n=0,r=e.length;n<r;++n)t[n]=o(e[n]);return t}(e):function(e){var t={};for(var n in e){var r=e[n];void 0!==r&&(t[n]=o(r))}return t}(e)}e.emptyObject=Object.freeze({}),e.emptyArray=Object.freeze([]),e.isPrimitive=t,e.isArray=n,e.isObject=function(e){return!t(e)&&!n(e)},e.deepEqual=r,e.deepCopy=o}(e||(e={}));!function(){function e(){this._types=[],this._values=[]}e.prototype.types=function(){return this._types.slice()},e.prototype.hasData=function(e){return-1!==this._types.indexOf(e)},e.prototype.getData=function(e){var t=this._types.indexOf(e);return-1!==t?this._values[t]:void 0},e.prototype.setData=function(e,t){this.clearData(e),this._types.push(e),this._values.push(t)},e.prototype.clearData=function(e){var t=this._types.indexOf(e);-1!==t&&(this._types.splice(t,1),this._values.splice(t,1))},e.prototype.clear=function(){this._types.length=0,this._values.length=0}}();var t,r,o=function(){function e(){var e=this;this.promise=new Promise((function(t,n){e._resolve=t,e._reject=n}))}return e.prototype.resolve=function(e){(0,this._resolve)(e)},e.prototype.reject=function(e){(0,this._reject)(e)},e}();function a(e){for(var t=0,n=0,r=e.length;n<r;++n)n%4===0&&(t=4294967295*Math.random()>>>0),e[n]=255&t,t>>>=8}!function(e){e.getRandomValues=function(){var e="undefined"!==typeof window&&(window.crypto||window.msCrypto)||null;return e&&"function"===typeof e.getRandomValues?function(t){return e.getRandomValues(t)}:a}()}(t||(t={})),function(e){e.uuid4=function(e){for(var t=new Uint8Array(16),n=new Array(256),r=0;r<16;++r)n[r]="0"+r.toString(16);for(r=16;r<256;++r)n[r]=r.toString(16);return function(){return e(t),t[6]=64|15&t[6],t[8]=128|63&t[8],n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}(t.getRandomValues)}(r||(r={}));var i=n(56977),s=n.n(i);function l(e,t){const n=s().normalize(t),r=s().dirname(n).split("/"),o=[];for(const i of r){o.push(i);const t=o.join("/");if(e.FS.analyzePath(t).exists){if(e.FS.isDir(t))throw new Error(`"${t}" already exists and is not a directory.`)}else try{e.FS.mkdir(t)}catch(a){throw console.error(`Failed to create a directory "${t}"`),a}}}function c(e,t,n,r){l(e,t),e.FS.writeFile(t,n,r)}function g(e){e.forEach((e=>{let t;try{t=new URL(e)}catch(n){return}if("emfs:"===t.protocol||"file:"===t.protocol)throw new Error(`"emfs:" and "file:" protocols are not allowed for the requirement (${e})`)}))}var d=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{l(r.next(e))}catch(t){a(t)}}function s(e){try{l(r.throw(e))}catch(t){a(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}l((r=r.apply(e,t||[])).next())}))};let u,p;const f=self,h=new o;function m(e){f.postMessage({type:"event:progress",data:{message:e}})}const y=function(){return d(this,void 0,void 0,(function*(){const{entrypoint:e,files:t,requirements:n,wheels:r,mountedSitePackagesSnapshotFilePath:o,pyodideEntrypointUrl:a}=yield h.promise;if(m("Loading Pyodide."),console.debug("Import the entrypoint script."),importScripts(null!==a&&void 0!==a?a:"https://cdn.jsdelivr.net/pyodide/v0.22.1/full/pyodide.js"),console.debug("Loading Pyodide"),u=yield loadPyodide({stdout:console.log,stderr:console.error}),console.debug("Loaded Pyodide"),m("Mounting files."),Object.keys(t).forEach((e=>{const{data:n,opts:r}=t[e];console.debug(`Write a file "${e}"`),c(u,e,n,r)})),m("Loading the initially required packages."),console.debug("Loading the initially necessary packages"),yield u.loadPackage(["ssl"]),console.debug("Loaded the initially necessary packages"),o)m("Restoring the snapshot."),yield u.runPythonAsync("import tarfile, shutil, site"),yield u.runPythonAsync("\n site_packages_dirs = site.getsitepackages()\n for site_packages in site_packages_dirs:\n shutil.rmtree(site_packages)\n "),console.debug(`Unarchive ${o}`),yield u.runPythonAsync(`\n with tarfile.open("${o}", "r") as tar_gz_file:\n tar_gz_file.extractall("/")\n `),console.debug("Restored the snapshot");else{if(!r)throw new Error("Neither snapshot nor wheel files are provided.");{m("Installing streamlit and its dependencies."),console.debug("Loading tornado, pyarrow, and streamlit"),yield u.loadPackage("micropip");const e=u.pyimport("micropip");yield e.install.callKwargs([r.tornado,r.pyarrow],{keep_going:!0}),yield e.install.callKwargs([r.streamlit],{keep_going:!0}),console.debug("Loaded tornado, pyarrow, and streamlit"),m("Installing the requirements."),console.debug("Installing the requirements:",n),g(n),yield e.install.callKwargs(n,{keep_going:!0}),console.debug("Installed the requirements:",n)}}yield u.runPythonAsync("\n import importlib\n importlib.invalidate_caches()\n "),m("Loading streamlit package."),console.debug("Loading the Streamlit package"),yield u.runPythonAsync("\n import streamlit.runtime\n import streamlit.web\n "),console.debug("Loaded the Streamlit package"),m("Setting up the loggers."),console.debug("Setting the loggers"),yield u.runPythonAsync("\n import logging\n import streamlit.logger\n\n streamlit.logger.get_logger = logging.getLogger\n streamlit.logger.setup_formatter = None\n streamlit.logger.update_formatter = lambda *a, **k: None\n streamlit.logger.set_log_level = lambda *a, **k: None\n ");self.__logCallback__=e=>{e.startsWith("CRITICAL")||e.startsWith("ERROR")?console.error(e):e.startsWith("WARNING")?console.warn(e):e.startsWith("INFO")?console.info(e):e.startsWith("DEBUG")?console.debug(e):console.log(e)},yield u.runPythonAsync('\n from js import __logCallback__\n\n\n class JsHandler(logging.Handler):\n def emit(self, record):\n msg = self.format(record)\n __logCallback__(msg)\n\n\n main_formatter = logging.Formatter("%(levelname)s:%(name)s:%(message)s")\n\n js_handler = JsHandler()\n js_handler.setFormatter(main_formatter)\n\n root_logger = logging.getLogger()\n root_logger.handlers.clear()\n root_logger.addHandler(js_handler)\n root_logger.setLevel(logging.DEBUG)\n\n streamlit_handler = logging.getLogger("streamlit")\n streamlit_handler.setLevel(logging.DEBUG)\n '),console.debug("Set the loggers"),m("Mocking some Streamlit functions for the browser environment."),console.debug("Mocking some Streamlit functions"),yield u.runPythonAsync("\n import streamlit\n import contextlib\n\n @contextlib.contextmanager\n def spinner(*args, **kwargs):\n yield\n\n streamlit.spinner = spinner\n streamlit.runtime.caching.cache_utils.spinner = spinner\n streamlit.runtime.legacy_caching.caching.spinner = spinner\n "),console.debug("Mocked some Streamlit functions"),m("Booting up the Streamlit server."),console.debug("Defining the bootstrap functions"),yield u.runPythonAsync('\n import asyncio\n import os\n import streamlit\n import streamlit.web.bootstrap as bootstrap\n from streamlit.web.server import Server\n\n\n class BadArgumentUsage(Exception):\n pass\n\n\n class BadParameter(Exception):\n pass\n\n\n # Mimic streamlit.web.bootstrap.run() but exclude some code unnecessary for stlite environment\n def run(\n main_script_path,\n command_line,\n args,\n flag_options,\n ) -> None:\n bootstrap._fix_sys_path(main_script_path)\n bootstrap._fix_matplotlib_crash()\n bootstrap._fix_sys_argv(main_script_path, args)\n bootstrap._fix_pydeck_mapbox_api_warning()\n bootstrap._install_pages_watcher(main_script_path)\n\n # Create the server. It won\'t start running yet.\n server = Server(main_script_path, command_line)\n\n # Run the server.\n asyncio.get_event_loop().create_task(server.start())\n\n\n def _get_command_line_as_string():\n return "" # TODO\n\n\n def _main_run(file, args=None, flag_options=None):\n if args is None:\n args = []\n\n if flag_options is None:\n flag_options = {}\n\n command_line = _get_command_line_as_string()\n\n # Set a global flag indicating that we\'re "within" streamlit.\n streamlit._is_running_with_streamlit = True\n\n # check_credentials() # Disable credential check on Pyodide\n\n run(file, command_line, args, flag_options) # Call this customized run function instead of the original bootstrap.run.\n\n\n def main_hello(**kwargs):\n """Runs the Hello World script."""\n from streamlit.hello import Hello\n\n bootstrap.load_config_options(flag_options=kwargs)\n filename = Hello.__file__\n _main_run(filename, flag_options=kwargs)\n\n\n ACCEPTED_FILE_EXTENSIONS = ("py", "py3")\n\n\n def main_run(target, args=None, **kwargs):\n """Run a Python script, piping stderr to Streamlit.\n\n The script can be local or it can be an url. In the latter case, Streamlit\n will download the script to a temporary file and runs this file.\n\n """\n bootstrap.load_config_options(flag_options=kwargs)\n\n _, extension = os.path.splitext(target)\n if extension[1:] not in ACCEPTED_FILE_EXTENSIONS:\n if extension[1:] == "":\n raise BadArgumentUsage(\n "Streamlit requires raw Python (.py) files, but the provided file has no extension.\\nFor more information, please see https://docs.streamlit.io"\n )\n else:\n raise BadArgumentUsage(\n "Streamlit requires raw Python (.py) files, not %s.\\nFor more information, please see https://docs.streamlit.io"\n % extension\n )\n\n # stlite deals with the URL input in the JS layer,\n # so Python code does not take care of it and\n # `target` here can be assumed to be a file path, not a URL.\n\n if not os.path.exists(target):\n raise BadParameter("File does not exist: {}".format(target))\n _main_run(target, args, flag_options=kwargs)\n '),console.debug("Defined the bootstrap functions"),console.debug("Booting up the Streamlit server"),yield u.runPythonAsync('\n command_kwargs = {\n "server.headless": True, # Not to open the browser after launching\n "global.dataFrameSerialization": "legacy", # Not to use PyArrow\n "server.enableXsrfProtection": False, # Disable XSRF protection as it relies on cookies\n "browser.gatherUsageStats": False,\n }\n '),yield u.runPythonAsync(`main_run("${e}", **command_kwargs)`),console.debug("Booted up the Streamlit server"),console.debug("Setting up the HTTP server"),yield u.runPythonAsync("\n from tornado.httpserver import HTTP_SERVER\n "),p=u.globals.get("HTTP_SERVER").copy(),console.debug("Set up the HTTP server"),f.postMessage({type:"event:loaded"})}))}().catch((e=>{throw f.postMessage({type:"event:error",data:{error:e}}),e}));self.onmessage=e=>d(void 0,void 0,void 0,(function*(){const t=e.data;if("initData"===t.type)return void h.resolve(t.data);yield y;const n=e.ports[0];try{switch(t.type){case"websocket:connect":{console.debug("websocket:connect",t.data);const{path:e}=t.data;p.start_websocket(e,((e,t)=>{if(t){const t=e.getBuffer("u8");e.destroy();const n=new Uint8ClampedArray(t.data.buffer,t.data.byteOffset,t.data.byteLength);f.postMessage({type:"websocket:message",data:{payload:new Uint8Array(n)}})}else f.postMessage({type:"websocket:message",data:{payload:e}})})),n.postMessage({type:"reply"});break}case"websocket:send":{console.debug("websocket:send",t.data);const{payload:e}=t.data;p.receive_websocket_from_js(e);break}case"http:request":{console.debug("http:request",t.data);const{request:e}=t.data,r=(e,t,r)=>{const o=t.toJs(),a=r.toJs();console.debug({statusCode:e,headers:o,body:a});const i={type:"http:response",data:{response:{statusCode:e,headers:o,body:a}}};n.postMessage(i)};p.receive_http_from_js(e.method,e.path,e.headers,e.body,r);break}case"file:write":{const{path:e,data:r,opts:o}=t.data;console.debug(`Write a file "${e}"`),c(u,e,r,o),n.postMessage({type:"reply"});break}case"file:rename":{const{oldPath:e,newPath:r}=t.data;console.debug(`Rename "${e}" to ${r}`),function(e,t,n){l(e,n),e.FS.rename(t,n)}(u,e,r),n.postMessage({type:"reply"});break}case"file:unlink":{const{path:e}=t.data;console.debug(`Remove "${e}`),u.FS.unlink(e),n.postMessage({type:"reply"});break}case"install":{const{requirements:e}=t.data,r=u.pyimport("micropip");console.debug("Install the requirements:",e),g(e),yield r.install.callKwargs(e,{keep_going:!0}).then((()=>{if(e.includes("matplotlib"))return u.runPythonAsync("\n bootstrap._fix_matplotlib_crash()\n ")})).then((()=>{console.debug("Successfully installed"),n.postMessage({type:"reply"})}))}}}catch(r){n.postMessage({type:"reply",error:r})}})),f.postMessage({type:"event:start"})})()})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[6422],{46422:(e,t,s)=>{s.r(t),s.d(t,{default:()=>v});var i=s(5057),a=s(9187),o=s.n(a),r=s(31476),n=s(42458),l=s(9191),d=s(73830),p=s(56846),m=s(86964),h=s(8429),u=s(54840),g=s(34422),c=s(96266);const f="YYYY/MM/DD";function y(e){return e.map((e=>new Date(e)))}class b extends i.PureComponent{constructor(...e){super(...e),this.formClearHelper=new p.Kz,this.state={values:this.initialValue,isRange:this.props.element.isRange,isEmpty:!1},this.commitWidgetValue=e=>{this.props.widgetMgr.setStringArrayValue(this.props.element,this.state.values.map((e=>o()(e).format(f))),e)},this.onFormCleared=()=>{const e=y(this.props.element.default);this.setState({values:e},(()=>this.commitWidgetValue({fromUi:!0})))},this.handleChange=({date:e})=>{if(null===e||void 0===e)return void this.setState({values:[],isEmpty:!0});const t=[];Array.isArray(e)?e.forEach((e=>{e&&t.push(e)})):t.push(e),this.setState({values:t,isEmpty:!t},(()=>{this.state.isEmpty||this.commitWidgetValue({fromUi:!0})}))},this.handleClose=()=>{const{isEmpty:e}=this.state;e&&this.setState(((e,t)=>({values:y(t.element.default),isEmpty:!y(t.element.default)})),(()=>{this.commitWidgetValue({fromUi:!0})}))},this.getMaxDate=()=>{const{element:e}=this.props,t=e.max;return t&&t.length>0?o()(t,f).toDate():void 0}}get initialValue(){const e=this.props.widgetMgr.getStringArrayValue(this.props.element);return y(void 0!==e?e:this.props.element.default)}componentDidMount(){this.props.element.setValue?this.updateFromProtobuf():this.commitWidgetValue({fromUi:!1})}componentDidUpdate(){this.maybeUpdateFromProtobuf()}componentWillUnmount(){this.formClearHelper.disconnect()}maybeUpdateFromProtobuf(){const{setValue:e}=this.props.element;e&&this.updateFromProtobuf()}updateFromProtobuf(){const{value:e}=this.props.element;this.props.element.setValue=!1,this.setState({values:e.map((e=>new Date(e)))},(()=>{this.commitWidgetValue({fromUi:!1})}))}render(){var e;const{width:t,element:s,disabled:i,theme:a,widgetMgr:r}=this.props,{values:p,isRange:y}=this.state,{colors:b,fontSizes:v,lineHeights:C}=a,x={width:t},V=o()(s.min,f).toDate(),D=this.getMaxDate();return this.formClearHelper.manageFormClearListener(r,s.formId,this.onFormCleared),(0,c.jsxs)("div",{className:"stDateInput",style:x,children:[(0,c.jsx)(m.ON,{label:s.label,disabled:i,labelVisibility:(0,g.iF)(null===(e=s.labelVisibility)||void 0===e?void 0:e.value),children:s.help&&(0,c.jsx)(m.dT,{children:(0,c.jsx)(h.Z,{content:s.help,placement:u.ug.TOP_RIGHT})})}),(0,c.jsx)(n.Z,{density:l.pw.high,formatString:"yyyy/MM/dd",disabled:i,onChange:this.handleChange,onClose:this.handleClose,overrides:{Popover:{props:{placement:d.r4.bottomLeft,overrides:{Body:{style:{border:`1px solid ${b.fadedText10}`}}}}},CalendarContainer:{style:{fontSize:v.sm,paddingRight:a.spacing.sm,paddingLeft:a.spacing.sm,paddingBottom:a.spacing.sm,paddingTop:a.spacing.sm}},Week:{style:{fontSize:v.sm}},Day:{style:{fontSize:v.sm,lineHeight:C.base,"::after":{borderColor:b.transparent}}},PrevButton:{style:()=>({display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:b.transparent},":focus":{backgroundColor:b.transparent,outline:0}})},NextButton:{style:{display:"flex",alignItems:"center",justifyContent:"center",":active":{backgroundColor:b.transparent},":focus":{backgroundColor:b.transparent,outline:0}}},Input:{props:{maskChar:null,overrides:{Root:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},Input:{style:{paddingRight:".5rem",paddingLeft:".5rem",paddingBottom:".5rem",paddingTop:".5rem"}}}}}},value:p,minDate:V,maxDate:D,range:y})]})}}const v=(0,r.b)(b)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[6449],{16449:(e,r,t)=>{t.d(r,{Z:()=>M});var n,o=t(5057),a=t(80099),i={small:"small",medium:"medium",large:"large"},s=t(53381),l=t(97012);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},u.apply(this,arguments)}function c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function d(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?c(Object(t),!0).forEach((function(r){f(e,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):c(Object(t)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}))}return e}function f(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function p(e){var r;return(r={},f(r,i.small,"2px"),f(r,i.medium,"4px"),f(r,i.large,"8px"),r)[e]}var y=(0,s.zo)("div",(function(e){return{width:"100%"}}));y.displayName="StyledRoot",y.displayName="StyledRoot";var m=(0,s.zo)("div",(function(e){var r=e.$theme.sizing;return{display:"flex",marginLeft:r.scale500,marginRight:r.scale500,marginTop:r.scale500,marginBottom:r.scale500}}));m.displayName="StyledBarContainer",m.displayName="StyledBarContainer";var b=(0,s.zo)("div",(function(e){var r=e.$theme,t=e.$size,n=e.$steps,o=r.colors,a=r.sizing,i=r.borders.useRoundedCorners?a.scale0:0;return d({borderTopLeftRadius:i,borderTopRightRadius:i,borderBottomRightRadius:i,borderBottomLeftRadius:i,backgroundColor:(0,l.oo)(o.progressbarTrackFill,"0.16"),height:p(t),flex:1,overflow:"hidden"},n<2?{}:{marginLeft:a.scale300,":first-child":{marginLeft:"0"}})}));b.displayName="StyledBar",b.displayName="StyledBar";var g=(0,s.zo)("div",(function(e){var r=e.$theme,t=e.$value,n=e.$successValue,o=e.$steps,a=e.$index,i=e.$maxValue,s=e.$minValue,l=void 0===s?0:s,u=i||n,c=r.colors,f=r.sizing,p=r.borders,y="".concat(100-100*(t-l)/(u-l),"%"),m="awaits",b="inProgress",g="completed",h="default";if(o>1){var v=(u-l)/o,w=(t-l)/(u-l)*100,P=Math.floor(w/v);h=a<P?g:a===P?b:m}var O=p.useRoundedCorners?f.scale0:0,R={transform:"translateX(-".concat(y,")")},k=h===b?{animationDuration:"2.1s",animationIterationCount:"infinite",animationTimingFunction:r.animation.linearCurve,animationName:{"0%":{transform:"translateX(-102%)",opacity:1},"50%":{transform:"translateX(0%)",opacity:1},"100%":{transform:"translateX(0%)",opacity:0}}}:h===g?{transform:"translateX(0%)"}:{transform:"translateX(-102%)"};return d({borderTopLeftRadius:O,borderTopRightRadius:O,borderBottomRightRadius:O,borderBottomLeftRadius:O,backgroundColor:c.accent,height:"100%",width:"100%",transform:"translateX(-102%)",transition:"transform 0.5s"},o>1?k:R)}));g.displayName="StyledBarProgress",g.displayName="StyledBarProgress";var h=(0,s.zo)("div",(function(e){var r=e.$theme,t=e.$isLeft,n=void 0!==t&&t,o=e.$size,a=void 0===o?i.medium:o,s=r.colors,l=r.sizing,u=r.borders.useRoundedCorners?l.scale0:0,c=p(a),f={display:"inline-block",flex:1,marginLeft:"auto",marginRight:"auto",transitionProperty:"background-position",animationDuration:"1.5s",animationIterationCount:"infinite",animationTimingFunction:r.animation.linearCurve,backgroundSize:"300% auto",backgroundRepeat:"no-repeat",backgroundPositionX:n?"-50%":"150%",backgroundImage:"linear-gradient(".concat(n?"90":"270","deg, transparent 0%, ").concat(s.accent," 25%, ").concat(s.accent," 75%, transparent 100%)"),animationName:n?{"0%":{backgroundPositionX:"-50%"},"33%":{backgroundPositionX:"50%"},"66%":{backgroundPositionX:"50%"},"100%":{backgroundPositionX:"150%"}}:{"0%":{backgroundPositionX:"150%"},"33%":{backgroundPositionX:"50%"},"66%":{backgroundPositionX:"50%"},"100%":{backgroundPositionX:"-50%"}}};return d(d({},n?{borderTopLeftRadius:u,borderBottomLeftRadius:u}:{borderTopRightRadius:u,borderBottomRightRadius:u}),{},{height:c},f)}));h.displayName="StyledInfiniteBar",h.displayName="StyledInfiniteBar";var v=(0,s.zo)("div",(function(e){return d(d({textAlign:"center"},e.$theme.typography.font150),{},{color:e.$theme.colors.contentTertiary})}));v.displayName="StyledLabel",v.displayName="StyledLabel";var w=(f(n={},i.large,{d:"M47.5 4H71.5529C82.2933 4 91 12.9543 91 24C91 35.0457 82.2933 44 71.5529 44H23.4471C12.7067 44 4 35.0457 4 24C4 12.9543 12.7067 4 23.4471 4H47.5195",width:95,height:48,strokeWidth:8,typography:"LabelLarge"}),f(n,i.medium,{d:"M39 2H60.5833C69.0977 2 76 9.16344 76 18C76 26.8366 69.0977 34 60.5833 34H17.4167C8.90228 34 2 26.8366 2 18C2 9.16344 8.90228 2 17.4167 2H39.0195",width:78,height:36,strokeWidth:4,typography:"LabelMedium"}),f(n,i.small,{d:"M32 1H51.6271C57.9082 1 63 6.37258 63 13C63 19.6274 57.9082 25 51.6271 25H12.3729C6.09181 25 1 19.6274 1 13C1 6.37258 6.09181 1 12.3729 1H32.0195",width:64,height:26,strokeWidth:2,typography:"LabelSmall"}),n),P=(0,s.zo)("div",(function(e){var r=e.$size,t=e.$inline;return{width:w[r].width+"px",height:w[r].height+"px",position:"relative",display:t?"inline-flex":"flex",alignItems:"center",justifyContent:"center"}}));P.displayName="StyledProgressBarRoundedRoot",P.displayName="StyledProgressBarRoundedRoot";var O=(0,s.zo)("svg",(function(e){var r=e.$size;return{width:w[r].width+"px",height:w[r].height+"px",position:"absolute",fill:"none"}}));O.displayName="_StyledProgressBarRoundedSvg",O.displayName="_StyledProgressBarRoundedSvg";(0,s.Le)(O,(function(e){return function(r){return o.createElement(e,u({viewBox:"0 0 ".concat(w[r.$size].width," ").concat(w[r.$size].height),xmlns:"http://www.w3.org/2000/svg"},r))}}));var R=(0,s.zo)("path",(function(e){var r=e.$theme,t=e.$size;return{stroke:r.colors.backgroundTertiary,strokeWidth:w[t].strokeWidth+"px"}}));R.displayName="_StyledProgressBarRoundedTrackBackground",R.displayName="_StyledProgressBarRoundedTrackBackground";(0,s.Le)(R,(function(e){return function(r){return o.createElement(e,u({d:w[r.$size].d},r))}}));var k=(0,s.zo)("path",(function(e){var r=e.$theme,t=e.$size,n=e.$visible,o=e.$pathLength,a=e.$pathProgress;return{visibility:n?"visible":"hidden",stroke:r.colors.borderAccent,strokeWidth:w[t].strokeWidth+"px",strokeDasharray:o,strokeDashoffset:o*(1-a)+""}}));k.displayName="_StyledProgressBarRoundedTrackForeground",k.displayName="_StyledProgressBarRoundedTrackForeground";(0,s.Le)(k,(function(e){return function(r){return o.createElement(e,u({d:w[r.$size].d},r))}}));var $=(0,s.zo)("div",(function(e){var r=e.$theme,t=e.$size;return d({color:r.colors.contentPrimary},r.typography[w[t].typography])}));function j(e){return j="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},j(e)}$.displayName="StyledProgressBarRoundedText",$.displayName="StyledProgressBarRoundedText";var S=["overrides","getProgressLabel","value","size","steps","successValue","minValue","maxValue","showLabel","infinite","errorMessage","forwardedRef"];function z(){return z=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},z.apply(this,arguments)}function B(e,r){return function(e){if(Array.isArray(e))return e}(e)||function(e,r){var t=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==t)return;var n,o,a=[],i=!0,s=!1;try{for(t=t.call(e);!(i=(n=t.next()).done)&&(a.push(n.value),!r||a.length!==r);i=!0);}catch(l){s=!0,o=l}finally{try{i||null==t.return||t.return()}finally{if(s)throw o}}return a}(e,r)||function(e,r){if(!e)return;if("string"===typeof e)return x(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);"Object"===t&&e.constructor&&(t=e.constructor.name);if("Map"===t||"Set"===t)return Array.from(e);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return x(e,r)}(e,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function L(e,r){if(null==e)return{};var t,n,o=function(e,r){if(null==e)return{};var t,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(o[t]=e[t])}return o}function C(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,r){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},N(e,r)}function T(e){var r=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,n=E(e);if(r){var o=E(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return function(e,r){if(r&&("object"===j(r)||"function"===typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var _,X,V,I=function(e){!function(e,r){if("function"!==typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&N(e,r)}(s,e);var r,t,n,i=T(s);function s(){return function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,s),i.apply(this,arguments)}return r=s,(t=[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this.props,r=e.overrides,t=void 0===r?{}:r,n=e.getProgressLabel,i=e.value,s=e.size,l=e.steps,u=e.successValue,c=e.minValue,d=e.maxValue,f=e.showLabel,p=e.infinite,w=e.errorMessage,P=e.forwardedRef,O=L(e,S),R=this.props["aria-label"]||this.props.ariaLabel,k=100!==d?d:u,$=B((0,a.jb)(t.Root,y),2),j=$[0],x=$[1],C=B((0,a.jb)(t.BarContainer,m),2),N=C[0],T=C[1],E=B((0,a.jb)(t.Bar,b),2),_=E[0],X=E[1],V=B((0,a.jb)(t.BarProgress,g),2),I=V[0],D=V[1],M=B((0,a.jb)(t.Label,v),2),H=M[0],A=M[1],W=B((0,a.jb)(t.InfiniteBar,h),2),F=W[0],U=W[1],Z={$infinite:p,$size:s,$steps:l,$successValue:k,$minValue:c,$maxValue:k,$value:i};return o.createElement(j,z({ref:P,"data-baseweb":"progress-bar",role:"progressbar","aria-label":R||n(i,k,c),"aria-valuenow":p?null:i,"aria-valuemin":p?null:c,"aria-valuemax":p?null:k,"aria-invalid":!!w||null,"aria-errormessage":w},O,Z,x),o.createElement(N,z({},Z,T),p?o.createElement(o.Fragment,null,o.createElement(F,z({$isLeft:!0,$size:Z.$size},U)),o.createElement(F,z({$size:Z.$size},U))):function(){for(var e=[],r=0;r<l;r++)e.push(o.createElement(_,z({key:r},Z,X),o.createElement(I,z({$index:r},Z,D))));return e}()),f&&o.createElement(H,z({},Z,A),n(i,k,c)))}}])&&C(r.prototype,t),n&&C(r,n),Object.defineProperty(r,"prototype",{writable:!1}),s}(o.Component);_=I,X="defaultProps",V={getProgressLabel:function(e,r,t){return"".concat(Math.round((e-t)/(r-t)*100),"% Loaded")},infinite:!1,overrides:{},showLabel:!1,size:i.medium,steps:1,successValue:100,minValue:0,maxValue:100,value:0},X in _?Object.defineProperty(_,X,{value:V,enumerable:!0,configurable:!0,writable:!0}):_[X]=V;var D=o.forwardRef((function(e,r){return o.createElement(I,z({forwardedRef:r},e))}));D.displayName="ProgressBar";const M=D}}]);
|