@fluixi/utils 1.0.0-alpha.100

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 (364) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +68 -0
  3. package/dist/index.cjs +2858 -0
  4. package/dist/index.d.ts +2 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +1 -0
  7. package/dist/index.mjs +2838 -0
  8. package/dist/lib/array/advanced.cjs +2227 -0
  9. package/dist/lib/array/advanced.d.ts +1116 -0
  10. package/dist/lib/array/advanced.d.ts.map +1 -0
  11. package/dist/lib/array/advanced.js +2429 -0
  12. package/dist/lib/array/advanced.mjs +2204 -0
  13. package/dist/lib/array/array.cjs +57 -0
  14. package/dist/lib/array/array.d.ts +6 -0
  15. package/dist/lib/array/array.d.ts.map +1 -0
  16. package/dist/lib/array/array.js +31 -0
  17. package/dist/lib/array/array.mjs +36 -0
  18. package/dist/lib/array/index.cjs +2344 -0
  19. package/dist/lib/array/index.d.ts +4 -0
  20. package/dist/lib/array/index.d.ts.map +1 -0
  21. package/dist/lib/array/index.js +3 -0
  22. package/dist/lib/array/index.mjs +2322 -0
  23. package/dist/lib/array/utils.cjs +103 -0
  24. package/dist/lib/array/utils.d.ts +100 -0
  25. package/dist/lib/array/utils.d.ts.map +1 -0
  26. package/dist/lib/array/utils.js +165 -0
  27. package/dist/lib/array/utils.mjs +82 -0
  28. package/dist/lib/color/color.cjs +2190 -0
  29. package/dist/lib/color/color.d.ts +366 -0
  30. package/dist/lib/color/color.d.ts.map +1 -0
  31. package/dist/lib/color/color.js +722 -0
  32. package/dist/lib/color/color.mjs +2167 -0
  33. package/dist/lib/color/constants.cjs +380 -0
  34. package/dist/lib/color/constants.d.ts +361 -0
  35. package/dist/lib/color/constants.d.ts.map +1 -0
  36. package/dist/lib/color/constants.js +358 -0
  37. package/dist/lib/color/constants.mjs +359 -0
  38. package/dist/lib/color/conversions.cjs +629 -0
  39. package/dist/lib/color/conversions.d.ts +166 -0
  40. package/dist/lib/color/conversions.d.ts.map +1 -0
  41. package/dist/lib/color/conversions.js +766 -0
  42. package/dist/lib/color/conversions.mjs +608 -0
  43. package/dist/lib/color/helpers.cjs +2534 -0
  44. package/dist/lib/color/helpers.d.ts +75 -0
  45. package/dist/lib/color/helpers.d.ts.map +1 -0
  46. package/dist/lib/color/helpers.js +419 -0
  47. package/dist/lib/color/helpers.mjs +2511 -0
  48. package/dist/lib/color/index.cjs +2641 -0
  49. package/dist/lib/color/index.d.ts +12 -0
  50. package/dist/lib/color/index.d.ts.map +1 -0
  51. package/dist/lib/color/index.js +15 -0
  52. package/dist/lib/color/index.mjs +2619 -0
  53. package/dist/lib/color/types.cjs +18 -0
  54. package/dist/lib/color/types.d.ts +179 -0
  55. package/dist/lib/color/types.d.ts.map +1 -0
  56. package/dist/lib/color/types.js +1 -0
  57. package/dist/lib/color/types.mjs +0 -0
  58. package/dist/lib/color/utils.cjs +962 -0
  59. package/dist/lib/color/utils.d.ts +199 -0
  60. package/dist/lib/color/utils.d.ts.map +1 -0
  61. package/dist/lib/color/utils.js +858 -0
  62. package/dist/lib/color/utils.mjs +939 -0
  63. package/dist/lib/compare/comparators.cjs +171 -0
  64. package/dist/lib/compare/comparators.d.ts +65 -0
  65. package/dist/lib/compare/comparators.d.ts.map +1 -0
  66. package/dist/lib/compare/comparators.js +210 -0
  67. package/dist/lib/compare/comparators.mjs +150 -0
  68. package/dist/lib/compare/index.cjs +172 -0
  69. package/dist/lib/compare/index.d.ts +2 -0
  70. package/dist/lib/compare/index.d.ts.map +1 -0
  71. package/dist/lib/compare/index.js +1 -0
  72. package/dist/lib/compare/index.mjs +152 -0
  73. package/dist/lib/cookie/codec.cjs +72 -0
  74. package/dist/lib/cookie/codec.d.ts +22 -0
  75. package/dist/lib/cookie/codec.d.ts.map +1 -0
  76. package/dist/lib/cookie/codec.js +67 -0
  77. package/dist/lib/cookie/codec.mjs +51 -0
  78. package/dist/lib/cookie/index.cjs +75 -0
  79. package/dist/lib/cookie/index.d.ts +2 -0
  80. package/dist/lib/cookie/index.d.ts.map +1 -0
  81. package/dist/lib/cookie/index.js +1 -0
  82. package/dist/lib/cookie/index.mjs +53 -0
  83. package/dist/lib/crypto/hash.cjs +83 -0
  84. package/dist/lib/crypto/hash.d.ts +6 -0
  85. package/dist/lib/crypto/hash.d.ts.map +1 -0
  86. package/dist/lib/crypto/hash.js +53 -0
  87. package/dist/lib/crypto/hash.mjs +62 -0
  88. package/dist/lib/crypto/index.cjs +85 -0
  89. package/dist/lib/crypto/index.d.ts +2 -0
  90. package/dist/lib/crypto/index.d.ts.map +1 -0
  91. package/dist/lib/crypto/index.js +1 -0
  92. package/dist/lib/crypto/index.mjs +62 -0
  93. package/dist/lib/dom/events.cjs +40 -0
  94. package/dist/lib/dom/events.d.ts +159 -0
  95. package/dist/lib/dom/events.d.ts.map +1 -0
  96. package/dist/lib/dom/events.js +50 -0
  97. package/dist/lib/dom/events.mjs +19 -0
  98. package/dist/lib/dom/index.cjs +78 -0
  99. package/dist/lib/dom/index.d.ts +3 -0
  100. package/dist/lib/dom/index.d.ts.map +1 -0
  101. package/dist/lib/dom/index.js +2 -0
  102. package/dist/lib/dom/index.mjs +56 -0
  103. package/dist/lib/dom/utils.cjs +57 -0
  104. package/dist/lib/dom/utils.d.ts +6 -0
  105. package/dist/lib/dom/utils.d.ts.map +1 -0
  106. package/dist/lib/dom/utils.js +37 -0
  107. package/dist/lib/dom/utils.mjs +36 -0
  108. package/dist/lib/functions/functions.cjs +366 -0
  109. package/dist/lib/functions/functions.d.ts +329 -0
  110. package/dist/lib/functions/functions.d.ts.map +1 -0
  111. package/dist/lib/functions/functions.js +585 -0
  112. package/dist/lib/functions/functions.mjs +345 -0
  113. package/dist/lib/functions/index.cjs +369 -0
  114. package/dist/lib/functions/index.d.ts +3 -0
  115. package/dist/lib/functions/index.d.ts.map +1 -0
  116. package/dist/lib/functions/index.js +1 -0
  117. package/dist/lib/functions/index.mjs +347 -0
  118. package/dist/lib/functions/types.cjs +18 -0
  119. package/dist/lib/functions/types.d.ts +2 -0
  120. package/dist/lib/functions/types.d.ts.map +1 -0
  121. package/dist/lib/functions/types.js +1 -0
  122. package/dist/lib/functions/types.mjs +0 -0
  123. package/dist/lib/helpers.cjs +78 -0
  124. package/dist/lib/helpers.d.ts +13 -0
  125. package/dist/lib/helpers.d.ts.map +1 -0
  126. package/dist/lib/helpers.js +66 -0
  127. package/dist/lib/helpers.mjs +59 -0
  128. package/dist/lib/index.cjs +2857 -0
  129. package/dist/lib/index.d.ts +6 -0
  130. package/dist/lib/index.d.ts.map +1 -0
  131. package/dist/lib/index.js +8 -0
  132. package/dist/lib/index.mjs +2836 -0
  133. package/dist/lib/maths/constants.cjs +70 -0
  134. package/dist/lib/maths/constants.d.ts +84 -0
  135. package/dist/lib/maths/constants.d.ts.map +1 -0
  136. package/dist/lib/maths/constants.js +79 -0
  137. package/dist/lib/maths/constants.mjs +50 -0
  138. package/dist/lib/maths/fn/advanced.cjs +231 -0
  139. package/dist/lib/maths/fn/advanced.d.ts +149 -0
  140. package/dist/lib/maths/fn/advanced.d.ts.map +1 -0
  141. package/dist/lib/maths/fn/advanced.js +264 -0
  142. package/dist/lib/maths/fn/advanced.mjs +208 -0
  143. package/dist/lib/maths/fn/basic.cjs +212 -0
  144. package/dist/lib/maths/fn/basic.d.ts +182 -0
  145. package/dist/lib/maths/fn/basic.d.ts.map +1 -0
  146. package/dist/lib/maths/fn/basic.js +343 -0
  147. package/dist/lib/maths/fn/basic.mjs +191 -0
  148. package/dist/lib/maths/fn/complex.cjs +268 -0
  149. package/dist/lib/maths/fn/complex.d.ts +153 -0
  150. package/dist/lib/maths/fn/complex.d.ts.map +1 -0
  151. package/dist/lib/maths/fn/complex.js +383 -0
  152. package/dist/lib/maths/fn/complex.mjs +247 -0
  153. package/dist/lib/maths/fn/index.cjs +877 -0
  154. package/dist/lib/maths/fn/index.d.ts +10 -0
  155. package/dist/lib/maths/fn/index.d.ts.map +1 -0
  156. package/dist/lib/maths/fn/index.js +9 -0
  157. package/dist/lib/maths/fn/index.mjs +855 -0
  158. package/dist/lib/maths/fn/trigo.cjs +179 -0
  159. package/dist/lib/maths/fn/trigo.d.ts +147 -0
  160. package/dist/lib/maths/fn/trigo.d.ts.map +1 -0
  161. package/dist/lib/maths/fn/trigo.js +227 -0
  162. package/dist/lib/maths/fn/trigo.mjs +156 -0
  163. package/dist/lib/maths/fn/vector.cjs +728 -0
  164. package/dist/lib/maths/fn/vector.d.ts +512 -0
  165. package/dist/lib/maths/fn/vector.d.ts.map +1 -0
  166. package/dist/lib/maths/fn/vector.js +1136 -0
  167. package/dist/lib/maths/fn/vector.mjs +707 -0
  168. package/dist/lib/maths/formatter.cjs +61 -0
  169. package/dist/lib/maths/formatter.d.ts +35 -0
  170. package/dist/lib/maths/formatter.d.ts.map +1 -0
  171. package/dist/lib/maths/formatter.js +56 -0
  172. package/dist/lib/maths/formatter.mjs +40 -0
  173. package/dist/lib/maths/guards.cjs +164 -0
  174. package/dist/lib/maths/guards.d.ts +166 -0
  175. package/dist/lib/maths/guards.d.ts.map +1 -0
  176. package/dist/lib/maths/guards.js +315 -0
  177. package/dist/lib/maths/guards.mjs +144 -0
  178. package/dist/lib/maths/index.cjs +1152 -0
  179. package/dist/lib/maths/index.d.ts +24 -0
  180. package/dist/lib/maths/index.d.ts.map +1 -0
  181. package/dist/lib/maths/index.js +29 -0
  182. package/dist/lib/maths/index.mjs +1130 -0
  183. package/dist/lib/maths/parser.cjs +75 -0
  184. package/dist/lib/maths/parser.d.ts +20 -0
  185. package/dist/lib/maths/parser.d.ts.map +1 -0
  186. package/dist/lib/maths/parser.js +78 -0
  187. package/dist/lib/maths/parser.mjs +54 -0
  188. package/dist/lib/maths/random.cjs +49 -0
  189. package/dist/lib/maths/random.d.ts +27 -0
  190. package/dist/lib/maths/random.d.ts.map +1 -0
  191. package/dist/lib/maths/random.js +49 -0
  192. package/dist/lib/maths/random.mjs +28 -0
  193. package/dist/lib/maths/types/advanced.cjs +18 -0
  194. package/dist/lib/maths/types/advanced.d.ts +357 -0
  195. package/dist/lib/maths/types/advanced.d.ts.map +1 -0
  196. package/dist/lib/maths/types/advanced.js +5 -0
  197. package/dist/lib/maths/types/advanced.mjs +0 -0
  198. package/dist/lib/maths/types/basic.cjs +18 -0
  199. package/dist/lib/maths/types/basic.d.ts +95 -0
  200. package/dist/lib/maths/types/basic.d.ts.map +1 -0
  201. package/dist/lib/maths/types/basic.js +5 -0
  202. package/dist/lib/maths/types/basic.mjs +0 -0
  203. package/dist/lib/maths/types/index.cjs +19 -0
  204. package/dist/lib/maths/types/index.d.ts +4 -0
  205. package/dist/lib/maths/types/index.d.ts.map +1 -0
  206. package/dist/lib/maths/types/index.js +3 -0
  207. package/dist/lib/maths/types/index.mjs +1 -0
  208. package/dist/lib/maths/types/negative.cjs +18 -0
  209. package/dist/lib/maths/types/negative.d.ts +51 -0
  210. package/dist/lib/maths/types/negative.d.ts.map +1 -0
  211. package/dist/lib/maths/types/negative.js +5 -0
  212. package/dist/lib/maths/types/negative.mjs +0 -0
  213. package/dist/lib/maths/types/operations.cjs +18 -0
  214. package/dist/lib/maths/types/operations.d.ts +188 -0
  215. package/dist/lib/maths/types/operations.d.ts.map +1 -0
  216. package/dist/lib/maths/types/operations.js +6 -0
  217. package/dist/lib/maths/types/operations.mjs +0 -0
  218. package/dist/lib/object/clone.cjs +88 -0
  219. package/dist/lib/object/clone.d.ts +46 -0
  220. package/dist/lib/object/clone.d.ts.map +1 -0
  221. package/dist/lib/object/clone.js +104 -0
  222. package/dist/lib/object/clone.mjs +65 -0
  223. package/dist/lib/object/diff.cjs +573 -0
  224. package/dist/lib/object/diff.d.ts +203 -0
  225. package/dist/lib/object/diff.d.ts.map +1 -0
  226. package/dist/lib/object/diff.js +805 -0
  227. package/dist/lib/object/diff.mjs +550 -0
  228. package/dist/lib/object/getter-setter.cjs +2351 -0
  229. package/dist/lib/object/getter-setter.d.ts +361 -0
  230. package/dist/lib/object/getter-setter.d.ts.map +1 -0
  231. package/dist/lib/object/getter-setter.js +1771 -0
  232. package/dist/lib/object/getter-setter.mjs +2330 -0
  233. package/dist/lib/object/index.cjs +3956 -0
  234. package/dist/lib/object/index.d.ts +13 -0
  235. package/dist/lib/object/index.d.ts.map +1 -0
  236. package/dist/lib/object/index.js +12 -0
  237. package/dist/lib/object/index.mjs +3936 -0
  238. package/dist/lib/object/merge.cjs +1029 -0
  239. package/dist/lib/object/merge.d.ts +93 -0
  240. package/dist/lib/object/merge.d.ts.map +1 -0
  241. package/dist/lib/object/merge.js +474 -0
  242. package/dist/lib/object/merge.mjs +1006 -0
  243. package/dist/lib/object/object.cjs +280 -0
  244. package/dist/lib/object/object.d.ts +128 -0
  245. package/dist/lib/object/object.d.ts.map +1 -0
  246. package/dist/lib/object/object.js +432 -0
  247. package/dist/lib/object/object.mjs +257 -0
  248. package/dist/lib/object/omit.cjs +2022 -0
  249. package/dist/lib/object/omit.d.ts +351 -0
  250. package/dist/lib/object/omit.d.ts.map +1 -0
  251. package/dist/lib/object/omit.js +656 -0
  252. package/dist/lib/object/omit.mjs +1999 -0
  253. package/dist/lib/object/reconcile.cjs +126 -0
  254. package/dist/lib/object/reconcile.d.ts +7 -0
  255. package/dist/lib/object/reconcile.d.ts.map +1 -0
  256. package/dist/lib/object/reconcile.js +122 -0
  257. package/dist/lib/object/reconcile.mjs +105 -0
  258. package/dist/lib/object/selector.cjs +303 -0
  259. package/dist/lib/object/selector.d.ts +50 -0
  260. package/dist/lib/object/selector.d.ts.map +1 -0
  261. package/dist/lib/object/selector.js +371 -0
  262. package/dist/lib/object/selector.mjs +282 -0
  263. package/dist/lib/object/sort.cjs +209 -0
  264. package/dist/lib/object/sort.d.ts +149 -0
  265. package/dist/lib/object/sort.d.ts.map +1 -0
  266. package/dist/lib/object/sort.js +298 -0
  267. package/dist/lib/object/sort.mjs +186 -0
  268. package/dist/lib/object/transform.cjs +2211 -0
  269. package/dist/lib/object/transform.d.ts +620 -0
  270. package/dist/lib/object/transform.d.ts.map +1 -0
  271. package/dist/lib/object/transform.js +1058 -0
  272. package/dist/lib/object/transform.mjs +2190 -0
  273. package/dist/lib/object/types.cjs +18 -0
  274. package/dist/lib/object/types.d.ts +250 -0
  275. package/dist/lib/object/types.d.ts.map +1 -0
  276. package/dist/lib/object/types.js +1 -0
  277. package/dist/lib/object/types.mjs +0 -0
  278. package/dist/lib/object/utils.cjs +326 -0
  279. package/dist/lib/object/utils.d.ts +165 -0
  280. package/dist/lib/object/utils.d.ts.map +1 -0
  281. package/dist/lib/object/utils.js +444 -0
  282. package/dist/lib/object/utils.mjs +305 -0
  283. package/dist/lib/primitive/boolean/boolean.cjs +407 -0
  284. package/dist/lib/primitive/boolean/boolean.d.ts +276 -0
  285. package/dist/lib/primitive/boolean/boolean.d.ts.map +1 -0
  286. package/dist/lib/primitive/boolean/boolean.js +615 -0
  287. package/dist/lib/primitive/boolean/boolean.mjs +386 -0
  288. package/dist/lib/primitive/boolean/index.cjs +382 -0
  289. package/dist/lib/primitive/boolean/index.d.ts +3 -0
  290. package/dist/lib/primitive/boolean/index.d.ts.map +1 -0
  291. package/dist/lib/primitive/boolean/index.js +2 -0
  292. package/dist/lib/primitive/boolean/index.mjs +359 -0
  293. package/dist/lib/primitive/boolean/types.cjs +18 -0
  294. package/dist/lib/primitive/boolean/types.d.ts +14 -0
  295. package/dist/lib/primitive/boolean/types.d.ts.map +1 -0
  296. package/dist/lib/primitive/boolean/types.js +1 -0
  297. package/dist/lib/primitive/boolean/types.mjs +0 -0
  298. package/dist/lib/primitive/date/date.cjs +1126 -0
  299. package/dist/lib/primitive/date/date.d.ts +641 -0
  300. package/dist/lib/primitive/date/date.d.ts.map +1 -0
  301. package/dist/lib/primitive/date/date.js +1998 -0
  302. package/dist/lib/primitive/date/date.mjs +1105 -0
  303. package/dist/lib/primitive/date/index.cjs +1128 -0
  304. package/dist/lib/primitive/date/index.d.ts +3 -0
  305. package/dist/lib/primitive/date/index.d.ts.map +1 -0
  306. package/dist/lib/primitive/date/index.js +2 -0
  307. package/dist/lib/primitive/date/index.mjs +1105 -0
  308. package/dist/lib/primitive/date/types.cjs +18 -0
  309. package/dist/lib/primitive/date/types.d.ts +205 -0
  310. package/dist/lib/primitive/date/types.d.ts.map +1 -0
  311. package/dist/lib/primitive/date/types.js +7 -0
  312. package/dist/lib/primitive/date/types.mjs +0 -0
  313. package/dist/lib/primitive/index.cjs +2338 -0
  314. package/dist/lib/primitive/index.d.ts +5 -0
  315. package/dist/lib/primitive/index.d.ts.map +1 -0
  316. package/dist/lib/primitive/index.js +4 -0
  317. package/dist/lib/primitive/index.mjs +2316 -0
  318. package/dist/lib/primitive/string/index.cjs +875 -0
  319. package/dist/lib/primitive/string/index.d.ts +3 -0
  320. package/dist/lib/primitive/string/index.d.ts.map +1 -0
  321. package/dist/lib/primitive/string/index.js +2 -0
  322. package/dist/lib/primitive/string/index.mjs +852 -0
  323. package/dist/lib/primitive/string/parser-2.cjs +543 -0
  324. package/dist/lib/primitive/string/parser-2.d.ts +17 -0
  325. package/dist/lib/primitive/string/parser-2.d.ts.map +1 -0
  326. package/dist/lib/primitive/string/parser-2.js +656 -0
  327. package/dist/lib/primitive/string/parser-2.mjs +522 -0
  328. package/dist/lib/primitive/string/parser.cjs +236 -0
  329. package/dist/lib/primitive/string/parser.d.ts +9 -0
  330. package/dist/lib/primitive/string/parser.d.ts.map +1 -0
  331. package/dist/lib/primitive/string/parser.js +775 -0
  332. package/dist/lib/primitive/string/parser.mjs +215 -0
  333. package/dist/lib/primitive/string/string.cjs +926 -0
  334. package/dist/lib/primitive/string/string.d.ts +535 -0
  335. package/dist/lib/primitive/string/string.d.ts.map +1 -0
  336. package/dist/lib/primitive/string/string.js +1301 -0
  337. package/dist/lib/primitive/string/string.mjs +903 -0
  338. package/dist/lib/primitive/string/types.cjs +18 -0
  339. package/dist/lib/primitive/string/types.d.ts +318 -0
  340. package/dist/lib/primitive/string/types.d.ts.map +1 -0
  341. package/dist/lib/primitive/string/types.js +5 -0
  342. package/dist/lib/primitive/string/types.mjs +0 -0
  343. package/dist/lib/primitive/types.cjs +18 -0
  344. package/dist/lib/primitive/types.d.ts +27 -0
  345. package/dist/lib/primitive/types.d.ts.map +1 -0
  346. package/dist/lib/primitive/types.js +1 -0
  347. package/dist/lib/primitive/types.mjs +0 -0
  348. package/dist/lib/url/index.cjs +327 -0
  349. package/dist/lib/url/index.d.ts +3 -0
  350. package/dist/lib/url/index.d.ts.map +1 -0
  351. package/dist/lib/url/index.js +2 -0
  352. package/dist/lib/url/index.mjs +304 -0
  353. package/dist/lib/url/parser.cjs +325 -0
  354. package/dist/lib/url/parser.d.ts +216 -0
  355. package/dist/lib/url/parser.d.ts.map +1 -0
  356. package/dist/lib/url/parser.js +488 -0
  357. package/dist/lib/url/parser.mjs +304 -0
  358. package/dist/lib/url/types.cjs +18 -0
  359. package/dist/lib/url/types.d.ts +18 -0
  360. package/dist/lib/url/types.d.ts.map +1 -0
  361. package/dist/lib/url/types.js +1 -0
  362. package/dist/lib/url/types.mjs +0 -0
  363. package/dist/tsconfig.lib.tsbuildinfo +1 -0
  364. package/package.json +127 -0
