@unicom-cloud/utils 0.1.41 → 0.1.43

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 (972) hide show
  1. package/.virtual/_rolldown/runtime.js +1 -1
  2. package/.vite/manifest.json +355 -312
  3. package/array/index.js +5 -4
  4. package/assert/index.js +10 -10
  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/keyboardCode.js +1 -1
  15. package/constant/licensePlate.js +1 -1
  16. package/constant/name.js +1 -1
  17. package/constant/platform.d.ts +10 -3
  18. package/constant/platform.js +24 -18
  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 +23 -23
  23. package/cookie/api.js +24 -23
  24. package/cookie/assign.js +1 -1
  25. package/cookie/converter.js +1 -1
  26. package/cookie/index.js +1 -1
  27. package/date/convertTime.js +10 -9
  28. package/date/convertToDuration.js +1 -1
  29. package/date/index.js +1 -1
  30. package/decimal/decimal.js +410 -408
  31. package/decimal/index.js +1 -1
  32. package/dom-helpers/activeElement.js +1 -1
  33. package/dom-helpers/addClass.js +2 -2
  34. package/dom-helpers/addEventListener.js +1 -1
  35. package/dom-helpers/animate.js +1 -1
  36. package/dom-helpers/animationFrame.js +1 -1
  37. package/dom-helpers/attribute.js +7 -6
  38. package/dom-helpers/camelize.js +1 -1
  39. package/dom-helpers/camelizeStyle.js +1 -1
  40. package/dom-helpers/canUseDOM.js +4 -3
  41. package/dom-helpers/childElements.js +1 -1
  42. package/dom-helpers/childNodes.js +1 -1
  43. package/dom-helpers/clear.js +1 -1
  44. package/dom-helpers/closest.js +1 -1
  45. package/dom-helpers/collectElements.js +1 -1
  46. package/dom-helpers/collectSiblings.js +1 -1
  47. package/dom-helpers/contains.js +1 -1
  48. package/dom-helpers/css.js +1 -1
  49. package/dom-helpers/filterEventHandler.js +1 -1
  50. package/dom-helpers/getComputedStyle.js +1 -1
  51. package/dom-helpers/getElementCoordinates.js +1 -1
  52. package/dom-helpers/getScrollAccessor.js +1 -1
  53. package/dom-helpers/hasClass.js +1 -1
  54. package/dom-helpers/height.js +1 -1
  55. package/dom-helpers/hyphenate.js +1 -1
  56. package/dom-helpers/hyphenateStyle.js +1 -1
  57. package/dom-helpers/index.js +1 -1
  58. package/dom-helpers/insertAfter.js +2 -2
  59. package/dom-helpers/isDocument.js +1 -1
  60. package/dom-helpers/isInput.js +1 -1
  61. package/dom-helpers/isTransform.js +1 -1
  62. package/dom-helpers/isVisible.js +1 -1
  63. package/dom-helpers/isWindow.js +1 -1
  64. package/dom-helpers/listen.js +1 -1
  65. package/dom-helpers/matches.js +1 -1
  66. package/dom-helpers/nextUntil.js +1 -1
  67. package/dom-helpers/offset.js +16 -15
  68. package/dom-helpers/offsetParent.js +2 -2
  69. package/dom-helpers/ownerDocument.js +2 -2
  70. package/dom-helpers/ownerWindow.js +2 -3
  71. package/dom-helpers/parents.js +1 -1
  72. package/dom-helpers/position.js +2 -2
  73. package/dom-helpers/prepend.js +1 -1
  74. package/dom-helpers/querySelectorAll.js +1 -1
  75. package/dom-helpers/reflow.js +1 -1
  76. package/dom-helpers/remove.js +2 -2
  77. package/dom-helpers/removeClass.js +2 -2
  78. package/dom-helpers/removeEventListener.js +1 -1
  79. package/dom-helpers/scrollLeft.js +1 -1
  80. package/dom-helpers/scrollParent.js +1 -1
  81. package/dom-helpers/scrollTo.js +1 -1
  82. package/dom-helpers/scrollTop.js +1 -1
  83. package/dom-helpers/scrollbarSize.js +1 -1
  84. package/dom-helpers/siblings.js +2 -2
  85. package/dom-helpers/text.js +1 -1
  86. package/dom-helpers/toggleClass.js +1 -1
  87. package/dom-helpers/transitionEnd.js +1 -1
  88. package/dom-helpers/triggerEvent.js +1 -1
  89. package/dom-helpers/types.js +1 -1
  90. package/dom-helpers/width.js +1 -1
  91. package/emitter/index.js +1 -1
  92. package/emoji/emoji.js +2 -2
  93. package/emoji/emojis.js +1 -1
  94. package/emoji/index.js +1 -1
  95. package/escape/index.js +1 -1
  96. package/file/fileRead.js +6 -6
  97. package/file/fileToDataURL.js +1 -1
  98. package/file/index.js +1 -1
  99. package/file/saveAs.js +11 -11
  100. package/filesize/index.d.ts +4 -2
  101. package/filesize/index.js +5 -3
  102. package/filesize/{constants.js → src/constants.js} +2 -2
  103. package/filesize/{filesize.d.ts → src/filesize.d.ts} +1 -1
  104. package/filesize/src/filesize.js +52 -0
  105. package/filesize/src/helpers.d.ts +119 -0
  106. package/filesize/src/helpers.js +118 -0
  107. package/function/index.js +1 -1
  108. package/idb/async-iterators.js +1 -1
  109. package/idb/database-extras.js +1 -1
  110. package/idb/entry.js +1 -1
  111. package/idb/index-.js +1 -1
  112. package/idb/index.js +1 -1
  113. package/idb/util.js +1 -1
  114. package/idb/wrap-idb-value.js +1 -1
  115. package/index.js +1 -1
  116. package/invariant/index.js +1 -1
  117. package/is/index.d.ts +9 -2
  118. package/is/index.js +116 -97
  119. package/is/lib/isAscii.js +1 -1
  120. package/is/lib/isBase64.js +1 -1
  121. package/is/lib/isChinese.js +1 -1
  122. package/is/lib/isDataURI.js +1 -1
  123. package/is/lib/isEmail.js +12 -12
  124. package/is/lib/isFQDN.js +1 -1
  125. package/is/lib/isFullWidth.js +1 -1
  126. package/is/lib/isHSL.js +1 -1
  127. package/is/lib/isHalfWidth.js +1 -1
  128. package/is/lib/isHash.js +1 -1
  129. package/is/lib/isHexColor.js +1 -1
  130. package/is/lib/isIMEI.js +1 -1
  131. package/is/lib/isIP.js +1 -1
  132. package/is/lib/isIPRange.js +6 -6
  133. package/is/lib/isIdentityCard.js +9 -8
  134. package/is/lib/isJWT.js +5 -5
  135. package/is/lib/isMACAddress.js +1 -1
  136. package/is/lib/isMD5.js +1 -1
  137. package/is/lib/isMimeType.js +1 -1
  138. package/is/lib/isMobilePhone.js +14 -13
  139. package/is/lib/isPort.js +1 -1
  140. package/is/lib/isRgbColor.js +1 -1
  141. package/is/lib/isSemVer.js +1 -1
  142. package/is/lib/isSlug.js +1 -1
  143. package/is/lib/isStrongPassword.js +1 -1
  144. package/is/lib/isURL.js +36 -35
  145. package/is/lib/isUUID.js +1 -1
  146. package/is/lib/isVariableWidth.js +5 -5
  147. package/lodash/_DataView.js +1 -1
  148. package/lodash/_Hash.js +1 -1
  149. package/lodash/_LazyWrapper.js +1 -1
  150. package/lodash/_ListCache.js +1 -1
  151. package/lodash/_LodashWrapper.js +1 -1
  152. package/lodash/_Map.js +1 -1
  153. package/lodash/_MapCache.js +1 -1
  154. package/lodash/_Promise.js +1 -1
  155. package/lodash/_Set.js +1 -1
  156. package/lodash/_SetCache.js +1 -1
  157. package/lodash/_Stack.js +3 -2
  158. package/lodash/_Symbol.js +1 -1
  159. package/lodash/_Uint8Array.js +1 -1
  160. package/lodash/_WeakMap.js +1 -1
  161. package/lodash/_addMapEntry.js +1 -1
  162. package/lodash/_addSetEntry.js +1 -1
  163. package/lodash/_apply.js +1 -1
  164. package/lodash/_arrayAggregator.js +1 -1
  165. package/lodash/_arrayEach.js +1 -1
  166. package/lodash/_arrayEachRight.js +1 -1
  167. package/lodash/_arrayEvery.js +1 -1
  168. package/lodash/_arrayFilter.js +1 -1
  169. package/lodash/_arrayIncludes.js +1 -1
  170. package/lodash/_arrayIncludesWith.js +1 -1
  171. package/lodash/_arrayLikeKeys.js +1 -1
  172. package/lodash/_arrayMap.js +1 -1
  173. package/lodash/_arrayPush.js +1 -1
  174. package/lodash/_arrayReduce.js +1 -1
  175. package/lodash/_arrayReduceRight.js +1 -1
  176. package/lodash/_arraySample.js +1 -1
  177. package/lodash/_arraySampleSize.js +1 -1
  178. package/lodash/_arrayShuffle.js +1 -1
  179. package/lodash/_arraySome.js +1 -1
  180. package/lodash/_asciiSize.js +1 -1
  181. package/lodash/_asciiToArray.js +1 -1
  182. package/lodash/_asciiWords.js +1 -1
  183. package/lodash/_assignMergeValue.js +1 -1
  184. package/lodash/_assignValue.js +1 -1
  185. package/lodash/_assocIndexOf.js +1 -1
  186. package/lodash/_baseAggregator.js +1 -1
  187. package/lodash/_baseAssign.js +1 -1
  188. package/lodash/_baseAssignIn.js +1 -1
  189. package/lodash/_baseAssignValue.js +1 -1
  190. package/lodash/_baseAt.js +1 -1
  191. package/lodash/_baseClamp.js +1 -1
  192. package/lodash/_baseClone.js +1 -1
  193. package/lodash/_baseConforms.js +1 -1
  194. package/lodash/_baseConformsTo.js +1 -1
  195. package/lodash/_baseCreate.js +1 -1
  196. package/lodash/_baseDelay.js +1 -1
  197. package/lodash/_baseDifference.js +1 -1
  198. package/lodash/_baseEach.js +1 -1
  199. package/lodash/_baseEachRight.js +1 -1
  200. package/lodash/_baseEvery.js +1 -1
  201. package/lodash/_baseExtremum.js +1 -1
  202. package/lodash/_baseFill.js +1 -1
  203. package/lodash/_baseFilter.js +1 -1
  204. package/lodash/_baseFindIndex.js +1 -1
  205. package/lodash/_baseFindKey.js +1 -1
  206. package/lodash/_baseFlatten.js +1 -1
  207. package/lodash/_baseFor.js +1 -1
  208. package/lodash/_baseForOwn.js +1 -1
  209. package/lodash/_baseForOwnRight.js +1 -1
  210. package/lodash/_baseForRight.js +1 -1
  211. package/lodash/_baseFunctions.js +1 -1
  212. package/lodash/_baseGet.js +1 -1
  213. package/lodash/_baseGetAllKeys.js +1 -1
  214. package/lodash/_baseGetTag.js +1 -1
  215. package/lodash/_baseGt.js +1 -1
  216. package/lodash/_baseHas.js +1 -1
  217. package/lodash/_baseHasIn.js +1 -1
  218. package/lodash/_baseInRange.js +1 -1
  219. package/lodash/_baseIndexOf.js +1 -1
  220. package/lodash/_baseIndexOfWith.js +1 -1
  221. package/lodash/_baseIntersection.js +1 -1
  222. package/lodash/_baseInverter.js +1 -1
  223. package/lodash/_baseInvoke.js +1 -1
  224. package/lodash/_baseIsArguments.js +1 -1
  225. package/lodash/_baseIsArrayBuffer.js +1 -1
  226. package/lodash/_baseIsDate.js +1 -1
  227. package/lodash/_baseIsEqual.js +1 -1
  228. package/lodash/_baseIsEqualDeep.js +1 -1
  229. package/lodash/_baseIsMap.js +1 -1
  230. package/lodash/_baseIsMatch.js +1 -1
  231. package/lodash/_baseIsNaN.js +1 -1
  232. package/lodash/_baseIsNative.js +1 -1
  233. package/lodash/_baseIsRegExp.js +1 -1
  234. package/lodash/_baseIsSet.js +1 -1
  235. package/lodash/_baseIsTypedArray.js +1 -1
  236. package/lodash/_baseIteratee.js +1 -1
  237. package/lodash/_baseKeys.js +1 -1
  238. package/lodash/_baseKeysIn.js +1 -1
  239. package/lodash/_baseLodash.js +1 -1
  240. package/lodash/_baseLt.js +1 -1
  241. package/lodash/_baseMap.js +1 -1
  242. package/lodash/_baseMatches.js +1 -1
  243. package/lodash/_baseMatchesProperty.js +1 -1
  244. package/lodash/_baseMean.js +1 -1
  245. package/lodash/_baseMerge.js +1 -1
  246. package/lodash/_baseMergeDeep.js +1 -1
  247. package/lodash/_baseNth.js +1 -1
  248. package/lodash/_baseOrderBy.js +1 -1
  249. package/lodash/_basePick.js +1 -1
  250. package/lodash/_basePickBy.js +1 -1
  251. package/lodash/_baseProperty.js +1 -1
  252. package/lodash/_basePropertyDeep.js +1 -1
  253. package/lodash/_basePropertyOf.js +1 -1
  254. package/lodash/_basePullAll.js +1 -1
  255. package/lodash/_basePullAt.js +1 -1
  256. package/lodash/_baseRandom.js +1 -1
  257. package/lodash/_baseRange.js +1 -1
  258. package/lodash/_baseReduce.js +1 -1
  259. package/lodash/_baseRepeat.js +1 -1
  260. package/lodash/_baseRest.js +1 -1
  261. package/lodash/_baseSample.js +1 -1
  262. package/lodash/_baseSampleSize.js +1 -1
  263. package/lodash/_baseSet.js +1 -1
  264. package/lodash/_baseSetData.js +1 -1
  265. package/lodash/_baseSetToString.js +1 -1
  266. package/lodash/_baseShuffle.js +1 -1
  267. package/lodash/_baseSlice.js +1 -1
  268. package/lodash/_baseSome.js +1 -1
  269. package/lodash/_baseSortBy.js +1 -1
  270. package/lodash/_baseSortedIndex.js +1 -1
  271. package/lodash/_baseSortedIndexBy.js +1 -1
  272. package/lodash/_baseSortedUniq.js +1 -1
  273. package/lodash/_baseSum.js +1 -1
  274. package/lodash/_baseTimes.js +1 -1
  275. package/lodash/_baseToNumber.js +1 -1
  276. package/lodash/_baseToPairs.js +1 -1
  277. package/lodash/_baseToString.js +1 -1
  278. package/lodash/_baseTrim.js +1 -1
  279. package/lodash/_baseUnary.js +1 -1
  280. package/lodash/_baseUniq.js +1 -1
  281. package/lodash/_baseUnset.js +1 -1
  282. package/lodash/_baseUpdate.js +1 -1
  283. package/lodash/_baseValues.js +1 -1
  284. package/lodash/_baseWhile.js +1 -1
  285. package/lodash/_baseWrapperValue.js +1 -1
  286. package/lodash/_baseXor.js +1 -1
  287. package/lodash/_baseZipObject.js +1 -1
  288. package/lodash/_cacheHas.js +1 -1
  289. package/lodash/_castArrayLikeObject.js +1 -1
  290. package/lodash/_castFunction.js +1 -1
  291. package/lodash/_castPath.js +1 -1
  292. package/lodash/_castRest.js +1 -1
  293. package/lodash/_castSlice.js +1 -1
  294. package/lodash/_charsEndIndex.js +1 -1
  295. package/lodash/_charsStartIndex.js +1 -1
  296. package/lodash/_cloneArrayBuffer.js +1 -1
  297. package/lodash/_cloneBuffer.js +1 -1
  298. package/lodash/_cloneDataView.js +1 -1
  299. package/lodash/_cloneMap.js +1 -1
  300. package/lodash/_cloneRegExp.js +1 -1
  301. package/lodash/_cloneSet.js +1 -1
  302. package/lodash/_cloneSymbol.js +1 -1
  303. package/lodash/_cloneTypedArray.js +1 -1
  304. package/lodash/_compareAscending.js +1 -1
  305. package/lodash/_compareMultiple.js +1 -1
  306. package/lodash/_composeArgs.js +1 -1
  307. package/lodash/_composeArgsRight.js +1 -1
  308. package/lodash/_copyArray.js +1 -1
  309. package/lodash/_copyObject.js +1 -1
  310. package/lodash/_copySymbols.js +1 -1
  311. package/lodash/_copySymbolsIn.js +1 -1
  312. package/lodash/_coreJsData.js +1 -1
  313. package/lodash/_countHolders.js +1 -1
  314. package/lodash/_createAggregator.js +1 -1
  315. package/lodash/_createAssigner.js +1 -1
  316. package/lodash/_createBaseEach.js +1 -1
  317. package/lodash/_createBaseFor.js +1 -1
  318. package/lodash/_createBind.js +1 -1
  319. package/lodash/_createCaseFirst.js +1 -1
  320. package/lodash/_createCompounder.js +1 -1
  321. package/lodash/_createCtor.js +1 -1
  322. package/lodash/_createCurry.js +1 -1
  323. package/lodash/_createFind.js +1 -1
  324. package/lodash/_createFlow.js +1 -1
  325. package/lodash/_createHybrid.js +1 -1
  326. package/lodash/_createInverter.js +1 -1
  327. package/lodash/_createMathOperation.js +1 -1
  328. package/lodash/_createOver.js +1 -1
  329. package/lodash/_createPadding.js +1 -1
  330. package/lodash/_createPartial.js +1 -1
  331. package/lodash/_createRange.js +1 -1
  332. package/lodash/_createRecurry.js +1 -1
  333. package/lodash/_createRelationalOperation.js +1 -1
  334. package/lodash/_createRound.js +1 -1
  335. package/lodash/_createSet.js +1 -1
  336. package/lodash/_createToPairs.js +1 -1
  337. package/lodash/_createWrap.js +1 -1
  338. package/lodash/_customDefaultsAssignIn.js +1 -1
  339. package/lodash/_customDefaultsMerge.js +1 -1
  340. package/lodash/_customOmitClone.js +1 -1
  341. package/lodash/_deburrLetter.js +1 -1
  342. package/lodash/_defineProperty.js +1 -1
  343. package/lodash/_equalArrays.js +1 -1
  344. package/lodash/_equalByTag.js +1 -1
  345. package/lodash/_equalObjects.js +1 -1
  346. package/lodash/_escapeHtmlChar.js +1 -1
  347. package/lodash/_escapeStringChar.js +1 -1
  348. package/lodash/_flatRest.js +1 -1
  349. package/lodash/_freeGlobal.js +1 -1
  350. package/lodash/_getAllKeys.js +1 -1
  351. package/lodash/_getAllKeysIn.js +1 -1
  352. package/lodash/_getData.js +1 -1
  353. package/lodash/_getFuncName.js +1 -1
  354. package/lodash/_getHolder.js +1 -1
  355. package/lodash/_getMapData.js +1 -1
  356. package/lodash/_getMatchData.js +1 -1
  357. package/lodash/_getNative.js +1 -1
  358. package/lodash/_getPrototype.js +1 -1
  359. package/lodash/_getRawTag.js +1 -1
  360. package/lodash/_getSymbols.js +1 -1
  361. package/lodash/_getSymbolsIn.js +1 -1
  362. package/lodash/_getTag.js +1 -1
  363. package/lodash/_getValue.js +1 -1
  364. package/lodash/_getView.js +1 -1
  365. package/lodash/_getWrapDetails.js +1 -1
  366. package/lodash/_hasPath.js +1 -1
  367. package/lodash/_hasUnicode.js +1 -1
  368. package/lodash/_hasUnicodeWord.js +1 -1
  369. package/lodash/_hashClear.js +1 -1
  370. package/lodash/_hashDelete.js +1 -1
  371. package/lodash/_hashGet.js +1 -1
  372. package/lodash/_hashHas.js +1 -1
  373. package/lodash/_hashSet.js +1 -1
  374. package/lodash/_initCloneArray.js +1 -1
  375. package/lodash/_initCloneByTag.js +1 -1
  376. package/lodash/_initCloneObject.js +1 -1
  377. package/lodash/_insertWrapDetails.js +1 -1
  378. package/lodash/_isFlattenable.js +1 -1
  379. package/lodash/_isIndex.js +1 -1
  380. package/lodash/_isIterateeCall.js +1 -1
  381. package/lodash/_isKey.js +1 -1
  382. package/lodash/_isKeyable.js +1 -1
  383. package/lodash/_isLaziable.js +1 -1
  384. package/lodash/_isMaskable.js +1 -1
  385. package/lodash/_isMasked.js +1 -1
  386. package/lodash/_isPrototype.js +1 -1
  387. package/lodash/_isStrictComparable.js +1 -1
  388. package/lodash/_iteratorToArray.js +1 -1
  389. package/lodash/_lazyClone.js +1 -1
  390. package/lodash/_lazyReverse.js +1 -1
  391. package/lodash/_lazyValue.js +1 -1
  392. package/lodash/_listCacheClear.js +1 -1
  393. package/lodash/_listCacheDelete.js +1 -1
  394. package/lodash/_listCacheGet.js +1 -1
  395. package/lodash/_listCacheHas.js +1 -1
  396. package/lodash/_listCacheSet.js +1 -1
  397. package/lodash/_mapCacheClear.js +1 -1
  398. package/lodash/_mapCacheDelete.js +1 -1
  399. package/lodash/_mapCacheGet.js +1 -1
  400. package/lodash/_mapCacheHas.js +1 -1
  401. package/lodash/_mapCacheSet.js +1 -1
  402. package/lodash/_mapToArray.js +1 -1
  403. package/lodash/_matchesStrictComparable.js +1 -1
  404. package/lodash/_memoizeCapped.js +1 -1
  405. package/lodash/_mergeData.js +1 -1
  406. package/lodash/_metaMap.js +1 -1
  407. package/lodash/_nativeCreate.js +1 -1
  408. package/lodash/_nativeKeys.js +1 -1
  409. package/lodash/_nativeKeysIn.js +1 -1
  410. package/lodash/_nodeUtil.js +1 -1
  411. package/lodash/_objectToString.js +1 -1
  412. package/lodash/_overArg.js +1 -1
  413. package/lodash/_overRest.js +1 -1
  414. package/lodash/_parent.js +1 -1
  415. package/lodash/_reEscape.js +1 -1
  416. package/lodash/_reEvaluate.js +1 -1
  417. package/lodash/_reInterpolate.js +1 -1
  418. package/lodash/_realNames.js +1 -1
  419. package/lodash/_reorder.js +1 -1
  420. package/lodash/_replaceHolders.js +1 -1
  421. package/lodash/_root.js +1 -1
  422. package/lodash/_safeGet.js +1 -1
  423. package/lodash/_setCacheAdd.js +1 -1
  424. package/lodash/_setCacheHas.js +1 -1
  425. package/lodash/_setData.js +1 -1
  426. package/lodash/_setToArray.js +1 -1
  427. package/lodash/_setToPairs.js +1 -1
  428. package/lodash/_setToString.js +1 -1
  429. package/lodash/_setWrapToString.js +1 -1
  430. package/lodash/_shortOut.js +1 -1
  431. package/lodash/_shuffleSelf.js +1 -1
  432. package/lodash/_stackClear.js +1 -1
  433. package/lodash/_stackDelete.js +1 -1
  434. package/lodash/_stackGet.js +1 -1
  435. package/lodash/_stackHas.js +1 -1
  436. package/lodash/_stackSet.js +1 -1
  437. package/lodash/_strictIndexOf.js +1 -1
  438. package/lodash/_strictLastIndexOf.js +1 -1
  439. package/lodash/_stringSize.js +1 -1
  440. package/lodash/_stringToArray.js +1 -1
  441. package/lodash/_stringToPath.js +1 -1
  442. package/lodash/_toKey.js +1 -1
  443. package/lodash/_toSource.js +1 -1
  444. package/lodash/_trimmedEndIndex.js +1 -1
  445. package/lodash/_unescapeHtmlChar.js +1 -1
  446. package/lodash/_unicodeSize.js +1 -1
  447. package/lodash/_unicodeToArray.js +1 -1
  448. package/lodash/_unicodeWords.js +1 -1
  449. package/lodash/_updateWrapDetails.js +1 -1
  450. package/lodash/_wrapperClone.js +1 -1
  451. package/lodash/add.js +1 -1
  452. package/lodash/after.js +1 -1
  453. package/lodash/array.default.js +1 -1
  454. package/lodash/array.js +1 -1
  455. package/lodash/ary.js +1 -1
  456. package/lodash/assign.js +1 -1
  457. package/lodash/assignIn.js +1 -1
  458. package/lodash/assignInWith.js +1 -1
  459. package/lodash/assignWith.js +1 -1
  460. package/lodash/at.js +1 -1
  461. package/lodash/attempt.js +1 -1
  462. package/lodash/before.js +1 -1
  463. package/lodash/bind.js +1 -1
  464. package/lodash/bindAll.js +1 -1
  465. package/lodash/bindKey.js +1 -1
  466. package/lodash/camelCase.js +1 -1
  467. package/lodash/capitalize.js +1 -1
  468. package/lodash/castArray.js +1 -1
  469. package/lodash/ceil.js +1 -1
  470. package/lodash/chain.js +1 -1
  471. package/lodash/chunk.js +1 -1
  472. package/lodash/clamp.js +1 -1
  473. package/lodash/clone.js +1 -1
  474. package/lodash/cloneDeep.js +1 -1
  475. package/lodash/cloneDeepWith.js +1 -1
  476. package/lodash/cloneWith.js +1 -1
  477. package/lodash/collection.default.js +1 -1
  478. package/lodash/collection.js +1 -1
  479. package/lodash/commit.js +1 -1
  480. package/lodash/compact.js +1 -1
  481. package/lodash/concat.js +1 -1
  482. package/lodash/cond.js +1 -1
  483. package/lodash/conforms.js +1 -1
  484. package/lodash/conformsTo.js +1 -1
  485. package/lodash/constant.js +1 -1
  486. package/lodash/countBy.js +1 -1
  487. package/lodash/create.js +1 -1
  488. package/lodash/curry.js +1 -1
  489. package/lodash/curryRight.js +1 -1
  490. package/lodash/date.default.js +1 -1
  491. package/lodash/date.js +1 -1
  492. package/lodash/debounce.js +1 -1
  493. package/lodash/deburr.js +1 -1
  494. package/lodash/defaultTo.js +1 -1
  495. package/lodash/defaults.js +1 -1
  496. package/lodash/defaultsDeep.js +1 -1
  497. package/lodash/defer.js +1 -1
  498. package/lodash/delay.js +1 -1
  499. package/lodash/difference.js +1 -1
  500. package/lodash/differenceBy.js +1 -1
  501. package/lodash/differenceWith.js +1 -1
  502. package/lodash/divide.js +1 -1
  503. package/lodash/drop.js +1 -1
  504. package/lodash/dropRight.js +1 -1
  505. package/lodash/dropRightWhile.js +1 -1
  506. package/lodash/dropWhile.js +1 -1
  507. package/lodash/each.js +1 -1
  508. package/lodash/eachRight.js +1 -1
  509. package/lodash/endsWith.js +1 -1
  510. package/lodash/entries.js +1 -1
  511. package/lodash/entriesIn.js +1 -1
  512. package/lodash/eq.js +1 -1
  513. package/lodash/escape.js +1 -1
  514. package/lodash/escapeRegExp.js +1 -1
  515. package/lodash/every.js +1 -1
  516. package/lodash/extend.js +1 -1
  517. package/lodash/extendWith.js +1 -1
  518. package/lodash/fill.js +1 -1
  519. package/lodash/filter.js +1 -1
  520. package/lodash/find.js +1 -1
  521. package/lodash/findIndex.js +1 -1
  522. package/lodash/findKey.js +1 -1
  523. package/lodash/findLast.js +1 -1
  524. package/lodash/findLastIndex.js +1 -1
  525. package/lodash/findLastKey.js +1 -1
  526. package/lodash/first.js +1 -1
  527. package/lodash/flatMap.js +1 -1
  528. package/lodash/flatMapDeep.js +1 -1
  529. package/lodash/flatMapDepth.js +1 -1
  530. package/lodash/flatten.js +1 -1
  531. package/lodash/flattenDeep.js +1 -1
  532. package/lodash/flattenDepth.js +1 -1
  533. package/lodash/flip.js +1 -1
  534. package/lodash/floor.js +1 -1
  535. package/lodash/flow.js +1 -1
  536. package/lodash/flowRight.js +1 -1
  537. package/lodash/forEach.js +1 -1
  538. package/lodash/forEachRight.js +1 -1
  539. package/lodash/forIn.js +1 -1
  540. package/lodash/forInRight.js +1 -1
  541. package/lodash/forOwn.js +1 -1
  542. package/lodash/forOwnRight.js +1 -1
  543. package/lodash/fromPairs.js +1 -1
  544. package/lodash/function.default.js +1 -1
  545. package/lodash/function.js +1 -1
  546. package/lodash/functions.js +1 -1
  547. package/lodash/functionsIn.js +1 -1
  548. package/lodash/get.js +1 -1
  549. package/lodash/groupBy.js +1 -1
  550. package/lodash/gt.js +1 -1
  551. package/lodash/gte.js +1 -1
  552. package/lodash/has.js +1 -1
  553. package/lodash/hasIn.js +1 -1
  554. package/lodash/head.js +1 -1
  555. package/lodash/identity.js +1 -1
  556. package/lodash/inRange.js +1 -1
  557. package/lodash/includes.js +1 -1
  558. package/lodash/index.js +1 -1
  559. package/lodash/indexOf.js +1 -1
  560. package/lodash/initial.js +1 -1
  561. package/lodash/intersection.js +1 -1
  562. package/lodash/intersectionBy.js +1 -1
  563. package/lodash/intersectionWith.js +1 -1
  564. package/lodash/invert.js +1 -1
  565. package/lodash/invertBy.js +1 -1
  566. package/lodash/invoke.js +1 -1
  567. package/lodash/invokeMap.js +1 -1
  568. package/lodash/isArguments.js +1 -1
  569. package/lodash/isArray.js +1 -1
  570. package/lodash/isArrayBuffer.js +1 -1
  571. package/lodash/isArrayLike.js +1 -1
  572. package/lodash/isArrayLikeObject.js +1 -1
  573. package/lodash/isBoolean.js +1 -1
  574. package/lodash/isBuffer.js +1 -1
  575. package/lodash/isDate.js +1 -1
  576. package/lodash/isElement.js +1 -1
  577. package/lodash/isEmpty.js +1 -1
  578. package/lodash/isEqual.js +1 -1
  579. package/lodash/isEqualWith.js +1 -1
  580. package/lodash/isError.js +1 -1
  581. package/lodash/isFinite.js +1 -1
  582. package/lodash/isFunction.js +1 -1
  583. package/lodash/isInteger.js +1 -1
  584. package/lodash/isLength.js +1 -1
  585. package/lodash/isMap.js +1 -1
  586. package/lodash/isMatch.js +1 -1
  587. package/lodash/isMatchWith.js +1 -1
  588. package/lodash/isNaN.js +1 -1
  589. package/lodash/isNative.js +1 -1
  590. package/lodash/isNil.js +1 -1
  591. package/lodash/isNull.js +1 -1
  592. package/lodash/isNumber.js +1 -1
  593. package/lodash/isObject.js +1 -1
  594. package/lodash/isObjectLike.js +1 -1
  595. package/lodash/isPlainObject.js +1 -1
  596. package/lodash/isPromise.js +2 -2
  597. package/lodash/isRegExp.js +1 -1
  598. package/lodash/isSafeInteger.js +1 -1
  599. package/lodash/isSet.js +1 -1
  600. package/lodash/isString.js +1 -1
  601. package/lodash/isSymbol.js +1 -1
  602. package/lodash/isTypedArray.js +1 -1
  603. package/lodash/isUndefined.js +1 -1
  604. package/lodash/isWeakMap.js +1 -1
  605. package/lodash/isWeakSet.js +1 -1
  606. package/lodash/iteratee.js +1 -1
  607. package/lodash/join.js +1 -1
  608. package/lodash/kebabCase.js +1 -1
  609. package/lodash/keyBy.js +1 -1
  610. package/lodash/keys.js +1 -1
  611. package/lodash/keysIn.js +1 -1
  612. package/lodash/lang.default.js +1 -1
  613. package/lodash/lang.js +1 -1
  614. package/lodash/last.js +1 -1
  615. package/lodash/lastIndexOf.js +1 -1
  616. package/lodash/lodash.default.js +1 -1
  617. package/lodash/lodash.js +1 -1
  618. package/lodash/lowerCase.js +1 -1
  619. package/lodash/lowerFirst.js +1 -1
  620. package/lodash/lt.js +1 -1
  621. package/lodash/lte.js +1 -1
  622. package/lodash/map.js +1 -1
  623. package/lodash/mapKeys.js +1 -1
  624. package/lodash/mapValues.js +1 -1
  625. package/lodash/matches.js +1 -1
  626. package/lodash/matchesProperty.js +1 -1
  627. package/lodash/math.default.js +1 -1
  628. package/lodash/math.js +1 -1
  629. package/lodash/max.js +1 -1
  630. package/lodash/maxBy.js +1 -1
  631. package/lodash/mean.js +1 -1
  632. package/lodash/meanBy.js +1 -1
  633. package/lodash/memoize.js +1 -1
  634. package/lodash/merge.js +1 -1
  635. package/lodash/mergeWith.js +1 -1
  636. package/lodash/method.js +1 -1
  637. package/lodash/methodOf.js +1 -1
  638. package/lodash/min.js +1 -1
  639. package/lodash/minBy.js +1 -1
  640. package/lodash/mixin.js +1 -1
  641. package/lodash/multiply.js +1 -1
  642. package/lodash/negate.js +1 -1
  643. package/lodash/next.js +1 -1
  644. package/lodash/noop.js +1 -1
  645. package/lodash/now.js +1 -1
  646. package/lodash/nth.js +1 -1
  647. package/lodash/nthArg.js +1 -1
  648. package/lodash/number.default.js +1 -1
  649. package/lodash/number.js +1 -1
  650. package/lodash/object.default.js +1 -1
  651. package/lodash/object.js +1 -1
  652. package/lodash/omit.js +1 -1
  653. package/lodash/omitBy.js +1 -1
  654. package/lodash/once.js +1 -1
  655. package/lodash/orderBy.js +1 -1
  656. package/lodash/over.js +1 -1
  657. package/lodash/overArgs.js +1 -1
  658. package/lodash/overEvery.js +1 -1
  659. package/lodash/overSome.js +1 -1
  660. package/lodash/pad.js +1 -1
  661. package/lodash/padEnd.js +1 -1
  662. package/lodash/padStart.js +1 -1
  663. package/lodash/parseInt.js +1 -1
  664. package/lodash/partial.js +1 -1
  665. package/lodash/partialRight.js +1 -1
  666. package/lodash/partition.js +1 -1
  667. package/lodash/pick.js +1 -1
  668. package/lodash/pickBy.js +1 -1
  669. package/lodash/plant.js +1 -1
  670. package/lodash/property.js +1 -1
  671. package/lodash/propertyOf.js +1 -1
  672. package/lodash/pull.js +1 -1
  673. package/lodash/pullAll.js +1 -1
  674. package/lodash/pullAllBy.js +1 -1
  675. package/lodash/pullAllWith.js +1 -1
  676. package/lodash/pullAt.js +1 -1
  677. package/lodash/random.js +1 -1
  678. package/lodash/range.js +1 -1
  679. package/lodash/rangeRight.js +1 -1
  680. package/lodash/rearg.js +1 -1
  681. package/lodash/reduce.js +1 -1
  682. package/lodash/reduceRight.js +1 -1
  683. package/lodash/reject.js +1 -1
  684. package/lodash/remove.js +1 -1
  685. package/lodash/repeat.js +1 -1
  686. package/lodash/replace.js +1 -1
  687. package/lodash/rest.js +1 -1
  688. package/lodash/result.js +1 -1
  689. package/lodash/reverse.js +1 -1
  690. package/lodash/round.js +1 -1
  691. package/lodash/sample.js +1 -1
  692. package/lodash/sampleSize.js +1 -1
  693. package/lodash/seq.default.js +1 -1
  694. package/lodash/seq.js +1 -1
  695. package/lodash/set.js +1 -1
  696. package/lodash/setWith.js +1 -1
  697. package/lodash/shuffle.js +1 -1
  698. package/lodash/size.js +1 -1
  699. package/lodash/slice.js +1 -1
  700. package/lodash/snakeCase.js +1 -1
  701. package/lodash/some.js +1 -1
  702. package/lodash/sortBy.js +1 -1
  703. package/lodash/sortedIndex.js +1 -1
  704. package/lodash/sortedIndexBy.js +1 -1
  705. package/lodash/sortedIndexOf.js +1 -1
  706. package/lodash/sortedLastIndex.js +1 -1
  707. package/lodash/sortedLastIndexBy.js +1 -1
  708. package/lodash/sortedLastIndexOf.js +1 -1
  709. package/lodash/sortedUniq.js +1 -1
  710. package/lodash/sortedUniqBy.js +1 -1
  711. package/lodash/split.js +1 -1
  712. package/lodash/spread.js +1 -1
  713. package/lodash/startCase.js +1 -1
  714. package/lodash/startsWith.js +1 -1
  715. package/lodash/string.default.js +1 -1
  716. package/lodash/string.js +1 -1
  717. package/lodash/stubArray.js +1 -1
  718. package/lodash/stubFalse.js +1 -1
  719. package/lodash/stubObject.js +1 -1
  720. package/lodash/stubString.js +1 -1
  721. package/lodash/stubTrue.js +1 -1
  722. package/lodash/subtract.js +1 -1
  723. package/lodash/sum.js +1 -1
  724. package/lodash/sumBy.js +1 -1
  725. package/lodash/tail.js +1 -1
  726. package/lodash/take.js +1 -1
  727. package/lodash/takeRight.js +1 -1
  728. package/lodash/takeRightWhile.js +1 -1
  729. package/lodash/takeWhile.js +1 -1
  730. package/lodash/tap.js +1 -1
  731. package/lodash/template.js +1 -1
  732. package/lodash/templateSettings.js +1 -1
  733. package/lodash/throttle.js +1 -1
  734. package/lodash/thru.js +1 -1
  735. package/lodash/times.js +1 -1
  736. package/lodash/toArray.js +1 -1
  737. package/lodash/toFinite.js +1 -1
  738. package/lodash/toInteger.js +1 -1
  739. package/lodash/toIterator.js +1 -1
  740. package/lodash/toJSON.js +1 -1
  741. package/lodash/toLength.js +1 -1
  742. package/lodash/toLower.js +1 -1
  743. package/lodash/toNumber.js +1 -1
  744. package/lodash/toPairs.js +1 -1
  745. package/lodash/toPairsIn.js +1 -1
  746. package/lodash/toPath.js +1 -1
  747. package/lodash/toPlainObject.js +1 -1
  748. package/lodash/toSafeInteger.js +1 -1
  749. package/lodash/toString.js +1 -1
  750. package/lodash/toUpper.js +1 -1
  751. package/lodash/transform.js +1 -1
  752. package/lodash/trim.js +1 -1
  753. package/lodash/trimEnd.js +1 -1
  754. package/lodash/trimStart.js +1 -1
  755. package/lodash/truncate.js +1 -1
  756. package/lodash/unary.js +1 -1
  757. package/lodash/unescape.js +1 -1
  758. package/lodash/union.js +1 -1
  759. package/lodash/unionBy.js +1 -1
  760. package/lodash/unionWith.js +1 -1
  761. package/lodash/uniq.js +1 -1
  762. package/lodash/uniqBy.js +1 -1
  763. package/lodash/uniqWith.js +1 -1
  764. package/lodash/uniqueId.js +1 -1
  765. package/lodash/unset.js +1 -1
  766. package/lodash/unzip.js +1 -1
  767. package/lodash/unzipWith.js +1 -1
  768. package/lodash/update.js +1 -1
  769. package/lodash/updateWith.js +1 -1
  770. package/lodash/upperCase.js +1 -1
  771. package/lodash/upperFirst.js +1 -1
  772. package/lodash/util.default.js +1 -1
  773. package/lodash/util.js +1 -1
  774. package/lodash/value.js +1 -1
  775. package/lodash/valueOf.js +1 -1
  776. package/lodash/values.js +1 -1
  777. package/lodash/valuesIn.js +1 -1
  778. package/lodash/without.js +1 -1
  779. package/lodash/words.js +1 -1
  780. package/lodash/wrap.js +1 -1
  781. package/lodash/wrapperAt.js +1 -1
  782. package/lodash/wrapperChain.js +1 -1
  783. package/lodash/wrapperLodash.js +1 -1
  784. package/lodash/wrapperReverse.js +1 -1
  785. package/lodash/wrapperValue.js +1 -1
  786. package/lodash/xor.js +1 -1
  787. package/lodash/xorBy.js +1 -1
  788. package/lodash/xorWith.js +1 -1
  789. package/lodash/zip.js +1 -1
  790. package/lodash/zipObject.js +1 -1
  791. package/lodash/zipObjectDeep.js +1 -1
  792. package/lodash/zipWith.js +1 -1
  793. package/math/index.js +1 -1
  794. package/md5/index.js +1 -1
  795. package/mock/MockWebSocket.js +1 -1
  796. package/mock/MockXMLHttpRequest.js +1 -1
  797. package/mock/index.js +1 -1
  798. package/normalize-wheel/ExecutionEnvironment.js +9 -8
  799. package/normalize-wheel/UserAgent_DEPRECATED.js +2 -2
  800. package/normalize-wheel/index.js +1 -1
  801. package/normalize-wheel/isEventSupported.js +1 -1
  802. package/number-to-chinese/index.js +1 -1
  803. package/nzh/cn.js +1 -1
  804. package/nzh/hk.js +1 -1
  805. package/nzh/index.js +1 -1
  806. package/nzh/nzh.js +1 -1
  807. package/nzh/src/autoGet.js +1 -1
  808. package/nzh/src/index.js +2 -2
  809. package/nzh/src/langs/cn_b.js +1 -1
  810. package/nzh/src/langs/cn_s.js +1 -1
  811. package/nzh/src/langs/hk_b.js +1 -1
  812. package/nzh/src/langs/hk_s.js +1 -1
  813. package/nzh/src/utils.js +21 -20
  814. package/object/index.d.ts +5 -1
  815. package/object/index.js +13 -7
  816. package/package.json +1 -1
  817. package/pinyin/core.js +1 -1
  818. package/pinyin/index.js +1 -1
  819. package/pinyin/simplified.js +1 -1
  820. package/pinyin/simplified_dict.js +1 -1
  821. package/pinyin/traditional.js +1 -1
  822. package/pinyin/traditional_dict.js +1 -1
  823. package/query-string/base.js +121 -121
  824. package/query-string/index.js +1 -1
  825. package/query-string/splitOnFirst.js +1 -1
  826. package/random/address.js +1 -1
  827. package/random/constellation.js +1 -1
  828. package/random/image.js +1 -1
  829. package/random/index.js +1 -1
  830. package/random/licensePlate.js +1 -1
  831. package/random/name.js +1 -1
  832. package/random/number.js +1 -1
  833. package/random/text.js +1 -1
  834. package/random/time.js +1 -1
  835. package/random/web.js +1 -1
  836. package/sanitize-url/index.js +1 -1
  837. package/screenfull/index.js +1 -1
  838. package/sleep/index.js +1 -1
  839. package/snapdom/index.browser.d.ts +1 -1
  840. package/snapdom/index.browser.js +2 -6
  841. package/snapdom/index.d.ts +1 -2
  842. package/snapdom/index.js +4 -3
  843. package/snapdom/{api → src/api}/preCache.js +2 -2
  844. package/snapdom/{api → src/api}/snapdom.js +3 -3
  845. package/snapdom/{core → src/core}/cache.js +2 -2
  846. package/snapdom/{core → src/core}/capture.js +3 -3
  847. package/snapdom/src/core/clone.js +266 -0
  848. package/snapdom/{core → src/core}/context.js +2 -2
  849. package/snapdom/{core → src/core}/plugins.js +2 -2
  850. package/snapdom/{core → src/core}/prepare.js +2 -2
  851. package/snapdom/{exporters → src/exporters}/download.js +2 -2
  852. package/snapdom/{exporters → src/exporters}/toBlob.js +2 -2
  853. package/snapdom/{exporters → src/exporters}/toCanvas.js +29 -20
  854. package/snapdom/{exporters → src/exporters}/toImg.js +2 -2
  855. package/snapdom/src/index.browser.d.ts +1 -0
  856. package/snapdom/src/index.browser.js +7 -0
  857. package/snapdom/src/index.d.ts +2 -0
  858. package/snapdom/src/index.js +4 -0
  859. package/snapdom/{modules → src/modules}/CSSVar.d.ts +1 -0
  860. package/snapdom/src/modules/CSSVar.js +101 -0
  861. package/snapdom/{modules → src/modules}/background.js +5 -2
  862. package/snapdom/{modules → src/modules}/changeCSS.js +2 -2
  863. package/snapdom/{modules → src/modules}/counter.d.ts +6 -2
  864. package/snapdom/{modules → src/modules}/counter.js +20 -23
  865. package/snapdom/{modules → src/modules}/fonts.js +2 -2
  866. package/snapdom/{modules → src/modules}/iconFonts.js +2 -2
  867. package/snapdom/{modules → src/modules}/images.js +6 -6
  868. package/snapdom/{modules → src/modules}/lineClamp.js +2 -2
  869. package/snapdom/{modules → src/modules}/pictureResolver.js +2 -2
  870. package/snapdom/{modules → src/modules}/pseudo.js +53 -47
  871. package/snapdom/{modules → src/modules}/rasterize.js +2 -2
  872. package/snapdom/{modules → src/modules}/snapFetch.js +2 -2
  873. package/snapdom/{modules → src/modules}/styles.js +9 -4
  874. package/snapdom/{modules → src/modules}/svgDefs.js +2 -2
  875. package/snapdom/{utils → src/utils}/browser.js +2 -2
  876. package/snapdom/{utils → src/utils}/capture.helpers.js +2 -2
  877. package/snapdom/{utils → src/utils}/clone.helpers.d.ts +14 -0
  878. package/snapdom/{utils → src/utils}/clone.helpers.js +8 -5
  879. package/snapdom/{utils → src/utils}/css.js +15 -5
  880. package/snapdom/{utils → src/utils}/debug.js +2 -2
  881. package/snapdom/{utils → src/utils}/helpers.js +2 -2
  882. package/snapdom/{utils → src/utils}/image.js +2 -2
  883. package/snapdom/{utils → src/utils}/index.js +1 -1
  884. package/snapdom/{utils → src/utils}/prepare.helpers.js +2 -2
  885. package/snapdom/{utils → src/utils}/transforms.helpers.js +2 -2
  886. package/string/chars.js +1 -1
  887. package/string/index.js +1 -1
  888. package/tinycolor/conversion.d.ts +1 -1
  889. package/tinycolor/conversion.js +1 -1
  890. package/tinycolor/css-color-names.js +1 -1
  891. package/tinycolor/format-input.js +54 -53
  892. package/tinycolor/from-ratio.js +1 -1
  893. package/tinycolor/index.js +1 -1
  894. package/tinycolor/interfaces.js +1 -1
  895. package/tinycolor/public_api.js +1 -1
  896. package/tinycolor/random.js +40 -40
  897. package/tinycolor/readability.js +1 -1
  898. package/tinycolor/to-ms-filter.js +1 -1
  899. package/tinycolor/umd_api.js +1 -1
  900. package/tinycolor/utils.d.ts +1 -1
  901. package/tinycolor/utils.js +1 -1
  902. package/tree/index.js +1 -1
  903. package/tree/searchTree.js +1 -1
  904. package/tween/easing.js +1 -1
  905. package/tween/index.js +1 -1
  906. package/tween/tween.js +1 -1
  907. package/ui-color/compareColorByRange.js +1 -1
  908. package/ui-color/index.js +1 -1
  909. package/url-toolkit/index.js +1 -1
  910. package/validate/index.js +1 -1
  911. package/validate/interface.js +1 -1
  912. package/validate/locale/en-US.js +1 -1
  913. package/validate/locale/index.js +1 -1
  914. package/validate/locale/zh-CN.js +1 -1
  915. package/validate/rules/array.js +2 -2
  916. package/validate/rules/base.js +1 -1
  917. package/validate/rules/boolean.js +1 -1
  918. package/validate/rules/custom.js +2 -2
  919. package/validate/rules/number.js +2 -2
  920. package/validate/rules/object.js +2 -2
  921. package/validate/rules/string.js +2 -2
  922. package/validate/rules/type.js +1 -1
  923. package/version/index.js +1 -1
  924. package/xlsx/crc32.js +1 -1
  925. package/xlsx/index.js +1 -1
  926. package/xlsx/xlsx.js +3868 -3867
  927. package/constant/isMobile.d.ts +0 -3
  928. package/constant/isMobile.js +0 -6
  929. package/filesize/filesize.js +0 -50
  930. package/filesize/helpers.d.ts +0 -58
  931. package/filesize/helpers.js +0 -70
  932. package/snapdom/core/clone.js +0 -266
  933. package/snapdom/modules/CSSVar.js +0 -82
  934. /package/filesize/{constants.d.ts → src/constants.d.ts} +0 -0
  935. /package/snapdom/{api → src/api}/preCache.d.ts +0 -0
  936. /package/snapdom/{api → src/api}/snapdom.d.ts +0 -0
  937. /package/snapdom/{core → src/core}/cache.d.ts +0 -0
  938. /package/snapdom/{core → src/core}/capture.d.ts +0 -0
  939. /package/snapdom/{core → src/core}/clone.d.ts +0 -0
  940. /package/snapdom/{core → src/core}/context.d.ts +0 -0
  941. /package/snapdom/{core → src/core}/exporters.d.ts +0 -0
  942. /package/snapdom/{core → src/core}/plugins.d.ts +0 -0
  943. /package/snapdom/{core → src/core}/prepare.d.ts +0 -0
  944. /package/snapdom/{exporters → src/exporters}/download.d.ts +0 -0
  945. /package/snapdom/{exporters → src/exporters}/toBlob.d.ts +0 -0
  946. /package/snapdom/{exporters → src/exporters}/toCanvas.d.ts +0 -0
  947. /package/snapdom/{exporters → src/exporters}/toImg.d.ts +0 -0
  948. /package/snapdom/{exporters → src/exporters}/toJpg.d.ts +0 -0
  949. /package/snapdom/{exporters → src/exporters}/toPng.d.ts +0 -0
  950. /package/snapdom/{exporters → src/exporters}/toSvg.d.ts +0 -0
  951. /package/snapdom/{exporters → src/exporters}/toWebp.d.ts +0 -0
  952. /package/snapdom/{modules → src/modules}/background.d.ts +0 -0
  953. /package/snapdom/{modules → src/modules}/changeCSS.d.ts +0 -0
  954. /package/snapdom/{modules → src/modules}/fonts.d.ts +0 -0
  955. /package/snapdom/{modules → src/modules}/iconFonts.d.ts +0 -0
  956. /package/snapdom/{modules → src/modules}/images.d.ts +0 -0
  957. /package/snapdom/{modules → src/modules}/lineClamp.d.ts +0 -0
  958. /package/snapdom/{modules → src/modules}/pictureResolver.d.ts +0 -0
  959. /package/snapdom/{modules → src/modules}/pseudo.d.ts +0 -0
  960. /package/snapdom/{modules → src/modules}/rasterize.d.ts +0 -0
  961. /package/snapdom/{modules → src/modules}/snapFetch.d.ts +0 -0
  962. /package/snapdom/{modules → src/modules}/styles.d.ts +0 -0
  963. /package/snapdom/{modules → src/modules}/svgDefs.d.ts +0 -0
  964. /package/snapdom/{utils → src/utils}/browser.d.ts +0 -0
  965. /package/snapdom/{utils → src/utils}/capture.helpers.d.ts +0 -0
  966. /package/snapdom/{utils → src/utils}/css.d.ts +0 -0
  967. /package/snapdom/{utils → src/utils}/debug.d.ts +0 -0
  968. /package/snapdom/{utils → src/utils}/helpers.d.ts +0 -0
  969. /package/snapdom/{utils → src/utils}/image.d.ts +0 -0
  970. /package/snapdom/{utils → src/utils}/index.d.ts +0 -0
  971. /package/snapdom/{utils → src/utils}/prepare.helpers.d.ts +0 -0
  972. /package/snapdom/{utils → src/utils}/transforms.helpers.d.ts +0 -0
