@unicom-cloud/utils 0.1.34 → 0.1.36

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 (335) hide show
  1. package/assert/index.js +41 -0
  2. package/assert.js +9 -0
  3. package/case-name/index.js +1 -1
  4. package/caseName.js +1 -1
  5. package/class-name/index.js +1 -1
  6. package/className.js +1 -1
  7. package/clipboard-copy/index.js +1 -1
  8. package/clipboardCopy.js +1 -1
  9. package/constant/address.js +1 -1
  10. package/constant/chineseCharacters.js +1 -1
  11. package/constant/constellations.js +1 -1
  12. package/constant/domain.js +1 -1
  13. package/constant/identity.js +1 -1
  14. package/constant/index.js +19 -21
  15. package/constant/isMobile.js +1 -1
  16. package/constant/keyboardCode.js +1 -1
  17. package/constant/licensePlate.js +1 -1
  18. package/constant/name.js +1 -1
  19. package/constant/platform.js +1 -1
  20. package/constant/protocol.js +1 -1
  21. package/constant/string.js +1 -1
  22. package/constant/ui.js +1 -1
  23. package/constant.js +17 -19
  24. package/content-disposition/index.js +1 -1
  25. package/contentDisposition.js +1 -1
  26. package/cookie/index.js +1 -1
  27. package/cookie/src/api.js +1 -1
  28. package/cookie/src/assign.js +1 -1
  29. package/cookie/src/converter.js +1 -1
  30. package/cookie.js +1 -1
  31. package/date/convertTime.js +1 -1
  32. package/date/convertToDuration.js +1 -1
  33. package/date/index.js +1 -1
  34. package/date.js +1 -1
  35. package/decimal/decimal.js +1 -1
  36. package/decimal/index.js +1 -1
  37. package/decimal.js +1 -1
  38. package/dom-helpers/activeElement.js +1 -1
  39. package/dom-helpers/addClass.js +1 -1
  40. package/dom-helpers/addEventListener.js +1 -1
  41. package/dom-helpers/animate.js +1 -1
  42. package/dom-helpers/animationFrame.js +1 -1
  43. package/dom-helpers/attribute.js +1 -1
  44. package/dom-helpers/camelize.js +1 -1
  45. package/dom-helpers/camelizeStyle.js +1 -1
  46. package/dom-helpers/canUseDOM.js +1 -1
  47. package/dom-helpers/childElements.js +1 -1
  48. package/dom-helpers/childNodes.js +1 -1
  49. package/dom-helpers/clear.js +1 -1
  50. package/dom-helpers/closest.js +1 -1
  51. package/dom-helpers/collectElements.js +1 -1
  52. package/dom-helpers/collectSiblings.js +1 -1
  53. package/dom-helpers/contains.js +1 -1
  54. package/dom-helpers/css.js +1 -1
  55. package/dom-helpers/filterEventHandler.js +1 -1
  56. package/dom-helpers/getComputedStyle.js +1 -1
  57. package/dom-helpers/getElementCoordinates.js +1 -1
  58. package/dom-helpers/getScrollAccessor.js +1 -1
  59. package/dom-helpers/hasClass.js +1 -1
  60. package/dom-helpers/height.js +1 -1
  61. package/dom-helpers/hyphenate.js +1 -1
  62. package/dom-helpers/hyphenateStyle.js +1 -1
  63. package/dom-helpers/index.js +1 -1
  64. package/dom-helpers/insertAfter.js +1 -1
  65. package/dom-helpers/isDocument.js +1 -1
  66. package/dom-helpers/isInput.js +1 -1
  67. package/dom-helpers/isTransform.js +1 -1
  68. package/dom-helpers/isVisible.js +1 -1
  69. package/dom-helpers/isWindow.js +1 -1
  70. package/dom-helpers/listen.js +1 -1
  71. package/dom-helpers/matches.js +1 -1
  72. package/dom-helpers/nextUntil.js +1 -1
  73. package/dom-helpers/offset.js +1 -1
  74. package/dom-helpers/offsetParent.js +1 -1
  75. package/dom-helpers/ownerDocument.js +1 -1
  76. package/dom-helpers/ownerWindow.js +1 -1
  77. package/dom-helpers/parents.js +1 -1
  78. package/dom-helpers/position.js +1 -1
  79. package/dom-helpers/prepend.js +1 -1
  80. package/dom-helpers/querySelectorAll.js +1 -1
  81. package/dom-helpers/reflow.js +1 -1
  82. package/dom-helpers/remove.js +1 -1
  83. package/dom-helpers/removeClass.js +1 -1
  84. package/dom-helpers/removeEventListener.js +1 -1
  85. package/dom-helpers/scrollLeft.js +1 -1
  86. package/dom-helpers/scrollParent.js +1 -1
  87. package/dom-helpers/scrollTo.js +1 -1
  88. package/dom-helpers/scrollTop.js +1 -1
  89. package/dom-helpers/scrollbarSize.js +1 -1
  90. package/dom-helpers/siblings.js +1 -1
  91. package/dom-helpers/text.js +1 -1
  92. package/dom-helpers/toggleClass.js +1 -1
  93. package/dom-helpers/transitionEnd.js +1 -1
  94. package/dom-helpers/triggerEvent.js +1 -1
  95. package/dom-helpers/types.js +1 -1
  96. package/dom-helpers/width.js +1 -1
  97. package/domHelpers.js +1 -1
  98. package/emitter/index.js +1 -1
  99. package/emitter/src/index.js +18 -18
  100. package/emitter.js +1 -1
  101. package/emoji/emoji.js +52077 -0
  102. package/emoji/emojis.js +1920 -0
  103. package/emoji/index.js +35 -0
  104. package/emoji.js +11 -0
  105. package/escape/index.js +1 -1
  106. package/escape.js +1 -1
  107. package/file/fileRead.js +55 -0
  108. package/file/fileToDataURL.js +9 -0
  109. package/file/index.js +5 -3
  110. package/file/saveAs.js +38 -30
  111. package/file.js +5 -3
  112. package/function/index.js +5 -4
  113. package/function.js +5 -4
  114. package/idb/index.js +1 -1
  115. package/idb.js +1 -1
  116. package/index.js +1 -1
  117. package/invariant/index.js +1 -1
  118. package/invariant.js +1 -1
  119. package/is/index.js +201 -198
  120. package/is/lib/isAscii.js +6 -6
  121. package/is/lib/isBase64.js +5 -5
  122. package/is/lib/isChinese.js +1 -1
  123. package/is/lib/isDataURI.js +11 -11
  124. package/is/lib/isEmail.js +25 -25
  125. package/is/lib/isFQDN.js +7 -7
  126. package/is/lib/isFullWidth.js +5 -5
  127. package/is/lib/isHSL.js +5 -5
  128. package/is/lib/isHalfWidth.js +5 -5
  129. package/is/lib/isHash.js +5 -5
  130. package/is/lib/isHexColor.js +7 -7
  131. package/is/lib/isIMEI.js +7 -7
  132. package/is/lib/isIP.js +12 -12
  133. package/is/lib/isIPRange.js +8 -8
  134. package/is/lib/isIdentityCard.js +12 -12
  135. package/is/lib/isJWT.js +9 -9
  136. package/is/lib/isMACAddress.js +6 -6
  137. package/is/lib/isMD5.js +4 -4
  138. package/is/lib/isMimeType.js +4 -4
  139. package/is/lib/isMobilePhone.js +3 -3
  140. package/is/lib/isPort.js +1 -1
  141. package/is/lib/isRgbColor.js +8 -8
  142. package/is/lib/isSemVer.js +5 -5
  143. package/is/lib/isSlug.js +6 -6
  144. package/is/lib/isStrongPassword.js +8 -8
  145. package/is/lib/isURL.js +32 -32
  146. package/is/lib/isUUID.js +5 -5
  147. package/is/lib/isVariableWidth.js +7 -7
  148. package/is.js +78 -76
  149. package/lunar/index.js +1 -1
  150. package/lunar/lib/Holiday.js +1 -1
  151. package/lunar/lib/HolidayUtil.js +1 -1
  152. package/lunar/lib/I18n.js +1 -1
  153. package/lunar/lib/JieQi.js +1 -1
  154. package/lunar/lib/Lunar.js +1 -1
  155. package/lunar/lib/LunarMonth.js +1 -1
  156. package/lunar/lib/LunarTime.js +1 -1
  157. package/lunar/lib/LunarUtil.js +1 -1
  158. package/lunar/lib/LunarYear.js +1 -1
  159. package/lunar/lib/ShouXingUtil.js +1 -1
  160. package/lunar/lib/Solar.js +1 -1
  161. package/lunar/lib/SolarHalfYear.js +1 -1
  162. package/lunar/lib/SolarMonth.js +1 -1
  163. package/lunar/lib/SolarSeason.js +1 -1
  164. package/lunar/lib/SolarUtil.js +1 -1
  165. package/lunar/lib/SolarWeek.js +1 -1
  166. package/lunar/lib/SolarYear.js +1 -1
  167. package/lunar/lib/index.js +1 -1
  168. package/lunar.js +1 -1
  169. package/math/index.js +1 -1
  170. package/math.js +1 -1
  171. package/md5/index.js +1 -1
  172. package/md5.js +1 -1
  173. package/mock/MockWebSocket.js +1 -1
  174. package/mock/MockXMLHttpRequest.js +1 -1
  175. package/mock/index.js +1 -1
  176. package/mock.js +1 -1
  177. package/normalize-wheel/ExecutionEnvironment.js +1 -1
  178. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  179. package/normalize-wheel/index.js +1 -1
  180. package/normalize-wheel/isEventSupported.js +1 -1
  181. package/normalizeWheel.js +1 -1
  182. package/number-to-chinese/index.js +1 -1
  183. package/numberToChinese.js +1 -1
  184. package/nzh/cn.js +1 -1
  185. package/nzh/hk.js +1 -1
  186. package/nzh/index.js +1 -1
  187. package/nzh/nzh.js +1 -1
  188. package/nzh/src/autoGet.js +1 -1
  189. package/nzh/src/index.js +1 -1
  190. package/nzh/src/langs/cn_b.js +1 -1
  191. package/nzh/src/langs/cn_s.js +1 -1
  192. package/nzh/src/langs/hk_b.js +1 -1
  193. package/nzh/src/langs/hk_s.js +1 -1
  194. package/nzh/src/utils.js +1 -1
  195. package/nzh.js +1 -1
  196. package/object/index.js +18 -0
  197. package/object.js +8 -0
  198. package/package.json +1 -1
  199. package/pinyin/index.js +1 -1
  200. package/pinyin/simplified.js +1 -1
  201. package/pinyin/src/core.js +1 -1
  202. package/pinyin/src/simplified.js +1 -1
  203. package/pinyin/src/simplified_dict.js +1 -1
  204. package/pinyin/src/traditional.js +1 -1
  205. package/pinyin/src/traditional_dict.js +1 -1
  206. package/pinyin/traditional.js +1 -1
  207. package/pinyin.js +1 -1
  208. package/query-string/base.js +2 -2
  209. package/query-string/index.js +1 -1
  210. package/query-string/splitOnFirst.js +1 -1
  211. package/queryString.js +1 -1
  212. package/random/address.js +1 -1
  213. package/random/constellation.js +1 -1
  214. package/random/image.js +1 -1
  215. package/random/index.js +1 -1
  216. package/random/licensePlate.js +1 -1
  217. package/random/name.js +1 -1
  218. package/random/number.js +1 -1
  219. package/random/text.js +1 -1
  220. package/random/time.js +1 -1
  221. package/random/web.js +1 -1
  222. package/random.js +1 -1
  223. package/screenfull/index.js +1 -1
  224. package/screenfull.js +1 -1
  225. package/sleep/index.js +1 -1
  226. package/sleep.js +1 -1
  227. package/snapdom/index.js +1 -1
  228. package/snapdom/src/api/preCache.js +1 -1
  229. package/snapdom/src/api/snapdom.js +2 -2
  230. package/snapdom/src/core/cache.js +1 -1
  231. package/snapdom/src/core/capture.js +1 -1
  232. package/snapdom/src/core/clone.js +1 -1
  233. package/snapdom/src/core/context.js +1 -1
  234. package/snapdom/src/core/plugins.js +1 -1
  235. package/snapdom/src/core/prepare.js +1 -1
  236. package/snapdom/src/exporters/download.js +1 -1
  237. package/snapdom/src/exporters/toBlob.js +1 -1
  238. package/snapdom/src/exporters/toCanvas.js +1 -1
  239. package/snapdom/src/exporters/toImg.js +1 -1
  240. package/snapdom/src/modules/CSSVar.js +1 -1
  241. package/snapdom/src/modules/background.js +1 -1
  242. package/snapdom/src/modules/changeCSS.js +1 -1
  243. package/snapdom/src/modules/counter.js +1 -1
  244. package/snapdom/src/modules/fonts.js +2 -2
  245. package/snapdom/src/modules/iconFonts.js +1 -1
  246. package/snapdom/src/modules/images.js +1 -1
  247. package/snapdom/src/modules/lineClamp.js +1 -1
  248. package/snapdom/src/modules/pseudo.js +1 -1
  249. package/snapdom/src/modules/rasterize.js +1 -1
  250. package/snapdom/src/modules/snapFetch.js +1 -1
  251. package/snapdom/src/modules/styles.js +1 -1
  252. package/snapdom/src/modules/svgDefs.js +1 -1
  253. package/snapdom/src/utils/browser.js +1 -1
  254. package/snapdom/src/utils/capture.helpers.js +1 -1
  255. package/snapdom/src/utils/clone.helpers.js +1 -1
  256. package/snapdom/src/utils/css.js +1 -1
  257. package/snapdom/src/utils/helpers.js +1 -1
  258. package/snapdom/src/utils/image.js +1 -1
  259. package/snapdom/src/utils/prepare.helpers.js +1 -1
  260. package/snapdom/src/utils/transforms.helpers.js +1 -1
  261. package/snapdom.js +1 -1
  262. package/string/chars.js +660 -0
  263. package/string/index.js +1 -1
  264. package/string.js +1 -1
  265. package/tinycolor/index.js +1 -1
  266. package/tinycolor/src/conversion.js +1 -1
  267. package/tinycolor/src/css-color-names.js +1 -1
  268. package/tinycolor/src/format-input.js +1 -1
  269. package/tinycolor/src/from-ratio.js +1 -1
  270. package/tinycolor/src/index.js +1 -1
  271. package/tinycolor/src/random.js +1 -1
  272. package/tinycolor/src/readability.js +1 -1
  273. package/tinycolor/src/to-ms-filter.js +1 -1
  274. package/tinycolor/src/utils.js +1 -1
  275. package/tinycolor.js +1 -1
  276. package/tree/index.js +1 -1
  277. package/tree/search/index.js +1 -1
  278. package/tree.js +1 -1
  279. package/tween/index.js +1 -1
  280. package/tween/src/easing.js +1 -1
  281. package/tween/src/tween.js +1 -1
  282. package/tween.js +1 -1
  283. package/types/assert/index.d.ts +8 -0
  284. package/types/constant/index.d.ts +0 -1
  285. package/types/emoji/emoji.d.ts +196 -0
  286. package/types/emoji/emojis.d.ts +2 -0
  287. package/types/{constant/emoji.d.ts → emoji/index.d.ts} +4 -0
  288. package/types/file/fileRead.d.ts +11 -0
  289. package/types/file/fileToDataURL.d.ts +3 -0
  290. package/types/file/index.d.ts +3 -2
  291. package/types/file/saveAs.d.ts +2 -1
  292. package/types/is/index.d.ts +18 -16
  293. package/types/is/lib/isIP.d.ts +1 -1
  294. package/types/is/lib/isURL.d.ts +1 -1
  295. package/types/lodash/isPromise.d.ts +1 -1
  296. package/types/normalize-wheel/index.d.ts +1 -1
  297. package/types/object/index.d.ts +5 -0
  298. package/types/snapdom/src/api/preCache.d.ts +1 -1
  299. package/types/string/chars.d.ts +2 -0
  300. package/ui-color/compareColorByRange.js +1 -1
  301. package/ui-color/index.js +1 -1
  302. package/uiColor.js +1 -1
  303. package/url-toolkit/index.js +1 -1
  304. package/url-toolkit/src/url-toolkit.js +1 -1
  305. package/urlToolkit.js +1 -1
  306. package/validate/index.js +1 -1
  307. package/validate/src/index.js +5 -4
  308. package/validate/src/locale/en-US.js +1 -1
  309. package/validate/src/locale/index.js +1 -1
  310. package/validate/src/locale/zh-CN.js +1 -1
  311. package/validate/src/rules/array.js +1 -1
  312. package/validate/src/rules/base.js +1 -1
  313. package/validate/src/rules/boolean.js +1 -1
  314. package/validate/src/rules/custom.js +1 -1
  315. package/validate/src/rules/number.js +1 -1
  316. package/validate/src/rules/object.js +1 -1
  317. package/validate/src/rules/string.js +1 -1
  318. package/validate/src/rules/type.js +1 -1
  319. package/validate.js +1 -1
  320. package/version/index.js +1 -1
  321. package/version.js +1 -1
  322. package/xlsx/index.js +1 -1
  323. package/xlsx/xlsx.js +30 -77
  324. package/xlsx.js +1 -1
  325. package/constant/emoji.js +0 -32
  326. package/file/fileToURL.js +0 -18
  327. package/is/lib/util/assertString.js +0 -12
  328. package/object-keys-sort/index.js +0 -8
  329. package/object-prototype-to-string-call/index.js +0 -9
  330. package/objectKeysSort.js +0 -5
  331. package/objectPrototypeToStringCall.js +0 -6
  332. package/types/file/fileToURL.d.ts +0 -2
  333. package/types/is/lib/util/assertString.d.ts +0 -1
  334. package/types/object-keys-sort/index.d.ts +0 -4
  335. package/types/object-prototype-to-string-call/index.d.ts +0 -2
