diginext-utils 2.0.31 → 2.0.33

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 (398) hide show
  1. package/README.md +162 -162
  2. package/dist/Checker.d.ts +8 -7
  3. package/dist/Checker.js +48 -28
  4. package/dist/Checker.mjs +29 -0
  5. package/dist/EventDispatcher.d.ts +12 -12
  6. package/dist/EventDispatcher.js +72 -47
  7. package/dist/EventDispatcher.mjs +54 -0
  8. package/dist/FileUpload.d.ts +11 -11
  9. package/dist/FileUpload.js +81 -61
  10. package/dist/FileUpload.mjs +62 -0
  11. package/dist/Slug.d.ts +9 -8
  12. package/dist/Slug.js +350 -330
  13. package/dist/Slug.mjs +331 -0
  14. package/dist/Timer-7b0c4e7c.d.ts +11 -0
  15. package/dist/Timer.d.ts +1 -4
  16. package/dist/Timer.js +31 -7
  17. package/dist/Timer.mjs +7 -0
  18. package/dist/Validation.d.ts +5 -4
  19. package/dist/Validation.js +54 -37
  20. package/dist/Validation.mjs +35 -0
  21. package/dist/array-dc599632.d.ts +158 -0
  22. package/dist/array.d.ts +1 -113
  23. package/dist/array.js +246 -266
  24. package/dist/array.mjs +49 -0
  25. package/dist/browser-8d042ffe.d.ts +22 -0
  26. package/dist/camera-1a859d72.d.ts +15 -0
  27. package/dist/chunk-5NTK5JAI.mjs +57 -0
  28. package/dist/chunk-5UEMANWE.mjs +91 -0
  29. package/dist/chunk-5ZOWNKSD.mjs +166 -0
  30. package/dist/chunk-6GNGTFNC.mjs +118 -0
  31. package/dist/chunk-7MK72U4O.mjs +19 -0
  32. package/dist/chunk-7XKT3AQX.mjs +17 -0
  33. package/dist/chunk-7ZCEZM7K.mjs +41 -0
  34. package/dist/chunk-AMBWJGSW.mjs +151 -0
  35. package/dist/chunk-C7S43KGB.mjs +15 -0
  36. package/dist/chunk-CJM7T7ON.mjs +24 -0
  37. package/dist/chunk-CKILLYAP.mjs +16 -0
  38. package/dist/chunk-DX7MUT3M.mjs +51 -0
  39. package/dist/chunk-EGUJQ5VF.mjs +32 -0
  40. package/dist/chunk-ETEIHDWU.mjs +25 -0
  41. package/dist/chunk-FJXSVGL7.mjs +22 -0
  42. package/dist/chunk-GJCAEOND.mjs +20 -0
  43. package/dist/chunk-GNJDIUYM.mjs +40 -0
  44. package/dist/chunk-IA7GINWD.mjs +39 -0
  45. package/dist/chunk-JEI7BOXY.mjs +21 -0
  46. package/dist/chunk-K4KENOE6.mjs +20 -0
  47. package/dist/chunk-KMERW6KS.mjs +34 -0
  48. package/dist/chunk-KPO3RH5G.mjs +27 -0
  49. package/dist/chunk-KWG5LYNK.mjs +100 -0
  50. package/dist/chunk-NUTQDHLQ.mjs +40 -0
  51. package/dist/chunk-O64XUDAH.mjs +35 -0
  52. package/dist/chunk-OYRPWQUA.mjs +257 -0
  53. package/dist/chunk-PNZ4KGXL.mjs +56 -0
  54. package/dist/chunk-QZYX26HT.mjs +24 -0
  55. package/dist/chunk-RDGP2CKM.mjs +195 -0
  56. package/dist/chunk-VFG5VU6S.mjs +12 -0
  57. package/dist/chunk-X3IMFCZG.mjs +23 -0
  58. package/dist/chunk-ZHNGZMRD.mjs +17 -0
  59. package/dist/color.d.ts +23 -22
  60. package/dist/color.js +96 -79
  61. package/dist/color.mjs +78 -0
  62. package/dist/console/enableConsole.d.ts +1 -2
  63. package/dist/console/enableConsole.js +38 -10
  64. package/dist/console/enableConsole.mjs +9 -0
  65. package/dist/console/index.d.ts +2 -11
  66. package/dist/console/index.js +58 -15
  67. package/dist/console/index.mjs +14 -0
  68. package/dist/console/log.d.ts +15 -14
  69. package/dist/console/log.js +74 -44
  70. package/dist/console/log.mjs +19 -0
  71. package/dist/createDir-220e0081.d.ts +13 -0
  72. package/dist/device/browser.d.ts +1 -5
  73. package/dist/device/browser.js +60 -32
  74. package/dist/device/browser.mjs +15 -0
  75. package/dist/device/camera.d.ts +1 -7
  76. package/dist/device/camera.js +184 -166
  77. package/dist/device/camera.mjs +8 -0
  78. package/dist/device/index.d.ts +1 -5
  79. package/dist/device/index.js +201 -216
  80. package/dist/device/index.mjs +15 -0
  81. package/dist/device/os.d.ts +11 -10
  82. package/dist/device/os.js +55 -28
  83. package/dist/device/os.mjs +33 -0
  84. package/dist/enableConsole-ddc24282.d.ts +11 -0
  85. package/dist/file/createDir.d.ts +1 -5
  86. package/dist/file/createDir.js +34 -13
  87. package/dist/file/createDir.mjs +7 -0
  88. package/dist/file/fileMove.d.ts +1 -4
  89. package/dist/file/fileMove.js +49 -29
  90. package/dist/file/fileMove.mjs +7 -0
  91. package/dist/file/findFilesByExt.d.ts +1 -13
  92. package/dist/file/findFilesByExt.js +64 -45
  93. package/dist/file/findFilesByExt.mjs +11 -0
  94. package/dist/file/index.d.ts +10 -8
  95. package/dist/file/index.js +104 -9
  96. package/dist/file/index.mjs +17 -0
  97. package/dist/fileMove-3a09e429.d.ts +13 -0
  98. package/dist/findFilesByExt-753e91d7.d.ts +24 -0
  99. package/dist/images/index.d.ts +2 -2
  100. package/dist/images/index.js +131 -8
  101. package/dist/images/index.mjs +15 -0
  102. package/dist/images/loadImage.d.ts +3 -0
  103. package/dist/images/loadImage.js +42 -0
  104. package/dist/images/loadImage.mjs +21 -0
  105. package/dist/images/resize.d.ts +3 -2
  106. package/dist/images/resize.js +60 -34
  107. package/dist/images/resize.mjs +9 -0
  108. package/dist/images/upload.d.ts +10 -9
  109. package/dist/images/upload.js +130 -25
  110. package/dist/images/upload.mjs +14 -0
  111. package/dist/index-1f738e52.d.ts +22 -0
  112. package/dist/index-22309f0c.d.ts +23 -0
  113. package/dist/index-6ae3c86b.d.ts +63 -0
  114. package/dist/index-c8fffc86.d.ts +90 -0
  115. package/dist/index-d652ed2c.d.ts +26 -0
  116. package/dist/index.d.ts +47 -36
  117. package/dist/index.js +1352 -62
  118. package/dist/index.mjs +87 -0
  119. package/dist/json.d.ts +8 -7
  120. package/dist/json.js +48 -28
  121. package/dist/json.mjs +29 -0
  122. package/dist/math/diffDate.d.ts +6 -5
  123. package/dist/math/diffDate.js +33 -11
  124. package/dist/math/diffDate.mjs +9 -0
  125. package/dist/math/index.d.ts +3 -30
  126. package/dist/math/index.js +159 -92
  127. package/dist/math/index.mjs +34 -0
  128. package/dist/math/positiveNumber.d.ts +3 -2
  129. package/dist/math/positiveNumber.js +53 -14
  130. package/dist/math/positiveNumber.mjs +10 -0
  131. package/dist/name/en.d.ts +5 -4
  132. package/dist/name/en.js +37 -19
  133. package/dist/name/en.mjs +9 -0
  134. package/dist/name/index.d.ts +3 -12
  135. package/dist/name/index.js +87 -12
  136. package/dist/name/index.mjs +20 -0
  137. package/dist/name/vi.d.ts +5 -4
  138. package/dist/name/vi.js +63 -25
  139. package/dist/name/vi.mjs +14 -0
  140. package/{esm/object.d.ts → dist/object-43aaaf92.d.ts} +79 -58
  141. package/dist/object.d.ts +1 -59
  142. package/dist/object.js +96 -71
  143. package/dist/object.mjs +21 -0
  144. package/dist/permission/index.d.ts +8 -7
  145. package/dist/permission/index.js +230 -6
  146. package/dist/permission/index.mjs +15 -0
  147. package/dist/permission/requestCamera.d.ts +1 -5
  148. package/dist/permission/requestCamera.js +49 -38
  149. package/dist/permission/requestCamera.mjs +9 -0
  150. package/dist/permission/requestDeviceOrientationControl.d.ts +1 -2
  151. package/dist/permission/requestDeviceOrientationControl.js +203 -36
  152. package/dist/permission/requestDeviceOrientationControl.mjs +10 -0
  153. package/dist/requestCamera-32b7dfc7.d.ts +14 -0
  154. package/dist/requestDeviceOrientationControl-b6458660.d.ts +11 -0
  155. package/dist/response/index.d.ts +49 -48
  156. package/dist/response/index.js +92 -47
  157. package/dist/response/index.mjs +16 -0
  158. package/dist/string/formatNumber.d.ts +7 -6
  159. package/dist/string/formatNumber.js +53 -12
  160. package/dist/string/formatNumber.mjs +10 -0
  161. package/dist/string/generatePassword.d.ts +10 -9
  162. package/dist/string/generatePassword.js +52 -21
  163. package/dist/string/generatePassword.mjs +10 -0
  164. package/dist/string/generateUUID.d.ts +3 -2
  165. package/dist/string/generateUUID.js +37 -34
  166. package/dist/string/generateUUID.mjs +9 -0
  167. package/dist/string/index.d.ts +6 -65
  168. package/dist/string/index.js +312 -157
  169. package/dist/string/index.mjs +31 -0
  170. package/dist/string/makeDaySlug.d.ts +31 -30
  171. package/dist/string/makeDaySlug.js +43 -19
  172. package/dist/string/makeDaySlug.mjs +9 -0
  173. package/dist/string/random.d.ts +14 -13
  174. package/dist/string/random.js +53 -22
  175. package/dist/string/random.mjs +19 -0
  176. package/dist/string/trimNull.d.ts +3 -2
  177. package/dist/string/trimNull.js +45 -17
  178. package/dist/string/trimNull.mjs +9 -0
  179. package/dist/string/url.d.ts +1 -36
  180. package/dist/string/url.js +115 -97
  181. package/dist/string/url.mjs +22 -0
  182. package/dist/url-60657387.d.ts +57 -0
  183. package/package.json +66 -66
  184. package/src/Checker.ts +29 -29
  185. package/src/EventDispatcher.ts +62 -62
  186. package/src/FileUpload.ts +66 -66
  187. package/src/Slug.ts +365 -365
  188. package/src/Timer.ts +7 -7
  189. package/src/Validation.ts +36 -36
  190. package/src/array.ts +285 -285
  191. package/src/color.ts +87 -87
  192. package/src/console/enableConsole.ts +8 -8
  193. package/src/console/index.ts +17 -17
  194. package/src/console/log.ts +39 -39
  195. package/src/device/browser.ts +29 -29
  196. package/src/device/camera.ts +207 -207
  197. package/src/device/index.ts +230 -230
  198. package/src/device/os.ts +29 -29
  199. package/src/file/createDir.ts +14 -14
  200. package/src/file/fileMove.ts +32 -32
  201. package/src/file/findFilesByExt.ts +46 -46
  202. package/src/file/index.ts +7 -7
  203. package/src/images/index.ts +3 -3
  204. package/src/images/loadImage.ts +16 -0
  205. package/src/images/resize.ts +35 -35
  206. package/src/images/upload.ts +24 -24
  207. package/src/index.ts +39 -39
  208. package/src/json.ts +29 -29
  209. package/src/math/diffDate.ts +10 -10
  210. package/src/math/index.ts +90 -90
  211. package/src/math/positiveNumber.ts +12 -12
  212. package/src/name/en.ts +27 -27
  213. package/src/name/index.ts +8 -8
  214. package/src/name/vi.ts +23 -23
  215. package/src/object.ts +72 -72
  216. package/src/permission/index.ts +6 -6
  217. package/src/permission/requestCamera.ts +43 -43
  218. package/src/permission/requestDeviceOrientationControl.ts +33 -33
  219. package/src/response/index.ts +45 -45
  220. package/src/string/formatNumber.ts +12 -12
  221. package/src/string/generatePassword.ts +18 -18
  222. package/src/string/generateUUID.ts +37 -37
  223. package/src/string/index.ts +180 -180
  224. package/src/string/makeDaySlug.ts +40 -40
  225. package/src/string/random.ts +24 -24
  226. package/src/string/trimNull.ts +16 -16
  227. package/src/string/url.ts +116 -116
  228. package/dist/Checker.js.map +0 -1
  229. package/dist/EventDispatcher.js.map +0 -1
  230. package/dist/FileUpload.js.map +0 -1
  231. package/dist/Slug.js.map +0 -1
  232. package/dist/Timer.js.map +0 -1
  233. package/dist/Validation.js.map +0 -1
  234. package/dist/array.js.map +0 -1
  235. package/dist/color.js.map +0 -1
  236. package/dist/console/enableConsole.js.map +0 -1
  237. package/dist/console/index.js.map +0 -1
  238. package/dist/console/log.js.map +0 -1
  239. package/dist/device/browser.js.map +0 -1
  240. package/dist/device/camera.js.map +0 -1
  241. package/dist/device/index.js.map +0 -1
  242. package/dist/device/os.js.map +0 -1
  243. package/dist/file/createDir.js.map +0 -1
  244. package/dist/file/fileMove.js.map +0 -1
  245. package/dist/file/findFilesByExt.js.map +0 -1
  246. package/dist/file/index.js.map +0 -1
  247. package/dist/images/index.js.map +0 -1
  248. package/dist/images/resize.js.map +0 -1
  249. package/dist/images/upload.js.map +0 -1
  250. package/dist/index.js.map +0 -1
  251. package/dist/json.js.map +0 -1
  252. package/dist/math/diffDate.js.map +0 -1
  253. package/dist/math/index.js.map +0 -1
  254. package/dist/math/positiveNumber.js.map +0 -1
  255. package/dist/name/en.js.map +0 -1
  256. package/dist/name/index.js.map +0 -1
  257. package/dist/name/vi.js.map +0 -1
  258. package/dist/object.js.map +0 -1
  259. package/dist/permission/index.js.map +0 -1
  260. package/dist/permission/requestCamera.js.map +0 -1
  261. package/dist/permission/requestDeviceOrientationControl.js.map +0 -1
  262. package/dist/response/index.js.map +0 -1
  263. package/dist/string/formatNumber.js.map +0 -1
  264. package/dist/string/generatePassword.js.map +0 -1
  265. package/dist/string/generateUUID.js.map +0 -1
  266. package/dist/string/index.js.map +0 -1
  267. package/dist/string/makeDaySlug.js.map +0 -1
  268. package/dist/string/random.js.map +0 -1
  269. package/dist/string/trimNull.js.map +0 -1
  270. package/dist/string/url.js.map +0 -1
  271. package/esm/Checker.d.ts +0 -8
  272. package/esm/Checker.js +0 -28
  273. package/esm/Checker.js.map +0 -1
  274. package/esm/EventDispatcher.d.ts +0 -13
  275. package/esm/EventDispatcher.js +0 -49
  276. package/esm/EventDispatcher.js.map +0 -1
  277. package/esm/FileUpload.d.ts +0 -12
  278. package/esm/FileUpload.js +0 -62
  279. package/esm/FileUpload.js.map +0 -1
  280. package/esm/Slug.d.ts +0 -9
  281. package/esm/Slug.js +0 -330
  282. package/esm/Slug.js.map +0 -1
  283. package/esm/Timer.d.ts +0 -4
  284. package/esm/Timer.js +0 -7
  285. package/esm/Timer.js.map +0 -1
  286. package/esm/Validation.d.ts +0 -5
  287. package/esm/Validation.js +0 -37
  288. package/esm/Validation.js.map +0 -1
  289. package/esm/array.d.ts +0 -113
  290. package/esm/array.js +0 -275
  291. package/esm/array.js.map +0 -1
  292. package/esm/color.d.ts +0 -23
  293. package/esm/color.js +0 -80
  294. package/esm/color.js.map +0 -1
  295. package/esm/console/enableConsole.d.ts +0 -2
  296. package/esm/console/enableConsole.js +0 -7
  297. package/esm/console/enableConsole.js.map +0 -1
  298. package/esm/console/index.d.ts +0 -11
  299. package/esm/console/index.js +0 -13
  300. package/esm/console/index.js.map +0 -1
  301. package/esm/console/log.d.ts +0 -15
  302. package/esm/console/log.js +0 -33
  303. package/esm/console/log.js.map +0 -1
  304. package/esm/device/browser.d.ts +0 -5
  305. package/esm/device/browser.js +0 -30
  306. package/esm/device/browser.js.map +0 -1
  307. package/esm/device/camera.d.ts +0 -7
  308. package/esm/device/camera.js +0 -168
  309. package/esm/device/camera.js.map +0 -1
  310. package/esm/device/index.d.ts +0 -5
  311. package/esm/device/index.js +0 -217
  312. package/esm/device/index.js.map +0 -1
  313. package/esm/device/os.d.ts +0 -11
  314. package/esm/device/os.js +0 -28
  315. package/esm/device/os.js.map +0 -1
  316. package/esm/file/createDir.d.ts +0 -5
  317. package/esm/file/createDir.js +0 -13
  318. package/esm/file/createDir.js.map +0 -1
  319. package/esm/file/fileMove.d.ts +0 -4
  320. package/esm/file/fileMove.js +0 -29
  321. package/esm/file/fileMove.js.map +0 -1
  322. package/esm/file/findFilesByExt.d.ts +0 -13
  323. package/esm/file/findFilesByExt.js +0 -46
  324. package/esm/file/findFilesByExt.js.map +0 -1
  325. package/esm/file/index.d.ts +0 -9
  326. package/esm/file/index.js +0 -6
  327. package/esm/file/index.js.map +0 -1
  328. package/esm/images/index.d.ts +0 -2
  329. package/esm/images/index.js +0 -4
  330. package/esm/images/index.js.map +0 -1
  331. package/esm/images/resize.d.ts +0 -2
  332. package/esm/images/resize.js +0 -31
  333. package/esm/images/resize.js.map +0 -1
  334. package/esm/images/upload.d.ts +0 -10
  335. package/esm/images/upload.js +0 -20
  336. package/esm/images/upload.js.map +0 -1
  337. package/esm/index.d.ts +0 -37
  338. package/esm/index.js +0 -38
  339. package/esm/index.js.map +0 -1
  340. package/esm/json.d.ts +0 -8
  341. package/esm/json.js +0 -28
  342. package/esm/json.js.map +0 -1
  343. package/esm/math/diffDate.d.ts +0 -5
  344. package/esm/math/diffDate.js +0 -10
  345. package/esm/math/diffDate.js.map +0 -1
  346. package/esm/math/index.d.ts +0 -30
  347. package/esm/math/index.js +0 -78
  348. package/esm/math/index.js.map +0 -1
  349. package/esm/math/positiveNumber.d.ts +0 -2
  350. package/esm/math/positiveNumber.js +0 -13
  351. package/esm/math/positiveNumber.js.map +0 -1
  352. package/esm/name/en.d.ts +0 -5
  353. package/esm/name/en.js +0 -22
  354. package/esm/name/en.js.map +0 -1
  355. package/esm/name/index.d.ts +0 -12
  356. package/esm/name/index.js +0 -6
  357. package/esm/name/index.js.map +0 -1
  358. package/esm/name/vi.d.ts +0 -5
  359. package/esm/name/vi.js +0 -24
  360. package/esm/name/vi.js.map +0 -1
  361. package/esm/object.js +0 -70
  362. package/esm/object.js.map +0 -1
  363. package/esm/permission/index.d.ts +0 -8
  364. package/esm/permission/index.js +0 -5
  365. package/esm/permission/index.js.map +0 -1
  366. package/esm/permission/requestCamera.d.ts +0 -5
  367. package/esm/permission/requestCamera.js +0 -39
  368. package/esm/permission/requestCamera.js.map +0 -1
  369. package/esm/permission/requestDeviceOrientationControl.d.ts +0 -2
  370. package/esm/permission/requestDeviceOrientationControl.js +0 -35
  371. package/esm/permission/requestDeviceOrientationControl.js.map +0 -1
  372. package/esm/response/index.d.ts +0 -49
  373. package/esm/response/index.js +0 -46
  374. package/esm/response/index.js.map +0 -1
  375. package/esm/string/formatNumber.d.ts +0 -6
  376. package/esm/string/formatNumber.js +0 -11
  377. package/esm/string/formatNumber.js.map +0 -1
  378. package/esm/string/generatePassword.d.ts +0 -9
  379. package/esm/string/generatePassword.js +0 -20
  380. package/esm/string/generatePassword.js.map +0 -1
  381. package/esm/string/generateUUID.d.ts +0 -2
  382. package/esm/string/generateUUID.js +0 -33
  383. package/esm/string/generateUUID.js.map +0 -1
  384. package/esm/string/index.d.ts +0 -65
  385. package/esm/string/index.js +0 -150
  386. package/esm/string/index.js.map +0 -1
  387. package/esm/string/makeDaySlug.d.ts +0 -31
  388. package/esm/string/makeDaySlug.js +0 -16
  389. package/esm/string/makeDaySlug.js.map +0 -1
  390. package/esm/string/random.d.ts +0 -14
  391. package/esm/string/random.js +0 -20
  392. package/esm/string/random.js.map +0 -1
  393. package/esm/string/trimNull.d.ts +0 -2
  394. package/esm/string/trimNull.js +0 -14
  395. package/esm/string/trimNull.js.map +0 -1
  396. package/esm/string/url.d.ts +0 -36
  397. package/esm/string/url.js +0 -98
  398. package/esm/string/url.js.map +0 -1
