@sheetxl/mcp 0.0.0-stage → 0.8.0-beta.14

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 (509) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +72 -2
  3. package/agent/instructions.md +66 -0
  4. package/assets/2zIY9Xuml4y8NI05.js +596 -0
  5. package/assets/33QTHR3r6ZujxFx8.js +18 -0
  6. package/assets/8vRAQlvTcvMLeio0.js +1131 -0
  7. package/assets/9MRZ5Yc2RBgcqZSp.js +594 -0
  8. package/assets/9dbZwzIWefGss7is.js +52 -0
  9. package/assets/B-1_xSqUFCJ6jNjn.js +9109 -0
  10. package/assets/B-jE7tAMA559MtNt.js +37 -0
  11. package/assets/B5xHa5bjZu5ONrm5.js +638 -0
  12. package/assets/B66aeGYrHLbGpuN9.js +9137 -0
  13. package/assets/B6BP5l2qmeZhqVV7.js +7 -0
  14. package/assets/B6b9ytNrHR-ijcOa.js +30 -0
  15. package/assets/B9QlqO6n3MCBsvoj.js +504 -0
  16. package/assets/B9qiPx_BXxo1jgcx.js +2368 -0
  17. package/assets/B9w1dNK8pNq-Z1P3.js +142 -0
  18. package/assets/BDZ1FGc1zFqO1nK7.js +4036 -0
  19. package/assets/BFwNQZVRnbNt-gRJ.js +2260 -0
  20. package/assets/BMnNvUCJu35tT_aO.js +19 -0
  21. package/assets/BNfBq8Eic3Cl-f6A.js +184 -0
  22. package/assets/BOF64A2D2KKcv_fo.js +15 -0
  23. package/assets/BOcWUnxWSG1d5Ljc.js +447 -0
  24. package/assets/BW8XjynUqlfvuQUV.js +37 -0
  25. package/assets/BWsXOU_jh_cA8m8I.js +12 -0
  26. package/assets/BXC6616BWEWNZ2-D.js +63 -0
  27. package/assets/BYtBi8vLoB41QkV8.js +656 -0
  28. package/assets/B_-VPqfsse8AlCTm.js +81 -0
  29. package/assets/BiAEoWSl8c6jcUnS.js +28 -0
  30. package/assets/BkBCkgPNrFR5N9fo.js +19 -0
  31. package/assets/BmxgDCZk_aMDms4i.js +639 -0
  32. package/assets/BoTScfjgygCozDVi.js +23 -0
  33. package/assets/BwisWvPpXRhyIP4O.js +15 -0
  34. package/assets/ByziR0Anm39Bw0Bc.js +1556 -0
  35. package/assets/C-5LlJ5qhC7Ef0gV.js +12996 -0
  36. package/assets/C-CNmTrzNS-ZlQ8j.js +1760 -0
  37. package/assets/C1rIlmARlinuie5E.js +45 -0
  38. package/assets/C1w8NQeox7_92swz.js +35 -0
  39. package/assets/C2Rgsb69SnMOohGt.js +23 -0
  40. package/assets/C55MTJ_5qW94RElE.js +7514 -0
  41. package/assets/CBNNl8igIyeHY4St.js +780 -0
  42. package/assets/CDGeuGB9CBXeCIm6.js +12 -0
  43. package/assets/CH9M37mRwnS0t9wM.js +104 -0
  44. package/assets/CHHJZPAuM3OjbzF6.js +402 -0
  45. package/assets/CMTDUipnLiOj5pbe.js +610 -0
  46. package/assets/COFze3jkZDQRSij9.js +4437 -0
  47. package/assets/CPDkdp0yI4DwUHGZ.js +119 -0
  48. package/assets/CULV-2mwmqYYpAjM.js +119 -0
  49. package/assets/CVFTQ0OwsUt03r4o.js +146 -0
  50. package/assets/CXM1IYmE-TDInPwr.js +118 -0
  51. package/assets/CcLPa6zB5PH3OG2O.js +10289 -0
  52. package/assets/CdF5MxGnISAZ41oQ.js +359 -0
  53. package/assets/CeDqeFLuUfN8UIGx.js +17 -0
  54. package/assets/CfiVUfpeONJ3rf31.js +28 -0
  55. package/assets/Cfvhcua4c6onouhP.js +14 -0
  56. package/assets/CgjR_TiVOcuxg5tO.js +16 -0
  57. package/assets/CjwzOAnab_dpAqiG.js +144 -0
  58. package/assets/Cm3Q_-DDdnVHRBxr.js +351 -0
  59. package/assets/CpOhY88x6AgVxvTz.js +49 -0
  60. package/assets/CtpcYuBFU6fxsUhs.js +71 -0
  61. package/assets/CutEBbZl8oFbTlXZ.js +171 -0
  62. package/assets/CwJyw5Yxpj4PGh14.js +28 -0
  63. package/assets/CwdOInoJwCxXnhog.js +7 -0
  64. package/assets/D2_T0KSaye0ncjQa.js +6294 -0
  65. package/assets/D2w3KjYuONW1G1kX.js +86 -0
  66. package/assets/D3BAmD-1AfFtHdC6.js +242 -0
  67. package/assets/D81iH5MJJfq2t9FP.js +32 -0
  68. package/assets/D94hlZEaHtGHdN_K.js +202 -0
  69. package/assets/DBFXsbIHDxbMBrzV.js +319 -0
  70. package/assets/DCHsM8bfVisYJFTT.js +1783 -0
  71. package/assets/DIy1659Yv5-fD69E.js +123 -0
  72. package/assets/DK0VM9-qrEXBm8Ud.js +223 -0
  73. package/assets/DPazQ_nZv-sXUwO3.js +45 -0
  74. package/assets/DSSrCrejjpWoszj7.js +33 -0
  75. package/assets/DTlvhtB9hvPdbdxu.js +60493 -0
  76. package/assets/DUUt1z6Y_cpxEpYY.js +24 -0
  77. package/assets/DUYoUViqY5U6uQX3.js +18 -0
  78. package/assets/DUzaW_op2vBTwOOI.js +18 -0
  79. package/assets/DWTpPijG5yeNFR0W.js +14 -0
  80. package/assets/DZRp3_yqPS6Lshho.js +32 -0
  81. package/assets/DZZ5R3msiytVNCqK.js +199 -0
  82. package/assets/Df2IAW-O7Gwl7V1l.js +7 -0
  83. package/assets/Dfd7kvLIFNqu-m-r.js +51 -0
  84. package/assets/Dg7xy50qHwqkYd4g.js +1135 -0
  85. package/assets/DihigEGfNCLR8UPN.js +8 -0
  86. package/assets/DkFK1iu4vqjLZMja.js +3011 -0
  87. package/assets/DkPXpv81Y5teMd-R.js +20 -0
  88. package/assets/Dl87mJoXDkCkzBi7.js +3917 -0
  89. package/assets/DnmjS548g7nY6EUS.js +1860 -0
  90. package/assets/DoIU_ohoCBwTZV9G.js +310 -0
  91. package/assets/Doqy_uDSQTCv6a6X.js +35 -0
  92. package/assets/DpGuA6U12gwyGHEM.js +369 -0
  93. package/assets/DuZ6DXQGttY3Lrhd.js +5220 -0
  94. package/assets/Du_JrYiYGJo5_B9H.js +12 -0
  95. package/assets/DvD_K4M5HgJ4uJ8L.js +7 -0
  96. package/assets/EeSGsbh_r4N-qs4w.js +96 -0
  97. package/assets/GnXTzeDYWWeEf5yV.js +55 -0
  98. package/assets/HKLw8b2xTdu5c1w5.js +63 -0
  99. package/assets/KpCEdfpsHnfkyqjx.js +37 -0
  100. package/assets/OU7gC5JF-lyDOOid.js +27 -0
  101. package/assets/PRSerWiAGYu8MVnd.js +304 -0
  102. package/assets/PmooYGqWqoTxPExF.js +449 -0
  103. package/assets/QXKcNTuZqOauSidr.js +58 -0
  104. package/assets/ThqyayHHaBxzfaAt.js +255 -0
  105. package/assets/TzsPqmpG77I4ewVt.js +173 -0
  106. package/assets/UX2ywz3gr7q-MlHr.js +105 -0
  107. package/assets/W-MzzQHZuRxr8adc.js +2346 -0
  108. package/assets/ZBYHyJs7CQgnnHfR.js +362 -0
  109. package/assets/ZTEO4JX22YIOkrJg.js +8338 -0
  110. package/assets/a7BoASyT8yQZY9hJ.js +22 -0
  111. package/assets/aqguaobnu61szXWM.js +22 -0
  112. package/assets/cdIvC9t9tYtVn4nc.js +405 -0
  113. package/assets/cv7k-VAIJtYeL9k4.js +23 -0
  114. package/assets/ddJqSu7gXUkXjGxZ.js +13 -0
  115. package/assets/eHAVGCUcMAfNjEGt.js +7 -0
  116. package/assets/hRLLK6I6m0uGKWo8.js +32 -0
  117. package/assets/mcFLzsOH35mvmd3C.js +145 -0
  118. package/assets/st-UQngeBG4hwKoy.js +47 -0
  119. package/assets/w8YWSMNTTn45ImnB.js +857 -0
  120. package/assets/yNiBIhsMP9BCWd67.js +28 -0
  121. package/assets/zu-72oKE_gCkrozc.js +540 -0
  122. package/index.js +8070 -0
  123. package/lib.js +7 -0
  124. package/licenses/dependencies.txt +1552 -0
  125. package/package.json +44 -3
  126. package/resources/contents.json +333 -0
  127. package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
  128. package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
  129. package/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
  130. package/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
  131. package/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
  132. package/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
  133. package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
  134. package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
  135. package/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
  136. package/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
  137. package/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
  138. package/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
  139. package/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
  140. package/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
  141. package/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
  142. package/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
  143. package/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
  144. package/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
  145. package/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
  146. package/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
  147. package/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
  148. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
  149. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
  150. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
  151. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
  152. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
  153. package/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
  154. package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
  155. package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
  156. package/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
  157. package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
  158. package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
  159. package/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
  160. package/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
  161. package/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
  162. package/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
  163. package/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
  164. package/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
  165. package/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
  166. package/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
  167. package/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
  168. package/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
  169. package/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
  170. package/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
  171. package/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
  172. package/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
  173. package/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
  174. package/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
  175. package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
  176. package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
  177. package/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
  178. package/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
  179. package/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
  180. package/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
  181. package/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
  182. package/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
  183. package/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
  184. package/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
  185. package/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
  186. package/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
  187. package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
  188. package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
  189. package/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
  190. package/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
  191. package/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
  192. package/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
  193. package/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
  194. package/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
  195. package/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
  196. package/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
  197. package/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
  198. package/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
  199. package/resources/fonts/@sheetxl/sdk/contents.json +646 -0
  200. package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
  201. package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
  202. package/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
  203. package/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
  204. package/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
  205. package/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
  206. package/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
  207. package/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
  208. package/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
  209. package/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
  210. package/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
  211. package/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
  212. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
  213. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
  214. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
  215. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
  216. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
  217. package/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
  218. package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
  219. package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
  220. package/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
  221. package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
  222. package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
  223. package/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
  224. package/resources/locales/@sheetxl/formulas/contents.json +9 -0
  225. package/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
  226. package/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
  227. package/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
  228. package/resources/locales/@sheetxl/sdk/contents.json +19 -0
  229. package/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
  230. package/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
  231. package/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
  232. package/screenshot-page/assets/-cpi3yOZYn6GsYN4.js +9 -0
  233. package/screenshot-page/assets/-i_fTASJeu9NdNH_.js +7 -0
  234. package/screenshot-page/assets/04d8koPx6lzeMYRQ.js +39 -0
  235. package/screenshot-page/assets/0MTaPYjKud2Q9QG9.js +1 -0
  236. package/screenshot-page/assets/21oAESJyBGXeHegm.js +2 -0
  237. package/screenshot-page/assets/3Ls_kOvlQseMV8Q0.js +1 -0
  238. package/screenshot-page/assets/4qZpl2QCzneWdmJO.js +1 -0
  239. package/screenshot-page/assets/6IEV7KeOEbBdrthj.js +1 -0
  240. package/screenshot-page/assets/8QrkTrKHDnMBb7q4.js +1 -0
  241. package/screenshot-page/assets/9w0ECZmzGUyk3F_O.js +1 -0
  242. package/screenshot-page/assets/AjS2PipZDIH3BXB2.js +1 -0
  243. package/screenshot-page/assets/B-KIwD5F_5S-NsPg.js +1 -0
  244. package/screenshot-page/assets/B-sAzW5ROrhvMGM4.js +1 -0
  245. package/screenshot-page/assets/B0FQypGas6gbGT_U.js +1 -0
  246. package/screenshot-page/assets/B2IQMVqTZT1rUnib.js +1 -0
  247. package/screenshot-page/assets/B2g3jiFIQ4Qjh5gG.js +1 -0
  248. package/screenshot-page/assets/B4PbXdzBe9BsoZ0e.js +2 -0
  249. package/screenshot-page/assets/B5GO9v4p9L70Xb9i.js +1 -0
  250. package/screenshot-page/assets/B8y_eLNCGnXLEIaE.js +1 -0
  251. package/screenshot-page/assets/BCl5buf87xUgIfEB.js +2 -0
  252. package/screenshot-page/assets/BEuMvXYIa9A1JacY.js +1 -0
  253. package/screenshot-page/assets/BEwl-ucV9Jfr0RoC.js +1 -0
  254. package/screenshot-page/assets/BFaiQZKle44Rhyou.js +1 -0
  255. package/screenshot-page/assets/BHqg55S-4_OoAu3P.js +2 -0
  256. package/screenshot-page/assets/BNgLvS2bLOYKRguv.js +1 -0
  257. package/screenshot-page/assets/BQAN82ftWBiLJT3r.js +1 -0
  258. package/screenshot-page/assets/BQfe-XTIOGeUnD9B.js +1 -0
  259. package/screenshot-page/assets/BQnELVV0uR4T4ItQ.js +1 -0
  260. package/screenshot-page/assets/BRVZJ0OGJg9XJro6.js +1 -0
  261. package/screenshot-page/assets/BRqSWCr2mTVNFquQ.js +1 -0
  262. package/screenshot-page/assets/BTOQaSn9DDyJPUlX.js +1 -0
  263. package/screenshot-page/assets/BUGXf2DEBog16Slb.js +2 -0
  264. package/screenshot-page/assets/BUjI304IvdJnFXH3.js +1 -0
  265. package/screenshot-page/assets/BYRwTzX1q407lHUS.js +2 -0
  266. package/screenshot-page/assets/Baz0SC2AgGyxMX72.js +1 -0
  267. package/screenshot-page/assets/BbP9KThfrodyosvn.js +1 -0
  268. package/screenshot-page/assets/BcOdl17EeFSxnAiq.js +1 -0
  269. package/screenshot-page/assets/BclKeOKIOBjijhsu.js +1 -0
  270. package/screenshot-page/assets/Bf7xq8PyF4ohjMzP.js +2 -0
  271. package/screenshot-page/assets/BimyzECCZl-NESff.js +1 -0
  272. package/screenshot-page/assets/BkLH7JH3A93TXFJi.js +1 -0
  273. package/screenshot-page/assets/BksaQEoZr5OWq-_d.js +3 -0
  274. package/screenshot-page/assets/Bor_tayB4yBfNOH5.js +2 -0
  275. package/screenshot-page/assets/BowRIybLgENunTOT.js +1 -0
  276. package/screenshot-page/assets/Bp7se0JaDGrzfSA_.js +1 -0
  277. package/screenshot-page/assets/Bwql3QifB2cv7Mqp.js +3 -0
  278. package/screenshot-page/assets/Bx61vmiWY0Xvx9qs.js +1 -0
  279. package/screenshot-page/assets/ByY3fmwyDPAyOLdo.js +1 -0
  280. package/screenshot-page/assets/Bz2U7weS0spa8Xbh.js +1 -0
  281. package/screenshot-page/assets/Bz5V1tmiy5gbT9ys.js +1 -0
  282. package/screenshot-page/assets/Bz9v1lgjvbu4QnOs.js +2 -0
  283. package/screenshot-page/assets/C1k_VrZqlpiUigCP.js +1 -0
  284. package/screenshot-page/assets/C2Wh2h27c7FUb8Yk.js +1 -0
  285. package/screenshot-page/assets/C6oLDVnuCS9LGkkH.js +1 -0
  286. package/screenshot-page/assets/C81mK8aZKZAAS-AB.js +1 -0
  287. package/screenshot-page/assets/C9SC-cEIt6gdhZRw.js +1 -0
  288. package/screenshot-page/assets/CE0MnsfMjqV2ICzk.js +57 -0
  289. package/screenshot-page/assets/CE8MCCIiwjOVwBBW.js +1 -0
  290. package/screenshot-page/assets/CFOaI8g7pJuPzsyk.js +1 -0
  291. package/screenshot-page/assets/CG3ynup87FmG-kkX.js +1 -0
  292. package/screenshot-page/assets/CHlWgOAlcRCjVuhg.js +1 -0
  293. package/screenshot-page/assets/CIged53b3hHKxa-o.js +1 -0
  294. package/screenshot-page/assets/CNQczIR5xcE5u5fT.js +1 -0
  295. package/screenshot-page/assets/CSUd8n1H0VBfREnk.js +2 -0
  296. package/screenshot-page/assets/CSlBTkRDITCC8JRB.js +1 -0
  297. package/screenshot-page/assets/CV2jr9hpQOG2OG0C.js +1 -0
  298. package/screenshot-page/assets/CXGgKVbVXjWzE0p6.js +1 -0
  299. package/screenshot-page/assets/CXKCmZ_TRyGaB9Ob.js +1 -0
  300. package/screenshot-page/assets/CXUO3vYip3JPSJ7A.js +1 -0
  301. package/screenshot-page/assets/CXwbGzavyvYgDbWU.js +1 -0
  302. package/screenshot-page/assets/CZf9s6otzzoaBlSs.js +1 -0
  303. package/screenshot-page/assets/CZvwQEeVhBilgKLG.js +1 -0
  304. package/screenshot-page/assets/Ca6nxdhEuLLty3d7.js +2 -0
  305. package/screenshot-page/assets/CbUDukmvDZmVfhJH.js +1 -0
  306. package/screenshot-page/assets/CbXtAM7H-Jg_J0dk.js +1 -0
  307. package/screenshot-page/assets/CctIRGMFmARVi2KT.js +1 -0
  308. package/screenshot-page/assets/Cenh1POxiGMxIQlv.js +1 -0
  309. package/screenshot-page/assets/ChSvXfVMLxZsP9zG.js +8 -0
  310. package/screenshot-page/assets/Ci5NtzhJLll1kxGf.js +10 -0
  311. package/screenshot-page/assets/CjngjJNheGaVRvZp.js +1 -0
  312. package/screenshot-page/assets/ClzdIJrFdInttVJA.js +1 -0
  313. package/screenshot-page/assets/CnPgk3HcIziOcskY.js +10 -0
  314. package/screenshot-page/assets/CnXLpFE_vFrJ5Jbf.js +1 -0
  315. package/screenshot-page/assets/CnZJ44ncMxZ4ivcB.js +586 -0
  316. package/screenshot-page/assets/CpbohdgEaEsVDi9J.js +1 -0
  317. package/screenshot-page/assets/CqR3hGrC956TkCMj.js +20 -0
  318. package/screenshot-page/assets/Cr1tQKUBVKOQl3QC.js +1 -0
  319. package/screenshot-page/assets/Cv8FG9PPBkkPw86e.js +1 -0
  320. package/screenshot-page/assets/CvL9XK3Ht1mP-rGz.js +4 -0
  321. package/screenshot-page/assets/CykecBozGGFl26KA.js +3940 -0
  322. package/screenshot-page/assets/CzTizxHhb-CI_ajE.js +1 -0
  323. package/screenshot-page/assets/CzzEl3lAkZopkwhC.js +1 -0
  324. package/screenshot-page/assets/D-LgRj0s-PAVqY-L.js +1 -0
  325. package/screenshot-page/assets/D-XR1MGhwn7Jqj60.js +1 -0
  326. package/screenshot-page/assets/D47ePD4x1lVazNdl.js +7 -0
  327. package/screenshot-page/assets/D6Jpaz2YkhOfzxDB.js +1 -0
  328. package/screenshot-page/assets/D9zCVZpnJBfNSNO2.js +1 -0
  329. package/screenshot-page/assets/DDQWM8rNYCYzKa9R.js +1 -0
  330. package/screenshot-page/assets/DDpAoGAPzo1c4vl5.js +27 -0
  331. package/screenshot-page/assets/DGXDfjkGZjMRAXPg.js +5 -0
  332. package/screenshot-page/assets/DHa5_U58lSwCnpmG.js +1 -0
  333. package/screenshot-page/assets/DKVB6ddRfDJatYid.js +1 -0
  334. package/screenshot-page/assets/DM9U7u7FQK0jcwh4.js +1 -0
  335. package/screenshot-page/assets/DNDaHmkQrQTaCHhV.js +1 -0
  336. package/screenshot-page/assets/DQ0kGd99-fXxuNYk.js +1 -0
  337. package/screenshot-page/assets/DQWHkaQeNXft9j8b.js +2 -0
  338. package/screenshot-page/assets/DRVfGdmVBvktrZ1t.js +1 -0
  339. package/screenshot-page/assets/DRrM-dY9nM7nDRpV.js +1 -0
  340. package/screenshot-page/assets/DT2x1gO3f2G5NfeB.js +1 -0
  341. package/screenshot-page/assets/DU3FmyUH0RjPIBd-.js +1 -0
  342. package/screenshot-page/assets/DUJzubL4qqOyizfu.js +1 -0
  343. package/screenshot-page/assets/DVueE--eOrZPrqrm.js +1 -0
  344. package/screenshot-page/assets/DWiI5I3RtoKvVT66.js +1 -0
  345. package/screenshot-page/assets/DYJSIlNxrNw8qk-w.js +1 -0
  346. package/screenshot-page/assets/DYRbCudWTaiE_Sjc.js +1 -0
  347. package/screenshot-page/assets/DZDRRw-62D6Zw7qs.js +1 -0
  348. package/screenshot-page/assets/D_H2dlsQ8PJ0r1WD.js +10 -0
  349. package/screenshot-page/assets/DaKZ4-Li_ULIIwnK.js +1 -0
  350. package/screenshot-page/assets/DadZXeaVK5UXSHIi.js +1 -0
  351. package/screenshot-page/assets/Db_VGqQo2G2JgXWW.js +1 -0
  352. package/screenshot-page/assets/DceNHPrRLok2At-X.js +1 -0
  353. package/screenshot-page/assets/DcrVJCyDwGKeil2U.js +1 -0
  354. package/screenshot-page/assets/DeAKjatTVaZ0u_FY.js +1 -0
  355. package/screenshot-page/assets/DmMZ4pd492HPw_3_.js +1 -0
  356. package/screenshot-page/assets/DmbuCapSSCYIa3yk.js +1 -0
  357. package/screenshot-page/assets/Dpepompn_NhpSncR.js +1 -0
  358. package/screenshot-page/assets/DqM1wwsmN1J4MXMm.js +1 -0
  359. package/screenshot-page/assets/DqYhS4mcQfOe96hU.js +1 -0
  360. package/screenshot-page/assets/DsL71n5SxCVjL6Ho.js +2 -0
  361. package/screenshot-page/assets/DyGpT6t96jrvgJes.js +1 -0
  362. package/screenshot-page/assets/DyLWQxXXTw5uwPVy.js +30 -0
  363. package/screenshot-page/assets/DyYVf8O1rhg3YmjW.js +1 -0
  364. package/screenshot-page/assets/DyxJBLjUkeDuu96F.js +1 -0
  365. package/screenshot-page/assets/DzZRUd0p22CBa27b.js +1 -0
  366. package/screenshot-page/assets/HclGiUj8dZXDFmoM.js +1 -0
  367. package/screenshot-page/assets/IRtoU5oVgBWu9rnK.js +2 -0
  368. package/screenshot-page/assets/IfF7Tv-nhz6Ikpn0.js +1 -0
  369. package/screenshot-page/assets/J73KTOmdZGNmnq-z.js +1 -0
  370. package/screenshot-page/assets/J_xJVgE7YlmeU-ZO.js +6 -0
  371. package/screenshot-page/assets/KoxRo2J_cwB_yOd5.js +2 -0
  372. package/screenshot-page/assets/LVtV_IPhPQroHRui.js +1 -0
  373. package/screenshot-page/assets/MNoPOsydrUv1UGU8.js +2 -0
  374. package/screenshot-page/assets/Miyn0clMq0rovRIo.js +1 -0
  375. package/screenshot-page/assets/Rm5Sf5E6t8bk_Y3r.js +1 -0
  376. package/screenshot-page/assets/b3AbgxQkoaCiBi15.js +1 -0
  377. package/screenshot-page/assets/fGlPAximvsxzPzGA.js +1 -0
  378. package/screenshot-page/assets/gG0AFZ45VxS_moMw.js +2 -0
  379. package/screenshot-page/assets/nHThFXCAZFOM_npq.js +1 -0
  380. package/screenshot-page/assets/pRykm05ElquZBk_a.js +1 -0
  381. package/screenshot-page/assets/qm3VY0bH7F7EgSdi.js +2 -0
  382. package/screenshot-page/assets/rPOkVKdPbFpTG6AY.js +1 -0
  383. package/screenshot-page/assets/w3bV7wggRayUYTd-.js +1 -0
  384. package/screenshot-page/assets/zFbb8ESzwR_bE7IQ.js +1 -0
  385. package/screenshot-page/assets/zHHZFbk5RXnrxbOc.js +42 -0
  386. package/screenshot-page/index.html +44 -0
  387. package/screenshot-page/resources/contents.json +333 -0
  388. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.hinted.json +125 -0
  389. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.metrics.json +221 -0
  390. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold-italic.rows.json +8 -0
  391. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.hinted.json +125 -0
  392. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.metrics.json +221 -0
  393. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-bold.rows.json +8 -0
  394. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.hinted.json +125 -0
  395. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.metrics.json +221 -0
  396. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold-italic.rows.json +8 -0
  397. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.hinted.json +125 -0
  398. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.metrics.json +221 -0
  399. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-bold.rows.json +8 -0
  400. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.hinted.json +124 -0
  401. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.metrics.json +221 -0
  402. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-italic.rows.json +8 -0
  403. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.hinted.json +125 -0
  404. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.metrics.json +221 -0
  405. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-display-regular.rows.json +8 -0
  406. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.hinted.json +125 -0
  407. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.metrics.json +221 -0
  408. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-italic.rows.json +8 -0
  409. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.hinted.json +125 -0
  410. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.metrics.json +221 -0
  411. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold-italic.rows.json +8 -0
  412. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.hinted.json +125 -0
  413. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.metrics.json +221 -0
  414. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-bold.rows.json +8 -0
  415. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.hinted.json +125 -0
  416. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.metrics.json +221 -0
  417. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-italic.rows.json +8 -0
  418. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.hinted.json +125 -0
  419. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.metrics.json +221 -0
  420. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-narrow-regular.rows.json +8 -0
  421. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.hinted.json +125 -0
  422. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.metrics.json +221 -0
  423. package/screenshot-page/resources/fonts/@sheetxl/sdk/aptos-regular.rows.json +8 -0
  424. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.hinted.json +125 -0
  425. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.metrics.json +139 -0
  426. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold-italic.rows.json +8 -0
  427. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.hinted.json +125 -0
  428. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.metrics.json +139 -0
  429. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-bold.rows.json +8 -0
  430. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.hinted.json +125 -0
  431. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.metrics.json +139 -0
  432. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-italic.rows.json +8 -0
  433. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.hinted.json +125 -0
  434. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.metrics.json +139 -0
  435. package/screenshot-page/resources/fonts/@sheetxl/sdk/arial-regular.rows.json +8 -0
  436. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.hinted.json +122 -0
  437. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.metrics.json +137 -0
  438. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold-italic.rows.json +8 -0
  439. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.hinted.json +122 -0
  440. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.metrics.json +137 -0
  441. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-bold.rows.json +8 -0
  442. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.hinted.json +121 -0
  443. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.metrics.json +137 -0
  444. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-italic.rows.json +8 -0
  445. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.hinted.json +121 -0
  446. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.metrics.json +137 -0
  447. package/screenshot-page/resources/fonts/@sheetxl/sdk/calibri-regular.rows.json +8 -0
  448. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.hinted.json +105 -0
  449. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.metrics.json +66 -0
  450. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold-italic.rows.json +8 -0
  451. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.hinted.json +108 -0
  452. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.metrics.json +66 -0
  453. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-bold.rows.json +8 -0
  454. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.hinted.json +102 -0
  455. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.metrics.json +66 -0
  456. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-italic.rows.json +8 -0
  457. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.hinted.json +110 -0
  458. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.metrics.json +66 -0
  459. package/screenshot-page/resources/fonts/@sheetxl/sdk/cambria-regular.rows.json +8 -0
  460. package/screenshot-page/resources/fonts/@sheetxl/sdk/contents.json +646 -0
  461. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.hinted.json +11 -0
  462. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.metrics.json +143 -0
  463. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold-italic.rows.json +8 -0
  464. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.hinted.json +11 -0
  465. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.metrics.json +143 -0
  466. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-bold.rows.json +8 -0
  467. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.hinted.json +11 -0
  468. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.metrics.json +143 -0
  469. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-italic.rows.json +8 -0
  470. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.hinted.json +11 -0
  471. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.metrics.json +143 -0
  472. package/screenshot-page/resources/fonts/@sheetxl/sdk/courier-new-regular.rows.json +8 -0
  473. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.hinted.json +125 -0
  474. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.metrics.json +141 -0
  475. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold-italic.rows.json +8 -0
  476. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.hinted.json +125 -0
  477. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.metrics.json +141 -0
  478. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-bold.rows.json +8 -0
  479. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.hinted.json +125 -0
  480. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.metrics.json +143 -0
  481. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-italic.rows.json +8 -0
  482. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.hinted.json +125 -0
  483. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.metrics.json +141 -0
  484. package/screenshot-page/resources/fonts/@sheetxl/sdk/times-new-roman-regular.rows.json +8 -0
  485. package/screenshot-page/resources/locales/@sheetxl/formulas/contents.json +9 -0
  486. package/screenshot-page/resources/locales/@sheetxl/formulas/de/functions.json +298 -0
  487. package/screenshot-page/resources/locales/@sheetxl/formulas-extended/contents.json +9 -0
  488. package/screenshot-page/resources/locales/@sheetxl/formulas-extended/de/functions.json +59 -0
  489. package/screenshot-page/resources/locales/@sheetxl/sdk/contents.json +19 -0
  490. package/screenshot-page/resources/locales/@sheetxl/sdk/de/grammar.json +16 -0
  491. package/screenshot-page/resources/locales/@sheetxl/sdk/de/model.msg.json +710 -0
  492. package/screenshot-page/resources/locales/@sheetxl/sdk/en/model.msg.json +732 -0
  493. package/types/index.d.ts +1 -0
  494. package/types/lib.d.ts +2 -0
  495. package/types/scripting-api.json +10855 -0
  496. package/types/scripting-enums.json +1339 -0
  497. package/types/scripting.d.ts +49295 -0
  498. package/types/src/SessionRegistry.d.ts +630 -0
  499. package/types/src/index.d.ts +3 -0
  500. package/types/src/instances.d.ts +104 -0
  501. package/types/src/lib/Types.d.ts +17 -0
  502. package/types/src/lib/index.d.ts +2 -0
  503. package/types/src/lib/runReport.d.ts +158 -0
  504. package/types/src/lib.d.ts +2 -0
  505. package/types/src/prepareRun.d.ts +56 -0
  506. package/types/src/relay.d.ts +102 -0
  507. package/types/src/screenshot.d.ts +23 -0
  508. package/types/src/server.d.ts +37 -0
  509. package/types/src/taskStore.d.ts +28 -0