package/xlsx/xlsx.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-19 15:35:18 */
1
+ /* 2026-01-04 16:21:26 */
2
2
  import { saveAs as Ua } from "../file/saveAs.js";
3
3
  const qn = {};
4
4
  qn.version = "0.20.3";
@@ -1856,10 +1856,8 @@ var Te = (function() {
1856
1856
  function M(w, A) {
1857
1857
  const y = A || {};
1858
1858
  if (y.fileType == "mad") return Io(w, y);
1859
- switch (N(w), y.fileType) {
1860
- case "zip":
1861
- return Eo(w, y);
1862
- }
1859
+ if (N(w), y.fileType === "zip")
1860
+ return Eo(w, y);
1863
1861
  const b = (function(le) {
1864
1862
  let fe = 0, _e = 0;
1865
1863
  for (let Gr = 0; Gr < le.FileIndex.length; ++Gr) {
@@ -5392,12 +5390,7 @@ function Bu(e, r) {
5392
5390
  }).forEach(function(n) {
5393
5391
  if (e[n[1]] == null) return;
5394
5392
  let s = r && r.Props && r.Props[n[1]] != null ? r.Props[n[1]] : e[n[1]];
5395
- switch (n[2]) {
5396
- case "date":
5397
- s = new Date(s).toISOString().replace(/\.\d*Z/, "Z");
5398
- break;
5399
- }
5400
- typeof s == "number" ? s = String(s) : s === !0 || s === !1 ? s = s ? "1" : "0" : s instanceof Date && (s = new Date(s).toISOString().replace(/\.\d*Z/, "")), t.push(Ct(M0[n[1]] || n[1], s));
5393
+ n[2] === "date" && (s = new Date(s).toISOString().replace(/\.\d*Z/, "Z")), typeof s == "number" ? s = String(s) : s === !0 || s === !1 ? s = s ? "1" : "0" : s instanceof Date && (s = new Date(s).toISOString().replace(/\.\d*Z/, "")), t.push(Ct(M0[n[1]] || n[1], s));
5401
5394
  }), ne("DocumentProperties", t.join(""), { xmlns: _t.o });
5402
5395
  }
5403
5396
  function Uu(e, r) {
@@ -7327,11 +7320,7 @@ const z1 = [2, 3, 48, 49, 131, 139, 140, 245], B0 = (function() {
7327
7320
  break;
7328
7321
  /* window */
7329
7322
  case "P":
7330
- switch (ye[1].charAt(0)) {
7331
- case "P":
7332
- E.push(Ce.slice(3).replace(/;;/g, ";"));
7333
- break;
7334
- }
7323
+ ye[1].charAt(0) === "P" && E.push(Ce.slice(3).replace(/;;/g, ";"));
7335
7324
  break;
7336
7325
  case "NN":
7337
7326
  {
@@ -7714,15 +7703,7 @@ EOD`;
7714
7703
  var T = _[_.length - 1];
7715
7704
  /* falls through */
7716
7705
  case "vtc":
7717
- switch (_[3]) {
7718
- case "nl":
7719
- m[g][p] = !!+_[4];
7720
- break;
7721
- default:
7722
- m[g][p] = _[_.length - 1].charAt(0) == "#" ? { t: "e", v: At[_[_.length - 1]] } : +_[4];
7723
- break;
7724
- }
7725
- _[2] == "vtf" && (m[g][p] = [m[g][p], T]);
7706
+ _[3] === "nl" ? m[g][p] = !!+_[4] : m[g][p] = _[_.length - 1].charAt(0) == "#" ? { t: "e", v: At[_[_.length - 1]] } : +_[4], _[2] == "vtf" && (m[g][p] = [m[g][p], T]);
7726
7707
  }
7727
7708
  }
7728
7709
  return d && d.sheetRows && (m = m.slice(0, d.sheetRows)), m;
@@ -11133,7 +11114,7 @@ function Bx(e, r, t) {
11133
11114
  let n = 0;
11134
11115
  (lc(e, "(?:shape|rect)") || []).forEach(function(s) {
11135
11116
  let a = "", i = !0, c = -1, f = -1, o = -1;
11136
- switch (s.replace(Rt, function(u, d) {
11117
+ if (s.replace(Rt, function(u, d) {
11137
11118
  const h = de(u);
11138
11119
  switch (ir(h[0])) {
11139
11120
  case "<ClientData":
@@ -11159,14 +11140,12 @@ function Bx(e, r, t) {
11159
11140
  break;
11160
11141
  }
11161
11142
  return "";
11162
- }), a) {
11163
- case "Note":
11164
- var l = hs(
11165
- r,
11166
- f >= 0 && o >= 0 ? Me({ r: f, c: o }) : t[n].ref
11167
- );
11168
- l.c && (l.c.hidden = i), ++n;
11169
- break;
11143
+ }), a === "Note") {
11144
+ var l = hs(
11145
+ r,
11146
+ f >= 0 && o >= 0 ? Me({ r: f, c: o }) : t[n].ref
11147
+ );
11148
+ l.c && (l.c.hidden = i), ++n;
11170
11149
  }
11171
11150
  });
11172
11151
  }
@@ -12197,16 +12176,7 @@ function x2(e) {
12197
12176
  const n = e[t], s = [];
12198
12177
  for (let a = 0; a < n.length; ++a) {
12199
12178
  const i = n[a];
12200
- if (i)
12201
- switch (i[0]) {
12202
- // TODO: handle embedded quotes
12203
- case 2:
12204
- s.push('"' + i[1].replace(/"/g, '""') + '"');
12205
- break;
12206
- default:
12207
- s.push(i[1]);
12208
- }
12209
- else s.push("");
12179
+ i ? i[0] === 2 ? s.push('"' + i[1].replace(/"/g, '""') + '"') : s.push(i[1]) : s.push("");
12210
12180
  }
12211
12181
  r.push(s.join(","));
12212
12182
  }
@@ -12246,7 +12216,6 @@ function bf(e, r, t) {
12246
12216
  return s = n[1] == -1 ? "#REF" : e.SheetNames[n[1]], n[1] == n[2] ? s : s + ":" + e.SheetNames[n[2]];
12247
12217
  case 358:
12248
12218
  return t.SID != null ? e.SheetNames[t.SID] : "SH33TJSSAME" + e[n[0]][0];
12249
- case 355:
12250
12219
  /* 'BrtSupBookSrc' */
12251
12220
  /* falls through */
12252
12221
  default:
@@ -24133,11 +24102,7 @@ function ro(e, r, t) {
24133
24102
  break;
24134
24103
  // 9.1.12 <table:table-columns>
24135
24104
  case "null-date":
24136
- switch (c = de(x[0], !1), c["date-value"]) {
24137
- case "1904-01-01":
24138
- Se.WBProps.date1904 = !0;
24139
- break;
24140
- }
24105
+ c = de(x[0], !1), c["date-value"] === "1904-01-01" && (Se.WBProps.date1904 = !0);
24141
24106
  break;
24142
24107
  case "graphic-properties":
24143
24108
  break;
@@ -26326,7 +26291,7 @@ function bw(e, r, t, n, s, a) {
26326
26291
  t: "... the people who are crazy enough to think they can change the world, are the ones who do."
26327
26292
  }
26328
26293
  ],
26329
- rsst: [{ v: "~54ee77S~", l: "https://sheetjs.com/" }],
26294
+ rsst: [{ v: "~54ee77S~", l: "https://xxx.com/" }],
26330
26295
  sst: ["~Sh33tJ5~"]
26331
26296
  }, u = ae(n.messages[0].data);
26332
26297
  {
@@ -27205,19 +27170,13 @@ function Ow(e, r) {
27205
27170
  e.Props.Worksheets = e.Props.SheetNames.length, Ie(a, i, Wc(e.Props)), s.extprops.push(i), $e(r.rels, 3, i, Le.EXT_PROPS), e.Custprops !== e.Props && tt(e.Custprops || {}).length > 0 && (i = "docProps/custom.xml", Ie(a, i, Hc(e.Custprops)), s.custprops.push(i), $e(r.rels, 4, i, Le.CUST_PROPS));
27206
27171
  const f = ["SheetJ5"];
27207
27172
  for (r.tcid = 0, c = 1; c <= e.SheetNames.length; ++c) {
27208
- const u = { "!id": {} }, d = e.Sheets[e.SheetNames[c - 1]];
27209
- switch ((d || {})["!type"] || "sheet") {
27210
- case "chart":
27211
- /* falls through */
27212
- default:
27213
- i = "xl/worksheets/sheet" + c + "." + t, Ie(a, i, Rg(c - 1, r, e, u)), s.sheets.push(i), $e(
27214
- r.wbrels,
27215
- -1,
27216
- "worksheets/sheet" + c + "." + t,
27217
- Le.WS[0]
27218
- );
27219
- }
27220
- if (d) {
27173
+ const u = { "!id": {} }, d = e.Sheets[e.SheetNames[c - 1]], h = (d || {})["!type"] || "sheet";
27174
+ if (i = "xl/worksheets/sheet" + c + "." + t, Ie(a, i, Rg(c - 1, r, e, u)), s.sheets.push(i), $e(
27175
+ r.wbrels,
27176
+ -1,
27177
+ "worksheets/sheet" + c + "." + t,
27178
+ Le.WS[0]
27179
+ ), d) {
27221
27180
  const g = d["!comments"];
27222
27181
  let p = !1, x = "";
27223
27182
  if (g && g.length > 0) {
@@ -27267,19 +27226,13 @@ function lo(e, r) {
27267
27226
  e.Props.Worksheets = e.Props.SheetNames.length, Ie(a, i, Wc(e.Props)), s.extprops.push(i), $e(r.rels, 3, i, Le.EXT_PROPS), e.Custprops !== e.Props && tt(e.Custprops || {}).length > 0 && (i = "docProps/custom.xml", Ie(a, i, Hc(e.Custprops)), s.custprops.push(i), $e(r.rels, 4, i, Le.CUST_PROPS));
27268
27227
  const f = ["SheetJ5"];
27269
27228
  for (r.tcid = 0, c = 1; c <= e.SheetNames.length; ++c) {
27270
- const l = { "!id": {} }, u = e.Sheets[e.SheetNames[c - 1]];
27271
- switch ((u || {})["!type"] || "sheet") {
27272
- case "chart":
27273
- /* falls through */
27274
- default:
27275
- i = "xl/worksheets/sheet" + c + "." + t, Ie(a, i, mp(c - 1, r, e, l)), s.sheets.push(i), $e(
27276
- r.wbrels,
27277
- -1,
27278
- "worksheets/sheet" + c + "." + t,
27279
- Le.WS[0]
27280
- );
27281
- }
27282
- if (u) {
27229
+ const l = { "!id": {} }, u = e.Sheets[e.SheetNames[c - 1]], d = (u || {})["!type"] || "sheet";
27230
+ if (i = "xl/worksheets/sheet" + c + "." + t, Ie(a, i, mp(c - 1, r, e, l)), s.sheets.push(i), $e(
27231
+ r.wbrels,
27232
+ -1,
27233
+ "worksheets/sheet" + c + "." + t,
27234
+ Le.WS[0]
27235
+ ), u) {
27283
27236
  const h = u["!comments"];
27284
27237
  let g = !1, p = "";
27285
27238
  if (h && h.length > 0) {
package/xlsx.js CHANGED
@@ -1,4 +1,4 @@
1
- /* 2025-12-19 15:35:18 */
1
+ /* 2026-01-04 16:21:26 */
2
2
  import { CFB as r, SSF as t, default as l, parse_xlscfb as s, parse_zip as a, read as F, readFile as w, readFile as S, set_cptable as c, set_fs as d, stream as p, utils as f, version as n, write as X, writeFile as _, writeFileAsync as o, writeFile as y, writeFileXLSX as b, writeXLSX as m } from "./xlsx/xlsx.js";
3
3
  export {
4
4
  r as CFB,
package/constant/emoji.js DELETED
@@ -1,32 +0,0 @@
1
- /* 2025-12-19 15:35:18 */
2
- function i() {
3
- const t = [];
4
- for (let e = 127744; e <= 129791; e++)
5
- if (!(e >= 55296 && e <= 57343))
6
- try {
7
- const n = String.fromCodePoint(e);
8
- o(n) && t.push({
9
- emoji: n,
10
- code: e.toString(16).toUpperCase().padStart(4, "0"),
11
- name: r(n)
12
- });
13
- } catch {
14
- }
15
- return t;
16
- }
17
- function r(t) {
18
- try {
19
- const n = new Intl.Segmenter("en", { granularity: "grapheme" }).segment(t);
20
- return Array.from(n)[0]?.segment || t;
21
- } catch {
22
- return t;
23
- }
24
- }
25
- function o(t) {
26
- return /\p{Emoji}/u.test(t);
27
- }
28
- export {
29
- i as getEmojiList,
30
- r as getEmojiName,
31
- o as isEmoji
32
- };
package/file/fileToURL.js DELETED
@@ -1,18 +0,0 @@
1
- /* 2025-12-19 15:35:18 */
2
- function f(r) {
3
- return new Promise((a, e) => {
4
- const n = "fileToURL 参数预期为 Blob 类型,但收到";
5
- r || e(new TypeError(`${n}${r}`)), r instanceof Blob || e(new TypeError(`${n}${r.constructor.name}`));
6
- const s = "fileToURL 文件解析出错", o = new FileReader();
7
- o.onload = (i) => {
8
- const t = i.target?.result;
9
- t ? a(t) : e(new Error(s)), o.abort();
10
- }, o.onerror = () => {
11
- e(new Error(s));
12
- }, o.readAsDataURL(r);
13
- });
14
- }
15
- export {
16
- f as default,
17
- f as fileToURL
18
- };
@@ -1,12 +0,0 @@
1
- /* 2025-12-19 15:35:18 */
2
- import t from "lodash/isNil";
3
- const o = "预期为字符串,但收到";
4
- function n(r) {
5
- if (t(r))
6
- throw new TypeError(`${o}${r}`);
7
- if (r.constructor.name !== "String")
8
- throw new TypeError(`${o}${r.constructor.name}`);
9
- }
10
- export {
11
- n as default
12
- };
@@ -1,8 +0,0 @@
1
- /* 2025-12-19 15:35:18 */
2
- function s(r) {
3
- const o = Object.entries(r).sort((t, e) => t[0] === e[0] ? 0 : t[0] > e[0] ? 1 : -1);
4
- return Object.fromEntries(o);
5
- }
6
- export {
7
- s as default
8
- };
@@ -1,9 +0,0 @@
1
- /* 2025-12-19 15:35:18 */
2
- import e from "lodash/isString";
3
- function i(r, t) {
4
- const o = Object.prototype.toString.call(r);
5
- return t && e(t) ? o === `[object ${t}]` : o;
6
- }
7
- export {
8
- i as default
9
- };
package/objectKeysSort.js DELETED
@@ -1,5 +0,0 @@
1
- /* 2025-12-19 15:35:18 */
2
- import { default as o } from "./object-keys-sort/index.js";
3
- export {
4
- o as default
5
- };
@@ -1,6 +0,0 @@
1
- /* 2025-12-19 15:35:18 */
2
- import "lodash/isString";
3
- import { default as e } from "./object-prototype-to-string-call/index.js";
4
- export {
5
- e as default
6
- };
@@ -1,2 +0,0 @@
1
- export default fileToURL;
2
- export function fileToURL(value: any): Promise<any>;
@@ -1 +0,0 @@
1
- export default function assertString(input: any): void;
@@ -1,4 +0,0 @@
1
- export default objectKeysSort;
2
- declare function objectKeysSort(params: any): {
3
- [k: string]: any;
4
- };
@@ -1,2 +0,0 @@
1
- declare function objectPrototypeToStringCall(a: unknown, b?: string): string | boolean;
2
- export default objectPrototypeToStringCall;