@unicom-cloud/utils 0.1.39 → 0.1.41

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