@design-edito/tools 0.2.14 → 0.2.16

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 (423) hide show
  1. package/agnostic/arrays/index.d.ts +5 -5
  2. package/agnostic/arrays/index.js +7 -7
  3. package/agnostic/arrays/is-array-of/index.d.ts +1 -1
  4. package/agnostic/arrays/random-pick/index.js +4 -4
  5. package/agnostic/booleans/index.d.ts +1 -1
  6. package/agnostic/booleans/is-falsy/index.d.ts +1 -1
  7. package/agnostic/colors/channels/index.d.ts +5 -0
  8. package/agnostic/colors/channels/index.js +18 -0
  9. package/agnostic/colors/contrast/index.d.ts +2 -0
  10. package/agnostic/colors/contrast/index.js +13 -0
  11. package/agnostic/colors/convert/index.d.ts +20 -0
  12. package/agnostic/colors/convert/index.js +45 -0
  13. package/agnostic/colors/distance/index.d.ts +2 -0
  14. package/agnostic/colors/distance/index.js +12 -0
  15. package/agnostic/colors/grayscale/index.d.ts +2 -0
  16. package/agnostic/colors/grayscale/index.js +12 -0
  17. package/agnostic/colors/index.d.ts +14 -16
  18. package/agnostic/colors/index.js +95 -27
  19. package/agnostic/colors/invert/index.d.ts +2 -0
  20. package/agnostic/colors/invert/index.js +12 -0
  21. package/agnostic/colors/lerp/index.d.ts +2 -0
  22. package/agnostic/colors/lerp/index.js +12 -0
  23. package/agnostic/colors/luminance/index.d.ts +2 -0
  24. package/agnostic/colors/luminance/index.js +12 -0
  25. package/agnostic/colors/palette/index.d.ts +2 -0
  26. package/agnostic/colors/palette/index.js +14 -0
  27. package/agnostic/colors/rotate/index.d.ts +2 -0
  28. package/agnostic/colors/rotate/index.js +13 -0
  29. package/agnostic/colors/tidy/index.d.ts +2 -0
  30. package/agnostic/colors/tidy/index.js +11 -0
  31. package/agnostic/colors/typechecks/index.d.ts +11 -0
  32. package/agnostic/colors/typechecks/index.js +26 -0
  33. package/agnostic/colors/types.d.ts +82 -0
  34. package/agnostic/css/bem/index.d.ts +2 -2
  35. package/agnostic/css/index.d.ts +3 -3
  36. package/agnostic/css/index.js +6 -6
  37. package/agnostic/css/styles-set/index.js +6 -6
  38. package/agnostic/errors/index.d.ts +2 -2
  39. package/agnostic/errors/index.js +2 -2
  40. package/agnostic/html/hyper-json/cast/index.d.ts +1 -1
  41. package/agnostic/html/hyper-json/cast/index.js +4 -4
  42. package/agnostic/html/hyper-json/index.d.ts +8 -8
  43. package/agnostic/html/hyper-json/index.js +5 -5
  44. package/agnostic/html/hyper-json/method/index.d.ts +2 -2
  45. package/agnostic/html/hyper-json/serialize/index.d.ts +1 -1
  46. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.d.ts +1 -1
  47. package/agnostic/html/hyper-json/smart-tags/coalesced/add/index.js +4 -4
  48. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.d.ts +1 -1
  49. package/agnostic/html/hyper-json/smart-tags/coalesced/addclass/index.js +4 -4
  50. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.d.ts +1 -1
  51. package/agnostic/html/hyper-json/smart-tags/coalesced/and/index.js +4 -4
  52. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.d.ts +1 -1
  53. package/agnostic/html/hyper-json/smart-tags/coalesced/append/index.js +4 -4
  54. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.d.ts +1 -1
  55. package/agnostic/html/hyper-json/smart-tags/coalesced/at/index.js +4 -4
  56. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.d.ts +1 -1
  57. package/agnostic/html/hyper-json/smart-tags/coalesced/call/index.js +4 -4
  58. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.d.ts +1 -1
  59. package/agnostic/html/hyper-json/smart-tags/coalesced/clone/index.js +4 -4
  60. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.d.ts +1 -1
  61. package/agnostic/html/hyper-json/smart-tags/coalesced/deleteproperties/index.js +4 -4
  62. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.d.ts +1 -1
  63. package/agnostic/html/hyper-json/smart-tags/coalesced/equals/index.js +4 -4
  64. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.d.ts +1 -1
  65. package/agnostic/html/hyper-json/smart-tags/coalesced/getattribute/index.js +4 -4
  66. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.d.ts +1 -1
  67. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperties/index.js +4 -4
  68. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.d.ts +1 -1
  69. package/agnostic/html/hyper-json/smart-tags/coalesced/getproperty/index.js +4 -4
  70. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.d.ts +1 -1
  71. package/agnostic/html/hyper-json/smart-tags/coalesced/if/index.js +4 -4
  72. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.d.ts +1 -1
  73. package/agnostic/html/hyper-json/smart-tags/coalesced/initialize/index.js +4 -4
  74. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.d.ts +1 -1
  75. package/agnostic/html/hyper-json/smart-tags/coalesced/join/index.js +4 -4
  76. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.d.ts +1 -1
  77. package/agnostic/html/hyper-json/smart-tags/coalesced/length/index.js +4 -4
  78. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.d.ts +1 -1
  79. package/agnostic/html/hyper-json/smart-tags/coalesced/map/index.js +4 -4
  80. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.d.ts +1 -1
  81. package/agnostic/html/hyper-json/smart-tags/coalesced/negate/index.js +4 -4
  82. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.d.ts +1 -1
  83. package/agnostic/html/hyper-json/smart-tags/coalesced/notrailing/index.js +4 -4
  84. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.d.ts +1 -1
  85. package/agnostic/html/hyper-json/smart-tags/coalesced/or/index.js +4 -4
  86. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.d.ts +1 -1
  87. package/agnostic/html/hyper-json/smart-tags/coalesced/pickrandom/index.js +4 -4
  88. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.d.ts +1 -1
  89. package/agnostic/html/hyper-json/smart-tags/coalesced/populate/index.js +4 -4
  90. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.d.ts +1 -1
  91. package/agnostic/html/hyper-json/smart-tags/coalesced/print/index.js +4 -4
  92. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.d.ts +1 -1
  93. package/agnostic/html/hyper-json/smart-tags/coalesced/push/index.js +4 -4
  94. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.d.ts +1 -1
  95. package/agnostic/html/hyper-json/smart-tags/coalesced/pusheach/index.js +4 -4
  96. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.d.ts +1 -1
  97. package/agnostic/html/hyper-json/smart-tags/coalesced/recordtoarray/index.js +4 -4
  98. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.d.ts +1 -1
  99. package/agnostic/html/hyper-json/smart-tags/coalesced/removeattribute/index.js +4 -4
  100. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.d.ts +1 -1
  101. package/agnostic/html/hyper-json/smart-tags/coalesced/removeclass/index.js +4 -4
  102. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.d.ts +1 -1
  103. package/agnostic/html/hyper-json/smart-tags/coalesced/renameproperty/index.js +4 -4
  104. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.d.ts +1 -1
  105. package/agnostic/html/hyper-json/smart-tags/coalesced/replace/index.js +4 -4
  106. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.d.ts +1 -1
  107. package/agnostic/html/hyper-json/smart-tags/coalesced/select/index.js +4 -4
  108. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.d.ts +1 -1
  109. package/agnostic/html/hyper-json/smart-tags/coalesced/set/index.js +4 -4
  110. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.d.ts +1 -1
  111. package/agnostic/html/hyper-json/smart-tags/coalesced/setattribute/index.js +4 -4
  112. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.d.ts +1 -1
  113. package/agnostic/html/hyper-json/smart-tags/coalesced/setproperty/index.js +4 -4
  114. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.d.ts +1 -1
  115. package/agnostic/html/hyper-json/smart-tags/coalesced/sorton/index.js +4 -4
  116. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.d.ts +1 -1
  117. package/agnostic/html/hyper-json/smart-tags/coalesced/split/index.js +4 -4
  118. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.d.ts +1 -1
  119. package/agnostic/html/hyper-json/smart-tags/coalesced/spread/index.js +4 -4
  120. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.d.ts +1 -1
  121. package/agnostic/html/hyper-json/smart-tags/coalesced/toarray/index.js +4 -4
  122. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.d.ts +1 -1
  123. package/agnostic/html/hyper-json/smart-tags/coalesced/toboolean/index.js +4 -4
  124. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.d.ts +1 -1
  125. package/agnostic/html/hyper-json/smart-tags/coalesced/toelement/index.js +4 -4
  126. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.d.ts +1 -1
  127. package/agnostic/html/hyper-json/smart-tags/coalesced/toggleclass/index.js +4 -4
  128. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.d.ts +1 -1
  129. package/agnostic/html/hyper-json/smart-tags/coalesced/tonodelist/index.js +4 -4
  130. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.d.ts +1 -1
  131. package/agnostic/html/hyper-json/smart-tags/coalesced/tonull/index.js +4 -4
  132. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.d.ts +1 -1
  133. package/agnostic/html/hyper-json/smart-tags/coalesced/tonumber/index.js +4 -4
  134. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.d.ts +1 -1
  135. package/agnostic/html/hyper-json/smart-tags/coalesced/torecord/index.js +4 -4
  136. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.d.ts +1 -1
  137. package/agnostic/html/hyper-json/smart-tags/coalesced/toref/index.js +4 -4
  138. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.d.ts +1 -1
  139. package/agnostic/html/hyper-json/smart-tags/coalesced/tostring/index.js +4 -4
  140. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.d.ts +1 -1
  141. package/agnostic/html/hyper-json/smart-tags/coalesced/totext/index.js +4 -4
  142. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.d.ts +1 -1
  143. package/agnostic/html/hyper-json/smart-tags/coalesced/transformselected/index.js +4 -4
  144. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.d.ts +1 -1
  145. package/agnostic/html/hyper-json/smart-tags/coalesced/trim/index.js +4 -4
  146. package/agnostic/html/hyper-json/smart-tags/index.d.ts +1 -1
  147. package/agnostic/html/hyper-json/smart-tags/isolated/any/index.d.ts +1 -1
  148. package/agnostic/html/hyper-json/smart-tags/isolated/array/index.d.ts +1 -1
  149. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.d.ts +1 -1
  150. package/agnostic/html/hyper-json/smart-tags/isolated/boolean/index.js +4 -4
  151. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.d.ts +1 -1
  152. package/agnostic/html/hyper-json/smart-tags/isolated/element/index.js +4 -4
  153. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.d.ts +1 -1
  154. package/agnostic/html/hyper-json/smart-tags/isolated/get/index.js +4 -4
  155. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.d.ts +1 -1
  156. package/agnostic/html/hyper-json/smart-tags/isolated/global/index.js +4 -4
  157. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.d.ts +1 -1
  158. package/agnostic/html/hyper-json/smart-tags/isolated/guess/index.js +4 -4
  159. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.d.ts +1 -1
  160. package/agnostic/html/hyper-json/smart-tags/isolated/nodelist/index.js +4 -4
  161. package/agnostic/html/hyper-json/smart-tags/isolated/null/index.d.ts +1 -1
  162. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.d.ts +1 -1
  163. package/agnostic/html/hyper-json/smart-tags/isolated/number/index.js +4 -4
  164. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.d.ts +1 -1
  165. package/agnostic/html/hyper-json/smart-tags/isolated/record/index.js +4 -4
  166. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.d.ts +1 -1
  167. package/agnostic/html/hyper-json/smart-tags/isolated/ref/index.js +4 -4
  168. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.d.ts +1 -1
  169. package/agnostic/html/hyper-json/smart-tags/isolated/string/index.js +4 -4
  170. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.d.ts +1 -1
  171. package/agnostic/html/hyper-json/smart-tags/isolated/text/index.js +4 -4
  172. package/agnostic/html/hyper-json/transformer/index.d.ts +4 -4
  173. package/agnostic/html/hyper-json/tree/index.d.ts +1 -1
  174. package/agnostic/html/hyper-json/tree/index.js +4 -4
  175. package/agnostic/html/hyper-json/types/index.d.ts +5 -5
  176. package/agnostic/html/hyper-json/utils/index.d.ts +2 -2
  177. package/agnostic/html/hyper-json/utils/index.js +4 -4
  178. package/agnostic/html/index.d.ts +8 -8
  179. package/agnostic/html/index.js +18 -18
  180. package/agnostic/html/sanitize/index.js +4 -4
  181. package/agnostic/html/selector-to-element/index.js +4 -4
  182. package/agnostic/html/string-to-nodes/index.d.ts +1 -1
  183. package/agnostic/html/string-to-nodes/index.js +5 -5
  184. package/agnostic/index.d.ts +12 -12
  185. package/agnostic/misc/assert/index.d.ts +1 -1
  186. package/agnostic/misc/assert/index.js +3 -3
  187. package/agnostic/misc/crossenv/detect-runtime/index.d.ts +1 -1
  188. package/agnostic/misc/crossenv/index.d.ts +3 -3
  189. package/agnostic/misc/crossenv/window/index.d.ts +1 -1
  190. package/agnostic/misc/index.d.ts +11 -11
  191. package/agnostic/misc/index.js +19 -19
  192. package/agnostic/misc/logs/index.d.ts +2 -2
  193. package/agnostic/misc/lorem-ipsum/index.js +10 -10
  194. package/agnostic/numbers/index.d.ts +5 -5
  195. package/agnostic/numbers/index.js +6 -6
  196. package/agnostic/objects/enums/index.d.ts +1 -1
  197. package/agnostic/objects/index.d.ts +8 -8
  198. package/agnostic/objects/index.js +4 -4
  199. package/agnostic/optim/index.d.ts +2 -2
  200. package/agnostic/random/index.d.ts +3 -3
  201. package/agnostic/random/index.js +2 -2
  202. package/agnostic/strings/index.d.ts +7 -7
  203. package/agnostic/strings/index.js +13 -13
  204. package/agnostic/strings/parse-table/index.d.ts +1 -1
  205. package/agnostic/time/dates/index.d.ts +1 -1
  206. package/agnostic/time/index.d.ts +5 -5
  207. package/agnostic/time/index.js +6 -6
  208. package/chunks/chunk-2EHYEUX4.js +21 -0
  209. package/chunks/chunk-5LK2YLTK.js +21 -0
  210. package/chunks/chunk-65NTXENV.js +157 -0
  211. package/chunks/{chunk-6EJIBLPQ.js → chunk-73FF7HWQ.js} +9 -9
  212. package/chunks/{chunk-HMZMKLMR.js → chunk-AF2NAJS2.js} +2 -2
  213. package/chunks/chunk-ALMK24GK.js +0 -0
  214. package/chunks/chunk-BKIF2ELV.js +47 -0
  215. package/chunks/{chunk-AQBJ6HNB.js → chunk-C7SRAQMW.js} +1 -1
  216. package/chunks/{chunk-ZBBU2P4D.js → chunk-CQEDNACN.js} +2 -2
  217. package/chunks/chunk-D7SXHHU3.js +47 -0
  218. package/chunks/{chunk-GU34O65H.js → chunk-E33DCHHS.js} +15 -15
  219. package/chunks/{chunk-WAMSK4A3.js → chunk-E4FJHD5R.js} +1 -1
  220. package/chunks/chunk-GUBFCOBT.js +98 -0
  221. package/chunks/{chunk-5TRAENM3.js → chunk-I2HTBYNO.js} +1 -1
  222. package/chunks/chunk-IDXUS2IO.js +296 -0
  223. package/chunks/chunk-JHUOMGOX.js +81 -0
  224. package/chunks/{chunk-EDJ3TVNV.js → chunk-KDOMQ4LM.js} +15 -6
  225. package/chunks/chunk-MN4FVOU2.js +28 -0
  226. package/chunks/{chunk-2M33FCDG.js → chunk-O7VFJHQX.js} +11 -5
  227. package/chunks/{chunk-KRDVV6K3.js → chunk-OD2XVVE2.js} +3 -3
  228. package/chunks/{chunk-TIER4TF4.js → chunk-P2H6PV4O.js} +1 -1
  229. package/chunks/chunk-P4YT4RBG.js +51 -0
  230. package/chunks/{chunk-C5BQQUAG.js → chunk-PJSPZGT2.js} +12 -12
  231. package/chunks/{chunk-PLIJVLAB.js → chunk-PX4DPCZM.js} +5 -3
  232. package/chunks/{chunk-DWCRT664.js → chunk-QRS3G3YD.js} +3 -3
  233. package/chunks/{chunk-FQ4UTWMP.js → chunk-QTA7ZEVX.js} +3 -1
  234. package/chunks/chunk-QW34TQCS.js +48 -0
  235. package/chunks/{chunk-HMAK6VAF.js → chunk-RBCZWVQH.js} +11 -5
  236. package/chunks/{chunk-XB3EGDBI.js → chunk-RDQJSWRC.js} +1 -1
  237. package/chunks/{chunk-AI6AGF4I.js → chunk-S7637BQZ.js} +8 -5
  238. package/chunks/{chunk-3TA4CDWX.js → chunk-TQXFC6OS.js} +4 -4
  239. package/chunks/chunk-UG5EMKGN.js +265 -0
  240. package/chunks/chunk-VA67YLZL.js +26 -0
  241. package/chunks/{chunk-DEW6LPOS.js → chunk-VKNQ7MVZ.js} +90 -91
  242. package/chunks/{chunk-3TKBCG7Y.js → chunk-WV5N7ESL.js} +4 -1
  243. package/chunks/{chunk-SKBOSWM2.js → chunk-X5HMM3LD.js} +1 -1
  244. package/chunks/chunk-XAYMIITK.js +103 -0
  245. package/chunks/{chunk-H4LW6FP3.js → chunk-Y4THX4AN.js} +1 -1
  246. package/chunks/chunk-YZVZKBVJ.js +631 -0
  247. package/chunks/chunk-ZJ63OCMA.js +207 -0
  248. package/components/index.d.ts +1 -1
  249. package/node/@aws-s3/index.d.ts +1 -1
  250. package/node/@aws-s3/index.js +7 -7
  251. package/node/@aws-s3/storage/directory/copy-dir/index.d.ts +1 -1
  252. package/node/@aws-s3/storage/directory/index.d.ts +4 -4
  253. package/node/@aws-s3/storage/directory/list/index.d.ts +1 -1
  254. package/node/@aws-s3/storage/directory/move-dir/index.d.ts +1 -1
  255. package/node/@aws-s3/storage/directory/remove-dir/index.d.ts +1 -1
  256. package/node/@aws-s3/storage/file/copy/index.d.ts +1 -1
  257. package/node/@aws-s3/storage/file/download/index.d.ts +1 -1
  258. package/node/@aws-s3/storage/file/exists/index.d.ts +1 -1
  259. package/node/@aws-s3/storage/file/index.d.ts +7 -7
  260. package/node/@aws-s3/storage/file/index.js +10 -10
  261. package/node/@aws-s3/storage/file/move/index.d.ts +1 -1
  262. package/node/@aws-s3/storage/file/remove/index.d.ts +1 -1
  263. package/node/@aws-s3/storage/file/remove/index.js +1 -1
  264. package/node/@aws-s3/storage/file/stat/index.d.ts +1 -1
  265. package/node/@aws-s3/storage/file/upload/index.d.ts +1 -1
  266. package/node/@aws-s3/storage/index.d.ts +2 -2
  267. package/node/@aws-s3/storage/index.js +9 -9
  268. package/node/@design-edito/index.d.ts +1 -1
  269. package/node/@express/@multer/index.d.ts +1 -1
  270. package/node/@express/index.d.ts +1 -1
  271. package/node/@google-cloud/index.d.ts +1 -1
  272. package/node/@google-cloud/index.js +11 -11
  273. package/node/@google-cloud/storage/bucket/get-metadata/index.d.ts +1 -1
  274. package/node/@google-cloud/storage/bucket/index.d.ts +4 -4
  275. package/node/@google-cloud/storage/directory/copy-dir/index.d.ts +1 -1
  276. package/node/@google-cloud/storage/directory/index.d.ts +4 -4
  277. package/node/@google-cloud/storage/directory/list/index.d.ts +1 -1
  278. package/node/@google-cloud/storage/directory/move-dir/index.d.ts +1 -1
  279. package/node/@google-cloud/storage/directory/remove-dir/index.d.ts +1 -1
  280. package/node/@google-cloud/storage/file/copy/index.d.ts +1 -1
  281. package/node/@google-cloud/storage/file/download/index.d.ts +1 -1
  282. package/node/@google-cloud/storage/file/exists/index.d.ts +1 -1
  283. package/node/@google-cloud/storage/file/generate-signed-url/index.d.ts +1 -1
  284. package/node/@google-cloud/storage/file/get-metadata/index.d.ts +1 -1
  285. package/node/@google-cloud/storage/file/get-permissions/index.d.ts +1 -1
  286. package/node/@google-cloud/storage/file/index.d.ts +12 -12
  287. package/node/@google-cloud/storage/file/index.js +16 -16
  288. package/node/@google-cloud/storage/file/move/index.d.ts +1 -1
  289. package/node/@google-cloud/storage/file/remove/index.d.ts +1 -1
  290. package/node/@google-cloud/storage/file/revoke-signed-urls/index.d.ts +4 -4
  291. package/node/@google-cloud/storage/file/revoke-signed-urls/index.js +2 -2
  292. package/node/@google-cloud/storage/file/stat/index.d.ts +1 -1
  293. package/node/@google-cloud/storage/file/update-metadata/index.d.ts +1 -1
  294. package/node/@google-cloud/storage/file/upload/index.d.ts +1 -1
  295. package/node/@google-cloud/storage/index.d.ts +3 -3
  296. package/node/@google-cloud/storage/index.js +13 -13
  297. package/node/cloud-storage/index.d.ts +2 -2
  298. package/node/cloud-storage/index.js +23 -23
  299. package/node/cloud-storage/operations/copy-dir/index.d.ts +6 -6
  300. package/node/cloud-storage/operations/copy-file/index.d.ts +6 -6
  301. package/node/cloud-storage/operations/download-file/index.d.ts +6 -6
  302. package/node/cloud-storage/operations/exists-file/index.d.ts +4 -4
  303. package/node/cloud-storage/operations/index.d.ts +11 -11
  304. package/node/cloud-storage/operations/index.js +30 -30
  305. package/node/cloud-storage/operations/list-dir/index.d.ts +4 -4
  306. package/node/cloud-storage/operations/move-dir/index.d.ts +6 -6
  307. package/node/cloud-storage/operations/move-file/index.d.ts +6 -6
  308. package/node/cloud-storage/operations/remove-dir/index.d.ts +6 -6
  309. package/node/cloud-storage/operations/remove-file/index.d.ts +6 -6
  310. package/node/cloud-storage/operations/remove-file/index.js +2 -2
  311. package/node/cloud-storage/operations/stat-file/index.d.ts +6 -6
  312. package/node/cloud-storage/operations/upload-file/index.d.ts +6 -6
  313. package/node/encryption/@aes-256-gcm/buffer/index.d.ts +1 -1
  314. package/node/encryption/@aes-256-gcm/index.d.ts +2 -2
  315. package/node/encryption/@aes-256-gcm/uint8-array/index.d.ts +1 -1
  316. package/node/encryption/index.d.ts +2 -2
  317. package/node/encryption/index.js +3 -3
  318. package/node/files/index.d.ts +3 -3
  319. package/node/ftps/directory/copy-dir/index.d.ts +1 -1
  320. package/node/ftps/directory/index.d.ts +4 -4
  321. package/node/ftps/directory/list/index.d.ts +1 -1
  322. package/node/ftps/directory/move-dir/index.d.ts +1 -1
  323. package/node/ftps/directory/remove-dir/index.d.ts +1 -1
  324. package/node/ftps/file/copy/index.d.ts +1 -1
  325. package/node/ftps/file/download/index.d.ts +1 -1
  326. package/node/ftps/file/exists/index.d.ts +1 -1
  327. package/node/ftps/file/index.d.ts +7 -7
  328. package/node/ftps/file/index.js +9 -9
  329. package/node/ftps/file/move/index.d.ts +1 -1
  330. package/node/ftps/file/remove/index.d.ts +1 -1
  331. package/node/ftps/file/stat/index.d.ts +1 -1
  332. package/node/ftps/file/upload/index.d.ts +1 -1
  333. package/node/ftps/index.d.ts +2 -2
  334. package/node/ftps/index.js +7 -7
  335. package/node/images/create/index.d.ts +3 -0
  336. package/node/images/create/index.js +23 -0
  337. package/node/images/format/index.d.ts +18 -52
  338. package/node/images/format/index.js +30 -4
  339. package/node/images/index.d.ts +6 -4
  340. package/node/images/index.js +41 -21
  341. package/node/images/metadata/index.d.ts +3 -0
  342. package/node/images/metadata/index.js +23 -0
  343. package/node/images/transform/index.d.ts +3 -98
  344. package/node/images/transform/index.js +27 -16
  345. package/node/images/transform/operations/blur/index.d.ts +2 -4
  346. package/node/images/transform/operations/brighten/index.d.ts +2 -4
  347. package/node/images/transform/operations/extend/index.d.ts +2 -9
  348. package/node/images/transform/operations/extend/index.js +17 -2
  349. package/node/images/transform/operations/extract/index.d.ts +2 -7
  350. package/node/images/transform/operations/flatten/index.d.ts +2 -4
  351. package/node/images/transform/operations/flatten/index.js +17 -2
  352. package/node/images/transform/operations/hue/index.d.ts +2 -4
  353. package/node/images/transform/operations/level/index.d.ts +2 -5
  354. package/node/images/transform/operations/lighten/index.d.ts +2 -4
  355. package/node/images/transform/operations/normalize/index.d.ts +2 -5
  356. package/node/images/transform/operations/overlay/index.d.ts +5 -0
  357. package/node/images/transform/operations/overlay/index.js +27 -0
  358. package/node/images/transform/operations/resize/index.d.ts +2 -12
  359. package/node/images/transform/operations/resize/index.js +17 -2
  360. package/node/images/transform/operations/rotate/index.d.ts +2 -5
  361. package/node/images/transform/operations/rotate/index.js +17 -2
  362. package/node/images/transform/operations/saturate/index.d.ts +2 -4
  363. package/node/images/transform/operations/saturate/index.js +1 -1
  364. package/node/images/types.d.ts +252 -0
  365. package/node/images/utils/index.d.ts +7 -0
  366. package/node/images/utils/index.js +28 -0
  367. package/node/index.d.ts +11 -11
  368. package/node/process/index.d.ts +1 -1
  369. package/node/sftp/directory/copy-dir/index.d.ts +1 -1
  370. package/node/sftp/directory/index.d.ts +4 -4
  371. package/node/sftp/directory/list/index.d.ts +1 -1
  372. package/node/sftp/directory/move-dir/index.d.ts +1 -1
  373. package/node/sftp/directory/remove-dir/index.d.ts +1 -1
  374. package/node/sftp/file/copy/index.d.ts +1 -1
  375. package/node/sftp/file/download/index.d.ts +1 -1
  376. package/node/sftp/file/exists/index.d.ts +1 -1
  377. package/node/sftp/file/index.d.ts +7 -7
  378. package/node/sftp/file/index.js +9 -9
  379. package/node/sftp/file/move/index.d.ts +1 -1
  380. package/node/sftp/file/remove/index.d.ts +1 -1
  381. package/node/sftp/file/stat/index.d.ts +1 -1
  382. package/node/sftp/file/upload/index.d.ts +1 -1
  383. package/node/sftp/index.d.ts +2 -2
  384. package/node/sftp/index.js +7 -7
  385. package/package.json +1 -1
  386. package/shared/errors/index.d.ts +1 -1
  387. package/agnostic/colors/complement-color/index.d.ts +0 -1
  388. package/agnostic/colors/complement-color/index.js +0 -7
  389. package/agnostic/colors/hex-to-rgb/index.d.ts +0 -1
  390. package/agnostic/colors/hex-to-rgb/index.js +0 -7
  391. package/agnostic/colors/hsl-to-rgb/index.d.ts +0 -1
  392. package/agnostic/colors/hsl-to-rgb/index.js +0 -7
  393. package/agnostic/colors/lighten-color/index.d.ts +0 -2
  394. package/agnostic/colors/lighten-color/index.js +0 -11
  395. package/agnostic/colors/rgb-to-hex/index.d.ts +0 -1
  396. package/agnostic/colors/rgb-to-hex/index.js +0 -7
  397. package/agnostic/colors/rgb-to-hsl/index.d.ts +0 -1
  398. package/agnostic/colors/rgb-to-hsl/index.js +0 -7
  399. package/agnostic/colors/saturate-color/index.d.ts +0 -2
  400. package/agnostic/colors/saturate-color/index.js +0 -11
  401. package/chunks/chunk-2POD3TAX.js +0 -11
  402. package/chunks/chunk-2TJCB6IM.js +0 -12
  403. package/chunks/chunk-7EDDWSWS.js +0 -123
  404. package/chunks/chunk-FAXNZG5C.js +0 -10
  405. package/chunks/chunk-IFQA5PWI.js +0 -112
  406. package/chunks/chunk-MB7HWF22.js +0 -23
  407. package/chunks/chunk-MFYNJMVM.js +0 -18
  408. package/chunks/chunk-NYVARFI7.js +0 -20
  409. package/chunks/chunk-QLC3A6PC.js +0 -17
  410. package/chunks/chunk-U57Q62IN.js +0 -23
  411. package/chunks/chunk-YVLJKJV2.js +0 -17
  412. package/node/images/get-metadata/index.d.ts +0 -4
  413. package/node/images/get-metadata/index.js +0 -7
  414. package/node/images/transform/operations/composite/index.d.ts +0 -7
  415. package/node/images/transform/operations/composite/index.js +0 -12
  416. package/node/images/transform/utils/index.d.ts +0 -2
  417. package/node/images/transform/utils/index.js +0 -8
  418. package/chunks/{chunk-WH6BPDAC.js → chunk-2KT7AKRW.js} +3 -3
  419. package/chunks/{chunk-S5MTHWQ7.js → chunk-6QFELK4E.js} +8 -8
  420. package/chunks/{chunk-LEYJ4I5W.js → chunk-EXPVRDPR.js} +8 -8
  421. package/chunks/{chunk-ZPDKBMUH.js → chunk-LSZVKXDZ.js} +3 -3
  422. package/chunks/{chunk-NRABY36Z.js → chunk-MLLP7YSK.js} +9 -9
  423. package/chunks/{chunk-OVG5RGI3.js → chunk-S32K7POB.js} +4 -4
