@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.
Files changed (216) hide show
  1. package/bin/dump_artifacts.js +3 -3
  2. package/build/asset-manifest.json +150 -82
  3. package/build/index.html +1 -1
  4. package/build/static/css/3683.60b7ada4.chunk.css +1 -0
  5. package/build/static/css/4320.1edfa457.chunk.css +1 -0
  6. package/build/static/css/main.b43a24ba.css +1 -0
  7. package/build/static/js/1367.9dcea0bc.chunk.js +9 -0
  8. package/build/static/js/142.85e6074f.chunk.js +1 -0
  9. package/build/static/js/1579.10c95eae.chunk.js +1 -0
  10. package/build/static/js/1839.410079bf.chunk.js +1 -0
  11. package/build/static/js/2116.2e449b06.chunk.js +1 -0
  12. package/build/static/js/2458.cfb63c88.chunk.js +1 -0
  13. package/build/static/js/2523.7919ada5.chunk.js +5 -0
  14. package/build/static/js/2632.3ed5d578.chunk.js +1 -0
  15. package/build/static/js/277.fbace0b9.chunk.js +1 -0
  16. package/build/static/js/2909.783348bb.chunk.js +1 -0
  17. package/build/static/js/2961.e91b0c14.chunk.js +2 -0
  18. package/build/static/js/2961.e91b0c14.chunk.js.LICENSE.txt +45 -0
  19. package/build/static/js/3392.d73d4efc.chunk.js +1 -0
  20. package/build/static/js/3683.68da2452.chunk.js +1 -0
  21. package/build/static/js/3975.5538132d.chunk.js +1 -0
  22. package/build/static/js/3977.8a9ac9d7.chunk.js +1 -0
  23. package/build/static/js/4210.66c14600.chunk.js +1 -0
  24. package/build/static/js/4320.8fa60786.chunk.js +2 -0
  25. package/build/static/js/{7.e8b702b0.chunk.js.LICENSE.txt → 4320.8fa60786.chunk.js.LICENSE.txt} +2 -0
  26. package/build/static/js/4514.ff4d47b7.chunk.js +5 -0
  27. package/build/static/js/458.895bbb73.chunk.js +1 -0
  28. package/build/static/js/464.8a875fdd.chunk.js +1 -0
  29. package/build/static/js/4994.8f0118ec.chunk.js +1 -0
  30. package/build/static/js/5070.1d0d565e.chunk.js +1 -0
  31. package/build/static/js/5608.314b94e4.chunk.js +1 -0
  32. package/build/static/js/5678.b7f865a0.chunk.js +1 -0
  33. package/build/static/js/5752.d5d30939.chunk.js +1 -0
  34. package/build/static/js/5865.90a40692.chunk.js +17 -0
  35. package/build/static/js/6097.56c4b02a.chunk.js +1 -0
  36. package/build/static/js/6242.5e6f91ac.chunk.js +1 -0
  37. package/build/static/js/6391.6cdac98a.chunk.js +1 -0
  38. package/build/static/js/6422.f69a61a8.chunk.js +1 -0
  39. package/build/static/js/6449.702355ee.chunk.js +1 -0
  40. package/build/static/js/6668.8cb69721.chunk.js +2 -0
  41. package/build/static/js/{9.d99eed24.chunk.js.LICENSE.txt → 6668.8cb69721.chunk.js.LICENSE.txt} +0 -0
  42. package/build/static/js/6679.d28318d1.chunk.js +2 -0
  43. package/build/static/js/{18.b32ef4e7.chunk.js.LICENSE.txt → 6679.d28318d1.chunk.js.LICENSE.txt} +9 -9
  44. package/build/static/js/6865.b0803b6b.chunk.js +1 -0
  45. package/build/static/js/6928.228563da.chunk.js +2 -0
  46. package/build/static/js/{2.90589c59.chunk.js.LICENSE.txt → 6928.228563da.chunk.js.LICENSE.txt} +0 -0
  47. package/build/static/js/7135.57023452.chunk.js +1 -0
  48. package/build/static/js/7496.37614377.chunk.js +1 -0
  49. package/build/static/js/761.e16e6486.chunk.js +1 -0
  50. package/build/static/js/7698.095351a0.chunk.js +1 -0
  51. package/build/static/js/7842.a98fbb15.chunk.js +1 -0
  52. package/build/static/js/7858.fa281cb7.chunk.js +5 -0
  53. package/build/static/js/7937.a3bc5cdb.chunk.js +1 -0
  54. package/build/static/js/8355.7352ad1b.chunk.js +1 -0
  55. package/build/static/js/8461.87a9a578.chunk.js +1 -0
  56. package/build/static/js/8565.f27e3917.chunk.js +1 -0
  57. package/build/static/js/8910.e6dda87e.chunk.js +2 -0
  58. package/build/static/js/{15.b28e3a9f.chunk.js.LICENSE.txt → 8910.e6dda87e.chunk.js.LICENSE.txt} +0 -0
  59. package/build/static/js/91.f23bbeac.chunk.js +1 -0
  60. package/build/static/js/9462.6616e921.chunk.js +1 -0
  61. package/build/static/js/9551.e50bee9b.chunk.js +1 -0
  62. package/build/static/js/9733.aa290ea2.chunk.js +2 -0
  63. package/build/static/js/9733.aa290ea2.chunk.js.LICENSE.txt +10 -0
  64. package/build/static/js/9735.0e70600f.chunk.js +1 -0
  65. package/build/static/js/main.91a73418.js +28 -0
  66. package/build/static/js/{6.9c8c6dae.chunk.js.LICENSE.txt → main.91a73418.js.LICENSE.txt} +11 -66
  67. package/build/static/media/{KaTeX_AMS-Regular.73ea273a.woff2 → KaTeX_AMS-Regular.73ea273a72f4aca30ca5.woff2} +0 -0
  68. package/build/static/media/{KaTeX_AMS-Regular.853be924.ttf → KaTeX_AMS-Regular.853be92419a6c3766b9a.ttf} +0 -0
  69. package/build/static/media/{KaTeX_AMS-Regular.d562e886.woff → KaTeX_AMS-Regular.d562e886c52f12660a41.woff} +0 -0
  70. package/build/static/media/{KaTeX_Caligraphic-Bold.7489a2fb.ttf → KaTeX_Caligraphic-Bold.7489a2fbfb9bfe704420.ttf} +0 -0
  71. package/build/static/media/{KaTeX_Caligraphic-Bold.a1abf90d.woff2 → KaTeX_Caligraphic-Bold.a1abf90dfd72792a577a.woff2} +0 -0
  72. package/build/static/media/{KaTeX_Caligraphic-Bold.d757c535.woff → KaTeX_Caligraphic-Bold.d757c535a2e5902f1325.woff} +0 -0
  73. package/build/static/media/{KaTeX_Caligraphic-Regular.7e873d38.ttf → KaTeX_Caligraphic-Regular.7e873d3833eb108a0758.ttf} +0 -0
  74. package/build/static/media/{KaTeX_Caligraphic-Regular.d6484fce.woff2 → KaTeX_Caligraphic-Regular.d6484fce1ef428d5bd94.woff2} +0 -0
  75. package/build/static/media/{KaTeX_Caligraphic-Regular.db074fa2.woff → KaTeX_Caligraphic-Regular.db074fa22cf224af93d7.woff} +0 -0
  76. package/build/static/media/{KaTeX_Fraktur-Bold.354501ba.woff → KaTeX_Fraktur-Bold.354501bac435c3264834.woff} +0 -0
  77. package/build/static/media/{KaTeX_Fraktur-Bold.4c761b37.ttf → KaTeX_Fraktur-Bold.4c761b3711973ab04edf.ttf} +0 -0
  78. package/build/static/media/{KaTeX_Fraktur-Bold.931d67ea.woff2 → KaTeX_Fraktur-Bold.931d67ea207ab37ee693.woff2} +0 -0
  79. package/build/static/media/{KaTeX_Fraktur-Regular.172d3529.woff2 → KaTeX_Fraktur-Regular.172d3529b26f8cedef6b.woff2} +0 -0
  80. package/build/static/media/{KaTeX_Fraktur-Regular.6fdf0ac5.woff → KaTeX_Fraktur-Regular.6fdf0ac577be0ba82a4c.woff} +0 -0
  81. package/build/static/media/{KaTeX_Fraktur-Regular.ed305b54.ttf → KaTeX_Fraktur-Regular.ed305b5434865e06ffde.ttf} +0 -0
  82. package/build/static/media/{KaTeX_Main-Bold.0c3b8929.woff → KaTeX_Main-Bold.0c3b8929d377c0e9b2f3.woff} +0 -0
  83. package/build/static/media/{KaTeX_Main-Bold.39890742.woff2 → KaTeX_Main-Bold.39890742bc957b368704.woff2} +0 -0
  84. package/build/static/media/{KaTeX_Main-Bold.8169508b.ttf → KaTeX_Main-Bold.8169508bf58f8bd92ad8.ttf} +0 -0
  85. package/build/static/media/{KaTeX_Main-BoldItalic.20f389c4.woff2 → KaTeX_Main-BoldItalic.20f389c4120be058d80a.woff2} +0 -0
  86. package/build/static/media/{KaTeX_Main-BoldItalic.428978dc.woff → KaTeX_Main-BoldItalic.428978dc7837d46de091.woff} +0 -0
  87. package/build/static/media/{KaTeX_Main-BoldItalic.828abcb2.ttf → KaTeX_Main-BoldItalic.828abcb200061cffbaae.ttf} +0 -0
  88. package/build/static/media/{KaTeX_Main-Italic.fa675e5e.ttf → KaTeX_Main-Italic.fa675e5e4bec9eb250b6.ttf} +0 -0
  89. package/build/static/media/{KaTeX_Main-Italic.fd947498.woff → KaTeX_Main-Italic.fd947498bc16392e76c2.woff} +0 -0
  90. package/build/static/media/{KaTeX_Main-Italic.fe2176f7.woff2 → KaTeX_Main-Italic.fe2176f79edaa716e621.woff2} +0 -0
  91. package/build/static/media/{KaTeX_Main-Regular.4f35fbcc.woff → KaTeX_Main-Regular.4f35fbcc9ee8614c2bcc.woff} +0 -0
  92. package/build/static/media/{KaTeX_Main-Regular.9eba1d77.ttf → KaTeX_Main-Regular.9eba1d77abcf2aa6e94e.ttf} +0 -0
  93. package/build/static/media/{KaTeX_Main-Regular.f650f111.woff2 → KaTeX_Main-Regular.f650f111a3b890d116f1.woff2} +0 -0
  94. package/build/static/media/{KaTeX_Math-BoldItalic.3f07ed67.woff → KaTeX_Math-BoldItalic.3f07ed67f06c720120ce.woff} +0 -0
  95. package/build/static/media/{KaTeX_Math-BoldItalic.bf2d440b.ttf → KaTeX_Math-BoldItalic.bf2d440b3a42ea78a998.ttf} +0 -0
  96. package/build/static/media/{KaTeX_Math-BoldItalic.dcbcbd93.woff2 → KaTeX_Math-BoldItalic.dcbcbd93bac0470b462d.woff2} +0 -0
  97. package/build/static/media/{KaTeX_Math-Italic.6d3d25f4.woff2 → KaTeX_Math-Italic.6d3d25f4820d0da8f01f.woff2} +0 -0
  98. package/build/static/media/{KaTeX_Math-Italic.8a5f9363.ttf → KaTeX_Math-Italic.8a5f936332e8028c7278.ttf} +0 -0
  99. package/build/static/media/{KaTeX_Math-Italic.96759856.woff → KaTeX_Math-Italic.96759856b4e70f3a8338.woff} +0 -0
  100. package/build/static/media/{KaTeX_SansSerif-Bold.5b49f499.ttf → KaTeX_SansSerif-Bold.5b49f4993ae22d7975b4.ttf} +0 -0
  101. package/build/static/media/{KaTeX_SansSerif-Bold.95591a92.woff2 → KaTeX_SansSerif-Bold.95591a929f0d32aa282a.woff2} +0 -0
  102. package/build/static/media/{KaTeX_SansSerif-Bold.b9cd458a.woff → KaTeX_SansSerif-Bold.b9cd458ac6d5889ff9c3.woff} +0 -0
  103. package/build/static/media/{KaTeX_SansSerif-Italic.7d393d38.woff2 → KaTeX_SansSerif-Italic.7d393d382f3e7fb1c637.woff2} +0 -0
  104. package/build/static/media/{KaTeX_SansSerif-Italic.8d593cfa.woff → KaTeX_SansSerif-Italic.8d593cfaa96238d5e2f8.woff} +0 -0
  105. package/build/static/media/{KaTeX_SansSerif-Italic.b257a18c.ttf → KaTeX_SansSerif-Italic.b257a18c016f37ee4543.ttf} +0 -0
  106. package/build/static/media/{KaTeX_SansSerif-Regular.02271ec5.woff → KaTeX_SansSerif-Regular.02271ec5cb9f5b4588ac.woff} +0 -0
  107. package/build/static/media/{KaTeX_SansSerif-Regular.2f7bc363.ttf → KaTeX_SansSerif-Regular.2f7bc363fc5424ebda59.ttf} +0 -0
  108. package/build/static/media/{KaTeX_SansSerif-Regular.cd5e231e.woff2 → KaTeX_SansSerif-Regular.cd5e231e0cc53b2cb2c0.woff2} +0 -0
  109. package/build/static/media/{KaTeX_Script-Regular.073b3402.woff → KaTeX_Script-Regular.073b3402d036714b4370.woff} +0 -0
  110. package/build/static/media/{KaTeX_Script-Regular.c81d1b2a.woff2 → KaTeX_Script-Regular.c81d1b2a4b75d3eded60.woff2} +0 -0
  111. package/build/static/media/{KaTeX_Script-Regular.fc9ba524.ttf → KaTeX_Script-Regular.fc9ba5249878cd8f8d88.ttf} +0 -0
  112. package/build/static/media/{KaTeX_Size1-Regular.0108e89c.woff → KaTeX_Size1-Regular.0108e89c9003e8c14ea3.woff} +0 -0
  113. package/build/static/media/{KaTeX_Size1-Regular.6de7d4b5.ttf → KaTeX_Size1-Regular.6de7d4b539221a49e9e2.ttf} +0 -0
  114. package/build/static/media/{KaTeX_Size1-Regular.6eec866c.woff2 → KaTeX_Size1-Regular.6eec866c69313624be60.woff2} +0 -0
  115. package/build/static/media/{KaTeX_Size2-Regular.2960900c.woff2 → KaTeX_Size2-Regular.2960900c4f271311eb36.woff2} +0 -0
  116. package/build/static/media/{KaTeX_Size2-Regular.3a99e70a.woff → KaTeX_Size2-Regular.3a99e70aee4076660d38.woff} +0 -0
  117. package/build/static/media/{KaTeX_Size2-Regular.57f5c183.ttf → KaTeX_Size2-Regular.57f5c1837853986ea1db.ttf} +0 -0
  118. package/build/static/media/{KaTeX_Size3-Regular.7947224e.woff → KaTeX_Size3-Regular.7947224e8a9914fa332b.woff} +0 -0
  119. package/build/static/media/{KaTeX_Size3-Regular.8d6b6822.ttf → KaTeX_Size3-Regular.8d6b6822586eea3d3b20.ttf} +0 -0
  120. package/build/static/media/{KaTeX_Size3-Regular.e1951519.woff2 → KaTeX_Size3-Regular.e1951519f6f0596f7356.woff2} +0 -0
  121. package/build/static/media/{KaTeX_Size4-Regular.4ad7c7e8.ttf → KaTeX_Size4-Regular.4ad7c7e8bb8d10a34bb7.ttf} +0 -0
  122. package/build/static/media/{KaTeX_Size4-Regular.aeffd802.woff → KaTeX_Size4-Regular.aeffd8025cba3647f1a6.woff} +0 -0
  123. package/build/static/media/{KaTeX_Size4-Regular.e418bf25.woff2 → KaTeX_Size4-Regular.e418bf257af1052628d8.woff2} +0 -0
  124. package/build/static/media/{KaTeX_Typewriter-Regular.4c6b94fd.woff → KaTeX_Typewriter-Regular.4c6b94fd1d07f8beff7c.woff} +0 -0
  125. package/build/static/media/{KaTeX_Typewriter-Regular.c295e7f7.woff2 → KaTeX_Typewriter-Regular.c295e7f71970f03c0549.woff2} +0 -0
  126. package/build/static/media/{KaTeX_Typewriter-Regular.c5c02d76.ttf → KaTeX_Typewriter-Regular.c5c02d763c89380dcb4e.ttf} +0 -0
  127. package/build/static/media/{SourceCodePro-Bold.52ac8f30.ttf → SourceCodePro-Bold.52ac8f3034507f1d9e53.ttf} +0 -0
  128. package/build/static/media/{SourceCodePro-BoldItalic.05b61807.ttf → SourceCodePro-BoldItalic.05b618077343fbbd92b7.ttf} +0 -0
  129. package/build/static/media/{SourceCodePro-Italic.454577c2.ttf → SourceCodePro-Italic.454577c22304619db035.ttf} +0 -0
  130. package/build/static/media/{SourceCodePro-Regular.70cc7ff2.ttf → SourceCodePro-Regular.70cc7ff27245e82ad414.ttf} +0 -0
  131. package/build/static/media/{SourceCodePro-SemiBold.4d4c53c0.ttf → SourceCodePro-SemiBold.4d4c53c06b5bebed1cf3.ttf} +0 -0
  132. package/build/static/media/{SourceCodePro-SemiBoldItalic.2f5470bc.ttf → SourceCodePro-SemiBoldItalic.2f5470bc8b2cd27a5c4b.ttf} +0 -0
  133. package/build/static/media/{SourceSansPro-Bold.12e6acd2.ttf → SourceSansPro-Bold.12e6acd2589d00c9d0aa.ttf} +0 -0
  134. package/build/static/media/{SourceSansPro-BoldItalic.7c4f9b00.ttf → SourceSansPro-BoldItalic.7c4f9b00300acb82f0f6.ttf} +0 -0
  135. package/build/static/media/{SourceSansPro-Italic.3c01996d.ttf → SourceSansPro-Italic.3c01996d38a55834ddcb.ttf} +0 -0
  136. package/build/static/media/{SourceSansPro-Regular.efa76f83.ttf → SourceSansPro-Regular.efa76f8326aa5cee3bdd.ttf} +0 -0
  137. package/build/static/media/{SourceSansPro-SemiBold.43cc81b4.ttf → SourceSansPro-SemiBold.43cc81b496222dc9ce3c.ttf} +0 -0
  138. package/build/static/media/{SourceSansPro-SemiBoldItalic.c30987e2.ttf → SourceSansPro-SemiBoldItalic.c30987e28fc21daba1ae.ttf} +0 -0
  139. package/build/static/media/{SourceSerifPro-Bold.bada4fe1.ttf → SourceSerifPro-Bold.bada4fe17051c992f22f.ttf} +0 -0
  140. package/build/static/media/{SourceSerifPro-BoldItalic.9f9b1eb2.ttf → SourceSerifPro-BoldItalic.9f9b1eb2d82e26bb2f4a.ttf} +0 -0
  141. package/build/static/media/{SourceSerifPro-Italic.90931d6a.ttf → SourceSerifPro-Italic.90931d6ad253cd8de8e4.ttf} +0 -0
  142. package/build/static/media/{SourceSerifPro-Regular.6f22301c.ttf → SourceSerifPro-Regular.6f22301c30206f4bad62.ttf} +0 -0
  143. package/build/static/media/{SourceSerifPro-SemiBold.b27cb117.ttf → SourceSerifPro-SemiBold.b27cb117978bab2c80a3.ttf} +0 -0
  144. package/build/static/media/{SourceSerifPro-SemiBoldItalic.1266f2c1.ttf → SourceSerifPro-SemiBoldItalic.1266f2c17835efdcff7b.ttf} +0 -0
  145. package/build/static/media/{balloon-0.0e6e96ec.png → balloon-0.0e6e96ece0ea0719d6b6.png} +0 -0
  146. package/build/static/media/{balloon-1.a503c271.png → balloon-1.a503c271109e9a0fdd2d.png} +0 -0
  147. package/build/static/media/{balloon-2.872250f3.png → balloon-2.872250f3bf3a8965d655.png} +0 -0
  148. package/build/static/media/{balloon-3.e772fafd.png → balloon-3.e772fafd3bfc55fb439b.png} +0 -0
  149. package/build/static/media/{balloon-4.1a741624.png → balloon-4.1a74162473d81c9cb9ee.png} +0 -0
  150. package/build/static/media/{balloon-5.edb75c74.png → balloon-5.edb75c74c54165b29856.png} +0 -0
  151. package/build/static/media/{fireworks.0906f02e.gif → fireworks.0906f02ea43f1018a6d2.gif} +0 -0
  152. package/build/static/media/{flake-0.beded754.png → flake-0.beded754e8024c73d9d2.png} +0 -0
  153. package/build/static/media/{flake-1.8077dc15.png → flake-1.8077dc154e0bf900aa73.png} +0 -0
  154. package/build/static/media/{flake-2.e3f07d06.png → flake-2.e3f07d06933dd0e84c24.png} +0 -0
  155. package/build/static/media/{icon_running.de1119da.gif → icon_running.de1119daebe465fa5263.gif} +0 -0
  156. package/build/static/media/index.09797f5e19b3c0491904.cjs +1 -0
  157. package/build/static/media/index.1e3d64b0fcde879f0060.cjs +1 -0
  158. package/build/static/media/index.294a0edb7af7d19b781b.cjs +1 -0
  159. package/build/static/media/index.85823dd8655ed4119d0c.cjs +1 -0
  160. package/build/static/media/index.b599194a631d76b49328.cjs +1 -0
  161. package/package.json +12 -11
  162. package/build/static/css/6.69790b96.chunk.css +0 -1
  163. package/build/static/css/7.3d0f8b8b.chunk.css +0 -1
  164. package/build/static/css/9.f71f4f0d.chunk.css +0 -1
  165. package/build/static/css/main.7bc75681.chunk.css +0 -1
  166. package/build/static/js/0.1470a040.chunk.js +0 -1
  167. package/build/static/js/1.75536554.chunk.js +0 -1
  168. package/build/static/js/10.e9d08ce6.chunk.js +0 -1
  169. package/build/static/js/11.245d6c33.chunk.js +0 -9
  170. package/build/static/js/12.a31ecc8c.chunk.js +0 -17
  171. package/build/static/js/13.6a2e32ae.chunk.js +0 -1
  172. package/build/static/js/14.1655f4db.chunk.js +0 -1
  173. package/build/static/js/15.b28e3a9f.chunk.js +0 -2
  174. package/build/static/js/16.4002de21.chunk.js +0 -1
  175. package/build/static/js/17.f01379ea.chunk.js +0 -1
  176. package/build/static/js/18.b32ef4e7.chunk.js +0 -2
  177. package/build/static/js/19.757ce6cd.chunk.js +0 -1
  178. package/build/static/js/2.90589c59.chunk.js +0 -2
  179. package/build/static/js/20.06333e7b.chunk.js +0 -1
  180. package/build/static/js/21.3fab05ae.chunk.js +0 -5
  181. package/build/static/js/22.a1775ac4.chunk.js +0 -1
  182. package/build/static/js/23.fd21f92a.chunk.js +0 -1
  183. package/build/static/js/24.50f424ba.chunk.js +0 -5
  184. package/build/static/js/25.3855f89c.chunk.js +0 -1
  185. package/build/static/js/26.5f51a172.chunk.js +0 -1
  186. package/build/static/js/27.f075da8f.chunk.js +0 -1
  187. package/build/static/js/28.e76203d9.chunk.js +0 -5
  188. package/build/static/js/29.12291bff.chunk.js +0 -1
  189. package/build/static/js/3.8dacc9e7.chunk.js +0 -1
  190. package/build/static/js/30.9780f1e6.chunk.js +0 -1
  191. package/build/static/js/31.622e28f6.chunk.js +0 -1
  192. package/build/static/js/32.44bddfd2.chunk.js +0 -1
  193. package/build/static/js/33.e3480cb9.chunk.js +0 -1
  194. package/build/static/js/34.4e913e44.chunk.js +0 -1
  195. package/build/static/js/35.d8c3a90e.chunk.js +0 -1
  196. package/build/static/js/36.d7336b9b.chunk.js +0 -1
  197. package/build/static/js/37.b06f1532.chunk.js +0 -1
  198. package/build/static/js/38.2303d913.chunk.js +0 -1
  199. package/build/static/js/39.9cb4bae4.chunk.js +0 -1
  200. package/build/static/js/40.b8f90b9a.chunk.js +0 -1
  201. package/build/static/js/41.bb169dbf.chunk.js +0 -1
  202. package/build/static/js/42.e8639ee2.chunk.js +0 -1
  203. package/build/static/js/43.b5e07f4c.chunk.js +0 -1
  204. package/build/static/js/44.0206e0dc.chunk.js +0 -1
  205. package/build/static/js/45.db4595ee.chunk.js +0 -1
  206. package/build/static/js/46.f534e5a2.chunk.js +0 -1
  207. package/build/static/js/47.89ae0b12.chunk.js +0 -1
  208. package/build/static/js/48.86b245a1.chunk.js +0 -1
  209. package/build/static/js/49.1db19a37.chunk.js +0 -1
  210. package/build/static/js/6.9c8c6dae.chunk.js +0 -2
  211. package/build/static/js/7.e8b702b0.chunk.js +0 -2
  212. package/build/static/js/8.348fb43a.chunk.js +0 -2
  213. package/build/static/js/8.348fb43a.chunk.js.LICENSE.txt +0 -1
  214. package/build/static/js/9.d99eed24.chunk.js +0 -2
  215. package/build/static/js/main.31e91b88.chunk.js +0 -27
  216. package/build/static/js/runtime-main.e5a1f36a.js +0 -1