package/dist/Slug.mjs ADDED
@@ -0,0 +1,331 @@
1
+ import "./chunk-ZHNGZMRD.mjs";
2
+
3
+ // src/Slug.ts
4
+ var makeSlug = (s, opt = {}) => {
5
+ var defaults = {
6
+ delimiter: "-",
7
+ lowercase: true,
8
+ replacements: {},
9
+ transliterate: typeof XRegExp === "undefined" ? true : false
10
+ };
11
+ for (var k in defaults) {
12
+ if (!opt.hasOwnProperty(k)) {
13
+ opt[k] = defaults[k];
14
+ }
15
+ }
16
+ var char_map = {
17
+ \u00C0: "A",
18
+ \u00C1: "A",
19
+ \u00C2: "A",
20
+ \u00C3: "A",
21
+ \u00C4: "A",
22
+ \u00C5: "A",
23
+ \u00C6: "AE",
24
+ \u00C7: "C",
25
+ \u00C8: "E",
26
+ \u00C9: "E",
27
+ \u00CA: "E",
28
+ \u00CB: "E",
29
+ \u00CC: "I",
30
+ \u00CD: "I",
31
+ \u00CE: "I",
32
+ \u00CF: "I",
33
+ \u00D0: "D",
34
+ \u00D1: "N",
35
+ \u00D2: "O",
36
+ \u00D3: "O",
37
+ \u00D4: "O",
38
+ \u00D5: "O",
39
+ \u00D6: "O",
40
+ \u0150: "O",
41
+ \u00D8: "O",
42
+ \u00D9: "U",
43
+ \u00DA: "U",
44
+ \u00DB: "U",
45
+ \u00DC: "U",
46
+ \u0170: "U",
47
+ \u00DD: "Y",
48
+ \u00DE: "TH",
49
+ \u00DF: "ss",
50
+ \u00E0: "a",
51
+ \u00E1: "a",
52
+ \u00E2: "a",
53
+ \u00E3: "a",
54
+ \u00E4: "a",
55
+ \u00E5: "a",
56
+ \u00E6: "ae",
57
+ \u00E7: "c",
58
+ \u00E8: "e",
59
+ \u00E9: "e",
60
+ \u00EA: "e",
61
+ \u00EB: "e",
62
+ \u00EC: "i",
63
+ \u00ED: "i",
64
+ \u00EE: "i",
65
+ \u00EF: "i",
66
+ \u00F0: "d",
67
+ \u00F1: "n",
68
+ \u00F2: "o",
69
+ \u00F3: "o",
70
+ \u00F4: "o",
71
+ \u00F5: "o",
72
+ \u00F6: "o",
73
+ \u0151: "o",
74
+ \u00F8: "o",
75
+ \u00F9: "u",
76
+ \u00FA: "u",
77
+ \u00FB: "u",
78
+ \u00FC: "u",
79
+ \u0171: "u",
80
+ \u00FD: "y",
81
+ \u00FE: "th",
82
+ \u00FF: "y",
83
+ "\xA9": "(c)",
84
+ \u0391: "A",
85
+ \u0392: "B",
86
+ \u0393: "G",
87
+ \u0394: "D",
88
+ \u0395: "E",
89
+ \u0396: "Z",
90
+ \u0397: "H",
91
+ \u0398: "8",
92
+ \u0399: "I",
93
+ \u039A: "K",
94
+ \u039B: "L",
95
+ \u039C: "M",
96
+ \u039D: "N",
97
+ \u039E: "3",
98
+ \u039F: "O",
99
+ \u03A0: "P",
100
+ \u03A1: "R",
101
+ \u03A3: "S",
102
+ \u03A4: "T",
103
+ \u03A5: "Y",
104
+ \u03A6: "F",
105
+ \u03A7: "X",
106
+ \u03A8: "PS",
107
+ \u03A9: "W",
108
+ \u0386: "A",
109
+ \u0388: "E",
110
+ \u038A: "I",
111
+ \u038C: "O",
112
+ \u038E: "Y",
113
+ \u0389: "H",
114
+ \u038F: "W",
115
+ \u03AA: "I",
116
+ \u03AB: "Y",
117
+ \u03B1: "a",
118
+ \u03B2: "b",
119
+ \u03B3: "g",
120
+ \u03B4: "d",
121
+ \u03B5: "e",
122
+ \u03B6: "z",
123
+ \u03B7: "h",
124
+ \u03B8: "8",
125
+ \u03B9: "i",
126
+ \u03BA: "k",
127
+ \u03BB: "l",
128
+ \u03BC: "m",
129
+ \u03BD: "n",
130
+ \u03BE: "3",
131
+ \u03BF: "o",
132
+ \u03C0: "p",
133
+ \u03C1: "r",
134
+ \u03C3: "s",
135
+ \u03C4: "t",
136
+ \u03C5: "y",
137
+ \u03C6: "f",
138
+ \u03C7: "x",
139
+ \u03C8: "ps",
140
+ \u03C9: "w",
141
+ \u03AC: "a",
142
+ \u03AD: "e",
143
+ \u03AF: "i",
144
+ \u03CC: "o",
145
+ \u03CD: "y",
146
+ \u03AE: "h",
147
+ \u03CE: "w",
148
+ \u03C2: "s",
149
+ \u03CA: "i",
150
+ \u03B0: "y",
151
+ \u03CB: "y",
152
+ \u0390: "i",
153
+ \u015E: "S",
154
+ \u0130: "I",
155
+ \u011E: "G",
156
+ \u015F: "s",
157
+ \u0131: "i",
158
+ \u011F: "g",
159
+ \u0410: "A",
160
+ \u0411: "B",
161
+ \u0412: "V",
162
+ \u0413: "G",
163
+ \u0414: "D",
164
+ \u0415: "E",
165
+ \u0401: "Yo",
166
+ \u0416: "Zh",
167
+ \u0417: "Z",
168
+ \u0418: "I",
169
+ \u0419: "J",
170
+ \u041A: "K",
171
+ \u041B: "L",
172
+ \u041C: "M",
173
+ \u041D: "N",
174
+ \u041E: "O",
175
+ \u041F: "P",
176
+ \u0420: "R",
177
+ \u0421: "S",
178
+ \u0422: "T",
179
+ \u0423: "U",
180
+ \u0424: "F",
181
+ \u0425: "H",
182
+ \u0426: "C",
183
+ \u0427: "Ch",
184
+ \u0428: "Sh",
185
+ \u0429: "Sh",
186
+ \u042A: "",
187
+ \u042B: "Y",
188
+ \u042C: "",
189
+ \u042D: "E",
190
+ \u042E: "Yu",
191
+ \u042F: "Ya",
192
+ \u0430: "a",
193
+ \u0431: "b",
194
+ \u0432: "v",
195
+ \u0433: "g",
196
+ \u0434: "d",
197
+ \u0435: "e",
198
+ \u0451: "yo",
199
+ \u0436: "zh",
200
+ \u0437: "z",
201
+ \u0438: "i",
202
+ \u0439: "j",
203
+ \u043A: "k",
204
+ \u043B: "l",
205
+ \u043C: "m",
206
+ \u043D: "n",
207
+ \u043E: "o",
208
+ \u043F: "p",
209
+ \u0440: "r",
210
+ \u0441: "s",
211
+ \u0442: "t",
212
+ \u0443: "u",
213
+ \u0444: "f",
214
+ \u0445: "h",
215
+ \u0446: "c",
216
+ \u0447: "ch",
217
+ \u0448: "sh",
218
+ \u0449: "sh",
219
+ \u044A: "",
220
+ \u044B: "y",
221
+ \u044C: "",
222
+ \u044D: "e",
223
+ \u044E: "yu",
224
+ \u044F: "ya",
225
+ \u0404: "Ye",
226
+ \u0406: "I",
227
+ \u0407: "Yi",
228
+ \u0490: "G",
229
+ \u0454: "ye",
230
+ \u0456: "i",
231
+ \u0457: "yi",
232
+ \u0491: "g",
233
+ \u010C: "C",
234
+ \u010E: "D",
235
+ \u011A: "E",
236
+ \u0147: "N",
237
+ \u0158: "R",
238
+ \u0160: "S",
239
+ \u0164: "T",
240
+ \u016E: "U",
241
+ \u017D: "Z",
242
+ \u010D: "c",
243
+ \u010F: "d",
244
+ \u011B: "e",
245
+ \u0148: "n",
246
+ \u0159: "r",
247
+ \u0161: "s",
248
+ \u0165: "t",
249
+ \u016F: "u",
250
+ \u017E: "z",
251
+ \u0104: "A",
252
+ \u0106: "C",
253
+ \u0118: "e",
254
+ \u0141: "L",
255
+ \u0143: "N",
256
+ \u015A: "S",
257
+ \u0179: "Z",
258
+ \u017B: "Z",
259
+ \u0105: "a",
260
+ \u0107: "c",
261
+ \u0119: "e",
262
+ \u0142: "l",
263
+ \u0144: "n",
264
+ \u015B: "s",
265
+ \u017A: "z",
266
+ \u017C: "z",
267
+ \u0100: "A",
268
+ \u0112: "E",
269
+ \u0122: "G",
270
+ \u012A: "i",
271
+ \u0136: "k",
272
+ \u013B: "L",
273
+ \u0145: "N",
274
+ \u016A: "u",
275
+ \u0101: "a",
276
+ \u0113: "e",
277
+ \u0123: "g",
278
+ \u012B: "i",
279
+ \u0137: "k",
280
+ \u013C: "l",
281
+ \u0146: "n",
282
+ \u016B: "u"
283
+ };
284
+ s = s.replace(/á|à|ả|ạ|ã|ă|ắ|ằ|ẳ|ẵ|ặ|â|ấ|ầ|ẩ|ẫ|ậ/gi, "a");
285
+ s = s.replace(/é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ/gi, "e");
286
+ s = s.replace(/i|í|ì|ỉ|ĩ|ị/gi, "i");
287
+ s = s.replace(/ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ/gi, "o");
288
+ s = s.replace(/ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự/gi, "u");
289
+ s = s.replace(/ý|ỳ|ỷ|ỹ|ỵ/gi, "y");
290
+ s = s.replace(/đ/gi, "d");
291
+ s = s.replace(/\-\-\-\-\-/gi, "-");
292
+ s = s.replace(/\-\-\-\-/gi, "-");
293
+ s = s.replace(/\-\-\-/gi, "-");
294
+ s = s.replace(/\-\-/gi, "-");
295
+ s = "@" + s + "@";
296
+ s = s.replace(/\@\-|\-\@|\@/gi, "");
297
+ for (var k in opt.replacements) {
298
+ s = s.replace(RegExp(k, "g"), opt.replacements[k]);
299
+ }
300
+ if (opt.transliterate) {
301
+ for (var k in char_map) {
302
+ s = s.replace(RegExp(k, "g"), char_map[k]);
303
+ }
304
+ }
305
+ var alnum = typeof XRegExp === "undefined" ? RegExp("[^a-z0-9]+", "ig") : XRegExp("[^\\p{L}\\p{N}]+", "ig");
306
+ s = s.replace(alnum, opt.delimiter);
307
+ s = s.replace(RegExp("[" + opt.delimiter + "]{2,}", "g"), opt.delimiter);
308
+ s = s.substring(0, opt.limit);
309
+ s = s.replace(RegExp("(^" + opt.delimiter + "|" + opt.delimiter + "$)", "g"), "");
310
+ return opt.lowercase ? s.toLowerCase() : s;
311
+ };
312
+ var slug = { makeSlug };
313
+ var Slug_default = slug;
314
+ export {
315
+ Slug_default as default,
316
+ makeSlug
317
+ };
318
+ /**
319
+ * Create a web friendly URL slug from a string.
320
+ *
321
+ * Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support.
322
+ *
323
+ * Although supported, transliteration is discouraged because
324
+ * 1) most web browsers support UTF-8 characters in URLs
325
+ * 2) transliteration causes a loss of information
326
+ *
327
+ * @author Sean Murphy <sean@iamseanmurphy.com>
328
+ * @copyright Copyright 2012 Sean Murphy. All rights reserved.
329
+ * @license http://creativecommons.org/publicdomain/zero/1.0/
330
+ *
331
+ */
@@ -0,0 +1,11 @@
1
+ declare const Timer: {
2
+ wait: (ms: number) => Promise<unknown>;
3
+ };
4
+
5
+ declare namespace Timer$1 {
6
+ export {
7
+ Timer as default,
8
+ };
9
+ }
10
+
11
+ export { Timer$1 as T, Timer as a };
package/dist/Timer.d.ts CHANGED
@@ -1,4 +1 @@
1
- declare const Timer: {
2
- wait: (ms: number) => Promise<unknown>;
3
- };
4
- export default Timer;
1
+ export { a as default } from './Timer-7b0c4e7c.js';
package/dist/Timer.js CHANGED
@@ -1,9 +1,33 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Timer = {
4
- wait: async (ms) => {
5
- return new Promise((resolve) => setTimeout(resolve, ms));
6
- },
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 });
7
9
  };
