@fangzhongya/utils 0.0.7 → 0.0.8-3

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 (179) hide show
  1. package/LICENSE +25 -25
  2. package/README.md +5 -3
  3. package/dist/basic/array/asyncMergeArray.cjs +7 -0
  4. package/dist/basic/array/asyncMergeArray.d.ts +9 -0
  5. package/dist/basic/array/asyncMergeArray.js +7 -0
  6. package/dist/basic/array/duplicateRemoval.cjs +7 -0
  7. package/dist/basic/array/duplicateRemoval.d.ts +9 -0
  8. package/dist/basic/array/duplicateRemoval.js +7 -0
  9. package/dist/basic/array/index.cjs +15 -3
  10. package/dist/basic/array/index.d.ts +3 -0
  11. package/dist/basic/array/index.js +14 -2
  12. package/dist/basic/array/replaceAfter.cjs +7 -0
  13. package/dist/basic/array/replaceAfter.d.ts +10 -0
  14. package/dist/basic/array/replaceAfter.js +7 -0
  15. package/dist/basic/array/toggleArray.cjs +2 -2
  16. package/dist/basic/array/toggleArray.d.ts +4 -7
  17. package/dist/basic/array/toggleArray.js +1 -1
  18. package/dist/basic/index.cjs +16 -11
  19. package/dist/basic/index.d.ts +13 -8
  20. package/dist/basic/index.js +15 -10
  21. package/dist/basic/object/index.cjs +7 -3
  22. package/dist/basic/object/index.d.ts +2 -1
  23. package/dist/basic/object/index.js +7 -3
  24. package/dist/basic/object/isObject.cjs +2 -3
  25. package/dist/basic/object/isObject.js +1 -2
  26. package/dist/basic/object/isObjectArray.cjs +9 -0
  27. package/dist/basic/object/isObjectArray.d.ts +8 -0
  28. package/dist/basic/object/isObjectArray.js +9 -0
  29. package/dist/basic/string/index.cjs +8 -4
  30. package/dist/basic/string/index.d.ts +3 -2
  31. package/dist/basic/string/index.js +10 -6
  32. package/dist/basic/string/splitUpper.cjs +7 -0
  33. package/dist/basic/string/splitUpper.d.ts +8 -0
  34. package/dist/basic/string/splitUpper.js +7 -0
  35. package/dist/{chunk-O6GUK5PL.cjs → chunk-27WA7EI2.cjs} +2 -2
  36. package/dist/chunk-2SOGI5PH.js +40 -0
  37. package/dist/{chunk-G3AKL6ST.js → chunk-2W7EPKCY.js} +6 -6
  38. package/dist/chunk-3ERQHPTD.cjs +13 -0
  39. package/dist/chunk-3NFJ3TZL.js +32 -0
  40. package/dist/chunk-43VE3KXL.cjs +27 -0
  41. package/dist/{chunk-XZDG4EDX.js → chunk-4TVFBKXC.js} +5 -5
  42. package/dist/{chunk-R7G5MSGO.cjs → chunk-5JCMM6YG.cjs} +6 -2
  43. package/dist/chunk-5RZYHE3X.js +16 -0
  44. package/dist/{chunk-N6OX2U6W.cjs → chunk-5U2ZV4MK.cjs} +6 -2
  45. package/dist/{chunk-IMCJXCTH.cjs → chunk-5UV36ZIW.cjs} +4 -4
  46. package/dist/chunk-6A6EAFGL.cjs +13 -0
  47. package/dist/{chunk-MWVRSPS5.js → chunk-6MGCPTRE.js} +9 -5
  48. package/dist/{chunk-P3YVE7JK.cjs → chunk-77SI5VSS.cjs} +5 -2
  49. package/dist/chunk-7B2HWFLC.cjs +20 -0
  50. package/dist/chunk-AM67P3W7.js +15 -0
  51. package/dist/{chunk-LFC6RYSS.js → chunk-AWC672JW.js} +13 -0
  52. package/dist/chunk-AXAVKIR3.cjs +20 -0
  53. package/dist/{chunk-3BKSZA3U.cjs → chunk-AXMOZZCM.cjs} +4 -3
  54. package/dist/chunk-BDJORZRC.js +13 -0
  55. package/dist/{chunk-VHMUSGCJ.js → chunk-BWNLZJJG.js} +4 -4
  56. package/dist/{chunk-MAIGGOA4.js → chunk-C5A37VUQ.js} +5 -1
  57. package/dist/{chunk-DILKJQYV.cjs → chunk-CP2ZSRMU.cjs} +1 -1
  58. package/dist/chunk-FP5ETUFZ.cjs +21 -0
  59. package/dist/chunk-GD3OA7GU.cjs +18 -0
  60. package/dist/chunk-GOH6G74S.js +17 -0
  61. package/dist/{chunk-HULCI3SJ.js → chunk-GOJN3OQ4.js} +4 -3
  62. package/dist/chunk-HCEAYQHS.cjs +40 -0
  63. package/dist/{chunk-YK7WI6H7.cjs → chunk-IRKWYW5B.cjs} +13 -0
  64. package/dist/chunk-ISSZY3JI.cjs +24 -0
  65. package/dist/chunk-JLEIVV37.cjs +32 -0
  66. package/dist/chunk-LG7MY5KL.cjs +17 -0
  67. package/dist/chunk-LPDYEUMB.cjs +48 -0
  68. package/dist/chunk-MIC3W2VY.cjs +8 -0
  69. package/dist/{chunk-FESWCW7T.js → chunk-MXLYIZIX.js} +4 -4
  70. package/dist/chunk-MXY4W3K5.js +8 -0
  71. package/dist/{chunk-L45SIOB3.js → chunk-MYS6DR74.js} +22 -6
  72. package/dist/chunk-O2RP4UZQ.cjs +45 -0
  73. package/dist/chunk-P3HC3D2H.cjs +32 -0
  74. package/dist/{chunk-JSU6KHXP.cjs → chunk-PAJDTMC5.cjs} +6 -6
  75. package/dist/{chunk-HRECTLZO.js → chunk-QIK5MQUL.js} +7 -3
  76. package/dist/chunk-QKLVFB74.js +45 -0
  77. package/dist/chunk-QLBOPNV4.cjs +15 -0
  78. package/dist/chunk-RFUD3TOQ.cjs +30 -0
  79. package/dist/chunk-RU4PMJQS.js +21 -0
  80. package/dist/chunk-RWKZ6ZKW.js +20 -0
  81. package/dist/chunk-SRR2GWC7.js +15 -0
  82. package/dist/{chunk-AS3WKQP7.js → chunk-TP5BP64T.js} +5 -2
  83. package/dist/chunk-UCZBNN4I.cjs +19 -0
  84. package/dist/chunk-UGS2F6DK.cjs +16 -0
  85. package/dist/chunk-UOADEBDH.js +13 -0
  86. package/dist/chunk-VNVG4BJ4.cjs +23 -0
  87. package/dist/{chunk-3OME5O5G.cjs → chunk-WI55O3IV.cjs} +2 -2
  88. package/dist/{chunk-G6FL4SSB.js → chunk-XBZX5YZW.js} +1 -1
  89. package/dist/{chunk-2PY55D6T.js → chunk-XCDKXZFR.js} +3 -3
  90. package/dist/chunk-XCTPS2CO.js +20 -0
  91. package/dist/{chunk-2B742V22.cjs → chunk-XHR36FJK.cjs} +2 -6
  92. package/dist/chunk-XQB2HUHZ.js +23 -0
  93. package/dist/{chunk-ZEXHP7HI.js → chunk-YWL2IWBT.js} +1 -1
  94. package/dist/chunk-YYWENXJO.js +27 -0
  95. package/dist/chunk-Z6NS6N32.js +19 -0
  96. package/dist/chunk-ZJHRAMCL.js +30 -0
  97. package/dist/{chunk-62JF75OY.cjs → chunk-ZMG2MHGS.cjs} +7 -3
  98. package/dist/chunk-ZVBCHJA5.js +18 -0
  99. package/dist/css/fetchUnitValue.cjs +7 -0
  100. package/dist/css/fetchUnitValue.d.ts +10 -0
  101. package/dist/css/fetchUnitValue.js +7 -0
  102. package/dist/css/getCss.cjs +7 -0
  103. package/dist/css/getCss.d.ts +3 -0
  104. package/dist/css/getCss.js +7 -0
  105. package/dist/css/index.cjs +12 -0
  106. package/dist/css/index.d.ts +2 -0
  107. package/dist/css/index.js +12 -0
  108. package/dist/{index-24872dab.d.ts → index-09cd203a.d.ts} +3 -0
  109. package/dist/index-2c4dacd2.d.ts +13 -0
  110. package/dist/{index-f8e894a2.d.ts → index-39c0a1ca.d.ts} +5 -2
  111. package/dist/index-42672b09.d.ts +36 -0
  112. package/dist/index-84b0c6c3.d.ts +13 -0
  113. package/dist/index-b16b81dc.d.ts +22 -0
  114. package/dist/index-c661bc0a.d.ts +13 -0
  115. package/dist/{index-8473d4b5.d.ts → index-fab49d44.d.ts} +4 -1
  116. package/dist/index.cjs +46 -25
  117. package/dist/index.d.ts +30 -15
  118. package/dist/index.js +46 -25
  119. package/dist/iss/index.cjs +7 -3
  120. package/dist/iss/index.d.ts +1 -0
  121. package/dist/iss/index.js +8 -4
  122. package/dist/load/getSynch.cjs +7 -0
  123. package/dist/load/getSynch.d.ts +8 -0
  124. package/dist/load/getSynch.js +7 -0
  125. package/dist/load/index.cjs +12 -0
  126. package/dist/load/index.d.ts +2 -0
  127. package/dist/load/index.js +12 -0
  128. package/dist/load/loadScript.cjs +7 -0
  129. package/dist/load/loadScript.d.ts +3 -0
  130. package/dist/load/loadScript.js +7 -0
  131. package/dist/name/getComponentNames.cjs +5 -5
  132. package/dist/name/getComponentNames.js +4 -4
  133. package/dist/name/getNames.cjs +5 -5
  134. package/dist/name/getNames.js +4 -4
  135. package/dist/name/index.cjs +7 -7
  136. package/dist/name/index.d.ts +2 -2
  137. package/dist/name/index.js +8 -8
  138. package/dist/name/lineToLargeHump.cjs +3 -3
  139. package/dist/name/lineToLargeHump.js +2 -2
  140. package/dist/name/lineToSmallHump.cjs +4 -3
  141. package/dist/name/lineToSmallHump.d.ts +1 -1
  142. package/dist/name/lineToSmallHump.js +3 -2
  143. package/dist/urls/getImportUrl.cjs +2 -2
  144. package/dist/urls/getImportUrl.js +1 -1
  145. package/dist/urls/getImportUrlSuffix.cjs +3 -3
  146. package/dist/urls/getImportUrlSuffix.js +2 -2
  147. package/dist/urls/getNewFileName.cjs +8 -0
  148. package/dist/urls/getNewFileName.d.ts +8 -0
  149. package/dist/urls/getNewFileName.js +8 -0
  150. package/dist/urls/getReplaceImportUrl.cjs +8 -0
  151. package/dist/urls/getReplaceImportUrl.d.ts +9 -0
  152. package/dist/urls/getReplaceImportUrl.js +8 -0
  153. package/dist/urls/getSuffix.cjs +7 -0
  154. package/dist/urls/getSuffix.d.ts +8 -0
  155. package/dist/urls/getSuffix.js +7 -0
  156. package/dist/urls/getUrlCatalogue.cjs +2 -2
  157. package/dist/urls/getUrlCatalogue.js +1 -1
  158. package/dist/urls/getUrlCatalogueLast.cjs +7 -0
  159. package/dist/urls/getUrlCatalogueLast.d.ts +8 -0
  160. package/dist/urls/getUrlCatalogueLast.js +7 -0
  161. package/dist/urls/getUrlCatalogueObj.cjs +2 -2
  162. package/dist/urls/getUrlCatalogueObj.d.ts +4 -3
  163. package/dist/urls/getUrlCatalogueObj.js +1 -1
  164. package/dist/urls/index.cjs +22 -6
  165. package/dist/urls/index.d.ts +5 -1
  166. package/dist/urls/index.js +23 -7
  167. package/package.json +308 -233
  168. package/dist/chunk-3VG3A2GM.cjs +0 -24
  169. package/dist/chunk-6ADW34CB.cjs +0 -32
  170. package/dist/chunk-ETPPNXJN.cjs +0 -20
  171. package/dist/chunk-O3RJ5M35.js +0 -19
  172. package/dist/chunk-UL24YTNH.cjs +0 -32
  173. package/dist/chunk-WO6JQRTD.js +0 -16
  174. package/dist/chunk-XRGLFTH2.cjs +0 -16
  175. package/dist/chunk-YMC5G5SU.js +0 -20
  176. package/dist/index-cee90650.d.ts +0 -22
  177. package/dist/index-dfd59fc4.d.ts +0 -13
  178. package/dist/index-ee246de3.d.ts +0 -13
  179. package/dist/{index-dddef964.d.ts → index-f6ea5a6a.d.ts} +2 -2