@@ -0,0 +1,21 @@
1
+ import {
2
+ toSharpInstance
3
+ } from "./chunk-BKIF2ELV.js";
4
+ import {
5
+ __export
6
+ } from "./chunk-WSFCRVEQ.js";
7
+
8
+ // src/node/images/metadata/index.ts
9
+ var metadata_exports = {};
10
+ __export(metadata_exports, {
11
+ metadata: () => metadata
12
+ });
13
+ async function metadata(imageInput) {
14
+ const sharpInstance = await toSharpInstance(imageInput);
15
+ return sharpInstance.metadata();
16
+ }
17
+
18
+ export {
19
+ metadata,
20
+ metadata_exports
21
+ };
@@ -0,0 +1,157 @@
1
+ import {
2
+ viaCmyk,
3
+ viaHsb,
4
+ viaHsl,
5
+ viaLab,
6
+ viaLch,
7
+ viaRgb,
8
+ viaXyz
9
+ } from "./chunk-YZVZKBVJ.js";
10
+
11
+ // src/agnostic/colors/grayscale/index.ts
12
+ function avgGrayscaleRgb(rgb) {
13
+ const { r, g, b } = rgb;
14
+ const avg = (r + g + b) / 3;
15
+ return { ...rgb, r: avg, g: avg, b: avg };
16
+ }
17
+ function weightedAvgGrayscaleRgb(rgb) {
18
+ const { r, g, b } = rgb;
19
+ const avg = r * 0.2126 + g * 0.7152 + b * 0.0722;
20
+ return { ...rgb, r: avg, g: avg, b: avg };
21
+ }
22
+ function minChannelGrayscaleRgb(rgb) {
23
+ const { r, g, b } = rgb;
24
+ const min = Math.min(r, g, b);
25
+ return { ...rgb, r: min, g: min, b: min };
26
+ }
27
+ function maxChannelGrayscaleRgb(rgb) {
28
+ const { r, g, b } = rgb;
29
+ const max = Math.max(r, g, b);
30
+ return { ...rgb, r: max, g: max, b: max };
31
+ }
32
+ function grayscaleRgbVia(rgb, channel) {
33
+ const { r, g, b } = rgb;
34
+ switch (channel) {
35
+ case "red":
36
+ return { ...rgb, r, g: r, b: r };
37
+ case "green":
38
+ return { ...rgb, r: g, g, b: g };
39
+ case "blue":
40
+ return { ...rgb, r: b, g: b, b };
41
+ }
42
+ }
43
+ function avgGrayscaleCmyk(cmyk) {
44
+ const { c, m, y, k } = cmyk;
45
+ const avg = (c + m + y + k) / 4;
46
+ return { ...cmyk, c: avg, m: avg, y: avg, k: avg };
47
+ }
48
+ function avgNoBlackGrayscaleCmyk(cmyk) {
49
+ const { c, m, y } = cmyk;
50
+ const avg = (c + m + y) / 3;
51
+ return { ...cmyk, c: avg, m: avg, y: avg, k: avg };
52
+ }
53
+ function minChannelGrayscaleCmyk(cmyk) {
54
+ const { c, m, y, k } = cmyk;
55
+ const min = Math.min(c, m, y, k);
56
+ return { ...cmyk, c: min, m: min, y: min, k: min };
57
+ }
58
+ function minNoBlackChannelGrayscaleCmyk(cmyk) {
59
+ const { c, m, y } = cmyk;
60
+ const min = Math.min(c, m, y);
61
+ return { ...cmyk, c: min, m: min, y: min, k: min };
62
+ }
63
+ function maxChannelGrayscaleCmyk(cmyk) {
64
+ const { c, m, y, k } = cmyk;
65
+ const max = Math.max(c, m, y, k);
66
+ return { ...cmyk, c: max, m: max, y: max, k: max };
67
+ }
68
+ function maxNoBlackChannelGrayscaleCmyk(cmyk) {
69
+ const { c, m, y } = cmyk;
70
+ const max = Math.max(c, m, y);
71
+ return { ...cmyk, c: max, m: max, y: max, k: max };
72
+ }
73
+ function grayscaleCmykVia(cmyk, channel) {
74
+ const { c, m, y, k } = cmyk;
75
+ switch (channel) {
76
+ case "cyan":
77
+ return { ...cmyk, c, m: c, y: c, k: c };
78
+ case "magenta":
79
+ return { ...cmyk, c: m, m, y: m, k: m };
80
+ case "yellow":
81
+ return { ...cmyk, c: y, m: y, y, k: y };
82
+ case "black":
83
+ return { ...cmyk, c: k, m: k, y: k, k };
84
+ }
85
+ }
86
+ function perceptualGrayscaleCmyk(cmyk) {
87
+ return { ...cmyk, c: 0, m: 0, y: 0 };
88
+ }
89
+ function grayscaleHsl(hsl) {
90
+ return { ...hsl, s: 0 };
91
+ }
92
+ function grayscaleHsb(hsb) {
93
+ return { ...hsb, s: 0 };
94
+ }
95
+ function grayscaleXyz(xyz) {
96
+ return { ...xyz, x: xyz.y, z: xyz.y };
97
+ }
98
+ function grayscaleLab(lab) {
99
+ return { ...lab, a: 0, b: 0 };
100
+ }
101
+ function grayscaleLch(lch) {
102
+ return { ...lch, c: 0 };
103
+ }
104
+ function grayscale(color, method = "lab") {
105
+ switch (method) {
106
+ case "rgb-avg":
107
+ return viaRgb(color, avgGrayscaleRgb);
108
+ case "rgb-weighted-avg":
109
+ return viaRgb(color, weightedAvgGrayscaleRgb);
110
+ case "rgb-min-channel":
111
+ return viaRgb(color, minChannelGrayscaleRgb);
112
+ case "rgb-max-channel":
113
+ return viaRgb(color, maxChannelGrayscaleRgb);
114
+ case "rgb-via-red":
115
+ return viaRgb(color, (rgb) => grayscaleRgbVia(rgb, "red"));
116
+ case "rgb-via-green":
117
+ return viaRgb(color, (rgb) => grayscaleRgbVia(rgb, "green"));
118
+ case "rgb-via-blue":
119
+ return viaRgb(color, (rgb) => grayscaleRgbVia(rgb, "blue"));
120
+ case "cmyk-avg":
121
+ return viaCmyk(color, avgGrayscaleCmyk);
122
+ case "cmyk-no-black-avg":
123
+ return viaCmyk(color, avgNoBlackGrayscaleCmyk);
124
+ case "cmyk-min-channel":
125
+ return viaCmyk(color, minChannelGrayscaleCmyk);
126
+ case "cmyk-min-no-black-channel":
127
+ return viaCmyk(color, minNoBlackChannelGrayscaleCmyk);
128
+ case "cmyk-max-channel":
129
+ return viaCmyk(color, maxChannelGrayscaleCmyk);
130
+ case "cmyk-max-no-black-channel":
131
+ return viaCmyk(color, maxNoBlackChannelGrayscaleCmyk);
132
+ case "cmyk-via-cyan":
133
+ return viaCmyk(color, (cmyk) => grayscaleCmykVia(cmyk, "cyan"));
134
+ case "cmyk-via-magenta":
135
+ return viaCmyk(color, (cmyk) => grayscaleCmykVia(cmyk, "magenta"));
136
+ case "cmyk-via-yellow":
137
+ return viaCmyk(color, (cmyk) => grayscaleCmykVia(cmyk, "yellow"));
138
+ case "cmyk-via-black":
139
+ return viaCmyk(color, (cmyk) => grayscaleCmykVia(cmyk, "black"));
140
+ case "cmyk-perceptual":
141
+ return viaCmyk(color, perceptualGrayscaleCmyk);
142
+ case "hsl":
143
+ return viaHsl(color, grayscaleHsl);
144
+ case "hsb":
145
+ return viaHsb(color, grayscaleHsb);
146
+ case "xyz":
147
+ return viaXyz(color, grayscaleXyz);
148
+ case "lab":
149
+ return viaLab(color, grayscaleLab);
150
+ case "lch":
151
+ return viaLch(color, grayscaleLch);
152
+ }
153
+ }
154
+
155
+ export {
156
+ grayscale
157
+ };
@@ -1,24 +1,24 @@
1
+ import {
2
+ upload_exports
3
+ } from "./chunk-FD5WR2A5.js";
1
4
  import {
2
5
  download_exports
3
6
  } from "./chunk-IV75M3KE.js";