@@ -0,0 +1 @@
1
+ var e={AVEDEV:{s:`Returns the average of the absolute deviations of data points from their mean. Arguments can be numbers or names, arrays, or references that contain numbers.`,p:{number:{d:`are 1 to 255 arguments for which you want the average of the absolute deviations.`}}},AVERAGE:{s:`Returns the average (arithmetic mean) of its arguments, which can be numbers or names, arrays, or references that contain numbers.`,p:{number:{d:`are 1 to 255 numeric arguments for which you want the average.`}}},AVERAGEA:{s:`Returns the average (arithmetic mean) of its arguments, evaluating text and FALSE in arguments as 0; TRUE evaluates as 1. Arguments can be numbers, names, arrays, or references.`,p:{value:{d:`are 1 to 255 arguments for which you want the average.`}}},AVERAGEIF:{s:`Finds average(arithmetic mean) for the cells specified by a given condition or criteria.`,p:{range:{d:`is the range of cells you want evaluated.`},criteria:{d:`is the condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average.`},averageRange:{d:`are the actual cells to be used to find the average. If omitted, the cells in range are used.`}}},AVERAGEIFS:{s:`Finds average(arithmetic mean) for the cells specified by a given set of conditions or criteria.`,p:{averageRange:{d:`are the actual cells to be used to find the average.`},criteria:{d:`the ranges to evaluate and the conditions to evaluate them against.`},"criteria.criteriaRange":{d:`is the range of cells you want evaluated for the particular condition.`},"criteria.criteria":{d:`is the condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average.`}}},"AVERAGE.WEIGHTED":{s:`Finds the weighted average of a set of values, given the values and the corresponding weights.`,c:`Sheets`,p:{values:{d:`the values to average and the weights to apply to them.`},"values.values":{d:`are the values to be averaged.`},"values.weights":{d:`are the corresponding weights to apply. A weight may be zero but not negative.`}}},COUNT:{s:`Counts the number of cells in a range that contain numbers.`,p:{number:{d:`are 1 to 255 arguments that can contain or refer to a variety of different types of data, but only numbers are counted.`}}},COUNTA:{s:`Counts the number of cells in a range that are not empty.`,p:{value:{d:`are 1 to 255 arguments representing the values and cells you want to count. Values can be any type of information.`}}},COUNTBLANK:{s:`Counts the number of empty cells in a specified range of cells.`,p:{range:{d:`is the range from which you want to count the empty cells.`}}},COUNTIF:{s:`Counts the number of cells within a range that meet the given condition.`,p:{range:{d:`is the range of cells from which you want to count nonblank cells.`},criteria:{d:`is the condition in the form of a number, expression, or text that defines which cells will be counted.`}}},COUNTIFS:{s:`Counts the number of cells specified by a given set of conditions or criteria.`,p:{criteria:{d:`the ranges to evaluate and the conditions to evaluate them against.`},"criteria.criteriaRange":{d:`is the range of cells you want evaluated for the particular condition.`},"criteria.criteria":{d:`is the condition in the form of a number, expression, or text that defines which cells will be counted.`}}},COUNTUNIQUE:{s:`Counts the number of unique values in a list of specified values and ranges.`,c:`Sheets`,p:{value:{d:`are the values or ranges to consider for uniqueness.`}}},COUNTUNIQUEIFS:{s:`Counts the number of unique values in a range of cells, filtered by a set of criteria.`,c:`Sheets`,p:{countUniqueRange:{d:`is the range from which the unique values will be counted.`},criteria:{d:`the ranges to evaluate and the conditions to evaluate them against.`},"criteria.criteriaRange":{d:`is the range of cells you want evaluated for the particular condition.`},"criteria.criteria":{d:`is the condition in the form of a number, expression, or text that defines which cells will be counted.`}}},LARGE:{s:`Returns the k-th largest value in a data set. For example, the fifth largest number.`,p:{array:{d:`is the array or range of data for which you want to determine the k-th largest value.`},k:{d:`is the position (from the largest) in the array or cell range of the value to return.`}}},MAX:{s:`Returns the largest value in a set of values. Ignores logical values and text.`,p:{number:{d:`are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the maximum.`}}},MAXA:{s:`Returns the largest value in a set of values. Does not ignore logical values and text.`,p:{value:{d:`are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the maximum.`}}},MAXIF:{s:`Returns the maximum value for the cells within a range that meet the given condition.`,c:`SheetXL`,p:{range:{d:`is the range of cells from which you want to find the maximum nonblank cells.`},criteria:{d:`is the condition in the form of a number, expression, or text that defines which cells will be counted.`},maxRange:{d:`are the actual cells to be used to find the maximum. If omitted, the cells in range are used.`}}},MAXIFS:{s:`Returns the maximum value among cells specified by a given set of conditions or criteria.`,p:{maxRange:{d:`the cells in which to determine the maximum value.`},criteria:{d:`the ranges to evaluate and the conditions to evaluate them against.`},"criteria.criteriaRange":{d:`is the range of cells you want to evaluate for the particular condition.`},"criteria.criteria":{d:`is the condition or criteria in the form of a number, expression, or text that defines which cells will be included when determining the maximum value.`}}},MEDIAN:{s:`Returns the median, or the number in the middle of the set of given numbers.`,p:{number:{d:`are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the median.`}}},MIN:{s:`Returns the smallest number in a set of values. Ignores logical values and text.`,p:{number:{d:`are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the minimum.`}}},MINA:{s:`Returns the smallest value in a set of values. Does not ignore logical values and text.`,p:{value:{d:`are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the minimum.`}}},MINIF:{s:`Returns the minimum value for the cells within a range that meet the given condition.`,c:`SheetXL`,p:{range:{d:`is the range of cells from which you want to count nonblank cells.`},criteria:{d:`is the condition in the form of a number, expression, or text that defines which cells will be counted.`},minRange:{d:`are the actual cells to be used to find the minimum. If omitted, the cells in range are used.`}}},MINIFS:{s:`Returns the minimum value among cells specified by a given set of conditions or criteria.`,p:{minRange:{d:`is the range of cells to evaluate for the minimum value.`},criteria:{d:`the ranges to evaluate and the conditions to evaluate them against.`},"criteria.criteriaRange":{d:`is the range of cells to evaluate against the criteria.`},"criteria.criteria":{d:`is the criteria to evaluate against the criteria range.`}}},PERMUT:{s:`Returns the number of permutations for a given number of objects that can be selected from the total objects.`,p:{number:{d:`is the total number of objects.`},numberChoosen:{d:`is the number of objects in each permutation.`}}},PERMUTATIONA:{s:`Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects.`,p:{number:{d:`is the total number of objects.`},numberChoosen:{d:`is the number of objects in each permutation.`}}},SMALL:{s:`Returns the k-th smallest value in a data set. For example, the fifth smallest number.`,p:{array:{d:`is an array or range of numerical data for which you want to determine the k-th smallest value.`},k:{d:`is the position (from the smallest) in the array or range of the value to return.`}}}};export{e as default};
@@ -0,0 +1 @@
1
+ var e=[[`0 r vc`,`cd4 hc b`,`cd2 l vc`,`3cd4 hc t`],[`cd2 l t`,`cd2 l dx`,`cd2 l y1`,`cd2 l b`,`3cd4 dx t`,`3cd4 x1 t`,`cd4 dx b`,`cd4 x1 b`,`0 r t`,`0 r dx`,`0 r y1`,`0 r b`]],t=Object.freeze({actionButtonBackPrevious:{gd:[`dx2 */ ss 3 8`,`g9 +- vc 0 dx2`,`g10 +- vc dx2 0`,`g11 +- hc 0 dx2`,`g12 +- hc dx2 0`],cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M g11 vc L g12 g9 L g12 g10 Z`},{f:`darken`,s:0,d:`M g11 vc L g12 g9 L g12 g10 Z`},{f:`none`,d:`M g11 vc L g12 g9 L g12 g10 Z`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonBeginning:{gd:[`dx2 */ ss 3 8`,`g9 +- vc 0 dx2`,`g10 +- vc dx2 0`,`g11 +- hc 0 dx2`,`g12 +- hc dx2 0`,`g13 */ ss 3 4`,`g14 */ g13 1 8`,`g15 */ g13 1 4`,`g16 +- g11 g14 0`,`g17 +- g11 g15 0`],cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M g17 vc L g12 g9 L g12 g10 Z M g16 g9 L g11 g9 L g11 g10 L g16 g10 Z`},{f:`darken`,s:0,d:`M g17 vc L g12 g9 L g12 g10 Z M g16 g9 L g11 g9 L g11 g10 L g16 g10 Z`},{f:`none`,d:`M g17 vc L g12 g9 L g12 g10 Z M g16 g9 L g16 g10 L g11 g10 L g11 g9 Z`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonBlank:{cxn:0,paths:[{d:`M l t L r t L r b L l b Z`}]},actionButtonDocument:{gd:[`dx2 */ ss 3 8`,`g9 +- vc 0 dx2`,`g10 +- vc dx2 0`,`dx1 */ ss 9 32`,`g11 +- hc 0 dx1`,`g12 +- hc dx1 0`,`g13 */ ss 3 16`,`g14 +- g12 0 g13`,`g15 +- g9 g13 0`],cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M g11 g9 L g14 g9 L g12 g15 L g12 g10 L g11 g10 Z`},{f:`darkenLess`,s:0,d:`M g11 g9 L g14 g9 L g14 g15 L g12 g15 L g12 g10 L g11 g10 Z`},{f:`darken`,s:0,d:`M g14 g9 L g14 g15 L g12 g15 Z`},{f:`none`,d:`M g11 g9 L g14 g9 L g12 g15 L g12 g10 L g11 g10 Z M g12 g15 L g14 g15 L g14 g9`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonEnd:{gd:[`dx2 */ ss 3 8`,`g9 +- vc 0 dx2`,`g10 +- vc dx2 0`,`g11 +- hc 0 dx2`,`g12 +- hc dx2 0`,`g13 */ ss 3 4`,`g14 */ g13 3 4`,`g15 */ g13 7 8`,`g16 +- g11 g14 0`,`g17 +- g11 g15 0`],cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M g16 vc L g11 g9 L g11 g10 Z M g17 g9 L g12 g9 L g12 g10 L g17 g10 Z`},{f:`darken`,s:0,d:`M g16 vc L g11 g9 L g11 g10 Z M g17 g9 L g12 g9 L g12 g10 L g17 g10 Z`},{f:`none`,d:`M g16 vc L g11 g10 L g11 g9 Z M g17 g9 L g12 g9 L g12 g10 L g17 g10 Z`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonForwardNext:{gd:[`dx2 */ ss 3 8`,`g9 +- vc 0 dx2`,`g10 +- vc dx2 0`,`g11 +- hc 0 dx2`,`g12 +- hc dx2 0`],cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M g12 vc L g11 g9 L g11 g10 Z`},{f:`darken`,s:0,d:`M g12 vc L g11 g9 L g11 g10 Z`},{f:`none`,d:`M g12 vc L g11 g10 L g11 g9 Z`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonHelp:{gd:[`dx2 */ ss 3 8`,`g9 +- vc 0 dx2`,`g11 +- hc 0 dx2`,`g13 */ ss 3 4`,`g14 */ g13 1 7`,`g15 */ g13 3 14`,`g16 */ g13 2 7`,`g19 */ g13 3 7`,`g20 */ g13 4 7`,`g21 */ g13 17 28`,`g23 */ g13 21 28`,`g24 */ g13 11 14`,`g27 +- g9 g16 0`,`g29 +- g9 g21 0`,`g30 +- g9 g23 0`,`g31 +- g9 g24 0`,`g33 +- g11 g15 0`,`g36 +- g11 g19 0`,`g37 +- g11 g20 0`,`g41 */ g13 1 14`,`g42 */ g13 3 28`],cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M g33 g27 A g16 g16 cd2 cd2 A g14 g15 0 cd4 A g41 g42 3cd4 -5400000 L g37 g30 L g36 g30 L g36 g29 A g14 g15 cd2 cd4 A g41 g42 cd4 -5400000 A g14 g14 0 -10800000 Z M hc g31 A g42 g42 3cd4 21600000 Z`},{f:`darken`,s:0,d:`M g33 g27 A g16 g16 cd2 cd2 A g14 g15 0 cd4 A g41 g42 3cd4 -5400000 L g37 g30 L g36 g30 L g36 g29 A g14 g15 cd2 cd4 A g41 g42 cd4 -5400000 A g14 g14 0 -10800000 Z M hc g31 A g42 g42 3cd4 21600000 Z`},{f:`none`,d:`M g33 g27 A g16 g16 cd2 cd2 A g14 g15 0 cd4 A g41 g42 3cd4 -5400000 L g37 g30 L g36 g30 L g36 g29 A g14 g15 cd2 cd4 A g41 g42 cd4 -5400000 A g14 g14 0 -10800000 Z M hc g31 A g42 g42 3cd4 21600000 Z`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonHome:{gd:`dx2 */ ss 3 8.g9 +- vc 0 dx2.g10 +- vc dx2 0.g11 +- hc 0 dx2.g12 +- hc dx2 0.g13 */ ss 3 4.g14 */ g13 1 16.g15 */ g13 1 8.g16 */ g13 3 16.g17 */ g13 5 16.g18 */ g13 7 16.g19 */ g13 9 16.g20 */ g13 11 16.g21 */ g13 3 4.g22 */ g13 13 16.g23 */ g13 7 8.g24 +- g9 g14 0.g25 +- g9 g16 0.g26 +- g9 g17 0.g27 +- g9 g21 0.g28 +- g11 g15 0.g29 +- g11 g18 0.g30 +- g11 g19 0.g31 +- g11 g20 0.g32 +- g11 g22 0.g33 +- g11 g23 0`.split(`.`),cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M hc g9 L g11 vc L g28 vc L g28 g10 L g33 g10 L g33 vc L g12 vc L g32 g26 L g32 g24 L g31 g24 L g31 g25 Z`},{f:`darkenLess`,s:0,d:`M g32 g26 L g32 g24 L g31 g24 L g31 g25 Z M g28 vc L g28 g10 L g29 g10 L g29 g27 L g30 g27 L g30 g10 L g33 g10 L g33 vc Z`},{f:`darken`,s:0,d:`M hc g9 L g11 vc L g12 vc Z M g29 g27 L g30 g27 L g30 g10 L g29 g10 Z`},{f:`none`,d:`M hc g9 L g31 g25 L g31 g24 L g32 g24 L g32 g26 L g12 vc L g33 vc L g33 g10 L g28 g10 L g28 vc L g11 vc Z M g31 g25 L g32 g26 M g33 vc L g28 vc M g29 g10 L g29 g27 L g30 g27 L g30 g10`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonInformation:{gd:[`dx2 */ ss 3 8`,`g9 +- vc 0 dx2`,`g11 +- hc 0 dx2`,`g13 */ ss 3 4`,`g14 */ g13 1 32`,`g17 */ g13 5 16`,`g18 */ g13 3 8`,`g19 */ g13 13 32`,`g20 */ g13 19 32`,`g22 */ g13 11 16`,`g23 */ g13 13 16`,`g24 */ g13 7 8`,`g25 +- g9 g14 0`,`g28 +- g9 g17 0`,`g29 +- g9 g18 0`,`g30 +- g9 g23 0`,`g31 +- g9 g24 0`,`g32 +- g11 g17 0`,`g34 +- g11 g19 0`,`g35 +- g11 g20 0`,`g37 +- g11 g22 0`,`g38 */ g13 3 32`],cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M hc g9 A dx2 dx2 3cd4 21600000 Z`},{f:`darken`,s:0,d:`M hc g9 A dx2 dx2 3cd4 21600000 Z M hc g25 A g38 g38 3cd4 21600000 M g32 g28 L g32 g29 L g34 g29 L g34 g30 L g32 g30 L g32 g31 L g37 g31 L g37 g30 L g35 g30 L g35 g28 Z`},{f:`lighten`,s:0,d:`M hc g25 A g38 g38 3cd4 21600000 M g32 g28 L g35 g28 L g35 g30 L g37 g30 L g37 g31 L g32 g31 L g32 g30 L g34 g30 L g34 g29 L g32 g29 Z`},{f:`none`,d:`M hc g9 A dx2 dx2 3cd4 21600000 Z M hc g25 A g38 g38 3cd4 21600000 M g32 g28 L g35 g28 L g35 g30 L g37 g30 L g37 g31 L g32 g31 L g32 g30 L g34 g30 L g34 g29 L g32 g29 Z`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonMovie:{gd:`dx2 */ ss 3 8.g9 +- vc 0 dx2.g10 +- vc dx2 0.g11 +- hc 0 dx2.g12 +- hc dx2 0.g13 */ ss 3 4.g14 */ g13 1455 21600.g15 */ g13 1905 21600.g16 */ g13 2325 21600.g17 */ g13 16155 21600.g18 */ g13 17010 21600.g19 */ g13 19335 21600.g20 */ g13 19725 21600.g21 */ g13 20595 21600.g22 */ g13 5280 21600.g23 */ g13 5730 21600.g24 */ g13 6630 21600.g25 */ g13 7492 21600.g26 */ g13 9067 21600.g27 */ g13 9555 21600.g28 */ g13 13342 21600.g29 */ g13 14580 21600.g30 */ g13 15592 21600.g31 +- g11 g14 0.g32 +- g11 g15 0.g33 +- g11 g16 0.g34 +- g11 g17 0.g35 +- g11 g18 0.g36 +- g11 g19 0.g37 +- g11 g20 0.g38 +- g11 g21 0.g39 +- g9 g22 0.g40 +- g9 g23 0.g41 +- g9 g24 0.g42 +- g9 g25 0.g43 +- g9 g26 0.g44 +- g9 g27 0.g45 +- g9 g28 0.g46 +- g9 g29 0.g47 +- g9 g30 0.g48 +- g9 g31 0`.split(`.`),cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M g11 g39 L g11 g44 L g31 g44 L g32 g43 L g33 g43 L g33 g47 L g35 g47 L g35 g45 L g36 g45 L g38 g46 L g12 g46 L g12 g41 L g38 g41 L g37 g42 L g35 g42 L g35 g41 L g34 g40 L g32 g40 L g31 g39 Z`},{f:`darken`,s:0,d:`M g11 g39 L g11 g44 L g31 g44 L g32 g43 L g33 g43 L g33 g47 L g35 g47 L g35 g45 L g36 g45 L g38 g46 L g12 g46 L g12 g41 L g38 g41 L g37 g42 L g35 g42 L g35 g41 L g34 g40 L g32 g40 L g31 g39 Z`},{f:`none`,d:`M g11 g39 L g31 g39 L g32 g40 L g34 g40 L g35 g41 L g35 g42 L g37 g42 L g38 g41 L g12 g41 L g12 g46 L g38 g46 L g36 g45 L g35 g45 L g35 g47 L g33 g47 L g33 g43 L g32 g43 L g31 g44 L g11 g44 Z`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonReturn:{gd:[`dx2 */ ss 3 8`,`g9 +- vc 0 dx2`,`g10 +- vc dx2 0`,`g11 +- hc 0 dx2`,`g12 +- hc dx2 0`,`g13 */ ss 3 4`,`g14 */ g13 7 8`,`g15 */ g13 3 4`,`g16 */ g13 5 8`,`g17 */ g13 3 8`,`g18 */ g13 1 4`,`g19 +- g9 g15 0`,`g20 +- g9 g16 0`,`g21 +- g9 g18 0`,`g22 +- g11 g14 0`,`g23 +- g11 g15 0`,`g24 +- g11 g16 0`,`g25 +- g11 g17 0`,`g26 +- g11 g18 0`,`g27 */ g13 1 8`],cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M g12 g21 L g23 g9 L hc g21 L g24 g21 L g24 g20 A g27 g27 0 cd4 L g25 g19 A g27 g27 cd4 cd4 L g26 g21 L g11 g21 L g11 g20 A g17 g17 cd2 -5400000 L hc g10 A g17 g17 cd4 -5400000 L g22 g21 Z`},{f:`darken`,s:0,d:`M g12 g21 L g23 g9 L hc g21 L g24 g21 L g24 g20 A g27 g27 0 cd4 L g25 g19 A g27 g27 cd4 cd4 L g26 g21 L g11 g21 L g11 g20 A g17 g17 cd2 -5400000 L hc g10 A g17 g17 cd4 -5400000 L g22 g21 Z`},{f:`none`,d:`M g12 g21 L g22 g21 L g22 g20 A g17 g17 0 cd4 L g25 g10 A g17 g17 cd4 cd4 L g11 g21 L g26 g21 L g26 g20 A g27 g27 cd2 -5400000 L hc g19 A g27 g27 cd4 -5400000 L g24 g21 L hc g21 L g23 g9 Z`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},actionButtonSound:{gd:[`dx2 */ ss 3 8`,`g9 +- vc 0 dx2`,`g10 +- vc dx2 0`,`g11 +- hc 0 dx2`,`g12 +- hc dx2 0`,`g13 */ ss 3 4`,`g14 */ g13 1 8`,`g15 */ g13 5 16`,`g16 */ g13 5 8`,`g17 */ g13 11 16`,`g18 */ g13 3 4`,`g19 */ g13 7 8`,`g20 +- g9 g14 0`,`g21 +- g9 g15 0`,`g22 +- g9 g17 0`,`g23 +- g9 g19 0`,`g24 +- g11 g15 0`,`g25 +- g11 g16 0`,`g26 +- g11 g18 0`],cxn:0,paths:[{s:0,d:`M l t L r t L r b L l b Z M g11 g21 L g11 g22 L g24 g22 L g25 g10 L g25 g9 L g24 g21 Z`},{f:`darken`,s:0,d:`M g11 g21 L g11 g22 L g24 g22 L g25 g10 L g25 g9 L g24 g21 Z`},{f:`none`,d:`M g11 g21 L g24 g21 L g25 g9 L g25 g10 L g24 g22 L g11 g22 Z M g26 g21 L g12 g20 M g26 vc L g12 vc M g26 g22 L g12 g23`},{f:`none`,d:`M l t L r t L r b L l b Z`}]},chartPlus:{paths:[{f:`none`,w:10,h:10,d:`M 5 0 L 5 10 M 0 5 L 10 5`},{s:0,w:10,h:10,d:`M 0 0 L 0 10 L 10 10 L 10 0 Z`}]},chartStar:{paths:[{f:`none`,w:10,h:10,d:`M 0 0 L 10 10 M 0 10 L 10 0 M 5 0 L 5 10`},{s:0,w:10,h:10,d:`M 0 0 L 0 10 L 10 10 L 10 0 Z`}]},chartX:{paths:[{f:`none`,w:10,h:10,d:`M 0 0 L 10 10 M 0 10 L 10 0`},{s:0,w:10,h:10,d:`M 0 0 L 0 10 L 10 10 L 10 0 Z`}]},cornerTabs:{gd:[`md mod w h 0`,`dx */ 1 md 20`,`y1 +- 0 b dx`,`x1 +- 0 r dx`],cxn:1,rect:`dx dx x1 y1`,paths:[{d:`M l t L dx t L l dx Z`},{d:`M l y1 L dx b L l b Z`},{d:`M x1 t L r t L r dx Z`},{d:`M r y1 L r b L x1 b Z`}]},plaqueTabs:{gd:[`md mod w h 0`,`dx */ 1 md 20`,`y1 +- 0 b dx`,`x1 +- 0 r dx`],cxn:1,rect:`dx dx x1 y1`,paths:[{d:`M l t L dx t A dx dx 0 cd4 Z`},{d:`M l y1 A dx dx 3cd4 cd4 L l b Z`},{d:`M r t L r dx A dx dx cd4 cd4 Z`},{d:`M x1 b A dx dx cd2 cd4 L r b Z`}]},squareTabs:{gd:[`md mod w h 0`,`dx */ 1 md 20`,`y1 +- 0 b dx`,`x1 +- 0 r dx`],cxn:[`cd2 l t`,`cd2 l dx`,`cd2 l y1`,`cd2 l b`,`cd2 dx dx`,`cd2 dx x1`,`3cd4 dx t`,`3cd4 x1 t`,`cd4 dx b`,`cd4 x1 b`,`0 r t`,`0 r dx`,`0 r y1`,`0 r b`,`0 x1 dx`,`0 x1 y1`],rect:`dx dx x1 y1`,paths:[{d:`M l t L dx t L dx dx L l dx Z`},{d:`M l y1 L dx y1 L dx b L l b Z`},{d:`M x1 t L r t L r dx L x1 dx Z`},{d:`M x1 y1 L r y1 L r b L x1 b Z`}]}});export{t as BUILT_IN,e as CXN_SHARED};
@@ -0,0 +1 @@
1
+ var e={DATESTRING:{s:`Converts a standard date code into a localized text string.`,p:{number:{d:`A numeric value representing a date code.`}},h:`Unimplemented Japanese.`},NUMBERSTRING:{s:`Converts a number into Japanese Kanji words.`,p:{number:{d:`A numeric value representing a date code.`},number2:{d:`A numeric value representing a date code.`}},h:`Unimplemented Japanese.`}};export{e as default};
@@ -0,0 +1 @@
1
+ var e={DATE:{s:`Returns the number that represents the date in date-time code.`,p:{year:{d:`is a number from 1900 or 1904 (depending on the workbook's date system) to 9999.`},month:{d:`is a number from 1 to 12 representing the month of the year.`},day:{d:`is a number from 1 to 31 representing the day of the month.`}}},DATEVALUE:{s:`Converts a date in the form of text to a number that represents the date as a date-time code.`,p:{dateText:{d:`is text that represents a date in date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999.`}}},DAY:{s:`Returns the day of the month, a number from 1 to 31.`,p:{serialNumber:{d:`is a number in the date-time code or text in time format, such as 16:48:00 or 4:48:00 PM.`}}},DAYS:{s:`Returns the number of days between the two dates.`,p:{endDate:{d:`startDate and endDate are the two dates between which you want to know the number of days.`},startDate:{d:`startDate and endDate are the two dates between which you want to know the number of days.`}}},EDATE:{s:`Returns the serial number of the date that is the indicated number of months before or after the start date.`,p:{startDate:{d:`is a serial date number that represents the start date.`},months:{d:`is the number of months before or after startDate.`}}},EOMONTH:{s:`Returns the serial number of the last day of the month before or after a specified number of months.`,p:{startDate:{d:`is a serial date number that represents the start date.`},months:{d:`is the number of months before or after the startDate.`}}},HOUR:{s:`Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).`,p:{serialNumber:{d:`is a number in the date-time code or text in time format, such as 16:48:00 or 4:48:00 PM.`}}},ISOWEEKNUM:{s:`Returns the ISO week number in the year for a given date.`,p:{date:{d:`is a number in the date-time code or text in time format, such as 16:48:00 or 4:48:00 PM.`}}},MINUTE:{s:`Returns the minute, a number from 0 to 59.`,p:{serialNumber:{d:`is a number in the date-time code or text in time format, such as 16:48:00 or 4:48:00 PM.`}}},MONTH:{s:`Returns the month, a number from 1 (January) to 12 (December).`,p:{serialNumber:{d:`is a number in the date-time code or text in date format.`}}},NETWORKDAYS:{s:`Returns the number of whole workdays between two dates.`,p:{startDate:{d:`is a serial date number that represents the start date.`},endDate:{d:`is a serial date number that represents the end date.`},holidays:{d:`is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays.`}}},"NETWORKDAYS.INTL":{s:`Returns the number of whole workdays between two dates with custom weekend parameters.`,p:{startDate:{d:`is a serial date number that represents the start date.`},endDate:{d:`is a serial date number that represents the end date.`},weekend:{d:`is a number or string specifying when weekends occur.`},holidays:{d:`is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays.`}}},NOW:{s:`Returns the current date and time formatted as a date and time.`,p:{}},SECOND:{s:`Returns the second, a number from 0 to 59.`,p:{serialNumber:{d:`is a number in the date-time code or text in time format, such as 16:48:23 or 4:48:47 PM.`}}},TIME:{s:`Converts hours, minutes, and seconds given as numbers to a date code, formatted with a time format.`,p:{hour:{d:`is a number from 0 to 23 representing the hour.`},minute:{d:`is a number from 0 to 59 representing the minute.`},second:{d:`is a number from 0 to 59 representing the second.`}}},TIMEVALUE:{s:`Converts a text time to a date code for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula.`,p:{timeText:{d:`is a text string that gives a time in any one of the time formats (date information in the string is ignored).`}}},TODAY:{s:`Returns the current date formatted as a date.`,p:{}},WEEKDAY:{s:`Returns a number from 1 to 7 identifying the day of the week of a date.`,p:{serialNumber:{d:`is a number that represents a date.`},returnType:{d:`is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3.`}}},WEEKNUM:{s:`Returns the week number in the year.`,p:{serialNumber:{d:`is the date-time code used for date and time calculation.`},returnType:{d:`is a number (1 or 2) that determines the type of the return value.`}}},WORKDAY:{s:`Returns the serial number of the date before or after a specified number of workdays.`,p:{startDate:{d:`is a serial date number that represents the start date.`},days:{d:`is the number of nonweekend and non-holiday days before or after startDate.`},holidays:{d:`is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays.`}}},"WORKDAY.INTL":{s:`Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters.`,p:{startDate:{d:`is a serial date number that represents the start date.`},days:{d:`is the number of nonweekend and non-holiday days before or after startDate.`},weekend:{d:`is a number or string specifying when weekends occur.`},holidays:{d:`is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays.`}}},YEAR:{s:`Returns the year of a date, an integer in the range 1900 - 9999.`,p:{serialNumber:{d:`is a number in the date-time code used for date and time calculation.`}}}},t={Weekend:{s:`The days a weekend falls on, for NETWORKDAYS.INTL and WORKDAY.INTL.`,m:{"Saturday, Sunday":{d:`The weekend is Saturday and Sunday.`},"Sunday, Monday":{d:`The weekend is Sunday and Monday.`},"Monday, Tuesday":{d:`The weekend is Monday and Tuesday.`},"Tuesday, Wednesday":{d:`The weekend is Tuesday and Wednesday.`},"Wednesday, Thursday":{d:`The weekend is Wednesday and Thursday.`},"Thursday, Friday":{d:`The weekend is Thursday and Friday.`},"Friday, Saturday":{d:`The weekend is Friday and Saturday.`},"Sunday only":{d:`The weekend is Sunday alone.`},"Monday only":{d:`The weekend is Monday alone.`},"Tuesday only":{d:`The weekend is Tuesday alone.`},"Wednesday only":{d:`The weekend is Wednesday alone.`},"Thursday only":{d:`The weekend is Thursday alone.`},"Friday only":{d:`The weekend is Friday alone.`},"Saturday only":{d:`The weekend is Saturday alone.`}}},WeekdayType:{s:`How WEEKDAY numbers the days of the week.`,m:{"Sunday (1) through Saturday (7)":{d:`Sunday is 1 and Saturday is 7.`},"Monday (1) through Sunday (7)":{d:`Monday is 1 and Sunday is 7.`},"Monday (0) through Sunday (6)":{d:`Monday is 0 and Sunday is 6.`},"Tuesday (1) through Monday (7)":{d:`Tuesday is 1 and Monday is 7.`},"Wednesday (1) through Tuesday (7)":{d:`Wednesday is 1 and Tuesday is 7.`},"Thursday (1) through Wednesday (7)":{d:`Thursday is 1 and Wednesday is 7.`},"Friday (1) through Thursday (7)":{d:`Friday is 1 and Thursday is 7.`},"Saturday (1) through Friday (7)":{d:`Saturday is 1 and Friday is 7.`}}},WeekNumType:{s:`The day a week begins on, for WEEKNUM.`,m:{"Week begins on Sunday":{d:`Weeks begin on Sunday; week 1 is the week containing January 1.`},"Week begins on Monday":{d:`Weeks begin on Monday; week 1 is the week containing January 1.`},"Week begins on Tuesday":{d:`Weeks begin on Tuesday; week 1 is the week containing January 1.`},"Week begins on Wednesday":{d:`Weeks begin on Wednesday; week 1 is the week containing January 1.`},"Week begins on Thursday":{d:`Weeks begin on Thursday; week 1 is the week containing January 1.`},"Week begins on Friday":{d:`Weeks begin on Friday; week 1 is the week containing January 1.`},"Week begins on Saturday":{d:`Weeks begin on Saturday; week 1 is the week containing January 1.`},"Week begins on Monday (ISO 8601)":{d:`Weeks begin on Monday; week 1 is the week containing the first Thursday of the year.`}}}};export{e as default,t as enums};
@@ -0,0 +1,7 @@
1
+ import{I as e}from"./ChSvXfVMLxZsP9zG.js";import{o as t,s as n,t as r}from"./BcOdl17EeFSxnAiq.js";var i=Object.freeze({NoBody:`SXL1001`,Anonymous:`SXL1002`,ParseError:`SXL1003`,InvalidParamType:`SXL2001`,InvalidReturnType:`SXL2002`,UndefinedInput:`SXL2003`,MissingType:`SXL2004`,UntypedArray:`SXL2005`,GenericArity:`SXL2006`,ContextNotFirst:`SXL2010`,MultipleLambda:`SXL2020`,LambdaNotLast:`SXL2021`,LambdaScalarMismatch:`SXL2022`,LambdaReturn:`SXL2023`,FunctionReturn:`SXL2024`,LambdaArity:`SXL2025`,ArrayDepth:`SXL2030`,RepeatingPosition:`SXL2040`,MultipleRepeating:`SXL2041`,RepeatingSlots:`SXL2042`,RepeatingOptional:`SXL2043`,RepeatingMax:`SXL2044`,EnumMixed:`SXL2050`,EnumMemberNotConstant:`SXL2051`,EnumNotLocal:`SXL2052`,EnumMissingAlias:`SXL2053`,EnumPosition:`SXL2054`,EnumOmittedValue:`SXL2055`,NoExports:`SXL3001`,UnknownParam:`SXL3002`,BuiltInName:`SXL3003`,UnknownReturnKind:`SXL3005`,InvalidName:`SXL3006`,DuplicateName:`SXL3007`,MissingSummary:`SXL9001`,MissingParamDescription:`SXL9002`,MissingReturns:`SXL9003`,EnumDuplicateValue:`SXL9004`,EnumMemberUndocumented:`SXL9005`}),a=[{name:`param`,group:`jsdoc`,description:`Document a parameter. A string union type becomes a dropdown of allowed options.`,snippet:"param ${1:name} ${2:description}"},{name:`returns`,aliases:[`return`],group:`jsdoc`,description:`Describe the return value.`},{name:`category`,group:`sheetxl`,description:`Group the function under a category in the function list.`,snippet:"category ${1:name}"},{name:`name`,group:`sheetxl`,description:`A name an identifier cannot spell: the name formulas call a function by (MY.FUNC), or an enum member's label.`,snippet:"name ${1:NAME}"},{name:`description`,group:`sheetxl`,description:`A longer description of the function.`},{name:`deprecated`,group:`sheetxl`,standalone:!0,description:`Mark the function as deprecated (optionally with a reason).`},{name:`hidden`,group:`sheetxl`,standalone:!0,description:`Hide the function from the function list.`},{name:`returnkind`,group:`sheetxl`,description:"Declare the value kind of the return (a ValueKind word, e.g. `number`, `array`, `reference`) where the type spelling cannot say it (a union return collapses to any).",snippet:"returnKind ${1:number}"},{name:`example`,group:`jsdoc`,description:`Provide a usage example.`},{name:`see`,group:`jsdoc`,description:`Reference a related function or link.`}],o=(()=>{let e=new Map;for(let t of a)if(e.set(t.name,t),t.aliases)for(let n of t.aliases)e.set(n,t);return e})();function s(e){return(function(e){if(!e)return;let t=(e.startsWith(`@`)?e.slice(1):e).toLowerCase();return o.get(t)})(e)?.standalone===!0}var c=new Map([[`IReferenceRange`,`p`],[`IRange`,`r`]]),l=new Set(Object.values(n).filter(e=>e!==n.Omitted)),u=new Map([[`IWorkbook`,`workbook`],[`IWorksheet`,`sheet`],[`ICellRanges`,`ranges`],[`ICellRange`,`range`]]),d=Array.from(u.keys()),f=(e,t)=>{Array.from(t.keys()).forEach(n=>{let r=t.get(n);t.set(`${e}.${n}`,r)})},p=new Map([[`Scalar`,`*`],[`Lambda`,`l`],[`FormulaError.Known`,r.Error],[`Date`,t.Date],[`IRichData`,t.RichData]]),m=new Map([[`Repeating`,`repeating`]]),h=new Set([`Flatten`,`SheetXL.Flatten`]),g=new Set([`AcceptError`]),_=new Set([`Omittable`]),v=new Set([`NoLift`]),y=new Set([`NoFilter`]),b=new Set([`Lazy`]),x=new Set([`ReportType`]),S=/^[a-zA-Z_-￿][a-zA-Z0-9_.-￿]*$/,C=/^([a-z]{1,3})([0-9]+)$/i,w=/^r[0-9]*c[0-9]*$/i,T=`SheetXL`,E=e=>{let t=e.typeName.getText();return t.startsWith(`${T}.`)?t.slice(8):t};f(T,c),f(T,u),f(T,m),g.add(T+`.AcceptError`),_.add(`${T}.Omittable`),v.add(`${T}.NoLift`),y.add(`${T}.NoFilter`),b.add(`${T}.Lazy`),x.add(`${T}.ReportType`);var D=new Map([[`Volatile`,()=>({volatile:!0})],[`${T}.Volatile`,()=>({volatile:!0})]]),O=`__scriptContext__`,k=`script`,A=new Set([`IScript.ScriptContext`,`${T}.IScript.ScriptContext`,`ScriptContext`]),j=(e,t)=>{let n=t.literal;if(n===void 0)return;let r=e.SyntaxKind;switch(n.kind){case r.StringLiteral:return n.text;case r.NumericLiteral:return parseFloat(n.text);case r.TrueKeyword:return!0;case r.FalseKeyword:return!1;case r.NullKeyword:return null;case r.PrefixUnaryExpression:return n.operator===r.MinusToken&&n.operand?.kind===r.NumericLiteral?-parseFloat(n.operand.text):void 0;default:return}},M=e=>{if(!e||e.length===0)return``;let t=``;for(let n=0;n<e.length;n++){let r=e[n],i=r.kind;if(i!==`link`){if(i===`linkName`){let i=e[n+1];if(i?.kind===`linkText`&&i.text.trim())continue;t+=r.text;continue}t+=i===`linkText`?r.text.trim():r.text}}return t.replace(/\r\n?/g,`
2
+ `).split(/\n[^\S\n]*\n\s*/).map(e=>e.split(`
3
+ `).map(e=>e.trim()).filter(Boolean).join(` `)).filter(Boolean).join(`
4
+ `).trim()};function N(t,n,a,o){let f=o?.builtInNames?.length?new Set(o.builtInNames.map(e=>e.toUpperCase())):null,N=[],P=new Map,F=[],I=null,L=(e,t,n,r)=>{let{start:i,length:a}=(e=>{if(!e||typeof e.getStart!=`function`)return{start:0,length:0};try{return{start:e.getStart(),length:e.getWidth()}}catch{return{start:0,length:0}}})(e);F.push({start:i,length:a,severity:n,code:t,message:r})},R=(e,t,n)=>{L(e,t,`error`,n)},z=e=>e?.parent?.name?.escapedText,B=null,V=(e,t,n,r,a=!1,o=!1,s=!1)=>{let c={count:0},l=Q(e,t,n,r,c,a,o,s);c.count>=2&&(t.range||(t.range=`m`,c.count-=2),!r&&c.count>=1&&(--c.count,c.count>0&&R(e,i.ArrayDepth,`Arrays of more than 2 dimensions are not supported: '${z(e)}'.`))),c.count>0&&(t.arrayDepth=c.count);let u=t.enum;return u&&(c.count>+!!s||t.range)&&!q.has(t)&&(t.valueOrRange||(R(e,i.EnumPosition,`A list cannot hold the enum '${u.id}': '${t.name??z(e)}'. Its members reach the body as they are, so nothing checks them against the enum. Take one value per argument ('...x: ${u.id}[]'), or type the list by its scalar ('${u.type}').`),delete t.enum)),l},H=(e,n,r,i,a)=>{if(n!==`Lambda`&&n!==`${T}.Lambda`)return!1;let o=e.typeArguments,s=`*`;if(o&&o.length===2){if(a&&o[0].kind===t.SyntaxKind.TupleType&&(r.lambdaArity=o[0].elements.length),o[1].kind===t.SyntaxKind.AnyKeyword)s=`raw`;else{let e={};Q(o[1],e,i,!1,{count:0}),s=e.scalar??`*`}}else if(o&&o.length===1&&o[0].kind!==t.SyntaxKind.TupleType&&o[0].kind!==t.SyntaxKind.ArrayType){if(a&&(r.lambdaArity=2),o[0].kind===t.SyntaxKind.AnyKeyword)s=`raw`;else{let e={};Q(o[0],e,i,!1,{count:0}),s=e.scalar??`*`}}return r.lambda=s,!0},U=new Map,W=new Map,G=new Map,K=new Set,q=new WeakSet,J=e=>e!==void 0&&e.getSourceFile()===n,Y=(t,n=!1)=>t.getJsDocTags(a).find(e=>e.name===`name`)?.text?.map(e=>e.text).join(``).trim()||(n?e.camelToPrettyCase(t.name):t.name),X=e=>{let t=e.getJsDocTags(a).find(e=>e.name===`deprecated`);if(t)return t.text?.map(e=>e.text).join(``).trim()||!0},Z=(e,o)=>{let s=t.isTypeReferenceNode(e)?e.typeName:void 0,c=s?a.getSymbolAtLocation(s):void 0,l=c?.declarations?.length?c:void 0;if(s){if(l&&l.flags&t.SymbolFlags.Alias)return void R(e,i.EnumNotLocal,`'${s.getText()}' is imported, so its declaration cannot be read: '${o}'. An enum must be declared in the module that uses it.`);if(!(l&&l.flags&t.SymbolFlags.Type)){let r=s.getText();return(l?(l.flags&t.SymbolFlags.Variable)!==0:n.statements.some(e=>t.isVariableStatement(e)&&e.declarationList.declarations.some(e=>t.isIdentifier(e.name)&&e.name.text===r)))?void R(e,i.EnumMissingAlias,`'${r}' is a value, not a type: '${o}'. Pair the object with a same-name type — 'type ${r} = typeof ${r}[keyof typeof ${r}];' — or declare it as 'enum ${r} { … }'.`):null}let r=U.get(l);if(r!==void 0)return r;if(K.has(l))return}let u=[],d=!1;if(l&&l.flags&t.SymbolFlags.Enum){if(!l.declarations?.some(J))return void R(e,i.EnumNotLocal,`'${l.name}' is not declared in this module: '${o}'. An enum must be declared in the module that uses it.`);d=!0;let n=!1;if(l.exports?.forEach(e=>{let r=e.valueDeclaration;if(!r||!t.isEnumMember(r))return;let o=a.getConstantValue(r);if(o===void 0)return R(r,i.EnumMemberNotConstant,`'${l.name}.${e.name}' is not a constant number or string. A formula passes the VALUE, so every member needs one that can be read at compile time.`),void(n=!0);u.push([Y(e,!0),o,r,M(e.getDocumentationComment(a)),X(e)])}),n)return void K.add(l)}else{let n=a.getTypeFromTypeNode(e),r=t.TypeFlags.Null|t.TypeFlags.Undefined|t.TypeFlags.Void,i=(n.isUnion()?n.types:[n]).filter(e=>!(e.flags&r)),o=[];for(let e of i){if(!(e.flags&(t.TypeFlags.NumberLiteral|t.TypeFlags.StringLiteral)))return l&&U.set(l,null),null;o.push(e.value)}if(o.length===0)return null;let s=l?.declarations?.find(e=>t.isTypeAliasDeclaration(e)),c=t.isUnionTypeNode(e)?e:s?.type;if(c&&t.isUnionTypeNode(c)){let e=c.types.map(e=>{let t=a.getTypeFromTypeNode(e);return t.isLiteral()?t.value:void 0}),t=t=>{let n=e.indexOf(t);return n<0?e.length:n};o.sort((e,n)=>t(e)-t(n))}let f=l&&l.flags&t.SymbolFlags.Variable?l.valueDeclaration:void 0,p=new Set(o);if(l&&f&&J(f))for(let e of a.getTypeOfSymbolAtLocation(l,f).getProperties()){let n=e.valueDeclaration,r=a.getTypeOfSymbolAtLocation(e,n??f);if(!(r.flags&(t.TypeFlags.NumberLiteral|t.TypeFlags.StringLiteral)))continue;let i=r.value;o.includes(i)&&(d=!0,p.delete(i),u.push([Y(e,!0),i,n,M(e.getDocumentationComment(a)),X(e)]))}for(let e of o)p.has(e)&&u.push([String(e),e,void 0,null])}if(u.length===0)return null;let f=typeof u[0][1]==`number`;if(u.some(([,e])=>typeof e==`number`!==f))return void R(e,i.EnumMixed,`'${l?.name??e.getText()}' mixes number and string members: '${o}'. A parameter has one type, so an enum is all numbers or all strings.`);let p=l?Y(l):u.map(([,e])=>String(e)).join(`|`),m=l?void 0:W.get(p);if(m)return m;if(d){let t=new Map;for(let[n,r,a,o]of u){let s=a?.name?.getText()??n,c=t.get(r);c===void 0?t.set(r,s):L(a??e,i.EnumDuplicateValue,`warning`,`'${p}.${s}' has the same value as '${p}.${c}' (${JSON.stringify(r)}). A formula passes the value, so the two cannot be told apart.`),o===``&&L(a??e,i.EnumMemberUndocumented,`warning`,`'${p}.${s}' is missing a description. Add a doc comment above the member — it is what the argument dropdown shows.`)}}let h={id:p,type:f?r.Number:r.String,members:u.map(([e,t,,,n])=>n?[e,t,n]:[e,t])};l?U.set(l,h):W.set(p,h);let g=l?M(l.getDocumentationComment(a)):``,_={};for(let[e,,,t]of u)t&&(_[e]={description:t});if(g||Object.keys(_).length>0){let e={};g&&(e.summary=g),Object.keys(_).length>0&&(e.members=_),G.set(h,e)}return h},Q=(e,n,a,o,s,l=!1,f=!1,S=!1)=>{if(e){if(e.kind===t.SyntaxKind.ParenthesizedType)return Q(e.type,n,a,o,s,l,f,S);if(e.kind===t.SyntaxKind.UnionType){let r=e=>e.kind===t.SyntaxKind.UndefinedKeyword||e.kind===t.SyntaxKind.VoidKeyword||e.kind===t.SyntaxKind.NullKeyword||e.kind===t.SyntaxKind.LiteralType&&e.literal?.kind===t.SyntaxKind.NullKeyword,u=e.types.filter(e=>!r(e));if(u.length===1)return Q(u[0],n,a,o,s,l,f,S);let d=Z(e,n.name??z(e));if(d===void 0)return;if(d!==null)return n.scalar=d.type,void(o&&(n.enum=d));if(!o)return void(n.scalar=`*`);if(u.length===2){let e=e=>e.kind===t.SyntaxKind.TypeReference&&t.isTypeReferenceNode(e)&&E(e)===`Lambda`,r=u.findIndex(e);if(r>=0&&!e(u[1-r]))return Q(u[1-r],n,a,o,s,l,f,S),void H(u[r],E(u[r]),n,a,o)}if(o&&u.length===2){let e=e=>{if(e.kind===t.SyntaxKind.TypeReference&&!e.typeArguments?.length)return c.get(E(e))},r=u.findIndex(t=>e(t)!==void 0);if(r>=0&&e(u[1-r])===void 0){let t={},i=s.count;if(Q(u[1-r],t,a,o,s,l,!1),t.scalar&&!t.range&&t.lambda==null&&s.count===i){n.range=e(u[r]),n.scalar=t.scalar,n.valueOrRange=!0;let i=t.enum;i&&(n.enum=i);return}}}if(o&&u.length===2){let r=e=>e.kind===t.SyntaxKind.TypeReference&&!e.typeArguments?.length&&E(e)===`Scalar`,i=u.findIndex(r);if(i>=0&&!r(u[1-i])){let t=Z(u[1-i],n.name??z(e));if(t===void 0)return;if(t!==null)return n.scalar=`*`,void(n.enum=t)}}R(e,i.InvalidParamType,`Union parameter types are not supported: '${z(e)}'. Use a single type, optionally with '| null' or '| undefined', 'T | Lambda<…>' for a value-or-lambda slot, 'IRange | Scalar' for a value-or-range slot, or 'E | Scalar' for an uncoerced slot whose values an enum documents.`);return}if(e.kind===t.SyntaxKind.NumberKeyword)n.scalar=r.Number;else if(e.kind===t.SyntaxKind.StringKeyword)n.scalar=r.String;else if(e.kind===t.SyntaxKind.BooleanKeyword)n.scalar=r.Boolean;else if(e.kind===t.SyntaxKind.UndefinedKeyword||e.kind===t.SyntaxKind.NullKeyword||e.kind===t.SyntaxKind.VoidKeyword){if(o)return void R(e,i.UndefinedInput,`'undefined' is not a valid type for input: '${z(e)}'.`);n.scalar=r.Null}else if(e.kind===t.SyntaxKind.BigIntKeyword)n.scalar=r.Number;else if(e.kind===t.SyntaxKind.AnyKeyword)o&&(n.range=`*`);else if(e.kind===t.SyntaxKind.ArrayType){let t=e.elementType;if(!t)return void R(e,i.UntypedArray,`'Array' must be typed: '${z(e)}'.`);if(o&&f){let r=n,i=r.name??z(e)??`parameter`,o=r.acceptError;delete r.acceptError;let s={name:i};V(t,s,a,!0),o&&!s.acceptError&&(s.acceptError=!0),r.repeating=[s];return}s.count++,Q(t,n,a,o,s)}else if(e.kind!==t.SyntaxKind.TupleType){if(e.kind===t.SyntaxKind.TypeReference){let r=E(e);if(g.has(r)){let t=z(e);if(!o)return void R(e,i.InvalidReturnType,`'${r}' is not a valid return type: '${t}'. It describes how an ARGUMENT is received.`);let c=n;if(c.acceptError)return void R(e,i.InvalidParamType,`'${t}' declares 'AcceptError' more than once.`);let u=e.typeArguments;return u&&u.length===1?(c.acceptError=!0,Q(u[0],n,a,o,s,l,f,S)):void R(e,i.GenericArity,`'${r}' must be typed with exactly 1 type: '${t}'.`)}if(x.has(r)){let t=n.name??z(e);if(!o)return void R(e,i.InvalidReturnType,`'ReportType' is not a valid return type: '${t}'. It describes how an ARGUMENT is received.`);let c=e.typeArguments;return c&&c.length===1?(n.reportType=!0,Q(c[0],n,a,o,s,l,f,S)):void R(e,i.GenericArity,`'${r}' must be typed with exactly 1 type: '${t}'.`)}if(v.has(r)){let t=n.name??z(e);if(!o)return void R(e,i.InvalidReturnType,`'NoLift' is not a valid return type: '${t}'. It describes how an ARGUMENT is received.`);let c=e.typeArguments;if(!c||c.length!==1)return void R(e,i.GenericArity,`'${r}' must be typed with exactly 1 type: '${t}'.`);let u=n;u.noLift=!0;let d=s.count;Q(c[0],n,a,o,s,l,f,S),(u.range||u.lambda!=null||u.repeating||s.count!==d)&&R(e,i.InvalidParamType,`'${t}': 'NoLift' applies to a SCALAR parameter only - a range, list, repeating or lambda slot never lifts.`);return}if(y.has(r)){let t=n.name??z(e);if(!o)return void R(e,i.InvalidReturnType,`'NoFilter' is not a valid return type: '${t}'. It describes how an ARGUMENT is received.`);let c=e.typeArguments;if(!c||c.length!==1)return void R(e,i.GenericArity,`'${r}' must be typed with exactly 1 type: '${t}'.`);let u=n;u.noFilter=!0;let d=s.count;if(Q(c[0],n,a,o,s,l,f,S),u.range||u.lambda!=null||s.count!==d)return void R(e,i.InvalidParamType,`'${t}': 'NoFilter' applies to a SCALAR slot only - a range, list or lambda slot has no members to coerce.`);let p=u.repeating;if(p){if(delete u.noFilter,p.length!==1)return void R(e,i.InvalidParamType,`'${t}': 'NoFilter' over a repeating group applies to a period-1 group only - write it on the slot that takes the members.`);p[0].noFilter=!0}else f&&R(e,i.InvalidParamType,`'${t}': 'NoFilter' applies to a REPEATING slot only - a single scalar argument has no members to coerce.`);return}if(_.has(r)){let c=n.name??z(e);if(!o)return void R(e,i.InvalidReturnType,`'Omittable' is not a valid return type: '${c}'. It describes how an ARGUMENT is received.`);let u=e.typeArguments;if(!u||u.length<1||u.length>2)return void R(e,i.GenericArity,`'${r}' must be typed with 1 or 2 types: '${c}'.`);let d=n;if(d.omittable=!0,u.length===2){let n=j(t,u[1]);if(n===void 0)return void R(e,i.InvalidParamType,`'${c}' declares '${r}' with a second type that is not a literal value. Use a number, string, boolean or null - the engine substitutes it for an omitted argument.`);d.omittedValue=n}let p=Q(u[0],n,a,o,s,l,f,S),m=d.omittedValue;return d.enum&&m!=null&&!d.enum.members.some(([,e])=>e===m)&&R(u[1],i.EnumOmittedValue,`'${c}': ${JSON.stringify(m)} is not a member of '${d.enum.id}'. An omitted argument must mean a member (${d.enum.members.map(([,e])=>JSON.stringify(e)).join(`, `)}) or null.`),p}if(b.has(r)){let c=n.name??z(e);if(!o)return void R(e,i.InvalidReturnType,`'Lazy' is not a valid return type: '${c}'. It describes how an ARGUMENT is received.`);let u=n;if(u.lazy)return void R(e,i.InvalidParamType,`'${c}' declares 'Lazy' more than once.`);let d=e.typeArguments;if(!d||d.length<1||d.length>2)return void R(e,i.GenericArity,`'${r}' must be typed with 1 or 2 types: '${c}'.`);if(u.lazy=!0,d.length===2){let n=j(t,d[1]);if(n===void 0)return void R(e,i.InvalidParamType,`'${c}' declares '${r}' with a second type that is not a literal value. Use a number, string, boolean or null - the engine substitutes it for an absent argument.`);u.optional=!0,u.defaultValue=n}Q(d[0],n,a,o,s,l,f,S),u.enum?(R(e,i.EnumPosition,`'${c}': 'Lazy' cannot hold the enum '${u.enum.id}'. The argument may never be evaluated, so there is no point at which it could be checked against the members.`),delete u.enum):u.lambda==null?u.repeating&&R(e,i.InvalidParamType,`'${c}': 'Lazy' applies to a VALUE, not to a repeating group - mark the group's slots instead.`):R(e,i.InvalidParamType,`'${c}': 'Lazy' cannot be combined with a Lambda parameter - a callable slot is already the body's to call, or not.`);return}if(h.has(r)){let t=n.name??z(e);if(!o)return void R(e,i.InvalidReturnType,`'Flatten' is not a valid return type: '${t}'. It describes how an ARGUMENT is received.`);let c=e.typeArguments;return c&&c.length===1?(s.count++,Q(c[0],n,a,o,s,l)):void R(e,i.GenericArity,`'${r}' must be typed with exactly 1 type: '${t}'.`)}if(m.get(r)===`repeating`){let c=n.name??z(e);if(!o)return void R(e,i.RepeatingPosition,`'Repeating' is not a valid return type: '${c}'.`);if(s.count!==0)return void R(e,i.RepeatingPosition,`'Repeating' cannot be nested inside another type: '${c}'.`);let u=n,d=e.typeArguments;if(!d||d.length<1||d.length>2)return void R(e,i.GenericArity,`'${r}' must be typed with 1 type, optionally followed by a maximum argument count: '${c}'.`);let p;if(d.length===2){let e=d[1],n=e.kind===t.SyntaxKind.LiteralType?e.literal:null,o=n&&n.kind===t.SyntaxKind.NumericLiteral?Number(n.text):NaN;if(!Number.isInteger(o)||o<1||o>255)return void R(e,i.RepeatingMax,`'${c}': '${r}'’s maximum must be a whole number between 1 and 255.`);p=o,a.maxArguments=o}if(S)return p===void 0?void R(e,i.RepeatingPosition,`'${c}' is a rest parameter and a repeating group. A group already repeats — drop the '...', or give the group a maximum ('Repeating<T, 254>') if the ceiling is all you meant.`):Q(d[0],n,a,o,s,l,f);let m=u.acceptError;delete u.acceptError;let h=((e,n,r,a)=>{let o=(e,t,n)=>{let i={name:e};return V(t,i,r,!0),n&&(i.optional=!0),a&&!i.acceptError&&(i.acceptError=!0),i};if(e.kind!==t.SyntaxKind.TupleType)return[o(n,e,!1)];let s=e.elements;if(s.length<2)return R(e,i.RepeatingSlots,`'${n}': a repeating group of period ${s.length} must be spelled 'Repeating<T>' without the tuple.`),null;let c=[];for(let e=0;e<s.length;e++){let r=s[e];if(r.kind!==t.SyntaxKind.NamedTupleMember)return R(r,i.RepeatingSlots,`'${n}': every slot of a repeating group must be labelled, e.g. 'Repeating<[criteriaRange: IRange, criteria: Scalar]>'.`),null;let a=!!r.questionToken;if(a&&e!==s.length-1)return R(r,i.RepeatingOptional,`'${n}': only the LAST slot of a repeating group may be optional (slot '${r.name?.getText?.()}' is not).`),null;c.push(o(r.name?.getText?.()??`${e}`,r.type,a))}return c})(d[0],c??`parameter`,a,m);h&&(u.repeating=h);return}let C=c.get(r),w=!1;C&&(n.range=C,w=!0);let k=p.get(r);if(k&&(n.scalar=k),k!==void 0&&(w=!0),H(e,r,n,a,o))return;if(o){if(r===`Volatile`||r===`${T}.Volatile`)return void R(e,i.InvalidParamType,`'Volatile' is not a valid parameter type: '${z(e)}'. It describes the function's RESULT, so it belongs on the return type.`);if(A.has(r))return O;let t=u.get(r);if(t)return t}else if(r===`Promise`)B=e,w=!0;else{let e=D.get(r);e&&(Object.assign(n,e()),w=!0)}if(!w){let t=Z(e,n.name??z(e));if(t===void 0)return;if(t!==null)return n.scalar=t.type,void(o&&(n.enum=t))}if(!w){let t=`number, string, boolean, Scalar, Lambda, Date, FormulaError.Known, IRichData, IRange, IReferenceRange (and arrays of these; optionally wrapped in AcceptError<T>, or grouped with Repeating<T>)`,n;n=o?l?`'${r}' is not a valid first parameter: '${z(e)}'. The first parameter is EITHER a macro target (making this a macro) OR a calculation input (making this a calculation function). Allowed: ${d.join(`, `)} (macro target); ${t} (calculation input).`:`'${r}' is not a valid parameter type: '${z(e)}'. Allowed: ${t}.`:`'${r}' is not a valid return type: '${z(e)}'. Allowed: number, string, boolean, Scalar, Date, FormulaError.Known, IRichData, IRange, Volatile<T> (and arrays of these).`,R(e,o?i.InvalidParamType:i.InvalidReturnType,n);return}let M=e.typeArguments;if(M){if(M.length!==1)return void R(e,i.GenericArity,`'${r}' must be typed with exactly 1 type: '${z(e)}'.`);let s=M[0],c=o&&t.isTypeReferenceNode(s)&&x.has(E(s)),l=n.reportType;c&&q.add(n),V(s,n,a,o),c&&l===void 0&&delete n.reportType;let u=n.enum;u&&!c&&(R(M[0],i.EnumPosition,`'${r}' cannot hold the enum '${u.id}': '${z(e)}'. The members of a range reach the body as they are, so nothing checks them against the enum. Take the enum as a value, or type the range by its scalar ('${r}<${u.type}>').`),delete n.enum)}}else e.kind===t.SyntaxKind.FunctionType&&((e,n,r,a)=>{if(!a)return void R(e,i.FunctionReturn,`Function type is not a valid return type: '${z(e)}'. Declare a 'Lambda' return instead.`);let o=e.type,s={},c=`*`;o&&(o.kind===t.SyntaxKind.AnyKeyword?c=`raw`:(Q(o,s,r,!1,{count:0}),c=s.scalar??`*`));let l=e.parameters;l&&!l.some(e=>e.dotDotDotToken)&&(n.lambdaArity=l.length),n.lambda=c})(e,n,a,o)}}else R(e,i.MissingType,`Type is not defined for '${n?.name??`return`}'.`)};try{t.forEachChild(n,e=>{if((e=>(t.getCombinedModifierFlags(e)&t.ModifierFlags.Export)!==0)(e)&&t.isFunctionDeclaration(e)){let n=e?.name?.getText();if(!e.body)return void R(e,i.NoBody,`'${n}': function has no body.`);if(!n)return void R(e,i.Anonymous,`Anonymous exported functions are not allowed.`);let r={},c={parameters:{}};try{r.name=n;let u=M(a.getSymbolAtLocation(e.name)?.getDocumentationComment(a));u&&(c.summary=u);let d={};B=null,V(e.type,d,r,!1),r.returnType=d;let p={};(e=>(t.getCombinedModifierFlags(e)&t.ModifierFlags.Default)!==0)(e)&&(p.default=!0,I=n),r.parameters=[];let m=new Map,h=new Map,g=new Set,_=null,v=null,y=null,b=0,x=!1,T=0;for(let n=0;n<e.parameters.length;n++){let s=e.parameters[n],l={};l.name=s.name?.getText();let u=r.parameters.length===0;if(o?.lenient&&n===0&&!s.type&&p.default){r.context=k;continue}let d=V(s.type,l,r,!0,u,!s.dotDotDotToken,!!s.dotDotDotToken);if(d===O){n===0&&r.context===void 0&&(r.context=k);continue}if(d){if(r.parameters.length!==0)return void R(s,i.ContextNotFirst,`'${r.name}' contexts must be the first parameter: '${l.name}'.`);r.context=d;continue}if(l.lambda!==void 0){if(_!==null)return void R(s,i.MultipleLambda,`'${r.name}' has more than one Lambda parameter ('${_}' and '${l.name}'). Only one Lambda parameter is allowed.`);_=l.name}else if(_!==null)return void R(s,i.LambdaNotLast,`'${r.name}' Lambda parameter ('${_}') must be the last parameter, but '${l.name}' follows it.`);let f=l.optional===!0||s.initializer!==void 0&&s.initializer!==null||s.questionToken!==void 0&&s.questionToken!==null,S;if(f&&(l.optional=!0,s.initializer))try{if(s.initializer.kind===t.SyntaxKind.StringLiteral)S=s.initializer.text;else if(s.initializer.kind===t.SyntaxKind.NumericLiteral)S=parseFloat(s.initializer.text);else if(s.initializer.kind===t.SyntaxKind.TrueKeyword||s.initializer.kind===t.SyntaxKind.FalseKeyword)S=s.initializer.kind===t.SyntaxKind.TrueKeyword;else if(s.initializer.kind===t.SyntaxKind.NullKeyword)S=null;else if(t.isPrefixUnaryExpression(s.initializer)&&s.initializer.operator===t.SyntaxKind.MinusToken&&s.initializer.operand.kind===t.SyntaxKind.NumericLiteral)S=-parseFloat(s.initializer.operand.text);else if(t.isPropertyAccessExpression(s.initializer)||t.isElementAccessExpression(s.initializer)){let e=a.getTypeAtLocation(s.initializer);e.flags&(t.TypeFlags.NumberLiteral|t.TypeFlags.StringLiteral)&&(S=e.value)}}catch(e){console.warn(`Couldn't extract default value for parameter '${l.name}'`,e)}s.dotDotDotToken&&(l.rest=!0);let C=l.repeating;if(C){if(l.rest)return void R(s,i.RepeatingPosition,`'${r.name}' parameter '${l.name}' is both a rest parameter and a repeating group. A group already repeats — drop the '...'.`);if(f&&C.length===1)return void R(s,i.RepeatingOptional,`'${r.name}' parameter '${l.name}' cannot be an optional repeating group. Use '...${l.name}: T[]' for zero-or-more, or drop the '?' for one-or-more.`);if(v!==null)return void R(s,i.MultipleRepeating,`'${r.name}' has more than one repeating group ('${v}' and '${l.name}'). Only one is allowed — two would make the argument count ambiguous.`);if(y!==null)return void R(s,i.RepeatingOptional,`'${r.name}' parameter '${y}' is optional and precedes the repeating group '${l.name}'. Every parameter outside a group must be required.`);v=l.name,b=C.length,x=C[C.length-1].optional===!0}else{if(v!==null&&l.rest)return void R(s,i.RepeatingOptional,`'${r.name}' parameter '${l.name}' is a rest parameter and follows the repeating group '${v}'. Two variadic tails would make the argument count ambiguous.`);if(v!==null&&f){if(T>=b-1)return void R(s,i.RepeatingOptional,b===1?`'${r.name}' parameter '${l.name}' is optional and follows the period-1 repeating group '${v}'. One more argument is indistinguishable from one more repetition — make it required, or give the group a period.`:`'${r.name}' has ${T+1} optional parameters after the repeating group '${v}', which has period ${b}. At most ${b-1} may be optional, or the argument count no longer decides the parse.`);if(x)return void R(s,i.RepeatingOptional,`'${r.name}' parameter '${l.name}' is optional and follows '${v}', whose own last slot is already optional. Both omissions reach the same argument count — drop one.`);T++}}f&&!C&&(y=l.name);let w=(l.range?2:0)+(l.arrayDepth??0),E=l.range===`r`||l.range===`p`||l.range===`*`,D=l.rest||E?3:2;if(w>D)return void R(s,i.ArrayDepth,`'${r.name}' parameter '${l.name}' has an array depth of ${w}; the maximum is ${D}${l.rest?` for a rest parameter`:` (use a rest parameter for one more level, or an IRange)`}.`);r.parameters.push(l);let A={description:``};c.parameters[l.name]=A,A.description=M(a.getSymbolAtLocation(s.name)?.getDocumentationComment(a)),S!==void 0&&(l.defaultValue=S);for(let e of[l,...l.repeating??[]]){let t=e.enum?G.get(e.enum):void 0;t&&((c.enums??={})[e.enum.id]=t)}if(m.set(l.name,l),h.set(l.name,s),C&&C.length>1){g.add(l.name);for(let e of C){let t=`${l.name}.${e.name}`;c.parameters[t]={description:``},m.set(t,e),h.set(t,s)}}}let E=r.maxArguments;if(E!==void 0){let t=r.parameters??[];if(!t.some(e=>e.rest===!0||e.repeating!==void 0))return void R(e,i.RepeatingMax,`'${r.name}' declares a maximum of ${E} arguments but takes a fixed ${t.length}. A maximum only means something on a variadic tail.`);let n=0;for(let e of t)e.rest!==!0&&e.optional!==!0&&(n+=e.repeating?e.repeating.length:1);if(E<n)return void R(e,i.RepeatingMax,`'${r.name}' declares a maximum of ${E} arguments but requires ${n}.`)}if(e.jsDoc&&e.jsDoc.length>0){let t=e.jsDoc,a=t.length;for(let e=0;e<a;e++){let a=t[e]?.tags;if(!a)continue;let o=a.length;for(let e=0;e<o;e++){let t=a[e],o=t?.tagName?.text;if(!o)continue;o=o.toLowerCase();let u=t.comment,d=s(o);if(typeof u==`string`||d){if(typeof u==`string`&&(u=u.replace(/\r\n?/g,`
5
+ `).trim()),d||!u||(u=u.split(`
6
+ `)[0].trim(),u&&u.length!==0)){if(u&&typeof u==`string`){let e=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g,t,n=u,r=[];for(;(t=e.exec(u))!==null;){let[e,n,r,i]=t,a=[r.trim()];i&&a.push(i.trim())}u=n,r.length>0&&o===`see`&&(c.links||=[],c.links.push(...r))}if(o===`name`){let e=u;e!==n&&(c.name=e)}else if(o!==`description`){if(o===`param`){let e=t.name?.getText?.()??t.name?.text;if(!m.get(e)){R(t,i.UnknownParam,`Parameter '${e}' not found in function '${n}'.`);continue}let r=c.parameters?.[e];r&&!r.description&&typeof u==`string`&&u&&(r.description=u)}else if(o===`returns`||o===`return`)r.returnType.description=u;else if(o===`returnkind`){let e=(u??``).trim().toLowerCase();l.has(e)?r.returnType.kind=e:R(t,i.UnknownReturnKind,`'@returnKind ${e}' is not a known value kind. Known: ${[...l].map(e=>`'${e}'`).join(`, `)}.`)}else if(o===`category`)c.category=u;else if(o===`deprecated`||o===`hidden`){let e=!0,t=u?.toLowerCase();t===`false`?e=!1:t!==`true`&&(e=u),e!==!1&&(c.deprecated=e??!0,r.hidden=!0)}}}}else o===`returnkind`&&R(t,i.UnknownReturnKind,`'@returnKind' needs a value kind. Known: ${[...l].map(e=>`'${e}'`).join(`, `)}.`)}}}if(!r.context&&B)return void R(B,i.InvalidReturnType,`'${n}': Promise<T> is not a valid return type for a calculation function. Return the value the cell shows now, and call FormulaContext.defer(executor, payload) to deliver the result later.`);Object.keys(r.returnType).length===0&&delete r.returnType,Object.keys(p).length>0&&(r.behavior=p),c.summary||L(e.name??e,i.MissingSummary,`warning`,`'${n}': missing a description. Add a JSDoc comment above the function.`);let D=!r.context,A=D&&c.name||n;if(D&&!S.test(A)){let t=c.name?`'@name ${c.name}'`:`'${A}'`;R(e.name??e,i.InvalidName,`'${n}': ${t} cannot be called from a formula. A function name starts with a letter or '_', and continues with letters, digits, '_' or '.'.`+(c.name?``:` Add an '@name' tag to register it under another name.`));return}if(D&&!o?.isBuiltIn&&(e=>{if(w.test(e))return!0;let t=C.exec(e);if(!t)return!1;let n=0;for(let e of t[1].toUpperCase())n=26*n+(e.charCodeAt(0)-64);let r=Number(t[2]);return n<=16384&&r>=1&&r<=1048576})(A)){let t=c.name?`'@name ${c.name}'`:`'${A}'`;R(e.name??e,i.InvalidName,`'${n}': ${t} cannot be called from a formula. It reads as a cell address.`+(c.name?``:` Add an '@name' tag to register it under another name.`));return}let j=P.get(A.toUpperCase());if(j!==void 0)return void R(e.name??e,i.DuplicateName,`'${n}': '${A}' is already the name of '${j}' in this module.`);if(P.set(A.toUpperCase(),n),D&&f?.has(A.toUpperCase()))return void R(e.name??e,i.BuiltInName,`'${A}' is a built-in function. Choose a different name - a calculation function cannot replace a built-in.`);if(D){let e=c.parameters??{};for(let[t,r]of Object.entries(e))if(!g.has(t)&&!r.description){let e=h.get(t);L(e,i.MissingParamDescription,`warning`,`'${n}': parameter '${t}' is missing a description. Add an '@param ${t}' tag.`)}}N.push([r,c])}catch(t){R(e,i.ParseError,`'${n}': ${t.message}`)}}})}catch(e){R(void 0,i.ParseError,`Unable to analyze module: ${e?.message??e}`)}return{functions:N,autoRun:I,diagnostics:F}}function P(e,t,n){let r=`script.ts`,i=`lib.d.ts`,a={[r]:t??``,[i]:``},o=e.createProgram([r],{allowJs:!0,noResolve:!0,noLib:!0,isolatedModules:!0,module:99,target:e.ScriptTarget.ES2020},{getSourceFile:t=>{let n=a[t];if(n!==void 0)return e.createSourceFile(t,n,e.ScriptTarget.Latest,!0)},fileExists:e=>a[e]!==void 0,readFile:e=>a[e],writeFile:()=>{},getCurrentDirectory:()=>`./`,getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:()=>i,getNewLine:()=>`
7
+ `}),s=o.getTypeChecker(),c=o.getSourceFile(r);return c?N(e,c,s,n).diagnostics:[]}export{i,N as n,a as r,P as t};
@@ -0,0 +1 @@
1
+ import{Z as e}from"./ChSvXfVMLxZsP9zG.js";import{a as t}from"./DcrVJCyDwGKeil2U.js";import{i as n}from"./BcOdl17EeFSxnAiq.js";var r=[`linkedCell`,`listFillRange`],i=/^(?:'((?:[^']|'')+)'|([^'!]+))!([^!]+)$/,a=Object.freeze([]),o=e(`op.setControlCaption`),s=e(`op.setControlMacro`),c=e(`op.setControlLink`),l=e(`op.setControlValue`),u=e(`op.setControlRange`),d=e(`op.setControlItems`),f=class extends t{constructor(e){let n=e.typeDescription??`Control`,r=e.name;!r&&e.getMovable&&(r=`${n} ${++t.instanceCounter}`),super({...e,name:r}),this._references=[],this._type=e.type,this._typeDescription=n,e.json&&(this._updateState({data:e.json}),this._reconcileReferences())}getType(){return this._type}getTypeDescription(){return this._typeDescription}getShapeId(){return this._data()?.shapeId??null}_getSourceId(){return this._data()?.shapeId??void 0}_ensureSourceId(t){let n=this._data()?.shapeId;if(typeof n==`number`)return n;let r=t();return this._set({shapeId:r},e(`op.connectShape`)),r}getMacro(){return this._data()?.macro??null}setMacro(e,t){return this._set({macro:e??void 0},s,t)}toJSON(e){let t=this._data();if(!t)return null;let n={...t};for(let e of r){let t=this._reference(e);t!==null&&(n[e]=t)}let i=this._linkedState();if(i)for(let e in i){let t=i[e];t===void 0?delete n[e]:n[e]=t}return n}get isIFormControl(){return!0}_data(){return this._getState()?.data??null}_reference(e){let t=this._data()?.[e];if(!t)return null;let n=this._referenceOf(t),r=n?.formula?.getExpression()??null;if(r===null||r===n.wired)return t;if(t.includes(`!`))return r;let a=i.exec(r);if(!a)return r;let o=a[1]===void 0?a[2]:a[1].replace(/''/g,`'`),s=this.getMovable()?.getRange().getWorksheet().getName();return s&&s.toLowerCase()===o.toLowerCase()?a[3]:r}_linkedRange(e=this._reference(`linkedCell`)){if(!e||e.includes(`#REF!`))return null;try{return e.includes(`!`)?this._resolveRange(e):this.getMovable()?.getRange().getWorksheet().getRange(e)??null}catch{return null}}_linkedValue(){let e=this._linkedRange();return e?e.getValue():void 0}_linkedState(){return null}_referenceOf(e){for(let t=0;t<this._references.length;t++)if(this._references[t].source===e)return this._references[t]}_reconcileReferences(){let e=this._data(),t=new Set;for(let n of r){let r=e?.[n];typeof r==`string`&&r&&t.add(r)}for(let e of this._references)t.delete(e.source)?e.remove||this._watch(e):e.remove&&=(e.remove(),null);for(let e of t){let t={source:e,formula:null,wired:null,remove:null};this._references.push(t),this._watch(t)}}_watch(e){e.remove=this._addWatch(e.formula??e.source,t=>{e.formula=t.formula,e.wired??=t.formula.getExpression()})}_processRestoreOrRevert(e,t){super._processRestoreOrRevert(e,t),this.isDeleted()||this._reconcileReferences()}_set(e,t,n){this._protectionCheck(t);let i=this._data();if(!i)return this;let a={...i,...e};for(let t in e)a[t]===void 0&&delete a[t];return this._updateState({data:a},{...n,description:t},[`onAnyChange`]),r.some(t=>t in e)&&this._reconcileReferences(),this}},p=class extends f{getCaption(){return this._data()?.caption??null}setCaption(e,t){return this._set({caption:e??void 0},o,t)}getFont(){return this._data()?.font??null}},m=class extends f{getLinkedCell(){return this._reference(`linkedCell`)}getLinkedRange(){return this._linkedRange(this.getLinkedCell())}setLinkedCell(e,t){return this._set({linkedCell:e??void 0},c,t)}},h=class extends p{getLinkedCell(){return this._reference(`linkedCell`)}getLinkedRange(){return this._linkedRange(this.getLinkedCell())}setLinkedCell(e,t){return this._set({linkedCell:e??void 0},c,t)}},g=class extends p{constructor(e){super({...e,type:`button`,typeDescription:`Button`})}},_=class extends p{constructor(e){super({...e,type:`groupBox`,typeDescription:`Group Box`})}},v=class extends p{constructor(e){super({...e,type:`label`,typeDescription:`Label`})}},y=class extends h{constructor(e){super({...e,type:`checkBox`,typeDescription:`Check Box`})}isChecked(){let e=this._linkedState();return e?!0===e.checked:!0===this._data()?.checked}setChecked(e,t){let n=this._linkedRange();return n?(n.setValue(e,t),this):this._set({checked:e||void 0,mixed:void 0},l,t)}isMixed(){let e=this._linkedState();return e?!0===e.mixed:!0===this._data()?.mixed}setMixed(e,t){let r=this._linkedRange();return r?(r.setValue(!!e&&n.BuiltIn.NA,t),this):this._set({mixed:e||void 0},l,t)}_linkedState(){let e=this._linkedValue();return e===void 0?null:e?.isFormulaError?{checked:void 0,mixed:e.getCode()===n.Code.NA||void 0}:{checked:!0===e||typeof e==`number`&&e!==0||void 0,mixed:void 0}}},b=class e extends h{constructor(e){super({...e,type:`optionButton`,typeDescription:`Option Button`})}getLinkedCell(){let e=super.getLinkedCell();if(e)return e;let t=this._group();for(let e=0;e<t.length;e++){let n=t[e]===this?null:t[e]._ownLinkedCell();if(n)return n}return null}isChecked(){let e=this._linkedState();return e?!0===e.checked:!0===this._data()?.checked}setChecked(e,t){let n=this._linkedRange(this.getLinkedCell());return n?(e?n.setValue(this._group().indexOf(this)+1,t):this.isChecked()&&n.setValue(null,t),this):this._set({checked:e||void 0},l,t)}_linkedState(){let e=this._linkedRange(this.getLinkedCell());if(!e)return null;let t=e.getValue();return{checked:typeof t==`number`&&t===this._group().indexOf(this)+1||void 0}}_ownLinkedCell(){return super.getLinkedCell()}_group(){let t=this.getMovable()?.getRange().getWorksheet().getMovables().getItems()??[],n=[],r=!1;for(let i=0;i<t.length;i++){let a=t[i].getContent();if(a instanceof e){if(a._data()?.formProps?.firstButton===`1`&&n.length>0){if(r)break;n=[]}n.push(a),a===this&&(r=!0)}}return r?n:[this]}},x=class extends m{getValue(){let e=this._linkedState();return e?e.value??null:this._data()?.value??null}setValue(e,t){let n=this._linkedRange();return n?(n.setValue(e,t),this):this._set({value:e??void 0},l,t)}_linkedState(){let e=this._linkedValue();if(e===void 0)return null;if(typeof e!=`number`)return{value:this._data()?.value};let t=this.getMin()??0,n=this.getMax()??100;return{value:Math.min(Math.max(e,Math.min(t,n)),Math.max(t,n))}}getMin(){return this._data()?.min??null}setMin(e,t){return this._set({min:e??void 0},u,t)}getMax(){return this._data()?.max??null}setMax(e,t){return this._set({max:e??void 0},u,t)}getIncrement(){return this._data()?.increment??null}setIncrement(e,t){return this._set({increment:e??void 0},u,t)}},S=class extends x{constructor(e){super({...e,type:`scrollBar`,typeDescription:`Scroll Bar`})}getPageIncrement(){return this._data()?.pageIncrement??null}setPageIncrement(e,t){return this._set({pageIncrement:e??void 0},u,t)}isHorizontal(){let e=this.getMovable()?.getBounds();return e&&e.width>0&&e.height>0?e.width>e.height:!0===this._data()?.horizontal}toJSON(e){let t=super.toJSON(e);return t?(this.isHorizontal()?t.horizontal=!0:delete t.horizontal,t):null}},C=class extends x{constructor(e){super({...e,type:`spinner`,typeDescription:`Spinner`})}},w=class extends m{getItems(){return this._data()?.items??a}setItems(e,t){return this._set({items:e.length>0?[...e]:void 0},d,t)}getListItems(){if(!this.getListFillRange())return this.getItems();let e=this.getListSourceRange(),t=e?.getUsedRange({features:[]});if(!e||!t)return a;let n=e.getCoords(),r=Math.min(t.getCoords().rowEnd,n.rowStart+32767-1);return e.getWorksheet().getRange({rowStart:n.rowStart,colStart:n.colStart,rowEnd:r,colEnd:n.colStart}).getCells().map(e=>e[0].getText({hideStringPrefix:!0}))}getListFillRange(){return this._reference(`listFillRange`)}getListSourceRange(){return this._linkedRange(this.getListFillRange())}setListFillRange(e,t){return this._set({listFillRange:e??void 0},c,t)}getSelectedIndex(){let e=this._linkedState();return e?e.selectedIndex??null:this._data()?.selectedIndex??null}setSelectedIndex(e,t){let n=this._linkedRange();return n?(n.setValue(e===null?null:e+1,t),this):this._set({selectedIndex:e??void 0},l,t)}_linkedState(){let e=this._linkedValue();if(e===void 0)return null;let t=typeof e==`number`?Math.trunc(e):0;return{selectedIndex:t>=1?t-1:void 0}}},T=class extends w{constructor(e){super({...e,type:`listBox`,typeDescription:`List Box`})}},E=class extends w{constructor(e){super({...e,type:`dropDown`,typeDescription:`Drop Down`})}getDropStyle(){return this._data()?.dropStyle??null}getDropLines(){return this._data()?.dropLines??null}};export{g as Button,p as CaptionedControl,h as CaptionedLinkedControl,y as CheckBox,E as DropDown,f as FormControl,_ as GroupBox,v as Label,m as LinkedControl,T as ListBox,w as ListControl,b as OptionButton,x as RangedControl,S as ScrollBar,C as Spinner};
@@ -0,0 +1 @@
1
+ import{t as e}from"./nHThFXCAZFOM_npq.js";var t=2*Math.PI;function n(e,t){let n=Math.cos(t),r=Math.sin(t),i=Math.cos(e.phi),a=Math.sin(e.phi);return{x:e.cx+e.rx*n*i-e.ry*r*a,y:e.cy+e.rx*n*a+e.ry*r*i}}function r(e,t){switch(e.k){case`L`:return{x:e.x0+(e.x1-e.x0)*t,y:e.y0+(e.y1-e.y0)*t};case`Q`:{let n=1-t;return{x:n*n*e.x0+2*n*t*e.cx+t*t*e.x1,y:n*n*e.y0+2*n*t*e.cy+t*t*e.y1}}case`C`:{let n=1-t,r=n*n*n,i=3*n*n*t,a=3*n*t*t,o=t*t*t;return{x:r*e.x0+i*e.c1x+a*e.c2x+o*e.x1,y:r*e.y0+i*e.c1y+a*e.c2y+o*e.y1}}case`A`:return n(e,e.t0+e.dt*t)}}function i(e,t){switch(e.k){case`L`:return{x:e.x1-e.x0,y:e.y1-e.y0};case`Q`:{let n=1-t;return{x:2*n*(e.cx-e.x0)+2*t*(e.x1-e.cx),y:2*n*(e.cy-e.y0)+2*t*(e.y1-e.cy)}}case`C`:{let n=1-t;return{x:3*n*n*(e.c1x-e.x0)+6*n*t*(e.c2x-e.c1x)+3*t*t*(e.x1-e.c2x),y:3*n*n*(e.c1y-e.y0)+6*n*t*(e.c2y-e.c1y)+3*t*t*(e.y1-e.c2y)}}case`A`:{let n=e.t0+e.dt*t,r=Math.cos(n),i=Math.sin(n),a=Math.cos(e.phi),o=Math.sin(e.phi),s=e.dt<0?-1:1;return{x:s*(-e.rx*i*a-e.ry*r*o),y:s*(-e.rx*i*o+e.ry*r*a)}}}}var a=new WeakMap;function o(e){let t=a.get(e);if(t)return t;if(e.k===`L`){let n=Math.hypot(e.x1-e.x0,e.y1-e.y0);t={cum:new Float64Array([0,n]),total:n}}else{let n=function(e){let t;switch(e.k){case`Q`:t=Math.hypot(e.cx-e.x0,e.cy-e.y0)+Math.hypot(e.x1-e.cx,e.y1-e.cy);break;case`C`:t=Math.hypot(e.c1x-e.x0,e.c1y-e.y0)+Math.hypot(e.c2x-e.c1x,e.c2y-e.c1y)+Math.hypot(e.x1-e.c2x,e.y1-e.c2y);break;case`A`:t=Math.abs(e.dt)*Math.max(e.rx,e.ry);break;default:t=0}return Math.min(256,Math.max(32,Math.ceil(t)))}(e),i=new Float64Array(n+1),a=r(e,0);for(let t=1;t<=n;t++){let o=r(e,t/n);i[t]=i[t-1]+Math.hypot(o.x-a.x,o.y-a.y),a=o}t={cum:i,total:i[n]}}return a.set(e,t),t}function s(e){return o(e).total}function c(e,t){let{cum:n,total:r}=o(e);if(!(r>0)||t<=0)return 0;if(t>=r)return 1;let i=n.length-1,a=0,s=i;for(;s-a>1;){let e=a+s>>1;n[e]<=t?a=e:s=e}let c=n[s]-n[a];return(a+(c>0?(t-n[a])/c:0))/i}var l=(e,t,n)=>e+(t-e)*n;function u(e,t){switch(e.k){case`L`:{let n=r(e,t);return[{k:`L`,x0:e.x0,y0:e.y0,x1:n.x,y1:n.y},{k:`L`,x0:n.x,y0:n.y,x1:e.x1,y1:e.y1}]}case`Q`:{let n=l(e.x0,e.cx,t),r=l(e.y0,e.cy,t),i=l(e.cx,e.x1,t),a=l(e.cy,e.y1,t),o=l(n,i,t),s=l(r,a,t);return[{k:`Q`,x0:e.x0,y0:e.y0,cx:n,cy:r,x1:o,y1:s},{k:`Q`,x0:o,y0:s,cx:i,cy:a,x1:e.x1,y1:e.y1}]}case`C`:{let n=l(e.x0,e.c1x,t),r=l(e.y0,e.c1y,t),i=l(e.c1x,e.c2x,t),a=l(e.c1y,e.c2y,t),o=l(e.c2x,e.x1,t),s=l(e.c2y,e.y1,t),c=l(n,i,t),u=l(r,a,t),d=l(i,o,t),f=l(a,s,t),p=l(c,d,t),m=l(u,f,t);return[{k:`C`,x0:e.x0,y0:e.y0,c1x:n,c1y:r,c2x:c,c2y:u,x1:p,y1:m},{k:`C`,x0:p,y0:m,c1x:d,c1y:f,c2x:o,c2y:s,x1:e.x1,y1:e.y1}]}case`A`:{let r=n(e,e.t0+e.dt*t);return[{...e,dt:e.dt*t,x1:r.x,y1:r.y},{...e,t0:e.t0+e.dt*t,dt:e.dt*(1-t),x0:r.x,y0:r.y}]}}}var d=e=>({x:e.x1,y:e.y1});function f(e){let t=0;for(let n of e.segments)t+=s(n);return t}function p(e,t){let n=e.segments;if(n.length===0)return{point:{x:e.x,y:e.y},tangent:{x:0,y:0}};let a=Math.max(0,t);for(let e=0;e<n.length;e++){let t=n[e],o=s(t);if(a<=o||e===n.length-1){let e=c(t,Math.min(a,o));return{point:r(t,e),tangent:i(t,e)}}a-=o}let o=n[n.length-1];return{point:d(o),tangent:i(o,1)}}var m=()=>({l:1/0,t:1/0,r:-1/0,b:-1/0}),h=(e,t,n)=>{t<e.l&&(e.l=t),t>e.r&&(e.r=t),n<e.t&&(e.t=n),n>e.b&&(e.b=n)},g=(e,t,n)=>{let r=[],i=e=>{e>0&&e<1&&r.push(e)};if(Math.abs(e)<1e-12)return Math.abs(t)>1e-12&&i(-n/t),r;let a=t*t-4*e*n;if(a<0)return r;let o=Math.sqrt(a);return i((-t+o)/(2*e)),i((-t-o)/(2*e)),r},_=(e,n)=>{let r=Math.abs(e.dt);return r>=t||((e.dt>=0?n-e.t0:e.t0-n)%t+t)%t<=r};function v(e,t){switch(h(e,t.x0,t.y0),h(e,t.x1,t.y1),t.k){case`L`:return;case`Q`:for(let n of g(0,2*(t.x0-2*t.cx+t.x1),2*(t.cx-t.x0))){let i=r(t,n);h(e,i.x,i.y)}for(let n of g(0,2*(t.y0-2*t.cy+t.y1),2*(t.cy-t.y0))){let i=r(t,n);h(e,i.x,i.y)}return;case`C`:{let n=(e,t,n,r)=>g(3*t-e-3*n+r,2*(e-2*t+n),t-e);for(let i of[...n(t.x0,t.c1x,t.c2x,t.x1),...n(t.y0,t.c1y,t.c2y,t.y1)]){let n=r(t,i);h(e,n.x,n.y)}return}case`A`:{let r=Math.cos(t.phi),i=Math.sin(t.phi),a=[Math.atan2(-t.ry*i,t.rx*r),Math.atan2(t.ry*r,t.rx*i)];for(let r of a)for(let i of[r,r+Math.PI])if(_(t,i)){let r=n(t,i);h(e,r.x,r.y)}return}}}function y(e,t){for(let n of t){h(e,n.x,n.y);for(let t of n.segments)v(e,t)}return e}function b(r,i){let a=[],o=t=>e(t,i);for(let e of r){e.implicit||a.push(`M${o(e.x)} ${o(e.y)}`);for(let r of e.segments)switch(r.k){case`L`:a.push(`L${o(r.x1)} ${o(r.y1)}`);break;case`Q`:a.push(`Q${o(r.cx)} ${o(r.cy)} ${o(r.x1)} ${o(r.y1)}`);break;case`C`:a.push(`C${o(r.c1x)} ${o(r.c1y)} ${o(r.c2x)} ${o(r.c2y)} ${o(r.x1)} ${o(r.y1)}`);break;case`A`:{let e=o(r.rx),i=o(r.ry),s=o(180*r.phi/Math.PI),c=+(r.dt>0);if(Math.abs(r.dt)>=t){let t=n(r,r.t0+r.dt/2);a.push(`A${e} ${i} ${s} 0 ${c} ${o(t.x)} ${o(t.y)}`),a.push(`A${e} ${i} ${s} 0 ${c} ${o(r.x1)} ${o(r.y1)}`)}else{let t=+(Math.abs(r.dt)>Math.PI+1e-9);a.push(`A${e} ${i} ${s} ${t} ${c} ${o(r.x1)} ${o(r.y1)}`)}break}}e.closed&&a.push(`Z`)}return a.join(` `)}var x=192/72,S={sm:1,med:1.5,lg:2.5},C={sm:2,med:3,lg:4.5},w={sm:1.25,med:1.75,lg:2.5},T=e=>{let t=[];for(let n=1;n<e.length;n++){let[r,i]=e[n-1],[a,o]=e[n];t.push({k:`L`,x0:r,y0:i,x1:a,y1:o})}return{x:e[0][0],y:e[0][1],segments:t,closed:!0}};function E(e,t){let n=e?.type;if(!n||n===`none`)return null;let r=e?.length??`med`,i=e?.width??`med`;if(n===`arrow`)return function(e,t,n){let r=Math.max(e,x),i=C[t]*r,a=w[n]*r,o=Math.atan(a/i),s=Math.hypot(i,a),c=e/(2*Math.sin(o/2)),l=e/2,u=Math.cos(o),d=Math.sin(o),f=c/2,p=(e,t)=>({x:e+f,y:t}),m=p(-c/2,0),h=p(s*u-l*d,-s*d-l*u),g=p(s*u,-s*d),_=p(s*u+l*d,-s*d+l*u),v=p(c/2,0),y=p(s*u+l*d,s*d-l*u),b=p(s*u,s*d),S=p(s*u-l*d,s*d+l*u),T=(e,t)=>({k:`L`,x0:e.x,y0:e.y,x1:t.x,y1:t.y}),E=(e,t,n)=>({k:`A`,cx:e.x,cy:e.y,rx:l,ry:l,phi:0,t0:Math.atan2(t.y-e.y,t.x-e.x),dt:Math.PI,x0:t.x,y0:t.y,x1:n.x,y1:n.y});return{outline:[{x:m.x,y:m.y,closed:!0,segments:[T(m,h),E(g,h,_),T(_,v),T(v,y),E(b,y,S),T(S,m)]}],clip:c/2,sample:c/2}}(t,r,i);let a=Math.max(t,x),o=S[r]*a,s=S[i]*a;switch(n){case`triangle`:return{outline:[T([[0,0],[2*o,-s],[2*o,s]])],clip:2*o-a/2,sample:2*o};case`stealth`:return{outline:[T([[1.2*o,0],[2*o,s],[0,0],[2*o,-s]])],clip:1.2*o,sample:1.2*o};case`diamond`:return{outline:[T([[0,-s],[o,0],[0,s],[-o,0]])],clip:-1,sample:0};case`oval`:return{outline:[(c=o,l=s,{x:-c,y:0,closed:!0,segments:[{k:`A`,cx:0,cy:0,rx:c,ry:l,phi:0,t0:Math.PI,dt:Math.PI,x0:-c,y0:0,x1:c,y1:0},{k:`A`,cx:0,cy:0,rx:c,ry:l,phi:0,t0:0,dt:Math.PI,x0:c,y0:0,x1:-c,y1:0}]})],clip:-1,sample:0}}var c,l}function D(e,t,n,r){if(!(t.clip>0))return e;let i=f(e),a=i-t.clip>0?t.clip:i;return a+=r,a>=i&&(a=i-.26),function(e,t,n){if(!(t>.26)||e.segments.length===0)return e;let r=n?e.segments:[...e.segments].reverse(),i=[],a=t;for(let e of r)if(a>.26){let t=s(e);if(t<=a){a-=t;continue}let[r,o]=u(e,c(e,n?a:t-a));i.push(n?o:r),a=0}else i.push(e);let o=n?i:i.reverse(),l=o.length>0?{x:(d=o[0]).x0,y:d.y0}:{x:e.x,y:e.y};var d;let f={x:l.x,y:l.y,segments:o,closed:e.closed};return e.implicit&&(f.implicit=!0),f}(e,a,n)}function O(e,t,n){let r=f(e),i=p(e,n?0:r),a;if(t.sample>0){let o=p(e,n?Math.min(t.sample,r):t.sample<r?r-t.sample:0).point;a=Math.atan2(o.y-i.point.y,o.x-i.point.x)}else a=Math.atan2(i.tangent.y,i.tangent.x);return t.outline.map(e=>function(e,t,n,r,i=!1){let a=Math.cos(r),o=Math.sin(r),s=i?-1:1,c=(e,r)=>({x:t+e*a-r*s*o,y:n+e*o+r*s*a}),l=e.segments.map(e=>{let t=c(e.x0,e.y0),n=c(e.x1,e.y1);switch(e.k){case`L`:return{k:`L`,x0:t.x,y0:t.y,x1:n.x,y1:n.y};case`Q`:{let r=c(e.cx,e.cy);return{k:`Q`,x0:t.x,y0:t.y,cx:r.x,cy:r.y,x1:n.x,y1:n.y}}case`C`:{let r=c(e.c1x,e.c1y),i=c(e.c2x,e.c2y);return{k:`C`,x0:t.x,y0:t.y,c1x:r.x,c1y:r.y,c2x:i.x,c2y:i.y,x1:n.x,y1:n.y}}case`A`:{let a=c(e.cx,e.cy);return{k:`A`,cx:a.x,cy:a.y,rx:e.rx,ry:e.ry,phi:i?r-e.phi:r+e.phi,t0:i?-e.t0:e.t0,dt:i?-e.dt:e.dt,x0:t.x,y0:t.y,x1:n.x,y1:n.y}}}}),u=c(e.x,e.y);return{x:u.x,y:u.y,segments:l,closed:e.closed}}(e,i.point.x,i.point.y,a,!n))}function k(e,t){let n=E(t.head,t.width),r=E(t.tail,t.width);if(!n&&!r)return null;let i=t.cap===`square`?t.width/2:0,a=[],o=!1,s=e.map(e=>{if(!function(e){if(e.closed||e.segments.length===0)return!1;let t=d(e.segments[e.segments.length-1]);return Math.abs(t.x-e.x)>1e-6||Math.abs(t.y-e.y)>1e-6}(e))return e;o=!0;let t=e;return n&&(a.push(...O(t,n,!0)),t=D(t,n,!0,i)),r&&(a.push(...O(t,r,!1)),t=D(t,r,!1,i)),t});return o?{stroke:s,ends:a}:null}export{y as i,k as n,m as r,b as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./CbXtAM7H-Jg_J0dk.js";import{i as t,t as n}from"./-cpi3yOZYn6GsYN4.js";import{n as r}from"./CXGgKVbVXjWzE0p6.js";import{U as i}from"./B4PbXdzBe9BsoZ0e.js";import{f as a,p as o,s}from"./Bf7xq8PyF4ohjMzP.js";var c=e(t(),1),l=n(),u=(0,c.memo)((0,c.forwardRef)((e,t)=>{let{children:n,disabled:u,style:d,container:f,movable:p,zoom:m=1,isDragging:h,onHide:g,onShow:_,onDragZone:v,adornmentHost:y,flip:b,gesture:x,...S}=e,[,C]=(0,c.useReducer)(e=>e+1,0);r(p??null,{onBoundsChange:C,onSelectionChange:C,onAnyChange:C});let w=p?.getMovables()??null;r(w,{onCollectionChange:C});let[T]=i(`movable-drag`,null),E=(0,c.useContext)(s),D=w?.getItems({ignoreHidden:!0})??[];(0,c.useEffect)(()=>{let e=D.map(e=>e.addListeners({onBoundsChange:C,onAnyChange:C,onSelectionChange:C}));return()=>{for(let t of e)t()}},[D.map(e=>e.getId()).join(`|`)]);let O=p?.getBounds();if(f.isDeleted()||!p||!O)return null;let k=d?.pointerEvents===`none`,A=!k&&!u&&p.isSelected(),j=T?.[p.getId()]??null,M=j?.bounds??O,N=p.getFlip(),P=b??j?.flip??N,F=(O.width>0?M.width/O.width:1)*(P.horizontal===N.horizontal?1:-1),I=(O.height>0?M.height/O.height:1)*(P.vertical===N.vertical?1:-1),L=p.getRotation()||0,R=[`translate(${M.width*m/2}px, ${M.height*m/2}px)`,F!==1||I!==1?`scale(${F}, ${I})`:``,L?`rotate(${-L}deg)`:``,`translate(${-(O.x+O.width/2)*m}px, ${-(O.y+O.height/2)*m}px)`].filter(Boolean).join(` `);return(0,l.jsxs)(`div`,{className:`group-editor`,...S,ref:t,style:{width:`100%`,height:`100%`,position:`relative`,overflow:`visible`,...d,pointerEvents:`none`},children:[(0,l.jsx)(`div`,{className:`group-canvas`,style:{position:`absolute`,left:0,top:0,transformOrigin:`0 0`,transform:R,pointerEvents:`none`},children:D.map(e=>{let t=a(e.getContent().getType()),n=T?.[e.getId()]??null,r=n?.bounds??e.getBounds();if(!r||!t)return null;let i=n?.rotation??(e.getRotation()||0);return(0,l.jsx)(`div`,{className:`group-member`,[o]:e.getId(),style:{position:`absolute`,left:r.x*m,top:r.y*m,width:r.width*m,height:r.height*m,transform:i?`rotate(${i}deg)`:void 0,transformOrigin:`center`,opacity:n?.7:void 0,pointerEvents:`none`},children:(0,l.jsx)(t,{movable:e,zoom:m,flip:n?.flip??e.getFlip(),disabled:u,isDragging:h||!!n,adornmentHost:E.get(e)??null,style:{position:`relative`,left:0,top:0,width:`100%`,height:`100%`,pointerEvents:k?`none`:`auto`}})},e.getId())})}),A?(0,l.jsx)(`svg`,{className:`group-edge`,width:`100%`,height:`100%`,style:{position:`absolute`,left:0,top:0,overflow:`visible`,pointerEvents:`none`},children:(0,l.jsx)(`rect`,{x:0,y:0,width:`100%`,height:`100%`,fill:`none`,stroke:`transparent`,pointerEvents:`stroke`,style:{strokeWidth:`var(--sxl-handle-hit, 11px)`}})}):null]})}));u.displayName=`GroupEditor`;export{u as GroupEditor};