@@ -0,0 +1,48 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunk43VE3KXLcjs = require('./chunk-43VE3KXL.cjs');
4
+
5
+
6
+ var _chunkRFUD3TOQcjs = require('./chunk-RFUD3TOQ.cjs');
7
+
8
+
9
+ var _chunk6RIGEV6Gcjs = require('./chunk-6RIGEV6G.cjs');
10
+
11
+
12
+ var _chunk6A6EAFGLcjs = require('./chunk-6A6EAFGL.cjs');
13
+
14
+
15
+ var _chunkCP2ZSRMUcjs = require('./chunk-CP2ZSRMU.cjs');
16
+
17
+
18
+ var _chunk3ERQHPTDcjs = require('./chunk-3ERQHPTD.cjs');
19
+
20
+
21
+ var _chunk77SI5VSScjs = require('./chunk-77SI5VSS.cjs');
22
+
23
+
24
+ var _chunk27WA7EI2cjs = require('./chunk-27WA7EI2.cjs');
25
+
26
+
27
+ var _chunkIRKWYW5Bcjs = require('./chunk-IRKWYW5B.cjs');
28
+
29
+
30
+ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
31
+
32
+ // packages/urls/index.ts
33
+ var urls_exports = {};
34
+ _chunk5AZGAKWRcjs.__export.call(void 0, urls_exports, {
35
+ getImportUrl: () => _chunkIRKWYW5Bcjs.getImportUrl,
36
+ getImportUrlSuffix: () => _chunk27WA7EI2cjs.getImportUrlSuffix,
37
+ getNewFileName: () => _chunk43VE3KXLcjs.getNewFileName,
38
+ getReplaceImportUrl: () => _chunkRFUD3TOQcjs.getReplaceImportUrl,
39
+ getReplaceUrl: () => _chunk6RIGEV6Gcjs.getReplaceUrl,
40
+ getSuffix: () => _chunk6A6EAFGLcjs.getSuffix,
41
+ getUrlCatalogue: () => _chunkCP2ZSRMUcjs.getUrlCatalogue,
42
+ getUrlCatalogueLast: () => _chunk3ERQHPTDcjs.getUrlCatalogueLast,
43
+ getUrlCatalogueObj: () => _chunk77SI5VSScjs.getUrlCatalogueObj
44
+ });
45
+
46
+
47
+
48
+ exports.urls_exports = urls_exports;
@@ -0,0 +1,8 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/object/isObject.ts
2
+ function isObject(obj) {
3
+ return obj !== null && typeof obj === "object";
4
+ }
5
+
6
+
7
+
8
+ exports.isObject = isObject;
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  humpToLine
3
3
  } from "./chunk-J7CICTHH.js";