7
+ import {
8
+ exists_exports
9
+ } from "./chunk-ZEZCYPLQ.js";
4
10
  import {
5
11
  remove_exports
6
- } from "./chunk-3TKBCG7Y.js";
12
+ } from "./chunk-WV5N7ESL.js";
7
13
  import {
8
- upload_exports
9
- } from "./chunk-FD5WR2A5.js";
14
+ move_exports
15
+ } from "./chunk-QWZ4ZNFA.js";
10
16
  import {
11
17
  stat_exports
12
18
  } from "./chunk-VROZGPC5.js";
13
19
  import {
14
20
  copy_exports
15
21
  } from "./chunk-C6QTHDDM.js";
16
- import {
17
- exists_exports
18
- } from "./chunk-ZEZCYPLQ.js";
19
- import {
20
- move_exports
21
- } from "./chunk-QWZ4ZNFA.js";
22
22
  import {
23
23
  __export
24
24
  } from "./chunk-WSFCRVEQ.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Random
3
- } from "./chunk-OVG5RGI3.js";
3
+ } from "./chunk-S32K7POB.js";
4
4
  import {
5
5
  Arrays
6
- } from "./chunk-5TRAENM3.js";
6
+ } from "./chunk-I2HTBYNO.js";
7
7
 
8
8
  // src/agnostic/misc/lorem-ipsum/index.ts
