@unicom-cloud/utils 0.1.52 → 0.1.54

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 (1015) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/array/index.js +1 -1
  3. package/assert/index.js +1 -1
  4. package/case-name/index.js +1 -1
  5. package/class-name/index.js +1 -1
  6. package/clipboard-copy/index.js +1 -1
  7. package/{constant → constants}/address.js +2 -2
  8. package/{constant → constants}/chineseCharacters.js +2 -2
  9. package/{constant → constants}/constellations.js +2 -2
  10. package/{constant → constants}/domain.js +2 -2
  11. package/{constant → constants}/identity.js +2 -2
  12. package/{constant → constants}/index.js +2 -2
  13. package/{constant → constants}/keyboardCode.js +2 -2
  14. package/{constant → constants}/licensePlate.js +2 -2
  15. package/{constant → constants}/name.js +2 -2
  16. package/{constant → constants}/platform.js +2 -2
  17. package/{constant → constants}/protocol.js +2 -2
  18. package/{constant → constants}/string.js +2 -2
  19. package/{constant → constants}/ui.js +2 -2
  20. package/content-disposition/index.js +1 -1
  21. package/cookie/api.js +1 -1
  22. package/cookie/assign.js +1 -1
  23. package/cookie/converter.js +1 -1
  24. package/cookie/index.js +1 -1
  25. package/css/cssSupported.js +1 -1
  26. package/css/index.js +1 -1
  27. package/date/convertTime.js +1 -1
  28. package/date/convertToDuration.js +1 -1
  29. package/date/index.js +1 -1
  30. package/decimal/decimal.js +2 -2
  31. package/decimal/index.js +1 -1
  32. package/document/index.d.ts +1 -0
  33. package/document/index.js +11 -0
  34. package/dom-align/adjustForViewport.js +1 -1
  35. package/dom-align/align/align.js +1 -1
  36. package/dom-align/align/alignElement.js +1 -1
  37. package/dom-align/align/alignPoint.js +1 -1
  38. package/dom-align/getAlignOffset.js +1 -1
  39. package/dom-align/getElFuturePos.js +1 -1
  40. package/dom-align/getOffsetParent.js +1 -1
  41. package/dom-align/getRegion.js +1 -1
  42. package/dom-align/getVisibleRectForElement.js +1 -1
  43. package/dom-align/index.js +1 -1
  44. package/dom-align/isAncestorFixed.js +1 -1
  45. package/dom-align/propertyUtils.js +1 -1
  46. package/dom-align/utils.js +1 -1
  47. package/dom-helpers/activeElement.js +1 -1
  48. package/dom-helpers/addClass.js +1 -1
  49. package/dom-helpers/addEventListener.js +1 -1
  50. package/dom-helpers/animate.js +1 -1
  51. package/dom-helpers/animationFrame.js +1 -1
  52. package/dom-helpers/attribute.js +1 -1
  53. package/dom-helpers/camelize.js +1 -1
  54. package/dom-helpers/camelizeStyle.js +1 -1
  55. package/dom-helpers/canUseDOM.js +1 -1
  56. package/dom-helpers/childElements.js +1 -1
  57. package/dom-helpers/childNodes.js +1 -1
  58. package/dom-helpers/clear.js +1 -1
  59. package/dom-helpers/closest.js +1 -1
  60. package/dom-helpers/collectElements.js +1 -1
  61. package/dom-helpers/collectSiblings.js +1 -1
  62. package/dom-helpers/contains.js +1 -1
  63. package/dom-helpers/css.js +1 -1
  64. package/dom-helpers/filterEventHandler.js +1 -1
  65. package/dom-helpers/getComputedStyle.js +1 -1
  66. package/dom-helpers/getElementCoordinates.js +1 -1
  67. package/dom-helpers/getScrollAccessor.js +1 -1
  68. package/dom-helpers/hasClass.js +1 -1
  69. package/dom-helpers/height.js +1 -1
  70. package/dom-helpers/hyphenate.js +1 -1
  71. package/dom-helpers/hyphenateStyle.js +1 -1
  72. package/dom-helpers/index.js +1 -1
  73. package/dom-helpers/insertAfter.js +1 -1
  74. package/dom-helpers/isDocument.js +1 -1
  75. package/dom-helpers/isInput.js +1 -1
  76. package/dom-helpers/isTransform.js +1 -1
  77. package/dom-helpers/isVisible.js +1 -1
  78. package/dom-helpers/isWindow.js +1 -1
  79. package/dom-helpers/listen.js +1 -1
  80. package/dom-helpers/matches.js +1 -1
  81. package/dom-helpers/nextUntil.js +1 -1
  82. package/dom-helpers/offset.js +1 -1
  83. package/dom-helpers/offsetParent.js +1 -1
  84. package/dom-helpers/ownerDocument.js +1 -1
  85. package/dom-helpers/ownerWindow.js +1 -1
  86. package/dom-helpers/parents.js +1 -1
  87. package/dom-helpers/position.js +1 -1
  88. package/dom-helpers/prepend.js +1 -1
  89. package/dom-helpers/querySelectorAll.js +1 -1
  90. package/dom-helpers/reflow.js +1 -1
  91. package/dom-helpers/remove.js +1 -1
  92. package/dom-helpers/removeClass.js +1 -1
  93. package/dom-helpers/removeEventListener.js +1 -1
  94. package/dom-helpers/scrollLeft.js +1 -1
  95. package/dom-helpers/scrollParent.js +1 -1
  96. package/dom-helpers/scrollTo.js +1 -1
  97. package/dom-helpers/scrollTop.js +1 -1
  98. package/dom-helpers/scrollbarSize.js +1 -1
  99. package/dom-helpers/siblings.js +1 -1
  100. package/dom-helpers/text.js +1 -1
  101. package/dom-helpers/toggleClass.js +1 -1
  102. package/dom-helpers/transitionEnd.js +1 -1
  103. package/dom-helpers/triggerEvent.js +1 -1
  104. package/dom-helpers/types.js +1 -1
  105. package/dom-helpers/width.js +1 -1
  106. package/emitter/index.d.ts +2 -2
  107. package/emitter/index.js +16 -11
  108. package/emoji/emoji.js +1 -1
  109. package/emoji/emojis.js +1 -1
  110. package/emoji/index.js +1 -1
  111. package/escape/index.js +1 -1
  112. package/fflate/index.js +1 -1
  113. package/fflate/src/index.js +132 -14
  114. package/fflate/src/worker.js +2 -1
  115. package/file/fileRead.js +1 -1
  116. package/file/fileToDataURL.js +1 -1
  117. package/file/img.js +1 -1
  118. package/file/index.js +1 -1
  119. package/file/saveAs.js +2 -4
  120. package/filesize/index.js +1 -1
  121. package/filesize/src/constants.js +1 -1
  122. package/filesize/src/filesize.js +1 -1
  123. package/filesize/src/helpers.js +1 -1
  124. package/function/index.js +1 -1
  125. package/idb/async-iterators.js +1 -1
  126. package/idb/database-extras.js +1 -1
  127. package/idb/entry.js +1 -1
  128. package/idb/index-.js +1 -1
  129. package/idb/index.js +1 -1
  130. package/idb/util.js +1 -1
  131. package/idb/wrap-idb-value.js +1 -1
  132. package/index.js +1 -1
  133. package/invariant/index.js +1 -1
  134. package/is/index.d.ts +27 -27
  135. package/is/index.js +28 -28
  136. package/is/{lib → libs}/isAscii.js +2 -2
  137. package/is/{lib → libs}/isBase64.js +2 -2
  138. package/is/{lib → libs}/isChinese.js +2 -2
  139. package/is/{lib → libs}/isDataURI.js +2 -2
  140. package/is/{lib → libs}/isEmail.js +2 -2
  141. package/is/{lib → libs}/isFQDN.js +2 -2
  142. package/is/{lib → libs}/isFullWidth.js +2 -2
  143. package/is/{lib → libs}/isHSL.js +2 -2
  144. package/is/{lib → libs}/isHalfWidth.js +2 -2
  145. package/is/{lib → libs}/isHash.js +2 -2
  146. package/is/{lib → libs}/isHexColor.js +2 -2
  147. package/is/{lib → libs}/isIMEI.js +2 -2
  148. package/is/{lib → libs}/isIP.js +2 -2
  149. package/is/{lib → libs}/isIPRange.js +2 -2
  150. package/is/{lib → libs}/isIdentityCard.js +2 -2
  151. package/is/{lib → libs}/isJWT.js +2 -2
  152. package/is/{lib → libs}/isMACAddress.js +2 -2
  153. package/is/{lib → libs}/isMD5.js +2 -2
  154. package/is/{lib → libs}/isMimeType.js +2 -2
  155. package/is/{lib → libs}/isMobilePhone.js +2 -2
  156. package/is/libs/isPort.js +8 -0
  157. package/is/{lib → libs}/isRgbColor.js +2 -2
  158. package/is/{lib → libs}/isSemVer.js +2 -2
  159. package/is/{lib → libs}/isSlug.js +2 -2
  160. package/is/{lib → libs}/isStrongPassword.js +2 -2
  161. package/is/{lib → libs}/isURL.js +2 -2
  162. package/is/{lib → libs}/isUUID.js +2 -2
  163. package/is/{lib → libs}/isVariableWidth.js +2 -2
  164. package/lodash/_DataView.js +1 -1
  165. package/lodash/_Hash.js +1 -1
  166. package/lodash/_LazyWrapper.js +1 -1
  167. package/lodash/_ListCache.js +1 -1
  168. package/lodash/_LodashWrapper.js +1 -1
  169. package/lodash/_Map.js +1 -1
  170. package/lodash/_MapCache.js +1 -1
  171. package/lodash/_Promise.js +1 -1
  172. package/lodash/_Set.js +1 -1
  173. package/lodash/_SetCache.js +1 -1
  174. package/lodash/_Stack.js +1 -1
  175. package/lodash/_Symbol.js +1 -1
  176. package/lodash/_Uint8Array.js +1 -1
  177. package/lodash/_WeakMap.js +1 -1
  178. package/lodash/_addMapEntry.js +1 -1
  179. package/lodash/_addSetEntry.js +1 -1
  180. package/lodash/_apply.js +1 -1
  181. package/lodash/_arrayAggregator.js +1 -1
  182. package/lodash/_arrayEach.js +1 -1
  183. package/lodash/_arrayEachRight.js +1 -1
  184. package/lodash/_arrayEvery.js +1 -1
  185. package/lodash/_arrayFilter.js +1 -1
  186. package/lodash/_arrayIncludes.js +1 -1
  187. package/lodash/_arrayIncludesWith.js +1 -1
  188. package/lodash/_arrayLikeKeys.js +8 -8
  189. package/lodash/_arrayMap.js +1 -1
  190. package/lodash/_arrayPush.js +1 -1
  191. package/lodash/_arrayReduce.js +1 -1
  192. package/lodash/_arrayReduceRight.js +1 -1
  193. package/lodash/_arraySample.js +1 -1
  194. package/lodash/_arraySampleSize.js +4 -4
  195. package/lodash/_arrayShuffle.js +1 -1
  196. package/lodash/_arraySome.js +1 -1
  197. package/lodash/_asciiSize.js +1 -1
  198. package/lodash/_asciiToArray.js +1 -1
  199. package/lodash/_asciiWords.js +1 -1
  200. package/lodash/_assignMergeValue.js +4 -4
  201. package/lodash/_assignValue.js +4 -4
  202. package/lodash/_assocIndexOf.js +1 -1
  203. package/lodash/_baseAggregator.js +1 -1
  204. package/lodash/_baseAssign.js +4 -4
  205. package/lodash/_baseAssignIn.js +1 -1
  206. package/lodash/_baseAssignValue.js +1 -1
  207. package/lodash/_baseAt.js +1 -1
  208. package/lodash/_baseClamp.js +1 -1
  209. package/lodash/_baseClone.js +20 -20
  210. package/lodash/_baseConforms.js +1 -1
  211. package/lodash/_baseConformsTo.js +1 -1
  212. package/lodash/_baseCreate.js +1 -1
  213. package/lodash/_baseDelay.js +5 -8
  214. package/lodash/_baseDifference.js +7 -7
  215. package/lodash/_baseEach.js +1 -1
  216. package/lodash/_baseEachRight.js +1 -1
  217. package/lodash/_baseEvery.js +1 -1
  218. package/lodash/_baseExtremum.js +1 -1
  219. package/lodash/_baseFill.js +1 -1
  220. package/lodash/_baseFilter.js +1 -1
  221. package/lodash/_baseFindIndex.js +1 -1
  222. package/lodash/_baseFindKey.js +1 -1
  223. package/lodash/_baseFlatten.js +1 -1
  224. package/lodash/_baseFor.js +1 -1
  225. package/lodash/_baseForOwn.js +4 -4
  226. package/lodash/_baseForOwnRight.js +1 -1
  227. package/lodash/_baseForRight.js +1 -1
  228. package/lodash/_baseFunctions.js +1 -1
  229. package/lodash/_baseGet.js +1 -1
  230. package/lodash/_baseGetAllKeys.js +1 -1
  231. package/lodash/_baseGetTag.js +1 -1
  232. package/lodash/_baseGt.js +1 -1
  233. package/lodash/_baseHas.js +1 -1
  234. package/lodash/_baseHasIn.js +1 -1
  235. package/lodash/_baseInRange.js +1 -1
  236. package/lodash/_baseIndexOf.js +1 -1
  237. package/lodash/_baseIndexOfWith.js +1 -1
  238. package/lodash/_baseIntersection.js +10 -10
  239. package/lodash/_baseInverter.js +1 -1
  240. package/lodash/_baseInvoke.js +1 -1
  241. package/lodash/_baseIsArguments.js +1 -1
  242. package/lodash/_baseIsArrayBuffer.js +1 -1
  243. package/lodash/_baseIsDate.js +1 -1
  244. package/lodash/_baseIsEqual.js +1 -1
  245. package/lodash/_baseIsEqualDeep.js +11 -11
  246. package/lodash/_baseIsMap.js +1 -1
  247. package/lodash/_baseIsMatch.js +1 -1
  248. package/lodash/_baseIsNaN.js +1 -1
  249. package/lodash/_baseIsNative.js +1 -1
  250. package/lodash/_baseIsRegExp.js +1 -1
  251. package/lodash/_baseIsSet.js +1 -1
  252. package/lodash/_baseIsTypedArray.js +1 -1
  253. package/lodash/_baseIteratee.js +5 -5
  254. package/lodash/_baseKeys.js +1 -1
  255. package/lodash/_baseKeysIn.js +1 -1
  256. package/lodash/_baseLodash.js +1 -1
  257. package/lodash/_baseLt.js +1 -1
  258. package/lodash/_baseMap.js +1 -1
  259. package/lodash/_baseMatches.js +1 -1
  260. package/lodash/_baseMatchesProperty.js +1 -1
  261. package/lodash/_baseMean.js +1 -1
  262. package/lodash/_baseMerge.js +9 -9
  263. package/lodash/_baseMergeDeep.js +15 -15
  264. package/lodash/_baseNth.js +1 -1
  265. package/lodash/_baseOrderBy.js +15 -15
  266. package/lodash/_basePick.js +1 -1
  267. package/lodash/_basePickBy.js +1 -1
  268. package/lodash/_baseProperty.js +1 -1
  269. package/lodash/_basePropertyDeep.js +1 -1
  270. package/lodash/_basePropertyOf.js +1 -1
  271. package/lodash/_basePullAll.js +7 -7
  272. package/lodash/_basePullAt.js +1 -1
  273. package/lodash/_baseRandom.js +1 -1
  274. package/lodash/_baseRange.js +1 -1
  275. package/lodash/_baseReduce.js +1 -1
  276. package/lodash/_baseRepeat.js +9 -9
  277. package/lodash/_baseRest.js +4 -4
  278. package/lodash/_baseSample.js +4 -4
  279. package/lodash/_baseSampleSize.js +5 -5
  280. package/lodash/_baseSet.js +1 -1
  281. package/lodash/_baseSetData.js +1 -1
  282. package/lodash/_baseSetToString.js +8 -8
  283. package/lodash/_baseShuffle.js +4 -4
  284. package/lodash/_baseSlice.js +1 -1
  285. package/lodash/_baseSome.js +1 -1
  286. package/lodash/_baseSortBy.js +1 -1
  287. package/lodash/_baseSortedIndex.js +1 -1
  288. package/lodash/_baseSortedIndexBy.js +1 -1
  289. package/lodash/_baseSortedUniq.js +1 -1
  290. package/lodash/_baseSum.js +1 -1
  291. package/lodash/_baseTimes.js +1 -1
  292. package/lodash/_baseToNumber.js +1 -1
  293. package/lodash/_baseToPairs.js +1 -1
  294. package/lodash/_baseToString.js +5 -5
  295. package/lodash/_baseTrim.js +1 -1
  296. package/lodash/_baseUnary.js +1 -1
  297. package/lodash/_baseUniq.js +10 -10
  298. package/lodash/_baseUnset.js +1 -1
  299. package/lodash/_baseUpdate.js +1 -1
  300. package/lodash/_baseValues.js +1 -1
  301. package/lodash/_baseWhile.js +1 -1
  302. package/lodash/_baseWrapperValue.js +1 -1
  303. package/lodash/_baseXor.js +5 -5
  304. package/lodash/_baseZipObject.js +1 -1
  305. package/lodash/_cacheHas.js +1 -1
  306. package/lodash/_castArrayLikeObject.js +1 -1
  307. package/lodash/_castFunction.js +1 -1
  308. package/lodash/_castPath.js +1 -1
  309. package/lodash/_castRest.js +1 -1
  310. package/lodash/_castSlice.js +1 -1
  311. package/lodash/_charsEndIndex.js +1 -1
  312. package/lodash/_charsStartIndex.js +1 -1
  313. package/lodash/_cloneArrayBuffer.js +1 -1
  314. package/lodash/_cloneBuffer.js +1 -1
  315. package/lodash/_cloneDataView.js +1 -1
  316. package/lodash/_cloneMap.js +5 -5
  317. package/lodash/_cloneRegExp.js +1 -1
  318. package/lodash/_cloneSet.js +5 -5
  319. package/lodash/_cloneSymbol.js +1 -1
  320. package/lodash/_cloneTypedArray.js +1 -1
  321. package/lodash/_compareAscending.js +1 -1
  322. package/lodash/_compareMultiple.js +1 -1
  323. package/lodash/_composeArgs.js +1 -1
  324. package/lodash/_composeArgsRight.js +1 -1
  325. package/lodash/_copyArray.js +1 -1
  326. package/lodash/_copyObject.js +1 -1
  327. package/lodash/_copySymbols.js +1 -1
  328. package/lodash/_copySymbolsIn.js +1 -1
  329. package/lodash/_coreJsData.js +1 -1
  330. package/lodash/_countHolders.js +1 -1
  331. package/lodash/_createAggregator.js +7 -7
  332. package/lodash/_createAssigner.js +1 -1
  333. package/lodash/_createBaseEach.js +1 -1
  334. package/lodash/_createBaseFor.js +1 -1
  335. package/lodash/_createBind.js +1 -1
  336. package/lodash/_createCaseFirst.js +1 -1
  337. package/lodash/_createCompounder.js +1 -1
  338. package/lodash/_createCtor.js +1 -1
  339. package/lodash/_createCurry.js +7 -7
  340. package/lodash/_createFind.js +1 -1
  341. package/lodash/_createFlow.js +12 -12
  342. package/lodash/_createHybrid.js +9 -9
  343. package/lodash/_createInverter.js +1 -1
  344. package/lodash/_createMathOperation.js +4 -4
  345. package/lodash/_createOver.js +11 -11
  346. package/lodash/_createPadding.js +9 -9
  347. package/lodash/_createPartial.js +7 -7
  348. package/lodash/_createRange.js +4 -4
  349. package/lodash/_createRecurry.js +1 -1
  350. package/lodash/_createRelationalOperation.js +1 -1
  351. package/lodash/_createRound.js +7 -7
  352. package/lodash/_createSet.js +7 -7
  353. package/lodash/_createToPairs.js +1 -1
  354. package/lodash/_createWrap.js +1 -1
  355. package/lodash/_customDefaultsAssignIn.js +1 -1
  356. package/lodash/_customDefaultsMerge.js +1 -1
  357. package/lodash/_customOmitClone.js +1 -1
  358. package/lodash/_deburrLetter.js +1 -1
  359. package/lodash/_defineProperty.js +1 -1
  360. package/lodash/_equalArrays.js +1 -1
  361. package/lodash/_equalByTag.js +1 -1
  362. package/lodash/_equalObjects.js +1 -1
  363. package/lodash/_escapeHtmlChar.js +1 -1
  364. package/lodash/_escapeStringChar.js +1 -1
  365. package/lodash/_flatRest.js +4 -4
  366. package/lodash/_freeGlobal.js +1 -1
  367. package/lodash/_getAllKeys.js +1 -1
  368. package/lodash/_getAllKeysIn.js +1 -1
  369. package/lodash/_getData.js +1 -1
  370. package/lodash/_getFuncName.js +1 -1
  371. package/lodash/_getHolder.js +1 -1
  372. package/lodash/_getMapData.js +1 -1
  373. package/lodash/_getMatchData.js +1 -1
  374. package/lodash/_getNative.js +1 -1
  375. package/lodash/_getPrototype.js +1 -1
  376. package/lodash/_getRawTag.js +1 -1
  377. package/lodash/_getSymbols.js +1 -1
  378. package/lodash/_getSymbolsIn.js +7 -7
  379. package/lodash/_getTag.js +7 -7
  380. package/lodash/_getValue.js +1 -1
  381. package/lodash/_getView.js +1 -1
  382. package/lodash/_getWrapDetails.js +1 -1
  383. package/lodash/_hasPath.js +6 -6
  384. package/lodash/_hasUnicode.js +1 -1
  385. package/lodash/_hasUnicodeWord.js +1 -1
  386. package/lodash/_hashClear.js +1 -1
  387. package/lodash/_hashDelete.js +1 -1
  388. package/lodash/_hashGet.js +1 -1
  389. package/lodash/_hashHas.js +1 -1
  390. package/lodash/_hashSet.js +1 -1
  391. package/lodash/_initCloneArray.js +1 -1
  392. package/lodash/_initCloneByTag.js +1 -1
  393. package/lodash/_initCloneObject.js +1 -1
  394. package/lodash/_insertWrapDetails.js +1 -1
  395. package/lodash/_isFlattenable.js +4 -4
  396. package/lodash/_isIndex.js +6 -6
  397. package/lodash/_isIterateeCall.js +4 -4
  398. package/lodash/_isKey.js +5 -5
  399. package/lodash/_isKeyable.js +1 -1
  400. package/lodash/_isLaziable.js +1 -1
  401. package/lodash/_isMaskable.js +1 -1
  402. package/lodash/_isMasked.js +1 -1
  403. package/lodash/_isPrototype.js +1 -1
  404. package/lodash/_isStrictComparable.js +1 -1
  405. package/lodash/_iteratorToArray.js +1 -1
  406. package/lodash/_lazyClone.js +1 -1
  407. package/lodash/_lazyReverse.js +1 -1
  408. package/lodash/_lazyValue.js +1 -1
  409. package/lodash/_listCacheClear.js +1 -1
  410. package/lodash/_listCacheDelete.js +1 -1
  411. package/lodash/_listCacheGet.js +1 -1
  412. package/lodash/_listCacheHas.js +1 -1
  413. package/lodash/_listCacheSet.js +1 -1
  414. package/lodash/_mapCacheClear.js +1 -1
  415. package/lodash/_mapCacheDelete.js +1 -1
  416. package/lodash/_mapCacheGet.js +1 -1
  417. package/lodash/_mapCacheHas.js +1 -1
  418. package/lodash/_mapCacheSet.js +1 -1
  419. package/lodash/_mapToArray.js +1 -1
  420. package/lodash/_matchesStrictComparable.js +1 -1
  421. package/lodash/_memoizeCapped.js +1 -1
  422. package/lodash/_mergeData.js +1 -1
  423. package/lodash/_metaMap.js +1 -1
  424. package/lodash/_nativeCreate.js +1 -1
  425. package/lodash/_nativeKeys.js +1 -1
  426. package/lodash/_nativeKeysIn.js +1 -1
  427. package/lodash/_nodeUtil.js +1 -1
  428. package/lodash/_objectToString.js +1 -1
  429. package/lodash/_overArg.js +1 -1
  430. package/lodash/_overRest.js +1 -1
  431. package/lodash/_parent.js +1 -1
  432. package/lodash/_reEscape.js +1 -1
  433. package/lodash/_reEvaluate.js +1 -1
  434. package/lodash/_reInterpolate.js +1 -1
  435. package/lodash/_realNames.js +1 -1
  436. package/lodash/_reorder.js +5 -5
  437. package/lodash/_replaceHolders.js +1 -1
  438. package/lodash/_root.js +1 -1
  439. package/lodash/_safeGet.js +1 -1
  440. package/lodash/_setCacheAdd.js +3 -6
  441. package/lodash/_setCacheHas.js +1 -1
  442. package/lodash/_setData.js +4 -4
  443. package/lodash/_setToArray.js +1 -1
  444. package/lodash/_setToPairs.js +1 -1
  445. package/lodash/_setToString.js +4 -4
  446. package/lodash/_setWrapToString.js +5 -5
  447. package/lodash/_shortOut.js +10 -10
  448. package/lodash/_shuffleSelf.js +1 -1
  449. package/lodash/_stackClear.js +1 -1
  450. package/lodash/_stackDelete.js +1 -1
  451. package/lodash/_stackGet.js +1 -1
  452. package/lodash/_stackHas.js +1 -1
  453. package/lodash/_stackSet.js +1 -1
  454. package/lodash/_strictIndexOf.js +1 -1
  455. package/lodash/_strictLastIndexOf.js +1 -1
  456. package/lodash/_stringSize.js +4 -4
  457. package/lodash/_stringToArray.js +4 -4
  458. package/lodash/_stringToPath.js +1 -1
  459. package/lodash/_toKey.js +1 -1
  460. package/lodash/_toSource.js +1 -1
  461. package/lodash/_trimmedEndIndex.js +1 -1
  462. package/lodash/_unescapeHtmlChar.js +1 -1
  463. package/lodash/_unicodeSize.js +1 -1
  464. package/lodash/_unicodeToArray.js +1 -1
  465. package/lodash/_unicodeWords.js +1 -1
  466. package/lodash/_updateWrapDetails.js +1 -1
  467. package/lodash/_wrapperClone.js +1 -1
  468. package/lodash/add.js +1 -1
  469. package/lodash/after.js +1 -1
  470. package/lodash/array.default.js +13 -13
  471. package/lodash/array.js +8 -8
  472. package/lodash/ary.js +1 -1
  473. package/lodash/assign.js +9 -9
  474. package/lodash/assignIn.js +5 -5
  475. package/lodash/assignInWith.js +5 -5
  476. package/lodash/assignWith.js +6 -6
  477. package/lodash/at.js +1 -1
  478. package/lodash/attempt.js +1 -1
  479. package/lodash/before.js +1 -1
  480. package/lodash/bind.js +8 -8
  481. package/lodash/bindAll.js +1 -1
  482. package/lodash/bindKey.js +8 -8
  483. package/lodash/camelCase.js +5 -5
  484. package/lodash/capitalize.js +1 -1
  485. package/lodash/castArray.js +1 -1
  486. package/lodash/ceil.js +1 -1
  487. package/lodash/chain.js +1 -1
  488. package/lodash/chunk.js +5 -5
  489. package/lodash/clamp.js +4 -4
  490. package/lodash/clone.js +1 -1
  491. package/lodash/cloneDeep.js +1 -1
  492. package/lodash/cloneDeepWith.js +1 -1
  493. package/lodash/cloneWith.js +1 -1
  494. package/lodash/collection.default.js +1 -1
  495. package/lodash/collection.js +1 -1
  496. package/lodash/commit.js +1 -1
  497. package/lodash/compact.js +1 -1
  498. package/lodash/concat.js +4 -4
  499. package/lodash/cond.js +9 -9
  500. package/lodash/conforms.js +1 -1
  501. package/lodash/conformsTo.js +1 -1
  502. package/lodash/constant.js +1 -1
  503. package/lodash/countBy.js +1 -1
  504. package/lodash/create.js +1 -1
  505. package/lodash/curry.js +1 -1
  506. package/lodash/curryRight.js +1 -1
  507. package/lodash/date.default.js +1 -1
  508. package/lodash/date.js +1 -1
  509. package/lodash/debounce.js +1 -1
  510. package/lodash/deburr.js +1 -1
  511. package/lodash/defaultTo.js +1 -1
  512. package/lodash/defaults.js +10 -10
  513. package/lodash/defaultsDeep.js +1 -1
  514. package/lodash/defer.js +5 -5
  515. package/lodash/delay.js +6 -6
  516. package/lodash/difference.js +5 -5
  517. package/lodash/differenceBy.js +9 -9
  518. package/lodash/differenceWith.js +8 -8
  519. package/lodash/divide.js +1 -1
  520. package/lodash/drop.js +1 -1
  521. package/lodash/dropRight.js +1 -1
  522. package/lodash/dropRightWhile.js +1 -1
  523. package/lodash/dropWhile.js +1 -1
  524. package/lodash/each.js +1 -1
  525. package/lodash/eachRight.js +1 -1
  526. package/lodash/endsWith.js +6 -6
  527. package/lodash/entries.js +1 -1
  528. package/lodash/entriesIn.js +1 -1
  529. package/lodash/eq.js +1 -1
  530. package/lodash/escape.js +1 -1
  531. package/lodash/escapeRegExp.js +1 -1
  532. package/lodash/every.js +8 -8
  533. package/lodash/extend.js +1 -1
  534. package/lodash/extendWith.js +1 -1
  535. package/lodash/fill.js +4 -4
  536. package/lodash/filter.js +6 -6
  537. package/lodash/find.js +1 -1
  538. package/lodash/findIndex.js +5 -5
  539. package/lodash/findKey.js +5 -5
  540. package/lodash/findLast.js +1 -1
  541. package/lodash/findLastIndex.js +4 -4
  542. package/lodash/findLastKey.js +5 -5
  543. package/lodash/first.js +1 -1
  544. package/lodash/flatMap.js +1 -1
  545. package/lodash/flatMapDeep.js +1 -1
  546. package/lodash/flatMapDepth.js +1 -1
  547. package/lodash/flatten.js +1 -1
  548. package/lodash/flattenDeep.js +1 -1
  549. package/lodash/flattenDepth.js +1 -1
  550. package/lodash/flip.js +1 -1
  551. package/lodash/floor.js +1 -1
  552. package/lodash/flow.js +1 -1
  553. package/lodash/flowRight.js +1 -1
  554. package/lodash/forEach.js +4 -4
  555. package/lodash/forEachRight.js +6 -6
  556. package/lodash/forIn.js +4 -4
  557. package/lodash/forInRight.js +4 -4
  558. package/lodash/forOwn.js +1 -1
  559. package/lodash/forOwnRight.js +4 -4
  560. package/lodash/fromPairs.js +1 -1
  561. package/lodash/function.default.js +21 -21
  562. package/lodash/function.js +12 -12
  563. package/lodash/functions.js +1 -1
  564. package/lodash/functionsIn.js +1 -1
  565. package/lodash/get.js +1 -1
  566. package/lodash/groupBy.js +1 -1
  567. package/lodash/gt.js +1 -1
  568. package/lodash/gte.js +1 -1
  569. package/lodash/has.js +4 -4
  570. package/lodash/hasIn.js +1 -1
  571. package/lodash/head.js +1 -1
  572. package/lodash/identity.js +1 -1
  573. package/lodash/inRange.js +1 -1
  574. package/lodash/includes.js +8 -8
  575. package/lodash/index.js +226 -226
  576. package/lodash/indexOf.js +5 -5
  577. package/lodash/initial.js +1 -1
  578. package/lodash/intersection.js +6 -6
  579. package/lodash/intersectionBy.js +8 -8
  580. package/lodash/intersectionWith.js +6 -6
  581. package/lodash/invert.js +1 -1
  582. package/lodash/invertBy.js +1 -1
  583. package/lodash/invoke.js +4 -4
  584. package/lodash/invokeMap.js +9 -9
  585. package/lodash/isArguments.js +1 -1
  586. package/lodash/isArray.js +1 -1
  587. package/lodash/isArrayBuffer.js +1 -1
  588. package/lodash/isArrayLike.js +1 -1
  589. package/lodash/isArrayLikeObject.js +1 -1
  590. package/lodash/isBoolean.js +1 -1
  591. package/lodash/isBuffer.js +1 -1
  592. package/lodash/isDate.js +1 -1
  593. package/lodash/isElement.js +1 -1
  594. package/lodash/isEmpty.js +10 -10
  595. package/lodash/isEqual.js +1 -1
  596. package/lodash/isEqualWith.js +1 -1
  597. package/lodash/isError.js +1 -1
  598. package/lodash/isFinite.js +1 -1
  599. package/lodash/isFunction.js +1 -1
  600. package/lodash/isInteger.js +1 -1
  601. package/lodash/isLength.js +3 -6
  602. package/lodash/isMap.js +1 -1
  603. package/lodash/isMatch.js +1 -1
  604. package/lodash/isMatchWith.js +1 -1
  605. package/lodash/isNaN.js +1 -1
  606. package/lodash/isNative.js +1 -1
  607. package/lodash/isNil.js +1 -1
  608. package/lodash/isNull.js +1 -1
  609. package/lodash/isNumber.js +1 -1
  610. package/lodash/isObject.js +1 -1
  611. package/lodash/isObjectLike.js +1 -1
  612. package/lodash/isPlainObject.js +1 -1
  613. package/lodash/isPromise.js +1 -1
  614. package/lodash/isRegExp.js +1 -1
  615. package/lodash/isSafeInteger.js +1 -1
  616. package/lodash/isSet.js +1 -1
  617. package/lodash/isString.js +1 -1
  618. package/lodash/isSymbol.js +1 -1
  619. package/lodash/isTypedArray.js +1 -1
  620. package/lodash/isUndefined.js +1 -1
  621. package/lodash/isWeakMap.js +1 -1
  622. package/lodash/isWeakSet.js +1 -1
  623. package/lodash/iteratee.js +1 -1
  624. package/lodash/join.js +1 -1
  625. package/lodash/kebabCase.js +1 -1
  626. package/lodash/keyBy.js +1 -1
  627. package/lodash/keys.js +5 -5
  628. package/lodash/keysIn.js +4 -4
  629. package/lodash/lang.default.js +63 -63
  630. package/lodash/lang.js +33 -33
  631. package/lodash/last.js +1 -1
  632. package/lodash/lastIndexOf.js +5 -5
  633. package/lodash/lodash.default.js +89 -89
  634. package/lodash/lodash.js +226 -226
  635. package/lodash/lowerCase.js +1 -1
  636. package/lodash/lowerFirst.js +1 -1
  637. package/lodash/lt.js +4 -4
  638. package/lodash/lte.js +1 -1
  639. package/lodash/map.js +4 -4
  640. package/lodash/mapKeys.js +4 -4
  641. package/lodash/mapValues.js +4 -4
  642. package/lodash/matches.js +1 -1
  643. package/lodash/matchesProperty.js +1 -1
  644. package/lodash/math.default.js +1 -1
  645. package/lodash/math.js +1 -1
  646. package/lodash/max.js +4 -4
  647. package/lodash/maxBy.js +4 -4
  648. package/lodash/mean.js +1 -1
  649. package/lodash/meanBy.js +1 -1
  650. package/lodash/memoize.js +1 -1
  651. package/lodash/merge.js +5 -5
  652. package/lodash/mergeWith.js +5 -5
  653. package/lodash/method.js +5 -5
  654. package/lodash/methodOf.js +5 -5
  655. package/lodash/min.js +5 -5
  656. package/lodash/minBy.js +5 -5
  657. package/lodash/mixin.js +11 -11
  658. package/lodash/multiply.js +1 -1
  659. package/lodash/negate.js +10 -13
  660. package/lodash/next.js +1 -1
  661. package/lodash/noop.js +1 -1
  662. package/lodash/now.js +1 -1
  663. package/lodash/nth.js +1 -1
  664. package/lodash/nthArg.js +5 -5
  665. package/lodash/number.default.js +1 -1
  666. package/lodash/number.js +1 -1
  667. package/lodash/object.default.js +53 -53
  668. package/lodash/object.js +26 -26
  669. package/lodash/omit.js +10 -10
  670. package/lodash/omitBy.js +1 -1
  671. package/lodash/once.js +1 -1
  672. package/lodash/orderBy.js +1 -1
  673. package/lodash/over.js +1 -1
  674. package/lodash/overArgs.js +11 -11
  675. package/lodash/overEvery.js +1 -1
  676. package/lodash/overSome.js +1 -1
  677. package/lodash/pad.js +4 -4
  678. package/lodash/padEnd.js +4 -4
  679. package/lodash/padStart.js +4 -4
  680. package/lodash/parseInt.js +1 -1
  681. package/lodash/partial.js +7 -7
  682. package/lodash/partialRight.js +7 -7
  683. package/lodash/partition.js +1 -1
  684. package/lodash/pick.js +5 -5
  685. package/lodash/pickBy.js +1 -1
  686. package/lodash/plant.js +1 -1
  687. package/lodash/property.js +5 -5
  688. package/lodash/propertyOf.js +1 -1
  689. package/lodash/pull.js +1 -1
  690. package/lodash/pullAll.js +1 -1
  691. package/lodash/pullAllBy.js +1 -1
  692. package/lodash/pullAllWith.js +1 -1
  693. package/lodash/pullAt.js +10 -10
  694. package/lodash/random.js +6 -6
  695. package/lodash/range.js +1 -1
  696. package/lodash/rangeRight.js +1 -1
  697. package/lodash/rearg.js +5 -5
  698. package/lodash/reduce.js +4 -4
  699. package/lodash/reduceRight.js +6 -6
  700. package/lodash/reject.js +6 -6
  701. package/lodash/remove.js +1 -1
  702. package/lodash/repeat.js +6 -6
  703. package/lodash/replace.js +1 -1
  704. package/lodash/rest.js +1 -1
  705. package/lodash/result.js +1 -1
  706. package/lodash/reverse.js +1 -1
  707. package/lodash/round.js +1 -1
  708. package/lodash/sample.js +1 -1
  709. package/lodash/sampleSize.js +6 -6
  710. package/lodash/seq.default.js +1 -1
  711. package/lodash/seq.js +1 -1
  712. package/lodash/set.js +1 -1
  713. package/lodash/setWith.js +1 -1
  714. package/lodash/shuffle.js +1 -1
  715. package/lodash/size.js +7 -7
  716. package/lodash/slice.js +4 -4
  717. package/lodash/snakeCase.js +1 -1
  718. package/lodash/some.js +7 -7
  719. package/lodash/sortBy.js +8 -8
  720. package/lodash/sortedIndex.js +1 -1
  721. package/lodash/sortedIndexBy.js +1 -1
  722. package/lodash/sortedIndexOf.js +1 -1
  723. package/lodash/sortedLastIndex.js +1 -1
  724. package/lodash/sortedLastIndexBy.js +1 -1
  725. package/lodash/sortedLastIndexOf.js +1 -1
  726. package/lodash/sortedUniq.js +1 -1
  727. package/lodash/sortedUniqBy.js +1 -1
  728. package/lodash/split.js +5 -5
  729. package/lodash/spread.js +8 -8
  730. package/lodash/startCase.js +5 -5
  731. package/lodash/startsWith.js +5 -5
  732. package/lodash/string.default.js +9 -9
  733. package/lodash/string.js +6 -6
  734. package/lodash/stubArray.js +1 -1
  735. package/lodash/stubFalse.js +1 -1
  736. package/lodash/stubObject.js +1 -1
  737. package/lodash/stubString.js +1 -1
  738. package/lodash/stubTrue.js +1 -1
  739. package/lodash/subtract.js +1 -1
  740. package/lodash/sum.js +1 -1
  741. package/lodash/sumBy.js +1 -1
  742. package/lodash/tail.js +1 -1
  743. package/lodash/take.js +1 -1
  744. package/lodash/takeRight.js +1 -1
  745. package/lodash/takeRightWhile.js +1 -1
  746. package/lodash/takeWhile.js +1 -1
  747. package/lodash/tap.js +1 -1
  748. package/lodash/template.js +17 -17
  749. package/lodash/templateSettings.js +9 -9
  750. package/lodash/throttle.js +1 -1
  751. package/lodash/thru.js +1 -1
  752. package/lodash/times.js +5 -5
  753. package/lodash/toArray.js +12 -12
  754. package/lodash/toFinite.js +1 -1
  755. package/lodash/toInteger.js +1 -1
  756. package/lodash/toIterator.js +1 -1
  757. package/lodash/toJSON.js +1 -1
  758. package/lodash/toLength.js +4 -4
  759. package/lodash/toLower.js +1 -1
  760. package/lodash/toNumber.js +8 -8
  761. package/lodash/toPairs.js +1 -1
  762. package/lodash/toPairsIn.js +1 -1
  763. package/lodash/toPath.js +5 -5
  764. package/lodash/toPlainObject.js +1 -1
  765. package/lodash/toSafeInteger.js +4 -4
  766. package/lodash/toString.js +1 -1
  767. package/lodash/toUpper.js +1 -1
  768. package/lodash/transform.js +13 -13
  769. package/lodash/trim.js +9 -9
  770. package/lodash/trimEnd.js +8 -8
  771. package/lodash/trimStart.js +5 -5
  772. package/lodash/truncate.js +14 -14
  773. package/lodash/unary.js +1 -1
  774. package/lodash/unescape.js +1 -1
  775. package/lodash/union.js +6 -6
  776. package/lodash/unionBy.js +7 -7
  777. package/lodash/unionWith.js +7 -7
  778. package/lodash/uniq.js +1 -1
  779. package/lodash/uniqBy.js +1 -1
  780. package/lodash/uniqWith.js +1 -1
  781. package/lodash/uniqueId.js +1 -1
  782. package/lodash/unset.js +1 -1
  783. package/lodash/unzip.js +6 -6
  784. package/lodash/unzipWith.js +5 -5
  785. package/lodash/update.js +4 -4
  786. package/lodash/updateWith.js +4 -4
  787. package/lodash/upperCase.js +1 -1
  788. package/lodash/upperFirst.js +1 -1
  789. package/lodash/util.default.js +17 -17
  790. package/lodash/util.js +10 -10
  791. package/lodash/value.js +1 -1
  792. package/lodash/valueOf.js +1 -1
  793. package/lodash/values.js +1 -1
  794. package/lodash/valuesIn.js +1 -1
  795. package/lodash/without.js +5 -5
  796. package/lodash/words.js +4 -4
  797. package/lodash/wrap.js +1 -1
  798. package/lodash/wrapperAt.js +1 -1
  799. package/lodash/wrapperChain.js +1 -1
  800. package/lodash/wrapperLodash.js +12 -12
  801. package/lodash/wrapperReverse.js +1 -1
  802. package/lodash/wrapperValue.js +1 -1
  803. package/lodash/xor.js +6 -6
  804. package/lodash/xorBy.js +7 -7
  805. package/lodash/xorWith.js +7 -7
  806. package/lodash/zip.js +1 -1
  807. package/lodash/zipObject.js +1 -1
  808. package/lodash/zipObjectDeep.js +4 -4
  809. package/lodash/zipWith.js +1 -1
  810. package/math/index.js +1 -1
  811. package/md5/index.js +1 -1
  812. package/mock/MockWebSocket.js +1 -1
  813. package/mock/MockXMLHttpRequest.js +1 -1
  814. package/mock/index.js +1 -1
  815. package/mousetrap/index.js +1 -1
  816. package/mousetrap/plugins/bind-dictionary/index.js +1 -1
  817. package/mousetrap/plugins/global-bind/index.js +1 -1
  818. package/mousetrap/plugins/index.js +1 -1
  819. package/mousetrap/plugins/pause/index.js +1 -1
  820. package/mousetrap/plugins/record/index.js +1 -1
  821. package/normalize-wheel/ExecutionEnvironment.js +2 -2
  822. package/normalize-wheel/UserAgent_DEPRECATED.js +1 -1
  823. package/normalize-wheel/index.js +1 -1
  824. package/normalize-wheel/isEventSupported.js +1 -1
  825. package/number-to-chinese/index.js +1 -1
  826. package/nzh/cn.js +1 -1
  827. package/nzh/hk.js +1 -1
  828. package/nzh/index.js +1 -1
  829. package/nzh/nzh.js +1 -1
  830. package/nzh/src/autoGet.js +1 -1
  831. package/nzh/src/index.js +1 -1
  832. package/nzh/src/langs/cn_b.js +1 -1
  833. package/nzh/src/langs/cn_s.js +1 -1
  834. package/nzh/src/langs/hk_b.js +1 -1
  835. package/nzh/src/langs/hk_s.js +1 -1
  836. package/nzh/src/utils.js +1 -1
  837. package/object/index.js +1 -1
  838. package/package.json +1 -1
  839. package/pinyin/index.js +1 -1
  840. package/pinyin/lib/common/constant.js +1 -1
  841. package/pinyin/lib/common/segmentit/AC.js +5 -2
  842. package/pinyin/lib/common/segmentit/TrieNode.js +7 -1
  843. package/pinyin/lib/common/segmentit/index.js +1 -1
  844. package/pinyin/lib/common/segmentit/max-probability.js +1 -1
  845. package/pinyin/lib/common/segmentit/min-tokenization.js +1 -1
  846. package/pinyin/lib/common/segmentit/reverse-max-match.js +1 -1
  847. package/pinyin/lib/common/utils.js +3 -1
  848. package/pinyin/lib/core/convert/index.js +1 -1
  849. package/pinyin/lib/core/custom/index.js +1 -1
  850. package/pinyin/lib/core/dict/index.js +1 -1
  851. package/pinyin/lib/core/html/index.js +1 -1
  852. package/pinyin/lib/core/match/index.js +1 -1
  853. package/pinyin/lib/core/pinyin/handle.js +1 -1
  854. package/pinyin/lib/core/pinyin/index.js +1 -1
  855. package/pinyin/lib/core/pinyin/middlewares.js +1 -1
  856. package/pinyin/lib/core/polyphonic/index.js +1 -1
  857. package/pinyin/lib/core/segment/index.js +1 -1
  858. package/pinyin/lib/core/segment/middlewares.js +14 -14
  859. package/pinyin/lib/core/traditional/index.js +1 -1
  860. package/pinyin/lib/data/dict1.js +1 -1
  861. package/pinyin/lib/data/dict2.js +1 -1
  862. package/pinyin/lib/data/dict3.js +1 -1
  863. package/pinyin/lib/data/dict4.js +1 -1
  864. package/pinyin/lib/data/dict5.js +1 -1
  865. package/pinyin/lib/data/special.js +1 -1
  866. package/pinyin/lib/data/surname.js +1 -1
  867. package/pinyin/lib/index.js +1 -1
  868. package/query-string/index.js +1 -1
  869. package/random/address.js +2 -2
  870. package/random/constellation.js +2 -2
  871. package/random/image.js +1 -1
  872. package/random/index.js +1 -1
  873. package/random/licensePlate.js +2 -2
  874. package/random/name.js +2 -2
  875. package/random/number.js +1 -1
  876. package/random/text.js +2 -2
  877. package/random/time.js +1 -1
  878. package/random/web.js +3 -3
  879. package/request/apiReplaceSegment.js +1 -1
  880. package/request/index.js +1 -1
  881. package/sanitize-url/index.js +1 -1
  882. package/screenfull/index.js +2 -2
  883. package/sleep/index.js +1 -1
  884. package/snapdom/index.browser.js +1 -1
  885. package/snapdom/index.js +1 -1
  886. package/snapdom/src/api/preCache.js +1 -1
  887. package/snapdom/src/api/snapdom.js +10 -3
  888. package/snapdom/src/core/cache.js +1 -1
  889. package/snapdom/src/core/capture.d.ts +2 -0
  890. package/snapdom/src/core/capture.js +110 -105
  891. package/snapdom/src/core/clone.js +1 -1
  892. package/snapdom/src/core/context.d.ts +2 -0
  893. package/snapdom/src/core/context.js +2 -1
  894. package/snapdom/src/core/plugins.js +1 -1
  895. package/snapdom/src/core/prepare.js +1 -1
  896. package/snapdom/src/exporters/download.js +2 -2
  897. package/snapdom/src/exporters/toBlob.js +1 -1
  898. package/snapdom/src/exporters/toCanvas.js +1 -1
  899. package/snapdom/src/exporters/toImg.js +1 -1
  900. package/snapdom/src/index.browser.js +1 -1
  901. package/snapdom/src/index.js +1 -1
  902. package/snapdom/src/modules/CSSVar.js +2 -2
  903. package/snapdom/src/modules/background.js +45 -36
  904. package/snapdom/src/modules/changeCSS.js +1 -1
  905. package/snapdom/src/modules/compress.d.ts +53 -0
  906. package/snapdom/src/modules/compress.js +118 -0
  907. package/snapdom/src/modules/counter.js +1 -1
  908. package/snapdom/src/modules/fonts.js +3 -3
  909. package/snapdom/src/modules/iconFonts.js +1 -1
  910. package/snapdom/src/modules/images.js +53 -47
  911. package/snapdom/src/modules/lineClamp.js +1 -1
  912. package/snapdom/src/modules/pictureResolver.js +1 -1
  913. package/snapdom/src/modules/pseudo.js +1 -1
  914. package/snapdom/src/modules/rasterize.js +1 -1
  915. package/snapdom/src/modules/snapFetch.js +1 -1
  916. package/snapdom/src/modules/styles.js +57 -50
  917. package/snapdom/src/modules/svgDefs.js +1 -1
  918. package/snapdom/src/utils/browser.js +1 -1
  919. package/snapdom/src/utils/capture.helpers.js +3 -3
  920. package/snapdom/src/utils/clone.helpers.js +1 -1
  921. package/snapdom/src/utils/css.d.ts +13 -1
  922. package/snapdom/src/utils/css.js +84 -49
  923. package/snapdom/src/utils/debug.js +1 -1
  924. package/snapdom/src/utils/helpers.js +1 -1
  925. package/snapdom/src/utils/image.js +1 -1
  926. package/snapdom/src/utils/index.d.ts +1 -1
  927. package/snapdom/src/utils/index.js +1 -1
  928. package/snapdom/src/utils/prepare.helpers.js +1 -1
  929. package/snapdom/src/utils/transforms.helpers.js +1 -1
  930. package/string/chars.js +1 -1
  931. package/string/index.d.ts +1 -1
  932. package/string/index.js +2 -2
  933. package/tinycolor/conversion.js +1 -1
  934. package/tinycolor/css-color-names.js +1 -1
  935. package/tinycolor/format-input.js +1 -1
  936. package/tinycolor/from-ratio.js +1 -1
  937. package/tinycolor/index.js +10 -1
  938. package/tinycolor/interfaces.js +1 -1
  939. package/tinycolor/public_api.js +1 -1
  940. package/tinycolor/random.js +1 -1
  941. package/tinycolor/readability.js +1 -1
  942. package/tinycolor/to-ms-filter.js +1 -1
  943. package/tinycolor/umd_api.js +1 -1
  944. package/tinycolor/utils.js +1 -1
  945. package/tree/index.js +1 -1
  946. package/tree/searchTree.js +1 -1
  947. package/tween/easing.js +1 -1
  948. package/tween/index.js +1 -1
  949. package/tween/tween.js +1 -1
  950. package/ui-color/compareColorByRange.js +1 -1
  951. package/ui-color/index.js +1 -1
  952. package/url-toolkit/index.js +1 -1
  953. package/validate/index.js +10 -1
  954. package/validate/interface.js +1 -1
  955. package/validate/locale/en-US.js +12 -12
  956. package/validate/locale/index.js +1 -1
  957. package/validate/locale/zh-CN.js +12 -12
  958. package/validate/rules/array.js +1 -1
  959. package/validate/rules/base.js +34 -25
  960. package/validate/rules/boolean.js +1 -1
  961. package/validate/rules/custom.js +1 -1
  962. package/validate/rules/number.js +1 -1
  963. package/validate/rules/object.js +1 -1
  964. package/validate/rules/string.js +1 -1
  965. package/validate/rules/type.js +14 -14
  966. package/version/index.js +1 -1
  967. package/xlsx/crc32.js +2 -2
  968. package/xlsx/index.js +1 -1
  969. package/xlsx/xlsx.js +14 -14
  970. package/.vite/license.md +0 -3
  971. package/.vite/manifest.json +0 -10603
  972. package/is/lib/isPort.js +0 -8
  973. package/snapdom/src/core/exporters.d.ts +0 -33
  974. /package/{constant → constants}/address.d.ts +0 -0
  975. /package/{constant → constants}/chineseCharacters.d.ts +0 -0
  976. /package/{constant → constants}/constellations.d.ts +0 -0
  977. /package/{constant → constants}/domain.d.ts +0 -0
  978. /package/{constant → constants}/identity.d.ts +0 -0
  979. /package/{constant → constants}/index.d.ts +0 -0
  980. /package/{constant → constants}/keyboardCode.d.ts +0 -0
  981. /package/{constant → constants}/licensePlate.d.ts +0 -0
  982. /package/{constant → constants}/name.d.ts +0 -0
  983. /package/{constant → constants}/platform.d.ts +0 -0
  984. /package/{constant → constants}/protocol.d.ts +0 -0
  985. /package/{constant → constants}/string.d.ts +0 -0
  986. /package/{constant → constants}/ui.d.ts +0 -0
  987. /package/is/{lib → libs}/isAscii.d.ts +0 -0
  988. /package/is/{lib → libs}/isBase64.d.ts +0 -0
  989. /package/is/{lib → libs}/isChinese.d.ts +0 -0
  990. /package/is/{lib → libs}/isDataURI.d.ts +0 -0
  991. /package/is/{lib → libs}/isEmail.d.ts +0 -0
  992. /package/is/{lib → libs}/isFQDN.d.ts +0 -0
  993. /package/is/{lib → libs}/isFullWidth.d.ts +0 -0
  994. /package/is/{lib → libs}/isHSL.d.ts +0 -0
  995. /package/is/{lib → libs}/isHalfWidth.d.ts +0 -0
  996. /package/is/{lib → libs}/isHash.d.ts +0 -0
  997. /package/is/{lib → libs}/isHexColor.d.ts +0 -0
  998. /package/is/{lib → libs}/isIMEI.d.ts +0 -0
  999. /package/is/{lib → libs}/isIP.d.ts +0 -0
  1000. /package/is/{lib → libs}/isIPRange.d.ts +0 -0
  1001. /package/is/{lib → libs}/isIdentityCard.d.ts +0 -0
  1002. /package/is/{lib → libs}/isJWT.d.ts +0 -0
  1003. /package/is/{lib → libs}/isMACAddress.d.ts +0 -0
  1004. /package/is/{lib → libs}/isMD5.d.ts +0 -0
  1005. /package/is/{lib → libs}/isMimeType.d.ts +0 -0
  1006. /package/is/{lib → libs}/isMobilePhone.d.ts +0 -0
  1007. /package/is/{lib → libs}/isOctal.d.ts +0 -0
  1008. /package/is/{lib → libs}/isPort.d.ts +0 -0
  1009. /package/is/{lib → libs}/isRgbColor.d.ts +0 -0
  1010. /package/is/{lib → libs}/isSemVer.d.ts +0 -0
  1011. /package/is/{lib → libs}/isSlug.d.ts +0 -0
  1012. /package/is/{lib → libs}/isStrongPassword.d.ts +0 -0
  1013. /package/is/{lib → libs}/isURL.d.ts +0 -0
  1014. /package/is/{lib → libs}/isUUID.d.ts +0 -0
  1015. /package/is/{lib → libs}/isVariableWidth.d.ts +0 -0