@@ -0,0 +1,45 @@
1
+ /*!
2
+ * @toast-ui/editor
3
+ * @version 3.2.1 | Thu Sep 29 2022
4
+ * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
5
+ * @license MIT
6
+ */
7
+
8
+ /*! *****************************************************************************
9
+ Copyright (c) Microsoft Corporation.
10
+
11
+ Permission to use, copy, modify, and/or distribute this software for any
12
+ purpose with or without fee is hereby granted.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
15
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
16
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
17
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
18
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
19
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20
+ PERFORMANCE OF THIS SOFTWARE.
21
+ ***************************************************************************** */
22
+
23
+ /*! *****************************************************************************
24
+ Copyright (c) Microsoft Corporation.
25
+
26
+ Permission to use, copy, modify, and/or distribute this software for any
27
+ purpose with or without fee is hereby granted.
28
+
29
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
30
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
31
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
32
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
33
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
34
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
35
+ PERFORMANCE OF THIS SOFTWARE.
36
+ ***************************************************************************** */
37
+
38
+ /*! @license DOMPurify 2.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.3.3/LICENSE */
39
+
40
+ /**
41
+ * @toast-ui/editor
42
+ * @version 3.2.1 | Thu Sep 29 2022
43
+ * @author NHN Cloud FE Development Lab <dl_javascript@nhn.com>
44
+ * @license MIT
45
+ */
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[3392],{23392:(t,e,i)=>{i.r(e),i.d(e,{default:()=>a});var s=i(5057),l=i(85493),n=i(92445),r=i(46540),d=i(22199),o=i(13294),u=i(96266);const a=function(t){const{disabled:e,element:i,widgetMgr:a,width:c}=t,h={width:c},{getBaseUriParts:b}=(0,s.useContext)(l.Z),k=(0,o.v_)();return(0,u.jsx)("div",{className:"row-widget stDownloadButton",style:h,children:(0,u.jsx)(n.uD,{help:i.help,children:(0,u.jsx)(n.ZP,{kind:n.hY.SECONDARY,size:n.$u.SMALL,disabled:e,onClick:()=>{if(a.setTriggerValue(i,{fromUi:!0}),i.url.startsWith("/media"))return void(0,o.uP)(k,i.url);const t=document.createElement("a"),e=`${(0,d.Bz)(i.url,b())}?title=${encodeURIComponent(document.title)}`;t.setAttribute("href",e),t.setAttribute("target","_blank"),t.click()},fluidWidth:i.useContainerWidth||!1,children:(0,u.jsx)(r.Z,{source:i.label,allowHTML:!1,isButton:!0})})})})}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[3683],{97400:(e,t,n)=>{n.r(t),n.d(t,{default:()=>be});var i=n(5057),o=n(66751),r=n(55783),l=n(27179),a=n(56846),s=n(62658),d=n(32291),u=n(34422);const c=class{constructor(e){this.editedCells=new Map,this.addedRows=[],this.deletedRows=[],this.numRows=0,this.numRows=e}toJson(e){const t=new Map;e.forEach((e=>{t.set(e.indexNumber,e)}));const n={edited_cells:{},added_rows:[],deleted_rows:[]};this.editedCells.forEach(((e,i,o)=>{e.forEach(((e,o,r)=>{const l=t.get(o);l&&(n.edited_cells[`${i}:${o}`]=l.getCellValue(e))}))})),this.addedRows.forEach((e=>{const i={};e.forEach(((e,n,o)=>{const r=t.get(n);if(r){const t=r.getCellValue(e);(0,u.bb)(t)&&(i[n]=t)}})),n.added_rows.push(i)})),n.deleted_rows=this.deletedRows;return JSON.stringify(n,((e,t)=>void 0===t?null:t))}isAddedRow(e){return e>=this.numRows}getCell(e,t){if(this.isAddedRow(t))return this.addedRows[t-this.numRows].get(e);const n=this.editedCells.get(t);return void 0!==n?n.get(e):void 0}setCell(e,t,n){if(this.isAddedRow(t)){if(t-this.numRows>=this.addedRows.length)return;this.addedRows[t-this.numRows].set(e,n)}else{void 0===this.editedCells.get(t)&&this.editedCells.set(t,new Map);this.editedCells.get(t).set(e,n)}}addRow(e){this.addedRows.push(e)}deleteRows(e){e.sort(((e,t)=>t-e)).forEach((e=>{this.deleteRow(e)}))}deleteRow(e){(0,u.le)(e)||e<0||(this.isAddedRow(e)?this.addedRows.splice(e-this.numRows,1):(this.deletedRows.includes(e)||(this.deletedRows.push(e),this.deletedRows=this.deletedRows.sort(((e,t)=>e-t))),this.editedCells.delete(e)))}getOriginalRowIndex(e){let t=e;for(let n=0;n<this.deletedRows.length&&!(this.deletedRows[n]>t);n++)t+=1;return t}getNumRows(){return this.numRows+this.addedRows.length-this.deletedRows.length}};var h=n(59990),g=n(31476);const m=function(){const e=(0,g.u)();return{accentColor:e.colors.primary,accentFg:e.colors.white,accentLight:(0,h.DZ)(e.colors.primary,.9),borderColor:e.colors.fadedText05,horizontalBorderColor:e.colors.fadedText05,fontFamily:e.genericFonts.bodyFont,bgSearchResult:(0,h.DZ)(e.colors.primary,.9),bgIconHeader:e.colors.fadedText60,fgIconHeader:e.colors.white,bgHeader:e.colors.bgMix,bgHeaderHasFocus:e.colors.secondaryBg,bgHeaderHovered:e.colors.bgMix,textHeader:e.colors.fadedText60,textHeaderSelected:e.colors.white,textGroupHeader:e.colors.fadedText60,headerFontStyle:`${e.fontSizes.sm}`,baseFontStyle:e.fontSizes.sm,editorFontSize:e.fontSizes.sm,textDark:e.colors.bodyText,textMedium:(0,h.DZ)(e.colors.bodyText,.2),textLight:e.colors.fadedText40,textBubble:e.colors.fadedText60,bgCell:e.colors.bgColor,bgCellMedium:e.colors.bgColor,cellHorizontalPadding:8,cellVerticalPadding:3,bgBubble:e.colors.secondaryBg,bgBubbleSelected:e.colors.secondaryBg,linkColor:e.colors.linkText,drilldownBorder:e.colors.darkenedBgMix25,tableBorderRadius:e.radii.md}};var f=n(65873),b=n(52801),p=n(89163),w=n(61918),y=n.n(w);function C(e,t=""){return e=`\u26a0\ufe0f ${e}`,{kind:o.p6.Text,readonly:!0,allowOverlay:!0,data:e+(t?`\n\n${t}\n`:""),displayData:e,isError:!0}}function x(e){return e.hasOwnProperty("isError")&&e.isError}function v(e,t){const n=t?"faded":"normal";return{kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,readonly:e,style:n}}function R(e){return{id:e.id,title:e.title,hasMenu:!1,themeOverride:e.themeOverride,...e.isStretched&&{grow:e.isIndex?1:3},...e.width&&{width:e.width}}}function M(e,t){return(0,u.le)(e)?t||{}:(0,u.le)(t)?e||{}:(0,f.merge)(e,t)}function E(e){if((0,u.le)(e))return[];if("number"===typeof e||"boolean"===typeof e)return[e];if("string"===typeof e){if(""===e)return[];if(!e.trim().startsWith("[")||!e.trim().endsWith("]"))return e.split(",");try{return JSON.parse(e)}catch(t){return[e]}}try{const t=JSON.parse(JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t)));return(0,f.isArray)(t)?t.map((e=>["string","number","boolean","null"].includes(typeof e)?e:k(e))):[k(t)]}catch(t){return[k(e)]}}function k(e){try{try{return(0,f.toString)(e)}catch(t){return JSON.stringify(e,((e,t)=>"bigint"===typeof t?Number(t):t))}}catch(t){return`[${typeof e}]`}}function N(e,t=4,n=!1){return!Number.isNaN(e)&&Number.isFinite(e)?(0===t&&(e=Math.round(e)),y()(e).format(n?`0,0.${"0".repeat(t)}`:`0,0.[${"0".repeat(t)}]`)):""}function T(e){const t={kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!0,style:e.isIndex?"faded":"normal"};return{...e,kind:"object",sortMode:"default",isEditable:!1,getCell(e){try{const n=(0,u.bb)(e)?k(e):null,i=(0,u.bb)(n)?n:"";return{...t,data:n,displayData:i,isMissingValue:(0,u.le)(e)}}catch(n){return C(k(e),`The value cannot be interpreted as a string. Error: ${n}`)}},getCellValue:e=>void 0===e.data?null:e.data}}T.isEditableType=!1;const S=T;function O(e){const t={kind:o.p6.Text,data:"",displayData:"",allowOverlay:!0,contentAlignment:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"};return{...e,kind:"text",sortMode:"default",getCell(e){try{const n=(0,u.bb)(e)?k(e):null,i=(0,u.bb)(n)?n:"";return{...t,isMissingValue:(0,u.le)(n),data:n,displayData:i}}catch(n){return C("Incompatible value",`The value cannot be interpreted as string. Error: ${n}`)}},getCellValue:e=>void 0===e.data?null:e.data}}O.isEditableType=!0;const A=O,D=["true","t","yes","y","on","1"],H=["false","f","no","n","off","0"];function I(e){const t={kind:o.p6.Boolean,data:!1,allowOverlay:!1,contentAlign:e.contentAlignment,readonly:!e.isEditable,style:e.isIndex?"faded":"normal"};return{...e,kind:"boolean",sortMode:"default",getCell(e){let n=null;if((0,u.bb)(e))if("boolean"===typeof e)n=e;else{const t=String(e).toLowerCase().trim();if(""===t)n=null;else if(D.includes(t))n=!0;else{if(!H.includes(t))return C(k(e),"The value cannot be interpreted as boolean.");n=!1}}return{...t,data:n}},getCellValue:e=>void 0===e.data?null:e.data}}I.isEditableType=!0;const z=I;function V(e){const t=M({options:"bool"===p.fu.getTypeName(e.arrowType)?["true","false"]:[]},e.columnTypeMetadata),n={kind:o.p6.Custom,allowOverlay:e.isEditable,copyData:"",contentAlign:e.contentAlignment,data:{kind:"dropdown-cell",allowedValues:["",...t.options.filter((e=>""!==e))],value:"",readonly:!e.isEditable}};return{...e,kind:"categorical",sortMode:"default",getCell(e){let t="";return(0,u.bb)(e)&&(t=k(e)),n.data.allowedValues.includes(t)?{...n,isMissingValue:""===t,copyData:t,data:{...n.data,value:t}}:C(k(t),"The value is not part of the allowed options.")},getCellValue(e){var t,n,i;return void 0===(null===(t=e.data)||void 0===t?void 0:t.value)||""===(null===(n=e.data)||void 0===n?void 0:n.value)?null:null===(i=e.data)||void 0===i?void 0:i.value}}}V.isEditableType=!0;const $=V;function W(e){const t={kind:o.p6.Bubble,data:[],allowOverlay:!0,contentAlign:e.contentAlignment,style:e.isIndex?"faded":"normal"};return{...e,kind:"list",sortMode:"default",isEditable:!1,getCell:e=>({...t,data:E(e),isMissingValue:(0,u.le)(e)}),getCellValue:e=>void 0===e.data?null:e.data}}W.isEditableType=!1;const L=W;function B(e){const t=p.fu.getTypeName(e.arrowType),n=M({precision:t.startsWith("int")||"range"===t||t.startsWith("uint")?0:void 0,min:t.startsWith("uint")?0:void 0},e.columnTypeMetadata),i=(0,u.le)(n.min)||n.min<0,r=(0,u.bb)(n.precision)?n.precision:void 0,l={kind:o.p6.Number,data:void 0,displayData:"",readonly:!e.isEditable,allowOverlay:!0,contentAlign:e.contentAlignment||"right",style:e.isIndex?"faded":"normal",allowNegative:i,fixedDecimals:r};return{...e,kind:"number",sortMode:"smart",getCell(e){let t=function(e){if((0,u.le)(e))return null;if((0,f.isArray)(e))return NaN;if("string"===typeof e){if(0===e.trim().length)return null;try{const t=y().unformat(e.trim());if((0,u.bb)(t))return t}catch(t){}}else if(e instanceof Int32Array)return Number(e[0]);return Number(e)}(e);if((0,u.bb)(t)){if(Number.isNaN(t))return C(k(e),"The value cannot be interpreted as a number.");(0,u.bb)(n.precision)&&(t=0===n.precision?Math.trunc(t):Math.trunc(t*10**n.precision)/10**n.precision),(0,u.bb)(n.min)&&(t=Math.max(t,n.min)),(0,u.bb)(n.max)&&(t=Math.min(t,n.max))}return{...l,data:t,displayData:(0,u.bb)(t)?N(t):"",isMissingValue:(0,u.le)(t)}},getCellValue:e=>void 0===e.data?null:e.data}}B.isEditableType=!0;const F=B,_=new Map(Object.entries({object:S,text:A,boolean:z,categorical:$,list:L,number:F}));function j(e,t,n){const i=new RegExp(`${e}[,\\s].*{(?:[^}]*[\\s;]{1})?${t}:\\s*([^;}]+)[;]?.*}`,"gm");n=n.replace(/{/g," {");const o=i.exec(n);if(o)return o[1].trim()}function P(e){return e.replace(/(\r\n|\n|\r)/gm," ")}function J(e,t){const n=e.types.index[t],i=e.indexNames[t];let o=!0;return"range"===p.fu.getTypeName(n)&&(o=!1),{id:`index-${t}`,isEditable:o,title:i,arrowType:n,isIndex:!0,isHidden:!1}}function Y(e,t){const n=e.columns[0][t];let i,o=e.types.data[t];if((0,u.le)(o)&&(o={meta:null,numpy_type:"object",pandas_type:"object"}),"categorical"===p.fu.getTypeName(o)){const n=e.getCategoricalOptions(t);(0,u.bb)(n)&&(i={options:["",...n.filter((e=>""!==e))]})}return{id:`column-${n}-${t}`,isEditable:!0,title:n,arrowType:o,columnTypeMetadata:i,isIndex:!1,isHidden:!1}}function Z(e,t,n){let i;if(i="object"===e.kind?e.getCell((0,u.bb)(t.content)?P(p.fu.format(t.content,t.contentType,t.field)):null):e.getCell(t.content),x(i))return i;if((0,u.bb)(t.displayContent)){const e=P(t.displayContent);(i.kind===o.p6.Text||i.kind===o.p6.Number)&&(i={...i,displayData:e})}return n&&t.cssId&&(i=function(e,t,n){const i={},o=j(t,"color",n);o&&(i.textDark=o);const r=j(t,"background-color",n);return r&&(i.bgCell=r),i?{...e,themeOverride:i}:e}(i,t.cssId,n)),i}const U="index",G="col:";function X(e,t){var n;if(!t)return e;let i;return t.has(e.title)?i=t.get(e.title):t.has(`${G}${e.indexNumber}`)?i=t.get(`${G}${e.indexNumber}`):e.isIndex&&t.has(U)&&(i=t.get(U)),i?(0,f.merge)({...e},{title:i.title,width:i.width,customType:null===(n=i.type)||void 0===n?void 0:n.toLowerCase().trim(),isEditable:i.editable,isHidden:i.hidden,columnTypeMetadata:i.metadata,contentAlignment:i.alignment}):e}function K(e){let t;return(0,u.bb)(e.customType)&&(_.has(e.customType)?t=_.get(e.customType):(0,b.KE)(`Unknown column type configured in column configuration: ${e.customType}`)),(0,u.le)(t)&&(t=function(e){let t=e?p.fu.getTypeName(e):null;return t?(t=t.toLowerCase().trim(),["unicode","empty"].includes(t)?A:["object","date","time","datetime","datetimetz","decimal","bytes"].includes(t)?S:["bool"].includes(t)?z:["int8","int16","int32","int64","uint8","uint16","uint32","uint64","float16","float32","float64","float96","float128","range"].includes(t)?F:"categorical"===t?$:t.startsWith("list")?L:S):S}(e.arrowType)),t}const q=function(e,t,n,o,r){const l=function(e){if(!e.columns)return new Map;try{return new Map(Object.entries(JSON.parse(e.columns)))}catch(t){return(0,b.H)(t),new Map}}(e),a=e.useContainerWidth||(0,u.bb)(e.width)&&e.width>0,s=function(e){var t,n,i,o,r,l;const a=[],s=null!==(t=null===(n=e.types)||void 0===n||null===(i=n.index)||void 0===i?void 0:i.length)&&void 0!==t?t:0,d=null!==(o=null===(r=e.columns)||void 0===r||null===(l=r[0])||void 0===l?void 0:l.length)&&void 0!==o?o:0;if(0===s&&0===d)return a.push({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0}),a;for(let u=0;u<s;u++){const t={...J(e,u),indexNumber:u};a.push(t)}for(let u=0;u<d;u++){const t={...Y(e,u),indexNumber:u+s};a.push(t)}return a}(t).map((t=>{let n={...t,...X(t,l),isStretched:a};const i=K(n);return(e.editingMode===d.Eh.EditingMode.READ_ONLY||o||!1===i.isEditableType)&&(n={...n,isEditable:!1}),i(n)})).filter((e=>!e.isHidden)),c=s.length>0?s:[S({id:"empty-index",title:"",indexNumber:0,isEditable:!1,isIndex:!0})],h=i.useCallback((([e,i])=>{if(e>c.length-1)return C("Column index out of bounds.","This should never happen. Please report this bug.");if(i>n-1)return C("Row index out of bounds.","This should never happen. Please report this bug.");const o=c[e],l=o.indexNumber,a=r.current.getOriginalRowIndex(i);if(o.isEditable||r.current.isAddedRow(a)){const e=r.current.getCell(l,a);if(void 0!==e)return e}try{return Z(o,t.getCell(a+1,l),t.cssStyles)}catch(s){return(0,b.H)(s),C("Error during cell creation.",`This should never happen. Please report this bug. \nError: ${s}`)}}),[c,n,t,r]);return{columns:c,getCellContent:h}},Q=35,ee=52,te=2*Q+3,ne=400;const ie=function(e,t,n,o,r){let l,a=function(e){return Math.max(e*Q+1+2,te)}(t+1+(e.editingMode===d.Eh.EditingMode.DYNAMIC?1:0)),s=Math.min(a,ne);e.height&&(s=Math.max(e.height,te),a=Math.max(e.height,a)),o&&(s=Math.min(s,o),a=Math.min(a,o),e.height||(s=a));let c=n;e.useContainerWidth?l=n:e.width&&(l=Math.min(Math.max(e.width,ee),n),c=Math.min(Math.max(e.width,c),n));const[h,g]=i.useState({width:l||"100%",height:s});return i.useLayoutEffect((()=>{e.useContainerWidth&&"100%"===h.width&&g({width:n,height:h.height})}),[n]),i.useLayoutEffect((()=>{g({width:h.width,height:s})}),[t]),i.useLayoutEffect((()=>{g({width:l||"100%",height:h.height})}),[l]),i.useLayoutEffect((()=>{g({width:h.width,height:s})}),[s]),i.useLayoutEffect((()=>{if(r){const t=e.useContainerWidth||(0,u.bb)(e.width)&&e.width>0;g({width:t?c:"100%",height:a})}else g({width:l||"100%",height:s})}),[r]),{rowHeight:Q,minHeight:te,maxHeight:a,minWidth:ee,maxWidth:c,resizableSize:h,setResizableSize:g}};const oe=function(e,t,n,o,r,l,a){const s=i.useCallback((([t,i],l)=>{const s=e[t],d=s.indexNumber,u=n.current.getOriginalRowIndex(r(i)),c=o([t,i]),h=s.getCellValue(c),g=s.getCellValue(l);if(!x(c)&&g===h)return;const m=s.getCell(g);n.current.setCell(d,u,{...m,lastUpdated:performance.now()}),a()}),[e,n,r,o,a]),d=i.useCallback((()=>{if(t)return;const i=new Map;e.forEach((e=>{i.set(e.indexNumber,e.getCell(void 0))})),n.current.addRow(i),a(!1,!1)}),[e,n,t]),u=i.useCallback((i=>{var o;if(i.rows.length>0){if(t)return!0;const e=i.rows.toArray().map((e=>n.current.getOriginalRowIndex(r(e))));return n.current.deleteRows(e),a(!0),!1}if(null!==(o=i.current)&&void 0!==o&&o.range){const t=[],n=i.current.range;for(let i=n.y;i<n.y+n.height;i++)for(let o=n.x;o<n.x+n.width;o++){const n=e[o];n.isEditable&&(t.push({cell:[o,i]}),s([o,i],n.getCell(null)))}return t.length>0&&(a(),l(t)),!1}return!0}),[e,n,t,l,r,a]),c=i.useCallback(((i,s)=>{const[u,c]=i,h=[];for(let g=0;g<s.length;g++){const i=s[g];if(g+c>=n.current.getNumRows()){if(t)break;d()}for(let t=0;t<i.length;t++){const l=i[t],a=g+c,s=t+u;if(s>=e.length)break;const d=e[s];if(d.isEditable){const e=d.getCell(l);if(!x(e)){const t=d.indexNumber,i=n.current.getOriginalRowIndex(r(a)),l=d.getCellValue(o([s,a]));d.getCellValue(e)!==l&&(n.current.setCell(t,i,{...e,lastUpdated:performance.now()}),h.push({cell:[s,a]}))}}}h.length>0&&(a(),l(h))}return!1}),[e,n,t,r,o,d,a,l]);return{onCellEdited:s,onPaste:c,onRowAppended:d,onDelete:u}};const re=function(e){const[t,n]=(0,i.useState)((()=>new Map)),o=i.useCallback(((e,i,o,r)=>{e.id&&n(new Map(t).set(e.id,r))}),[t]);return{columns:e.map((e=>e.id&&t.has(e.id)&&void 0!==t.get(e.id)?{...e,width:t.get(e.id),grow:0}:e)),onColumnResize:o}};var le=n(33256);const ae=function(e,t,n){const[o,r]=i.useState(),{getCellContent:l,getOriginalIndex:a}=(0,le.fF)({columns:t.map((e=>R(e))),getCellContent:n,rows:e,sort:o}),s=function(e,t){return void 0===t?e:e.map((e=>e.id===t.column.id?{...e,title:"asc"===t.direction?`\u2191 ${e.title}`:`\u2193 ${e.title}`}:e))}(t,o),d=i.useCallback((e=>{let t="asc";const n=s[e];if(o&&o.column.id===n.id){if("asc"!==o.direction)return void r(void 0);t="desc"}r({column:R(n),direction:t,mode:n.sortMode})}),[o,s]);return{columns:s,sortColumn:d,getOriginalIndex:a,getCellContent:l}};const se=(0,n(45490).Z)("div",{target:"e17g77xh0"})((({theme:e})=>({position:"relative",display:"inline-block","& .glideDataEditor":{height:"100%",minWidth:"100%",borderRadius:e.radii.md},"& .dvn-scroller":{scrollbarWidth:"thin",overflowX:"overlay !important",overflowY:"overlay !important"}})),"");n(27235);var de=n(96266);const ue=50,ce=1e3,he=500,ge=100,me=15e4,fe=e=>{const{cell:t,theme:n}=e;return!!function(e){return e.hasOwnProperty("isMissingValue")&&e.isMissingValue}(t)&&((0,o.uN)({...e,theme:{...n,textDark:n.textLight,textMedium:n.textLight},spriteManager:{},hyperWrapping:!1},"None",t.contentAlign),!0)};const be=(0,s.Z)((function({element:e,data:t,width:n,height:s,disabled:h,widgetMgr:g,isFullScreen:f}){const b=i.useRef(null),p=i.useRef(null),w=(0,r.Bn)(),y=m(),[C,x]=i.useState(!0),[M,E]=i.useState({columns:o.EV.empty(),rows:o.EV.empty(),current:void 0}),k=i.useCallback((()=>{E({columns:o.EV.empty(),rows:o.EV.empty(),current:void 0})}),[]),N=i.useCallback((e=>{var t;null===(t=p.current)||void 0===t||t.updateCells(e)}),[]);(0,u.le)(e.editingMode)&&(e.editingMode=d.Eh.EditingMode.READ_ONLY);const{READ_ONLY:T,DYNAMIC:S}=d.Eh.EditingMode,O=t.dimensions,A=Math.max(0,O.rows-1),D=0===A&&!(e.editingMode===S&&O.dataColumns>0),H=A>me,I=i.useRef(new c(A)),[z,V]=i.useState(I.current.getNumRows());i.useEffect((()=>{I.current=new c(A),V(I.current.getNumRows())}),[A]);const $=i.useCallback((()=>{I.current=new c(A),V(I.current.getNumRows())}),[A]),{columns:W,getCellContent:L}=q(e,t,z,h,I),{columns:B,sortColumn:F,getOriginalIndex:_,getCellContent:j}=ae(A,W,L),P=i.useCallback(((t=!1,n=!0)=>{z!==I.current.getNumRows()&&V(I.current.getNumRows()),t&&k(),n&&(0,u.Ds)(ge,(()=>{const t=I.current.toJson(B);let n=g.getStringValue(e);void 0===n&&(n=new c(0).toJson([])),t!==n&&g.setStringValue(e,t,{fromUi:!0})}))()}),[g,e,z]),{onCellEdited:J,onPaste:Y,onRowAppended:Z,onDelete:U}=oe(B,e.editingMode!==S,I,j,_,N,P),{columns:G,onColumnResize:X}=re(B.map((e=>R(e)))),{rowHeight:K,minHeight:Q,maxHeight:ee,minWidth:te,maxWidth:ne,resizableSize:le,setResizableSize:be}=ie(e,z,n,s,f),pe=i.useCallback((([e,t])=>({...v(!0,!1),displayData:"empty",contentAlign:"center",allowOverlay:!1,themeOverride:{textDark:y.textLight},span:[0,Math.max(B.length-1,0)]})),[B]);return i.useEffect((()=>{const t=new a.Kz;return t.manageFormClearListener(g,e.formId,$),()=>{t.disconnect()}}),[]),(0,de.jsx)(se,{className:"stDataFrame",onBlur:()=>{C||k()},children:(0,de.jsx)(l.e,{"data-testid":"stDataFrameResizable",ref:b,defaultSize:le,style:{border:`1px solid ${y.borderColor}`,borderRadius:`${y.tableBorderRadius}`},minHeight:Q,maxHeight:ee,minWidth:te,maxWidth:ne,size:le,enable:{top:!1,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!0,bottomLeft:!1,topLeft:!1},grid:[1,K],snapGap:K/3,onResizeStop:(e,t,n,i)=>{b.current&&be({width:b.current.size.width,height:ee-b.current.size.height===3?b.current.size.height+3:b.current.size.height})},children:(0,de.jsx)(o.Nd,{className:"glideDataEditor",ref:p,columns:G,rows:D?1:z,minColumnWidth:ue,maxColumnWidth:ce,maxColumnAutoWidth:he,rowHeight:K,headerHeight:K,getCellContent:D?pe:j,onColumnResize:X,freezeColumns:D?0:B.filter((e=>e.isIndex)).length,smoothScrollX:!0,smoothScrollY:!0,verticalBorder:t=>!(t>=B.length&&(e.useContainerWidth||"100%"===le.width)),getCellsForSelection:!0,rowMarkers:"none",rangeSelect:"rect",columnSelect:"none",rowSelect:"none",keybindings:{search:!0,downFill:!0},onHeaderClicked:D||H?void 0:F,gridSelection:M,onGridSelectionChange:E,drawCell:fe,theme:y,onMouseMove:e=>{"out-of-bounds"===e.kind&&C?x(!1):"out-of-bounds"===e.kind||C||x(!0)},fixedShadowX:!0,fixedShadowY:!0,experimental:{scrollbarWidthOverride:1},customRenderers:w.customRenderers,onPaste:!1,...!D&&e.editingMode!==T&&!h&&{fillHandle:!0,onCellEdited:J,onPaste:Y,onDelete:U},...!D&&e.editingMode===S&&{trailingRowOptions:{sticky:!1,tint:!0},rowMarkerTheme:{bgCell:y.bgHeader,bgCellMedium:y.bgHeader},rowMarkers:"checkbox",rowSelectionMode:"auto",rowSelect:h?"none":"multi",onRowAppended:h?void 0:Z,onHeaderClicked:void 0}})})})}))}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[3975],{75427:(e,t,n)=>{n.d(t,{s:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12l4.58-4.59z"}))}));a.displayName="ChevronLeft"},13324:(e,t,n)=>{n.d(t,{U:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}))}));a.displayName="Clear"},44071:(e,t,n)=>{n.d(t,{n:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.createElement("path",{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}))}));a.displayName="CloudUpload"},15766:(e,t,n)=>{n.d(t,{j:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"}))}));a.displayName="Error"},31906:(e,t,n)=>{n.d(t,{h:()=>a});var r=n(34785),o=n(5057),i=n(95421),a=o.forwardRef((function(e,t){return o.createElement(i.D,(0,r.Z)({iconAttrs:{fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},iconVerticalAlign:"middle",iconViewBox:"0 0 24 24"},e,{ref:t}),o.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),o.createElement("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zM6 20V4h7v5h5v11H6z"}))}));a.displayName="InsertDriveFile"},25963:(e,t)=>{t.Z=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some((function(e){var t=e.trim().toLowerCase();return"."===t.charAt(0)?r.toLowerCase().endsWith(t):t.endsWith("/*")?i===t.replace(/\/.*$/,""):o===t}))}return!0}},71096:(e,t,n)=>{n.d(t,{ZP:()=>ae});var r=n(5057),o=n(55898),i=n.n(o);function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function c(e){try{l(r.throw(e))}catch(t){i(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(a,c)}l((r=r.apply(e,t||[])).next())}))}function c(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(c){i=[6,c],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}Object.create;function l(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(c){o={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create;var u=new Map([["aac","audio/aac"],["abw","application/x-abiword"],["arc","application/x-freearc"],["avif","image/avif"],["avi","video/x-msvideo"],["azw","application/vnd.amazon.ebook"],["bin","application/octet-stream"],["bmp","image/bmp"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["cda","application/x-cdf"],["csh","application/x-csh"],["css","text/css"],["csv","text/csv"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["eot","application/vnd.ms-fontobject"],["epub","application/epub+zip"],["gz","application/gzip"],["gif","image/gif"],["heic","image/heic"],["heif","image/heif"],["htm","text/html"],["html","text/html"],["ico","image/vnd.microsoft.icon"],["ics","text/calendar"],["jar","application/java-archive"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["js","text/javascript"],["json","application/json"],["jsonld","application/ld+json"],["mid","audio/midi"],["midi","audio/midi"],["mjs","text/javascript"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mpeg","video/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["opus","audio/opus"],["otf","font/otf"],["png","image/png"],["pdf","application/pdf"],["php","application/x-httpd-php"],["ppt","application/vnd.ms-powerpoint"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["rar","application/vnd.rar"],["rtf","application/rtf"],["sh","application/x-sh"],["svg","image/svg+xml"],["swf","application/x-shockwave-flash"],["tar","application/x-tar"],["tif","image/tiff"],["tiff","image/tiff"],["ts","video/mp2t"],["ttf","font/ttf"],["txt","text/plain"],["vsd","application/vnd.visio"],["wav","audio/wav"],["weba","audio/webm"],["webm","video/webm"],["webp","image/webp"],["woff","font/woff"],["woff2","font/woff2"],["xhtml","application/xhtml+xml"],["xls","application/vnd.ms-excel"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xml","application/xml"],["xul","application/vnd.mozilla.xul+xml"],["zip","application/zip"],["7z","application/x-7z-compressed"],["mkv","video/x-matroska"],["mov","video/quicktime"],["msg","application/vnd.ms-outlook"]]);function s(e,t){var n=function(e){var t=e.name;if(t&&-1!==t.lastIndexOf(".")&&!e.type){var n=t.split(".").pop().toLowerCase(),r=u.get(n);r&&Object.defineProperty(e,"type",{value:r,writable:!1,configurable:!1,enumerable:!0})}return e}(e);if("string"!==typeof n.path){var r=e.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof t?t:"string"===typeof r&&r.length>0?r:e.name,writable:!1,configurable:!1,enumerable:!0})}return n}var f=[".DS_Store","Thumbs.db"];function p(e){return"object"===typeof e&&null!==e}function d(e){return y(e.target.files).map((function(e){return s(e)}))}function v(e){return a(this,void 0,void 0,(function(){return c(this,(function(t){switch(t.label){case 0:return[4,Promise.all(e.map((function(e){return e.getFile()})))];case 1:return[2,t.sent().map((function(e){return s(e)}))]}}))}))}function m(e,t){return a(this,void 0,void 0,(function(){var n;return c(this,(function(r){switch(r.label){case 0:return null===e?[2,[]]:e.items?(n=y(e.items).filter((function(e){return"file"===e.kind})),"drop"!==t?[2,n]:[4,Promise.all(n.map(b))]):[3,2];case 1:return[2,g(h(r.sent()))];case 2:return[2,g(y(e.files).map((function(e){return s(e)})))]}}))}))}function g(e){return e.filter((function(e){return-1===f.indexOf(e.name)}))}function y(e){if(null===e)return[];for(var t=[],n=0;n<e.length;n++){var r=e[n];t.push(r)}return t}function b(e){if("function"!==typeof e.webkitGetAsEntry)return w(e);var t=e.webkitGetAsEntry();return t&&t.isDirectory?x(t):w(e)}function h(e){return e.reduce((function(e,t){return function(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(l(arguments[t]));return e}(e,Array.isArray(t)?h(t):[t])}),[])}function w(e){var t=e.getAsFile();if(!t)return Promise.reject(e+" is not a File");var n=s(t);return Promise.resolve(n)}function D(e){return a(this,void 0,void 0,(function(){return c(this,(function(t){return[2,e.isDirectory?x(e):O(e)]}))}))}function x(e){var t=e.createReader();return new Promise((function(e,n){var r=[];!function o(){var i=this;t.readEntries((function(t){return a(i,void 0,void 0,(function(){var i,a,l;return c(this,(function(c){switch(c.label){case 0:if(t.length)return[3,5];c.label=1;case 1:return c.trys.push([1,3,,4]),[4,Promise.all(r)];case 2:return i=c.sent(),e(i),[3,4];case 3:return a=c.sent(),n(a),[3,4];case 4:return[3,6];case 5:l=Promise.all(t.map(D)),r.push(l),o(),c.label=6;case 6:return[2]}}))}))}),(function(e){n(e)}))}()}))}function O(e){return a(this,void 0,void 0,(function(){return c(this,(function(t){return[2,new Promise((function(t,n){e.file((function(n){var r=s(n,e.fullPath);t(r)}),(function(e){n(e)}))}))]}))}))}var A=n(25963);function j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C(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 C(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var z="file-invalid-type",P="file-too-large",S="file-too-small",R="too-many-files",M=function(e){e=Array.isArray(e)&&1===e.length?e[0]:e;var t=Array.isArray(e)?"one of ".concat(e.join(", ")):e;return{code:z,message:"File type must be ".concat(t)}},T=function(e){return{code:P,message:"File is larger than ".concat(e," ").concat(1===e?"byte":"bytes")}},L=function(e){return{code:S,message:"File is smaller than ".concat(e," ").concat(1===e?"byte":"bytes")}},I={code:R,message:"Too many files"};function V(e,t){var n="application/x-moz-file"===e.type||(0,A.Z)(e,t);return[n,n?null:M(t)]}function B(e,t,n){if(H(e.size))if(H(t)&&H(n)){if(e.size>n)return[!1,T(n)];if(e.size<t)return[!1,L(t)]}else{if(H(t)&&e.size<t)return[!1,L(t)];if(H(n)&&e.size>n)return[!1,T(n)]}return[!0,null]}function H(e){return void 0!==e&&null!==e}function K(e){return"function"===typeof e.isPropagationStopped?e.isPropagationStopped():"undefined"!==typeof e.cancelBubble&&e.cancelBubble}function Z(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,(function(e){return"Files"===e||"application/x-moz-file"===e})):!!e.target&&!!e.target.files}function N(e){e.preventDefault()}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((function(t){return!K(e)&&t&&t.apply(void 0,[e].concat(r)),K(e)}))}}function U(e){return e="string"===typeof e?e.split(","):e,[{description:"everything",accept:Array.isArray(e)?e.filter((function(e){return"audio/*"===e||"video/*"===e||"image/*"===e||"text/*"===e||/\w+\/[-+.\w]+/g.test(e)})).reduce((function(e,t){return E(E({},e),{},F({},t,[]))}),{}):{}}]}var $=["children"],G=["open"],q=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],W=["refKey","onChange","onClick"];function Y(e){return function(e){if(Array.isArray(e))return X(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Q(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function J(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){c=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(c)throw o}}return i}(e,t)||Q(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 Q(e,t){if(e){if("string"===typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(e,t):void 0}}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){ne(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function re(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var oe=(0,r.forwardRef)((function(e,t){var n=e.children,o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=te(te({},ie),e),n=t.accept,o=t.disabled,i=t.getFilesFromEvent,a=t.maxSize,c=t.minSize,l=t.multiple,u=t.maxFiles,s=t.onDragEnter,f=t.onDragLeave,p=t.onDragOver,d=t.onDrop,v=t.onDropAccepted,m=t.onDropRejected,g=t.onFileDialogCancel,y=t.onFileDialogOpen,b=t.useFsAccessApi,h=t.preventDropOnDocument,w=t.noClick,D=t.noKeyboard,x=t.noDrag,O=t.noDragEventsBubbling,A=t.validator,j=(0,r.useMemo)((function(){return"function"===typeof y?y:ue}),[y]),E=(0,r.useMemo)((function(){return"function"===typeof g?g:ue}),[g]),F=(0,r.useRef)(null),C=(0,r.useRef)(null),z=J((0,r.useReducer)(le,ce),2),P=z[0],S=z[1],R=P.isFocused,M=P.isFileDialogActive,T=P.draggedFiles,L=(0,r.useRef)("undefined"!==typeof window&&window.isSecureContext&&b&&"showOpenFilePicker"in window),H=function(){!L.current&&M&&setTimeout((function(){C.current&&(C.current.files.length||(S({type:"closeDialog"}),E()))}),300)};(0,r.useEffect)((function(){return window.addEventListener("focus",H,!1),function(){window.removeEventListener("focus",H,!1)}}),[C,M,E,L]);var $=(0,r.useRef)([]),G=function(e){F.current&&F.current.contains(e.target)||(e.preventDefault(),$.current=[])};(0,r.useEffect)((function(){return h&&(document.addEventListener("dragover",N,!1),document.addEventListener("drop",G,!1)),function(){h&&(document.removeEventListener("dragover",N),document.removeEventListener("drop",G))}}),[F,h]);var Q=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),be(e),$.current=[].concat(Y($.current),[e.target]),Z(e)&&Promise.resolve(i(e)).then((function(t){K(e)&&!O||(S({draggedFiles:t,isDragActive:!0,type:"setDraggedFiles"}),s&&s(e))}))}),[i,s,O]),X=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),be(e);var t=Z(e);if(t&&e.dataTransfer)try{e.dataTransfer.dropEffect="copy"}catch(n){}return t&&p&&p(e),!1}),[p,O]),ee=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),be(e);var t=$.current.filter((function(e){return F.current&&F.current.contains(e)})),n=t.indexOf(e.target);-1!==n&&t.splice(n,1),$.current=t,t.length>0||(S({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),Z(e)&&f&&f(e))}),[F,f,O]),oe=(0,r.useCallback)((function(e,t){var r=[],o=[];e.forEach((function(e){var t=J(V(e,n),2),i=t[0],l=t[1],u=J(B(e,c,a),2),s=u[0],f=u[1],p=A?A(e):null;if(i&&s&&!p)r.push(e);else{var d=[l,f];p&&(d=d.concat(p)),o.push({file:e,errors:d.filter((function(e){return e}))})}})),(!l&&r.length>1||l&&u>=1&&r.length>u)&&(r.forEach((function(e){o.push({file:e,errors:[I]})})),r.splice(0)),S({acceptedFiles:r,fileRejections:o,type:"setFiles"}),d&&d(r,o,t),o.length>0&&m&&m(o,t),r.length>0&&v&&v(r,t)}),[S,l,n,c,a,u,d,v,m,A]),ae=(0,r.useCallback)((function(e){e.preventDefault(),e.persist(),be(e),$.current=[],Z(e)&&Promise.resolve(i(e)).then((function(t){K(e)&&!O||oe(t,e)})),S({type:"reset"})}),[i,oe,O]),se=(0,r.useCallback)((function(){if(L.current){S({type:"openDialog"}),j();var e={multiple:l,types:U(n)};window.showOpenFilePicker(e).then((function(e){return i(e)})).then((function(e){oe(e,null),S({type:"closeDialog"})})).catch((function(e){var t;(t=e)instanceof DOMException&&("AbortError"===t.name||t.code===t.ABORT_ERR)?(E(e),S({type:"closeDialog"})):function(e){return e instanceof DOMException&&("SecurityError"===e.name||e.code===e.SECURITY_ERR)}(e)&&(L.current=!1,C.current&&(C.current.value=null,C.current.click()))}))}else C.current&&(S({type:"openDialog"}),j(),C.current.value=null,C.current.click())}),[S,j,E,b,oe,n,l]),fe=(0,r.useCallback)((function(e){F.current&&F.current.isEqualNode(e.target)&&(" "!==e.key&&"Enter"!==e.key&&32!==e.keyCode&&13!==e.keyCode||(e.preventDefault(),se()))}),[F,se]),pe=(0,r.useCallback)((function(){S({type:"focus"})}),[]),de=(0,r.useCallback)((function(){S({type:"blur"})}),[]),ve=(0,r.useCallback)((function(){w||(!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return function(e){return-1!==e.indexOf("MSIE")||-1!==e.indexOf("Trident/")}(e)||function(e){return-1!==e.indexOf("Edge/")}(e)}()?se():setTimeout(se,0))}),[w,se]),me=function(e){return o?null:e},ge=function(e){return D?null:me(e)},ye=function(e){return x?null:me(e)},be=function(e){O&&e.stopPropagation()},he=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,n=void 0===t?"ref":t,r=e.role,i=e.onKeyDown,a=e.onFocus,c=e.onBlur,l=e.onClick,u=e.onDragEnter,s=e.onDragOver,f=e.onDragLeave,p=e.onDrop,d=re(e,q);return te(te(ne({onKeyDown:ge(_(i,fe)),onFocus:ge(_(a,pe)),onBlur:ge(_(c,de)),onClick:me(_(l,ve)),onDragEnter:ye(_(u,Q)),onDragOver:ye(_(s,X)),onDragLeave:ye(_(f,ee)),onDrop:ye(_(p,ae)),role:"string"===typeof r&&""!==r?r:"button"},n,F),o||D?{}:{tabIndex:0}),d)}}),[F,fe,pe,de,ve,Q,X,ee,ae,D,x,o]),we=(0,r.useCallback)((function(e){e.stopPropagation()}),[]),De=(0,r.useMemo)((function(){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.refKey,r=void 0===t?"ref":t,o=e.onChange,i=e.onClick,a=re(e,W);return te(te({},ne({accept:n,multiple:l,type:"file",style:{display:"none"},onChange:me(_(o,ae)),onClick:me(_(i,we)),tabIndex:-1},r,C)),a)}}),[C,n,l,ae,o]),xe=T.length,Oe=xe>0&&function(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles;return!(!i&&t.length>1||i&&a>=1&&t.length>a)&&t.every((function(e){var t=k(V(e,n),1)[0],i=k(B(e,r,o),1)[0];return t&&i}))}({files:T,accept:n,minSize:c,maxSize:a,multiple:l,maxFiles:u}),Ae=xe>0&&!Oe;return te(te({},P),{},{isDragAccept:Oe,isDragReject:Ae,isFocused:R&&!o,getRootProps:he,getInputProps:De,rootRef:F,inputRef:C,open:me(se)})}(re(e,$)),i=o.open,a=re(o,G);return(0,r.useImperativeHandle)(t,(function(){return{open:i}}),[i]),r.createElement(r.Fragment,null,n(te(te({},a),{},{open:i})))}));oe.displayName="Dropzone";var ie={disabled:!1,getFilesFromEvent:function(e){return a(this,void 0,void 0,(function(){return c(this,(function(t){return p(e)&&p(e.dataTransfer)?[2,m(e.dataTransfer,e.type)]:function(e){return p(e)&&p(e.target)}(e)?[2,d(e)]:Array.isArray(e)&&e.every((function(e){return"getFile"in e&&"function"===typeof e.getFile}))?[2,v(e)]:[2,[]]}))}))},maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!0};oe.defaultProps=ie,oe.propTypes={children:i().func,accept:i().oneOfType([i().string,i().arrayOf(i().string)]),multiple:i().bool,preventDropOnDocument:i().bool,noClick:i().bool,noKeyboard:i().bool,noDrag:i().bool,noDragEventsBubbling:i().bool,minSize:i().number,maxSize:i().number,maxFiles:i().number,disabled:i().bool,getFilesFromEvent:i().func,onFileDialogCancel:i().func,onFileDialogOpen:i().func,useFsAccessApi:i().bool,onDragEnter:i().func,onDragLeave:i().func,onDragOver:i().func,onDrop:i().func,onDropAccepted:i().func,onDropRejected:i().func,validator:i().func};const ae=oe;var ce={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function le(e,t){switch(t.type){case"focus":return te(te({},e),{},{isFocused:!0});case"blur":return te(te({},e),{},{isFocused:!1});case"openDialog":return te(te({},ce),{},{isFileDialogActive:!0});case"closeDialog":return te(te({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":var n=t.isDragActive,r=t.draggedFiles;return te(te({},e),{},{draggedFiles:r,isDragActive:n});case"setFiles":return te(te({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections});case"reset":return te({},ce);default:return e}}function ue(){}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[3977],{3977:(e,t,o)=>{o.r(t),o.d(t,{default:()=>W});var r=o(5057),i=o(31476),n=o(34422),a=o(80099),l=o(53381);function s(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?s(Object(o),!0).forEach((function(t){d(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):s(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function d(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function u(e){var t=e.$disabled,o=e.$checked,r=e.$isIndeterminate,i=e.$error,n=e.$isHovered,a=e.$isActive,l=e.$theme.colors;return t?o||r?l.tickFillDisabled:l.tickFill:i&&(r||o)?a?l.tickFillErrorSelectedHoverActive:n?l.tickFillErrorSelectedHover:l.tickFillErrorSelected:i?a?l.tickFillErrorHoverActive:n?l.tickFillErrorHover:l.tickFillError:r||o?a?l.tickFillSelectedHoverActive:n?l.tickFillSelectedHover:l.tickFillSelected:a?l.tickFillActive:n?l.tickFillHover:l.tickFill}function p(e){var t=e.$disabled,o=e.$theme.colors;return t?o.contentSecondary:o.contentPrimary}var h=(0,l.zo)("label",(function(e){var t=e.$disabled,o=e.$labelPlacement;return{flexDirection:"top"===o||"bottom"===o?"column":"row",display:"flex",alignItems:"top"===o||"bottom"===o?"center":"flex-start",cursor:t?"not-allowed":"pointer",userSelect:"none"}}));h.displayName="Root",h.displayName="Root";var m=(0,l.zo)("span",(function(e){var t=e.$checked,o=e.$disabled,r=e.$error,i=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.sizing,s=n.animation,c=o?n.colors.tickMarkFillDisabled:r?n.colors.tickMarkFillError:n.colors.tickMarkFill,d=encodeURIComponent('\n <svg width="14" height="4" viewBox="0 0 14 4" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M14 0.5H0V3.5H14V0.5Z" fill="'.concat(c,'"/>\n </svg>\n ')),p=encodeURIComponent('\n <svg width="17" height="13" viewBox="0 0 17 13" fill="none" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.50002 12.6L0.400024 6.60002L2.60002 4.40002L6.50002 8.40002L13.9 0.900024L16.1 3.10002L6.50002 12.6Z" fill="'.concat(c,'"/>\n </svg>\n ')),h=n.borders.checkboxBorderRadius,m=function(e){var t=e.$disabled,o=e.$checked,r=e.$error,i=e.$isIndeterminate,n=e.$theme,a=e.$isFocusVisible,l=n.colors;return t?l.tickFillDisabled:o||i?"transparent":r?l.borderNegative:a?l.borderSelected:l.tickBorder}(e);return{flex:"0 0 auto",transitionDuration:s.timing200,transitionTimingFunction:s.easeOutCurve,transitionProperty:"background-image, border-color, background-color",width:l.scale700,height:l.scale700,left:"4px",top:"4px",boxSizing:"border-box",borderLeftStyle:"solid",borderRightStyle:"solid",borderTopStyle:"solid",borderBottomStyle:"solid",borderLeftWidth:"3px",borderRightWidth:"3px",borderTopWidth:"3px",borderBottomWidth:"3px",borderLeftColor:m,borderRightColor:m,borderTopColor:m,borderBottomColor:m,borderTopLeftRadius:h,borderTopRightRadius:h,borderBottomRightRadius:h,borderBottomLeftRadius:h,outline:a&&t?"3px solid ".concat(n.colors.accent):"none",display:"inline-block",verticalAlign:"middle",backgroundImage:i?"url('data:image/svg+xml,".concat(d,"');"):t?"url('data:image/svg+xml,".concat(p,"');"):null,backgroundColor:u(e),backgroundRepeat:"no-repeat",backgroundPosition:"center",backgroundSize:"contain",marginTop:n.sizing.scale0,marginBottom:n.sizing.scale0,marginLeft:n.sizing.scale0,marginRight:n.sizing.scale0}}));m.displayName="Checkmark",m.displayName="Checkmark";var b=(0,l.zo)("div",(function(e){var t=e.$theme.typography;return c(c(c({verticalAlign:"middle"},function(e){var t,o=e.$labelPlacement,r=void 0===o?"":o,i=e.$theme,n=i.sizing.scale300;switch(r){case"top":t="Bottom";break;case"bottom":t="Top";break;case"left":t="Right";break;default:t="Left"}return"rtl"===i.direction&&"Left"===t?t="Right":"rtl"===i.direction&&"Right"===t&&(t="Left"),d({},"padding".concat(t),n)}(e)),{},{color:p(e)},t.LabelMedium),{},{lineHeight:"24px"})}));b.displayName="Label",b.displayName="Label";var f=(0,l.zo)("input",{opacity:0,width:0,height:0,overflow:"hidden",margin:0,padding:0,position:"absolute"});f.displayName="Input",f.displayName="Input";var g=(0,l.zo)("div",(function(e){var t=e.$theme.colors.toggleFill;return e.$disabled?t=e.$theme.colors.toggleFillDisabled:e.$checked&&e.$error?t=e.$theme.colors.tickFillErrorSelected:e.$checked&&(t=e.$theme.colors.toggleFillChecked),{backgroundColor:t,borderTopLeftRadius:"50%",borderTopRightRadius:"50%",borderBottomRightRadius:"50%",borderBottomLeftRadius:"50%",boxShadow:e.$isFocusVisible?"0 0 0 3px ".concat(e.$theme.colors.accent):e.$isHovered&&!e.$disabled?e.$theme.lighting.shadow500:e.$theme.lighting.shadow400,outline:"none",height:e.$theme.sizing.scale700,width:e.$theme.sizing.scale700,transform:e.$checked?"translateX(".concat("rtl"===e.$theme.direction?"-100%":"100%",")"):null,transition:"transform ".concat(e.$theme.animation.timing200)}}));g.displayName="Toggle",g.displayName="Toggle";var v=(0,l.zo)("div",(function(e){var t=e.$theme.colors.toggleTrackFill;return e.$disabled?t=e.$theme.colors.toggleTrackFillDisabled:e.$error&&e.$checked&&(t=e.$theme.colors.tickFillError),{alignItems:"center",backgroundColor:t,borderTopLeftRadius:"7px",borderTopRightRadius:"7px",borderBottomRightRadius:"7px",borderBottomLeftRadius:"7px",display:"flex",height:e.$theme.sizing.scale550,marginTop:e.$theme.sizing.scale200,marginBottom:e.$theme.sizing.scale100,marginLeft:e.$theme.sizing.scale200,marginRight:e.$theme.sizing.scale100,width:e.$theme.sizing.scale1000}}));v.displayName="ToggleTrack",v.displayName="ToggleTrack";var y=Object.freeze({default:"default",toggle:"toggle",toggle_round:"toggle"}),k=(Object.freeze({top:"top",right:"right",bottom:"bottom",left:"left"}),o(94253));function $(e){return $="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},w.apply(this,arguments)}function F(e,t){for(var o=0;o<t.length;o++){var r=t[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},x(e,t)}function R(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 o,r=C(e);if(t){var i=C(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return function(e,t){if(t&&("object"===$(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return T(e)}(this,o)}}function T(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function O(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var L=function(e){return e.stopPropagation()},S=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&&x(e,t)}(l,e);var t,o,i,n=R(l);function l(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);for(var t=arguments.length,o=new Array(t),r=0;r<t;r++)o[r]=arguments[r];return O(T(e=n.call.apply(n,[this].concat(o))),"state",{isFocused:e.props.autoFocus||!1,isFocusVisible:!1,isHovered:!1,isActive:!1}),O(T(e),"onMouseEnter",(function(t){e.setState({isHovered:!0}),e.props.onMouseEnter(t)})),O(T(e),"onMouseLeave",(function(t){e.setState({isHovered:!1,isActive:!1}),e.props.onMouseLeave(t)})),O(T(e),"onMouseDown",(function(t){e.setState({isActive:!0}),e.props.onMouseDown(t)})),O(T(e),"onMouseUp",(function(t){e.setState({isActive:!1}),e.props.onMouseUp(t)})),O(T(e),"onFocus",(function(t){e.setState({isFocused:!0}),e.props.onFocus(t),(0,k.E)(t)&&e.setState({isFocusVisible:!0})})),O(T(e),"onBlur",(function(t){e.setState({isFocused:!1}),e.props.onBlur(t),!1!==e.state.isFocusVisible&&e.setState({isFocusVisible:!1})})),e}return t=l,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autoFocus,o=e.inputRef;t&&o.current&&o.current.focus()}},{key:"render",value:function(){var e=this.props,t=e.overrides,o=void 0===t?{}:t,i=e.onChange,n=e.labelPlacement,l=void 0===n?this.props.checkmarkType===y.toggle?"left":"right":n,s=e.inputRef,c=e.isIndeterminate,d=e.error,u=e.disabled,p=e.value,k=e.name,$=e.type,F=e.checked,x=e.children,R=e.required,T=e.title,C=o.Root,O=o.Checkmark,S=o.Label,P=o.Input,j=o.Toggle,M=o.ToggleTrack,B=(0,a.XG)(C)||h,E=(0,a.XG)(O)||m,V=(0,a.XG)(S)||b,z=(0,a.XG)(P)||f,H=(0,a.XG)(j)||g,D=(0,a.XG)(M)||v,I={onChange:i,onFocus:this.onFocus,onBlur:this.onBlur},W={onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp},A={$isFocused:this.state.isFocused,$isFocusVisible:this.state.isFocusVisible,$isHovered:this.state.isHovered,$isActive:this.state.isActive,$error:d,$checked:F,$isIndeterminate:c,$required:R,$disabled:u,$value:p},U=x&&r.createElement(V,w({$labelPlacement:l},A,(0,a.ch)(S)),this.props.containsInteractiveElement?r.createElement("div",{onClick:function(e){return e.preventDefault()}},x):x);return r.createElement(B,w({"data-baseweb":"checkbox",title:T||null,$labelPlacement:l},A,W,(0,a.ch)(C)),("top"===l||"left"===l)&&U,this.props.checkmarkType===y.toggle?r.createElement(D,w({},A,(0,a.ch)(M)),r.createElement(H,w({},A,(0,a.ch)(j)))):r.createElement(E,w({},A,(0,a.ch)(O))),r.createElement(z,w({value:p,name:k,checked:F,required:R,"aria-label":this.props["aria-label"]||this.props.ariaLabel,"aria-checked":c?"mixed":F,"aria-describedby":this.props["aria-describedby"],"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":d||null,"aria-required":R||null,disabled:u,type:$,ref:s,onClick:L},A,I,(0,a.ch)(P))),("bottom"===l||"right"===l)&&U)}}])&&F(t.prototype,o),i&&F(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(r.Component);O(S,"defaultProps",{overrides:{},checked:!1,containsInteractiveElement:!1,disabled:!1,autoFocus:!1,isIndeterminate:!1,inputRef:r.createRef(),error:!1,type:"checkbox",checkmarkType:y.default,onChange:function(){},onMouseEnter:function(){},onMouseLeave:function(){},onMouseDown:function(){},onMouseUp:function(){},onFocus:function(){},onBlur:function(){}});const P=S;var j=o(59990),M=o(56846),B=o(8429),E=o(54840),V=o(86964),z=o(46540);const H=(0,o(45490).Z)("div",{target:"ek41t0m0"})((({theme:e,visibility:t})=>({display:t===n.Ws.Collapsed?"none":"flex",visibility:t===n.Ws.Hidden?"hidden":"visible",verticalAlign:"middle",flexDirection:"row",alignItems:"center"})),"");var D=o(96266);class I extends r.PureComponent{constructor(...e){super(...e),this.formClearHelper=new M.Kz,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setBoolValue(this.props.element,this.state.value,e)},this.onFormCleared=()=>{this.setState(((e,t)=>({value:t.element.default})),(()=>this.commitWidgetValue({fromUi:!0})))},this.onChange=e=>{const t=e.target.checked;this.setState({value:t},(()=>this.commitWidgetValue({fromUi:!0})))}}get initialValue(){const e=this.props.widgetMgr.getBoolValue(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{theme:t,width:o,element:r,disabled:i,widgetMgr:a}=this.props,{colors:l,spacing:s,radii:c}=t,d={width:o},u=i?l.fadedText40:l.bodyText;return this.formClearHelper.manageFormClearListener(a,r.formId,this.onFormCleared),(0,D.jsx)("div",{className:"row-widget stCheckbox",style:d,children:(0,D.jsx)(P,{checked:this.state.value,disabled:i,onChange:this.onChange,"aria-label":r.label,overrides:{Root:{style:({$isFocusVisible:e})=>({marginBottom:0,marginTop:0,paddingRight:s.twoThirdsSmFont,backgroundColor:e?l.darkenedBgMix25:"",display:"flex",alignItems:"start"})},Checkmark:{style:({$isFocusVisible:e,$checked:t})=>{const o=t&&!i?l.primary:l.fadedText40;return{outline:0,width:"1rem",height:"1rem",marginTop:"0.30rem",boxShadow:e&&t?`0 0 0 0.2rem ${(0,j.DZ)(l.primary,.5)}`:"",borderLeftWidth:"2px",borderRightWidth:"2px",borderTopWidth:"2px",borderBottomWidth:"2px",borderTopLeftRadius:c.md,borderTopRightRadius:c.md,borderBottomLeftRadius:c.md,borderBottomRightRadius:c.md,borderLeftColor:o,borderRightColor:o,borderTopColor:o,borderBottomColor:o}}},Label:{style:{color:u}}},children:(0,D.jsxs)(H,{visibility:(0,n.iF)(null===(e=r.labelVisibility)||void 0===e?void 0:e.value),children:[(0,D.jsx)(z.Z,{source:r.label,allowHTML:!1,isLabel:!0,isCheckbox:!0}),r.help&&(0,D.jsx)(V.Hp,{color:u,children:(0,D.jsx)(B.Z,{content:r.help,placement:E.ug.TOP_RIGHT})})]})})})}}const W=(0,i.b)(I)}}]);
@@ -0,0 +1 @@
1
+ (globalThis.webpackChunk_stlite_desktop=globalThis.webpackChunk_stlite_desktop||[]).push([[4210],{44210:(e,t,o)=>{"use strict";o.r(t),o.d(t,{default:()=>S});var r=o(5057),s=o(11226),i=o(78164),n=o.n(i),l=o(31476),a=o(56846),p=o(94861),u=o(87118),d=o(86964);const h=(0,o(45490).Z)("div",{target:"ede6r8z0"})((({theme:e})=>({"span[aria-disabled='true']":{background:e.colors.fadedText05}})),"");var c=o(8429),m=o(54840),g=o(95323),f=o(58269),v=o(34422),b=o(96266);class x extends r.PureComponent{constructor(...e){super(...e),this.formClearHelper=new a.Kz,this.state={value:this.initialValue},this.commitWidgetValue=e=>{this.props.widgetMgr.setIntArrayValue(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.props.element.maxSelections&&"select"===e.type&&this.state.value.length>=this.props.element.maxSelections||this.setState(this.generateNewState(e),(()=>{this.commitWidgetValue({fromUi:!0})}))},this.filterOptions=(e,t)=>{if(this.overMaxSelections())return[];const o=e.filter((e=>!this.state.value.includes(Number(e.value))));return(0,f.H)(o,t)}}overMaxSelections(){return this.props.element.maxSelections>0&&this.state.value.length>=this.props.element.maxSelections}getNoResultsMsg(){if(0===this.props.element.maxSelections)return"No results";const e=1!==this.props.element.maxSelections?"options":"option";return`You can only select up to ${this.props.element.maxSelections} ${e}. Remove an option first.`}get initialValue(){const e=this.props.widgetMgr.getIntArrayValue(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})}))}get valueFromState(){return this.state.value.map((e=>{const t=this.props.element.options[e];return{value:e.toString(),label:t}}))}generateNewState(e){const t=()=>{var t;const o=null===(t=e.option)||void 0===t?void 0:t.value;return parseInt(o,10)};switch(e.type){case"remove":return{value:n()(this.state.value,t())};case"clear":return{value:[]};case"select":return{value:this.state.value.concat([t()])};default:throw new Error(`State transition is unknown: ${e.type}`)}}render(){var e;const{element:t,theme:o,width:r,widgetMgr:i}=this.props,n={width:r},{options:l}=t,a=0===l.length||this.props.disabled,f=0===l.length?"No options to select.":"Choose an option",x=l.map(((e,t)=>({label:e,value:t.toString()})));this.formClearHelper.manageFormClearListener(i,t.formId,this.onFormCleared);const S=l.length>10;return(0,b.jsxs)("div",{className:"row-widget stMultiSelect",style:n,children:[(0,b.jsx)(d.ON,{label:t.label,disabled:a,labelVisibility:(0,v.iF)(null===(e=t.labelVisibility)||void 0===e?void 0:e.value),children:t.help&&(0,b.jsx)(d.dT,{children:(0,b.jsx)(c.Z,{content:t.help,placement:m.ug.TOP_RIGHT})})}),(0,b.jsx)(h,{children:(0,b.jsx)(p.Z,{options:x,labelKey:"label",valueKey:"value","aria-label":t.label,placeholder:f,type:u.wD.select,multi:!0,onChange:this.onChange,value:this.valueFromState,disabled:a,size:"compact",noResultsMsg:this.getNoResultsMsg(),filterOptions:this.filterOptions,closeOnSelect:!1,overrides:{IconsContainer:{style:()=>({paddingRight:".5rem"})},ControlContainer:{style:{borderLeftWidth:"1px",borderRightWidth:"1px",borderTopWidth:"1px",borderBottomWidth:"1px"}},Placeholder:{style:()=>({flex:"inherit"})},ValueContainer:{style:()=>({minHeight:"38.4px",paddingLeft:".5rem",paddingTop:0,paddingBottom:0,paddingRight:0})},ClearIcon:{props:{overrides:{Svg:{style:{color:o.colors.darkGray}}}}},SearchIcon:{style:{color:o.colors.darkGray}},Tag:{props:{overrides:{Root:{style:{borderTopLeftRadius:o.radii.md,borderTopRightRadius:o.radii.md,borderBottomRightRadius:o.radii.md,borderBottomLeftRadius:o.radii.md,fontSize:o.fontSizes.sm,paddingLeft:o.spacing.sm,marginLeft:0,marginRight:o.spacing.sm,height:"28px"}},Action:{style:{paddingLeft:0}},ActionIcon:{props:{overrides:{Svg:{style:{width:"10px",height:"10px"}}}}},Text:{style:{fontSize:o.fontSizes.md}}}}},MultiValue:{props:{overrides:{Root:{style:{fontSize:o.fontSizes.sm}}}}},Input:{props:{readOnly:s.tq&&!1===S?"readonly":null}},Dropdown:{component:g.s}}})})]})}}const S=(0,l.b)(x)},97247:(e,t,o)=>{var r=o(54305);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},89479:e=>{e.exports=function(e,t,o){for(var r=-1,s=null==e?0:e.length;++r<s;)if(o(t,e[r]))return!0;return!1}},3895:(e,t,o)=>{var r=o(98323),s=o(97247),i=o(89479),n=o(73470),l=o(74631),a=o(51565),p=200;e.exports=function(e,t,o,u){var d=-1,h=s,c=!0,m=e.length,g=[],f=t.length;if(!m)return g;o&&(t=n(t,l(o))),u?(h=i,c=!1):t.length>=p&&(h=a,c=!1,t=new r(t));e:for(;++d<m;){var v=e[d],b=null==o?v:o(v);if(v=u||0!==v?v:0,c&&b===b){for(var x=f;x--;)if(t[x]===b)continue e;g.push(v)}else h(t,b,u)||g.push(v)}return g}},60238:e=>{e.exports=function(e,t,o,r){for(var s=e.length,i=o+(r?1:-1);r?i--:++i<s;)if(t(e[i],i,e))return i;return-1}},54305:(e,t,o)=>{var r=o(60238),s=o(24981),i=o(23481);e.exports=function(e,t,o){return t===t?i(e,t,o):r(e,s,o)}},24981:e=>{e.exports=function(e){return e!==e}},23481:e=>{e.exports=function(e,t,o){for(var r=o-1,s=e.length;++r<s;)if(e[r]===t)return r;return-1}},78164:(e,t,o)=>{var r=o(3895),s=o(86456),i=o(7244),n=s((function(e,t){return i(e)?r(e,t):[]}));e.exports=n}}]);