@@ -1,26 +1,28 @@
1
- /* 潘启宝 2026-04-14 16:53:57 星期二 */
1
+ /* 潘启宝 2026-05-08 09:02:42 星期五 */
2
+ import { hasOwn as e } from "../object/index.js";
3
+ import t from "lodash/isUndefined.js";
2
4
  //#region utils/decimal/decimal.js
3
- var e = 9e15, t = 1e9, n = "0123456789abcdef", r = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", i = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", a = {
5
+ var n = 9e15, r = 1e9, i = "0123456789abcdef", a = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", o = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", s = {
4
6
  precision: 20,
5
7
  rounding: 4,
6
8
  modulo: 1,
7
9
  toExpNeg: -7,
8
10
  toExpPos: 21,
9
- minE: -e,
10
- maxE: e,
11
+ minE: -n,
12
+ maxE: n,
11
13
  crypto: !1
12
- }, o, s, c, l = !0, u = "[DecimalError] ", d = `${u}Invalid argument: `, f = `${u}Precision limit exceeded`, p = `${u}crypto unavailable`, m = "[object Decimal]", h = Math.floor, g = Math.pow, _ = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, v = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, y = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, b = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, x = 1e7, S = 7, C = 9007199254740991, w = r.length - 1, T = i.length - 1, E = { toStringTag: m };
13
- E.absoluteValue = E.abs = function() {
14
+ }, c, l, u, d = !0, f = "[DecimalError] ", p = `${f}Invalid argument: `, m = `${f}Precision limit exceeded`, h = `${f}crypto unavailable`, g = "[object Decimal]", _ = Math.floor, v = Math.pow, y = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, b = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, x = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, S = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, C = 1e7, w = 7, T = 9007199254740991, E = a.length - 1, D = o.length - 1, O = { toStringTag: g };
15
+ O.absoluteValue = O.abs = function() {
14
16
  var e = new this.constructor(this);
15
- return e.s < 0 && (e.s = 1), N(e);
16
- }, E.ceil = function() {
17
- return N(new this.constructor(this), this.e + 1, 2);
18
- }, E.clampedTo = E.clamp = function(e, t) {
17
+ return e.s < 0 && (e.s = 1), F(e);
18
+ }, O.ceil = function() {
19
+ return F(new this.constructor(this), this.e + 1, 2);
20
+ }, O.clampedTo = O.clamp = function(e, t) {
19
21
  var n, r = this, i = r.constructor;
20
22
  if (e = new i(e), t = new i(t), !e.s || !t.s) return new i(NaN);
21
- if (e.gt(t)) throw Error(d + t);
23
+ if (e.gt(t)) throw Error(p + t);
22
24
  return n = r.cmp(e), n < 0 ? e : r.cmp(t) > 0 ? t : new i(r);
23
- }, E.comparedTo = E.cmp = function(e) {
25
+ }, O.comparedTo = O.cmp = function(e) {
24
26
  var t, n, r, i, a = this, o = a.d, s = (e = new a.constructor(e)).d, c = a.s, l = e.s;
25
27
  if (!o || !s) return !c || !l ? NaN : c === l ? o === s ? 0 : !o ^ c < 0 ? 1 : -1 : c;
26
28
  if (!o[0] || !s[0]) return o[0] ? c : s[0] ? -l : 0;
@@ -28,312 +30,312 @@ E.absoluteValue = E.abs = function() {
28
30
  if (a.e !== e.e) return a.e > e.e ^ c < 0 ? 1 : -1;
29
31
  for (r = o.length, i = s.length, t = 0, n = r < i ? r : i; t < n; ++t) if (o[t] !== s[t]) return o[t] > s[t] ^ c < 0 ? 1 : -1;
30
32
  return r === i ? 0 : r > i ^ c < 0 ? 1 : -1;
31
- }, E.cosine = E.cos = function() {
33
+ }, O.cosine = O.cos = function() {
32
34
  var e, t, n = this, r = n.constructor;
33
- return n.d ? n.d[0] ? (e = r.precision, t = r.rounding, r.precision = e + Math.max(n.e, n.sd()) + S, r.rounding = 1, n = j(r, Y(r, n)), r.precision = e, r.rounding = t, N(c == 2 || c == 3 ? n.neg() : n, e, t, !0)) : new r(1) : new r(NaN);
34
- }, E.cubeRoot = E.cbrt = function() {
35
- var e, t, n, r, i, a, o, s, c, u, d = this, f = d.constructor;
36
- if (!d.isFinite() || d.isZero()) return new f(d);
37
- for (l = !1, a = d.s * g(d.s * d, 1 / 3), !a || Math.abs(a) == Infinity ? (n = D(d.d), e = d.e, (a = (e - n.length + 1) % 3) && (n += a == 1 || a == -2 ? "0" : "00"), a = g(n, 1 / 3), e = h((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2)), a == Infinity ? n = "5e" + e : (n = a.toExponential(), n = n.slice(0, n.indexOf("e") + 1) + e), r = new f(n), r.s = d.s) : r = new f(a.toString()), o = (e = f.precision) + 3;;) if (s = r, c = s.times(s).times(s), u = c.plus(d), r = M(u.plus(d).times(s), u.plus(c), o + 2, 1), D(s.d).slice(0, o) === (n = D(r.d)).slice(0, o)) if (n = n.slice(o - 3, o + 1), n == "9999" || !i && n == "4999") {
38
- if (!i && (N(s, e + 1, 0), s.times(s).times(s).eq(d))) {
35
+ return n.d ? n.d[0] ? (e = r.precision, t = r.rounding, r.precision = e + Math.max(n.e, n.sd()) + w, r.rounding = 1, n = N(r, X(r, n)), r.precision = e, r.rounding = t, F(u == 2 || u == 3 ? n.neg() : n, e, t, !0)) : new r(1) : new r(NaN);
36
+ }, O.cubeRoot = O.cbrt = function() {
37
+ var e, t, n, r, i, a, o, s, c, l, u = this, f = u.constructor;
38
+ if (!u.isFinite() || u.isZero()) return new f(u);
39
+ for (d = !1, a = u.s * v(u.s * u, 1 / 3), !a || Math.abs(a) == Infinity ? (n = k(u.d), e = u.e, (a = (e - n.length + 1) % 3) && (n += a == 1 || a == -2 ? "0" : "00"), a = v(n, 1 / 3), e = _((e + 1) / 3) - (e % 3 == (e < 0 ? -1 : 2)), a == Infinity ? n = "5e" + e : (n = a.toExponential(), n = n.slice(0, n.indexOf("e") + 1) + e), r = new f(n), r.s = u.s) : r = new f(a.toString()), o = (e = f.precision) + 3;;) if (s = r, c = s.times(s).times(s), l = c.plus(u), r = P(l.plus(u).times(s), l.plus(c), o + 2, 1), k(s.d).slice(0, o) === (n = k(r.d)).slice(0, o)) if (n = n.slice(o - 3, o + 1), n == "9999" || !i && n == "4999") {
40
+ if (!i && (F(s, e + 1, 0), s.times(s).times(s).eq(u))) {
39
41
  r = s;
40
42
  break;
41
43
  }
42
44
  o += 4, i = 1;
43
45
  } else {
44
- (!+n || !+n.slice(1) && n.charAt(0) == "5") && (N(r, e + 1, 1), t = !r.times(r).times(r).eq(d));
46
+ (!+n || !+n.slice(1) && n.charAt(0) == "5") && (F(r, e + 1, 1), t = !r.times(r).times(r).eq(u));
45
47
  break;
46
48
  }
47
- return l = !0, N(r, e, f.rounding, t);
48
- }, E.decimalPlaces = E.dp = function() {
49
+ return d = !0, F(r, e, f.rounding, t);
50
+ }, O.decimalPlaces = O.dp = function() {
49
51
  var e, t = this.d, n = NaN;
50
52
  if (t) {
51
- if (e = t.length - 1, n = (e - h(this.e / S)) * S, e = t[e], e) for (; e % 10 == 0; e /= 10) n--;
53
+ if (e = t.length - 1, n = (e - _(this.e / w)) * w, e = t[e], e) for (; e % 10 == 0; e /= 10) n--;
52
54
  n < 0 && (n = 0);
53
55
  }
54
56
  return n;
55
- }, E.dividedBy = E.div = function(e) {
56
- return M(this, new this.constructor(e));
57
- }, E.dividedToIntegerBy = E.divToInt = function(e) {
57
+ }, O.dividedBy = O.div = function(e) {
58
+ return P(this, new this.constructor(e));
59
+ }, O.dividedToIntegerBy = O.divToInt = function(e) {
58
60
  var t = this, n = t.constructor;
59
- return N(M(t, new n(e), 0, 1, 1), n.precision, n.rounding);
60
- }, E.equals = E.eq = function(e) {
61
+ return F(P(t, new n(e), 0, 1, 1), n.precision, n.rounding);
62
+ }, O.equals = O.eq = function(e) {
61
63
  return this.cmp(e) === 0;
62
- }, E.floor = function() {
63
- return N(new this.constructor(this), this.e + 1, 3);
64
- }, E.greaterThan = E.gt = function(e) {
64
+ }, O.floor = function() {
65
+ return F(new this.constructor(this), this.e + 1, 3);
66
+ }, O.greaterThan = O.gt = function(e) {
65
67
  return this.cmp(e) > 0;
66
- }, E.greaterThanOrEqualTo = E.gte = function(e) {
68
+ }, O.greaterThanOrEqualTo = O.gte = function(e) {
67
69
  var t = this.cmp(e);
68
70
  return t == 1 || t === 0;
69
- }, E.hyperbolicCosine = E.cosh = function() {
71
+ }, O.hyperbolicCosine = O.cosh = function() {
70
72
  var e, t, n, r, i, a = this, o = a.constructor, s = new o(1);
71
73
  if (!a.isFinite()) return new o(a.s ? Infinity : NaN);
72
74
  if (a.isZero()) return s;
73
- n = o.precision, r = o.rounding, o.precision = n + Math.max(a.e, a.sd()) + 4, o.rounding = 1, i = a.d.length, i < 32 ? (e = Math.ceil(i / 3), t = (1 / J(4, e)).toString()) : (e = 16, t = "2.3283064365386962890625e-10"), a = q(o, 1, a.times(t), new o(1), !0);
75
+ n = o.precision, r = o.rounding, o.precision = n + Math.max(a.e, a.sd()) + 4, o.rounding = 1, i = a.d.length, i < 32 ? (e = Math.ceil(i / 3), t = (1 / Y(4, e)).toString()) : (e = 16, t = "2.3283064365386962890625e-10"), a = J(o, 1, a.times(t), new o(1), !0);
74
76
  for (var c, l = e, u = new o(8); l--;) c = a.times(a), a = s.minus(c.times(u.minus(c.times(u))));
75
- return N(a, o.precision = n, o.rounding = r, !0);
76
- }, E.hyperbolicSine = E.sinh = function() {
77
+ return F(a, o.precision = n, o.rounding = r, !0);
78
+ }, O.hyperbolicSine = O.sinh = function() {
77
79
  var e, t, n, r, i = this, a = i.constructor;
78
80
  if (!i.isFinite() || i.isZero()) return new a(i);
79
- if (t = a.precision, n = a.rounding, a.precision = t + Math.max(i.e, i.sd()) + 4, a.rounding = 1, r = i.d.length, r < 3) i = q(a, 2, i, i, !0);
81
+ if (t = a.precision, n = a.rounding, a.precision = t + Math.max(i.e, i.sd()) + 4, a.rounding = 1, r = i.d.length, r < 3) i = J(a, 2, i, i, !0);
80
82
  else {
81
- e = 1.4 * Math.sqrt(r), e = e > 16 ? 16 : e | 0, i = i.times(1 / J(5, e)), i = q(a, 2, i, i, !0);
83
+ e = 1.4 * Math.sqrt(r), e = e > 16 ? 16 : e | 0, i = i.times(1 / Y(5, e)), i = J(a, 2, i, i, !0);
82
84
  for (var o, s = new a(5), c = new a(16), l = new a(20); e--;) o = i.times(i), i = i.times(s.plus(o.times(c.times(o).plus(l))));
83
85
  }
84
- return a.precision = t, a.rounding = n, N(i, t, n, !0);
85
- }, E.hyperbolicTangent = E.tanh = function() {
86
+ return a.precision = t, a.rounding = n, F(i, t, n, !0);
87
+ }, O.hyperbolicTangent = O.tanh = function() {
86
88
  var e, t, n = this, r = n.constructor;
87
- return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 7, r.rounding = 1, M(n.sinh(), n.cosh(), r.precision = e, r.rounding = t)) : new r(n.s);
88
- }, E.inverseCosine = E.acos = function() {
89
+ return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 7, r.rounding = 1, P(n.sinh(), n.cosh(), r.precision = e, r.rounding = t)) : new r(n.s);
90
+ }, O.inverseCosine = O.acos = function() {
89
91
  var e = this, t = e.constructor, n = e.abs().cmp(1), r = t.precision, i = t.rounding;
90
- return n === -1 ? e.isZero() ? L(t, r + 4, i).times(.5) : (t.precision = r + 6, t.rounding = 1, e = new t(1).minus(e).div(e.plus(1)).sqrt().atan(), t.precision = r, t.rounding = i, e.times(2)) : n === 0 ? e.isNeg() ? L(t, r, i) : new t(0) : new t(NaN);
91
- }, E.inverseHyperbolicCosine = E.acosh = function() {
92
+ return n === -1 ? e.isZero() ? z(t, r + 4, i).times(.5) : (t.precision = r + 6, t.rounding = 1, e = new t(1).minus(e).div(e.plus(1)).sqrt().atan(), t.precision = r, t.rounding = i, e.times(2)) : n === 0 ? e.isNeg() ? z(t, r, i) : new t(0) : new t(NaN);
93
+ }, O.inverseHyperbolicCosine = O.acosh = function() {
92
94
  var e, t, n = this, r = n.constructor;
93
- return n.lte(1) ? new r(n.eq(1) ? 0 : NaN) : n.isFinite() ? (e = r.precision, t = r.rounding, r.precision = e + Math.max(Math.abs(n.e), n.sd()) + 4, r.rounding = 1, l = !1, n = n.times(n).minus(1).sqrt().plus(n), l = !0, r.precision = e, r.rounding = t, n.ln()) : new r(n);
94
- }, E.inverseHyperbolicSine = E.asinh = function() {
95
+ return n.lte(1) ? new r(n.eq(1) ? 0 : NaN) : n.isFinite() ? (e = r.precision, t = r.rounding, r.precision = e + Math.max(Math.abs(n.e), n.sd()) + 4, r.rounding = 1, d = !1, n = n.times(n).minus(1).sqrt().plus(n), d = !0, r.precision = e, r.rounding = t, n.ln()) : new r(n);
96
+ }, O.inverseHyperbolicSine = O.asinh = function() {
95
97
  var e, t, n = this, r = n.constructor;
96
- return !n.isFinite() || n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 2 * Math.max(Math.abs(n.e), n.sd()) + 6, r.rounding = 1, l = !1, n = n.times(n).plus(1).sqrt().plus(n), l = !0, r.precision = e, r.rounding = t, n.ln());
97
- }, E.inverseHyperbolicTangent = E.atanh = function() {
98
+ return !n.isFinite() || n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 2 * Math.max(Math.abs(n.e), n.sd()) + 6, r.rounding = 1, d = !1, n = n.times(n).plus(1).sqrt().plus(n), d = !0, r.precision = e, r.rounding = t, n.ln());
99
+ }, O.inverseHyperbolicTangent = O.atanh = function() {
98
100
  var e, t, n, r, i = this, a = i.constructor;
99
- return i.isFinite() ? i.e >= 0 ? new a(i.abs().eq(1) ? i.s / 0 : i.isZero() ? i : NaN) : (e = a.precision, t = a.rounding, r = i.sd(), Math.max(r, e) < 2 * -i.e - 1 ? N(new a(i), e, t, !0) : (a.precision = n = r - i.e, i = M(i.plus(1), new a(1).minus(i), n + e, 1), a.precision = e + 4, a.rounding = 1, i = i.ln(), a.precision = e, a.rounding = t, i.times(.5))) : new a(NaN);
100
- }, E.inverseSine = E.asin = function() {
101
+ return i.isFinite() ? i.e >= 0 ? new a(i.abs().eq(1) ? i.s / 0 : i.isZero() ? i : NaN) : (e = a.precision, t = a.rounding, r = i.sd(), Math.max(r, e) < 2 * -i.e - 1 ? F(new a(i), e, t, !0) : (a.precision = n = r - i.e, i = P(i.plus(1), new a(1).minus(i), n + e, 1), a.precision = e + 4, a.rounding = 1, i = i.ln(), a.precision = e, a.rounding = t, i.times(.5))) : new a(NaN);
102
+ }, O.inverseSine = O.asin = function() {
101
103
  var e, t, n, r, i = this, a = i.constructor;
102
- return i.isZero() ? new a(i) : (t = i.abs().cmp(1), n = a.precision, r = a.rounding, t === -1 ? (a.precision = n + 6, a.rounding = 1, i = i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(), a.precision = n, a.rounding = r, i.times(2)) : t === 0 ? (e = L(a, n + 4, r).times(.5), e.s = i.s, e) : new a(NaN));
103
- }, E.inverseTangent = E.atan = function() {
104
- var e, t, n, r, i, a, o, s, c, u = this, d = u.constructor, f = d.precision, p = d.rounding;
105
- if (!u.isFinite()) {
106
- if (!u.s) return new d(NaN);
107
- if (f + 4 <= T) return o = L(d, f + 4, p).times(.5), o.s = u.s, o;
108
- } else if (u.isZero()) return new d(u);
109
- else if (u.abs().eq(1) && f + 4 <= T) return o = L(d, f + 4, p).times(.25), o.s = u.s, o;
110
- for (d.precision = s = f + 10, d.rounding = 1, n = Math.min(28, s / S + 2 | 0), e = n; e; --e) u = u.div(u.times(u).plus(1).sqrt().plus(1));
111
- for (l = !1, t = Math.ceil(s / S), r = 1, c = u.times(u), o = new d(u), i = u; e !== -1;) if (i = i.times(c), a = o.minus(i.div(r += 2)), i = i.times(c), o = a.plus(i.div(r += 2)), o.d[t] !== void 0) for (e = t; o.d[e] === a.d[e] && e--;);
112
- return n && (o = o.times(2 << n - 1)), l = !0, N(o, d.precision = f, d.rounding = p, !0);
113
- }, E.isFinite = function() {
104
+ return i.isZero() ? new a(i) : (t = i.abs().cmp(1), n = a.precision, r = a.rounding, t === -1 ? (a.precision = n + 6, a.rounding = 1, i = i.div(new a(1).minus(i.times(i)).sqrt().plus(1)).atan(), a.precision = n, a.rounding = r, i.times(2)) : t === 0 ? (e = z(a, n + 4, r).times(.5), e.s = i.s, e) : new a(NaN));
105
+ }, O.inverseTangent = O.atan = function() {
106
+ var e, t, n, r, i, a, o, s, c, l = this, u = l.constructor, f = u.precision, p = u.rounding;
107
+ if (!l.isFinite()) {
108
+ if (!l.s) return new u(NaN);
109
+ if (f + 4 <= D) return o = z(u, f + 4, p).times(.5), o.s = l.s, o;
110
+ } else if (l.isZero()) return new u(l);
111
+ else if (l.abs().eq(1) && f + 4 <= D) return o = z(u, f + 4, p).times(.25), o.s = l.s, o;
112
+ for (u.precision = s = f + 10, u.rounding = 1, n = Math.min(28, s / w + 2 | 0), e = n; e; --e) l = l.div(l.times(l).plus(1).sqrt().plus(1));
113
+ for (d = !1, t = Math.ceil(s / w), r = 1, c = l.times(l), o = new u(l), i = l; e !== -1;) if (i = i.times(c), a = o.minus(i.div(r += 2)), i = i.times(c), o = a.plus(i.div(r += 2)), o.d[t] !== void 0) for (e = t; o.d[e] === a.d[e] && e--;);
114
+ return n && (o = o.times(2 << n - 1)), d = !0, F(o, u.precision = f, u.rounding = p, !0);
115
+ }, O.isFinite = function() {
114
116
  return !!this.d;
115
- }, E.isInteger = E.isInt = function() {
116
- return !!this.d && h(this.e / S) > this.d.length - 2;
117
- }, E.isNaN = function() {
117
+ }, O.isInteger = O.isInt = function() {
118
+ return !!this.d && _(this.e / w) > this.d.length - 2;
119
+ }, O.isNaN = function() {
118
120
  return !this.s;
119
- }, E.isNegative = E.isNeg = function() {
121
+ }, O.isNegative = O.isNeg = function() {
120
122
  return this.s < 0;
121
- }, E.isPositive = E.isPos = function() {
123
+ }, O.isPositive = O.isPos = function() {
122
124
  return this.s > 0;
123
- }, E.isZero = function() {
125
+ }, O.isZero = function() {
124
126
  return !!this.d && this.d[0] === 0;
125
- }, E.lessThan = E.lt = function(e) {
127
+ }, O.lessThan = O.lt = function(e) {
126
128
  return this.cmp(e) < 0;
127
- }, E.lessThanOrEqualTo = E.lte = function(e) {
129
+ }, O.lessThanOrEqualTo = O.lte = function(e) {
128
130
  return this.cmp(e) < 1;
129
- }, E.logarithm = E.log = function(e) {
130
- var t, n, r, i, a, o, s, c, u = this, d = u.constructor, f = d.precision, p = d.rounding, m = 5;
131
- if (e == null) e = new d(10), t = !0;
131
+ }, O.logarithm = O.log = function(e) {
132
+ var t, n, r, i, a, o, s, c, l = this, u = l.constructor, f = u.precision, p = u.rounding, m = 5;
133
+ if (e == null) e = new u(10), t = !0;
132
134
  else {
133
- if (e = new d(e), n = e.d, e.s < 0 || !n || !n[0] || e.eq(1)) return new d(NaN);
135
+ if (e = new u(e), n = e.d, e.s < 0 || !n || !n[0] || e.eq(1)) return new u(NaN);
134
136
  t = e.eq(10);
135
137
  }
136
- if (n = u.d, u.s < 0 || !n || !n[0] || u.eq(1)) return new d(n && !n[0] ? -Infinity : u.s == 1 ? n ? 0 : Infinity : NaN);
138
+ if (n = l.d, l.s < 0 || !n || !n[0] || l.eq(1)) return new u(n && !n[0] ? -Infinity : l.s == 1 ? n ? 0 : Infinity : NaN);
137
139
  if (t) if (n.length > 1) a = !0;
138
140
  else {
139
141
  for (i = n[0]; i % 10 == 0;) i /= 10;
140
142
  a = i !== 1;
141
143
  }
142
- if (l = !1, s = f + m, o = W(u, s), r = t ? I(d, s + 10) : W(e, s), c = M(o, r, s, 1), k(c.d, i = f, p)) do
143
- if (s += 10, o = W(u, s), r = t ? I(d, s + 10) : W(e, s), c = M(o, r, s, 1), !a) {
144
- +D(c.d).slice(i + 1, i + 15) + 1 == 0x5af3107a4000 && (c = N(c, f + 1, 0));
144
+ if (d = !1, s = f + m, o = G(l, s), r = t ? R(u, s + 10) : G(e, s), c = P(o, r, s, 1), j(c.d, i = f, p)) do
145
+ if (s += 10, o = G(l, s), r = t ? R(u, s + 10) : G(e, s), c = P(o, r, s, 1), !a) {
146
+ +k(c.d).slice(i + 1, i + 15) + 1 == 0x5af3107a4000 && (c = F(c, f + 1, 0));
145
147
  break;
146
148
  }
147
- while (k(c.d, i += 10, p));
148
- return l = !0, N(c, f, p);
149
- }, E.minus = E.sub = function(e) {
150
- var t, n, r, i, a, o, s, c, u, d, f, p, m = this, g = m.constructor;
151
- if (e = new g(e), !m.d || !e.d) return !m.s || !e.s ? e = new g(NaN) : m.d ? e.s = -e.s : e = new g(e.d || m.s !== e.s ? m : NaN), e;
149
+ while (j(c.d, i += 10, p));
150
+ return d = !0, F(c, f, p);
151
+ }, O.minus = O.sub = function(e) {
152
+ var t, n, r, i, a, o, s, c, l, u, f, p, m = this, h = m.constructor;
153
+ if (e = new h(e), !m.d || !e.d) return !m.s || !e.s ? e = new h(NaN) : m.d ? e.s = -e.s : e = new h(e.d || m.s !== e.s ? m : NaN), e;
152
154
  if (m.s != e.s) return e.s = -e.s, m.plus(e);
153
- if (u = m.d, p = e.d, s = g.precision, c = g.rounding, !u[0] || !p[0]) {
155
+ if (l = m.d, p = e.d, s = h.precision, c = h.rounding, !l[0] || !p[0]) {
154
156
  if (p[0]) e.s = -e.s;
155
- else if (u[0]) e = new g(m);
156
- else return new g(c === 3 ? -0 : 0);
157
- return l ? N(e, s, c) : e;
157
+ else if (l[0]) e = new h(m);
158
+ else return new h(c === 3 ? -0 : 0);
159
+ return d ? F(e, s, c) : e;
158
160
  }
159
- if (n = h(e.e / S), d = h(m.e / S), u = u.slice(), a = d - n, a) {
160
- for (f = a < 0, f ? (t = u, a = -a, o = p.length) : (t = p, n = d, o = u.length), r = Math.max(Math.ceil(s / S), o) + 2, a > r && (a = r, t.length = 1), t.reverse(), r = a; r--;) t.push(0);
161
+ if (n = _(e.e / w), u = _(m.e / w), l = l.slice(), a = u - n, a) {
162
+ for (f = a < 0, f ? (t = l, a = -a, o = p.length) : (t = p, n = u, o = l.length), r = Math.max(Math.ceil(s / w), o) + 2, a > r && (a = r, t.length = 1), t.reverse(), r = a; r--;) t.push(0);
161
163
  t.reverse();
162
164
  } else {
163
- for (r = u.length, o = p.length, f = r < o, f && (o = r), r = 0; r < o; r++) if (u[r] != p[r]) {
164
- f = u[r] < p[r];
165
+ for (r = l.length, o = p.length, f = r < o, f && (o = r), r = 0; r < o; r++) if (l[r] != p[r]) {
166
+ f = l[r] < p[r];
165
167
  break;
166
168
  }
167
169
  a = 0;
168
170
  }
169
- for (f && (t = u, u = p, p = t, e.s = -e.s), o = u.length, r = p.length - o; r > 0; --r) u[o++] = 0;
171
+ for (f && (t = l, l = p, p = t, e.s = -e.s), o = l.length, r = p.length - o; r > 0; --r) l[o++] = 0;
170
172
  for (r = p.length; r > a;) {
171
- if (u[--r] < p[r]) {
172
- for (i = r; i && u[--i] === 0;) u[i] = x - 1;
173
- --u[i], u[r] += x;
173
+ if (l[--r] < p[r]) {
174
+ for (i = r; i && l[--i] === 0;) l[i] = C - 1;
175
+ --l[i], l[r] += C;
174
176
  }
175
- u[r] -= p[r];
177
+ l[r] -= p[r];
176
178
  }
177
- for (; u[--o] === 0;) u.pop();
178
- for (; u[0] === 0; u.shift()) --n;
179
- return u[0] ? (e.d = u, e.e = F(u, n), l ? N(e, s, c) : e) : new g(c === 3 ? -0 : 0);
180
- }, E.modulo = E.mod = function(e) {
179
+ for (; l[--o] === 0;) l.pop();
180
+ for (; l[0] === 0; l.shift()) --n;
181
+ return l[0] ? (e.d = l, e.e = L(l, n), d ? F(e, s, c) : e) : new h(c === 3 ? -0 : 0);
182
+ }, O.modulo = O.mod = function(e) {
181
183
  var t, n = this, r = n.constructor;
182
- return e = new r(e), !n.d || !e.s || e.d && !e.d[0] ? new r(NaN) : !e.d || n.d && !n.d[0] ? N(new r(n), r.precision, r.rounding) : (l = !1, r.modulo == 9 ? (t = M(n, e.abs(), 0, 3, 1), t.s *= e.s) : t = M(n, e, 0, r.modulo, 1), t = t.times(e), l = !0, n.minus(t));
183
- }, E.naturalExponential = E.exp = function() {
184
- return U(this);
185
- }, E.naturalLogarithm = E.ln = function() {
184
+ return e = new r(e), !n.d || !e.s || e.d && !e.d[0] ? new r(NaN) : !e.d || n.d && !n.d[0] ? F(new r(n), r.precision, r.rounding) : (d = !1, r.modulo == 9 ? (t = P(n, e.abs(), 0, 3, 1), t.s *= e.s) : t = P(n, e, 0, r.modulo, 1), t = t.times(e), d = !0, n.minus(t));
185
+ }, O.naturalExponential = O.exp = function() {
186
186
  return W(this);
187
- }, E.negated = E.neg = function() {
187
+ }, O.naturalLogarithm = O.ln = function() {
188
+ return G(this);
189
+ }, O.negated = O.neg = function() {
188
190
  var e = new this.constructor(this);
189
- return e.s = -e.s, N(e);
190
- }, E.plus = E.add = function(e) {
191
- var t, n, r, i, a, o, s, c, u, d, f = this, p = f.constructor;
191
+ return e.s = -e.s, F(e);
192
+ }, O.plus = O.add = function(e) {
193
+ var t, n, r, i, a, o, s, c, l, u, f = this, p = f.constructor;
192
194
  if (e = new p(e), !f.d || !e.d) return !f.s || !e.s ? e = new p(NaN) : f.d || (e = new p(e.d || f.s === e.s ? f : NaN)), e;
193
195
  if (f.s != e.s) return e.s = -e.s, f.minus(e);
194
- if (u = f.d, d = e.d, s = p.precision, c = p.rounding, !u[0] || !d[0]) return d[0] || (e = new p(f)), l ? N(e, s, c) : e;
195
- if (a = h(f.e / S), r = h(e.e / S), u = u.slice(), i = a - r, i) {
196
- for (i < 0 ? (n = u, i = -i, o = d.length) : (n = d, r = a, o = u.length), a = Math.ceil(s / S), o = a > o ? a + 1 : o + 1, i > o && (i = o, n.length = 1), n.reverse(); i--;) n.push(0);
196
+ if (l = f.d, u = e.d, s = p.precision, c = p.rounding, !l[0] || !u[0]) return u[0] || (e = new p(f)), d ? F(e, s, c) : e;
197
+ if (a = _(f.e / w), r = _(e.e / w), l = l.slice(), i = a - r, i) {
198
+ for (i < 0 ? (n = l, i = -i, o = u.length) : (n = u, r = a, o = l.length), a = Math.ceil(s / w), o = a > o ? a + 1 : o + 1, i > o && (i = o, n.length = 1), n.reverse(); i--;) n.push(0);
197
199
  n.reverse();
198
200
  }
199
- for (o = u.length, i = d.length, o - i < 0 && (i = o, n = d, d = u, u = n), t = 0; i;) t = (u[--i] = u[i] + d[i] + t) / x | 0, u[i] %= x;
200
- for (t && (u.unshift(t), ++r), o = u.length; u[--o] == 0;) u.pop();
201
- return e.d = u, e.e = F(u, r), l ? N(e, s, c) : e;
202
- }, E.precision = E.sd = function(e) {
201
+ for (o = l.length, i = u.length, o - i < 0 && (i = o, n = u, u = l, l = n), t = 0; i;) t = (l[--i] = l[i] + u[i] + t) / C | 0, l[i] %= C;
202
+ for (t && (l.unshift(t), ++r), o = l.length; l[--o] == 0;) l.pop();
203
+ return e.d = l, e.e = L(l, r), d ? F(e, s, c) : e;
204
+ }, O.precision = O.sd = function(e) {
203
205
  var t, n = this;
204
- if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(d + e);
205
- return n.d ? (t = R(n.d), e && n.e + 1 > t && (t = n.e + 1)) : t = NaN, t;
206
- }, E.round = function() {
206
+ if (e !== void 0 && e !== !!e && e !== 1 && e !== 0) throw Error(p + e);
207
+ return n.d ? (t = B(n.d), e && n.e + 1 > t && (t = n.e + 1)) : t = NaN, t;
208
+ }, O.round = function() {
207
209
  var e = this, t = e.constructor;
208
- return N(new t(e), e.e + 1, t.rounding);
209
- }, E.sine = E.sin = function() {
210
+ return F(new t(e), e.e + 1, t.rounding);
211
+ }, O.sine = O.sin = function() {
210
212
  var e, t, n = this, r = n.constructor;
211
- return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + Math.max(n.e, n.sd()) + S, r.rounding = 1, n = te(r, Y(r, n)), r.precision = e, r.rounding = t, N(c > 2 ? n.neg() : n, e, t, !0)) : new r(NaN);
212
- }, E.squareRoot = E.sqrt = function() {
213
- var e, t, n, r, i, a, o = this, s = o.d, c = o.e, u = o.s, d = o.constructor;
214
- if (u !== 1 || !s || !s[0]) return new d(!u || u < 0 && (!s || s[0]) ? NaN : s ? o : Infinity);
215
- for (l = !1, u = Math.sqrt(+o), u == 0 || u == Infinity ? (t = D(s), (t.length + c) % 2 == 0 && (t += "0"), u = Math.sqrt(t), c = h((c + 1) / 2) - (c < 0 || c % 2), u == Infinity ? t = "5e" + c : (t = u.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + c), r = new d(t)) : r = new d(u.toString()), n = (c = d.precision) + 3;;) if (a = r, r = a.plus(M(o, a, n + 2, 1)).times(.5), D(a.d).slice(0, n) === (t = D(r.d)).slice(0, n)) if (t = t.slice(n - 3, n + 1), t == "9999" || !i && t == "4999") {
216
- if (!i && (N(a, c + 1, 0), a.times(a).eq(o))) {
213
+ return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + Math.max(n.e, n.sd()) + w, r.rounding = 1, n = ne(r, X(r, n)), r.precision = e, r.rounding = t, F(u > 2 ? n.neg() : n, e, t, !0)) : new r(NaN);
214
+ }, O.squareRoot = O.sqrt = function() {
215
+ var e, t, n, r, i, a, o = this, s = o.d, c = o.e, l = o.s, u = o.constructor;
216
+ if (l !== 1 || !s || !s[0]) return new u(!l || l < 0 && (!s || s[0]) ? NaN : s ? o : Infinity);
217
+ for (d = !1, l = Math.sqrt(+o), l == 0 || l == Infinity ? (t = k(s), (t.length + c) % 2 == 0 && (t += "0"), l = Math.sqrt(t), c = _((c + 1) / 2) - (c < 0 || c % 2), l == Infinity ? t = "5e" + c : (t = l.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + c), r = new u(t)) : r = new u(l.toString()), n = (c = u.precision) + 3;;) if (a = r, r = a.plus(P(o, a, n + 2, 1)).times(.5), k(a.d).slice(0, n) === (t = k(r.d)).slice(0, n)) if (t = t.slice(n - 3, n + 1), t == "9999" || !i && t == "4999") {
218
+ if (!i && (F(a, c + 1, 0), a.times(a).eq(o))) {
217
219
  r = a;
218
220
  break;
219
221
  }
220
222
  n += 4, i = 1;
221
223
  } else {
222
- (!+t || !+t.slice(1) && t.charAt(0) == "5") && (N(r, c + 1, 1), e = !r.times(r).eq(o));
224
+ (!+t || !+t.slice(1) && t.charAt(0) == "5") && (F(r, c + 1, 1), e = !r.times(r).eq(o));
223
225
  break;
224
226
  }
225
- return l = !0, N(r, c, d.rounding, e);
226
- }, E.tangent = E.tan = function() {
227
+ return d = !0, F(r, c, u.rounding, e);
228
+ }, O.tangent = O.tan = function() {
227
229
  var e, t, n = this, r = n.constructor;
228
- return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 10, r.rounding = 1, n = n.sin(), n.s = 1, n = M(n, new r(1).minus(n.times(n)).sqrt(), e + 10, 0), r.precision = e, r.rounding = t, N(c == 2 || c == 4 ? n.neg() : n, e, t, !0)) : new r(NaN);
229
- }, E.times = E.mul = function(e) {
230
- var t, n, r, i, a, o, s, c, u, d = this, f = d.constructor, p = d.d, m = (e = new f(e)).d;
231
- if (e.s *= d.s, !p || !p[0] || !m || !m[0]) return new f(!e.s || p && !p[0] && !m || m && !m[0] && !p ? NaN : !p || !m ? e.s / 0 : e.s * 0);
232
- for (n = h(d.e / S) + h(e.e / S), c = p.length, u = m.length, c < u && (a = p, p = m, m = a, o = c, c = u, u = o), a = [], o = c + u, r = o; r--;) a.push(0);
233
- for (r = u; --r >= 0;) {
234
- for (t = 0, i = c + r; i > r;) s = a[i] + m[r] * p[i - r - 1] + t, a[i--] = s % x | 0, t = s / x | 0;
235
- a[i] = (a[i] + t) % x | 0;
230
+ return n.isFinite() ? n.isZero() ? new r(n) : (e = r.precision, t = r.rounding, r.precision = e + 10, r.rounding = 1, n = n.sin(), n.s = 1, n = P(n, new r(1).minus(n.times(n)).sqrt(), e + 10, 0), r.precision = e, r.rounding = t, F(u == 2 || u == 4 ? n.neg() : n, e, t, !0)) : new r(NaN);
231
+ }, O.times = O.mul = function(e) {
232
+ var t, n, r, i, a, o, s, c, l, u = this, f = u.constructor, p = u.d, m = (e = new f(e)).d;
233
+ if (e.s *= u.s, !p || !p[0] || !m || !m[0]) return new f(!e.s || p && !p[0] && !m || m && !m[0] && !p ? NaN : !p || !m ? e.s / 0 : e.s * 0);
234
+ for (n = _(u.e / w) + _(e.e / w), c = p.length, l = m.length, c < l && (a = p, p = m, m = a, o = c, c = l, l = o), a = [], o = c + l, r = o; r--;) a.push(0);
235
+ for (r = l; --r >= 0;) {
236
+ for (t = 0, i = c + r; i > r;) s = a[i] + m[r] * p[i - r - 1] + t, a[i--] = s % C | 0, t = s / C | 0;
237
+ a[i] = (a[i] + t) % C | 0;
236
238
  }
237
239
  for (; !a[--o];) a.pop();
238
- return t ? ++n : a.shift(), e.d = a, e.e = F(a, n), l ? N(e, f.precision, f.rounding) : e;
239
- }, E.toBinary = function(e, t) {
240
- return X(this, 2, e, t);
241
- }, E.toDecimalPlaces = E.toDP = function(e, n) {
242
- var r = this, i = r.constructor;
243
- return r = new i(r), e === void 0 ? r : (O(e, 0, t), n === void 0 ? n = i.rounding : O(n, 0, 8), N(r, e + r.e + 1, n));
244
- }, E.toExponential = function(e, n) {
245
- var r, i = this, a = i.constructor;
246
- return e === void 0 ? r = P(i, !0) : (O(e, 0, t), n === void 0 ? n = a.rounding : O(n, 0, 8), i = N(new a(i), e + 1, n), r = P(i, !0, e + 1)), i.isNeg() && !i.isZero() ? "-" + r : r;
247
- }, E.toFixed = function(e, n) {
248
- var r, i, a = this, o = a.constructor;
249
- return e === void 0 ? r = P(a) : (O(e, 0, t), n === void 0 ? n = o.rounding : O(n, 0, 8), i = N(new o(a), e + a.e + 1, n), r = P(i, !1, e + i.e + 1)), a.isNeg() && !a.isZero() ? "-" + r : r;
250
- }, E.toFraction = function(e) {
251
- var t, n, r, i, a, o, s, c, u, f, p, m, h = this, _ = h.d, v = h.constructor;
252
- if (!_) return new v(h);
253
- if (u = n = new v(1), r = c = new v(0), t = new v(r), a = t.e = R(_) - h.e - 1, o = a % S, t.d[0] = g(10, o < 0 ? S + o : o), e == null) e = a > 0 ? t : u;
240
+ return t ? ++n : a.shift(), e.d = a, e.e = L(a, n), d ? F(e, f.precision, f.rounding) : e;
241
+ }, O.toBinary = function(e, t) {
242
+ return Z(this, 2, e, t);
243
+ }, O.toDecimalPlaces = O.toDP = function(e, t) {
244
+ var n = this, i = n.constructor;
245
+ return n = new i(n), e === void 0 ? n : (A(e, 0, r), t === void 0 ? t = i.rounding : A(t, 0, 8), F(n, e + n.e + 1, t));
246
+ }, O.toExponential = function(e, t) {
247
+ var n, i = this, a = i.constructor;
248
+ return e === void 0 ? n = I(i, !0) : (A(e, 0, r), t === void 0 ? t = a.rounding : A(t, 0, 8), i = F(new a(i), e + 1, t), n = I(i, !0, e + 1)), i.isNeg() && !i.isZero() ? "-" + n : n;
249
+ }, O.toFixed = function(e, t) {
250
+ var n, i, a = this, o = a.constructor;
251
+ return e === void 0 ? n = I(a) : (A(e, 0, r), t === void 0 ? t = o.rounding : A(t, 0, 8), i = F(new o(a), e + a.e + 1, t), n = I(i, !1, e + i.e + 1)), a.isNeg() && !a.isZero() ? "-" + n : n;
252
+ }, O.toFraction = function(e) {
253
+ var t, n, r, i, a, o, s, c, l, u, f, m, h = this, g = h.d, _ = h.constructor;
254
+ if (!g) return new _(h);
255
+ if (l = n = new _(1), r = c = new _(0), t = new _(r), a = t.e = B(g) - h.e - 1, o = a % w, t.d[0] = v(10, o < 0 ? w + o : o), e == null) e = a > 0 ? t : l;
254
256
  else {
255
- if (s = new v(e), !s.isInt() || s.lt(u)) throw Error(d + s);
256
- e = s.gt(t) ? a > 0 ? t : u : s;
257
+ if (s = new _(e), !s.isInt() || s.lt(l)) throw Error(p + s);
258
+ e = s.gt(t) ? a > 0 ? t : l : s;
257
259
  }
258
- for (l = !1, s = new v(D(_)), f = v.precision, v.precision = a = _.length * S * 2; p = M(s, t, 0, 1, 1), i = n.plus(p.times(r)), i.cmp(e) != 1;) n = r, r = i, i = u, u = c.plus(p.times(i)), c = i, i = t, t = s.minus(p.times(i)), s = i;
259
- return i = M(e.minus(n), r, 0, 1, 1), c = c.plus(i.times(u)), n = n.plus(i.times(r)), c.s = u.s = h.s, m = M(u, r, a, 1).minus(h).abs().cmp(M(c, n, a, 1).minus(h).abs()) < 1 ? [u, r] : [c, n], v.precision = f, l = !0, m;
260
- }, E.toHexadecimal = E.toHex = function(e, t) {
261
- return X(this, 16, e, t);
262
- }, E.toNearest = function(e, t) {
260
+ for (d = !1, s = new _(k(g)), u = _.precision, _.precision = a = g.length * w * 2; f = P(s, t, 0, 1, 1), i = n.plus(f.times(r)), i.cmp(e) != 1;) n = r, r = i, i = l, l = c.plus(f.times(i)), c = i, i = t, t = s.minus(f.times(i)), s = i;
261
+ return i = P(e.minus(n), r, 0, 1, 1), c = c.plus(i.times(l)), n = n.plus(i.times(r)), c.s = l.s = h.s, m = P(l, r, a, 1).minus(h).abs().cmp(P(c, n, a, 1).minus(h).abs()) < 1 ? [l, r] : [c, n], _.precision = u, d = !0, m;
262
+ }, O.toHexadecimal = O.toHex = function(e, t) {
263
+ return Z(this, 16, e, t);
264
+ }, O.toNearest = function(e, t) {
263
265
  var n = this, r = n.constructor;
264
266
  if (n = new r(n), e == null) {
265
267
  if (!n.d) return n;
266
268
  e = new r(1), t = r.rounding;
267
269
  } else {
268
- if (e = new r(e), t === void 0 ? t = r.rounding : O(t, 0, 8), !n.d) return e.s ? n : e;
270
+ if (e = new r(e), t === void 0 ? t = r.rounding : A(t, 0, 8), !n.d) return e.s ? n : e;
269
271
  if (!e.d) return e.s &&= n.s, e;
270
272
  }
271
- return e.d[0] ? (l = !1, n = M(n, e, 0, t, 1).times(e), l = !0, N(n)) : (e.s = n.s, n = e), n;
272
- }, E.toNumber = function() {
273
+ return e.d[0] ? (d = !1, n = P(n, e, 0, t, 1).times(e), d = !0, F(n)) : (e.s = n.s, n = e), n;
274
+ }, O.toNumber = function() {
273
275
  return +this;
274
- }, E.toOctal = function(e, t) {
275
- return X(this, 8, e, t);
276
- }, E.toPower = E.pow = function(e) {
277
- var t, n, r, i, a, o, s = this, c = s.constructor, u = +(e = new c(e));
278
- if (!s.d || !e.d || !s.d[0] || !e.d[0]) return new c(g(+s, u));
276
+ }, O.toOctal = function(e, t) {
277
+ return Z(this, 8, e, t);
278
+ }, O.toPower = O.pow = function(e) {
279
+ var t, n, r, i, a, o, s = this, c = s.constructor, l = +(e = new c(e));
280
+ if (!s.d || !e.d || !s.d[0] || !e.d[0]) return new c(v(+s, l));
279
281
  if (s = new c(s), s.eq(1)) return s;
280
- if (r = c.precision, a = c.rounding, e.eq(1)) return N(s, r, a);
281
- if (t = h(e.e / S), t >= e.d.length - 1 && (n = u < 0 ? -u : u) <= C) return i = B(c, s, n, r), e.s < 0 ? new c(1).div(i) : N(i, r, a);
282
+ if (r = c.precision, a = c.rounding, e.eq(1)) return F(s, r, a);
283
+ if (t = _(e.e / w), t >= e.d.length - 1 && (n = l < 0 ? -l : l) <= T) return i = H(c, s, n, r), e.s < 0 ? new c(1).div(i) : F(i, r, a);
282
284
  if (o = s.s, o < 0) {
283
285
  if (t < e.d.length - 1) return new c(NaN);
284
286
  if (e.d[t] & 1 || (o = 1), s.e == 0 && s.d[0] == 1 && s.d.length == 1) return s.s = o, s;
285
287
  }
286
- return n = g(+s, u), t = n == 0 || !isFinite(n) ? h(u * (Math.log("0." + D(s.d)) / Math.LN10 + s.e + 1)) : new c(n + "").e, t > c.maxE + 1 || t < c.minE - 1 ? new c(t > 0 ? o / 0 : 0) : (l = !1, c.rounding = s.s = 1, n = Math.min(12, (t + "").length), i = U(e.times(W(s, r + n)), r), i.d && (i = N(i, r + 5, 1), k(i.d, r, a) && (t = r + 10, i = N(U(e.times(W(s, t + n)), t), t + 5, 1), +D(i.d).slice(r + 1, r + 15) + 1 == 0x5af3107a4000 && (i = N(i, r + 1, 0)))), i.s = o, l = !0, c.rounding = a, N(i, r, a));
287
- }, E.toPrecision = function(e, n) {
288
- var r, i = this, a = i.constructor;
289
- return e === void 0 ? r = P(i, i.e <= a.toExpNeg || i.e >= a.toExpPos) : (O(e, 1, t), n === void 0 ? n = a.rounding : O(n, 0, 8), i = N(new a(i), e, n), r = P(i, e <= i.e || i.e <= a.toExpNeg, e)), i.isNeg() && !i.isZero() ? "-" + r : r;
290
- }, E.toSignificantDigits = E.toSD = function(e, n) {
291
- var r = this, i = r.constructor;
292
- return e === void 0 ? (e = i.precision, n = i.rounding) : (O(e, 1, t), n === void 0 ? n = i.rounding : O(n, 0, 8)), N(new i(r), e, n);
293
- }, E.toString = function() {
294
- var e = this, t = e.constructor, n = P(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
288
+ return n = v(+s, l), t = n == 0 || !isFinite(n) ? _(l * (Math.log("0." + k(s.d)) / Math.LN10 + s.e + 1)) : new c(n + "").e, t > c.maxE + 1 || t < c.minE - 1 ? new c(t > 0 ? o / 0 : 0) : (d = !1, c.rounding = s.s = 1, n = Math.min(12, (t + "").length), i = W(e.times(G(s, r + n)), r), i.d && (i = F(i, r + 5, 1), j(i.d, r, a) && (t = r + 10, i = F(W(e.times(G(s, t + n)), t), t + 5, 1), +k(i.d).slice(r + 1, r + 15) + 1 == 0x5af3107a4000 && (i = F(i, r + 1, 0)))), i.s = o, d = !0, c.rounding = a, F(i, r, a));
289
+ }, O.toPrecision = function(e, t) {
290
+ var n, i = this, a = i.constructor;
291
+ return e === void 0 ? n = I(i, i.e <= a.toExpNeg || i.e >= a.toExpPos) : (A(e, 1, r), t === void 0 ? t = a.rounding : A(t, 0, 8), i = F(new a(i), e, t), n = I(i, e <= i.e || i.e <= a.toExpNeg, e)), i.isNeg() && !i.isZero() ? "-" + n : n;
292
+ }, O.toSignificantDigits = O.toSD = function(e, t) {
293
+ var n = this, i = n.constructor;
294
+ return e === void 0 ? (e = i.precision, t = i.rounding) : (A(e, 1, r), t === void 0 ? t = i.rounding : A(t, 0, 8)), F(new i(n), e, t);
295
+ }, O.toString = function() {
296
+ var e = this, t = e.constructor, n = I(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
295
297
  return e.isNeg() && !e.isZero() ? "-" + n : n;
296
- }, E.truncated = E.trunc = function() {
297
- return N(new this.constructor(this), this.e + 1, 1);
298
- }, E.valueOf = E.toJSON = function() {
299
- var e = this, t = e.constructor, n = P(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
298
+ }, O.truncated = O.trunc = function() {
299
+ return F(new this.constructor(this), this.e + 1, 1);
300
+ }, O.valueOf = O.toJSON = function() {
301
+ var e = this, t = e.constructor, n = I(e, e.e <= t.toExpNeg || e.e >= t.toExpPos);
300
302
  return e.isNeg() ? "-" + n : n;
301
303
  };
302
- function D(e) {
304
+ function k(e) {
303
305
  var t, n, r, i = e.length - 1, a = "", o = e[0];
304
306
  if (i > 0) {
305
- for (a += o, t = 1; t < i; t++) r = e[t] + "", n = S - r.length, n && (a += z(n)), a += r;
306
- o = e[t], r = o + "", n = S - r.length, n && (a += z(n));
307
+ for (a += o, t = 1; t < i; t++) r = e[t] + "", n = w - r.length, n && (a += V(n)), a += r;
308
+ o = e[t], r = o + "", n = w - r.length, n && (a += V(n));
307
309
  } else if (o === 0) return "0";
308
310
  for (; o % 10 == 0;) o /= 10;
309
311
  return a + o;
310
312
  }
311
- function O(e, t, n) {
312
- if (e !== ~~e || e < t || e > n) throw Error(d + e);
313
+ function A(e, t, n) {
314
+ if (e !== ~~e || e < t || e > n) throw Error(p + e);
313
315
  }
314
- function k(e, t, n, r) {
316
+ function j(e, t, n, r) {
315
317
  var i, a, o, s;
316
318
  for (a = e[0]; a >= 10; a /= 10) --t;
317
- return --t < 0 ? (t += S, i = 0) : (i = Math.ceil((t + 1) / S), t %= S), a = g(10, S - t), s = e[i] % a | 0, r == null ? t < 3 ? (t == 0 ? s = s / 100 | 0 : t == 1 && (s = s / 10 | 0), o = n < 4 && s == 99999 || n > 3 && s == 49999 || s == 5e4 || s == 0) : o = (n < 4 && s + 1 == a || n > 3 && s + 1 == a / 2) && (e[i + 1] / a / 100 | 0) == g(10, t - 2) - 1 || (s == a / 2 || s == 0) && (e[i + 1] / a / 100 | 0) == 0 : t < 4 ? (t == 0 ? s = s / 1e3 | 0 : t == 1 ? s = s / 100 | 0 : t == 2 && (s = s / 10 | 0), o = (r || n < 4) && s == 9999 || !r && n > 3 && s == 4999) : o = ((r || n < 4) && s + 1 == a || !r && n > 3 && s + 1 == a / 2) && (e[i + 1] / a / 1e3 | 0) == g(10, t - 3) - 1, o;
319
+ return --t < 0 ? (t += w, i = 0) : (i = Math.ceil((t + 1) / w), t %= w), a = v(10, w - t), s = e[i] % a | 0, r == null ? t < 3 ? (t == 0 ? s = s / 100 | 0 : t == 1 && (s = s / 10 | 0), o = n < 4 && s == 99999 || n > 3 && s == 49999 || s == 5e4 || s == 0) : o = (n < 4 && s + 1 == a || n > 3 && s + 1 == a / 2) && (e[i + 1] / a / 100 | 0) == v(10, t - 2) - 1 || (s == a / 2 || s == 0) && (e[i + 1] / a / 100 | 0) == 0 : t < 4 ? (t == 0 ? s = s / 1e3 | 0 : t == 1 ? s = s / 100 | 0 : t == 2 && (s = s / 10 | 0), o = (r || n < 4) && s == 9999 || !r && n > 3 && s == 4999) : o = ((r || n < 4) && s + 1 == a || !r && n > 3 && s + 1 == a / 2) && (e[i + 1] / a / 1e3 | 0) == v(10, t - 3) - 1, o;
318
320
  }
319
- function A(e, t, r) {
320
- for (var i, a = [0], o, s = 0, c = e.length; s < c;) {
321
+ function M(e, t, n) {
322
+ for (var r, a = [0], o, s = 0, c = e.length; s < c;) {
321
323
  for (o = a.length; o--;) a[o] *= t;
322
- for (a[0] += n.indexOf(e.charAt(s++)), i = 0; i < a.length; i++) a[i] > r - 1 && (a[i + 1] === void 0 && (a[i + 1] = 0), a[i + 1] += a[i] / r | 0, a[i] %= r);
324
+ for (a[0] += i.indexOf(e.charAt(s++)), r = 0; r < a.length; r++) a[r] > n - 1 && (a[r + 1] === void 0 && (a[r + 1] = 0), a[r + 1] += a[r] / n | 0, a[r] %= n);
323
325
  }
324
326
  return a.reverse();
325
327
  }
326
- function j(e, t) {
328
+ function N(e, t) {
327
329
  var n, r, i;
328
330
  if (t.isZero()) return t;
329
- r = t.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 / J(4, n)).toString()) : (n = 16, i = "2.3283064365386962890625e-10"), e.precision += n, t = q(e, 1, t.times(i), new e(1));
331
+ r = t.d.length, r < 32 ? (n = Math.ceil(r / 3), i = (1 / Y(4, n)).toString()) : (n = 16, i = "2.3283064365386962890625e-10"), e.precision += n, t = J(e, 1, t.times(i), new e(1));
330
332
  for (var a = n; a--;) {
331
333
  var o = t.times(t);
332
334
  t = o.times(o).minus(o).times(8).plus(1);
333
335
  }
334
336
  return e.precision -= n, t;
335
337
  }
336
- var M = (function() {
338
+ var P = (function() {
337
339
  function e(e, t, n) {
338
340
  var r, i = 0, a = e.length;
339
341
  for (e = e.slice(); a--;) r = e[a] * t + i, e[a] = r % n | 0, i = r / n | 0;
@@ -352,106 +354,106 @@ var M = (function() {
352
354
  for (var i = 0; n--;) e[n] -= i, i = +(e[n] < t[n]), e[n] = i * r + e[n] - t[n];
353
355
  for (; !e[0] && e.length > 1;) e.shift();
354
356
  }
355
- return function(r, i, a, o, c, l) {
356
- var u, d, f, p, m, g, _, v, y, b, C, w, T, E, D, O, k, A, j, M, P = r.constructor, F = r.s == i.s ? 1 : -1, I = r.d, L = i.d;
357
- if (!I || !I[0] || !L || !L[0]) return new P(!r.s || !i.s || (I ? L && I[0] == L[0] : !L) ? NaN : I && I[0] == 0 || !L ? F * 0 : F / 0);
358
- for (l ? (m = 1, d = r.e - i.e) : (l = x, m = S, d = h(r.e / m) - h(i.e / m)), j = L.length, k = I.length, y = new P(F), b = y.d = [], f = 0; L[f] == (I[f] || 0); f++);
359
- if (L[f] > (I[f] || 0) && d--, a == null ? (E = a = P.precision, o = P.rounding) : E = c ? a + (r.e - i.e) + 1 : a, E < 0) b.push(1), g = !0;
357
+ return function(r, i, a, o, s, c) {
358
+ var u, d, f, p, m, h, g, v, y, b, x, S, T, E, D, O, k, A, j, M, N = r.constructor, P = r.s == i.s ? 1 : -1, I = r.d, L = i.d;
359
+ if (!I || !I[0] || !L || !L[0]) return new N(!r.s || !i.s || (I ? L && I[0] == L[0] : !L) ? NaN : I && I[0] == 0 || !L ? P * 0 : P / 0);
360
+ for (c ? (m = 1, d = r.e - i.e) : (c = C, m = w, d = _(r.e / m) - _(i.e / m)), j = L.length, k = I.length, y = new N(P), b = y.d = [], f = 0; L[f] == (I[f] || 0); f++);
361
+ if (L[f] > (I[f] || 0) && d--, a == null ? (E = a = N.precision, o = N.rounding) : E = s ? a + (r.e - i.e) + 1 : a, E < 0) b.push(1), h = !0;
360
362
  else {
361
363
  if (E = E / m + 2 | 0, f = 0, j == 1) {
362
- for (p = 0, L = L[0], E++; (f < k || p) && E--; f++) D = p * l + (I[f] || 0), b[f] = D / L | 0, p = D % L | 0;
363
- g = p || f < k;
364
+ for (p = 0, L = L[0], E++; (f < k || p) && E--; f++) D = p * c + (I[f] || 0), b[f] = D / L | 0, p = D % L | 0;
365
+ h = p || f < k;
364
366
  } else {
365
- for (p = l / (L[0] + 1) | 0, p > 1 && (L = e(L, p, l), I = e(I, p, l), j = L.length, k = I.length), O = j, C = I.slice(0, j), w = C.length; w < j;) C[w++] = 0;
366
- M = L.slice(), M.unshift(0), A = L[0], L[1] >= l / 2 && ++A;
367
+ for (p = c / (L[0] + 1) | 0, p > 1 && (L = e(L, p, c), I = e(I, p, c), j = L.length, k = I.length), O = j, x = I.slice(0, j), S = x.length; S < j;) x[S++] = 0;
368
+ M = L.slice(), M.unshift(0), A = L[0], L[1] >= c / 2 && ++A;
367
369
  do
368
- p = 0, u = t(L, C, j, w), u < 0 ? (T = C[0], j != w && (T = T * l + (C[1] || 0)), p = T / A | 0, p > 1 ? (p >= l && (p = l - 1), _ = e(L, p, l), v = _.length, w = C.length, u = t(_, C, v, w), u == 1 && (p--, n(_, j < v ? M : L, v, l))) : (p == 0 && (u = p = 1), _ = L.slice()), v = _.length, v < w && _.unshift(0), n(C, _, w, l), u == -1 && (w = C.length, u = t(L, C, j, w), u < 1 && (p++, n(C, j < w ? M : L, w, l))), w = C.length) : u === 0 && (p++, C = [0]), b[f++] = p, u && C[0] ? C[w++] = I[O] || 0 : (C = [I[O]], w = 1);
369
- while ((O++ < k || C[0] !== void 0) && E--);
370
- g = C[0] !== void 0;
370
+ p = 0, u = t(L, x, j, S), u < 0 ? (T = x[0], j != S && (T = T * c + (x[1] || 0)), p = T / A | 0, p > 1 ? (p >= c && (p = c - 1), g = e(L, p, c), v = g.length, S = x.length, u = t(g, x, v, S), u == 1 && (p--, n(g, j < v ? M : L, v, c))) : (p == 0 && (u = p = 1), g = L.slice()), v = g.length, v < S && g.unshift(0), n(x, g, S, c), u == -1 && (S = x.length, u = t(L, x, j, S), u < 1 && (p++, n(x, j < S ? M : L, S, c))), S = x.length) : u === 0 && (p++, x = [0]), b[f++] = p, u && x[0] ? x[S++] = I[O] || 0 : (x = [I[O]], S = 1);
371
+ while ((O++ < k || x[0] !== void 0) && E--);
372
+ h = x[0] !== void 0;
371
373
  }
372
374
  b[0] || b.shift();
373
375
  }
374
- if (m == 1) y.e = d, s = g;
376
+ if (m == 1) y.e = d, l = h;
375
377
  else {
376
378
  for (f = 1, p = b[0]; p >= 10; p /= 10) f++;
377
- y.e = f + d * m - 1, N(y, c ? a + y.e + 1 : a, o, g);
379
+ y.e = f + d * m - 1, F(y, s ? a + y.e + 1 : a, o, h);
378
380
  }
379
381
  return y;
380
382
  };
381
383
  })();
382
- function N(e, t, n, r) {
383
- var i, a, o, s, c, u, d, f, p, m = e.constructor;
384
+ function F(e, t, n, r) {
385
+ var i, a, o, s, c, l, u, f, p, m = e.constructor;
384
386
  out: if (t != null) {
385
387
  if (f = e.d, !f) return e;
386
388
  for (i = 1, s = f[0]; s >= 10; s /= 10) i++;
387
- if (a = t - i, a < 0) a += S, o = t, d = f[p = 0], c = d / g(10, i - o - 1) % 10 | 0;
388
- else if (p = Math.ceil((a + 1) / S), s = f.length, p >= s) if (r) {
389
+ if (a = t - i, a < 0) a += w, o = t, u = f[p = 0], c = u / v(10, i - o - 1) % 10 | 0;
390
+ else if (p = Math.ceil((a + 1) / w), s = f.length, p >= s) if (r) {
389
391
  for (; s++ <= p;) f.push(0);
390
- d = c = 0, i = 1, a %= S, o = a - S + 1;
392
+ u = c = 0, i = 1, a %= w, o = a - w + 1;
391
393
  } else break out;
392
394
  else {
393
- for (d = s = f[p], i = 1; s >= 10; s /= 10) i++;
394
- a %= S, o = a - S + i, c = o < 0 ? 0 : d / g(10, i - o - 1) % 10 | 0;
395
+ for (u = s = f[p], i = 1; s >= 10; s /= 10) i++;
396
+ a %= w, o = a - w + i, c = o < 0 ? 0 : u / v(10, i - o - 1) % 10 | 0;
395
397
  }
396
- if (r = r || t < 0 || f[p + 1] !== void 0 || (o < 0 ? d : d % g(10, i - o - 1)), u = n < 4 ? (c || r) && (n == 0 || n == (e.s < 0 ? 3 : 2)) : c > 5 || c == 5 && (n == 4 || r || n == 6 && (a > 0 ? o > 0 ? d / g(10, i - o) : 0 : f[p - 1]) % 10 & 1 || n == (e.s < 0 ? 8 : 7)), t < 1 || !f[0]) return f.length = 0, u ? (t -= e.e + 1, f[0] = g(10, (S - t % S) % S), e.e = -t || 0) : f[0] = e.e = 0, e;
397
- if (a == 0 ? (f.length = p, s = 1, p--) : (f.length = p + 1, s = g(10, S - a), f[p] = o > 0 ? (d / g(10, i - o) % g(10, o) | 0) * s : 0), u) for (;;) if (p == 0) {
398
+ if (r = r || t < 0 || f[p + 1] !== void 0 || (o < 0 ? u : u % v(10, i - o - 1)), l = n < 4 ? (c || r) && (n == 0 || n == (e.s < 0 ? 3 : 2)) : c > 5 || c == 5 && (n == 4 || r || n == 6 && (a > 0 ? o > 0 ? u / v(10, i - o) : 0 : f[p - 1]) % 10 & 1 || n == (e.s < 0 ? 8 : 7)), t < 1 || !f[0]) return f.length = 0, l ? (t -= e.e + 1, f[0] = v(10, (w - t % w) % w), e.e = -t || 0) : f[0] = e.e = 0, e;
399
+ if (a == 0 ? (f.length = p, s = 1, p--) : (f.length = p + 1, s = v(10, w - a), f[p] = o > 0 ? (u / v(10, i - o) % v(10, o) | 0) * s : 0), l) for (;;) if (p == 0) {
398
400
  for (a = 1, o = f[0]; o >= 10; o /= 10) a++;
399
401
  for (o = f[0] += s, s = 1; o >= 10; o /= 10) s++;
400
- a != s && (e.e++, f[0] == x && (f[0] = 1));
402
+ a != s && (e.e++, f[0] == C && (f[0] = 1));
401
403
  break;
402
404
  } else {
403
- if (f[p] += s, f[p] != x) break;
405
+ if (f[p] += s, f[p] != C) break;
404
406
  f[p--] = 0, s = 1;
405
407
  }
406
408
  for (a = f.length; f[--a] === 0;) f.pop();
407
409
  }
408
- return l && (e.e > m.maxE ? (e.d = null, e.e = NaN) : e.e < m.minE && (e.e = 0, e.d = [0])), e;
410
+ return d && (e.e > m.maxE ? (e.d = null, e.e = NaN) : e.e < m.minE && (e.e = 0, e.d = [0])), e;
409
411
  }
410
- function P(e, t, n) {
411
- if (!e.isFinite()) return G(e);
412
- var r, i = e.e, a = D(e.d), o = a.length;
413
- return t ? (n && (r = n - o) > 0 ? a = a.charAt(0) + "." + a.slice(1) + z(r) : o > 1 && (a = a.charAt(0) + "." + a.slice(1)), a = a + (e.e < 0 ? "e" : "e+") + e.e) : i < 0 ? (a = "0." + z(-i - 1) + a, n && (r = n - o) > 0 && (a += z(r))) : i >= o ? (a += z(i + 1 - o), n && (r = n - i - 1) > 0 && (a = a + "." + z(r))) : ((r = i + 1) < o && (a = a.slice(0, r) + "." + a.slice(r)), n && (r = n - o) > 0 && (i + 1 === o && (a += "."), a += z(r))), a;
412
+ function I(e, t, n) {
413
+ if (!e.isFinite()) return K(e);
414
+ var r, i = e.e, a = k(e.d), o = a.length;
415
+ return t ? (n && (r = n - o) > 0 ? a = a.charAt(0) + "." + a.slice(1) + V(r) : o > 1 && (a = a.charAt(0) + "." + a.slice(1)), a = a + (e.e < 0 ? "e" : "e+") + e.e) : i < 0 ? (a = "0." + V(-i - 1) + a, n && (r = n - o) > 0 && (a += V(r))) : i >= o ? (a += V(i + 1 - o), n && (r = n - i - 1) > 0 && (a = a + "." + V(r))) : ((r = i + 1) < o && (a = a.slice(0, r) + "." + a.slice(r)), n && (r = n - o) > 0 && (i + 1 === o && (a += "."), a += V(r))), a;
414
416
  }
415
- function F(e, t) {
417
+ function L(e, t) {
416
418
  var n = e[0];
417
- for (t *= S; n >= 10; n /= 10) t++;
419
+ for (t *= w; n >= 10; n /= 10) t++;
418
420
  return t;
419
421
  }
420
- function I(e, t, n) {
421
- if (t > w) throw l = !0, n && (e.precision = n), Error(f);
422
- return N(new e(r), t, 1, !0);
422
+ function R(e, t, n) {
423
+ if (t > E) throw d = !0, n && (e.precision = n), Error(m);
424
+ return F(new e(a), t, 1, !0);
423
425
  }
424
- function L(e, t, n) {
425
- if (t > T) throw Error(f);
426
- return N(new e(i), t, n, !0);
426
+ function z(e, t, n) {
427
+ if (t > D) throw Error(m);
428
+ return F(new e(o), t, n, !0);
427
429
  }
428
- function R(e) {
429
- var t = e.length - 1, n = t * S + 1;
430
+ function B(e) {
431
+ var t = e.length - 1, n = t * w + 1;
430
432
  if (t = e[t], t) {
431
433
  for (; t % 10 == 0; t /= 10) n--;
432
434
  for (t = e[0]; t >= 10; t /= 10) n++;
433
435
  }
434
436
  return n;
435
437
  }
436
- function z(e) {
438
+ function V(e) {
437
439
  for (var t = ""; e--;) t += "0";
438
440
  return t;
439
441
  }
440
- function B(e, t, n, r) {
441
- var i, a = new e(1), o = Math.ceil(r / S + 4);
442
- for (l = !1;;) {
443
- if (n % 2 && (a = a.times(t), Z(a.d, o) && (i = !0)), n = h(n / 2), n === 0) {
442
+ function H(e, t, n, r) {
443
+ var i, a = new e(1), o = Math.ceil(r / w + 4);
444
+ for (d = !1;;) {
445
+ if (n % 2 && (a = a.times(t), Q(a.d, o) && (i = !0)), n = _(n / 2), n === 0) {
444
446
  n = a.d.length - 1, i && a.d[n] === 0 && ++a.d[n];
445
447
  break;
446
448
  }
447
- t = t.times(t), Z(t.d, o);
449
+ t = t.times(t), Q(t.d, o);
448
450
  }
449
- return l = !0, a;
451
+ return d = !0, a;
450
452
  }
451
- function V(e) {
453
+ function ee(e) {
452
454
  return e.d[e.d.length - 1] & 1;
453
455
  }
454
- function H(e, t, n) {
456
+ function U(e, t, n) {
455
457
  for (var r, i, a = new e(t[0]), o = 0; ++o < t.length;) {
456
458
  if (i = new e(t[o]), !i.s) {
457
459
  a = i;
@@ -461,232 +463,232 @@ function H(e, t, n) {
461
463
  }
462
464
  return a;
463
465
  }
464
- function U(e, t) {
465
- var n, r, i, a, o, s, c, u = 0, d = 0, f = 0, p = e.constructor, m = p.rounding, h = p.precision;
466
+ function W(e, t) {
467
+ var n, r, i, a, o, s, c, l = 0, u = 0, f = 0, p = e.constructor, m = p.rounding, h = p.precision;
466
468
  if (!e.d || !e.d[0] || e.e > 17) return new p(e.d ? e.d[0] ? e.s < 0 ? 0 : Infinity : 1 : e.s ? e.s < 0 ? 0 : e : NaN);
467
- for (t == null ? (l = !1, c = h) : c = t, s = new p(.03125); e.e > -2;) e = e.times(s), f += 5;
468
- for (r = Math.log(g(2, f)) / Math.LN10 * 2 + 5 | 0, c += r, n = a = o = new p(1), p.precision = c;;) {
469
- if (a = N(a.times(e), c, 1), n = n.times(++d), s = o.plus(M(a, n, c, 1)), D(s.d).slice(0, c) === D(o.d).slice(0, c)) {
470
- for (i = f; i--;) o = N(o.times(o), c, 1);
471
- if (t == null) if (u < 3 && k(o.d, c - r, m, u)) p.precision = c += 10, n = a = s = new p(1), d = 0, u++;
472
- else return N(o, p.precision = h, m, l = !0);
469
+ for (t == null ? (d = !1, c = h) : c = t, s = new p(.03125); e.e > -2;) e = e.times(s), f += 5;
470
+ for (r = Math.log(v(2, f)) / Math.LN10 * 2 + 5 | 0, c += r, n = a = o = new p(1), p.precision = c;;) {
471
+ if (a = F(a.times(e), c, 1), n = n.times(++u), s = o.plus(P(a, n, c, 1)), k(s.d).slice(0, c) === k(o.d).slice(0, c)) {
472
+ for (i = f; i--;) o = F(o.times(o), c, 1);
473
+ if (t == null) if (l < 3 && j(o.d, c - r, m, l)) p.precision = c += 10, n = a = s = new p(1), u = 0, l++;
474
+ else return F(o, p.precision = h, m, d = !0);
473
475
  else return p.precision = h, o;
474
476
  }
475
477
  o = s;
476
478
  }
477
479
  }
478
- function W(e, t) {
479
- var n, r, i, a, o, s, c, u, d, f, p, m = 1, h = 10, g = e, _ = g.d, v = g.constructor, y = v.rounding, b = v.precision;
480
+ function G(e, t) {
481
+ var n, r, i, a, o, s, c, l, u, f, p, m = 1, h = 10, g = e, _ = g.d, v = g.constructor, y = v.rounding, b = v.precision;
480
482
  if (g.s < 0 || !_ || !_[0] || !g.e && _[0] == 1 && _.length == 1) return new v(_ && !_[0] ? -Infinity : g.s == 1 ? _ ? 0 : g : NaN);
481
- if (t == null ? (l = !1, d = b) : d = t, v.precision = d += h, n = D(_), r = n.charAt(0), Math.abs(a = g.e) < 0x5543df729c000) {
482
- for (; r < 7 && r != 1 || r == 1 && n.charAt(1) > 3;) g = g.times(e), n = D(g.d), r = n.charAt(0), m++;
483
+ if (t == null ? (d = !1, u = b) : u = t, v.precision = u += h, n = k(_), r = n.charAt(0), Math.abs(a = g.e) < 0x5543df729c000) {
484
+ for (; r < 7 && r != 1 || r == 1 && n.charAt(1) > 3;) g = g.times(e), n = k(g.d), r = n.charAt(0), m++;
483
485
  a = g.e, r > 1 ? (g = new v("0." + n), a++) : g = new v(r + "." + n.slice(1));
484
- } else return u = I(v, d + 2, b).times(a + ""), g = W(new v(r + "." + n.slice(1)), d - h).plus(u), v.precision = b, t == null ? N(g, b, y, l = !0) : g;
485
- for (f = g, c = o = g = M(g.minus(1), g.plus(1), d, 1), p = N(g.times(g), d, 1), i = 3;;) {
486
- if (o = N(o.times(p), d, 1), u = c.plus(M(o, new v(i), d, 1)), D(u.d).slice(0, d) === D(c.d).slice(0, d)) if (c = c.times(2), a !== 0 && (c = c.plus(I(v, d + 2, b).times(a + ""))), c = M(c, new v(m), d, 1), t == null) if (k(c.d, d - h, y, s)) v.precision = d += h, u = o = g = M(f.minus(1), f.plus(1), d, 1), p = N(g.times(g), d, 1), i = s = 1;
487
- else return N(c, v.precision = b, y, l = !0);
486
+ } else return l = R(v, u + 2, b).times(a + ""), g = G(new v(r + "." + n.slice(1)), u - h).plus(l), v.precision = b, t == null ? F(g, b, y, d = !0) : g;
487
+ for (f = g, c = o = g = P(g.minus(1), g.plus(1), u, 1), p = F(g.times(g), u, 1), i = 3;;) {
488
+ if (o = F(o.times(p), u, 1), l = c.plus(P(o, new v(i), u, 1)), k(l.d).slice(0, u) === k(c.d).slice(0, u)) if (c = c.times(2), a !== 0 && (c = c.plus(R(v, u + 2, b).times(a + ""))), c = P(c, new v(m), u, 1), t == null) if (j(c.d, u - h, y, s)) v.precision = u += h, l = o = g = P(f.minus(1), f.plus(1), u, 1), p = F(g.times(g), u, 1), i = s = 1;
489
+ else return F(c, v.precision = b, y, d = !0);
488
490
  else return v.precision = b, c;
489
- c = u, i += 2;
491
+ c = l, i += 2;
490
492
  }
491
493
  }
492
- function G(e) {
494
+ function K(e) {
493
495
  return String(e.s * e.s / 0);
494
496
  }
495
- function K(e, t) {
497
+ function q(e, t) {
496
498
  var n, r, i;
497
499
  for ((n = t.indexOf(".")) > -1 && (t = t.replace(".", "")), (r = t.search(/e/i)) > 0 ? (n < 0 && (n = r), n += +t.slice(r + 1), t = t.substring(0, r)) : n < 0 && (n = t.length), r = 0; t.charCodeAt(r) === 48; r++);
498
500
  for (i = t.length; t.charCodeAt(i - 1) === 48; --i);
499
501
  if (t = t.slice(r, i), t) {
500
- if (i -= r, e.e = n = n - r - 1, e.d = [], r = (n + 1) % S, n < 0 && (r += S), r < i) {
501
- for (r && e.d.push(+t.slice(0, r)), i -= S; r < i;) e.d.push(+t.slice(r, r += S));
502
- t = t.slice(r), r = S - t.length;
502
+ if (i -= r, e.e = n = n - r - 1, e.d = [], r = (n + 1) % w, n < 0 && (r += w), r < i) {
503
+ for (r && e.d.push(+t.slice(0, r)), i -= w; r < i;) e.d.push(+t.slice(r, r += w));
504
+ t = t.slice(r), r = w - t.length;
503
505
  } else r -= i;
504
506
  for (; r--;) t += "0";
505
- e.d.push(+t), l && (e.e > e.constructor.maxE ? (e.d = null, e.e = NaN) : e.e < e.constructor.minE && (e.e = 0, e.d = [0]));
507
+ e.d.push(+t), d && (e.e > e.constructor.maxE ? (e.d = null, e.e = NaN) : e.e < e.constructor.minE && (e.e = 0, e.d = [0]));
506
508
  } else e.e = 0, e.d = [0];
507
509
  return e;
508
510
  }
509
- function ee(e, t) {
510
- var n, r, i, a, s, c, u, f, p;
511
+ function te(e, t) {
512
+ var n, r, i, a, o, s, l, u, f;
511
513
  if (t.indexOf("_") > -1) {
512
- if (t = t.replace(/(\d)_(?=\d)/g, "$1"), b.test(t)) return K(e, t);
514
+ if (t = t.replace(/(\d)_(?=\d)/g, "$1"), S.test(t)) return q(e, t);
513
515
  } else if (t === "Infinity" || t === "NaN") return +t || (e.s = NaN), e.e = NaN, e.d = null, e;
514
- if (v.test(t)) n = 16, t = t.toLowerCase();
515
- else if (_.test(t)) n = 2;
516
- else if (y.test(t)) n = 8;
517
- else throw Error(d + t);
518
- for (a = t.search(/p/i), a > 0 ? (u = +t.slice(a + 1), t = t.substring(2, a)) : t = t.slice(2), a = t.indexOf("."), s = a >= 0, r = e.constructor, s && (t = t.replace(".", ""), c = t.length, a = c - a, i = B(r, new r(n), a, a * 2)), f = A(t, n, x), p = f.length - 1, a = p; f[a] === 0; --a) f.pop();
519
- return a < 0 ? new r(e.s * 0) : (e.e = F(f, p), e.d = f, l = !1, s && (e = M(e, i, c * 4)), u && (e = e.times(Math.abs(u) < 54 ? g(2, u) : o.pow(2, u))), l = !0, e);
520
- }
521
- function te(e, t) {
516
+ if (b.test(t)) n = 16, t = t.toLowerCase();
517
+ else if (y.test(t)) n = 2;
518
+ else if (x.test(t)) n = 8;
519
+ else throw Error(p + t);
520
+ for (a = t.search(/p/i), a > 0 ? (l = +t.slice(a + 1), t = t.substring(2, a)) : t = t.slice(2), a = t.indexOf("."), o = a >= 0, r = e.constructor, o && (t = t.replace(".", ""), s = t.length, a = s - a, i = H(r, new r(n), a, a * 2)), u = M(t, n, C), f = u.length - 1, a = f; u[a] === 0; --a) u.pop();
521
+ return a < 0 ? new r(e.s * 0) : (e.e = L(u, f), e.d = u, d = !1, o && (e = P(e, i, s * 4)), l && (e = e.times(Math.abs(l) < 54 ? v(2, l) : c.pow(2, l))), d = !0, e);
522
+ }
523
+ function ne(e, t) {
522
524
  var n, r = t.d.length;
523
- if (r < 3) return t.isZero() ? t : q(e, 2, t, t);
524
- n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, t = t.times(1 / J(5, n)), t = q(e, 2, t, t);
525
+ if (r < 3) return t.isZero() ? t : J(e, 2, t, t);
526
+ n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, t = t.times(1 / Y(5, n)), t = J(e, 2, t, t);
525
527
  for (var i, a = new e(5), o = new e(16), s = new e(20); n--;) i = t.times(t), t = t.times(a.plus(i.times(o.times(i).minus(s))));
526
528
  return t;
527
529
  }
528
- function q(e, t, n, r, i) {
529
- var a, o, s, c, u = 1, d = e.precision, f = Math.ceil(d / S);
530
- for (l = !1, c = n.times(n), s = new e(r);;) {
531
- if (o = M(s.times(c), new e(t++ * t++), d, 1), s = i ? r.plus(o) : r.minus(o), r = M(o.times(c), new e(t++ * t++), d, 1), o = s.plus(r), o.d[f] !== void 0) {
530
+ function J(e, t, n, r, i) {
531
+ var a, o, s, c, l = 1, u = e.precision, f = Math.ceil(u / w);
532
+ for (d = !1, c = n.times(n), s = new e(r);;) {
533
+ if (o = P(s.times(c), new e(t++ * t++), u, 1), s = i ? r.plus(o) : r.minus(o), r = P(o.times(c), new e(t++ * t++), u, 1), o = s.plus(r), o.d[f] !== void 0) {
532
534
  for (a = f; o.d[a] === s.d[a] && a--;);
533
535
  if (a == -1) break;
534
536
  }
535
- a = s, s = r, r = o, o = a, u++;
537
+ a = s, s = r, r = o, o = a, l++;
536
538
  }
537
- return l = !0, o.d.length = f + 1, o;
539
+ return d = !0, o.d.length = f + 1, o;
538
540
  }
539
- function J(e, t) {
541
+ function Y(e, t) {
540
542
  for (var n = e; --t;) n *= e;
541
543
  return n;
542
544
  }
543
- function Y(e, t) {
544
- var n, r = t.s < 0, i = L(e, e.precision, 1), a = i.times(.5);
545
- if (t = t.abs(), t.lte(a)) return c = r ? 4 : 1, t;
546
- if (n = t.divToInt(i), n.isZero()) c = r ? 3 : 2;
545
+ function X(e, t) {
546
+ var n, r = t.s < 0, i = z(e, e.precision, 1), a = i.times(.5);
547
+ if (t = t.abs(), t.lte(a)) return u = r ? 4 : 1, t;
548
+ if (n = t.divToInt(i), n.isZero()) u = r ? 3 : 2;
547
549
  else {
548
- if (t = t.minus(n.times(i)), t.lte(a)) return c = V(n) ? r ? 2 : 3 : r ? 4 : 1, t;
549
- c = V(n) ? r ? 1 : 4 : r ? 3 : 2;
550
+ if (t = t.minus(n.times(i)), t.lte(a)) return u = ee(n) ? r ? 2 : 3 : r ? 4 : 1, t;
551
+ u = ee(n) ? r ? 1 : 4 : r ? 3 : 2;
550
552
  }
551
553
  return t.minus(i).abs();
552
554
  }
553
- function X(e, r, i, a) {
554
- var o, c, l, u, d, f, p, m, h, g = e.constructor, _ = i !== void 0;
555
- if (_ ? (O(i, 1, t), a === void 0 ? a = g.rounding : O(a, 0, 8)) : (i = g.precision, a = g.rounding), !e.isFinite()) p = G(e);
555
+ function Z(e, t, n, a) {
556
+ var o, s, c, u, d, f, p, m, h, g = e.constructor, _ = n !== void 0;
557
+ if (_ ? (A(n, 1, r), a === void 0 ? a = g.rounding : A(a, 0, 8)) : (n = g.precision, a = g.rounding), !e.isFinite()) p = K(e);
556
558
  else {
557
- for (p = P(e), l = p.indexOf("."), _ ? (o = 2, r == 16 ? i = i * 4 - 3 : r == 8 && (i = i * 3 - 2)) : o = r, l >= 0 && (p = p.replace(".", ""), h = new g(1), h.e = p.length - l, h.d = A(P(h), 10, o), h.e = h.d.length), m = A(p, 10, o), c = d = m.length; m[--d] == 0;) m.pop();
559
+ for (p = I(e), c = p.indexOf("."), _ ? (o = 2, t == 16 ? n = n * 4 - 3 : t == 8 && (n = n * 3 - 2)) : o = t, c >= 0 && (p = p.replace(".", ""), h = new g(1), h.e = p.length - c, h.d = M(I(h), 10, o), h.e = h.d.length), m = M(p, 10, o), s = d = m.length; m[--d] == 0;) m.pop();
558
560
  if (!m[0]) p = _ ? "0p+0" : "0";
559
561
  else {
560
- if (l < 0 ? c-- : (e = new g(e), e.d = m, e.e = c, e = M(e, h, i, a, 0, o), m = e.d, c = e.e, f = s), l = m[i], u = o / 2, f ||= m[i + 1] !== void 0, f = a < 4 ? (l !== void 0 || f) && (a === 0 || a === (e.s < 0 ? 3 : 2)) : l > u || l === u && (a === 4 || f || a === 6 && m[i - 1] & 1 || a === (e.s < 0 ? 8 : 7)), m.length = i, f) for (; ++m[--i] > o - 1;) m[i] = 0, i || (++c, m.unshift(1));
562
+ if (c < 0 ? s-- : (e = new g(e), e.d = m, e.e = s, e = P(e, h, n, a, 0, o), m = e.d, s = e.e, f = l), c = m[n], u = o / 2, f ||= m[n + 1] !== void 0, f = a < 4 ? (c !== void 0 || f) && (a === 0 || a === (e.s < 0 ? 3 : 2)) : c > u || c === u && (a === 4 || f || a === 6 && m[n - 1] & 1 || a === (e.s < 0 ? 8 : 7)), m.length = n, f) for (; ++m[--n] > o - 1;) m[n] = 0, n || (++s, m.unshift(1));
561
563
  for (d = m.length; !m[d - 1]; --d);
562
- for (l = 0, p = ""; l < d; l++) p += n.charAt(m[l]);
564
+ for (c = 0, p = ""; c < d; c++) p += i.charAt(m[c]);
563
565
  if (_) {
564
- if (d > 1) if (r == 16 || r == 8) {
565
- for (l = r == 16 ? 4 : 3, --d; d % l; d++) p += "0";
566
- for (m = A(p, o, r), d = m.length; !m[d - 1]; --d);
567
- for (l = 1, p = "1."; l < d; l++) p += n.charAt(m[l]);
566
+ if (d > 1) if (t == 16 || t == 8) {
567
+ for (c = t == 16 ? 4 : 3, --d; d % c; d++) p += "0";
568
+ for (m = M(p, o, t), d = m.length; !m[d - 1]; --d);
569
+ for (c = 1, p = "1."; c < d; c++) p += i.charAt(m[c]);
568
570
  } else p = p.charAt(0) + "." + p.slice(1);
569
- p = p + (c < 0 ? "p" : "p+") + c;
570
- } else if (c < 0) {
571
- for (; ++c;) p = "0" + p;
571
+ p = p + (s < 0 ? "p" : "p+") + s;
572
+ } else if (s < 0) {
573
+ for (; ++s;) p = "0" + p;
572
574
  p = "0." + p;
573
- } else if (++c > d) for (c -= d; c--;) p += "0";
574
- else c < d && (p = p.slice(0, c) + "." + p.slice(c));
575
+ } else if (++s > d) for (s -= d; s--;) p += "0";
576
+ else s < d && (p = p.slice(0, s) + "." + p.slice(s));
575
577
  }
576
- p = (r == 16 ? "0x" : r == 2 ? "0b" : r == 8 ? "0o" : "") + p;
578
+ p = (t == 16 ? "0x" : t == 2 ? "0b" : t == 8 ? "0o" : "") + p;
577
579
  }
578
580
  return e.s < 0 ? "-" + p : p;
579
581
  }
580
- function Z(e, t) {
582
+ function Q(e, t) {
581
583
  if (e.length > t) return e.length = t, !0;
582
584
  }
583
- function ne(e) {
585
+ function re(e) {
584
586
  return new this(e).abs();
585
587
  }
586
- function re(e) {
588
+ function ie(e) {
587
589
  return new this(e).acos();
588
590
  }
589
- function ie(e) {
591
+ function ae(e) {
590
592
  return new this(e).acosh();
591
593
  }
592
- function ae(e, t) {
594
+ function oe(e, t) {
593
595
  return new this(e).plus(t);
594
596
  }
595
- function oe(e) {
597
+ function se(e) {
596
598
  return new this(e).asin();
597
599
  }
598
- function se(e) {
600
+ function ce(e) {
599
601
  return new this(e).asinh();
600
602
  }
601
- function ce(e) {
603
+ function le(e) {
602
604
  return new this(e).atan();
603
605
  }
604
- function le(e) {
606
+ function ue(e) {
605
607
  return new this(e).atanh();
606
608
  }
607
- function ue(e, t) {
609
+ function de(e, t) {
608
610
  e = new this(e), t = new this(t);
609
611
  var n, r = this.precision, i = this.rounding, a = r + 4;
610
- return !e.s || !t.s ? n = new this(NaN) : !e.d && !t.d ? (n = L(this, a, 1).times(t.s > 0 ? .25 : .75), n.s = e.s) : !t.d || e.isZero() ? (n = t.s < 0 ? L(this, r, i) : new this(0), n.s = e.s) : !e.d || t.isZero() ? (n = L(this, a, 1).times(.5), n.s = e.s) : t.s < 0 ? (this.precision = a, this.rounding = 1, n = this.atan(M(e, t, a, 1)), t = L(this, a, 1), this.precision = r, this.rounding = i, n = e.s < 0 ? n.minus(t) : n.plus(t)) : n = this.atan(M(e, t, a, 1)), n;
612
+ return !e.s || !t.s ? n = new this(NaN) : !e.d && !t.d ? (n = z(this, a, 1).times(t.s > 0 ? .25 : .75), n.s = e.s) : !t.d || e.isZero() ? (n = t.s < 0 ? z(this, r, i) : new this(0), n.s = e.s) : !e.d || t.isZero() ? (n = z(this, a, 1).times(.5), n.s = e.s) : t.s < 0 ? (this.precision = a, this.rounding = 1, n = this.atan(P(e, t, a, 1)), t = z(this, a, 1), this.precision = r, this.rounding = i, n = e.s < 0 ? n.minus(t) : n.plus(t)) : n = this.atan(P(e, t, a, 1)), n;
611
613
  }
612
- function de(e) {
614
+ function fe(e) {
613
615
  return new this(e).cbrt();
614
616
  }
615
- function fe(e) {
616
- return N(e = new this(e), e.e + 1, 2);
617
+ function pe(e) {
618
+ return F(e = new this(e), e.e + 1, 2);
617
619
  }
618
- function pe(e, t, n) {
620
+ function me(e, t, n) {
619
621
  return new this(e).clamp(t, n);
620
622
  }
621
- function me(n) {
622
- if (!n || typeof n != "object") throw Error(u + "Object expected");
623
- var r, i, o, s = n.defaults === !0, c = [
623
+ function he(e) {
624
+ if (!e || typeof e != "object") throw Error(f + "Object expected");
625
+ var i, a, o, c = e.defaults === !0, l = [
624
626
  "precision",
625
627
  1,
626
- t,
628
+ r,
627
629
  "rounding",
628
630
  0,
629
631
  8,
630
632
  "toExpNeg",
631
- -e,
633
+ -n,
632
634
  0,
633
635
  "toExpPos",
634
636
  0,
635
- e,
637
+ n,
636
638
  "maxE",
637
639
  0,
638
- e,
640
+ n,
639
641
  "minE",
640
- -e,
642
+ -n,
641
643
  0,
642
644
  "modulo",
643
645
  0,
644
646
  9
645
647
  ];
646
- for (r = 0; r < c.length; r += 3) if (i = c[r], s && (this[i] = a[i]), (o = n[i]) !== void 0) if (h(o) === o && o >= c[r + 1] && o <= c[r + 2]) this[i] = o;
647
- else throw Error(d + i + ": " + o);
648
- if (i = "crypto", s && (this[i] = a[i]), (o = n[i]) !== void 0) if (o === !0 || o === !1 || o === 0 || o === 1) if (o) if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes)) this[i] = !0;
649
- else throw Error(p);
650
- else this[i] = !1;
651
- else throw Error(d + i + ": " + o);
648
+ for (i = 0; i < l.length; i += 3) if (a = l[i], c && (this[a] = s[a]), (o = e[a]) !== void 0) if (_(o) === o && o >= l[i + 1] && o <= l[i + 2]) this[a] = o;
649
+ else throw Error(p + a + ": " + o);
650
+ if (a = "crypto", c && (this[a] = s[a]), (o = e[a]) !== void 0) if (o === !0 || o === !1 || o === 0 || o === 1) if (o) if (!t(crypto) && crypto && (crypto.getRandomValues || crypto.randomBytes)) this[a] = !0;
651
+ else throw Error(h);
652
+ else this[a] = !1;
653
+ else throw Error(p + a + ": " + o);
652
654
  return this;
653
655
  }
654
- function he(e) {
656
+ function ge(e) {
655
657
  return new this(e).cos();
656
658
  }
657
- function ge(e) {
659
+ function _e(e) {
658
660
  return new this(e).cosh();
659
661
  }
660
- function Q(e) {
661
- var t, n, r;
662
- function i(e) {
663
- var t, n, r, a = this;
664
- if (!(a instanceof i)) return new i(e);
665
- if (a.constructor = i, $(e)) {
666
- a.s = e.s, l ? !e.d || e.e > i.maxE ? (a.e = NaN, a.d = null) : e.e < i.minE ? (a.e = 0, a.d = [0]) : (a.e = e.e, a.d = e.d.slice()) : (a.e = e.e, a.d = e.d ? e.d.slice() : e.d);
662
+ function $(t) {
663
+ var n, r, i;
664
+ function a(e) {
665
+ var t, n, r, i = this;
666
+ if (!(i instanceof a)) return new a(e);
667
+ if (i.constructor = a, Se(e)) {
668
+ i.s = e.s, d ? !e.d || e.e > a.maxE ? (i.e = NaN, i.d = null) : e.e < a.minE ? (i.e = 0, i.d = [0]) : (i.e = e.e, i.d = e.d.slice()) : (i.e = e.e, i.d = e.d ? e.d.slice() : e.d);
667
669
  return;
668
670
  }
669
671
  if (r = typeof e, r === "number") {
670
672
  if (e === 0) {
671
- a.s = 1 / e < 0 ? -1 : 1, a.e = 0, a.d = [0];
673
+ i.s = 1 / e < 0 ? -1 : 1, i.e = 0, i.d = [0];
672
674
  return;
673
675
  }
674
- if (e < 0 ? (e = -e, a.s = -1) : a.s = 1, e === ~~e && e < 1e7) {
676
+ if (e < 0 ? (e = -e, i.s = -1) : i.s = 1, e === ~~e && e < 1e7) {
675
677
  for (t = 0, n = e; n >= 10; n /= 10) t++;
676
- l ? t > i.maxE ? (a.e = NaN, a.d = null) : t < i.minE ? (a.e = 0, a.d = [0]) : (a.e = t, a.d = [e]) : (a.e = t, a.d = [e]);
678
+ d ? t > a.maxE ? (i.e = NaN, i.d = null) : t < a.minE ? (i.e = 0, i.d = [0]) : (i.e = t, i.d = [e]) : (i.e = t, i.d = [e]);
677
679
  return;
678
680
  }
679
681
  if (e * 0 != 0) {
680
- e || (a.s = NaN), a.e = NaN, a.d = null;
682
+ e || (i.s = NaN), i.e = NaN, i.d = null;
681
683
  return;
682
684
  }
683
- return K(a, e.toString());
685
+ return q(i, e.toString());
684
686
  }
685
- if (r === "string") return (n = e.charCodeAt(0)) === 45 ? (e = e.slice(1), a.s = -1) : (n === 43 && (e = e.slice(1)), a.s = 1), b.test(e) ? K(a, e) : ee(a, e);
686
- if (r === "bigint") return e < 0 ? (e = -e, a.s = -1) : a.s = 1, K(a, e.toString());
687
- throw Error(d + e);
687
+ if (r === "string") return (n = e.charCodeAt(0)) === 45 ? (e = e.slice(1), i.s = -1) : (n === 43 && (e = e.slice(1)), i.s = 1), S.test(e) ? q(i, e) : te(i, e);
688
+ if (r === "bigint") return e < 0 ? (e = -e, i.s = -1) : i.s = 1, q(i, e.toString());
689
+ throw Error(p + e);
688
690
  }
689
- if (i.prototype = E, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = me, i.clone = Q, i.isDecimal = $, i.abs = ne, i.acos = re, i.acosh = ie, i.add = ae, i.asin = oe, i.asinh = se, i.atan = ce, i.atanh = le, i.atan2 = ue, i.cbrt = de, i.ceil = fe, i.clamp = pe, i.cos = he, i.cosh = ge, i.div = _e, i.exp = ve, i.floor = ye, i.hypot = be, i.ln = xe, i.log = Se, i.log10 = we, i.log2 = Ce, i.max = Te, i.min = Ee, i.mod = De, i.mul = Oe, i.pow = ke, i.random = Ae, i.round = je, i.sign = Me, i.sin = Ne, i.sinh = Pe, i.sqrt = Fe, i.sub = Ie, i.sum = Le, i.tan = Re, i.tanh = ze, i.trunc = Be, e === void 0 && (e = {}), e && e.defaults !== !0) for (r = [
691
+ if (a.prototype = O, a.ROUND_UP = 0, a.ROUND_DOWN = 1, a.ROUND_CEIL = 2, a.ROUND_FLOOR = 3, a.ROUND_HALF_UP = 4, a.ROUND_HALF_DOWN = 5, a.ROUND_HALF_EVEN = 6, a.ROUND_HALF_CEIL = 7, a.ROUND_HALF_FLOOR = 8, a.EUCLID = 9, a.config = a.set = he, a.clone = $, a.isDecimal = Se, a.abs = re, a.acos = ie, a.acosh = ae, a.add = oe, a.asin = se, a.asinh = ce, a.atan = le, a.atanh = ue, a.atan2 = de, a.cbrt = fe, a.ceil = pe, a.clamp = me, a.cos = ge, a.cosh = _e, a.div = ve, a.exp = ye, a.floor = be, a.hypot = xe, a.ln = Ce, a.log = we, a.log10 = Ee, a.log2 = Te, a.max = De, a.min = Oe, a.mod = ke, a.mul = Ae, a.pow = je, a.random = Me, a.round = Ne, a.sign = Pe, a.sin = Fe, a.sinh = Ie, a.sqrt = Le, a.sub = Re, a.sum = ze, a.tan = Be, a.tanh = Ve, a.trunc = He, t === void 0 && (t = {}), t && t.defaults !== !0) for (i = [
690
692
  "precision",
691
693
  "rounding",
692
694
  "toExpNeg",
@@ -695,108 +697,108 @@ function Q(e) {
695
697
  "minE",
696
698
  "modulo",
697
699
  "crypto"
698
- ], t = 0; t < r.length;) Object.prototype.hasOwnProperty.call(e, n = r[t++]) || (e[n] = this[n]);
699
- return i.config(e), i;
700
+ ], n = 0; n < i.length;) e(t, r = i[n++]) || (t[r] = this[r]);
701
+ return a.config(t), a;
700
702
  }
701
- function _e(e, t) {
703
+ function ve(e, t) {
702
704
  return new this(e).div(t);
703
705
  }
704
- function ve(e) {
706
+ function ye(e) {
705
707
  return new this(e).exp();
706
708
  }
707
- function ye(e) {
708
- return N(e = new this(e), e.e + 1, 3);
709
+ function be(e) {
710
+ return F(e = new this(e), e.e + 1, 3);
709
711
  }
710
- function be() {
712
+ function xe() {
711
713
  var e, t, n = new this(0);
712
- for (l = !1, e = 0; e < arguments.length;) if (t = new this(arguments[e++]), t.d) n.d && (n = n.plus(t.times(t)));
714
+ for (d = !1, e = 0; e < arguments.length;) if (t = new this(arguments[e++]), t.d) n.d && (n = n.plus(t.times(t)));
713
715
  else {
714
- if (t.s) return l = !0, new this(Infinity);
716
+ if (t.s) return d = !0, new this(Infinity);
715
717
  n = t;
716
718
  }
717
- return l = !0, n.sqrt();
719
+ return d = !0, n.sqrt();
718
720
  }
719
- function $(e) {
720
- return e instanceof o || e && e.toStringTag === m || !1;
721
+ function Se(e) {
722
+ return e instanceof c || e?.toStringTag === g || !1;
721
723
  }
722
- function xe(e) {
724
+ function Ce(e) {
723
725
  return new this(e).ln();
724
726
  }
725
- function Se(e, t) {
727
+ function we(e, t) {
726
728
  return new this(e).log(t);
727
729
  }
728
- function Ce(e) {
730
+ function Te(e) {
729
731
  return new this(e).log(2);
730
732
  }
731
- function we(e) {
733
+ function Ee(e) {
732
734
  return new this(e).log(10);
733
735
  }
734
- function Te() {
735
- return H(this, arguments, -1);
736
+ function De() {
737
+ return U(this, arguments, -1);
736
738
  }
737
- function Ee() {
738
- return H(this, arguments, 1);
739
+ function Oe() {
740
+ return U(this, arguments, 1);
739
741
  }
740
- function De(e, t) {
742
+ function ke(e, t) {
741
743
  return new this(e).mod(t);
742
744
  }
743
- function Oe(e, t) {
745
+ function Ae(e, t) {
744
746
  return new this(e).mul(t);
745
747
  }
746
- function ke(e, t) {
748
+ function je(e, t) {
747
749
  return new this(e).pow(t);
748
750
  }
749
- function Ae(e) {
750
- var n, r, i, a, o = 0, s = new this(1), c = [];
751
- if (e === void 0 ? e = this.precision : O(e, 1, t), i = Math.ceil(e / S), !this.crypto) for (; o < i;) c[o++] = Math.random() * 1e7 | 0;
752
- else if (crypto.getRandomValues) for (n = crypto.getRandomValues(new Uint32Array(i)); o < i;) a = n[o], a >= 429e7 ? n[o] = crypto.getRandomValues(new Uint32Array(1))[0] : c[o++] = a % 1e7;
751
+ function Me(e) {
752
+ var t, n, i, a, o = 0, s = new this(1), c = [];
753
+ if (e === void 0 ? e = this.precision : A(e, 1, r), i = Math.ceil(e / w), !this.crypto) for (; o < i;) c[o++] = Math.random() * 1e7 | 0;
754
+ else if (crypto.getRandomValues) for (t = crypto.getRandomValues(new Uint32Array(i)); o < i;) a = t[o], a >= 429e7 ? t[o] = crypto.getRandomValues(new Uint32Array(1))[0] : c[o++] = a % 1e7;
753
755
  else if (crypto.randomBytes) {
754
- for (n = crypto.randomBytes(i *= 4); o < i;) a = n[o] + (n[o + 1] << 8) + (n[o + 2] << 16) + ((n[o + 3] & 127) << 24), a >= 214e7 ? crypto.randomBytes(4).copy(n, o) : (c.push(a % 1e7), o += 4);
756
+ for (t = crypto.randomBytes(i *= 4); o < i;) a = t[o] + (t[o + 1] << 8) + (t[o + 2] << 16) + ((t[o + 3] & 127) << 24), a >= 214e7 ? crypto.randomBytes(4).copy(t, o) : (c.push(a % 1e7), o += 4);
755
757
  o = i / 4;
756
- } else throw Error(p);
757
- for (i = c[--o], e %= S, i && e && (a = g(10, S - e), c[o] = (i / a | 0) * a); c[o] === 0; o--) c.pop();
758
- if (o < 0) r = 0, c = [0];
758
+ } else throw Error(h);
759
+ for (i = c[--o], e %= w, i && e && (a = v(10, w - e), c[o] = (i / a | 0) * a); c[o] === 0; o--) c.pop();
760
+ if (o < 0) n = 0, c = [0];
759
761
  else {
760
- for (r = -1; c[0] === 0; r -= S) c.shift();
762
+ for (n = -1; c[0] === 0; n -= w) c.shift();
761
763
  for (i = 1, a = c[0]; a >= 10; a /= 10) i++;
762
- i < S && (r -= S - i);
764
+ i < w && (n -= w - i);
763
765
  }
764
- return s.e = r, s.d = c, s;
766
+ return s.e = n, s.d = c, s;
765
767
  }
766
- function je(e) {
767
- return N(e = new this(e), e.e + 1, this.rounding);
768
+ function Ne(e) {
769
+ return F(e = new this(e), e.e + 1, this.rounding);
768
770
  }
769
- function Me(e) {
771
+ function Pe(e) {
770
772
  return e = new this(e), e.d ? e.d[0] ? e.s : 0 * e.s : e.s || NaN;
771
773
  }
772
- function Ne(e) {
774
+ function Fe(e) {
773
775
  return new this(e).sin();
774
776
  }
775
- function Pe(e) {
777
+ function Ie(e) {
776
778
  return new this(e).sinh();
777
779
  }
778
- function Fe(e) {
780
+ function Le(e) {
779
781
  return new this(e).sqrt();
780
782
  }
781
- function Ie(e, t) {
783
+ function Re(e, t) {
782
784
  return new this(e).sub(t);
783
785
  }
784
- function Le() {
786
+ function ze() {
785
787
  var e = 0, t = arguments, n = new this(t[e]);
786
- for (l = !1; n.s && ++e < t.length;) n = n.plus(t[e]);
787
- return l = !0, N(n, this.precision, this.rounding);
788
+ for (d = !1; n.s && ++e < t.length;) n = n.plus(t[e]);
789
+ return d = !0, F(n, this.precision, this.rounding);
788
790
  }
789
- function Re(e) {
791
+ function Be(e) {
790
792
  return new this(e).tan();
791
793
  }
792
- function ze(e) {
794
+ function Ve(e) {
793
795
  return new this(e).tanh();
794
796
  }
795
- function Be(e) {
796
- return N(e = new this(e), e.e + 1, 1);
797
+ function He(e) {
798
+ return F(e = new this(e), e.e + 1, 1);
797
799
  }
798
- o = Q(a), o.prototype.constructor = o, o.default = o.Decimal = o, r = new o(r), i = new o(i);
799
- var Ve = o;
800
+ c = $(s), c.prototype.constructor = c, c.default = c.Decimal = c, a = new c(a), o = new c(o);
801
+ var Ue = c;
800
802
  //#endregion
801
- export { o as Decimal, Ve as default };
803
+ export { c as Decimal, Ue as default };
802
804
  /* 独立思考,明辨是非 */