4
- import {
5
- lineToLargeHump
6
- } from "./chunk-2PY55D6T.js";
7
4
  import {
8
5
  lineToSmallHump
9
- } from "./chunk-O3RJ5M35.js";
6
+ } from "./chunk-AM67P3W7.js";
7
+ import {
8
+ lineToLargeHump
9
+ } from "./chunk-XCDKXZFR.js";
10
10
 
11
11
  // packages/name/getComponentNames.ts
12
12
  function getComponentNames(name) {
@@ -0,0 +1,8 @@
1
+ // packages/basic/object/isObject.ts
2
+ function isObject(obj) {
3
+ return obj !== null && typeof obj === "object";
4
+ }
5
+
6
+ export {
7
+ isObject
8
+ };
@@ -1,18 +1,30 @@
1
1
  import {
2
- getImportUrlSuffix
3
- } from "./chunk-G6FL4SSB.js";
2
+ getNewFileName
3
+ } from "./chunk-YYWENXJO.js";
4
4
  import {
5
- getImportUrl
6
- } from "./chunk-LFC6RYSS.js";
5
+ getReplaceImportUrl
6
+ } from "./chunk-ZJHRAMCL.js";
7
7
  import {
8
8
  getReplaceUrl
9
9
  } from "./chunk-ZRZ5HATA.js";