@@ -0,0 +1,191 @@
1
+ // src/lib/maths/fn/basic.ts
2
+ function add(a, b) {
3
+ return a + b;
4
+ }
5
+ function subtract(a, b) {
6
+ return a - b;
7
+ }
8
+ var divide = (dividend, divisor, fallback) => {
9
+ if (divisor === 0) {
10
+ return fallback !== void 0 ? fallback : NaN;
11
+ }
12
+ return dividend / divisor;
13
+ };
14
+ function modulo(a, b) {
15
+ return a % b;
16
+ }
17
+ function power(base, exponent) {
18
+ return Math.pow(base, exponent);
19
+ }
20
+ function sqrt(value) {
21
+ if (value < 0) {
22
+ throw new Error("Cannot calculate square root of negative number");
23
+ }
24
+ return Math.sqrt(value);
25
+ }
26
+ function abs(value) {
27
+ return Math.abs(value);
28
+ }
29
+ var round = (value, precision = 0, mode = "round") => {
30
+ if (mode === "david") return roundUsingDavidGay(value, precision, mode);
31
+ if (!Number.isFinite(value)) return value;
32
+ if (precision === 0) return Math[mode](value);
33
+ if (precision < 0) {
34
+ const factor2 = 10 ** -precision;
35
+ return Math[mode](value / factor2) * factor2;
36
+ }
37
+ const factor = 10 ** precision;
38
+ const epsilon = Math.pow(2, -52);
39
+ const adjusted = value * factor;
40
+ const correction = Math.sign(adjusted) * epsilon * Math.abs(adjusted);
41
+ let rounded;
42
+ switch (mode) {
43
+ case "round":
44
+ rounded = Math.round(adjusted + correction);
45
+ break;
46
+ case "ceil":
47
+ rounded = Math.ceil(adjusted - epsilon);
48
+ break;
49
+ case "floor":
50
+ rounded = Math.floor(adjusted + epsilon);
51
+ break;
52
+ case "trunc":
53
+ rounded = adjusted < 0 ? Math.ceil(adjusted) : Math.floor(adjusted);
54
+ break;
55
+ default:
56
+ rounded = Math.round(adjusted + correction);
57
+ }
58
+ return rounded / factor;
59
+ };
60
+ var roundUsingDavidGay = (_value, precision = 0, mode = "round") => {
61
+ let value = Math.abs(_value);
62
+ const multiplicator = _value < 0 ? -1 : 1;
63
+ if (precision === 0) {
64
+ return Math.round(value) * multiplicator;
65
+ }
66
+ if (!Number.isFinite(value)) {
67
+ return value * multiplicator;
68
+ }
69
+ const factor = 10 ** precision;
70
+ let shifted = value * factor;
71
+ const epsilon = Math.pow(2, -53);
72
+ const correction = Math.sign(shifted) * epsilon * Math.abs(shifted);
73
+ shifted += correction;
74
+ const rounded = Math.round(shifted);
75
+ return rounded / factor * multiplicator;
76
+ };
77
+ var ceil = (value, precision = 0) => {
78
+ return round(value, precision, "ceil");
79
+ };
80
+ var floor = (value, precision = 0) => {
81
+ return round(value, precision, "floor");
82
+ };
83
+ var trunc = (value, precision = 0) => {
84
+ return round(value, precision, "trunc");
85
+ };
86
+ var clamp = (value, min2, max2) => {
87
+ if (min2 > max2) [min2, max2] = [max2, min2];
88
+ return value < min2 ? min2 : value > max2 ? max2 : value;
89
+ };
90
+ function sign(value) {
91
+ if (value > 0) return 1;
92
+ if (value < 0) return -1;
93
+ return 0;
94
+ }
95
+ function factorial(n) {
96
+ if (!Number.isInteger(n) || n < 0) {
97
+ throw new Error("Factorial is only defined for non-negative integers");
98
+ }
99
+ if (n === 0 || n === 1) return 1;
100
+ let result = 1;
101
+ for (let i = 2; i <= n; i++) {
102
+ result *= i;
103
+ }
104
+ return result;
105
+ }
106
+ function gcd(a, b) {
107
+ a = Math.abs(a);
108
+ b = Math.abs(b);
109
+ while (b !== 0) {
110
+ const temp = b;
111
+ b = a % b;
112
+ a = temp;
113
+ }
114
+ return a;
115
+ }
116
+ function lcm(a, b) {
117
+ return Math.abs(a * b) / gcd(a, b);
118
+ }
119
+ function lerp(start, end, t) {
120
+ return start + (end - start) * clamp(t, 0, 1);
121
+ }
122
+ var invLerp = (start, end, value) => {
123
+ return clamp((value - start) / (end - start), 0, 1);
124
+ };
125
+ var mapRange = (value, inMin, inMax, outMin, outMax) => {
126
+ const t = invLerp(inMin, inMax, value);
127
+ return lerp(outMin, outMax, t);
128
+ };
129
+ function min(...values) {
130
+ return Math.min(...values);
131
+ }
132
+ function max(...values) {
133
+ return Math.max(...values);
134
+ }
135
+ var average = (...numbers) => {
136
+ if (!Array.isArray(numbers) || numbers.length === 0) return 0;
137
+ let total = 0;
138
+ let count = 0;
139
+ for (const num of numbers) {
140
+ if (Number.isFinite(num)) {
141
+ total += num;
142
+ count++;
143
+ }
144
+ }
145
+ return count === 0 ? 0 : total / count;
146
+ };
147
+ var sum = (...numbers) => {
148
+ if (!Array.isArray(numbers)) return 0;
149
+ return numbers.reduce(
150
+ (acc, val) => acc + (Number.isFinite(val) ? val : 0),
151
+ 0
152
+ );
153
+ };
154
+ var median = (...numbers) => {
155
+ if (!Array.isArray(numbers) || numbers.length === 0) return 0;
156
+ const validNumbers = numbers.filter(Number.isFinite);
157
+ if (validNumbers.length === 0) return 0;
158
+ validNumbers.sort((a, b) => a - b);
159
+ const mid = Math.floor(validNumbers.length / 2);
160
+ return validNumbers.length % 2 === 0 ? (validNumbers[mid - 1] + validNumbers[mid]) / 2 : validNumbers[mid];
161
+ };
162
+ function product(...values) {
163
+ return values.reduce((prod, val) => prod * val, 1);
164
+ }
165
+ export {
166
+ abs,
167
+ add,
168
+ average,
169
+ ceil,
170
+ clamp,
171
+ divide,
172
+ factorial,
173
+ floor,
174
+ gcd,
175
+ invLerp,
176
+ lcm,
177
+ lerp,
178
+ mapRange,
179
+ max,
180
+ median,
181
+ min,
182
+ modulo,
183
+ power,
184
+ product,
185
+ round,
186
+ sign,
187
+ sqrt,
188
+ subtract,
189
+ sum,
190
+ trunc
191
+ };
@@ -0,0 +1,268 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/lib/maths/fn/complex.ts
21
+ var complex_exports = {};
22
+ __export(complex_exports, {
23
+ addComplex: () => addComplex,
24
+ argumentComplex: () => argumentComplex,
25
+ complexEquals: () => complexEquals,
26
+ conjugateComplex: () => conjugateComplex,
27
+ cosComplex: () => cosComplex,
28
+ createComplex: () => createComplex,
29
+ divideComplex: () => divideComplex,
30
+ expComplex: () => expComplex,
31
+ fromPolarComplex: () => fromPolarComplex,
32
+ getImag: () => getImag,
33
+ getReal: () => getReal,
34
+ isZeroComplex: () => isZeroComplex,
35
+ lnComplex: () => lnComplex,
36
+ magnitudeComplex: () => magnitudeComplex,
37
+ multiplyComplex: () => multiplyComplex,
38
+ negateComplex: () => negateComplex,
39
+ powerComplex: () => powerComplex,
40
+ reciprocalComplex: () => reciprocalComplex,
41
+ sinComplex: () => sinComplex,
42
+ sqrtComplex: () => sqrtComplex,
43
+ subtractComplex: () => subtractComplex,
44
+ toPolarComplex: () => toPolarComplex
45
+ });
46
+ module.exports = __toCommonJS(complex_exports);
47
+ var EPSILON = 1e-10;
48
+ var TWO_PI = 2 * Math.PI;
49
+ function isApproximatelyZero(value) {
50
+ return Math.abs(value) < EPSILON;
51
+ }
52
+ function approximatelyEqual(a, b) {
53
+ return Math.abs(a - b) < EPSILON;
54
+ }
55
+ function normalizeComplex(c) {
56
+ return {
57
+ real: isApproximatelyZero(c.real) ? 0 : c.real,
58
+ imag: isApproximatelyZero(c.imag) ? 0 : c.imag
59
+ };
60
+ }
61
+ function validateNumber(value, name) {
62
+ if (typeof value !== "number" || !Number.isFinite(value)) {
63
+ throw new Error(`${name} must be a finite number, got ${value}`);
64
+ }
65
+ }
66
+ function validateComplexNumber(c, name = "Complex number") {
67
+ if (!c || typeof c !== "object") {
68
+ throw new Error(`${name} must be an object`);
69
+ }
70
+ validateNumber(c.real, `${name}.real`);
71
+ validateNumber(c.imag, `${name}.imag`);
72
+ }
73
+ function createComplex(real, imag = 0) {
74
+ validateNumber(real, "real");
75
+ validateNumber(imag, "imag");
76
+ return normalizeComplex({ real, imag });
77
+ }
78
+ function complexEquals(a, b) {
79
+ validateComplexNumber(a, "First complex number");
80
+ validateComplexNumber(b, "Second complex number");
81
+ return approximatelyEqual(a.real, b.real) && approximatelyEqual(a.imag, b.imag);
82
+ }
83
+ function addComplex(a, b) {
84
+ validateComplexNumber(a, "First complex number");
85
+ validateComplexNumber(b, "Second complex number");
86
+ return normalizeComplex({
87
+ real: a.real + b.real,
88
+ imag: a.imag + b.imag
89
+ });
90
+ }
91
+ function subtractComplex(a, b) {
92
+ validateComplexNumber(a, "First complex number");
93
+ validateComplexNumber(b, "Second complex number");
94
+ return normalizeComplex({
95
+ real: a.real - b.real,
96
+ imag: a.imag - b.imag
97
+ });
98
+ }
99
+ function multiplyComplex(a, b) {
100
+ validateComplexNumber(a, "First complex number");
101
+ validateComplexNumber(b, "Second complex number");
102
+ return normalizeComplex({
103
+ real: a.real * b.real - a.imag * b.imag,
104
+ imag: a.real * b.imag + a.imag * b.real
105
+ });
106
+ }
107
+ function divideComplex(a, b) {
108
+ validateComplexNumber(a, "Numerator complex number");
109
+ validateComplexNumber(b, "Denominator complex number");
110
+ const denominator = b.real * b.real + b.imag * b.imag;
111
+ if (isApproximatelyZero(denominator)) {
112
+ throw new Error("Cannot divide by zero or near-zero complex number");
113
+ }
114
+ return normalizeComplex({
115
+ real: (a.real * b.real + a.imag * b.imag) / denominator,
116
+ imag: (a.imag * b.real - a.real * b.imag) / denominator
117
+ });
118
+ }
119
+ function magnitudeComplex(c) {
120
+ validateComplexNumber(c);
121
+ const magnitude = Math.sqrt(c.real * c.real + c.imag * c.imag);
122
+ return isApproximatelyZero(magnitude) ? 0 : magnitude;
123
+ }
124
+ function conjugateComplex(c) {
125
+ validateComplexNumber(c);
126
+ return normalizeComplex({
127
+ real: c.real,
128
+ imag: -c.imag
129
+ });
130
+ }
131
+ function argumentComplex(c) {
132
+ validateComplexNumber(c);
133
+ if (isApproximatelyZero(c.real) && isApproximatelyZero(c.imag)) {
134
+ return 0;
135
+ }
136
+ return Math.atan2(c.imag, c.real);
137
+ }
138
+ function toPolarComplex(c) {
139
+ validateComplexNumber(c);
140
+ return {
141
+ magnitude: magnitudeComplex(c),
142
+ angle: argumentComplex(c)
143
+ };
144
+ }
145
+ function fromPolarComplex(magnitude, angle) {
146
+ validateNumber(magnitude, "magnitude");
147
+ validateNumber(angle, "angle");
148
+ if (magnitude < -EPSILON) {
149
+ throw new Error("Magnitude must be non-negative");
150
+ }
151
+ let normalizedAngle = angle % TWO_PI;
152
+ if (normalizedAngle > Math.PI) normalizedAngle -= TWO_PI;
153
+ if (normalizedAngle <= -Math.PI) normalizedAngle += TWO_PI;
154
+ const mag = Math.max(0, magnitude);
155
+ return normalizeComplex({
156
+ real: mag * Math.cos(normalizedAngle),
157
+ imag: mag * Math.sin(normalizedAngle)
158
+ });
159
+ }
160
+ function sqrtComplex(c) {
161
+ validateComplexNumber(c);
162
+ if (isApproximatelyZero(c.real) && isApproximatelyZero(c.imag)) {
163
+ const zero = createComplex(0, 0);
164
+ return [zero, zero];
165
+ }
166
+ const magnitude = magnitudeComplex(c);
167
+ const angle = argumentComplex(c);
168
+ const rootMagnitude = Math.sqrt(magnitude);
169
+ const rootAngle1 = angle / 2;
170
+ const rootAngle2 = rootAngle1 + Math.PI;
171
+ return [
172
+ fromPolarComplex(rootMagnitude, rootAngle1),
173
+ fromPolarComplex(rootMagnitude, rootAngle2)
174
+ ];
175
+ }
176
+ function powerComplex(c, exponent) {
177
+ validateComplexNumber(c);
178
+ validateNumber(exponent, "exponent");
179
+ if (isApproximatelyZero(exponent)) {
180
+ return createComplex(1, 0);
181
+ }
182
+ if (approximatelyEqual(exponent, 1)) {
183
+ return createComplex(c.real, c.imag);
184
+ }
185
+ if (approximatelyEqual(exponent, 2)) {
186
+ return multiplyComplex(c, c);
187
+ }
188
+ if (isApproximatelyZero(c.real) && isApproximatelyZero(c.imag)) {
189
+ if (exponent > 0) {
190
+ return createComplex(0, 0);
191
+ } else if (exponent < 0) {
192
+ throw new Error("Cannot raise zero to a negative power");
193
+ }
194
+ }
195
+ const polar = toPolarComplex(c);
196
+ const magnitude = Math.pow(polar.magnitude, exponent);
197
+ const safeMagnitude = magnitude < -EPSILON ? Math.abs(magnitude) : Math.max(0, magnitude);
198
+ const angle = polar.angle * exponent;
199
+ return fromPolarComplex(safeMagnitude, angle);
200
+ }
201
+ function lnComplex(c) {
202
+ validateComplexNumber(c);
203
+ const magnitude = magnitudeComplex(c);
204
+ if (isApproximatelyZero(magnitude)) {
205
+ throw new Error(
206
+ "Cannot take logarithm of zero or near-zero complex number"
207
+ );
208
+ }
209
+ const angle = argumentComplex(c);
210
+ return normalizeComplex({
211
+ real: Math.log(magnitude),
212
+ imag: angle
213
+ });
214
+ }
215
+ function expComplex(c) {
216
+ validateComplexNumber(c);
217
+ const expReal = Math.exp(c.real);
218
+ return normalizeComplex({
219
+ real: expReal * Math.cos(c.imag),
220
+ imag: expReal * Math.sin(c.imag)
221
+ });
222
+ }
223
+ function sinComplex(c) {
224
+ validateComplexNumber(c);
225
+ return normalizeComplex({
226
+ real: Math.sin(c.real) * Math.cosh(c.imag),
227
+ imag: Math.cos(c.real) * Math.sinh(c.imag)
228
+ });
229
+ }
230
+ function cosComplex(c) {
231
+ validateComplexNumber(c);
232
+ return normalizeComplex({
233
+ real: Math.cos(c.real) * Math.cosh(c.imag),
234
+ imag: -Math.sin(c.real) * Math.sinh(c.imag)
235
+ });
236
+ }
237
+ function isZeroComplex(c) {
238
+ validateComplexNumber(c);
239
+ return isApproximatelyZero(c.real) && isApproximatelyZero(c.imag);
240
+ }
241
+ function getReal(c) {
242
+ validateComplexNumber(c);
243
+ return c.real;
244
+ }
245
+ function getImag(c) {
246
+ validateComplexNumber(c);
247
+ return c.imag;
248
+ }
249
+ function negateComplex(c) {
250
+ validateComplexNumber(c);
251
+ return normalizeComplex({
252
+ real: -c.real,
253
+ imag: -c.imag
254
+ });
255
+ }
256
+ function reciprocalComplex(c) {
257
+ validateComplexNumber(c);
258
+ const denominator = c.real * c.real + c.imag * c.imag;
259
+ if (isApproximatelyZero(denominator)) {
260
+ throw new Error(
261
+ "Cannot calculate reciprocal of zero or near-zero complex number"
262
+ );
263
+ }
264
+ return normalizeComplex({
265
+ real: c.real / denominator,
266
+ imag: -c.imag / denominator
267
+ });
268
+ }
@@ -0,0 +1,153 @@
1
+ /**
2
+ * Complex number operations.
3
+ * @module ComplexFunctions
4
+ */
5
+ import type { ComplexNumber } from '../types/advanced.js';
6
+ /**
7
+ * Creates a complex number with validation and normalization.
8
+ * @param real - Real part
9
+ * @param imag - Imaginary part
10
+ * @returns Validated and normalized complex number
11
+ */
12
+ export declare function createComplex(real: number, imag?: number): ComplexNumber;
13
+ /**
14
+ * Checks if two complex numbers are approximately equal.
15
+ * @param a - First complex number
16
+ * @param b - Second complex number
17
+ * @returns True if numbers are approximately equal
18
+ */
19
+ export declare function complexEquals(a: ComplexNumber, b: ComplexNumber): boolean;
20
+ /**
21
+ * Adds two complex numbers.
22
+ * @param a - First complex number
23
+ * @param b - Second complex number
24
+ * @returns The sum as a complex number
25
+ */
26
+ export declare function addComplex(a: ComplexNumber, b: ComplexNumber): ComplexNumber;
27
+ /**
28
+ * Subtracts two complex numbers.
29
+ * @param a - First complex number
30
+ * @param b - Second complex number
31
+ * @returns The difference as a complex number (a - b)
32
+ */
33
+ export declare function subtractComplex(a: ComplexNumber, b: ComplexNumber): ComplexNumber;
34
+ /**
35
+ * Multiplies two complex numbers.
36
+ * @param a - First complex number
37
+ * @param b - Second complex number
38
+ * @returns The product as a complex number
39
+ */
40
+ export declare function multiplyComplex(a: ComplexNumber, b: ComplexNumber): ComplexNumber;
41
+ /**
42
+ * Divides two complex numbers.
43
+ * @param a - Numerator complex number
44
+ * @param b - Denominator complex number
45
+ * @returns The quotient as a complex number
46
+ * @throws {Error} If dividing by zero or near-zero complex number
47
+ */
48
+ export declare function divideComplex(a: ComplexNumber, b: ComplexNumber): ComplexNumber;
49
+ /**
50
+ * Calculates the magnitude (absolute value) of a complex number.
51
+ * @param c - The complex number
52
+ * @returns The magnitude (non-negative)
53
+ */
54
+ export declare function magnitudeComplex(c: ComplexNumber): number;
55
+ /**
56
+ * Calculates the conjugate of a complex number.
57
+ * @param c - The complex number
58
+ * @returns The complex conjugate
59
+ */
60
+ export declare function conjugateComplex(c: ComplexNumber): ComplexNumber;
61
+ /**
62
+ * Calculates the argument (angle) of a complex number in radians.
63
+ * @param c - The complex number
64
+ * @returns The principal argument in radians (-π, π]
65
+ */
66
+ export declare function argumentComplex(c: ComplexNumber): number;
67
+ /**
68
+ * Converts a complex number to polar form.
69
+ * @param c - The complex number
70
+ * @returns Polar representation {magnitude, angle}
71
+ */
72
+ export declare function toPolarComplex(c: ComplexNumber): {
73
+ magnitude: number;
74
+ angle: number;
75
+ };
76
+ /**
77
+ * Converts polar form to a complex number.
78
+ * @param magnitude - The magnitude (must be non-negative)
79
+ * @param angle - The angle in radians
80
+ * @returns The complex number
81
+ * @throws {Error} If magnitude is negative
82
+ */
83
+ export declare function fromPolarComplex(magnitude: number, angle: number): ComplexNumber;
84
+ /**
85
+ * Calculates the square root of a complex number.
86
+ * @param c - The complex number
87
+ * @returns Array of two complex square roots (principal and secondary)
88
+ */
89
+ export declare function sqrtComplex(c: ComplexNumber): [ComplexNumber, ComplexNumber];
90
+ /**
91
+ * Calculates the power of a complex number with a real exponent.
92
+ * @param c - The complex number
93
+ * @param exponent - The exponent (real number)
94
+ * @returns The complex number raised to the power
95
+ */
96
+ export declare function powerComplex(c: ComplexNumber, exponent: number): ComplexNumber;
97
+ /**
98
+ * Calculates the natural logarithm of a complex number.
99
+ * @param c - The complex number
100
+ * @returns The principal value of natural logarithm as a complex number
101
+ * @throws {Error} If the complex number is zero or near-zero
102
+ */
103
+ export declare function lnComplex(c: ComplexNumber): ComplexNumber;
104
+ /**
105
+ * Calculates the exponential of a complex number.
106
+ * @param c - The complex number
107
+ * @returns The exponential as a complex number
108
+ */
109
+ export declare function expComplex(c: ComplexNumber): ComplexNumber;
110
+ /**
111
+ * Calculates the sine of a complex number.
112
+ * @param c - The complex number
113
+ * @returns The sine as a complex number
114
+ */
115
+ export declare function sinComplex(c: ComplexNumber): ComplexNumber;
116
+ /**
117
+ * Calculates the cosine of a complex number.
118
+ * @param c - The complex number
119
+ * @returns The cosine as a complex number
120
+ */
121
+ export declare function cosComplex(c: ComplexNumber): ComplexNumber;
122
+ /**
123
+ * Checks if a complex number is zero (or effectively zero).
124
+ * @param c - The complex number to check
125
+ * @returns True if the complex number is effectively zero
126
+ */
127
+ export declare function isZeroComplex(c: ComplexNumber): boolean;
128
+ /**
129
+ * Returns the real part of a complex number.
130
+ * @param c - The complex number
131
+ * @returns The real part
132
+ */
133
+ export declare function getReal(c: ComplexNumber): number;
134
+ /**
135
+ * Returns the imaginary part of a complex number.
136
+ * @param c - The complex number
137
+ * @returns The imaginary part
138
+ */
139
+ export declare function getImag(c: ComplexNumber): number;
140
+ /**
141
+ * Negates a complex number.
142
+ * @param c - The complex number
143
+ * @returns The negated complex number
144
+ */
145
+ export declare function negateComplex(c: ComplexNumber): ComplexNumber;
146
+ /**
147
+ * Calculates the reciprocal of a complex number.
148
+ * @param c - The complex number
149
+ * @returns The reciprocal (1/c)
150
+ * @throws {Error} If the complex number is zero or near-zero
151
+ */
152
+ export declare function reciprocalComplex(c: ComplexNumber): ComplexNumber;
153
+ //# sourceMappingURL=complex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"complex.d.ts","sourceRoot":"","sources":["../../../../src/lib/maths/fn/complex.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAmE1D;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAU,GAAG,aAAa,CAI3E;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,aAAa,GAAG,OAAO,CAOzE;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,aAAa,GAAG,aAAa,CAQ5E;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,CAAC,EAAE,aAAa,EAChB,CAAC,EAAE,aAAa,GACf,aAAa,CAQf;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,CAAC,EAAE,aAAa,EAChB,CAAC,EAAE,aAAa,GACf,aAAa,CAQf;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,CAAC,EAAE,aAAa,EAChB,CAAC,EAAE,aAAa,GACf,aAAa,CAcf;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,CAKzD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAOhE;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,CAQxD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,aAAa,GAAG;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;CACf,CAOA;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,GACZ,aAAa,CAmBf;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,aAAa,GAAG,CAAC,aAAa,EAAE,aAAa,CAAC,CAmB5E;AAED;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,CAAC,EAAE,aAAa,EAChB,QAAQ,EAAE,MAAM,GACf,aAAa,CAoCf;AAED;;;;;GAKG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAgBzD;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAS1D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAQ1D;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAQ1D;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,aAAa,GAAG,OAAO,CAGvD;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,CAGhD;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,aAAa,GAAG,MAAM,CAGhD;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAM7D;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,aAAa,GAAG,aAAa,CAcjE"}