@@ -1,10 +1,11 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
- import { getStyle as e, splitBackgroundImage as t } from "../utils/css.js";
3
- import { inlineSingleBackgroundEntry as n } from "../utils/image.js";
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
+ import { cache as e } from "../core/cache.js";
3
+ import { getStyle as t, splitBackgroundImage as n } from "../utils/css.js";
4
+ import { inlineSingleBackgroundEntry as r } from "../utils/image.js";
4
5
  import "../utils/index.js";
5
6
  //#region utils/snapdom/src/modules/background.js
6
- async function r(r, i, a, o = {}) {
7
- let s = [[r, i]], c = [
7
+ async function i(i, a, o, s = {}) {
8
+ let c = [[i, a]], l = [
8
9
  "background-image",
9
10
  "mask",
10
11
  "mask-image",
@@ -16,7 +17,7 @@ async function r(r, i, a, o = {}) {
16
17
  "-webkit-mask-box-image-source",
17
18
  "border-image",
18
19
  "border-image-source"
19
- ], l = [
20
+ ], u = [
20
21
  "mask-position",
21
22
  "mask-size",
22
23
  "mask-repeat",
@@ -32,7 +33,7 @@ async function r(r, i, a, o = {}) {
32
33
  "-webkit-mask-clip",
33
34
  "-webkit-mask-position-x",
34
35
  "-webkit-mask-position-y"
35
- ], u = [
36
+ ], d = [
36
37
  "background-position",
37
38
  "background-position-x",
38
39
  "background-position-y",
@@ -42,47 +43,55 @@ async function r(r, i, a, o = {}) {
42
43
  "background-clip",
43
44
  "background-attachment",
44
45
  "background-blend-mode"
45
- ], d = [
46
+ ], f = [
46
47
  "border-image-slice",
47
48
  "border-image-width",
48
49
  "border-image-outset",
49
50
  "border-image-repeat"
50
51
  ];
51
- for (; s.length;) {
52
- let [r, i] = s.shift();
53
- if (!i) continue;
54
- let f = a.get(r) || e(r);
55
- a.has(r) || a.set(r, f);
56
- let p = (() => {
57
- let e = f.getPropertyValue("border-image"), t = f.getPropertyValue("border-image-source");
52
+ for (; c.length;) {
53
+ let [i, a] = c.shift();
54
+ if (!a) continue;
55
+ let p = o.get(i) || t(i);
56
+ o.has(i) || o.set(i, p);
57
+ let m = (() => {
58
+ let e = p.getPropertyValue("border-image"), t = p.getPropertyValue("border-image-source");
58
59
  return e && e !== "none" || t && t !== "none";
59
- })(), m = f.getPropertyValue("background-image"), h = f.getPropertyValue("background-color");
60
- if (m && m !== "none" || h && h !== "rgba(0, 0, 0, 0)" && h !== "transparent" || /url\s*\(|gradient\s*\(/i.test(f.getPropertyValue("background") || "")) for (let e of u) {
61
- let t = f.getPropertyValue(e);
62
- t && i.style.setProperty(e, t);
60
+ })(), h = p.getPropertyValue("background-image"), g = p.getPropertyValue("background-color");
61
+ if (h && h !== "none" || g && g !== "rgba(0, 0, 0, 0)" && g !== "transparent" || /url\s*\(|gradient\s*\(/i.test(p.getPropertyValue("background") || "")) for (let e of d) {
62
+ let t = p.getPropertyValue(e);
63
+ t && a.style.setProperty(e, t);
63
64
  }
64
- for (let e of c) {
65
- let r = f.getPropertyValue(e);
66
- if (e === "background-image" && (!r || r === "none")) {
67
- let e = f.getPropertyValue("background");
68
- e && /url\s*\(/.test(e) && (r = t(e).filter((e) => /url\s*\(/.test(e)).join(", ") || r);
65
+ for (let e of l) {
66
+ let t = p.getPropertyValue(e);
67
+ if (e === "background-image" && (!t || t === "none")) {
68
+ let e = p.getPropertyValue("background");
69
+ e && /url\s*\(/.test(e) && (t = n(e).filter((e) => /url\s*\(/.test(e)).join(", ") || t);
69
70
  }
70
- if (!r || r === "none") continue;
71
- let a = t(r), s = await Promise.all(a.map((e) => n(e, o)));
72
- s.some((e) => e && e !== "none" && !/^url\(undefined/.test(e)) && i.style.setProperty(e, s.join(", "));
71
+ if (!t || t === "none") continue;
72
+ let i = n(t), o = await Promise.all(i.map((e) => r(e, s)));
73
+ o.some((e) => e && e !== "none" && !/^url\(undefined/.test(e)) && a.style.setProperty(e, o.join(", "));
73
74
  }
74
- for (let e of l) {
75
- let t = f.getPropertyValue(e);
76
- !t || t === "initial" || i.style.setProperty(e, t);
75
+ for (let e of u) {
76
+ let t = p.getPropertyValue(e);
77
+ !t || t === "initial" || a.style.setProperty(e, t);
77
78
  }
78
- if (p) for (let e of d) {
79
- let t = f.getPropertyValue(e);
80
- !t || t === "initial" || i.style.setProperty(e, t);
79
+ if (m) for (let e of f) {
80
+ let t = p.getPropertyValue(e);
81
+ !t || t === "initial" || a.style.setProperty(e, t);
82
+ }
83
+ if (i.shadowRoot) {
84
+ let e = Array.from(i.shadowRoot.children).filter((e) => e.tagName !== "STYLE"), t = Array.from(a.children).filter((e) => !e.dataset?.snapdomPseudo && !(e.tagName === "STYLE" && e.dataset?.sd));
85
+ for (let n = 0; n < Math.min(e.length, t.length); n++) c.push([e[n], t[n]]);
86
+ } else {
87
+ let t = e.session.nodeMap;
88
+ for (let e of a.children) {
89
+ let n = t.get(e);
90
+ n && c.push([n, e]);
91
+ }
81
92
  }
82
- let g = r.shadowRoot ? Array.from(r.shadowRoot.children).filter((e) => e.tagName !== "STYLE") : Array.from(r.children), _ = Array.from(i.children).filter((e) => !(e.dataset?.snapdomPseudo || e.tagName === "STYLE" && e.dataset?.sd));
83
- for (let e = 0; e < Math.min(g.length, _.length); e++) s.push([g[e], _[e]]);
84
93
  }
85
94
  }
86
95
  //#endregion
87
- export { r as inlineBackgroundImages };
96
+ export { i as inlineBackgroundImages };
88
97
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
2
  //#region utils/snapdom/src/modules/changeCSS.js
3
3
  function e(e, i) {
4
4
  if (!e || !i) return;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Downsample a raster data URL to the largest resolution the target box can show, preserving the
3
+ * source aspect ratio (so object-fit:cover still has enough pixels) and codec. Never upscales.
4
+ * Returns a new data URL, or null when downsampling wouldn't help (vector, already small, or the
5
+ * re-encode grew the string).
6
+ *
7
+ * @param {string} dataURL
8
+ * @param {number} targetW - visible box width in device pixels (cssW × scale × dpr)
9
+ * @param {number} targetH - visible box height in device pixels
10
+ * @returns {Promise<string|null>}
11
+ */
12
+ export function downsampleDataURL(dataURL: string, targetW: number, targetH: number): Promise<string | null>;
13
+ /**
14
+ * Downsample every inlined <img> data URL in the clone to its visible resolution.
15
+ *
16
+ * @param {Element} clone
17
+ * @param {object} options - normalized capture context (reads scale, dpr, compress)
18
+ * @returns {Promise<{count:number, before:number, after:number}>} bytes before/after (for debug)
19
+ */
20
+ export function compressClonedImages(clone: Element, options: object): Promise<{
21
+ count: number;
22
+ before: number;
23
+ after: number;
24
+ }>;
25
+ /**
26
+ * Downsample inlined CSS background-image data URLs to the element's visible box. Only for
27
+ * non-repeating backgrounds: a background clips to the element box, so the box bounds what's
28
+ * visible regardless of background-size (cover/contain/auto/explicit). Tiled backgrounds (`repeat`,
29
+ * `space`, `round`) are skipped — a small tile repeated needs its natural resolution.
30
+ *
31
+ * @param {Element} clone
32
+ * @param {object} options
33
+ * @returns {Promise<{count:number}>}
34
+ */
35
+ export function compressClonedBackgrounds(clone: Element, options: object): Promise<{
36
+ count: number;
37
+ }>;
38
+ /**
39
+ * Downsample inlined SVG <image href="data:..."> to its rendered size (width/height attrs × eff).
40
+ * @param {Element} clone
41
+ * @param {object} options
42
+ * @returns {Promise<{count:number}>}
43
+ */
44
+ export function compressClonedSvgImages(clone: Element, options: object): Promise<{
45
+ count: number;
46
+ }>;
47
+ /**
48
+ * Run all compression passes over the clone (no-op when `compress` is off).
49
+ * @param {Element} clone
50
+ * @param {object} options
51
+ * @returns {Promise<void>}
52
+ */
53
+ export function compressCloneAssets(clone: Element, options: object): Promise<void>;
@@ -0,0 +1,118 @@
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
+ import { cache as e } from "../core/cache.js";
3
+ //#region utils/snapdom/src/modules/compress.js
4
+ var t = .92, n = .6;
5
+ async function r(e) {
6
+ let t = new Image();
7
+ if (t.decoding = "sync", t.src = e, typeof t.decode == "function") try {
8
+ return await t.decode(), t;
9
+ } catch {}
10
+ return await new Promise((e, n) => {
11
+ t.onload = () => e(), t.onerror = n;
12
+ }), t;
13
+ }
14
+ function i(e) {
15
+ let t = /^data:([^;,]+)/.exec(e);
16
+ return t ? t[1] : "";
17
+ }
18
+ async function a(e, a, o) {
19
+ if (typeof e != "string" || !e.startsWith("data:image") || e.startsWith("data:image/svg")) return null;
20
+ let s;
21
+ try {
22
+ s = await r(e);
23
+ } catch {
24
+ return null;
25
+ }
26
+ let c = s.naturalWidth || s.width, l = s.naturalHeight || s.height;
27
+ if (!c || !l) return null;
28
+ let u = Math.min(1, Math.max(a / c, o / l));
29
+ if (!(u > 0) || u >= .95) return null;
30
+ let d = u * n, f = Math.max(1, Math.round(c * d)), p = Math.max(1, Math.round(l * d)), m = document.createElement("canvas");
31
+ m.width = f, m.height = p;
32
+ let h = m.getContext("2d");
33
+ if (!h) return null;
34
+ h.imageSmoothingEnabled = !0, h.imageSmoothingQuality = "high", h.drawImage(s, 0, 0, f, p);
35
+ let g = i(e), _ = g === "image/jpeg" ? "image/jpeg" : g === "image/webp" ? "image/webp" : "image/png";
36
+ try {
37
+ let n = m.toDataURL(_, t);
38
+ if (typeof n == "string" && n.startsWith("data:image") && n.length < e.length) return n;
39
+ } catch {}
40
+ return null;
41
+ }
42
+ async function o(e, t) {
43
+ if (!t.compress) return {
44
+ count: 0,
45
+ before: 0,
46
+ after: 0
47
+ };
48
+ let n = (t.scale || 1) * (t.dpr || 1), r = Array.from(e.querySelectorAll("img")), i = 0, o = 0, s = 0, c = async (e) => {
49
+ let t = e.getAttribute("src") || "";
50
+ if (!t.startsWith("data:image") || t.startsWith("data:image/svg")) return;
51
+ let r = parseFloat(e.dataset.snapdomWidth) || parseFloat(e.style.width) || e.width || 0, c = parseFloat(e.dataset.snapdomHeight) || parseFloat(e.style.height) || e.height || 0;
52
+ if (!r || !c) return;
53
+ let l = await a(t, r * n, c * n);
54
+ l && (i++, o += t.length, s += l.length, e.setAttribute("src", l));
55
+ };
56
+ for (let e = 0; e < r.length; e += 6) await Promise.allSettled(r.slice(e, e + 6).map(c));
57
+ return {
58
+ count: i,
59
+ before: o,
60
+ after: s
61
+ };
62
+ }
63
+ function s(e) {
64
+ return {
65
+ w: e.offsetWidth || e.getBoundingClientRect().width || 0,
66
+ h: e.offsetHeight || e.getBoundingClientRect().height || 0
67
+ };
68
+ }
69
+ async function c(t, n) {
70
+ if (!n.compress) return { count: 0 };
71
+ let r = (n.scale || 1) * (n.dpr || 1), i = e.session.nodeMap, o = [], c = [t, ...t.querySelectorAll("*")];
72
+ for (let e of c) {
73
+ let t = e.style && e.style.backgroundImage;
74
+ t && t.includes("data:image") && o.push(e);
75
+ }
76
+ let l = 0, u = async (e) => {
77
+ let t = i.get(e);
78
+ if (!t || !t.isConnected) return;
79
+ let n;
80
+ try {
81
+ n = getComputedStyle(t);
82
+ } catch {
83
+ return;
84
+ }
85
+ if ((n.backgroundRepeat || "repeat").toLowerCase().split(",").some((e) => e.trim() !== "no-repeat")) return;
86
+ let { w: o, h: c } = s(t);
87
+ if (!o || !c) return;
88
+ let u = o * r, d = c * r, f = e.style.backgroundImage, p = [...f.matchAll(/url\((['"]?)(data:image\/[^)'"]+)\1\)/gi)], m = f;
89
+ for (let e of p) {
90
+ let t = e[2];
91
+ if (t.startsWith("data:image/svg")) continue;
92
+ let n = await a(t, u, d);
93
+ n && (m = m.split(t).join(n), l++);
94
+ }
95
+ m !== f && (e.style.backgroundImage = m);
96
+ };
97
+ for (let e = 0; e < o.length; e += 6) await Promise.allSettled(o.slice(e, e + 6).map(u));
98
+ return { count: l };
99
+ }
100
+ async function l(e, t) {
101
+ if (!t.compress) return { count: 0 };
102
+ let n = (t.scale || 1) * (t.dpr || 1), r = Array.from(e.querySelectorAll("image")), i = 0, o = async (e) => {
103
+ let t = e.getAttribute("href") || (typeof e.getAttributeNS == "function" ? e.getAttributeNS("http://www.w3.org/1999/xlink", "href") : null);
104
+ if (!t || !t.startsWith("data:image") || t.startsWith("data:image/svg")) return;
105
+ let r = parseFloat(e.getAttribute("width")) || 0, o = parseFloat(e.getAttribute("height")) || 0;
106
+ if (!r || !o) return;
107
+ let s = await a(t, r * n, o * n);
108
+ s && (e.setAttribute("href", s), e.hasAttribute("xlink:href") && e.setAttribute("xlink:href", s), i++);
109
+ };
110
+ for (let e = 0; e < r.length; e += 6) await Promise.allSettled(r.slice(e, e + 6).map(o));
111
+ return { count: i };
112
+ }
113
+ async function u(e, t) {
114
+ t.compress && (await o(e, t), await c(e, t), await l(e, t));
115
+ }
116
+ //#endregion
117
+ export { u as compressCloneAssets };
118
+ /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
2
  import { cache as e } from "../core/cache.js";
3
3
  //#region utils/snapdom/src/modules/counter.js
4
4
  function t(e) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
2
  import { cache as e } from "../core/cache.js";
3
3
  import { extractURL as t } from "../utils/helpers.js";
4
4
  import { snapFetch as n } from "./snapFetch.js";
@@ -23,7 +23,7 @@ async function i(e, t, n, r = 32, i = "#000") {
23
23
  height: l
24
24
  };
25
25
  }
26
- var a = new Set([
26
+ var a = /* @__PURE__ */ new Set([
27
27
  "serif",
28
28
  "sans-serif",
29
29
  "monospace",
@@ -248,7 +248,7 @@ async function D(i, a, o = "") {
248
248
  e.font?.add(l), s = s.replace(c[0], `url(${e.resource.get(l)})`);
249
249
  continue;
250
250
  }
251
- if (!e.font?.has(l)) try {
251
+ try {
252
252
  let t = await n(l, {
253
253
  as: "dataURL",
254
254
  useProxy: o,
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
2
  import { cache as e } from "../core/cache.js";
3
3
  //#region utils/snapdom/src/modules/iconFonts.js
4
4
  var t = [
@@ -1,89 +1,95 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
2
- import { snapFetch as e } from "./snapFetch.js";
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
+ import { cache as e } from "../core/cache.js";
3
+ import { snapFetch as t } from "./snapFetch.js";
3
4
  //#region utils/snapdom/src/modules/images.js
4
- var t = "http://www.w3.org/1999/xlink";
5
- function n(e) {
6
- return e.getAttribute("href") || e.getAttribute("xlink:href") || (typeof e.getAttributeNS == "function" ? e.getAttributeNS(t, "href") : null);
7
- }
5
+ var n = "http://www.w3.org/1999/xlink";
8
6
  function r(e) {
7
+ return e.getAttribute("href") || e.getAttribute("xlink:href") || (typeof e.getAttributeNS == "function" ? e.getAttributeNS(n, "href") : null);
8
+ }
9
+ function i(e) {
9
10
  let t = parseInt(e.dataset?.snapdomWidth || "", 10) || 0, n = parseInt(e.dataset?.snapdomHeight || "", 10) || 0, r = parseInt(e.getAttribute("width") || "", 10) || 0, i = parseInt(e.getAttribute("height") || "", 10) || 0, a = parseFloat(e.style?.width || "") || 0, o = parseFloat(e.style?.height || "") || 0;
10
11
  return {
11
12
  width: t || a || r || e.width || e.naturalWidth || 100,
12
13
  height: n || o || i || e.height || e.naturalHeight || 100
13
14
  };
14
15
  }
15
- async function i(i, a = {}) {
16
- let o = Array.from(i.querySelectorAll("img")), s = async (t) => {
17
- if (!t.getAttribute("src")) {
18
- let e = t.currentSrc || t.src || "";
19
- e && t.setAttribute("src", e);
16
+ async function a(a, o = {}) {
17
+ let s = Array.from(a.querySelectorAll("img")), c = async (n) => {
18
+ if (!n.getAttribute("src")) {
19
+ let e = n.currentSrc || n.src || "";
20
+ e && n.setAttribute("src", e);
21
+ }
22
+ n.removeAttribute("srcset"), n.removeAttribute("sizes");
23
+ let r = n.src || "";
24
+ if (!r) return;
25
+ let a = e.image?.get(r);
26
+ if (a) {
27
+ n.src = a, n.width ||= n.naturalWidth || 100, n.height ||= n.naturalHeight || 100;
28
+ return;
20
29
  }
21
- t.removeAttribute("srcset"), t.removeAttribute("sizes");
22
- let n = t.src || "";
23
- if (!n) return;
24
- let i = await e(n, {
30
+ let s = await t(r, {
25
31
  as: "dataURL",
26
- useProxy: a.useProxy
32
+ useProxy: o.useProxy
27
33
  });
28
- if (i.ok && typeof i.data == "string" && i.data.startsWith("data:")) {
29
- t.src = i.data, t.width ||= t.naturalWidth || 100, t.height ||= t.naturalHeight || 100;
34
+ if (s.ok && typeof s.data == "string" && s.data.startsWith("data:")) {
35
+ e.image?.set(r, s.data), n.src = s.data, n.width ||= n.naturalWidth || 100, n.height ||= n.naturalHeight || 100;
30
36
  return;
31
37
  }
32
- let { width: o, height: s } = r(t), { fallbackURL: c } = a || {};
33
- if (c) try {
34
- let r = typeof c == "function" ? await c({
35
- width: o,
36
- height: s,
37
- src: n,
38
- element: t
39
- }) : c;
40
- if (r) {
41
- let n = await e(r, {
38
+ let { width: c, height: l } = i(n), { fallbackURL: u } = o || {};
39
+ if (u) try {
40
+ let e = typeof u == "function" ? await u({
41
+ width: c,
42
+ height: l,
43
+ src: r,
44
+ element: n
45
+ }) : u;
46
+ if (e) {
47
+ let r = await t(e, {
42
48
  as: "dataURL",
43
- useProxy: a.useProxy
49
+ useProxy: o.useProxy
44
50
  });
45
- if (n?.ok && typeof n.data == "string") {
46
- t.src = n.data, t.width ||= o, t.height ||= s;
51
+ if (r?.ok && typeof r.data == "string") {
52
+ n.src = r.data, n.width ||= c, n.height ||= l;
47
53
  return;
48
54
  }
49
55
  }
50
56
  } catch {}
51
- if (a.placeholders !== !1) {
57
+ if (o.placeholders !== !1) {
52
58
  let e = document.createElement("div");
53
59
  e.style.cssText = [
54
- `width:${o}px`,
55
- `height:${s}px`,
60
+ `width:${c}px`,
61
+ `height:${l}px`,
56
62
  "background:#ccc",
57
63
  "display:inline-block",
58
64
  "text-align:center",
59
- `line-height:${s}px`,
65
+ `line-height:${l}px`,
60
66
  "color:#666",
61
67
  "font-size:12px",
62
68
  "overflow:hidden"
63
- ].join(";"), e.textContent = "img", t.replaceWith(e);
69
+ ].join(";"), e.textContent = "img", n.replaceWith(e);
64
70
  } else {
65
71
  let e = document.createElement("div");
66
- e.style.cssText = `display:inline-block;width:${o}px;height:${s}px;visibility:hidden;`, t.replaceWith(e);
72
+ e.style.cssText = `display:inline-block;width:${c}px;height:${l}px;visibility:hidden;`, n.replaceWith(e);
67
73
  }
68
74
  };
69
- for (let e = 0; e < o.length; e += 6) {
70
- let t = o.slice(e, e + 6).map(s);
75
+ for (let e = 0; e < s.length; e += 6) {
76
+ let t = s.slice(e, e + 6).map(c);
71
77
  await Promise.allSettled(t);
72
78
  }
73
- let c = Array.from(i.querySelectorAll("image")), l = async (r) => {
74
- let i = n(r);
79
+ let l = Array.from(a.querySelectorAll("image")), u = async (e) => {
80
+ let i = r(e);
75
81
  if (!i || i.startsWith("data:") || i.startsWith("blob:")) return;
76
- let o = await e(i, {
82
+ let a = await t(i, {
77
83
  as: "dataURL",
78
- useProxy: a.useProxy
84
+ useProxy: o.useProxy
79
85
  });
80
- o.ok && typeof o.data == "string" && o.data.startsWith("data:") && (r.setAttribute("href", o.data), r.removeAttribute("xlink:href"), typeof r.removeAttributeNS == "function" && r.removeAttributeNS(t, "href"));
86
+ a.ok && typeof a.data == "string" && a.data.startsWith("data:") && (e.setAttribute("href", a.data), e.removeAttribute("xlink:href"), typeof e.removeAttributeNS == "function" && e.removeAttributeNS(n, "href"));
81
87
  };
82
- for (let e = 0; e < c.length; e += 6) {
83
- let t = c.slice(e, e + 6).map(l);
88
+ for (let e = 0; e < l.length; e += 6) {
89
+ let t = l.slice(e, e + 6).map(u);
84
90
  await Promise.allSettled(t);
85
91
  }
86
92
  }
87
93
  //#endregion
88
- export { i as inlineImages };
94
+ export { a as inlineImages };
89
95
  /* 独立思考,明辨是非 */
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
2
  //#region utils/snapdom/src/modules/lineClamp.js
3
3
  function e(e) {
4
4
  if (!e) return () => {};
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
2
  //#region utils/snapdom/src/modules/pictureResolver.js
3
3
  function e(e) {
4
4
  return !!(!e || e.startsWith("data:") || e.startsWith("blob:") || /^data:image\/(gif|png|svg)/.test(e) && e.length < 200);
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
2
  import { cache as e } from "../core/cache.js";
3
3
  import { getStyle as t, getStyleKey as n, snapshotComputedStyle as r, splitBackgroundImage as i } from "../utils/css.js";
4
4
  import { debugWarn as a } from "../utils/debug.js";
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
2
  import { toCanvas as e } from "../exporters/toCanvas.js";
3
3
  //#region utils/snapdom/src/modules/rasterize.js
4
4
  async function t(t, n) {
@@ -1,4 +1,4 @@
1
- /* 潘启宝 2026-06-12 15:22:06 星期五 山东省济南市 */
1
+ /* 潘启宝 2026-06-25 08:58:03 星期四 山东省济南市 */
2
2
  import { safeEncodeURI as e } from "../utils/helpers.js";
3
3
  //#region utils/snapdom/src/modules/snapFetch.js
4
4
  function t(e = "[snapDOM]", { ttlMs: t = 5 * 6e4, maxEntries: n = 12 } = {}) {