8
- exports.default = Timer;
9
- //# sourceMappingURL=Timer.js.map
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/Timer.ts
21
+ var Timer_exports = {};
22
+ __export(Timer_exports, {
23
+ default: () => Timer_default
24
+ });
25
+ module.exports = __toCommonJS(Timer_exports);
26
+ var Timer = {
27
+ wait: async (ms) => {
28
+ return new Promise((resolve) => setTimeout(resolve, ms));
29
+ }
30
+ };
31
+ var Timer_default = Timer;
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {});
package/dist/Timer.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import {
2
+ Timer_default
3
+ } from "./chunk-GJCAEOND.mjs";
4
+ import "./chunk-ZHNGZMRD.mjs";
5
+ export {
6
+ Timer_default as default
7
+ };
@@ -1,5 +1,6 @@
1
- declare const Validation: {
2
- imageValidate(file: Blob): boolean;
3
- videoValidate(file: Blob): boolean;
1
+ declare const Validation: {
2
+ imageValidate(file: Blob): boolean;
3
+ videoValidate(file: Blob): boolean;
4
4
  };
5
- export default Validation;
5
+
6
+ export { Validation as default };
@@ -1,39 +1,56 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const Validation = {
4
- imageValidate(file) {
5
- // console.log("imageValidate")
6
- var maxSize = 10;
7
- var fileSize = 1024 * 1024 * maxSize; // 10mb
8
- var fileTypes = ["image/png", "image/jpeg"];
9
- // var isFileValid = true;
10
- if (!file || fileTypes.indexOf(file.type) < 0) {
11
- alert("Vui lòng upload ảnh đúng định dạng jpg hay png");
12
- return false;
13
- }
14
- else if (file.size > fileSize) {
15
- alert("Vui lòng upload ảnh có dung lượng thấp hơn " + maxSize + "mb");
16
- return false;
17
- }
18
- return true;
19
- },
20
- videoValidate(file) {
21
- // console.log("videoValidate")
22
- var maxSize = 15;
23
- var fileSize = 1024 * 1024 * maxSize; // 10mb
24
- var fileTypes = "video";
25
- // console.log(file.type)
26
- // var isFileValid = true;
27
- if (!file || file.type.indexOf(fileTypes) < 0) {
28
- alert("Vui lòng upload video");
29
- return false;
30
- }
31
- else if (file.size > fileSize) {
32
- alert("Vui lòng upload video có dung lượng thấp hơn " + maxSize + "mb");
33
- return false;
34
- }
35
- return true;
36
- },
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 });
37
9
  };