9
9
  var LoremIpsum;
File without changes
@@ -0,0 +1,47 @@
1
+ import {
2
+ tidy,
3
+ toRgb
4
+ } from "./chunk-YZVZKBVJ.js";
5
+ import {
6
+ isNonNullObject
7
+ } from "./chunk-HQLRJ7XW.js";
8
+
9
+ // src/node/images/utils/index.ts
10
+ import { readFile } from "node:fs/promises";
11
+ import sharp from "sharp";
12
+ function toSharpColor(color) {
13
+ const rgb = tidy(toRgb(color));
14
+ return {
15
+ r: rgb.r,
16
+ g: rgb.g,
17
+ b: rgb.b,
18
+ alpha: rgb.a
19
+ };
20
+ }
21
+ function isDuckTypedSharpInstance(obj) {
22
+ if (!isNonNullObject(obj)) return false;
23
+ return "avif" in obj && "clone" in obj && "gif" in obj && "heif" in obj && "jpeg" in obj && "heif" in obj && "metadata" in obj && "png" in obj && "resize" in obj && "tiff" in obj && "webp" in obj && typeof obj.avif === "function" && typeof obj.clone === "function" && typeof obj.gif === "function" && typeof obj.heif === "function" && typeof obj.jpeg === "function" && typeof obj.heif === "function" && typeof obj.metadata === "function" && typeof obj.png === "function" && typeof obj.resize === "function" && typeof obj.tiff === "function" && typeof obj.webp === "function";
24
+ }
25
+ function toCreateOptions(options) {
26
+ return {
27
+ width: options.width ?? 100,
28
+ height: options.height ?? 100,
29
+ channels: options.channels ?? 4,
30
+ background: options.background !== void 0 ? toSharpColor(options.background) : toSharpColor("white"),
31
+ noise: options.noise !== void 0 ? { ...options.noise, type: "gaussian" } : void 0,
32
+ pageHeight: options.pageHeight
33
+ };
34
+ }
35
+ async function toSharpInstance(imageLike, clone = false) {
36
+ if (typeof imageLike === "string") return sharp(await readFile(imageLike));
37
+ if (Buffer.isBuffer(imageLike)) return sharp(imageLike);
38
+ if (isDuckTypedSharpInstance(imageLike)) return clone ? imageLike.clone() : imageLike;
39
+ return sharp({ create: toCreateOptions(imageLike) });
40
+ }
41
+
42
+ export {
43
+ toSharpColor,
44
+ isDuckTypedSharpInstance,
45
+ toCreateOptions,
46
+ toSharpInstance
47
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  register
3
- } from "./chunk-TIER4TF4.js";
3
+ } from "./chunk-P2H6PV4O.js";
4
4
 