10
+ import {
11
+ getSuffix
12
+ } from "./chunk-UOADEBDH.js";
10
13
  import {
11
14
  getUrlCatalogue
12
- } from "./chunk-ZEXHP7HI.js";
15
+ } from "./chunk-YWL2IWBT.js";
16
+ import {
17
+ getUrlCatalogueLast
18
+ } from "./chunk-BDJORZRC.js";
13
19
  import {
14
20
  getUrlCatalogueObj
15
- } from "./chunk-AS3WKQP7.js";
21
+ } from "./chunk-TP5BP64T.js";
22
+ import {
23
+ getImportUrlSuffix
24
+ } from "./chunk-XBZX5YZW.js";
25
+ import {
26
+ getImportUrl
27
+ } from "./chunk-AWC672JW.js";
16
28
  import {
17
29
  __export
18
30
  } from "./chunk-UICA3PK6.js";
@@ -22,8 +34,12 @@ var urls_exports = {};
22
34
  __export(urls_exports, {
23
35
  getImportUrl: () => getImportUrl,
24
36
  getImportUrlSuffix: () => getImportUrlSuffix,
37
+ getNewFileName: () => getNewFileName,
38
+ getReplaceImportUrl: () => getReplaceImportUrl,
25
39
  getReplaceUrl: () => getReplaceUrl,
40
+ getSuffix: () => getSuffix,
26
41
  getUrlCatalogue: () => getUrlCatalogue,
42
+ getUrlCatalogueLast: () => getUrlCatalogueLast,
27
43
  getUrlCatalogueObj: () => getUrlCatalogueObj
28
44
  });