38
- exports.default = Validation;
39
- //# sourceMappingURL=Validation.js.map
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/Validation.ts
21
+ var Validation_exports = {};
22
+ __export(Validation_exports, {
23
+ default: () => Validation_default
24
+ });
25
+ module.exports = __toCommonJS(Validation_exports);
26
+ var Validation = {
27
+ imageValidate(file) {
28
+ var maxSize = 10;
29
+ var fileSize = 1024 * 1024 * maxSize;
30
+ var fileTypes = ["image/png", "image/jpeg"];
31
+ if (!file || fileTypes.indexOf(file.type) < 0) {
32
+ alert("Vui l\xF2ng upload \u1EA3nh \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng jpg hay png");
33
+ return false;
34
+ } else if (file.size > fileSize) {
35
+ alert("Vui l\xF2ng upload \u1EA3nh c\xF3 dung l\u01B0\u1EE3ng th\u1EA5p h\u01A1n " + maxSize + "mb");
36
+ return false;
37
+ }
38
+ return true;
39
+ },
40
+ videoValidate(file) {
41
+ var maxSize = 15;
42
+ var fileSize = 1024 * 1024 * maxSize;
43
+ var fileTypes = "video";
44
+ if (!file || file.type.indexOf(fileTypes) < 0) {
45
+ alert("Vui l\xF2ng upload video");
46
+ return false;
47
+ } else if (file.size > fileSize) {
48
+ alert("Vui l\xF2ng upload video c\xF3 dung l\u01B0\u1EE3ng th\u1EA5p h\u01A1n " + maxSize + "mb");
49
+ return false;
50
+ }
51
+ return true;
52
+ }
53
+ };
54
+ var Validation_default = Validation;
55
+ // Annotate the CommonJS export names for ESM import in node:
56
+ 0 && (module.exports = {});
@@ -0,0 +1,35 @@
1
+ import "./chunk-ZHNGZMRD.mjs";
2
+
3
+ // src/Validation.ts
4
+ var Validation = {
5
+ imageValidate(file) {
6
+ var maxSize = 10;
7
+ var fileSize = 1024 * 1024 * maxSize;
8
+ var fileTypes = ["image/png", "image/jpeg"];
9
+ if (!file || fileTypes.indexOf(file.type) < 0) {
10
+ alert("Vui l\xF2ng upload \u1EA3nh \u0111\xFAng \u0111\u1ECBnh d\u1EA1ng jpg hay png");
11
+ return false;
12
+ } else if (file.size > fileSize) {
13
+ alert("Vui l\xF2ng upload \u1EA3nh c\xF3 dung l\u01B0\u1EE3ng th\u1EA5p h\u01A1n " + maxSize + "mb");
14
+ return false;
15
+ }
16
+ return true;
17
+ },
18
+ videoValidate(file) {
19
+ var maxSize = 15;
20
+ var fileSize = 1024 * 1024 * maxSize;
21
+ var fileTypes = "video";
22
+ if (!file || file.type.indexOf(fileTypes) < 0) {
23
+ alert("Vui l\xF2ng upload video");
24
+ return false;
25
+ } else if (file.size > fileSize) {
26
+ alert("Vui l\xF2ng upload video c\xF3 dung l\u01B0\u1EE3ng th\u1EA5p h\u01A1n " + maxSize + "mb");
27
+ return false;
28
+ }
29
+ return true;
30
+ }
31
+ };
32
+ var Validation_default = Validation;
33
+ export {
34
+ Validation_default as default
35
+ };
@@ -0,0 +1,158 @@
1
+ declare const sumArray: (array: [], key: string) => number;
2
+ /**
3
+ *
4
+ * @param {Array} array
5
+ * @param {string} key
6
+ * @returns {Number}
7
+ */
8
+ declare const averageArray: (array: [], key: string) => number;
9
+ /**
10
+ *
11
+ * @param {Array} array
12
+ * @param {string} key
13
+ * @returns {Number}
14
+ */
15
+ declare const minArray: (array: [], key: string) => number;
16
+ /**
17
+ *
18
+ * @param {Array} array
19
+ * @param {string} key
20
+ * @returns {Number}
21
+ */
22
+ declare const maxArray: (array: [], key: string) => number;
23
+ /**
24
+ *
25
+ * @param {Array} array
26
+ * @param {string} key
27
+ * @returns {Array}
28
+ */
29
+ declare const sortElementByString: (array: any, key: string) => any[] | undefined;
30
+ /**
31
+ *
32
+ * @param {Array} array
33
+ * @param {string} key
34
+ * @returns {Array}
35
+ */
36
+ declare const sortElementByNumber: (array: any, key: string) => any[] | undefined;
37
+ /**
38
+ *
39
+ * @param {Array} array
40
+ * @returns {any}
41
+ */
42
+ declare const firstElement: (array: any[]) => any;
43
+ /**
44
+ *
45
+ * @param {Array} array
46
+ * @returns {any}
47
+ */
48
+ declare const lastElement: (array: any[]) => any;
49
+ /**
50
+ *
51
+ * @param {Array} array
52
+ * @returns {any}
53
+ */
54
+ declare const randomIndex: (array: any[]) => number;
55
+ /**
56
+ *
57
+ * @param {Array} array
58
+ * @returns {any}
59
+ */
60
+ declare const randomElement: (array: any[]) => any;
61
+ /**
62
+ * Remove same elements from 2 arrays
63
+ */
64
+ declare const mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
65
+ /**
66
+ * check target == toMatch
67
+ * @param {Array} target
68
+ * @param {Array} toMatch
69
+ * @returns {Boolean}
70
+ */
71
+ declare const allMatchInArray: (target: any[], toMatch: any[]) => boolean;
72
+ declare const removeItem: (item: any, array: any[]) => any[];
73
+ declare const removeItemByKey: (key: string, value: any, array: any[]) => any[];
74
+ declare const getRandom: (array: any[], n: number) => any[];
75
+ /**
76
+ * Get an array with shuffle element
77
+ */
78
+ declare const getHalfRandom: (array: any[], n: number) => any[];
79
+ /**
80
+ * Make array shuffle itself
81
+ */
82
+ declare const shuffle: (array: any[]) => any[];
83
+ /**
84
+ *
85
+ * @param {Array} array
86
+ * @param {Number} oldIndex
87
+ * @param {Number} newIndex
88
+ * @returns {Array}
89
+ */
90
+ declare const moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
91
+ declare const moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
92
+ declare const xarray: {
93
+ sumArray: (array: [], key: string) => number;
94
+ averageArray: (array: [], key: string) => number;
95
+ minArray: (array: [], key: string) => number;
96
+ maxArray: (array: [], key: string) => number;
97
+ sortElementByString: (array: any, key: string) => any[] | undefined;
98
+ sortElementByNumber: (array: any, key: string) => any[] | undefined;
99
+ firstElement: (array: any[]) => any;
100
+ lastElement: (array: any[]) => any;
101
+ randomIndex: (array: any[]) => number;
102
+ randomElement: (array: any[]) => any;
103
+ mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
104
+ allMatchInArray: (target: any[], toMatch: any[]) => boolean;
105
+ removeItem: (item: any, array: any[]) => any[];
106
+ removeItemByKey: (key: string, value: any, array: any[]) => any[];
107
+ getRandom: (array: any[], n: number) => any[];
108
+ getHalfRandom: (array: any[], n: number) => any[];
109
+ shuffle: (array: any[]) => any[];
110
+ moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
111
+ moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
112
+ };
113
+
114
+ declare const array_allMatchInArray: typeof allMatchInArray;
115
+ declare const array_averageArray: typeof averageArray;
116
+ declare const array_firstElement: typeof firstElement;
117
+ declare const array_getHalfRandom: typeof getHalfRandom;
118
+ declare const array_getRandom: typeof getRandom;
119
+ declare const array_lastElement: typeof lastElement;
120
+ declare const array_maxArray: typeof maxArray;
121
+ declare const array_mergeAndMakeUniqueElement: typeof mergeAndMakeUniqueElement;
122
+ declare const array_minArray: typeof minArray;
123
+ declare const array_moveArray: typeof moveArray;
124
+ declare const array_moveIndex: typeof moveIndex;
125
+ declare const array_randomElement: typeof randomElement;
126
+ declare const array_randomIndex: typeof randomIndex;
127
+ declare const array_removeItem: typeof removeItem;
128
+ declare const array_removeItemByKey: typeof removeItemByKey;
129
+ declare const array_shuffle: typeof shuffle;
130
+ declare const array_sortElementByNumber: typeof sortElementByNumber;
131
+ declare const array_sortElementByString: typeof sortElementByString;
132
+ declare const array_sumArray: typeof sumArray;
133
+ declare namespace array {
134
+ export {
135
+ array_allMatchInArray as allMatchInArray,
136
+ array_averageArray as averageArray,
137
+ xarray as default,
138
+ array_firstElement as firstElement,
139
+ array_getHalfRandom as getHalfRandom,
140
+ array_getRandom as getRandom,
141
+ array_lastElement as lastElement,
142
+ array_maxArray as maxArray,
143
+ array_mergeAndMakeUniqueElement as mergeAndMakeUniqueElement,
144
+ array_minArray as minArray,
145
+ array_moveArray as moveArray,
146
+ array_moveIndex as moveIndex,
147
+ array_randomElement as randomElement,
148
+ array_randomIndex as randomIndex,
149
+ array_removeItem as removeItem,
150
+ array_removeItemByKey as removeItemByKey,
151
+ array_shuffle as shuffle,
152
+ array_sortElementByNumber as sortElementByNumber,
153
+ array_sortElementByString as sortElementByString,
154
+ array_sumArray as sumArray,
155
+ };
156
+ }
157
+
158
+ export { array as a, averageArray as b, maxArray as c, sortElementByString as d, sortElementByNumber as e, firstElement as f, randomElement as g, mergeAndMakeUniqueElement as h, allMatchInArray as i, removeItem as j, removeItemByKey as k, lastElement as l, minArray as m, getRandom as n, getHalfRandom as o, shuffle as p, moveIndex as q, randomIndex as r, sumArray as s, moveArray as t, xarray as x };