5
5
  // src/agnostic/arrays/random-pick/index.ts
6
6
  function randomPick(arr, exclude = []) {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Sanitize
3
- } from "./chunk-XB3EGDBI.js";
3
+ } from "./chunk-RDQJSWRC.js";
4
4
  import {
5
5
  register
6
- } from "./chunk-TIER4TF4.js";
6
+ } from "./chunk-P2H6PV4O.js";
7
7
 
8
8
  // src/agnostic/html/string-to-nodes/index.ts
9
9
  function stringToNodes(dirtyStr, options) {
@@ -0,0 +1,47 @@
1
+ import {
2
+ viaLab,
3
+ viaLch,
4
+ viaRgb
5
+ } from "./chunk-YZVZKBVJ.js";
6
+ import {
7
+ absoluteModulo
8
+ } from "./chunk-DNIOWD7K.js";
9
+
10
+ // src/agnostic/colors/invert/index.ts
11
+ function invertRgb(color) {
12
+ return viaRgb(color, (rgb) => ({
13
+ ...rgb,
14
+ r: 255 - rgb.r,
15
+ g: 255 - rgb.g,
16
+ b: 255 - rgb.b
17
+ }));
18
+ }
19
+ function invertLab(color) {
20
+ return viaLab(color, (lab) => ({
21
+ ...lab,
22
+ l: 100 - lab.l,
23
+ a: -1 * lab.a,
24
+ b: -1 * lab.b
25
+ }));
26
+ }
27
+ function invertLch(color) {
28
+ return viaLch(color, (lch) => ({
29
+ ...lch,
30
+ l: 100 - lch.l,
31
+ h: absoluteModulo(lch.h + 180, 360)
32
+ }));
33
+ }
34
+ function invert(color, method = "lch") {
35
+ switch (method) {
36
+ case "rgb":
37
+ return invertRgb(color);
38
+ case "lab":
39
+ return invertLab(color);
40
+ case "lch":
41
+ return invertLch(color);
42
+ }
43
+ }
44
+
45
+ export {
46
+ invert
47
+ };
@@ -1,39 +1,39 @@
1
1
  import {
2
- get_permissions_exports
3
- } from "./chunk-YKPA3MQL.js";
2
+ update_metadata_exports
3
+ } from "./chunk-HWVEI3RH.js";
4
4
  import {
5
5
  get_metadata_exports
6
6
  } from "./chunk-42K3MQQ5.js";