29
45
 
@@ -0,0 +1,45 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/css/fetchUnitValue.ts
2
+ var tops = [
3
+ "\n",
4
+ "\r",
5
+ " ",
6
+ "+",
7
+ "-",
8
+ "*",
9
+ "/",
10
+ ":",
11
+ "("
12
+ ];
13
+ var ends = [
14
+ "\n",
15
+ "\r",
16
+ " ",
17
+ "+",
18
+ "-",
19
+ "*",
20
+ "/",
21
+ ";",
22
+ ")",
23
+ "}"
24
+ ];
25
+ function fetchUnitValue(text, str, callback) {
26
+ const reg = new RegExp(`([-]?[0-9\\.]+)(${str})`, "g");
27
+ return text.replace(reg, function(a, b, c, d) {
28
+ let is = false;
29
+ const q = text.charAt(d - 1);
30
+ const h = text.charAt(d + a.length);
31
+ const s = Number(b);
32
+ if (!isNaN(s) && tops.includes(q) && ends.includes(h)) {
33
+ is = true;
34
+ }
35
+ let thv = a;
36
+ if (callback && is) {
37
+ thv = callback(s, c, a, d);
38
+ }
39
+ return thv;
40
+ });
41
+ }
42
+
43
+
44
+
45
+ exports.fetchUnitValue = fetchUnitValue;
@@ -0,0 +1,32 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkVNVG4BJ4cjs = require('./chunk-VNVG4BJ4.cjs');
4
+
5
+
6
+ var _chunkGD3OA7GUcjs = require('./chunk-GD3OA7GU.cjs');
7
+
8
+
9
+ var _chunkLG7MY5KLcjs = require('./chunk-LG7MY5KL.cjs');
10
+
11
+
12
+ var _chunkAXMOZZCMcjs = require('./chunk-AXMOZZCM.cjs');
13
+
14
+
15
+ var _chunkISHLY7WMcjs = require('./chunk-ISHLY7WM.cjs');
16
+
17
+
18
+ var _chunk5AZGAKWRcjs = require('./chunk-5AZGAKWR.cjs');
19
+
20
+ // packages/basic/array/index.ts
21
+ var array_exports = {};
22
+ _chunk5AZGAKWRcjs.__export.call(void 0, array_exports, {
23
+ asyncMergeArray: () => _chunkVNVG4BJ4cjs.asyncMergeArray,
24
+ duplicateRemoval: () => _chunkGD3OA7GUcjs.duplicateRemoval,
25
+ isArray: () => _chunkISHLY7WMcjs.isArray,
26
+ replaceAfter: () => _chunkLG7MY5KLcjs.replaceAfter,
27
+ toggleArray: () => _chunkAXMOZZCMcjs.toggleArray
28
+ });
29
+
30
+
31
+
32
+ exports.array_exports = array_exports;
@@ -3,23 +3,23 @@
3
3
  var _chunkLTVXRDTDcjs = require('./chunk-LTVXRDTD.cjs');
4
4
 
5
5
 
6
- var _chunk3OME5O5Gcjs = require('./chunk-3OME5O5G.cjs');
6
+ var _chunkXHR36FJKcjs = require('./chunk-XHR36FJK.cjs');
7
7
 
8
8
 
9
- var _chunk2B742V22cjs = require('./chunk-2B742V22.cjs');
9
+ var _chunkWI55O3IVcjs = require('./chunk-WI55O3IV.cjs');
10
10
 
11
11
  // packages/name/getComponentNames.ts