7
7
  import {
8
- revoke_signed_urls_exports
9
- } from "./chunk-ZPDKBMUH.js";
10
- import {
11
- update_metadata_exports
12
- } from "./chunk-HWVEI3RH.js";
8
+ get_permissions_exports
9
+ } from "./chunk-YKPA3MQL.js";
13
10
  import {
14
11
  generate_signed_url_exports
15
12
  } from "./chunk-PAIUCLVK.js";
13
+ import {
14
+ revoke_signed_urls_exports
15
+ } from "./chunk-LSZVKXDZ.js";
16
+ import {
17
+ upload_exports
18
+ } from "./chunk-FB3GNE2B.js";
16
19
  import {
17
20
  download_exports
18
21
  } from "./chunk-2JH4TCT2.js";
22
+ import {
23
+ exists_exports
24
+ } from "./chunk-5VHFXWFM.js";
19
25
  import {
20
26
  remove_exports
21
27
  } from "./chunk-7J7CYOXU.js";
22
28
  import {
23
- upload_exports
24
- } from "./chunk-FB3GNE2B.js";
29
+ move_exports
30
+ } from "./chunk-6IYUA43Q.js";
25
31
  import {
26
32
  stat_exports
27
33
  } from "./chunk-W3RXHN5I.js";
28
34
  import {
29
35
  copy_exports
30
36
  } from "./chunk-CWZFRUBS.js";
31
- import {
32
- exists_exports
33
- } from "./chunk-5VHFXWFM.js";
34
- import {
35
- move_exports
36
- } from "./chunk-6IYUA43Q.js";
37
37
  import {
38
38
  __export
39
39
  } from "./chunk-WSFCRVEQ.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-JMU5PDBD.js";
4
4
  import {
5
5
  Errors
6
- } from "./chunk-WH6BPDAC.js";
6
+ } from "./chunk-2KT7AKRW.js";
7
7
 
8
8
  // src/agnostic/misc/assert/index.ts
9
9
  var Assert;
@@ -0,0 +1,98 @@
1
+ import {
2
+ toHsb,
3
+ toHsl,
4
+ toLab,
5
+ toLch,
6
+ toRgb,
7
+ toXyz,
8
+ viaHsb,
9
+ viaHsl,
10
+ viaLab,
11
+ viaLch,
12
+ viaRgb,
13
+ viaXyz
14
+ } from "./chunk-YZVZKBVJ.js";
15
+
16
+ // src/agnostic/colors/lerp/index.ts
17
+ function lerpRgb(rgb1, rgb2, amount) {
18
+ const r = rgb1.r + (rgb2.r - rgb1.r) * amount;
19
+ const g = rgb1.g + (rgb2.g - rgb1.g) * amount;
20
+ const b = rgb1.b + (rgb2.b - rgb1.b) * amount;
21
+ const a = (rgb1.a ?? 1) + ((rgb2.a ?? 1) - (rgb1.a ?? 1)) * amount;
22
+ return { r, g, b, a };
23
+ }
24
+ function lerpLab(lab1, lab2, amount) {
25
+ const l = lab1.l + (lab2.l - lab1.l) * amount;
26
+ const a = lab1.a + (lab2.a - lab1.a) * amount;
27
+ const b = lab1.b + (lab2.b - lab1.b) * amount;
28
+ const al = (lab1.al ?? 1) + ((lab2.al ?? 1) - (lab1.al ?? 1)) * amount;
29
+ return { l, a, b, al };
30
+ }
31
+ function lerpLch(lch1, lch2, amount) {
32
+ const l = lch1.l + (lch2.l - lch1.l) * amount;
33
+ const c = lch1.c + (lch2.c - lch1.c) * amount;
34
+ let hDiff = lch2.h - lch1.h;
35
+ if (hDiff > 180) hDiff -= 360;
36
+ if (hDiff < -180) hDiff += 360;
37
+ const h = (lch1.h + hDiff * amount + 360) % 360;
38
+ const a = (lch1.a ?? 1) + ((lch2.a ?? 1) - (lch1.a ?? 1)) * amount;
39
+ return { l, c, h, a };
40
+ }
41
+ function lerpHsl(hsl1, hsl2, amount) {
42
+ const l = hsl1.l + (hsl2.l - hsl1.l) * amount;
43
+ const s = hsl1.s + (hsl2.s - hsl1.s) * amount;
44
+ let hDiff = hsl2.h - hsl1.h;
45
+ if (hDiff > 180) hDiff -= 360;
46
+ if (hDiff < -180) hDiff += 360;
47
+ const h = (hsl1.h + hDiff * amount + 360) % 360;
48
+ const a = (hsl1.a ?? 1) + ((hsl2.a ?? 1) - (hsl1.a ?? 1)) * amount;
49
+ return { h, s, l, a };
50
+ }
51
+ function lerpHsb(hsb1, hsb2, amount) {
52
+ const b = hsb1.b + (hsb2.b - hsb1.b) * amount;
53
+ const s = hsb1.s + (hsb2.s - hsb1.s) * amount;
54
+ let hDiff = hsb2.h - hsb1.h;
55
+ if (hDiff > 180) hDiff -= 360;
56
+ if (hDiff < -180) hDiff += 360;
57
+ const h = (hsb1.h + hDiff * amount + 360) % 360;
58
+ const a = (hsb1.a ?? 1) + ((hsb2.a ?? 1) - (hsb1.a ?? 1)) * amount;
59
+ return { h, s, b, a };
60
+ }
61
+ function lerpLinearRgb(rgb1, rgb2, amount) {
62
+ const linearChannel = (v) => v <= 0.04045 ? v / 12.92 : Math.pow((v + 0.055) / 1.055, 2.4);
63
+ const delinearize = (v) => v <= 31308e-7 ? v * 12.92 : 1.055 * Math.pow(v, 1 / 2.4) - 0.055;
64
+ const r = delinearize(linearChannel(rgb1.r) + (linearChannel(rgb2.r) - linearChannel(rgb1.r)) * amount);
65
+ const g = delinearize(linearChannel(rgb1.g) + (linearChannel(rgb2.g) - linearChannel(rgb1.g)) * amount);
66
+ const b = delinearize(linearChannel(rgb1.b) + (linearChannel(rgb2.b) - linearChannel(rgb1.b)) * amount);
67
+ const a = (rgb1.a ?? 1) + ((rgb2.a ?? 1) - (rgb1.a ?? 1)) * amount;
68
+ return { r, g, b, a };
69
+ }
70
+ function lerpXyz(xyz1, xyz2, amount) {
71
+ const x = xyz1.x + (xyz2.x - xyz1.x) * amount;
72
+ const y = xyz1.y + (xyz2.y - xyz1.y) * amount;
73
+ const z = xyz1.z + (xyz2.z - xyz1.z) * amount;
74
+ const a = (xyz1.a ?? 1) + ((xyz2.a ?? 1) - (xyz1.a ?? 1)) * amount;
75
+ return { x, y, z, a };
76
+ }
77
+ function lerp(c1, c2, amount, method = "rgb") {
78
+ switch (method) {
79
+ case "rgb":
80
+ return viaRgb(c1, (rgb1) => lerpRgb(rgb1, toRgb(c2), amount));
81
+ case "lab":
82
+ return viaLab(c1, (lab1) => lerpLab(lab1, toLab(c2), amount));
83
+ case "lch":
84
+ return viaLch(c1, (lch1) => lerpLch(lch1, toLch(c2), amount));
85
+ case "hsl":
86
+ return viaHsl(c1, (hsl1) => lerpHsl(hsl1, toHsl(c2), amount));
87
+ case "hsb":
88
+ return viaHsb(c1, (hsb1) => lerpHsb(hsb1, toHsb(c2), amount));
89
+ case "rgb-linear":
90
+ return viaRgb(c1, (rgb1) => lerpLinearRgb(rgb1, toRgb(c2), amount));
91
+ case "xyz":
92
+ return viaXyz(c1, (xyz1) => lerpXyz(xyz1, toXyz(c2), amount));
93
+ }
94
+ }
95
+
96
+ export {
97
+ lerp
98
+ };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  randomPick,
3
3
  randomPickMany
4
- } from "./chunk-AQBJ6HNB.js";
4
+ } from "./chunk-C7SRAQMW.js";
5
5
  import {
6
6
  make
7
7
  } from "./chunk-RLAZR3NL.js";