12
12
  function getComponentNames(name) {
13
13
  if (name.includes("-")) {
14
14
  const line = _chunkLTVXRDTDcjs.humpToLine.call(void 0, name);
15
- const upper = _chunk3OME5O5Gcjs.lineToLargeHump.call(void 0, line);
16
- const lower = _chunk2B742V22cjs.lineToSmallHump.call(void 0, upper);
15
+ const upper = _chunkWI55O3IVcjs.lineToLargeHump.call(void 0, line);
16
+ const lower = _chunkXHR36FJKcjs.lineToSmallHump.call(void 0, upper);
17
17
  return [line, upper, lower];
18
18
  } else if (/[A-Z]/.test(name)) {
19
19
  const line = _chunkLTVXRDTDcjs.humpToLine.call(void 0, name);
20
20
  if (/^[A-Z]/.test(name)) {
21
- const upper = _chunk3OME5O5Gcjs.lineToLargeHump.call(void 0, line);
22
- const lower = _chunk2B742V22cjs.lineToSmallHump.call(void 0, upper);
21
+ const upper = _chunkWI55O3IVcjs.lineToLargeHump.call(void 0, line);
22
+ const lower = _chunkXHR36FJKcjs.lineToSmallHump.call(void 0, upper);
23
23
  if (line.includes("-")) {
24
24
  return [line, upper, lower];
25
25
  } else {
@@ -1,9 +1,12 @@
1
1
  import {
2
- isObject
3
- } from "./chunk-WO6JQRTD.js";
2
+ isObjectArray
3
+ } from "./chunk-SRR2GWC7.js";
4
4
  import {
5
5
  isArray
6
6
  } from "./chunk-5PX3AFSC.js";
7
+ import {
8
+ isObject
9
+ } from "./chunk-MXY4W3K5.js";
7
10
  import {
8
11
  __export
9
12
  } from "./chunk-UICA3PK6.js";
@@ -12,7 +15,8 @@ import {
12
15
  var iss_exports = {};
13
16
  __export(iss_exports, {
14
17
  isArray: () => isArray,
15
- isObject: () => isObject
18
+ isObject: () => isObject,
19
+ isObjectArray: () => isObjectArray
16
20
  });
17
21
 
18
22
  export {
@@ -0,0 +1,45 @@
1
+ // packages/css/fetchUnitValue.ts
2
+ var tops = [
3
+ "\n",
4
+ "\r",
5
+ " ",
6
+ "+",
7
+ "-",
8
+ "*",
9
+ "/",
10
+ ":",
11
+ "("
12
+ ];
13
+ var ends = [
14
+ "\n",
15
+ "\r",
16
+ " ",
17
+ "+",
18
+ "-",
19
+ "*",
20
+ "/",
21
+ ";",
22
+ ")",
23
+ "}"
24
+ ];
25
+ function fetchUnitValue(text, str, callback) {
26
+ const reg = new RegExp(`([-]?[0-9\\.]+)(${str})`, "g");
27
+ return text.replace(reg, function(a, b, c, d) {
28
+ let is = false;
29
+ const q = text.charAt(d - 1);
30
+ const h = text.charAt(d + a.length);
31
+ const s = Number(b);
32
+ if (!isNaN(s) && tops.includes(q) && ends.includes(h)) {
33
+ is = true;
34
+ }
35
+ let thv = a;
36
+ if (callback && is) {
37
+ thv = callback(s, c, a, d);
38
+ }
39
+ return thv;
40
+ });
41
+ }
42
+
43
+ export {
44
+ fetchUnitValue
45
+ };
@@ -0,0 +1,15 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkISHLY7WMcjs = require('./chunk-ISHLY7WM.cjs');
4
+
5
+
6
+ var _chunkMIC3W2VYcjs = require('./chunk-MIC3W2VY.cjs');
7
+
8
+ // packages/basic/object/isObjectArray.ts
9
+ function isObjectArray(obj) {
10
+ return _chunkMIC3W2VYcjs.isObject.call(void 0, obj) && !_chunkISHLY7WMcjs.isArray.call(void 0, obj);
11
+ }
12
+
13
+
14
+
15
+ exports.isObjectArray = isObjectArray;
@@ -0,0 +1,30 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkPW7RP73Jcjs = require('./chunk-PW7RP73J.cjs');
4
+
5
+ // packages/urls/getReplaceImportUrl.ts
6
+ function getReplaceImportUrl(url, imp) {
7
+ const arr = _chunkPW7RP73Jcjs.getStartSames.call(void 0, url, imp);
8
+ const ts = arr[0];
9
+ if (!/[\\|\/]$/.test(ts)) {
10
+ const regs = ts.match(/[\\|\/]([^\\|\/]*)$/);
11
+ if (regs && regs.length > 0) {
12
+ const a = regs[1];
13
+ arr[0] = ts.substring(0, (regs.index || 0) + 1);
14
+ arr[1] = a + arr[1];
15
+ }
16
+ }
17
+ const l = arr[1].split(/\\|\//).length - 1;
18
+ let ds = ["./"];
19
+ if (l > 0) {
20
+ ds = [];
21
+ for (let index = 0; index < l; index++) {
22
+ ds.push("../");
23
+ }
24
+ }
25
+ return ds.join("");
26
+ }
27
+
28
+
29
+
30
+ exports.getReplaceImportUrl = getReplaceImportUrl;
@@ -0,0 +1,21 @@
1
+ // packages/load/loadScript.ts
2
+ function loadScript(src, div) {
3
+ return new Promise((resolve) => {
4
+ const dom = document.createElement("script");
5
+ dom.src = src;
6
+ dom.type = "text/javascript";
7
+ dom.async = true;
8
+ dom.onload = () => {
9
+ resolve(void 0);
10
+ };
11
+ if (div) {
12
+ div.appendChild(dom);
13
+ } else {
14
+ document.body.appendChild(dom);
15
+ }
16
+ });
17
+ }
18
+
19
+ export {
20
+ loadScript
21
+ };
@@ -0,0 +1,20 @@
1
+ import {
2
+ fetchUnitValue
3
+ } from "./chunk-QKLVFB74.js";
4
+ import {
5
+ getCss
6
+ } from "./chunk-5RZYHE3X.js";
7
+ import {
8
+ __export
9
+ } from "./chunk-UICA3PK6.js";
10
+
11
+ // packages/css/index.ts
12
+ var css_exports = {};
13
+ __export(css_exports, {
14
+ fetchUnitValue: () => fetchUnitValue,
15
+ getCss: () => getCss
16
+ });
17
+
18
+ export {
19
+ css_exports
20
+ };
@@ -0,0 +1,15 @@
1
+ import {
2
+ isArray
3
+ } from "./chunk-5PX3AFSC.js";
4
+ import {
5
+ isObject
6
+ } from "./chunk-MXY4W3K5.js";
7
+
8
+ // packages/basic/object/isObjectArray.ts
9
+ function isObjectArray(obj) {
10
+ return isObject(obj) && !isArray(obj);
11
+ }
12
+
13
+ export {
14
+ isObjectArray
15
+ };
@@ -1,18 +1,21 @@
1
1
  // packages/urls/getUrlCatalogueObj.ts
2
2
  function getUrlCatalogueObj(str) {
3
- const reg = /(\\|\/)([^\\|\/]+)(\.[a-z|A-Z]+)$/g;
3
+ const reg = /(\\|\/)([^\\|\/]+)\.([a-z|A-Z]+)$/g;
4
4
  const ml = str.replace(reg, "");
5
5
  let name = "";
6
6
  let suffix = "";
7
+ let apart = "";
7
8
  const arr = reg.exec(str);
8
9
  if (arr) {
10
+ apart = arr[1];
9
11
  name = arr[2];
10
12
  suffix = arr[3];
11
13
  }
12
14
  return {
13
15
  catalogue: ml,
14
16
  name,
15
- suffix
17
+ suffix,
18
+ apart
16
19
  };
17
20
  }
18
21
 
@@ -0,0 +1,19 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/string/splitUpper.ts
2
+ function splitUpper(name) {
3
+ let reg = /(([A-Z])([^A-Z]*))/g;
4
+ let result;
5
+ let arr = [];
6
+ let i = 0;
7
+ while ((result = reg.exec(name)) !== null) {
8
+ if (i == 0 && result.index != 0) {
9
+ arr.push(name.substring(0, result.index));
10
+ }
11
+ i++;
12
+ arr.push(result[1].toLowerCase());
13
+ }
14
+ return arr;
15
+ }
16
+
17
+
18
+
19
+ exports.splitUpper = splitUpper;
@@ -0,0 +1,16 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/css/getCss.ts
2
+ function getStyles(elem) {
3
+ var view = elem.ownerDocument.defaultView;
4
+ if (!view || !view.opener) {
5
+ view = window;
6
+ }
7
+ return view.getComputedStyle(elem);
8
+ }
9
+ function getCss(elem, style) {
10
+ const styles = getStyles(elem);
11
+ return styles.getPropertyValue(style) || styles[style];
12
+ }
13
+
14
+
15
+
16
+ exports.getCss = getCss;
@@ -0,0 +1,13 @@
1
+ // packages/urls/getSuffix.ts
2
+ function getSuffix(url) {
3
+ const reg = /\.([a-z|A-Z]+)$/;
4
+ const regs = reg.exec(url);
5
+ if (regs && regs.length > 0) {
6
+ return regs[1];
7
+ }
8
+ return "";
9
+ }
10
+
11
+ export {
12
+ getSuffix
13
+ };
@@ -0,0 +1,23 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});// packages/basic/array/asyncMergeArray.ts
2
+ function asyncMergeArray(arr, callback) {
3
+ return new Promise((resolve, reject) => {
4
+ let index = 0;
5
+ const k = arr.length;
6
+ arr.forEach((...a) => {
7
+ callback(
8
+ (...arr2) => {
9
+ index++;
10
+ if (k == index) {
11
+ resolve(arr2);
12
+ }
13
+ },
14
+ reject,
15
+ ...a
16
+ );
17
+ });
18
+ });
19
+ }
20
+
21
+
22
+
23
+ exports.asyncMergeArray = asyncMergeArray;
@@ -1,12 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkUEVMS6QDcjs = require('./chunk-UEVMS6QD.cjs');
3
+ var _chunkOQL4GIEJcjs = require('./chunk-OQL4GIEJ.cjs');
4
4
 
5
5
  // packages/name/lineToLargeHump.ts
6
6
  function lineToLargeHump(name) {
7
7
  let arr = name.split("-");
8
8
  arr = arr.map((vs) => {
9
- return _chunkUEVMS6QDcjs.firstLower.call(void 0, vs);
9
+ return _chunkOQL4GIEJcjs.firstUpper.call(void 0, vs);
10
10
  });
11
11
  return arr.join("");
12
12
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getImportUrl
3
- } from "./chunk-LFC6RYSS.js";
3
+ } from "./chunk-AWC672JW.js";
4
4
 
5
5
  // packages/urls/getImportUrlSuffix.ts
6
6
  function getImportUrlSuffix(url, imp) {
@@ -1,12 +1,12 @@
1
1
  import {
2
- firstLower
3
- } from "./chunk-4OBNLDTJ.js";
2
+ firstUpper
3
+ } from "./chunk-EWJJKQIO.js";
4
4
 
5
5
  // packages/name/lineToLargeHump.ts
6
6
  function lineToLargeHump(name) {
7
7
  let arr = name.split("-");
8
8
  arr = arr.map((vs) => {
9
- return firstLower(vs);
9
+ return firstUpper(vs);
10
10
  });
11
11
  return arr.join("");
12
12
  }
@@ -0,0 +1,20 @@
1
+ import {
2
+ getSynch
3
+ } from "./chunk-2SOGI5PH.js";
4
+ import {
5
+ loadScript
6
+ } from "./chunk-RU4PMJQS.js";
7
+ import {
8
+ __export
9
+ } from "./chunk-UICA3PK6.js";
10
+
11
+ // packages/load/index.ts
12
+ var load_exports = {};
13
+ __export(load_exports, {
14
+ getSynch: () => getSynch,
15
+ loadScript: () => loadScript
16
+ });
17
+
18
+ export {
19
+ load_exports
20
+ };
@@ -1,17 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkOQL4GIEJcjs = require('./chunk-OQL4GIEJ.cjs');
3
+ var _chunkWI55O3IVcjs = require('./chunk-WI55O3IV.cjs');
4
4
 
5
5
 
6
6
  var _chunkUEVMS6QDcjs = require('./chunk-UEVMS6QD.cjs');
7
7
 
8
8
  // packages/name/lineToSmallHump.ts
9
9
  function lineToSmallHump(name) {
10
- let arr = name.split("-");
11
- arr = arr.map((vs) => {
12
- return _chunkUEVMS6QDcjs.firstLower.call(void 0, vs);
13
- });
14
- return _chunkOQL4GIEJcjs.firstUpper.call(void 0, arr.join(""));
10
+ return _chunkUEVMS6QDcjs.firstLower.call(void 0, _chunkWI55O3IVcjs.lineToLargeHump.call(void 0, name));
15
11
  }
16
12
 
17
13
 
@@ -0,0 +1,23 @@
1
+ // packages/basic/array/asyncMergeArray.ts
2
+ function asyncMergeArray(arr, callback) {
3
+ return new Promise((resolve, reject) => {
4
+ let index = 0;
5
+ const k = arr.length;
6
+ arr.forEach((...a) => {
7
+ callback(
8
+ (...arr2) => {
9
+ index++;
10
+ if (k == index) {
11
+ resolve(arr2);
12
+ }
13
+ },
14
+ reject,
15
+ ...a
16
+ );
17
+ });
18
+ });
19
+ }
20
+
21
+ export {
22
+ asyncMergeArray
23
+ };
@@ -1,6 +1,6 @@
1
1
  // packages/urls/getUrlCatalogue.ts
2
2
  function getUrlCatalogue(str) {
3
- const reg = /((\\|\/)([^\\|\/]+)(\.[a-z|A-Z]+))$/g;
3
+ const reg = /((\\|\/)([^\\|\/]+)(\.[a-z|A-Z]+))?$/g;
4
4
  return str.replace(reg, "");
5
5
  }
6
6
 
@@ -0,0 +1,27 @@
1
+ import {
2
+ getUrlCatalogueObj
3
+ } from "./chunk-TP5BP64T.js";
4
+
5
+ // packages/urls/getNewFileName.ts
6
+ function getNewFileName(url) {
7
+ const obj = getUrlCatalogueObj(url);
8
+ let wb = obj.name;
9
+ if (wb) {
10
+ const reg = /([0-9]+)$/g;
11
+ const regs = reg.exec(wb);
12
+ if (regs && regs.length > 0) {
13
+ const sl = Number(regs[1]) + 1;
14
+ const reg1 = new RegExp(regs[1] + "$");
15
+ wb = wb.replace(reg1, (sl + "").padStart(regs[1].length, "0"));
16
+ } else {
17
+ wb = wb + "1";
18
+ }
19
+ return obj.catalogue + obj.apart + wb + "." + obj.suffix;
20
+ } else {
21
+ return "";
22
+ }
23
+ }
24
+
25
+ export {
26
+ getNewFileName
27
+ };