wsemi 1.7.20 → 1.7.21

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 (746) hide show
  1. package/README.md +1 -1
  2. package/dist/wsemi.umd.js +3 -3
  3. package/dist/wsemi.umd.js.map +1 -1
  4. package/docs/-_class.mjs.html +1 -1
  5. package/docs/ab2blob.mjs.html +1 -1
  6. package/docs/ab2u8arr.mjs.html +1 -1
  7. package/docs/addExcelWorksheetFromData.mjs.html +1 -1
  8. package/docs/addMonth.mjs.html +1 -1
  9. package/docs/aes2str.mjs.html +1 -1
  10. package/docs/alive.mjs.html +1 -1
  11. package/docs/arr2dt.mjs.html +1 -1
  12. package/docs/arrAccum.mjs.html +1 -1
  13. package/docs/arrAdd.mjs.html +1 -1
  14. package/docs/arrAt.mjs.html +1 -1
  15. package/docs/arrDiff.mjs.html +1 -1
  16. package/docs/arrFilterByKeywords.mjs.html +1 -1
  17. package/docs/arrFilterByNum.mjs.html +1 -1
  18. package/docs/arrFilterByPnum.mjs.html +1 -1
  19. package/docs/arrFilterByPnumAndToLog.mjs.html +1 -1
  20. package/docs/arrFind.mjs.html +1 -1
  21. package/docs/arrGroupByMaxmin.mjs.html +1 -1
  22. package/docs/arrHas.mjs.html +1 -1
  23. package/docs/arrInsert.mjs.html +1 -1
  24. package/docs/arrLookupByMaxmin.mjs.html +1 -1
  25. package/docs/arrMax.mjs.html +1 -1
  26. package/docs/arrMin.mjs.html +1 -1
  27. package/docs/arrMulti.mjs.html +1 -1
  28. package/docs/arrNorm.mjs.html +1 -1
  29. package/docs/arrProduct.mjs.html +1 -1
  30. package/docs/arrReduce.mjs.html +1 -1
  31. package/docs/arrSep.mjs.html +1 -1
  32. package/docs/arrSort.mjs.html +1 -1
  33. package/docs/asind.mjs.html +1 -1
  34. package/docs/atan2d.mjs.html +1 -1
  35. package/docs/atand.mjs.html +1 -1
  36. package/docs/attstr.mjs.html +66 -4
  37. package/docs/b642obj.mjs.html +1 -1
  38. package/docs/b642str.mjs.html +1 -1
  39. package/docs/b642u16arr.mjs.html +1 -1
  40. package/docs/b642u8arr.mjs.html +1 -1
  41. package/docs/binstr.mjs.html +1 -1
  42. package/docs/blob2ab.mjs.html +1 -1
  43. package/docs/blob2b64.mjs.html +1 -1
  44. package/docs/blob2str.mjs.html +1 -1
  45. package/docs/blob2u8arr.mjs.html +1 -1
  46. package/docs/blobs2b64s.mjs.html +1 -1
  47. package/docs/blobs2u8arrs.mjs.html +1 -1
  48. package/docs/bodyLog.mjs.html +1 -1
  49. package/docs/browserView.mjs.html +1 -1
  50. package/docs/browserViewFromBlob.mjs.html +1 -1
  51. package/docs/browserViewFromText.mjs.html +1 -1
  52. package/docs/browserViewFromU8arr.mjs.html +1 -1
  53. package/docs/bs2u8arr.mjs.html +1 -1
  54. package/docs/bufRead.mjs.html +1 -1
  55. package/docs/bufReadDbl.mjs.html +1 -1
  56. package/docs/bufWrite.mjs.html +1 -1
  57. package/docs/bufWriteDbl.mjs.html +1 -1
  58. package/docs/cache.mjs.html +1 -1
  59. package/docs/cbol.mjs.html +1 -1
  60. package/docs/cdbl.mjs.html +1 -1
  61. package/docs/cfilesize.mjs.html +1 -1
  62. package/docs/cfinancial.mjs.html +1 -1
  63. package/docs/cint.mjs.html +1 -1
  64. package/docs/clearXSS.mjs.html +1 -1
  65. package/docs/color.mjs.html +1 -1
  66. package/docs/composeToTree.mjs.html +1 -1
  67. package/docs/convertToTree.mjs.html +1 -1
  68. package/docs/copyStrToClipboard.mjs.html +1 -1
  69. package/docs/cosd.mjs.html +1 -1
  70. package/docs/cotd.mjs.html +1 -1
  71. package/docs/createExcelWorkbook.mjs.html +1 -1
  72. package/docs/cscd.mjs.html +1 -1
  73. package/docs/cstr.mjs.html +1 -1
  74. package/docs/day2cht.mjs.html +1 -1
  75. package/docs/debounce.mjs.html +1 -1
  76. package/docs/delay.mjs.html +1 -1
  77. package/docs/dig.mjs.html +1 -1
  78. package/docs/digExp.mjs.html +1 -1
  79. package/docs/domAlert.mjs.html +1 -1
  80. package/docs/domAppend.mjs.html +1 -1
  81. package/docs/domCancelEvent.mjs.html +1 -1
  82. package/docs/domCompareText.mjs.html +1 -1
  83. package/docs/domCompareTextDyn.mjs.html +1 -1
  84. package/docs/domConvertToPic.mjs.html +1 -1
  85. package/docs/domConvertToPicDyn.mjs.html +1 -1
  86. package/docs/domDetect.mjs.html +1 -1
  87. package/docs/domDrag.mjs.html +1 -1
  88. package/docs/domDragBarAndScroll.mjs.html +1 -1
  89. package/docs/domDragPreview.mjs.html +1 -1
  90. package/docs/domDropFiles.mjs.html +1 -1
  91. package/docs/domElementsFromPoint.mjs.html +1 -1
  92. package/docs/domFadeIn.mjs.html +1 -1
  93. package/docs/domFadeOut.mjs.html +1 -1
  94. package/docs/domFind.mjs.html +1 -1
  95. package/docs/domFinds.mjs.html +1 -1
  96. package/docs/domGetAttr.mjs.html +1 -1
  97. package/docs/domGetBoudRect.mjs.html +1 -1
  98. package/docs/domGetBoudRectRefSelf.mjs.html +1 -1
  99. package/docs/domGetFileAccept.mjs.html +1 -1
  100. package/docs/domGetFiles.mjs.html +1 -1
  101. package/docs/domGetParents.mjs.html +1 -1
  102. package/docs/domGetPointFromEvent.mjs.html +1 -1
  103. package/docs/domGetScrollableParent.mjs.html +1 -1
  104. package/docs/domGetWindowSize.mjs.html +1 -1
  105. package/docs/domIsClientXYIn.mjs.html +1 -1
  106. package/docs/domIsFocused.mjs.html +1 -1
  107. package/docs/domIsVisible.mjs.html +1 -1
  108. package/docs/domPrepend.mjs.html +1 -1
  109. package/docs/domRemove.mjs.html +1 -1
  110. package/docs/domRenderMarkdownMind.mjs.html +1 -1
  111. package/docs/domRenderMarkdownMindDyn.mjs.html +1 -1
  112. package/docs/domRipple.mjs.html +1 -1
  113. package/docs/domScrollIntoView.mjs.html +1 -1
  114. package/docs/domScrollTo.mjs.html +1 -1
  115. package/docs/domShowImages.mjs.html +1 -1
  116. package/docs/domShowImagesDyn.mjs.html +1 -1
  117. package/docs/domShowInputAndGetFiles.mjs.html +1 -1
  118. package/docs/domShowInputAndGetFilesU8Arrs.mjs.html +1 -1
  119. package/docs/domTooltip.mjs.html +1 -1
  120. package/docs/domTriggerEvent.mjs.html +1 -1
  121. package/docs/domVirtualCreate.mjs.html +1 -1
  122. package/docs/domVirtualCreateQueue.mjs.html +1 -1
  123. package/docs/downloadExcelFileFromData.mjs.html +1 -1
  124. package/docs/downloadExcelFileFromDataDyn.mjs.html +1 -1
  125. package/docs/downloadFileFromB64.mjs.html +1 -1
  126. package/docs/downloadFileFromBlob.mjs.html +1 -1
  127. package/docs/downloadFileFromText.mjs.html +1 -1
  128. package/docs/downloadFileFromU8Arr.mjs.html +1 -1
  129. package/docs/dtmapping.mjs.html +1 -1
  130. package/docs/dtpick.mjs.html +1 -1
  131. package/docs/evem.mjs.html +1 -1
  132. package/docs/examples/ex-blob2b64.html +1 -1
  133. package/docs/examples/ex-clearXSS.html +1 -1
  134. package/docs/examples/ex-colorConverter.html +1 -1
  135. package/docs/examples/ex-cryptojs.html +1 -1
  136. package/docs/examples/ex-dayjs.html +1 -1
  137. package/docs/examples/ex-domCompareText.html +1 -1
  138. package/docs/examples/ex-domCompareTextDyn.html +1 -1
  139. package/docs/examples/ex-domConvertToPic.html +1 -1
  140. package/docs/examples/ex-domConvertToPicDyn.html +1 -1
  141. package/docs/examples/ex-domDrag.html +1 -1
  142. package/docs/examples/ex-domDropFiles.html +1 -1
  143. package/docs/examples/ex-domIsVisible.html +1 -1
  144. package/docs/examples/ex-domRenderMarkdownMind.html +1 -1
  145. package/docs/examples/ex-domRenderMarkdownMindDyn.html +1 -1
  146. package/docs/examples/ex-domRipple.html +1 -1
  147. package/docs/examples/ex-domScrollIntoView.html +1 -1
  148. package/docs/examples/ex-domScrollTo.html +1 -1
  149. package/docs/examples/ex-domShowImages.html +1 -1
  150. package/docs/examples/ex-domShowImagesDyn.html +1 -1
  151. package/docs/examples/ex-domShowInputAndGetFiles.html +1 -1
  152. package/docs/examples/ex-domTooltip.html +1 -1
  153. package/docs/examples/ex-getUserAgent.html +1 -1
  154. package/docs/examples/ex-getUserAgentDyn.html +1 -1
  155. package/docs/examples/ex-html2pic.html +1 -1
  156. package/docs/examples/ex-html2picDyn.html +1 -1
  157. package/docs/examples/ex-html2str.html +1 -1
  158. package/docs/examples/ex-html2strDyn.html +1 -1
  159. package/docs/examples/ex-lodash.html +1 -1
  160. package/docs/examples/ex-obj2u8arr-u8arr2obj.html +1 -1
  161. package/docs/examples/ex-ocr.html +1 -1
  162. package/docs/examples/ex-ocrDyn.html +1 -1
  163. package/docs/examples/ex-openLink.html +1 -1
  164. package/docs/examples/ex-strFindFuzz.html +1 -1
  165. package/docs/examples/ex-strFindFuzzDyn.html +1 -1
  166. package/docs/examples/ex-timeTZ2expire-timeTZ2past.html +1 -1
  167. package/docs/examples/ex-xlsx.html +1 -1
  168. package/docs/examples/ex-xlsxDyn.html +1 -1
  169. package/docs/execProcess.mjs.html +1 -1
  170. package/docs/execScript.mjs.html +1 -1
  171. package/docs/f2c.mjs.html +1 -1
  172. package/docs/filepathToTree.mjs.html +1 -1
  173. package/docs/files2data.mjs.html +1 -1
  174. package/docs/flattenToConn.mjs.html +1 -1
  175. package/docs/flattenTree.mjs.html +1 -1
  176. package/docs/fsCleanFolder.mjs.html +1 -1
  177. package/docs/fsCopyFolder.mjs.html +1 -1
  178. package/docs/fsCreateFile.mjs.html +1 -1
  179. package/docs/fsCreateFolder.mjs.html +1 -1
  180. package/docs/fsDeleteFile.mjs.html +1 -1
  181. package/docs/fsDeleteFolder.mjs.html +1 -1
  182. package/docs/fsEvem.mjs.html +1 -1
  183. package/docs/fsGetFilesInFolder.mjs.html +1 -1
  184. package/docs/fsGetFoldersInFolder.mjs.html +1 -1
  185. package/docs/fsIsFile.mjs.html +1 -1
  186. package/docs/fsIsFolder.mjs.html +1 -1
  187. package/docs/fsReadText.mjs.html +1 -1
  188. package/docs/fsRenameFile.mjs.html +1 -1
  189. package/docs/fsRenameFolder.mjs.html +1 -1
  190. package/docs/fsTreeFolder.mjs.html +1 -1
  191. package/docs/fsWatchFile.mjs.html +1 -1
  192. package/docs/fsWriteText.mjs.html +1 -1
  193. package/docs/genGradientColor.mjs.html +1 -1
  194. package/docs/genID.mjs.html +1 -1
  195. package/docs/genPm.mjs.html +1 -1
  196. package/docs/getBufferSize.mjs.html +1 -1
  197. package/docs/getClearPathName.mjs.html +1 -1
  198. package/docs/getCsvStrFromData.mjs.html +1 -1
  199. package/docs/getDataFromExcelFileU8Arr.mjs.html +1 -1
  200. package/docs/getDataFromExcelFileU8ArrDyn.mjs.html +1 -1
  201. package/docs/getDirName.mjs.html +1 -1
  202. package/docs/getEnv.mjs.html +1 -1
  203. package/docs/getExcelU8ArrFromData.mjs.html +1 -1
  204. package/docs/getExcelU8ArrFromWorkbook.mjs.html +1 -1
  205. package/docs/getExcelWorkbookFromData.mjs.html +1 -1
  206. package/docs/getExcelWorkbookFromWorksheet.mjs.html +1 -1
  207. package/docs/getExcelWorksheetFromData.mjs.html +1 -1
  208. package/docs/getFileAccept.mjs.html +1 -1
  209. package/docs/getFileName.mjs.html +1 -1
  210. package/docs/getFileTrueName.mjs.html +1 -1
  211. package/docs/getGlobal.mjs.html +1 -1
  212. package/docs/getObjSize.mjs.html +1 -1
  213. package/docs/getTimeBetween.mjs.html +1 -1
  214. package/docs/getTimeFromUnit.mjs.html +1 -1
  215. package/docs/getTimeObject.mjs.html +1 -1
  216. package/docs/getTimeRange.mjs.html +1 -1
  217. package/docs/getUserAgent.mjs.html +1 -1
  218. package/docs/getUserAgentDyn.mjs.html +1 -1
  219. package/docs/getltdtkeys.mjs.html +1 -1
  220. package/docs/haskey.mjs.html +1 -1
  221. package/docs/html2pic.mjs.html +1 -1
  222. package/docs/html2picDyn.mjs.html +1 -1
  223. package/docs/html2str.mjs.html +1 -1
  224. package/docs/html2strDyn.mjs.html +1 -1
  225. package/docs/htmlDecode.mjs.html +1 -1
  226. package/docs/htmlEncode.mjs.html +1 -1
  227. package/docs/importResources.mjs.html +1 -1
  228. package/docs/index.html +1 -1
  229. package/docs/interp1.mjs.html +1 -1
  230. package/docs/isDev.mjs.html +1 -1
  231. package/docs/isEle.mjs.html +1 -1
  232. package/docs/isEleExistByID.mjs.html +1 -1
  233. package/docs/isEmail.mjs.html +1 -1
  234. package/docs/isIE.mjs.html +1 -1
  235. package/docs/isNarrow.mjs.html +1 -1
  236. package/docs/isStrHasCapital.mjs.html +1 -1
  237. package/docs/isStrHasLowerCase.mjs.html +1 -1
  238. package/docs/isStrHasNumber.mjs.html +1 -1
  239. package/docs/isUserIdentify.mjs.html +1 -1
  240. package/docs/isUserName.mjs.html +1 -1
  241. package/docs/isUserPW.mjs.html +1 -1
  242. package/docs/isWindow.mjs.html +1 -1
  243. package/docs/isab.mjs.html +1 -1
  244. package/docs/isarr.mjs.html +1 -1
  245. package/docs/isarr0.mjs.html +1 -1
  246. package/docs/isblob.mjs.html +1 -1
  247. package/docs/isbol.mjs.html +1 -1
  248. package/docs/isday.mjs.html +1 -1
  249. package/docs/isearr.mjs.html +1 -1
  250. package/docs/iseobj.mjs.html +1 -1
  251. package/docs/iser.mjs.html +1 -1
  252. package/docs/isernot.mjs.html +1 -1
  253. package/docs/isestr.mjs.html +1 -1
  254. package/docs/isfun.mjs.html +1 -1
  255. package/docs/isint.mjs.html +1 -1
  256. package/docs/ismonth.mjs.html +1 -1
  257. package/docs/isn0int.mjs.html +1 -1
  258. package/docs/isn0num.mjs.html +1 -1
  259. package/docs/isnbr.mjs.html +1 -1
  260. package/docs/isnint.mjs.html +1 -1
  261. package/docs/isnnum.mjs.html +1 -1
  262. package/docs/isnull.mjs.html +1 -1
  263. package/docs/isnum.mjs.html +1 -1
  264. package/docs/isobj.mjs.html +1 -1
  265. package/docs/isobj0.mjs.html +1 -1
  266. package/docs/isp0int.mjs.html +1 -1
  267. package/docs/isp0num.mjs.html +1 -1
  268. package/docs/ispint.mjs.html +1 -1
  269. package/docs/ispm.mjs.html +1 -1
  270. package/docs/ispnum.mjs.html +1 -1
  271. package/docs/isstr.mjs.html +1 -1
  272. package/docs/isstr0.mjs.html +1 -1
  273. package/docs/istime.mjs.html +1 -1
  274. package/docs/istimeTZ.mjs.html +1 -1
  275. package/docs/istimems.mjs.html +1 -1
  276. package/docs/istimemsTZ.mjs.html +1 -1
  277. package/docs/isu16arr.mjs.html +1 -1
  278. package/docs/isu8arr.mjs.html +1 -1
  279. package/docs/isundefined.mjs.html +1 -1
  280. package/docs/j2o.mjs.html +1 -1
  281. package/docs/keysmat2ltdt.mjs.html +1 -1
  282. package/docs/log.mjs.html +1 -1
  283. package/docs/ltdt2vrtsable.mjs.html +1 -1
  284. package/docs/ltdtDiff.mjs.html +1 -1
  285. package/docs/ltdtDiffByKey.mjs.html +1 -1
  286. package/docs/ltdtkeys2mat.mjs.html +1 -1
  287. package/docs/ltdtkeysheads2mat.mjs.html +1 -1
  288. package/docs/ltdtmapping.mjs.html +1 -1
  289. package/docs/ltdtmerge.mjs.html +1 -1
  290. package/docs/ltdtpick.mjs.html +1 -1
  291. package/docs/ltdtpull.mjs.html +1 -1
  292. package/docs/mat2ltdt.mjs.html +1 -1
  293. package/docs/matConcat.mjs.html +1 -1
  294. package/docs/matDiff.mjs.html +1 -1
  295. package/docs/matat.mjs.html +1 -1
  296. package/docs/now2str.mjs.html +1 -1
  297. package/docs/now2strp.mjs.html +1 -1
  298. package/docs/nowDay2str.mjs.html +1 -1
  299. package/docs/nowms2str.mjs.html +1 -1
  300. package/docs/nowms2strp.mjs.html +1 -1
  301. package/docs/o2j.mjs.html +1 -1
  302. package/docs/obj2b64.mjs.html +1 -1
  303. package/docs/obj2pb64.mjs.html +1 -1
  304. package/docs/obj2str.mjs.html +1 -1
  305. package/docs/obj2stru8arr.mjs.html +1 -1
  306. package/docs/obj2u8arr.mjs.html +1 -1
  307. package/docs/objSortBy.mjs.html +1 -1
  308. package/docs/objSortByKeys.mjs.html +1 -1
  309. package/docs/ocr.mjs.html +1 -1
  310. package/docs/ocrDyn.mjs.html +1 -1
  311. package/docs/oo.mjs.html +1 -1
  312. package/docs/openLink.mjs.html +1 -1
  313. package/docs/pb642obj.mjs.html +1 -1
  314. package/docs/pmChain.mjs.html +1 -1
  315. package/docs/pmConvertResolve.mjs.html +1 -1
  316. package/docs/pmHook.mjs.html +1 -1
  317. package/docs/pmHookReject.mjs.html +1 -1
  318. package/docs/pmIni.mjs.html +1 -1
  319. package/docs/pmInvResolve.mjs.html +1 -1
  320. package/docs/pmMap.mjs.html +1 -1
  321. package/docs/pmQueue.mjs.html +1 -1
  322. package/docs/pmSeries.mjs.html +1 -1
  323. package/docs/pmThrottle.mjs.html +1 -1
  324. package/docs/pseudoRandom.mjs.html +1 -1
  325. package/docs/pseudoRandomIntRange.mjs.html +1 -1
  326. package/docs/pseudoRandomRange.mjs.html +1 -1
  327. package/docs/queue.mjs.html +1 -1
  328. package/docs/rang.mjs.html +1 -1
  329. package/docs/rep.mjs.html +1 -1
  330. package/docs/repObj.mjs.html +1 -1
  331. package/docs/replace.mjs.html +1 -1
  332. package/docs/replaceObj.mjs.html +1 -1
  333. package/docs/replacePlus.mjs.html +1 -1
  334. package/docs/round.mjs.html +1 -1
  335. package/docs/secd.mjs.html +1 -1
  336. package/docs/sep.mjs.html +1 -1
  337. package/docs/sepInt.mjs.html +1 -1
  338. package/docs/sind.mjs.html +1 -1
  339. package/docs/split.mjs.html +1 -1
  340. package/docs/str2aes.mjs.html +1 -1
  341. package/docs/str2b64.mjs.html +1 -1
  342. package/docs/str2hint.mjs.html +1 -1
  343. package/docs/str2md5.mjs.html +1 -1
  344. package/docs/str2obj.mjs.html +1 -1
  345. package/docs/str2sha512.mjs.html +1 -1
  346. package/docs/str2u8arr.mjs.html +1 -1
  347. package/docs/strCompare.mjs.html +1 -1
  348. package/docs/strDiff.mjs.html +1 -1
  349. package/docs/strFindFuzz.mjs.html +1 -1
  350. package/docs/strFindFuzzDyn.mjs.html +1 -1
  351. package/docs/strFindSimilar.mjs.html +1 -1
  352. package/docs/strdelleft.mjs.html +1 -1
  353. package/docs/strdelright.mjs.html +1 -1
  354. package/docs/strleft.mjs.html +1 -1
  355. package/docs/strmid.mjs.html +1 -1
  356. package/docs/strright.mjs.html +1 -1
  357. package/docs/stru8arr2obj.mjs.html +1 -1
  358. package/docs/tand.mjs.html +1 -1
  359. package/docs/time2day.mjs.html +1 -1
  360. package/docs/time2hour.mjs.html +1 -1
  361. package/docs/time2min.mjs.html +1 -1
  362. package/docs/timeTZ2day.mjs.html +1 -1
  363. package/docs/timeTZ2expire.mjs.html +1 -1
  364. package/docs/timeTZ2hour.mjs.html +1 -1
  365. package/docs/timeTZ2min.mjs.html +1 -1
  366. package/docs/timeTZ2past.mjs.html +1 -1
  367. package/docs/timems2day.mjs.html +1 -1
  368. package/docs/timems2hour.mjs.html +1 -1
  369. package/docs/timems2min.mjs.html +1 -1
  370. package/docs/timems2time.mjs.html +1 -1
  371. package/docs/timemsTZ2day.mjs.html +1 -1
  372. package/docs/timemsTZ2expire.mjs.html +1 -1
  373. package/docs/timemsTZ2hour.mjs.html +1 -1
  374. package/docs/timemsTZ2min.mjs.html +1 -1
  375. package/docs/timemsTZ2past.mjs.html +1 -1
  376. package/docs/timemsTZ2time.mjs.html +1 -1
  377. package/docs/treeObj.mjs.html +1 -1
  378. package/docs/treeToFilepath.mjs.html +1 -1
  379. package/docs/trim.mjs.html +1 -1
  380. package/docs/u16arr2b64.mjs.html +1 -1
  381. package/docs/u16arr2u8arr.mjs.html +1 -1
  382. package/docs/u8arr2ab.mjs.html +1 -1
  383. package/docs/u8arr2b64.mjs.html +1 -1
  384. package/docs/u8arr2blob.mjs.html +1 -1
  385. package/docs/u8arr2bs.mjs.html +1 -1
  386. package/docs/u8arr2obj.mjs.html +1 -1
  387. package/docs/u8arr2str.mjs.html +1 -1
  388. package/docs/u8arr2u16arr.mjs.html +1 -1
  389. package/docs/urlParse.mjs.html +1 -1
  390. package/docs/verifyValue.mjs.html +1 -1
  391. package/docs/waitFun.mjs.html +1 -1
  392. package/docs/wsemi.html +39 -6
  393. package/g.mjs +35 -2
  394. package/package.json +1 -1
  395. package/src/attstr.mjs +65 -3
  396. package/test/attstr.test.mjs +36 -0
  397. package/test2/attstr.test.mjs +0 -193
  398. /package/{test2 → test}/ab2blob.test.mjs +0 -0
  399. /package/{test2 → test}/ab2u8arr.test.mjs +0 -0
  400. /package/{test2 → test}/addExcelWorksheetFromData.test.mjs +0 -0
  401. /package/{test2 → test}/addMonth.test.mjs +0 -0
  402. /package/{test2 → test}/aes2str.test.mjs +0 -0
  403. /package/{test2 → test}/alive.test.mjs +0 -0
  404. /package/{test2 → test}/arr2dt.test.mjs +0 -0
  405. /package/{test2 → test}/arrAccum.test.mjs +0 -0
  406. /package/{test2 → test}/arrAdd.test.mjs +0 -0
  407. /package/{test2 → test}/arrAt.test.mjs +0 -0
  408. /package/{test2 → test}/arrDiff.test.mjs +0 -0
  409. /package/{test2 → test}/arrFilterByKeywords.test.mjs +0 -0
  410. /package/{test2 → test}/arrFilterByNum.test.mjs +0 -0
  411. /package/{test2 → test}/arrFilterByPnum.test.mjs +0 -0
  412. /package/{test2 → test}/arrFilterByPnumAndToLog.test.mjs +0 -0
  413. /package/{test2 → test}/arrFind.test.mjs +0 -0
  414. /package/{test2 → test}/arrGroupByMaxmin.test.mjs +0 -0
  415. /package/{test2 → test}/arrHas.test.mjs +0 -0
  416. /package/{test2 → test}/arrInsert.test.mjs +0 -0
  417. /package/{test2 → test}/arrLookupByMaxmin.test.mjs +0 -0
  418. /package/{test2 → test}/arrMax.test.mjs +0 -0
  419. /package/{test2 → test}/arrMin.test.mjs +0 -0
  420. /package/{test2 → test}/arrMulti.test.mjs +0 -0
  421. /package/{test2 → test}/arrNorm.test.mjs +0 -0
  422. /package/{test2 → test}/arrProduct.test.mjs +0 -0
  423. /package/{test2 → test}/arrReduce.test.mjs +0 -0
  424. /package/{test2 → test}/arrSep.test.mjs +0 -0
  425. /package/{test2 → test}/arrSort.test.mjs +0 -0
  426. /package/{test2 → test}/asind.test.mjs +0 -0
  427. /package/{test2 → test}/atan2d.test.mjs +0 -0
  428. /package/{test2 → test}/atand.test.mjs +0 -0
  429. /package/{test2 → test}/b642obj.test.mjs +0 -0
  430. /package/{test2 → test}/b642str.test.mjs +0 -0
  431. /package/{test2 → test}/b642u16arr.test.mjs +0 -0
  432. /package/{test2 → test}/b642u8arr.test.mjs +0 -0
  433. /package/{test2 → test}/binstr.test.mjs +0 -0
  434. /package/{test2 → test}/blob2ab.test.mjs +0 -0
  435. /package/{test2 → test}/blob2b64.test.mjs +0 -0
  436. /package/{test2 → test}/blob2str.test.mjs +0 -0
  437. /package/{test2 → test}/blob2u8arr.test.mjs +0 -0
  438. /package/{test2 → test}/blobs2b64s.test.mjs +0 -0
  439. /package/{test2 → test}/blobs2u8arrs.test.mjs +0 -0
  440. /package/{test2 → test}/bodyLog.test.mjs +0 -0
  441. /package/{test2 → test}/browserView.test.mjs +0 -0
  442. /package/{test2 → test}/browserViewFromBlob.test.mjs +0 -0
  443. /package/{test2 → test}/browserViewFromText.test.mjs +0 -0
  444. /package/{test2 → test}/browserViewFromU8arr.test.mjs +0 -0
  445. /package/{test2 → test}/bs2u8arr.test.mjs +0 -0
  446. /package/{test2 → test}/bufRead.test.mjs +0 -0
  447. /package/{test2 → test}/bufReadDbl.test.mjs +0 -0
  448. /package/{test2 → test}/bufWrite.test.mjs +0 -0
  449. /package/{test2 → test}/bufWriteDbl.test.mjs +0 -0
  450. /package/{test2 → test}/cache.test.mjs +0 -0
  451. /package/{test2 → test}/cbol.test.mjs +0 -0
  452. /package/{test2 → test}/cdbl.test.mjs +0 -0
  453. /package/{test2 → test}/cfilesize.test.mjs +0 -0
  454. /package/{test2 → test}/cfinancial.test.mjs +0 -0
  455. /package/{test2 → test}/cint.test.mjs +0 -0
  456. /package/{test2 → test}/clearXSS.test.mjs +0 -0
  457. /package/{test2 → test}/color.test.mjs +0 -0
  458. /package/{test2 → test}/composeToTree.test.mjs +0 -0
  459. /package/{test2 → test}/convertToTree.test.mjs +0 -0
  460. /package/{test2 → test}/copyStrToClipboard.test.mjs +0 -0
  461. /package/{test2 → test}/cosd.test.mjs +0 -0
  462. /package/{test2 → test}/cotd.test.mjs +0 -0
  463. /package/{test2 → test}/createExcelWorkbook.test.mjs +0 -0
  464. /package/{test2 → test}/cscd.test.mjs +0 -0
  465. /package/{test2 → test}/cstr.test.mjs +0 -0
  466. /package/{test2 → test}/day2cht.test.mjs +0 -0
  467. /package/{test2 → test}/debounce.test.mjs +0 -0
  468. /package/{test2 → test}/delay.test.mjs +0 -0
  469. /package/{test2 → test}/dig.test.mjs +0 -0
  470. /package/{test2 → test}/digExp.test.mjs +0 -0
  471. /package/{test2 → test}/domAlert.test.mjs +0 -0
  472. /package/{test2 → test}/domAppend.test.mjs +0 -0
  473. /package/{test2 → test}/domCancelEvent.test.mjs +0 -0
  474. /package/{test2 → test}/domCompareText.test.mjs +0 -0
  475. /package/{test2 → test}/domCompareTextDyn.test.mjs +0 -0
  476. /package/{test2 → test}/domConvertToPic.test.mjs +0 -0
  477. /package/{test2 → test}/domConvertToPicDyn.test.mjs +0 -0
  478. /package/{test2 → test}/domDetect.test.mjs +0 -0
  479. /package/{test2 → test}/domDrag.test.mjs +0 -0
  480. /package/{test2 → test}/domDragBarAndScroll.test.mjs +0 -0
  481. /package/{test2 → test}/domDragPreview.test.mjs +0 -0
  482. /package/{test2 → test}/domDropFiles.test.mjs +0 -0
  483. /package/{test2 → test}/domElementsFromPoint.test.mjs +0 -0
  484. /package/{test2 → test}/domFadeIn.test.mjs +0 -0
  485. /package/{test2 → test}/domFadeOut.test.mjs +0 -0
  486. /package/{test2 → test}/domFind.test.mjs +0 -0
  487. /package/{test2 → test}/domFinds.test.mjs +0 -0
  488. /package/{test2 → test}/domGetAttr.test.mjs +0 -0
  489. /package/{test2 → test}/domGetBoudRect.test.mjs +0 -0
  490. /package/{test2 → test}/domGetBoudRectRefSelf.test.mjs +0 -0
  491. /package/{test2 → test}/domGetFileAccept.test.mjs +0 -0
  492. /package/{test2 → test}/domGetFiles.test.mjs +0 -0
  493. /package/{test2 → test}/domGetParents.test.mjs +0 -0
  494. /package/{test2 → test}/domGetPointFromEvent.test.mjs +0 -0
  495. /package/{test2 → test}/domGetScrollableParent.test.mjs +0 -0
  496. /package/{test2 → test}/domGetWindowSize.test.mjs +0 -0
  497. /package/{test2 → test}/domIsClientXYIn.test.mjs +0 -0
  498. /package/{test2 → test}/domIsFocused.test.mjs +0 -0
  499. /package/{test2 → test}/domIsVisible.test.mjs +0 -0
  500. /package/{test2 → test}/domPrepend.test.mjs +0 -0
  501. /package/{test2 → test}/domRemove.test.mjs +0 -0
  502. /package/{test2 → test}/domRenderMarkdownMind.test.mjs +0 -0
  503. /package/{test2 → test}/domRenderMarkdownMindDyn.test.mjs +0 -0
  504. /package/{test2 → test}/domRipple.test.mjs +0 -0
  505. /package/{test2 → test}/domScrollIntoView.test.mjs +0 -0
  506. /package/{test2 → test}/domScrollTo.test.mjs +0 -0
  507. /package/{test2 → test}/domShowImages.test.mjs +0 -0
  508. /package/{test2 → test}/domShowImagesDyn.test.mjs +0 -0
  509. /package/{test2 → test}/domShowInputAndGetFiles.test.mjs +0 -0
  510. /package/{test2 → test}/domShowInputAndGetFilesU8Arrs.test.mjs +0 -0
  511. /package/{test2 → test}/domTooltip.test.mjs +0 -0
  512. /package/{test2 → test}/domTriggerEvent.test.mjs +0 -0
  513. /package/{test2 → test}/domVirtualCreate.test.mjs +0 -0
  514. /package/{test2 → test}/domVirtualCreateQueue.test.mjs +0 -0
  515. /package/{test2 → test}/downloadExcelFileFromData.test.mjs +0 -0
  516. /package/{test2 → test}/downloadExcelFileFromDataDyn.test.mjs +0 -0
  517. /package/{test2 → test}/downloadFileFromB64.test.mjs +0 -0
  518. /package/{test2 → test}/downloadFileFromBlob.test.mjs +0 -0
  519. /package/{test2 → test}/downloadFileFromText.test.mjs +0 -0
  520. /package/{test2 → test}/downloadFileFromU8Arr.test.mjs +0 -0
  521. /package/{test2 → test}/dtmapping.test.mjs +0 -0
  522. /package/{test2 → test}/dtpick.test.mjs +0 -0
  523. /package/{test2 → test}/evem.test.mjs +0 -0
  524. /package/{test2 → test}/execProcess.test.mjs +0 -0
  525. /package/{test2 → test}/execScript.test.mjs +0 -0
  526. /package/{test2 → test}/f2c.test.mjs +0 -0
  527. /package/{test2 → test}/filepathToTree.test.mjs +0 -0
  528. /package/{test2 → test}/files2data.test.mjs +0 -0
  529. /package/{test2 → test}/flattenToConn.test.mjs +0 -0
  530. /package/{test2 → test}/flattenTree.test.mjs +0 -0
  531. /package/{test2 → test}/fsCleanFolder.test.mjs +0 -0
  532. /package/{test2 → test}/fsCopyFolder.test.mjs +0 -0
  533. /package/{test2 → test}/fsCreateFile.test.mjs +0 -0
  534. /package/{test2 → test}/fsCreateFolder.test.mjs +0 -0
  535. /package/{test2 → test}/fsDeleteFile.test.mjs +0 -0
  536. /package/{test2 → test}/fsDeleteFolder.test.mjs +0 -0
  537. /package/{test2 → test}/fsEvem.test.mjs +0 -0
  538. /package/{test2 → test}/fsGetFilesInFolder.test.mjs +0 -0
  539. /package/{test2 → test}/fsGetFoldersInFolder.test.mjs +0 -0
  540. /package/{test2 → test}/fsIsFile.test.mjs +0 -0
  541. /package/{test2 → test}/fsIsFolder.test.mjs +0 -0
  542. /package/{test2 → test}/fsReadText.test.mjs +0 -0
  543. /package/{test2 → test}/fsRenameFile.test.mjs +0 -0
  544. /package/{test2 → test}/fsRenameFolder.test.mjs +0 -0
  545. /package/{test2 → test}/fsTreeFolder.test.mjs +0 -0
  546. /package/{test2 → test}/fsWatchFile.test.mjs +0 -0
  547. /package/{test2 → test}/fsWriteText.test.mjs +0 -0
  548. /package/{test2 → test}/genGradientColor.test.mjs +0 -0
  549. /package/{test2 → test}/genID.test.mjs +0 -0
  550. /package/{test2 → test}/genPm.test.mjs +0 -0
  551. /package/{test2 → test}/getBufferSize.test.mjs +0 -0
  552. /package/{test2 → test}/getClearPathName.test.mjs +0 -0
  553. /package/{test2 → test}/getCsvStrFromData.test.mjs +0 -0
  554. /package/{test2 → test}/getDataFromExcelFileU8Arr.test.mjs +0 -0
  555. /package/{test2 → test}/getDataFromExcelFileU8ArrDyn.test.mjs +0 -0
  556. /package/{test2 → test}/getDirName.test.mjs +0 -0
  557. /package/{test2 → test}/getEnv.test.mjs +0 -0
  558. /package/{test2 → test}/getExcelU8ArrFromData.test.mjs +0 -0
  559. /package/{test2 → test}/getExcelU8ArrFromWorkbook.test.mjs +0 -0
  560. /package/{test2 → test}/getExcelWorkbookFromData.test.mjs +0 -0
  561. /package/{test2 → test}/getExcelWorkbookFromWorksheet.test.mjs +0 -0
  562. /package/{test2 → test}/getExcelWorksheetFromData.test.mjs +0 -0
  563. /package/{test2 → test}/getFileAccept.test.mjs +0 -0
  564. /package/{test2 → test}/getFileName.test.mjs +0 -0
  565. /package/{test2 → test}/getFileTrueName.test.mjs +0 -0
  566. /package/{test2 → test}/getGlobal.test.mjs +0 -0
  567. /package/{test2 → test}/getObjSize.test.mjs +0 -0
  568. /package/{test2 → test}/getTimeBetween.test.mjs +0 -0
  569. /package/{test2 → test}/getTimeFromUnit.test.mjs +0 -0
  570. /package/{test2 → test}/getTimeObject.test.mjs +0 -0
  571. /package/{test2 → test}/getTimeRange.test.mjs +0 -0
  572. /package/{test2 → test}/getUserAgent.test.mjs +0 -0
  573. /package/{test2 → test}/getUserAgentDyn.test.mjs +0 -0
  574. /package/{test2 → test}/getltdtkeys.test.mjs +0 -0
  575. /package/{test2 → test}/haskey.test.mjs +0 -0
  576. /package/{test2 → test}/html2pic.test.mjs +0 -0
  577. /package/{test2 → test}/html2picDyn.test.mjs +0 -0
  578. /package/{test2 → test}/html2str.test.mjs +0 -0
  579. /package/{test2 → test}/html2strDyn.test.mjs +0 -0
  580. /package/{test2 → test}/htmlDecode.test.mjs +0 -0
  581. /package/{test2 → test}/htmlEncode.test.mjs +0 -0
  582. /package/{test2 → test}/importResources.test.mjs +0 -0
  583. /package/{test2 → test}/interp1.test.mjs +0 -0
  584. /package/{test2 → test}/isDev.test.mjs +0 -0
  585. /package/{test2 → test}/isEle.test.mjs +0 -0
  586. /package/{test2 → test}/isEleExistByID.test.mjs +0 -0
  587. /package/{test2 → test}/isEmail.test.mjs +0 -0
  588. /package/{test2 → test}/isIE.test.mjs +0 -0
  589. /package/{test2 → test}/isNarrow.test.mjs +0 -0
  590. /package/{test2 → test}/isStrHasCapital.test.mjs +0 -0
  591. /package/{test2 → test}/isStrHasLowerCase.test.mjs +0 -0
  592. /package/{test2 → test}/isStrHasNumber.test.mjs +0 -0
  593. /package/{test2 → test}/isUserIdentify.test.mjs +0 -0
  594. /package/{test2 → test}/isUserName.test.mjs +0 -0
  595. /package/{test2 → test}/isUserPW.test.mjs +0 -0
  596. /package/{test2 → test}/isWindow.test.mjs +0 -0
  597. /package/{test2 → test}/isab.test.mjs +0 -0
  598. /package/{test2 → test}/isarr.test.mjs +0 -0
  599. /package/{test2 → test}/isarr0.test.mjs +0 -0
  600. /package/{test2 → test}/isblob.test.mjs +0 -0
  601. /package/{test2 → test}/isbol.test.mjs +0 -0
  602. /package/{test2 → test}/isday.test.mjs +0 -0
  603. /package/{test2 → test}/isearr.test.mjs +0 -0
  604. /package/{test2 → test}/iseobj.test.mjs +0 -0
  605. /package/{test2 → test}/iser.test.mjs +0 -0
  606. /package/{test2 → test}/isernot.test.mjs +0 -0
  607. /package/{test2 → test}/isestr.test.mjs +0 -0
  608. /package/{test2 → test}/isfun.test.mjs +0 -0
  609. /package/{test2 → test}/isint.test.mjs +0 -0
  610. /package/{test2 → test}/ismonth.test.mjs +0 -0
  611. /package/{test2 → test}/isn0int.test.mjs +0 -0
  612. /package/{test2 → test}/isn0num.test.mjs +0 -0
  613. /package/{test2 → test}/isnbr.test.mjs +0 -0
  614. /package/{test2 → test}/isnint.test.mjs +0 -0
  615. /package/{test2 → test}/isnnum.test.mjs +0 -0
  616. /package/{test2 → test}/isnull.test.mjs +0 -0
  617. /package/{test2 → test}/isnum.test.mjs +0 -0
  618. /package/{test2 → test}/isobj.test.mjs +0 -0
  619. /package/{test2 → test}/isobj0.test.mjs +0 -0
  620. /package/{test2 → test}/isp0int.test.mjs +0 -0
  621. /package/{test2 → test}/isp0num.test.mjs +0 -0
  622. /package/{test2 → test}/ispint.test.mjs +0 -0
  623. /package/{test2 → test}/ispm.test.mjs +0 -0
  624. /package/{test2 → test}/ispnum.test.mjs +0 -0
  625. /package/{test2 → test}/isstr.test.mjs +0 -0
  626. /package/{test2 → test}/isstr0.test.mjs +0 -0
  627. /package/{test2 → test}/istime.test.mjs +0 -0
  628. /package/{test2 → test}/istimeTZ.test.mjs +0 -0
  629. /package/{test2 → test}/istimems.test.mjs +0 -0
  630. /package/{test2 → test}/istimemsTZ.test.mjs +0 -0
  631. /package/{test2 → test}/isu16arr.test.mjs +0 -0
  632. /package/{test2 → test}/isu8arr.test.mjs +0 -0
  633. /package/{test2 → test}/isundefined.test.mjs +0 -0
  634. /package/{test2 → test}/j2o.test.mjs +0 -0
  635. /package/{test2 → test}/keysmat2ltdt.test.mjs +0 -0
  636. /package/{test2 → test}/log.test.mjs +0 -0
  637. /package/{test2 → test}/ltdt2vrtsable.test.mjs +0 -0
  638. /package/{test2 → test}/ltdtDiff.test.mjs +0 -0
  639. /package/{test2 → test}/ltdtDiffByKey.test.mjs +0 -0
  640. /package/{test2 → test}/ltdtkeys2mat.test.mjs +0 -0
  641. /package/{test2 → test}/ltdtkeysheads2mat.test.mjs +0 -0
  642. /package/{test2 → test}/ltdtmapping.test.mjs +0 -0
  643. /package/{test2 → test}/ltdtmerge.test.mjs +0 -0
  644. /package/{test2 → test}/ltdtpick.test.mjs +0 -0
  645. /package/{test2 → test}/ltdtpull.test.mjs +0 -0
  646. /package/{test2 → test}/mat2ltdt.test.mjs +0 -0
  647. /package/{test2 → test}/matConcat.test.mjs +0 -0
  648. /package/{test2 → test}/matDiff.test.mjs +0 -0
  649. /package/{test2 → test}/matat.test.mjs +0 -0
  650. /package/{test2 → test}/now2str.test.mjs +0 -0
  651. /package/{test2 → test}/now2strp.test.mjs +0 -0
  652. /package/{test2 → test}/nowDay2str.test.mjs +0 -0
  653. /package/{test2 → test}/nowms2str.test.mjs +0 -0
  654. /package/{test2 → test}/nowms2strp.test.mjs +0 -0
  655. /package/{test2 → test}/o2j.test.mjs +0 -0
  656. /package/{test2 → test}/obj2b64.test.mjs +0 -0
  657. /package/{test2 → test}/obj2pb64.test.mjs +0 -0
  658. /package/{test2 → test}/obj2str.test.mjs +0 -0
  659. /package/{test2 → test}/obj2stru8arr.test.mjs +0 -0
  660. /package/{test2 → test}/obj2u8arr.test.mjs +0 -0
  661. /package/{test2 → test}/objSortBy.test.mjs +0 -0
  662. /package/{test2 → test}/objSortByKeys.test.mjs +0 -0
  663. /package/{test2 → test}/ocr.test.mjs +0 -0
  664. /package/{test2 → test}/ocrDyn.test.mjs +0 -0
  665. /package/{test2 → test}/oo.test.mjs +0 -0
  666. /package/{test2 → test}/openLink.test.mjs +0 -0
  667. /package/{test2 → test}/pb642obj.test.mjs +0 -0
  668. /package/{test2 → test}/pm2resolve.test.mjs +0 -0
  669. /package/{test2 → test}/pmChain.test.mjs +0 -0
  670. /package/{test2 → test}/pmConvertResolve.test.mjs +0 -0
  671. /package/{test2 → test}/pmHook.test.mjs +0 -0
  672. /package/{test2 → test}/pmHookReject.test.mjs +0 -0
  673. /package/{test2 → test}/pmIni.test.mjs +0 -0
  674. /package/{test2 → test}/pmInvResolve.test.mjs +0 -0
  675. /package/{test2 → test}/pmMap.test.mjs +0 -0
  676. /package/{test2 → test}/pmQueue.test.mjs +0 -0
  677. /package/{test2 → test}/pmSeries.test.mjs +0 -0
  678. /package/{test2 → test}/pmThrottle.test.mjs +0 -0
  679. /package/{test2 → test}/pseudoRandom.test.mjs +0 -0
  680. /package/{test2 → test}/pseudoRandomIntRange.test.mjs +0 -0
  681. /package/{test2 → test}/pseudoRandomRange.test.mjs +0 -0
  682. /package/{test2 → test}/queue.test.mjs +0 -0
  683. /package/{test2 → test}/rang.test.mjs +0 -0
  684. /package/{test2 → test}/rep.test.mjs +0 -0
  685. /package/{test2 → test}/repObj.test.mjs +0 -0
  686. /package/{test2 → test}/replace.test.mjs +0 -0
  687. /package/{test2 → test}/replaceObj.test.mjs +0 -0
  688. /package/{test2 → test}/replacePlus.test.mjs +0 -0
  689. /package/{test2 → test}/round.test.mjs +0 -0
  690. /package/{test2 → test}/secd.test.mjs +0 -0
  691. /package/{test2 → test}/sep.test.mjs +0 -0
  692. /package/{test2 → test}/sepInt.test.mjs +0 -0
  693. /package/{test2 → test}/sind.test.mjs +0 -0
  694. /package/{test2 → test}/split.test.mjs +0 -0
  695. /package/{test2 → test}/str2aes.test.mjs +0 -0
  696. /package/{test2 → test}/str2b64.test.mjs +0 -0
  697. /package/{test2 → test}/str2hint.test.mjs +0 -0
  698. /package/{test2 → test}/str2md5.test.mjs +0 -0
  699. /package/{test2 → test}/str2obj.test.mjs +0 -0
  700. /package/{test2 → test}/str2sha512.test.mjs +0 -0
  701. /package/{test2 → test}/str2u8arr.test.mjs +0 -0
  702. /package/{test2 → test}/strCompare.test.mjs +0 -0
  703. /package/{test2 → test}/strDiff.test.mjs +0 -0
  704. /package/{test2 → test}/strFindFuzz.test.mjs +0 -0
  705. /package/{test2 → test}/strFindFuzzDyn.test.mjs +0 -0
  706. /package/{test2 → test}/strFindSimilar.test.mjs +0 -0
  707. /package/{test2 → test}/strdelleft.test.mjs +0 -0
  708. /package/{test2 → test}/strdelright.test.mjs +0 -0
  709. /package/{test2 → test}/strleft.test.mjs +0 -0
  710. /package/{test2 → test}/strmid.test.mjs +0 -0
  711. /package/{test2 → test}/strright.test.mjs +0 -0
  712. /package/{test2 → test}/stru8arr2obj.test.mjs +0 -0
  713. /package/{test2 → test}/tand.test.mjs +0 -0
  714. /package/{test2 → test}/time2day.test.mjs +0 -0
  715. /package/{test2 → test}/time2hour.test.mjs +0 -0
  716. /package/{test2 → test}/time2min.test.mjs +0 -0
  717. /package/{test2 → test}/timeTZ2day.test.mjs +0 -0
  718. /package/{test2 → test}/timeTZ2expire.test.mjs +0 -0
  719. /package/{test2 → test}/timeTZ2hour.test.mjs +0 -0
  720. /package/{test2 → test}/timeTZ2min.test.mjs +0 -0
  721. /package/{test2 → test}/timeTZ2past.test.mjs +0 -0
  722. /package/{test2 → test}/timems2day.test.mjs +0 -0
  723. /package/{test2 → test}/timems2hour.test.mjs +0 -0
  724. /package/{test2 → test}/timems2min.test.mjs +0 -0
  725. /package/{test2 → test}/timems2time.test.mjs +0 -0
  726. /package/{test2 → test}/timemsTZ2day.test.mjs +0 -0
  727. /package/{test2 → test}/timemsTZ2expire.test.mjs +0 -0
  728. /package/{test2 → test}/timemsTZ2hour.test.mjs +0 -0
  729. /package/{test2 → test}/timemsTZ2min.test.mjs +0 -0
  730. /package/{test2 → test}/timemsTZ2past.test.mjs +0 -0
  731. /package/{test2 → test}/timemsTZ2time.test.mjs +0 -0
  732. /package/{test2 → test}/treeObj.test.mjs +0 -0
  733. /package/{test2 → test}/treeToFilepath.test.mjs +0 -0
  734. /package/{test2 → test}/trim.test.mjs +0 -0
  735. /package/{test2 → test}/u16arr2b64.test.mjs +0 -0
  736. /package/{test2 → test}/u16arr2u8arr.test.mjs +0 -0
  737. /package/{test2 → test}/u8arr2ab.test.mjs +0 -0
  738. /package/{test2 → test}/u8arr2b64.test.mjs +0 -0
  739. /package/{test2 → test}/u8arr2blob.test.mjs +0 -0
  740. /package/{test2 → test}/u8arr2bs.test.mjs +0 -0
  741. /package/{test2 → test}/u8arr2obj.test.mjs +0 -0
  742. /package/{test2 → test}/u8arr2str.test.mjs +0 -0
  743. /package/{test2 → test}/u8arr2u16arr.test.mjs +0 -0
  744. /package/{test2 → test}/urlParse.test.mjs +0 -0
  745. /package/{test2 → test}/verifyValue.test.mjs +0 -0
  746. /package/{test2 → test}/waitFun.test.mjs +0 -0
package/dist/wsemi.umd.js CHANGED
@@ -1,9 +1,9 @@
1
1
  /*!
2
- * wsemi v1.7.20
2
+ * wsemi v1.7.21
3
3
  * (c) 2018-2021 yuda-lyu(semisphere)
4
4
  * Released under the MIT License.
5
5
  */
6
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("xlsx"),require("dayjs"),require("xss"),require("viewerjs"),require("child_process"),require("fs"),require("path"),require("crypto"),require("ua-parser-js"),require("htmlparser"),require("tesseract.js"),require("fuse.js")):"function"==typeof define&&define.amd?define(["exports","xlsx","dayjs","xss","viewerjs","child_process","fs","path","crypto","ua-parser-js","htmlparser","tesseract.js","fuse.js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.XLSX,e.dayjs,e.filterXSS,e.viewerjs,e.child_process,e.fs,e.path,e.crypto,e.UAParser,e.htmlparser,e.tesseractjs,e.Fuse)}(this,(function(e,t,n,r,i,o,u,l,a,s,c,f,d){"use strict";function p(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var h=p(t);function v(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function m(e){if(!v(e))return new Uint8Array;return new Uint8Array(e)}var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b=Array.isArray,w="object"==typeof g&&g&&g.Object===Object&&g,x=w,j="object"==typeof self&&self&&self.Object===Object&&self,O=x||j||Function("return this")(),S=O.Symbol,E=S,D=Object.prototype,k=D.hasOwnProperty,M=D.toString,_=E?E.toStringTag:void 0;var A=function(e){var t=k.call(e,_),n=e[_];try{e[_]=void 0;var r=!0}catch(e){}var i=M.call(e);return r&&(t?e[_]=n:delete e[_]),i},P=Object.prototype.toString;var T=A,Y=function(e){return P.call(e)},H=S?S.toStringTag:void 0;var I=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":H&&H in Object(e)?T(e):Y(e)};var L=function(e){return null!=e&&"object"==typeof e},N=I,$=L;var C=function(e){return"symbol"==typeof e||$(e)&&"[object Symbol]"==N(e)},B=y(C),F=b,R=C,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/;var W=function(e,t){if(F(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!R(e))||(U.test(e)||!z.test(e)||null!=t&&e in Object(t))};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},V=I,X=q;var Z,G=function(e){if(!X(e))return!1;var t=V(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K=y(G),J=O["__core-js_shared__"],Q=(Z=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var ee=function(e){return!!Q&&Q in e},te=Function.prototype.toString;var ne=function(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""},re=G,ie=ee,oe=q,ue=ne,le=/^\[object .+?Constructor\]$/,ae=Function.prototype,se=Object.prototype,ce=ae.toString,fe=se.hasOwnProperty,de=RegExp("^"+ce.call(fe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var pe=function(e){return!(!oe(e)||ie(e))&&(re(e)?de:le).test(ue(e))},he=function(e,t){return null==e?void 0:e[t]};var ve=function(e,t){var n=he(e,t);return pe(n)?n:void 0},me=ve(Object,"create"),ge=me;var ye=function(){this.__data__=ge?ge(null):{},this.size=0};var be=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},we=me,xe=Object.prototype.hasOwnProperty;var je=function(e){var t=this.__data__;if(we){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(t,e)?t[e]:void 0},Oe=me,Se=Object.prototype.hasOwnProperty;var Ee=me;var De=ye,ke=be,Me=je,_e=function(e){var t=this.__data__;return Oe?void 0!==t[e]:Se.call(t,e)},Ae=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ee&&void 0===t?"__lodash_hash_undefined__":t,this};function Pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pe.prototype.clear=De,Pe.prototype.delete=ke,Pe.prototype.get=Me,Pe.prototype.has=_e,Pe.prototype.set=Ae;var Te=Pe;var Ye=function(){this.__data__=[],this.size=0};var He=function(e,t){return e===t||e!=e&&t!=t},Ie=He;var Le=function(e,t){for(var n=e.length;n--;)if(Ie(e[n][0],t))return n;return-1},Ne=Le,$e=Array.prototype.splice;var Ce=Le;var Be=Le;var Fe=Le;var Re=Ye,ze=function(e){var t=this.__data__,n=Ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Ue=function(e){var t=this.__data__,n=Ce(t,e);return n<0?void 0:t[n][1]},We=function(e){return Be(this.__data__,e)>-1},qe=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ve.prototype.clear=Re,Ve.prototype.delete=ze,Ve.prototype.get=Ue,Ve.prototype.has=We,Ve.prototype.set=qe;var Xe=Ve,Ze=ve(O,"Map"),Ge=Te,Ke=Xe,Je=Ze;var Qe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var et=function(e,t){var n=e.__data__;return Qe(t)?n["string"==typeof t?"string":"hash"]:n.map},tt=et;var nt=et;var rt=et;var it=et;var ot=function(e,t){var n=it(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ut=function(){this.size=0,this.__data__={hash:new Ge,map:new(Je||Ke),string:new Ge}},lt=function(e){var t=tt(this,e).delete(e);return this.size-=t?1:0,t},at=function(e){return nt(this,e).get(e)},st=function(e){return rt(this,e).has(e)},ct=ot;function ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ft.prototype.clear=ut,ft.prototype.delete=lt,ft.prototype.get=at,ft.prototype.has=st,ft.prototype.set=ct;var dt=ft,pt=dt;function ht(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=e.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(ht.Cache||pt),n}ht.Cache=pt;var vt=ht;var mt=function(e){var t=vt(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yt=/\\(\\)?/g,bt=mt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(gt,(function(e,n,r,i){t.push(r?i.replace(yt,"$1"):n||e)})),t}));var wt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},xt=wt,jt=b,Ot=C,St=S?S.prototype:void 0,Et=St?St.toString:void 0;var Dt=function e(t){if("string"==typeof t)return t;if(jt(t))return xt(t,e)+"";if(Ot(t))return Et?Et.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},kt=Dt;var Mt=function(e){return null==e?"":kt(e)},_t=b,At=W,Pt=bt,Tt=Mt;var Yt=function(e,t){return _t(e)?e:At(e,t)?[e]:Pt(Tt(e))},Ht=C;var It=function(e){if("string"==typeof e||Ht(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Lt=Yt,Nt=It;var $t=function(e,t){for(var n=0,r=(t=Lt(t,e)).length;null!=e&&n<r;)e=e[Nt(t[n++])];return n&&n==r?e:void 0},Ct=$t;var Bt=function(e,t,n){var r=null==e?void 0:Ct(e,t);return void 0===r?n:r},Ft=y(Bt);function Rt(e){return"[object Object]"===Object.prototype.toString.call(e)}function zt(e){if(Rt(e)){for(let t in e)return!0;return!1}return!1}function Ut(e){return"[object Array]"===Object.prototype.toString.call(e)}function Wt(e){return"[object String]"===Object.prototype.toString.call(e)}function qt(e){return!(!Wt(e)||""===e)}function Vt(e){return"[object Number]"===Object.prototype.toString.call(e)}function Xt(e){let t=!1;return qt(e)?t=!isNaN(Number(e)):Vt(e)&&(t=!0),t}function Zt(e,t){return!!Rt(e)&&(!(!qt(t)&&!Xt(t))&&t in e)}var Gt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0};var Kt=function(e){return function(t,n,r){for(var i=-1,o=Object(t),u=r(t),l=u.length;l--;){var a=u[e?l:++i];if(!1===n(o[a],a,o))break}return t}}();var Jt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Qt=I,en=L;var tn=function(e){return en(e)&&"[object Arguments]"==Qt(e)},nn=L,rn=Object.prototype,on=rn.hasOwnProperty,un=rn.propertyIsEnumerable,ln=tn(function(){return arguments}())?tn:function(e){return nn(e)&&on.call(e,"callee")&&!un.call(e,"callee")},an=ln,sn={exports:{}};var cn=function(){return!1};!function(e,t){var n=O,r=cn,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,u=o&&o.exports===i?n.Buffer:void 0,l=(u?u.isBuffer:void 0)||r;e.exports=l}(sn,sn.exports);var fn=sn.exports,dn=/^(?:0|[1-9]\d*)$/;var pn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&dn.test(e))&&e>-1&&e%1==0&&e<t};var hn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},vn=I,mn=hn,gn=L,yn={};yn["[object Float32Array]"]=yn["[object Float64Array]"]=yn["[object Int8Array]"]=yn["[object Int16Array]"]=yn["[object Int32Array]"]=yn["[object Uint8Array]"]=yn["[object Uint8ClampedArray]"]=yn["[object Uint16Array]"]=yn["[object Uint32Array]"]=!0,yn["[object Arguments]"]=yn["[object Array]"]=yn["[object ArrayBuffer]"]=yn["[object Boolean]"]=yn["[object DataView]"]=yn["[object Date]"]=yn["[object Error]"]=yn["[object Function]"]=yn["[object Map]"]=yn["[object Number]"]=yn["[object Object]"]=yn["[object RegExp]"]=yn["[object Set]"]=yn["[object String]"]=yn["[object WeakMap]"]=!1;var bn=function(e){return gn(e)&&mn(e.length)&&!!yn[vn(e)]};var wn=function(e){return function(t){return e(t)}},xn={exports:{}};!function(e,t){var n=w,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=u}(xn,xn.exports);var jn=xn.exports,On=bn,Sn=wn,En=jn&&jn.isTypedArray,Dn=En?Sn(En):On,kn=Jt,Mn=an,_n=b,An=fn,Pn=pn,Tn=Dn,Yn=Object.prototype.hasOwnProperty;var Hn=function(e,t){var n=_n(e),r=!n&&Mn(e),i=!n&&!r&&An(e),o=!n&&!r&&!i&&Tn(e),u=n||r||i||o,l=u?kn(e.length,String):[],a=l.length;for(var s in e)!t&&!Yn.call(e,s)||u&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Pn(s,a))||l.push(s);return l},In=Object.prototype;var Ln=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||In)};var Nn=function(e,t){return function(n){return e(t(n))}},$n=Nn(Object.keys,Object),Cn=Ln,Bn=$n,Fn=Object.prototype.hasOwnProperty;var Rn=function(e){if(!Cn(e))return Bn(e);var t=[];for(var n in Object(e))Fn.call(e,n)&&"constructor"!=n&&t.push(n);return t},zn=G,Un=hn;var Wn=function(e){return null!=e&&Un(e.length)&&!zn(e)},qn=Hn,Vn=Rn,Xn=Wn;var Zn=function(e){return Xn(e)?qn(e):Vn(e)},Gn=y(Zn),Kn=Kt,Jn=Zn;var Qn=Wn;var er=function(e,t){return function(n,r){if(null==n)return n;if(!Qn(n))return e(n,r);for(var i=n.length,o=t?i:-1,u=Object(n);(t?o--:++o<i)&&!1!==r(u[o],o,u););return n}}((function(e,t){return e&&Kn(e,t,Jn)})),tr=er;var nr=function(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n},rr=Xe;var ir=Xe,or=Ze,ur=dt;var lr=Xe,ar=function(){this.__data__=new rr,this.size=0},sr=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},cr=function(e){return this.__data__.get(e)},fr=function(e){return this.__data__.has(e)},dr=function(e,t){var n=this.__data__;if(n instanceof ir){var r=n.__data__;if(!or||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ur(r)}return n.set(e,t),this.size=n.size,this};function pr(e){var t=this.__data__=new lr(e);this.size=t.size}pr.prototype.clear=ar,pr.prototype.delete=sr,pr.prototype.get=cr,pr.prototype.has=fr,pr.prototype.set=dr;var hr=pr;var vr=dt,mr=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},gr=function(e){return this.__data__.has(e)};function yr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new vr;++t<n;)this.add(e[t])}yr.prototype.add=yr.prototype.push=mr,yr.prototype.has=gr;var br=yr;var wr=function(e,t){return e.has(t)},xr=br,jr=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Or=wr;var Sr=function(e,t,n,r,i,o){var u=1&n,l=e.length,a=t.length;if(l!=a&&!(u&&a>l))return!1;var s=o.get(e),c=o.get(t);if(s&&c)return s==t&&c==e;var f=-1,d=!0,p=2&n?new xr:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var h=e[f],v=t[f];if(r)var m=u?r(v,h,f,t,e,o):r(h,v,f,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!jr(t,(function(e,t){if(!Or(p,t)&&(h===e||i(h,e,n,r,o)))return p.push(t)}))){d=!1;break}}else if(h!==v&&!i(h,v,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d},Er=O.Uint8Array;var Dr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var kr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Mr=Er,_r=He,Ar=Sr,Pr=Dr,Tr=kr,Yr=S?S.prototype:void 0,Hr=Yr?Yr.valueOf:void 0;var Ir=function(e,t,n,r,i,o,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Mr(e),new Mr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Pr;case"[object Set]":var a=1&r;if(l||(l=Tr),e.size!=t.size&&!a)return!1;var s=u.get(e);if(s)return s==t;r|=2,u.set(e,t);var c=Ar(l(e),l(t),r,i,o,u);return u.delete(e),c;case"[object Symbol]":if(Hr)return Hr.call(e)==Hr.call(t)}return!1};var Lr=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Nr=Lr,$r=b;var Cr=function(e,t,n){var r=t(e);return $r(e)?r:Nr(r,n(e))};var Br=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var u=e[n];t(u,n,e)&&(o[i++]=u)}return o};var Fr=function(){return[]},Rr=Br,zr=Fr,Ur=Object.prototype.propertyIsEnumerable,Wr=Object.getOwnPropertySymbols,qr=Wr?function(e){return null==e?[]:(e=Object(e),Rr(Wr(e),(function(t){return Ur.call(e,t)})))}:zr,Vr=Cr,Xr=qr,Zr=Zn;var Gr=function(e){return Vr(e,Zr,Xr)},Kr=Gr,Jr=Object.prototype.hasOwnProperty;var Qr=function(e,t,n,r,i,o){var u=1&n,l=Kr(e),a=l.length;if(a!=Kr(t).length&&!u)return!1;for(var s=a;s--;){var c=l[s];if(!(u?c in t:Jr.call(t,c)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=u;++s<a;){var v=e[c=l[s]],m=t[c];if(r)var g=u?r(m,v,c,t,e,o):r(v,m,c,e,t,o);if(!(void 0===g?v===m||i(v,m,n,r,o):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},ei=ve(O,"DataView"),ti=ve(O,"Promise"),ni=ve(O,"Set"),ri=ei,ii=Ze,oi=ti,ui=ni,li=ve(O,"WeakMap"),ai=I,si=ne,ci="[object Map]",fi="[object Promise]",di="[object Set]",pi="[object WeakMap]",hi="[object DataView]",vi=si(ri),mi=si(ii),gi=si(oi),yi=si(ui),bi=si(li),wi=ai;(ri&&wi(new ri(new ArrayBuffer(1)))!=hi||ii&&wi(new ii)!=ci||oi&&wi(oi.resolve())!=fi||ui&&wi(new ui)!=di||li&&wi(new li)!=pi)&&(wi=function(e){var t=ai(e),n="[object Object]"==t?e.constructor:void 0,r=n?si(n):"";if(r)switch(r){case vi:return hi;case mi:return ci;case gi:return fi;case yi:return di;case bi:return pi}return t});var xi=wi,ji=hr,Oi=Sr,Si=Ir,Ei=Qr,Di=xi,ki=b,Mi=fn,_i=Dn,Ai="[object Arguments]",Pi="[object Array]",Ti="[object Object]",Yi=Object.prototype.hasOwnProperty;var Hi=function(e,t,n,r,i,o){var u=ki(e),l=ki(t),a=u?Pi:Di(e),s=l?Pi:Di(t),c=(a=a==Ai?Ti:a)==Ti,f=(s=s==Ai?Ti:s)==Ti,d=a==s;if(d&&Mi(e)){if(!Mi(t))return!1;u=!0,c=!1}if(d&&!c)return o||(o=new ji),u||_i(e)?Oi(e,t,n,r,i,o):Si(e,t,a,n,r,i,o);if(!(1&n)){var p=c&&Yi.call(e,"__wrapped__"),h=f&&Yi.call(t,"__wrapped__");if(p||h){var v=p?e.value():e,m=h?t.value():t;return o||(o=new ji),i(v,m,n,r,o)}}return!!d&&(o||(o=new ji),Ei(e,t,n,r,i,o))},Ii=L;var Li=function e(t,n,r,i,o){return t===n||(null==t||null==n||!Ii(t)&&!Ii(n)?t!=t&&n!=n:Hi(t,n,r,i,e,o))},Ni=hr,$i=Li;var Ci=q;var Bi=function(e){return e==e&&!Ci(e)},Fi=Bi,Ri=Zn;var zi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},Ui=function(e,t,n,r){var i=n.length,o=i,u=!r;if(null==e)return!o;for(e=Object(e);i--;){var l=n[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var a=(l=n[i])[0],s=e[a],c=l[1];if(u&&l[2]){if(void 0===s&&!(a in e))return!1}else{var f=new Ni;if(r)var d=r(s,c,a,e,t,f);if(!(void 0===d?$i(c,s,3,r,f):d))return!1}}return!0},Wi=function(e){for(var t=Ri(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Fi(i)]}return t},qi=zi;var Vi=Yt,Xi=an,Zi=b,Gi=pn,Ki=hn,Ji=It;var Qi=function(e,t,n){for(var r=-1,i=(t=Vi(t,e)).length,o=!1;++r<i;){var u=Ji(t[r]);if(!(o=null!=e&&n(e,u)))break;e=e[u]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ki(i)&&Gi(u,i)&&(Zi(e)||Xi(e))},eo=function(e,t){return null!=e&&t in Object(e)},to=Qi;var no=function(e,t){return null!=e&&to(e,t,eo)},ro=Li,io=Bt,oo=no,uo=W,lo=Bi,ao=zi,so=It;var co=function(e,t){return uo(e)&&lo(t)?ao(so(e),t):function(n){var r=io(n,e);return void 0===r&&r===t?oo(n,e):ro(t,r,3)}};var fo=function(e){return e};var po=function(e){return function(t){return null==t?void 0:t[e]}},ho=$t;var vo=function(e){return function(t){return ho(t,e)}},mo=po,go=vo,yo=W,bo=It;var wo=function(e){return yo(e)?mo(bo(e)):go(e)},xo=function(e){var t=Wi(e);return 1==t.length&&t[0][2]?qi(t[0][0],t[0][1]):function(n){return n===e||Ui(n,e,t)}},jo=co,Oo=fo,So=b,Eo=wo;var Do=function(e){return"function"==typeof e?e:null==e?Oo:"object"==typeof e?So(e)?jo(e[0],e[1]):xo(e):Eo(e)},ko=He,Mo=Wn,_o=pn,Ao=q;var Po=function(e,t,n){if(!Ao(n))return!1;var r=typeof t;return!!("number"==r?Mo(n)&&_o(t,n.length):"string"==r&&t in n)&&ko(n[t],e)},To=Gt,Yo=nr,Ho=Do,Io=b,Lo=Po;var No=y((function(e,t,n){var r=Io(e)?To:Yo;return n&&Lo(e,t,n)&&(t=void 0),r(e,Ho(t))})),$o=Nn(Object.getPrototypeOf,Object),Co=I,Bo=$o,Fo=L,Ro=Function.prototype,zo=Object.prototype,Uo=Ro.toString,Wo=zo.hasOwnProperty,qo=Uo.call(Object);var Vo=function(e){if(!Fo(e)||"[object Object]"!=Co(e))return!1;var t=Bo(e);if(null===t)return!0;var n=Wo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Uo.call(n)==qo},Xo=L,Zo=Vo;var Go=y((function(e){return Xo(e)&&1===e.nodeType&&!Zo(e)}));function Ko(e){return Go(e)}var Jo=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Qo=fo;var eu=function(e){return"function"==typeof e?e:Qo},tu=Jo,nu=er,ru=eu,iu=b;var ou=y((function(e,t){return(iu(e)?tu:nu)(e,ru(t))})),uu=er,lu=Wn;var au=function(e,t){var n=-1,r=lu(e)?Array(e.length):[];return uu(e,(function(e,i,o){r[++n]=t(e,i,o)})),r},su=wt,cu=Do,fu=au,du=b;var pu=y((function(e,t){return(du(e)?su:fu)(e,cu(t))})),hu=an,vu=b,mu=S?S.isConcatSpreadable:void 0;var gu=Lr,yu=function(e){return vu(e)||hu(e)||!!(mu&&e&&e[mu])};var bu=function e(t,n,r,i,o){var u=-1,l=t.length;for(r||(r=yu),o||(o=[]);++u<l;){var a=t[u];n>0&&r(a)?n>1?e(a,n-1,r,i,o):gu(o,a):i||(o[o.length]=a)}return o};var wu=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},xu=Lr,ju=bu,Ou=wu,Su=b;var Eu=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return xu(Su(n)?Ou(n):[n],ju(t,1))},Du=y(Eu);function ku(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function Mu(e){return"[object Null]"===Object.prototype.toString.call(e)}function _u(e){if(Rt(e)){for(let t in e)return!1;return!0}return!1}function Au(e){return!(!Wt(e)||""!==e)}function Pu(e){return!!Ut(e)&&0===e.length}function Tu(e){return!!ku(e)||(!!Mu(e)||(!!_u(e)||(!!Au(e)||!!Pu(e))))}function Yu(e){return!!Ut(e)&&(0!==e.length&&(1!==e.length||!Tu(e[0])))}var Hu=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1};var Iu=Hu,Lu=function(e){return e!=e},Nu=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var $u=function(e,t,n){return t==t?Nu(e,t,n):Iu(e,Lu,n)},Cu=$u;var Bu=function(e,t){return!!(null==e?0:e.length)&&Cu(e,t,0)>-1};var Fu=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1};var Ru=ni,zu=function(){},Uu=Ru&&1/kr(new Ru([,-0]))[1]==1/0?function(e){return new Ru(e)}:zu,Wu=br,qu=Bu,Vu=Fu,Xu=wr,Zu=Uu,Gu=kr;var Ku=function(e,t,n){var r=-1,i=qu,o=e.length,u=!0,l=[],a=l;if(n)u=!1,i=Vu;else if(o>=200){var s=t?null:Zu(e);if(s)return Gu(s);u=!1,i=Xu,a=new Wu}else a=t?[]:l;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,u&&f==f){for(var d=a.length;d--;)if(a[d]===f)continue e;t&&a.push(f),l.push(c)}else i(a,f,n)||(a!==l&&a.push(f),l.push(c))}return l},Ju=Ku;var Qu=y((function(e){return e&&e.length?Ju(e):[]}));function el(e){if(!Yu(e))return[];let t=[];return ou(e,(function(e){let n=Gn(e);t=[...t,...n],t=Qu(t)})),t}var tl=I,nl=b,rl=L;var il=function(e){return"string"==typeof e||!nl(e)&&rl(e)&&"[object String]"==tl(e)},ol=po("length"),ul=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var ll=function(e){return ul.test(e)},al="\\ud800-\\udfff",sl="["+al+"]",cl="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",fl="\\ud83c[\\udffb-\\udfff]",dl="[^"+al+"]",pl="(?:\\ud83c[\\udde6-\\uddff]){2}",hl="[\\ud800-\\udbff][\\udc00-\\udfff]",vl="(?:"+cl+"|"+fl+")"+"?",ml="[\\ufe0e\\ufe0f]?",gl=ml+vl+("(?:\\u200d(?:"+[dl,pl,hl].join("|")+")"+ml+vl+")*"),yl="(?:"+[dl+cl+"?",cl,pl,hl,sl].join("|")+")",bl=RegExp(fl+"(?="+fl+")|"+yl+gl,"g");var wl=ol,xl=ll,jl=function(e){for(var t=bl.lastIndex=0;bl.test(e);)++t;return t};var Ol=Rn,Sl=xi,El=Wn,Dl=il,kl=function(e){return xl(e)?jl(e):wl(e)};var Ml=function(e){if(null==e)return 0;if(El(e))return Dl(e)?kl(e):e.length;var t=Sl(e);return"[object Map]"==t||"[object Set]"==t?e.size:Ol(e).length},_l=y(Ml),Al=I,Pl=L;var Tl=y((function(e){return!0===e||!1===e||Pl(e)&&"[object Boolean]"==Al(e)}));function Yl(e){return Tl(e)}function Hl(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ku(e))return"";let n="";try{n=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){n=""}return n}function Il(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Yu(e))return[];if(Yu(t)||(t=el(e)),0===_l(t))return[];let r=!1;if(ou(e,(function(e){zt(e)||(r=!0)})),r)return[];let i=Ft(n,"empty",""),o=[];return ou(e,(function(e){let n=pu(t,(function(t){return Zt(e,t)?Yl(e[t])?e[t]?"true":"false":Wt(e[t])||Xt(e[t])?e[t]:Hl(e[t]):i}));o.push(n)})),o}function Ll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Yu(e))return[];Yu(t)||(t=el(e)),zt(n)||(n={},ou(t,(e=>{n[e]=e})));let r=!1;if(ou(e,(function(e){zt(e)||(r=!0)})),r)return[];let i=pu(t,(function(e){return Ft(n,e)})),o=Il(e,t);return Du([i],o)}function Nl(){return"undefined"!=typeof window&&void 0!==window.document}function $l(){return"undefined"!=typeof self?self:Nl()?window:"undefined"!=typeof global?global:null}function Cl(){let e=$l();if(zt(Ft(h,"utils")))return h;if(zt(Ft(h,"default.utils")))return Ft(h,"default");if(zt(Ft(e,"XLSX.utils")))return Ft(e,"XLSX");if(zt(Ft(e,"XLSX.default.utils")))return Ft(e,"XLSX.default");if(zt(Ft(e,"xlsx.utils")))return Ft(e,"xlsx");if(zt(Ft(e,"xlsx.default.utils")))return Ft(e,"xlsx.default");throw console.log("XLSX",h,"g.XLSX",e.XLSX,"g.xlsx",e.xlsx),new Error("invalid XLSX, g.XLSX, g.xlsx")}function Bl(e){if(!Ut(e)&&!Ko(e))return{error:"data is not an array or element"};let t=null;try{let n=Cl().utils;if(Ut(e)){No(e,zt)&&(e=Ll(e)),t=n.aoa_to_sheet(e)}else Ko(e)&&(t=n.table_to_sheet(e,{raw:!0}))}catch(e){return{error:e}}return t}function Fl(e){if(!qt(e))return!1;let t="YYYY-MM";return e===n(e,t).format(t)}var Rl=/\s/;var zl=function(e){for(var t=e.length;t--&&Rl.test(e.charAt(t)););return t},Ul=/^\s+/;var Wl=function(e){return e?e.slice(0,zl(e)+1).replace(Ul,""):e},ql=Wl,Vl=q,Xl=C,Zl=/^[-+]0x[0-9a-f]+$/i,Gl=/^0b[01]+$/i,Kl=/^0o[0-7]+$/i,Jl=parseInt;var Ql=function(e){if("number"==typeof e)return e;if(Xl(e))return NaN;if(Vl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Vl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ql(e);var n=Gl.test(e);return n||Kl.test(e)?Jl(e.slice(2),n?2:8):Zl.test(e)?NaN:+e},ea=y(Ql),ta=Ql,na=1/0;var ra=function(e){return e?(e=ta(e))===na||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},ia=y(ra),oa=ra;var ua=function(e){var t=oa(e),n=t%1;return t==t?n?t-n:t:0},la=ua;var aa=y((function(e){return"number"==typeof e&&e==la(e)}));function sa(e){if(!Xt(e))return 0;return ia(e)}function ca(e){return!!Xt(e)&&(e=sa(e),aa(e))}var fa={exports:{}};var da,pa={exports:{}};function ha(){return da||(da=1,function(e,t){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==g&&g.crypto&&(n=g.crypto),!n)try{n=require("crypto")}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},u=o.lib={},l=u.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=u.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var u=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=u<<24-(r+o)%4*8}else for(var l=0;l<i;l+=4)t[r+l>>>2]=n[l>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new a.init(t,e)}}),s=o.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},d=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,u=this.blockSize,l=o/(4*u),s=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*u,c=e.min(4*s,o);if(s){for(var f=0;f<s;f+=u)this._doProcessBlock(i,f);n=i.splice(0,s),r.sigBytes-=c}return new a.init(n,c)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});u.Hasher=p.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=o.algo={};return o}(Math),n)}(pa)),pa.exports}var va={exports:{}};!function(e,t){var n;e.exports=(n=ha(),function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var i=[],o=0,u=0;u<n;u++)if(u%4){var l=r[e.charCodeAt(u-1)]<<u%4*2|r[e.charCodeAt(u)]>>>6-u%4*2;i[o>>>2]|=l<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var u=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<n;l++)i.push(r.charAt(u>>>6*(3-l)&63));var a=r.charAt(64);if(a)for(;i.length%4;)i.push(a);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var u=n.charAt(64);if(u){var l=e.indexOf(u);-1!==l&&(t=l)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)}(va);var ma,ga=va.exports,ya=y(ga),ba={exports:{}};function wa(){return ma||(ma=1,function(e,t){var n;e.exports=(n=ha(),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,u=t.algo,l=[];!function(){for(var t=0;t<64;t++)l[t]=4294967296*e.abs(e.sin(t+1))|0}();var a=u.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,u=e[t+0],a=e[t+1],p=e[t+2],h=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],j=e[t+11],O=e[t+12],S=e[t+13],E=e[t+14],D=e[t+15],k=o[0],M=o[1],_=o[2],A=o[3];k=s(k,M,_,A,u,7,l[0]),A=s(A,k,M,_,a,12,l[1]),_=s(_,A,k,M,p,17,l[2]),M=s(M,_,A,k,h,22,l[3]),k=s(k,M,_,A,v,7,l[4]),A=s(A,k,M,_,m,12,l[5]),_=s(_,A,k,M,g,17,l[6]),M=s(M,_,A,k,y,22,l[7]),k=s(k,M,_,A,b,7,l[8]),A=s(A,k,M,_,w,12,l[9]),_=s(_,A,k,M,x,17,l[10]),M=s(M,_,A,k,j,22,l[11]),k=s(k,M,_,A,O,7,l[12]),A=s(A,k,M,_,S,12,l[13]),_=s(_,A,k,M,E,17,l[14]),k=c(k,M=s(M,_,A,k,D,22,l[15]),_,A,a,5,l[16]),A=c(A,k,M,_,g,9,l[17]),_=c(_,A,k,M,j,14,l[18]),M=c(M,_,A,k,u,20,l[19]),k=c(k,M,_,A,m,5,l[20]),A=c(A,k,M,_,x,9,l[21]),_=c(_,A,k,M,D,14,l[22]),M=c(M,_,A,k,v,20,l[23]),k=c(k,M,_,A,w,5,l[24]),A=c(A,k,M,_,E,9,l[25]),_=c(_,A,k,M,h,14,l[26]),M=c(M,_,A,k,b,20,l[27]),k=c(k,M,_,A,S,5,l[28]),A=c(A,k,M,_,p,9,l[29]),_=c(_,A,k,M,y,14,l[30]),k=f(k,M=c(M,_,A,k,O,20,l[31]),_,A,m,4,l[32]),A=f(A,k,M,_,b,11,l[33]),_=f(_,A,k,M,j,16,l[34]),M=f(M,_,A,k,E,23,l[35]),k=f(k,M,_,A,a,4,l[36]),A=f(A,k,M,_,v,11,l[37]),_=f(_,A,k,M,y,16,l[38]),M=f(M,_,A,k,x,23,l[39]),k=f(k,M,_,A,S,4,l[40]),A=f(A,k,M,_,u,11,l[41]),_=f(_,A,k,M,h,16,l[42]),M=f(M,_,A,k,g,23,l[43]),k=f(k,M,_,A,w,4,l[44]),A=f(A,k,M,_,O,11,l[45]),_=f(_,A,k,M,D,16,l[46]),k=d(k,M=f(M,_,A,k,p,23,l[47]),_,A,u,6,l[48]),A=d(A,k,M,_,y,10,l[49]),_=d(_,A,k,M,E,15,l[50]),M=d(M,_,A,k,m,21,l[51]),k=d(k,M,_,A,O,6,l[52]),A=d(A,k,M,_,h,10,l[53]),_=d(_,A,k,M,x,15,l[54]),M=d(M,_,A,k,a,21,l[55]),k=d(k,M,_,A,b,6,l[56]),A=d(A,k,M,_,D,10,l[57]),_=d(_,A,k,M,g,15,l[58]),M=d(M,_,A,k,S,21,l[59]),k=d(k,M,_,A,v,6,l[60]),A=d(A,k,M,_,j,10,l[61]),_=d(_,A,k,M,p,15,l[62]),M=d(M,_,A,k,w,21,l[63]),o[0]=o[0]+k|0,o[1]=o[1]+M|0,o[2]=o[2]+_|0,o[3]=o[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),u=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),t.sigBytes=4*(n.length+1),this._process();for(var l=this._hash,a=l.words,s=0;s<4;s++){var c=a[s];a[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return l},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,i,o,u){var l=e+(t&n|~t&r)+i+u;return(l<<o|l>>>32-o)+t}function c(e,t,n,r,i,o,u){var l=e+(t&r|n&~r)+i+u;return(l<<o|l>>>32-o)+t}function f(e,t,n,r,i,o,u){var l=e+(t^n^r)+i+u;return(l<<o|l>>>32-o)+t}function d(e,t,n,r,i,o,u){var l=e+(n^(t|~r))+i+u;return(l<<o|l>>>32-o)+t}t.MD5=o._createHelper(a),t.HmacMD5=o._createHmacHelper(a)}(Math),n.MD5)}(ba)),ba.exports}var xa,ja={exports:{}},Oa={exports:{}};function Sa(){return xa||(xa=1,function(e,t){var n,r,i,o,u,l,a,s;e.exports=(s=ha(),r=(n=s).lib,i=r.WordArray,o=r.Hasher,u=n.algo,l=[],a=u.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],u=n[3],a=n[4],s=0;s<80;s++){if(s<16)l[s]=0|e[t+s];else{var c=l[s-3]^l[s-8]^l[s-14]^l[s-16];l[s]=c<<1|c>>>31}var f=(r<<5|r>>>27)+a+l[s];f+=s<20?1518500249+(i&o|~i&u):s<40?1859775393+(i^o^u):s<60?(i&o|i&u|o&u)-1894007588:(i^o^u)-899497514,a=u,u=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+u|0,n[4]=n[4]+a|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=o._createHelper(a),n.HmacSHA1=o._createHmacHelper(a),s.SHA1)}(Oa)),Oa.exports}var Ea,Da,ka={exports:{}};function Ma(){return Da||(Da=1,function(e,t){var n;e.exports=(n=ha(),Sa(),Ea||(Ea=1,function(e,t){var n,r,i;e.exports=(r=(n=ha()).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),u=this._iKey=t.clone(),l=o.words,a=u.words,s=0;s<n;s++)l[s]^=1549556828,a[s]^=909522486;o.sigBytes=u.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))}(ka)),ka.exports,function(){var e=n,t=e.lib,r=t.Base,i=t.WordArray,o=e.algo,u=o.MD5,l=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,o=r.hasher.create(),u=i.create(),l=u.words,a=r.keySize,s=r.iterations;l.length<a;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var c=1;c<s;c++)n=o.finalize(n),o.reset();u.concat(n)}return u.sigBytes=4*a,u}});e.EvpKDF=function(e,t,n){return l.create(n).compute(e,t)}}(),n.EvpKDF)}(ja)),ja.exports}var _a,Aa={exports:{}};!function(e,t){var n;e.exports=(n=ha(),wa(),Ma(),_a||(_a=1,function(e,t){var n;e.exports=(n=ha(),Ma(),void(n.lib.Cipher||function(e){var t=n,r=t.lib,i=r.Base,o=r.WordArray,u=r.BufferedBlockAlgorithm,l=t.enc;l.Utf8;var a=l.Base64,s=t.algo.EvpKDF,c=r.Cipher=u.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:g}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=t.mode={},d=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=f.CBC=function(){var t=d.extend();function n(t,n,r){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var u=0;u<r;u++)t[n+u]^=i[u]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),t}(),h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,u=[],l=0;l<r;l+=4)u.push(i);var a=o.create(u,r);e.concat(a)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:p,padding:h}),reset:function(){var e;c.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var v=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(a)},parse:function(e){var t,n=a.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},g=r.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),u=i.cfg;return v.create({ciphertext:o,key:n,iv:u.iv,algorithm:e,mode:u.mode,padding:u.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=o.random(8));var i=s.create({keySize:t+n}).compute(e,r),u=o.create(i.words.slice(t),4*n);return i.sigBytes=4*t,v.create({key:i,iv:u,salt:r})}},b=r.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=g.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,g.decrypt.call(this,e,t,i.key,r)}})}()))}(Aa)),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],u=[],l=[],a=[],s=[],c=[],f=[],d=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,i[n]=h,o[h]=n;var v=e[n],m=e[v],g=e[m],y=257*e[h]^16843008*h;u[n]=y<<24|y>>>8,l[n]=y<<16|y>>>16,a[n]=y<<8|y>>>24,s[n]=y,y=16843009*g^65537*m^257*v^16843008*n,c[h]=y<<24|y>>>8,f[h]=y<<16|y>>>16,d[h]=y<<8|y>>>24,p[h]=y,n?(n=v^e[e[e[g^v]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],v=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],u=0;u<r;u++)u<n?o[u]=t[u]:(s=o[u-1],u%n?n>6&&u%n==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=h[u/n|0]<<24),o[u]=o[u-n]^s);for(var l=this._invKeySchedule=[],a=0;a<r;a++){if(u=r-a,a%4)var s=o[u];else s=o[u-4];l[a]=a<4||u<=4?s:c[i[s>>>24]]^f[i[s>>>16&255]]^d[i[s>>>8&255]]^p[i[255&s]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,u,l,a,s,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,f,d,p,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,u,l){for(var a=this._nRounds,s=e[t]^n[0],c=e[t+1]^n[1],f=e[t+2]^n[2],d=e[t+3]^n[3],p=4,h=1;h<a;h++){var v=r[s>>>24]^i[c>>>16&255]^o[f>>>8&255]^u[255&d]^n[p++],m=r[c>>>24]^i[f>>>16&255]^o[d>>>8&255]^u[255&s]^n[p++],g=r[f>>>24]^i[d>>>16&255]^o[s>>>8&255]^u[255&c]^n[p++],y=r[d>>>24]^i[s>>>16&255]^o[c>>>8&255]^u[255&f]^n[p++];s=v,c=m,f=g,d=y}v=(l[s>>>24]<<24|l[c>>>16&255]<<16|l[f>>>8&255]<<8|l[255&d])^n[p++],m=(l[c>>>24]<<24|l[f>>>16&255]<<16|l[d>>>8&255]<<8|l[255&s])^n[p++],g=(l[f>>>24]<<24|l[d>>>16&255]<<16|l[s>>>8&255]<<8|l[255&c])^n[p++],y=(l[d>>>24]<<24|l[s>>>16&255]<<16|l[c>>>8&255]<<8|l[255&f])^n[p++],e[t]=v,e[t+1]=m,e[t+2]=g,e[t+3]=y},keySize:8});e.AES=t._createHelper(v)}(),n.AES)}(fa);var Pa=y(fa.exports),Ta={exports:{}};!function(e,t){e.exports=ha().enc.Utf8}(Ta);var Ya=y(Ta.exports),Ha={exports:{}};!function(e,t){e.exports=ha().enc.Hex}(Ha);var Ia=y(Ha.exports);function La(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!qt(e))return"";if(!qt(t))return"";if(!Yl(n))return"";let r="";if(n){r=Pa.decrypt(e,t).toString(Ya)}else{let n=Ia.parse(e).toString(ya);r=Pa.decrypt(n,t).toString(Ya)}return r}var Na=ve,$a=function(){try{var e=Na(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ca=$a;var Ba=function(e,t,n){"__proto__"==t&&Ca?Ca(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Fa=Ba,Ra=He,za=Object.prototype.hasOwnProperty;var Ua=function(e,t,n){var r=e[t];za.call(e,t)&&Ra(r,n)&&(void 0!==n||t in e)||Fa(e,t,n)},Wa=Ua,qa=Ba;var Va=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,u=t.length;++o<u;){var l=t[o],a=r?r(n[l],e[l],l,n,e):void 0;void 0===a&&(a=e[l]),i?qa(n,l,a):Wa(n,l,a)}return n},Xa=Va,Za=Zn;var Ga=function(e,t){return e&&Xa(t,Za(t),e)};var Ka=q,Ja=Ln,Qa=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},es=Object.prototype.hasOwnProperty;var ts=Hn,ns=function(e){if(!Ka(e))return Qa(e);var t=Ja(e),n=[];for(var r in e)("constructor"!=r||!t&&es.call(e,r))&&n.push(r);return n},rs=Wn;var is=function(e){return rs(e)?ts(e,!0):ns(e)},os=Va,us=is;var ls=function(e,t){return e&&os(t,us(t),e)},as={exports:{}};!function(e,t){var n=O,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,u=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}}(as,as.exports);var ss=as.exports,cs=Va,fs=qr;var ds=function(e,t){return cs(e,fs(e),t)},ps=Lr,hs=$o,vs=qr,ms=Fr,gs=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ps(t,vs(e)),e=hs(e);return t}:ms,ys=Va,bs=gs;var ws=function(e,t){return ys(e,bs(e),t)},xs=Cr,js=gs,Os=is;var Ss=function(e){return xs(e,Os,js)},Es=Object.prototype.hasOwnProperty;var Ds=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Es.call(e,"index")&&(n.index=e.index,n.input=e.input),n},ks=Er;var Ms=function(e){var t=new e.constructor(e.byteLength);return new ks(t).set(new ks(e)),t},_s=Ms;var As=function(e,t){var n=t?_s(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Ps=/\w*$/;var Ts=function(e){var t=new e.constructor(e.source,Ps.exec(e));return t.lastIndex=e.lastIndex,t},Ys=S?S.prototype:void 0,Hs=Ys?Ys.valueOf:void 0;var Is=Ms;var Ls=function(e,t){var n=t?Is(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Ns=Ms,$s=As,Cs=Ts,Bs=function(e){return Hs?Object(Hs.call(e)):{}},Fs=Ls;var Rs=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Ns(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return $s(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Fs(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Cs(e);case"[object Symbol]":return Bs(e)}},zs=q,Us=Object.create,Ws=function(){function e(){}return function(t){if(!zs(t))return{};if(Us)return Us(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),qs=$o,Vs=Ln;var Xs=function(e){return"function"!=typeof e.constructor||Vs(e)?{}:Ws(qs(e))},Zs=xi,Gs=L;var Ks=function(e){return Gs(e)&&"[object Map]"==Zs(e)},Js=wn,Qs=jn&&jn.isMap,ec=Qs?Js(Qs):Ks,tc=xi,nc=L;var rc=function(e){return nc(e)&&"[object Set]"==tc(e)},ic=wn,oc=jn&&jn.isSet,uc=oc?ic(oc):rc,lc=hr,ac=Jo,sc=Ua,cc=Ga,fc=ls,dc=ss,pc=wu,hc=ds,vc=ws,mc=Gr,gc=Ss,yc=xi,bc=Ds,wc=Rs,xc=Xs,jc=b,Oc=fn,Sc=ec,Ec=q,Dc=uc,kc=Zn,Mc=is,_c="[object Arguments]",Ac="[object Function]",Pc="[object Object]",Tc={};Tc[_c]=Tc["[object Array]"]=Tc["[object ArrayBuffer]"]=Tc["[object DataView]"]=Tc["[object Boolean]"]=Tc["[object Date]"]=Tc["[object Float32Array]"]=Tc["[object Float64Array]"]=Tc["[object Int8Array]"]=Tc["[object Int16Array]"]=Tc["[object Int32Array]"]=Tc["[object Map]"]=Tc["[object Number]"]=Tc[Pc]=Tc["[object RegExp]"]=Tc["[object Set]"]=Tc["[object String]"]=Tc["[object Symbol]"]=Tc["[object Uint8Array]"]=Tc["[object Uint8ClampedArray]"]=Tc["[object Uint16Array]"]=Tc["[object Uint32Array]"]=!0,Tc["[object Error]"]=Tc[Ac]=Tc["[object WeakMap]"]=!1;var Yc=function e(t,n,r,i,o,u){var l,a=1&n,s=2&n,c=4&n;if(r&&(l=o?r(t,i,o,u):r(t)),void 0!==l)return l;if(!Ec(t))return t;var f=jc(t);if(f){if(l=bc(t),!a)return pc(t,l)}else{var d=yc(t),p=d==Ac||"[object GeneratorFunction]"==d;if(Oc(t))return dc(t,a);if(d==Pc||d==_c||p&&!o){if(l=s||p?{}:xc(t),!a)return s?vc(t,fc(l,t)):hc(t,cc(l,t))}else{if(!Tc[d])return o?t:{};l=wc(t,d,a)}}u||(u=new lc);var h=u.get(t);if(h)return h;u.set(t,l),Dc(t)?t.forEach((function(i){l.add(e(i,n,r,i,t,u))})):Sc(t)&&t.forEach((function(i,o){l.set(o,e(i,n,r,o,t,u))}));var v=f?void 0:(c?s?gc:mc:s?Mc:kc)(t);return ac(v||t,(function(i,o){v&&(i=t[o=i]),sc(l,o,e(i,n,r,o,t,u))})),l},Hc=Yc;var Ic=y((function(e){return Hc(e,5)})),Lc={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,u){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new i(r,o||e,u),a=n?n+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],l]:e._events[a].push(l):(e._events[a]=l,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,u=new Array(o);i<o;i++)u[i]=r[i].fn;return u},l.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,i,o,u){var l=n?n+e:e;if(!this._events[l])return!1;var a,s,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,u),!0}for(s=1,a=new Array(f-1);s<f;s++)a[s-1]=arguments[s];c.fn.apply(c.context,a)}else{var d,p=c.length;for(s=0;s<p;s++)switch(c[s].once&&this.removeListener(e,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,t);break;case 3:c[s].fn.call(c[s].context,t,r);break;case 4:c[s].fn.call(c[s].context,t,r,i);break;default:if(!a)for(d=1,a=new Array(f-1);d<f;d++)a[d-1]=arguments[d];c[s].fn.apply(c[s].context,a)}}return!0},l.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return u(this,o),this;var l=this._events[o];if(l.fn)l.fn!==t||i&&!l.once||r&&l.context!==r||u(this,o);else{for(var a=0,s=[],c=l.length;a<c;a++)(l[a].fn!==t||i&&!l[a].once||r&&l[a].context!==r)&&s.push(l[a]);s.length?this._events[o]=1===s.length?s[0]:s:u(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&u(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l}(Lc);var Nc=y(Lc.exports);function $c(){return new Nc}var Cc=ua,Bc=Ql,Fc=Mt,Rc=O.isFinite,zc=Math.min;var Uc=function(e){var t=Math[e];return function(e,n){if(e=Bc(e),(n=null==n?0:zc(Cc(n),292))&&Rc(e)){var r=(Fc(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return+((r=(Fc(i)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}},Wc=y(Uc("round"));function qc(e){if(!Xt(e))return 0;e=sa(e);let t=Wc(e);return"0"===String(t)?0:t}function Vc(e){if(!ca(e))return!1;return qc(e)>0}var Xc=function(e,t,n){for(var r=-1,i=e.length,o=t.length,u={};++r<i;){var l=r<o?t[r]:void 0;n(u,e[r],l)}return u},Zc=Ua,Gc=Xc;var Kc=function(e,t){return Gc(e||[],t||[],Zc)},Jc=y(Kc);function Qc(e,t){if(!Ut(e))return[];if(!Ut(t))return[];if(_l(e)!==_l(t))return[];let n=[];return ou(e,(function(r,i){let o=null,u=Xt(e[i]),l=Xt(t[i]);(u||l)&&(o=0),u&&(o+=sa(e[i])),l&&(o+=sa(t[i])),n.push(o)})),n}var ef=Math.ceil,tf=Math.max;var nf=function(e,t,n,r){for(var i=-1,o=tf(ef((t-e)/(n||1)),0),u=Array(o);o--;)u[r?o:++i]=e,e+=n;return u},rf=nf,of=Po,uf=ra;var lf=function(e){return function(t,n,r){return r&&"number"!=typeof r&&of(t,n,r)&&(n=r=void 0),t=uf(t),void 0===n?(n=t,t=0):n=uf(n),r=void 0===r?t<n?1:-1:uf(r),rf(t,n,r,e)}},af=y(lf()),sf=Bt;var cf=function(e,t){for(var n=-1,r=t.length,i=Array(r),o=null==e;++n<r;)i[n]=o?void 0:sf(e,t[n]);return i},ff=bu;var df=function(e){return(null==e?0:e.length)?ff(e,1):[]};var pf=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},hf=Math.max;var vf=function(e,t,n){return t=hf(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=hf(r.length-t,0),u=Array(o);++i<o;)u[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(u),pf(e,this,l)}};var mf=function(e){return function(){return e}},gf=y(mf),yf=mf,bf=$a,wf=bf?function(e,t){return bf(e,"toString",{configurable:!0,enumerable:!1,value:yf(t),writable:!0})}:fo,xf=Date.now;var jf=function(e){var t=0,n=0;return function(){var r=xf(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Of=jf(wf),Sf=df,Ef=vf,Df=Of;var kf=function(e){return Df(Ef(e,void 0,Sf),e+"")},Mf=y(kf(cf));function _f(e){if(!ca(e))return!1;return qc(e)>=0}function Af(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(e))return[];if(!_f(t))return[];if(t=qc(t),Tu(r)){if(t>=e.length)return[];n=Mf(e,t)}else{if(!_f(r))return[];if(r=qc(r),t>=e.length||r>=e.length)return[];let i=af(t,r+1);n=Mf(e,i)}return n}function Pf(e){return Pf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pf(e)}function Tf(e){var t=function(e,t){if("object"!==Pf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pf(t)?t:String(t)}function Yf(e,t,n){return(t=Tf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hf=Array.prototype.join;var If=y((function(e,t){return null==e?"":Hf.call(e,t)}));var Lf=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},Nf=Lf;var $f=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Nf(e,t,n)},Cf=I,Bf=L;var Ff=function(e){return Bf(e)&&"[object RegExp]"==Cf(e)},Rf=wn,zf=jn&&jn.isRegExp,Uf=zf?Rf(zf):Ff;var Wf=function(e){return e.split("")},qf="\\ud800-\\udfff",Vf="["+qf+"]",Xf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Zf="\\ud83c[\\udffb-\\udfff]",Gf="[^"+qf+"]",Kf="(?:\\ud83c[\\udde6-\\uddff]){2}",Jf="[\\ud800-\\udbff][\\udc00-\\udfff]",Qf="(?:"+Xf+"|"+Zf+")"+"?",ed="[\\ufe0e\\ufe0f]?",td=ed+Qf+("(?:\\u200d(?:"+[Gf,Kf,Jf].join("|")+")"+ed+Qf+")*"),nd="(?:"+[Gf+Xf+"?",Xf,Kf,Jf,Vf].join("|")+")",rd=RegExp(Zf+"(?="+Zf+")|"+nd+td,"g");var id=Wf,od=ll,ud=function(e){return e.match(rd)||[]};var ld=function(e){return od(e)?ud(e):id(e)},ad=Dt,sd=$f,cd=ll,fd=Po,dd=Uf,pd=ld,hd=Mt;var vd=y((function(e,t,n){return n&&"number"!=typeof n&&fd(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=hd(e))&&("string"==typeof t||null!=t&&!dd(t))&&!(t=ad(t))&&cd(e)?sd(pd(e),0,n):e.split(t,n):[]})),md=Lf,gd=ua;var yd=y((function(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:gd(t),md(e,0,(t=r-t)<0?0:t)):[]}));function bd(){}function wd(e,t,n,r,i){for(var o=0,u=t.length,l=0,a=0;o<u;o++){var s=t[o];if(s.removed){if(s.value=e.join(r.slice(a,a+s.count)),a+=s.count,o&&t[o-1].added){var c=t[o-1];t[o-1]=t[o],t[o]=c}}else{if(!s.added&&i){var f=n.slice(l,l+s.count);f=f.map((function(e,t){var n=r[a+t];return n.length>e.length?n:e})),s.value=e.join(f)}else s.value=e.join(n.slice(l,l+s.count));l+=s.count,s.added||(a+=s.count)}}var d=t[u-1];return u>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[u-2].value+=d.value,t.pop()),t}function xd(e){return{newPos:e.newPos,components:e.components.slice(0)}}bd.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function o(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,a=1,s=u+l;n.maxEditLength&&(s=Math.min(s,n.maxEditLength));var c=[{newPos:-1,components:[]}],f=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=u&&f+1>=l)return o([{value:this.join(t),count:t.length}]);function d(){for(var n=-1*a;n<=a;n+=2){var r=void 0,s=c[n-1],f=c[n+1],d=(f?f.newPos:0)-n;s&&(c[n-1]=void 0);var p=s&&s.newPos+1<u,h=f&&0<=d&&d<l;if(p||h){if(!p||h&&s.newPos<f.newPos?(r=xd(f),i.pushComponent(r.components,void 0,!0)):((r=s).newPos++,i.pushComponent(r.components,!0,void 0)),d=i.extractCommon(r,t,e,n),r.newPos+1>=u&&d+1>=l)return o(wd(i,r.components,t,e,i.useLongestToken));c[n]=r}else c[n]=void 0}a++}if(r)!function e(){setTimeout((function(){if(a>s)return r();d()||e()}),0)}();else for(;a<=s;){var p=d();if(p)return p}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,u=e.newPos,l=u-r,a=0;u+1<i&&l+1<o&&this.equals(t[u+1],n[l+1]);)u++,l++,a++;return a&&e.components.push({count:a}),e.newPos=u,l},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var jd=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Od=/\S/,Sd=new bd;Sd.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Od.test(e)&&!Od.test(t)},Sd.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&jd.test(t[n])&&jd.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var Ed=new bd;function Dd(e,t,n){return Ed.diff(e,t,n)}function kd(e){return kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kd(e)}function Md(e){return function(e){if(Array.isArray(e))return _d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Ed.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t},(new bd).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new bd).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var Ad=Object.prototype.toString,Pd=new bd;function Td(e,t,n,r,i){var o,u;for(t=t||[],n=n||[],r&&(e=r(i,e)),o=0;o<t.length;o+=1)if(t[o]===e)return n[o];if("[object Array]"===Ad.call(e)){for(t.push(e),u=new Array(e.length),n.push(u),o=0;o<e.length;o+=1)u[o]=Td(e[o],t,n,r,i);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),"object"===kd(e)&&null!==e){t.push(e),u={},n.push(u);var l,a=[];for(l in e)e.hasOwnProperty(l)&&a.push(l);for(a.sort(),o=0;o<a.length;o+=1)u[l=a[o]]=Td(e[l],t,n,r,l);t.pop(),n.pop()}else u=e;return u}Pd.useLongestToken=!0,Pd.tokenize=Ed.tokenize,Pd.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(Td(e,null,null,i),i," ")},Pd.equals=function(e,t){return bd.prototype.equals.call(Pd,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var Yd=new bd;function Hd(e,t,n,r,i,o,u){return function(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var n=0;n<e.hunks.length;n++){var r=e.hunks[n];0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),t.push.apply(t,r.lines)}return t.join("\n")+"\n"}(function(e,t,n,r,i,o,u){u||(u={}),void 0===u.context&&(u.context=4);var l=Dd(n,r,u);if(l){l.push({value:"",lines:[]});for(var a=[],s=0,c=0,f=[],d=1,p=1,h=function(e){var t=l[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var o;if(!s){var h=l[e-1];s=d,c=p,h&&(f=u.context>0?m(h.lines.slice(-u.context)):[],s-=f.length,c-=f.length)}(o=f).push.apply(o,Md(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?p+=i.length:d+=i.length}else{if(s)if(i.length<=2*u.context&&e<l.length-2){var v;(v=f).push.apply(v,Md(m(i)))}else{var g,y=Math.min(i.length,u.context);(g=f).push.apply(g,Md(m(i.slice(0,y))));var b={oldStart:s,oldLines:d-s+y,newStart:c,newLines:p-c+y,lines:f};if(e>=l.length-2&&i.length<=u.context){var w=/\n$/.test(n),x=/\n$/.test(r),j=0==i.length&&f.length>b.oldLines;!w&&j&&n.length>0&&f.splice(b.oldLines,0,"\"),(w||j)&&x||f.push("\")}a.push(b),s=0,c=0,f=[]}d+=i.length,p+=i.length}},v=0;v<l.length;v++)h(v);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:a}}function m(e){return e.map((function(e){return" "+e}))}}(e,t,n,r,i,o,u))}Yd.tokenize=function(e){return e.slice()},Yd.join=Yd.removeEmpty=function(e){return e};var Id=Lf,Ld=ua;var Nd=y((function(e,t,n){return e&&e.length?(t=n||void 0===t?1:Ld(t),Id(e,0,t<0?0:t)):[]}));function $d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Wt(e))return{};if(!Wt(t))return{};if(""===e&&""===t)return{};let r=Ft(n,"eliminateEndLine");Yl(r)||(r=!1);let i,o=Dd(e,t),u=_l(o),l=[],a=[];for(i=-1;i++,!(i>u-1);){let e=o[i],t=Ft(e,"count",0),n=Ft(e,"removed",!1),r=Ft(e,"added",!1),u=Ft(e,"value",""),s=vd(u,"\n");s=Nd(s,t);for(let e=1;e<=t;e++){let t=s[e-1];n||r?n&&!r?(l.push({p:"remove",v:t}),a.push({p:"empty",v:""})):!n&&r&&(l.push({p:"empty",v:""}),a.push({p:"add",v:t})):(l.push({p:"",v:t}),a.push({p:"",v:t}))}}let s=_l(l);for(i=-1;i++,!(i>s-1);){let e=Ft(l,i,null),t=Ft(a,i,null),n=Ft(e,"p",""),r=Ft(t,"p","");if("remove"===n&&"empty"===r){let e=0,t=i,n=-1;for(let t=i;t<=s-1;t++){let r=Ft(l,t,null),i=Ft(a,t,null),o=Ft(r,"p",""),u=Ft(i,"p","");if("remove"!==o||"empty"!==u)break;e++,n=t}if(e<=0)continue;let r=0,o=!1,u=-1;for(let t=i;t<=n+e;t++){let e=Ft(l,t,null),n=Ft(a,t,null),i=Ft(e,"p",""),s=Ft(n,"p","");if("empty"===i&&"add"===s)o||(u=t),o=!0,r++;else if(o)break}if(r<=0)continue;let c=Math.min(e,r);if(c>=1){for(let e=0;e<=c-1;e++){let n=t+e,r=u+e;l[n]={p:"modify",vo:Ft(l,`${n}.v`,""),vn:Ft(a,`${r}.v`,"")},a[n]=null,l[r]=null,a[r]=null}i+=c+1}}}let c=[];for(i=-1;i++,!(i>s-1);){let e=Ft(l,i,null),t=Ft(a,i,null),n=Ft(e,"p",""),r=Ft(t,"p",""),o=Ft(e,"v",""),u=Ft(t,"v","");if(null===e&&null===t)continue;let s="",f=o,d="";"modify"===n?(s="modify",f=e.vo,d=e.vn):"remove"===n&&"empty"===r?(s="remove",f=o,d=""):"empty"===n&&"add"===r&&(s="add",f=u,d=""),c.push({p:s,vo:f,vn:d})}return{diff:o,dfs:c}}function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let Fd="\n";function Rd(e,t){if(!Ut(e))return{};if(!Ut(t))return{};let n=pu(e,(e=>`${e}${Fd}`));n=If(n,"");let r=pu(t,(e=>`${e}${Fd}`));r=If(r,"");let i=$d(n,r,{eliminateEndLine:!0});return i.dfs=pu(i.dfs,((e,t)=>({p:e.p,k:t,vo:e.vo,vn:e.vn}))),i}function zd(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Ut(e))return{};if(!Ut(t))return{};if(0===_l(e)&&0===_l(t))return{};let r,i=Ft(n,"mode","");return"array"!==i&&"matrix"!==i&&(i="array"),"array"===i?r=Rd(e,t):"matrix"===i&&(r=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Ut(e))return{};if(!Ut(t))return{};let r=Ft(n,"dls","");qt(r)||(r="⟋");let i=Ft(n,"dlq","");qt(i)||(i="∶");let o=[];ou(e,((t,n)=>{if(!Ut(t))throw console.log("arrOld",e),console.log(n,t),new Error("arrOld is not a matrix");ou(t,((e,t)=>{o.push(`${t}${i}${e}${r}`)})),o.push(Fd)})),o=If(o,"");let u=[];ou(t,((e,n)=>{if(!Ut(e))throw console.log("arrNew",t),console.log(n,e),new Error("arrNew is not a matrix");ou(e,((e,t)=>{u.push(`${t}${i}${e}${r}`)})),u.push(Fd)})),u=If(u,"");let l=$d(o,u,Bd(Bd({},n),{},{eliminateEndLine:!0})),a=[];return ou(l.dfs,(e=>{let t=vd(e.vo,r);if(t=yd(t,1),"modify"===e.p){let n=vd(e.vn,r);n=yd(n,1);let i=Rd(t,n);e.dfs=i.dfs}let n=[];"modify"===e.p?ou(e.dfs,(e=>{n.push(e)})):ou(t,(t=>{n.push({p:e.p,vo:t,vn:""})})),n=pu(n,((e,t)=>{let n=vd(e.vo,i),r=Ft(n,1,""),o=vd(e.vn,i),u=Ft(o,1,"");return{p:e.p,k:t,vo:r,vn:u}})),a.push(n)})),{diff:l.diff,dfs:a}}(e,t,n)),r}var Ud=$u;var Wd=$u;var qd=Dt,Vd=Wl,Xd=$f,Zd=function(e,t){for(var n=e.length;n--&&Ud(t,e[n],0)>-1;);return n},Gd=function(e,t){for(var n=-1,r=e.length;++n<r&&Wd(t,e[n],0)>-1;);return n},Kd=ld,Jd=Mt;var Qd=function(e,t,n){if((e=Jd(e))&&(n||void 0===t))return Vd(e);if(!e||!(t=qd(t)))return e;var r=Kd(e),i=Kd(t),o=Gd(r,i),u=Zd(r,i)+1;return Xd(r,o,u).join("")},ep=y(Qd);function tp(e,t){if(!qt(e))return[];if(!qt(t))return[];return e.split(t)}function np(e,t){if(!qt(e))return[];if(!qt(t))return[];let n=tp(e,t);n=pu(n,ep);let r=[];return ou(n,(function(e){qt(e)&&r.push(e)})),r}function rp(e,t){return qt(e)&&_f(t)?0===(t=qc(t))?"":e.substring(0,t):""}function ip(e,t){if(!qt(e))return"";if(!_f(t))return"";if(0===(t=qc(t)))return"";let n=e.length-t;return n<0&&(n=0),e.substr(n,t)}function op(e,t){return qt(e)&&_f(t)?0===(t=qc(t))?e:ip(e,e.length-t):""}var up=er;var lp=Br,ap=function(e,t){var n=[];return up(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n},sp=Do,cp=b;var fp=y((function(e,t){return(cp(e)?lp:ap)(e,sp(t))}));function dp(e){if(!Xt(e))return!1;return sa(e)>0}function pp(e){return Yu(e)?(e=Ic(e),e=fp(e,dp),e=pu(e,sa)):[]}var hp=Li;var vp=y((function(e,t){return hp(e,t)}));var mp=I,gp=L;var yp=y((function(e){return"number"==typeof e||gp(e)&&"[object Number]"==mp(e)}));function bp(e,t){function n(e){return Ut(e)?e:[e]}if(Tu(e))return!1;if(0===(e=n(e)).length)return!1;if(Tu(e))return!1;if(0===(t=n(t)).length)return!1;for(let n=0;n<e.length;n++)for(let r=0;r<t.length;r++)if(vp(e[n],t[r]))return!0;return!1}function wp(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function xp(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Yu(e))return null;if(!wp(t))return null;let r=Ft(n,"returnIndex");Yl(r)||(r=!1);let i=-1,o=null;for(let n=0;n<_l(e);n++){let r=t(o,e[n]);vp(o,r)||(o=r,i=n)}let u=null;return u=r?i:o,u}function jp(e,t){if(!Ut(e))return[];if(!Ut(t))return[];if(_l(e)!==_l(t))return[];let n=[];return ou(e,(function(r,i){let o=null,u=Xt(e[i]),l=Xt(t[i]);(u||l)&&(o=1),u&&(o*=sa(e[i])),l&&(o*=sa(t[i])),n.push(o)})),n}function Op(){if(_l(arguments)<2)return[];let e=arguments[0];for(let t=1;t<_l(arguments);t++){e=jp(e,arguments[t])}return e}var Sp=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n},Ep=Sp,Dp=fo;var kp=y((function(e){return e&&e.length?Ep(e,Dp):0}));function Mp(){if(_l(arguments)<2)return null;let e=Op(...arguments);return 0===_l(e)?null:(e=kp(e),e)}var _p=C;var Ap=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=_p(e),u=void 0!==t,l=null===t,a=t==t,s=_p(t);if(!l&&!s&&!o&&e>t||o&&u&&a&&!l&&!s||r&&u&&a||!n&&a||!i)return 1;if(!r&&!o&&!s&&e<t||s&&n&&i&&!r&&!o||l&&n&&i||!u&&i||!a)return-1}return 0};var Pp=wt,Tp=$t,Yp=Do,Hp=au,Ip=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},Lp=wn,Np=function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,u=i.length,l=n.length;++r<u;){var a=Ap(i[r],o[r]);if(a)return r>=l?a:a*("desc"==n[r]?-1:1)}return e.index-t.index},$p=fo,Cp=b;var Bp=fo,Fp=vf,Rp=Of;var zp=function(e,t){return Rp(Fp(e,t,Bp),e+"")},Up=bu,Wp=function(e,t,n){t=t.length?Pp(t,(function(e){return Cp(e)?function(t){return Tp(t,1===e.length?e[0]:e)}:e})):[$p];var r=-1;t=Pp(t,Lp(Yp));var i=Hp(e,(function(e,n,i){return{criteria:Pp(t,(function(t){return t(e)})),index:++r,value:e}}));return Ip(i,(function(e,t){return Np(e,t,n)}))},qp=Po,Vp=y(zp((function(e,t){if(null==e)return[];var n=t.length;return n>1&&qp(e,t[0],t[1])?t=[]:n>2&&qp(t[0],t[1],t[2])&&(t=[t[0]]),Wp(e,Up(t,1),[])})));function Xp(e){if(!qt(e)&&!Xt(e)&&!B(e))return"";let t="";try{t=String(e)}catch(e){}try{t=e.toString()}catch(e){}return t}var Zp=Lf,Gp=ua;var Kp=y((function(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:Gp(t),Zp(e,t<0?0:t,r)):[]})),Jp=Array.prototype.reverse;var Qp=y((function(e){return null==e?e:Jp.call(e)}));function eh(e,t){return qt(e)&&_f(t)?0===(t=qc(t))?e:rp(e,e.length-t):""}function th(e){let t=Ft(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},"excludeString");if(Yl(t)||(t=!1),!qt(e))return"";let n=e=>e>="0"&&e<="9"||"."===e||"-"===e||"+"===e,r=ep(e);if(t){let e=r.split("");for(let t=0;t<e.length;t++)if(n(e[t])){r=op(r,t),e=Kp(e,t);break}e=Qp(e);for(let t=0;t<e.length;t++)if(n(e[t])){r=eh(r,t);break}}return r}function nh(e){let t=0,n=0,r=0,i=_l(e);ou(e,(e=>{Xt(e)?t+=1:Wt(e)?n+=1:Rt(e)&&(r+=1)}));let o="";return t===i?o="num":n===i?o="str":r===i?o="obj":t+n===i?o="str":console.log("eles in array are non-homogeneous",e),o}function rh(e,t){let n=[];if("num"!==t&&"str"!==t&&"files"!==t)throw new Error(`invalid type[${t}]`);if("num"===t)n=pu(e,((e,t)=>({key:t,payload:e,value:sa(e)})));else if("files"===t)n=pu(e,((e,t)=>({key:t,payload:e,value:Xp(e)})));else if("str"===t){let t=pu(e,(e=>th(e,{excludeString:!0}))),r=0;ou(t,(e=>{Xt(e)&&r++}));let i=r===_l(t);n=pu(e,((e,n)=>{let r=e;return i?(r=t[n],r=sa(r)):r=Xp(r),{key:n,payload:e,value:r}}))}return n}function ih(e,t){let n=Vp(e,"value");return pu(n,t?"key":"payload")}function oh(e,t){let n=function(e,t){let n=Ic(e);return n.sort(((e,n)=>e[t].localeCompare(n[t],"standard",{numeric:!0}))),n}(e,"value");return pu(n,t?"key":"payload")}function uh(e){if(!qt(e))return[];let t=np(e,";");return t=Qu(t),t}function lh(e){if(!Yu(e))return"";return e=Qu(e),If(e,";")}function ah(e){return e=fp(e,qt),lh(e=Qu(e))}function sh(e){let t=[];return ou(e,(n=>{let r=Ft(n,"table",""),i=Ft(n,"id","");""===ep(r)?console.log("atItemsMergeS2: invalid table in its",n,e):""===ep(i)?console.log("atItemsMergeS2: invalid id in its",n,e):t.push(`${r}@${i}`)})),e=lh(t)}function ch(e){if(!qt(e))return[];let t=uh(e);return fp(t,qt)}function fh(e){if(!qt(e))return[];let t=uh(e),n=[];return ou(t,(t=>{let r=np(t,"@"),i=Ft(r,0,""),o=Ft(r,1,"");""===i?console.log("atParseS2: invalid table in composItems",t,e):""===o?console.log("atParseS2: invalid id in composItems",t,e):n.push({item:t,table:i,id:o})})),n}function dh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!qt(e))return[];let n=Ft(t,"mode");return"1p"!==n&&"2p"!==n&&(n="auto"),"1p"===n?ch(e):"2p"===n||e.indexOf("@")>=0?fh(e):ch(e)}function ph(e,t){let n=[...ch(e),...ch(t)];return 0===_l(n)?"":ah(n)}function hh(e,t){let n=[...fh(e),...fh(t)];return 0===_l(n)?"":sh(n)}function vh(e,t){let n=Ft(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},"mode");if("1p"!==n&&"2p"!==n&&(n="auto"),"1p"===n)ph(e,t);else if("2p"===n)return hh(e,t);let r=e.indexOf("@")>=0,i=t.indexOf("@")>=0;return r||i?hh(e,t):ph(e,t)}function mh(e,t){let n=ch(e),r=ch(t),i=[];return ou(n,(e=>{bp(e,r)||i.push(e)})),0===_l(i)?"":ah(i)}function gh(e,t){let n=fh(e),r=fh(t),i=[];return ou(n,(e=>{bp(e,r)||i.push(e)})),0===_l(i)?"":sh(i)}function yh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!qt(e))return"";if(!qt(t))return e;let r=Ft(n,"mode");return"1p"!==r&&"2p"!==r&&(r="auto"),"1p"===r?mh(e,t):"2p"===r||t.indexOf("@")>=0?gh(e,t):mh(e,t)}var bh={parse:dh,remove:yh,add:vh};function wh(e){if(!qt(e))return"";return ya.parse(e).toString(Ya)}function xh(e){if(!qt(e))return{};let t={};try{t=JSON.parse(e)}catch(e){t={}}return t}function jh(e){if(!Wt(e))return new Uint8Array;let t=ya.parse(e),n=t.words,r=t.sigBytes,i=new Uint8Array(r);for(let e=0;e<r;e++){let t=n[e>>>2]>>>24-e%4*8&255;i[e]=t}return i}function Oh(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function Sh(e){return Oh(e)?new Uint16Array(e):new Uint16Array}function Eh(e){if(!Wt(e))return new Uint16Array;return Sh(jh(e))}function Dh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"anyone";if(!qt(e))return!1;if("anyone"!==n&&"all"!==n)return!1;if(Wt(t)){if(!qt(t))return!1;t=[t]}if(!Yu(t))return!1;let r=!1;if(ou(t,(function(e){qt(e)||(r=!0)})),r)return!1;let i=0;return ou(t,(function(t){-1!==function(e,t){return e.indexOf(t)}(e,t)&&i++})),"anyone"===n?i>0:"all"===n&&i===t.length}function kh(){let e,t,n=new Promise((function(){e=arguments[0],t=arguments[1]}));return n.resolve=e,n.reject=t,n}function Mh(e){if(!Nl())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=kh(),n=new FileReader;return n.onload=function(){let e=n.result;t.resolve(e)},n.onerror=function(e){t.reject(e)},n.readAsArrayBuffer(e),t}(e)}}function _h(e){let t=kh(),n=new FileReader;return n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsDataURL(e),t}function Ah(e){let t=kh();return Mh(e).then((e=>{let n=new Uint8Array(e);t.resolve(n)})).catch((e=>{t.reject(e)})),t}function Ph(e){let t=pu(e,(function(e){return _h(e)}));return Promise.all(t)}function Th(e){let t=pu(e,(function(e){return Ah(e)}));return Promise.all(t)}function Yh(e){let t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML}function Hh(e,t){let n=new Blob([e],{type:t});try{let e=window.URL.createObjectURL(n);window.open(e)}catch(e){console.log("window.URL.createObjectURL is not support for IE11",e)}}function Ih(e){return"[object Blob]"===Object.prototype.toString.call(e)}function Lh(e){if(!qt(e))return new Uint8Array;let t=e.length,n=new Uint8Array(t);for(let r=0;r<t;r++)n[r]=e.charCodeAt(r);return n}function Nh(e,t,n,r,i){if(!Oh(e))return null;if(!ca(t))return null;if(!Yl(n))return null;if(!ca(r))return null;if(!ca(i))return null;let o,u,l=8*i-r-1,a=(1<<l)-1,s=a>>1,c=-7,f=n?0:i-1,d=n?1:-1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=l;c>0;o=256*o+e[t+f],f+=d,c-=8);for(u=o&(1<<-c)-1,o>>=-c,c+=r;c>0;u=256*u+e[t+f],f+=d,c-=8);if(0===o)o=1-s;else{if(o===a)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,r),o-=s}return(p?-1:1)*u*Math.pow(2,o-r)}function $h(e){return Nh(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,arguments.length>4&&void 0!==arguments[4]?arguments[4]:8)}function Ch(e,t,n,r,i,o){if(!Xt(e))return null;if(!Oh(t))return null;if(!ca(n))return null;if(!Yl(r))return null;if(!ca(i))return null;if(!ca(o))return null;let u,l,a;e=sa(e);let s=8*o-i-1,c=(1<<s)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?o-1:0,h=r?-1:1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-u))<1&&(u--,a*=2),(e+=u+f>=1?d/a:d*Math.pow(2,1-f))*a>=2&&(u++,a/=2),u+f>=c?(l=0,u=c):u+f>=1?(l=(e*a-1)*Math.pow(2,i),u+=f):(l=e*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;t[n+p]=255&l,p+=h,l/=256,i-=8);for(u=u<<i|l,s+=i;s>0;t[n+p]=255&u,p+=h,u/=256,s-=8);return t[n+p-h]|=128*v,null}function Bh(e,t){return Ch(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!(arguments.length>3&&void 0!==arguments[3])||arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,arguments.length>5&&void 0!==arguments[5]?arguments[5]:8)}function Fh(e){let t,n=Object.prototype.toString.call(e);if(t="[object Promise]"===n,t)return!0;if("[object Function]"!==n)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}async function Rh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=kh();if(!wp(e))return r.reject("waitfunction需輸入函數f"),r;let i=async()=>{let t=e();return Fh(t)&&(t=await t),t};if(n=await i(),!0===n)return r.resolve(),r;let o=Ft(t,"attemptNum",null);Vc(o)||(o=200);let u=Ft(t,"timeInterval",null);Vc(u)||(u=1e3);let l=0,a=setInterval((async()=>{l+=1,n=await i(),!0===n&&(clearInterval(a),r.resolve()),l>o&&(clearInterval(a),r.reject(`exceeded attemptNum[${o}]`))}),u);return r}var zh=Mt;var Uh=y((function(e){return zh(e).toLowerCase()}));function Wh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Xt(e)&&_f(t)?(e=sa(e),Wc(e,t).toFixed(t)):""}var qh=Mt;var Vh=y((function(e){return qh(e).toUpperCase()}));function Xh(e,t,n){if(!qt(e))return"";if(!qt(t))return"";if(!Wt(n))return"";let r=new RegExp(t,"g");return String(e).replace(r,n)}function Zh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return qt(e)&&_f(t)?(n=Vc(n)?qc(n):1,e.substring(t,t+n)):""}let Gh={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Kh(e){return Qh(e,1)}function Jh(e){return Qh(e,360)}function Qh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.indexOf("%")>=0){if(!Xt(e=Xh(e,"%","")))throw new Error("invalid color: value is not a number");e=sa(e)/100}else{if(!Xt(e))throw new Error("invalid color: value is not a number");e=sa(e)/t}if(e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function ev(e){if(!Xt(e))throw new Error("invalid color: value is not a number");if((e=sa(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function tv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba";if(!Ut(e))throw new Error("invalid colors array");let n=Ft(e,0,0),r=Ft(e,1,0),i=Ft(e,2,0),o=Ft(e,3,1);if(t=t.split(""),4!==_l(t))throw new Error("tar.length !== 4");return{[Ft(t,0)]:n,[Ft(t,1)]:r,[Ft(t,2)]:i,[Ft(t,3)]:o}}function nv(e){e=op(e,1);let t=_l(e);if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=Zh(e,0,1),n=Zh(e,1,1),r=Zh(e,2,1);e=`${t}${t}${n}${n}${r}${r}ff`}else if(6===t)e=`${e}ff`;else if(8!==t)throw new Error("invalid hex color");function n(e){if(2!==_l(e))throw new Error("hex.length of color is not equal to 2");if(!Xt(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=sa(e))/255}return{r:n(Zh(e,0,2)),g:n(Zh(e,2,2)),b:n(Zh(e,4,2)),a:n(Zh(e,6,2))}}function rv(e){return e=tv(e=pu(e,((e,t)=>t<=2?Qh(e,255):3===t?ev(e):null)),"rgba")}function iv(e){return e=dv(e=tv(e=pu(e,((e,t)=>0===t?Jh(e):1===t||2===t?Kh(e):3===t?ev(e):null)),"hsla"))}function ov(e){return e=pv(e=tv(e=pu(e,((e,t)=>0===t?Jh(e):1===t||2===t?Kh(e):3===t?ev(e):null)),"hsva"))}function uv(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return Zt(Gh,e)}(e))return nv(e=`#${Gh[e]}`);if(function(e){return"#"===rp(e,1)&&(!!/[0-9A-Fa-f]{2}/g.test(e)||(!!/[0-9A-Fa-f]{3}/g.test(e)||(!!/[0-9A-Fa-f]{6}/g.test(e)||!!/[0-9A-Fa-f]{8}/g.test(e))))}(e))return nv(e);if(function(e){return"rgb"===rp(e,3)||"rgba"===rp(e,4)}(e))return function(e){return e=Xh(e,"rgba",""),e=Xh(e,"rgb",""),rv(np(e=Xh(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===rp(e,3)||"hsla"===rp(e,4)}(e))return function(e){return e=Xh(e,"hsla",""),e=Xh(e,"hsl",""),iv(np(e=Xh(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===rp(e,3)||"hsva"===rp(e,4)}(e))return function(e){return e=Xh(e,"hsva",""),e=Xh(e,"hsv",""),ov(np(e=Xh(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function lv(e,t){return!!Zt(e,t=Uh(t))||!!Zt(e,t=Vh(t))}function av(e,t,n){let r;return r=Ft(e,t,null),null!==r?r:(t=Vh(t),r=Ft(e,t,null),null!==r?r:n)}function sv(e){if(function(e){let t=lv(e,"r"),n=lv(e,"g"),r=lv(e,"b");return t&&n&&r}(e))return function(e){let t=[av(e,"r",null),av(e,"g",null),av(e,"b",null),av(e,"a",1)];return t=pu(t,Xp),rv(t)}(e);if(function(e){let t=lv(e,"h"),n=lv(e,"s"),r=lv(e,"l");return t&&n&&r}(e))return function(e){let t=[av(e,"h",null),av(e,"s",null),av(e,"l",null),av(e,"a",1)];return t=pu(t,Xp),iv(t)}(e);if(function(e){let t=lv(e,"h"),n=lv(e,"s"),r=lv(e,"v");return t&&n&&r}(e))return function(e){let t=[av(e,"h",null),av(e,"s",null),av(e,"v",null),av(e,"a",1)];return t=pu(t,Xp),ov(t)}(e);throw new Error("color object is not one of rgba, hsla, hsva")}function cv(e){let t,n,r=e.r,i=e.g,o=e.b,u=Math.max(r,i,o),l=Math.min(r,i,o),a=(u+l)/2;if(u===l)t=n=0;else{let e=u-l;switch(n=a>.5?e/(2-u-l):e/(u+l),u){case r:t=(i-o)/e+(i<o?6:0);break;case i:t=(o-r)/e+2;break;case o:t=(r-i)/e+4}t/=6}return{h:t,s:n,l:a,a:e.a}}function fv(e){let t,n,r=e.r,i=e.g,o=e.b,u=Math.max(r,i,o),l=Math.min(r,i,o),a=u,s=u-l;if(n=0===u?0:s/u,u===l)t=0;else{switch(u){case r:t=(i-o)/s+(i<o?6:0);break;case i:t=(o-r)/s+2;break;case o:t=(r-i)/s+4}t/=6}return{h:t,s:n,v:a,a:e.a}}function dv(e){let t,n,r,i=e.h,o=e.s,u=e.l;function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0===o)t=n=r=u;else{let e=u<.5?u*(1+o):u+o-u*o,a=2*u-e;t=l(a,e,i+1/3),n=l(a,e,i),r=l(a,e,i-1/3)}return{r:t,g:n,b:r,a:e.a}}function pv(e){let t,n,r,i=e.h,o=e.s,u=e.v,l=Math.floor(6*i),a=6*i-l,s=u*(1-o),c=u*(1-a*o),f=u*(1-(1-a)*o);switch(l%6){case 0:t=u,n=f,r=s;break;case 1:t=c,n=u,r=s;break;case 2:t=s,n=u,r=f;break;case 3:t=s,n=c,r=u;break;case 4:t=f,n=s,r=u;break;case 5:t=u,n=s,r=c}return{r:t,g:n,b:r,a:e.a}}function hv(e){let t=Math.round(255*e).toString(16);if(1===_l(t))return`0${t}`;if(2===_l(t))return t;throw new Error("invalid value")}function vv(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.r,r=e.g,i=e.b,o=e.a,u=`${hv(n)}${hv(r)}${hv(i)}`;return t&&(u=`${u}${hv(o)}`),u}function mv(e){return Math.min(1,Math.max(0,e))}function gv(e,t){if(!qt(t))throw new Error("fmtOutput is not a string");if(!Kv[t])throw console.log(`fmtOutput must be [${Gn(Kv)}]`),new Error("invalid fmtOutput");return e=Kv[t](e)}function yv(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=cv(e);return r.h+=t,r.h=r.h%1,gv(dv(r),n)}function bv(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"toRgbString";if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(r<0||r>1)throw new Error("w1 < 0 or > 1");return gv({r:e.r*t+n.r*r,g:e.g*t+n.g*r,b:e.b*t+n.b*r,a:e.a*t+n.a*r},i)}function wv(e){return`${Wc(100*e,1)}%`}function xv(e){return Wc(e,0)}function jv(e){return Wc(e,3)}function Ov(e){return{r:xv(255*e.r),g:xv(255*e.g),b:xv(255*e.b)}}function Sv(e){return`rgb(${xv(255*e.r)}, ${xv(255*e.g)}, ${xv(255*e.b)})`}function Ev(e){return{r:xv(255*e.r),g:xv(255*e.g),b:xv(255*e.b),a:jv(e.a)}}function Dv(e){return`rgba(${xv(255*e.r)}, ${xv(255*e.g)}, ${xv(255*e.b)}, ${jv(e.a)})`}function kv(e){let t=cv(e);return{h:xv(360*t.h),s:jv(t.s),l:jv(t.l)}}function Mv(e){let t=cv(e);return`hsl(${xv(360*t.h)}, ${jv(t.s)}, ${jv(t.l)})`}function _v(e){let t=cv(e);return{h:xv(360*t.h),s:jv(t.s),l:jv(t.l),a:jv(t.a)}}function Av(e){let t=cv(e);return`hsla(${xv(360*t.h)}, ${jv(t.s)}, ${jv(t.l)}, ${jv(t.a)})`}function Pv(e){let t=fv(e);return{h:xv(360*t.h),s:jv(t.s),v:jv(t.v)}}function Tv(e){let t=fv(e);return`hsv(${xv(360*t.h)}, ${jv(t.s)}, ${jv(t.v)})`}function Yv(e){let t=fv(e);return{h:xv(360*t.h),s:jv(t.s),v:jv(t.v),a:jv(t.a)}}function Hv(e){let t=fv(e);return`hsva(${xv(360*t.h)}, ${jv(t.s)}, ${jv(t.v)}, ${jv(t.a)})`}function Iv(e){return{r:wv(e.r),g:wv(e.g),b:wv(e.b)}}function Lv(e){return`rgb(${wv(e.r)}, ${wv(e.g)}, ${wv(e.b)})`}function Nv(e){return{r:wv(e.r),g:wv(e.g),b:wv(e.b),a:jv(e.a)}}function $v(e){return`rgba(${wv(e.r)}, ${wv(e.g)}, ${wv(e.b)}, ${jv(e.a)})`}function Cv(e){let t=cv(e);return{h:xv(360*t.h),s:wv(t.s),l:wv(t.l)}}function Bv(e){let t=cv(e);return`hsl(${xv(360*t.h)}, ${wv(t.s)}, ${wv(t.l)})`}function Fv(e){let t=cv(e);return{h:xv(360*t.h),s:wv(t.s),l:wv(t.l),a:jv(t.a)}}function Rv(e){let t=cv(e);return`hsla(${xv(360*t.h)}, ${wv(t.s)}, ${wv(t.l)}, ${jv(t.a)})`}function zv(e){let t=fv(e);return{h:xv(360*t.h),s:wv(t.s),v:wv(t.v)}}function Uv(e){let t=fv(e);return`hsv(${xv(360*t.h)}, ${wv(t.s)}, ${wv(t.v)})`}function Wv(e){let t=fv(e);return{h:xv(360*t.h),s:wv(t.s),v:wv(t.v),a:jv(t.a)}}function qv(e){let t=fv(e);return`hsva(${xv(360*t.h)}, ${wv(t.s)}, ${wv(t.v)}, ${jv(t.a)})`}function Vv(e){let t=function(e){return vv(e,!1)}(e);return`#${t}`}function Xv(e){return`#${vv(e)}`}function Zv(e){let t=null,n=null,r=null;if(qt(e))t=Uh(ep(e));else{if(!zt(e))throw console.log("color=",e),new Error("color is not a string or an object");n=e}if(null!==t)try{r=uv(t)}catch(e){throw console.log(e),new Error(`can not parse color: ${t}`)}else if(null!==n)try{r=sv(n)}catch(e){throw console.log(e),new Error(`can not parse color: ${JSON.stringify(n)}`)}return r}function Gv(e){if(!zt(e))return console.log("gradient is not an effective object"),e=>`rgb(${255*(e=Math.min(Math.max(e,0),1))},${255*e},${255*e})`;let t=[];return ou(e,((e,n)=>{t.push([sa(n),Ev(Zv(e)),e])})),t=Vp(t,0),function(e){let n=null;for(let r=1;r<t.length;r++){let i=t[r-1][0],o=t[r-1][1],u=t[r][0],l=t[r][1];if(i<=e&&u>=e){let t=(u-e)/(u-i),r=(e-i)/(u-i);n=bv(Zv(o),t,Zv(l),r,"toRgbaString");break}}return n}}let Kv={toRgb:Ov,toRgbString:Sv,toRgba:Ev,toRgbaString:Dv,toHsl:kv,toHslString:Mv,toHsla:_v,toHslaString:Av,toHsv:Pv,toHsvString:Tv,toHsva:Yv,toHsvaString:Hv,toRgbP:Iv,toRgbPString:Lv,toRgbaP:Nv,toRgbaPString:$v,toHslP:Cv,toHslPString:Bv,toHslaP:Fv,toHslaPString:Rv,toHsvP:zv,toHsvPString:Uv,toHsvaP:Wv,toHsvaPString:qv,toHexString:Vv,toHex8String:Xv};var Jv=function(){let e={toRgb:e=>Ov(Zv(e)),toRgbString:e=>Sv(Zv(e)),toRgba:e=>Ev(Zv(e)),toRgbaString:e=>Dv(Zv(e)),toHsl:e=>kv(Zv(e)),toHslString:e=>Mv(Zv(e)),toHsla:e=>_v(Zv(e)),toHslaString:e=>Av(Zv(e)),toHsv:e=>Pv(Zv(e)),toHsvString:e=>Tv(Zv(e)),toHsva:e=>Yv(Zv(e)),toHsvaString:e=>Hv(Zv(e)),toRgbP:e=>Iv(Zv(e)),toRgbPString:e=>Lv(Zv(e)),toRgbaP:e=>Nv(Zv(e)),toRgbaPString:e=>$v(Zv(e)),toHslP:e=>Cv(Zv(e)),toHslPString:e=>Bv(Zv(e)),toHslaP:e=>Fv(Zv(e)),toHslaPString:e=>Rv(Zv(e)),toHsvP:e=>zv(Zv(e)),toHsvPString:e=>Uv(Zv(e)),toHsvaP:e=>Wv(Zv(e)),toHsvaPString:e=>qv(Zv(e)),toHexString:e=>Vv(Zv(e)),toHex8String:e=>Xv(Zv(e)),modSaturate:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=cv(e);return r.s+=t,r.s=mv(r.s),gv(dv(r),n)}(Zv(e),t,n),modGrey:(e,t)=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toRgbString",n=cv(e);return n.s=0,gv(dv(n),t)}(Zv(e),t),modLighten:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=cv(e);return r.l+=t,r.l=mv(r.l),gv(dv(r),n)}(Zv(e),t,n),modBrighten:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");return e.r+=t,e.r=mv(e.r),e.g+=t,e.g=mv(e.g),e.b+=t,e.b=mv(e.b),gv(e,n)}(Zv(e),t,n),modHue:(e,t,n)=>yv(Zv(e),t,n),modComplement:(e,t)=>function(e){return yv(e,.5,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toRgbString")}(Zv(e),t),spreadHue:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(!ca(t))throw new Error("num is not an integer");if((t=qc(t))<=1)return[e];let r=cv(e),i=1/t,o=[];for(let e=0;e<t;e++)o.push(gv(dv(r),n)),r.h+=i,r.h=r.h%1;return o}(Zv(e),t,n),spreadMonochromatic:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(!ca(t))throw new Error("num is not an integer");if((t=qc(t))<=1)return[e];let r=fv(e);r.s=1,r.l=1;let i=1/t,o=[];for(let e=0;e<t;e++)o.push(gv(pv(r),n)),r.h-=i,r.l-=i;return o}(Zv(e),t,n),mix:(e,t,n,r,i)=>bv(Zv(e),t,Zv(n),r,i),getBrightness:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");return(299*e.r+587*e.g+114*e.b)/1e3}(Zv(e)),getLuminance:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");let t,n,r,i=e.r,o=e.g,u=e.b;return t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),r=u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4),.2126*t+.7152*n+.0722*r}(Zv(e)),interp:Gv};return e}(),Qv=Ua,em=Yt,tm=pn,nm=q,rm=It;var im=function(e,t,n,r){if(!nm(e))return e;for(var i=-1,o=(t=em(t,e)).length,u=o-1,l=e;null!=l&&++i<o;){var a=rm(t[i]),s=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return e;if(i!=u){var c=l[a];void 0===(s=r?r(c,a,l):void 0)&&(s=nm(c)?c:tm(t[i+1])?[]:{})}Qv(l,a,s),l=l[a]}return e},om=im;var um=function(e,t,n){return null==e?e:om(e,t,n)},lm=y(um);var am=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},sm=$t,cm=Lf;var fm=function(e,t){return t.length<2?e:sm(e,cm(t,0,-1))},dm=Yt,pm=am,hm=fm,vm=It;var mm=function(e,t){return t=dm(t,e),null==(e=hm(e,t))||delete e[vm(pm(t))]},gm=Vo;var ym=wt,bm=Yc,wm=mm,xm=Yt,jm=Va,Om=function(e){return gm(e)?void 0:e},Sm=Ss,Em=kf((function(e,t){var n={};if(null==e)return n;var r=!1;t=ym(t,(function(t){return t=xm(t,e),r||(r=t.length>1),t})),jm(e,Sm(e),n),r&&(n=bm(n,7,Om));for(var i=t.length;i--;)wm(n,t[i]);return n})),Dm=y(Em);function km(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Mm(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?km(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="$level",r="$parents";if(!Yu(e))return[];let i=Ft(t,"bindKey",null);qt(i)||(i="id");let o=Ft(t,"bindParent",null);qt(o)||(o="parentId");let u=Ft(t,"bindChildren",null);qt(u)||(u="children");let l=Ft(t,"saveExtProps",null);Yl(l)||(l=!1),e=function(e){let t=[];function u(u){let l=[];ou(e,((e,a)=>{let s=Ft(e,o),c=Ft(u,i);if(s&&c&&s===c){let o=Ft(u,r,[]);o=Ic(o),o.push(u[i]),t.push(Mm({[n]:u[n]+1,[r]:o},e))}else l.push(e)})),e=l}if(e=Ic(e),function(){let i=[];ou(e,((e,u)=>{Tu(e[o])?t.push(Mm({[n]:0,[r]:[]},e)):i.push(e)})),e=i}(),0===t.length)return t;let l=-1;for(;l+=1,!(l>t.length-1);){if(u(t[l]),0===e.length)break}return t}(e);let a=function(e){let t=[];function a(e){return l?e:Dm(e,[n,r])}let s={};return ou(e,((r,l)=>{if(0===r[n]){let e=a(r);t.push(e),s[r[i]]=[l]}else{let n=function(t){for(let n=0;n<e.length;n++){let r=e[n];if(t[o]===r[i])return r}return null}(r);if(null!==n){let e=s[n[i]];e=[...e,u];let o=Ft(t,e,[]),l=a(r);o.push(l),s[r[i]]=[...e,o.length-1],lm(t,e,o)}else console.log(`can not find parent for ${Ft(r,o)}`)}})),t}(e);return a}function Am(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};K(t)||(t=e=>e);let r=Ft(n,"force",!1);return Yl(r)||(r=!1),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];if(!Ut(e)&&!Rt(e))return t(e,null,[]);function i(e){if(Ut(e))return af(_l(e));if(Rt(e)){let t=Object.getOwnPropertyNames(e),r=null;return n&&(r=Object.getOwnPropertySymbols(e)),Ut(t)||(t=[]),Ut(r)||(r=[]),[...t,...r]}return e}return function e(n,o){if(Ut(n))return i(n).map((i=>{let o=n[i],u=Ic(r);return r.push(i),o=t(o,i,u),o=e(o),r.pop(),o}));if(Rt(n)){let o=i(n),u={};return o.map((i=>{let o=n[i],l=Ic(r);r.push(i),o=t(o,i,l),o=e(o),r.pop(),u[i]=o})),u}return n}(e)}(e,t,r)}function Pm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!zt(e)&&!Yu(e))return[];let n=Ft(t,"bindKey",null);qt(n)||(n="id");let r=Ft(t,"bindParent",null);qt(r)||(r="parentId");let i=Ft(t,"bindBelong",null);qt(i)||(i="key");let o=Ft(t,"bindText",null);qt(o)||(o="text");let u=Ft(t,"bindType",null);qt(u)||(u="type");let l=Ft(t,"bindNumOfChilren",null);function a(e,t){return e=Ic(e),e=pu(e,(e=>B(e)?Xp(e):e)),B(t)&&(t=Xp(t)),(qt(t)||Xt(t))&&e.push(t),If(e,"-")}qt(l)||(l="numOfChilren");let s=[];return Am(e,((e,t,c)=>{let f=a(c,t),d=a(c,null),p="node";Rt(e)?p="object":Ut(e)&&(p="array");let h={[n]:f,[r]:d,[u]:p};if((qt(t)||yp(t))&&(h[i]=t),Rt(e)||Ut(e)||(h[o]=e),Rt(e)||Ut(e)){let t=_l(e);h[l]=t}return s.push(h),e}),{force:!0}),s}function Tm(e){if(!Ko(e))return"invalid element";let t=!1;try{t=document.activeElement===e}catch(e){}return t}function Ym(e){return Xt(e)?(e=sa(e),Math.cos(e*Math.PI/180)):null}function Hm(e){return Xt(e)?(e=sa(e),Math.tan(e*Math.PI/180)):null}function Im(){let e=new function e(){if(!(this instanceof e))return new e;this.SheetNames=[],this.Sheets={}};return e}function Lm(e){return Xt(e)?(e=sa(e),Math.sin(e*Math.PI/180)):null}function Nm(e){if(!qt(e))return!1;let t="YYYY-MM-DD";return e===n(e,t).format(t)}function $m(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;Xt(e)||(e=10);let t=kh();return setTimeout((function(){t.resolve()}),e),t}let Cm="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Bm=Cm.length;function Fm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=[];e=Vc(e)?qc(e):32;for(let n=0;n<e;n++)t[n]=Cm[0|Math.random()*Bm];return t.join("")}function Rm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return;let n=Ft(t,"duration",500);n=sa(n),n<0&&(n=1e3);let r=Ft(t,"delay",0);r=sa(r),r<0&&(r=0);let i=Ft(t,"opacityIni",0);i=sa(i),i=Math.min(Math.max(i,0),1),Xt(e.style.opacity)&&(i=sa(e.style.opacity));let o=10/n,u=`tag-${Fm()}`;e.setAttribute("dom-fade-tag",u),setTimeout((()=>{let t=setInterval((()=>{e.getAttribute("dom-fade-tag")!==u&&clearInterval(t),e.style.opacity=i,i>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i+=o,i>1&&(i=1)}),10)}),r)}function zm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return;let n=Ft(t,"duration",500);n=sa(n),n<0&&(n=1e3);let r=Ft(t,"delay",0);r=sa(r),r<0&&(r=0);let i=Ft(t,"opacityIni",1);i=sa(i),i=Math.min(Math.max(i,0),1),Xt(e.style.opacity)&&(i=sa(e.style.opacity));let o=10/n,u=`tag-${Fm()}`;e.setAttribute("dom-fade-tag",u),setTimeout((()=>{let t=setInterval((()=>{e.getAttribute("dom-fade-tag")!==u&&clearInterval(t),e.style.opacity=i,i<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i-=o,i<0&&(i=0)}),10)}),r)}let Um='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 512.001 512.001" style="width:12px; height:12px; enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><g><g><path d="M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285L284.286,256.002z"/></g></g></svg>',Wm={success:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 426.667 426.667" style="width:24px; height:24px; enable-background:new 0 0 426.667 426.667" xml:space="preserve"><path style="fill:#6ac259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333 c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622 l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.158 496.158" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158" xml:space="preserve"><path style="fill:#e04f5f" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085 c0,137.002,111.07,248.07,248.082,248.07C385.088,496.155,496.158,385.087,496.158,248.085z"/><path style="fill:#fff" d="M277.042,248.082l72.528-84.196c7.91-9.182,6.876-23.041-2.31-30.951 c-9.172-7.904-23.032-6.876-30.947,2.306l-68.236,79.212l-68.229-79.212c-7.91-9.188-21.771-10.216-30.954-2.306 c-9.186,7.91-10.214,21.77-2.304,30.951l72.522,84.196l-72.522,84.192c-7.91,9.182-6.882,23.041,2.304,30.951 c4.143,3.569,9.241,5.318,14.316,5.318c6.161,0,12.294-2.586,16.638-7.624l68.229-79.212l68.236,79.212 c4.338,5.041,10.47,7.624,16.637,7.624c5.069,0,10.168-1.749,14.311-5.318c9.186-7.91,10.22-21.77,2.31-30.951L277.042,248.082z"/></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 497.472 497.472" style="width:24px; height:24px; enable-background:new 0 0 497.472 497.472" xml:space="preserve"><g transform="matrix(1.25 0 0 -1.25 0 45)"><path style="fill:#ffcc4d" d="M24.374-357.857c-20.958,0-30.197,15.223-20.548,33.826L181.421,17.928 c9.648,18.603,25.463,18.603,35.123,0L394.14-324.031c9.671-18.603,0.421-33.826-20.548-33.826H24.374z"/><path style="fill:#231f20" d="M173.605-80.922c0,14.814,10.934,23.984,25.395,23.984c14.12,0,25.407-9.512,25.407-23.984 V-216.75c0-14.461-11.287-23.984-25.407-23.984c-14.461,0-25.395,9.182-25.395,23.984V-80.922z M171.489-289.056 c0,15.167,12.345,27.511,27.511,27.511c15.167,0,27.523-12.345,27.523-27.511c0-15.178-12.356-27.523-27.523-27.523 C183.834-316.579,171.489-304.234,171.489-289.056"/></g></svg>',infor:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.16 496.16" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158;" xml:space="preserve"><path d="m496.16 248.08c0-137.02-111.07-248.08-248.08-248.08-137.01 0-248.08 111.06-248.08 248.08 0 137 111.07 248.07 248.08 248.07 137.01 0 248.08-111.07 248.08-248.07z" fill="#25B7D3"/><g fill="#fff"><path d="m315.25 359.56c-1.387-2.032-4.048-2.755-6.27-1.702-24.582 11.637-52.482 23.94-57.958 25.015-0.138-0.123-0.357-0.348-0.644-0.737-0.742-1.005-1.103-2.318-1.103-4.015 0-13.905 10.495-56.205 31.192-125.72 17.451-58.406 19.469-70.499 19.469-74.514 0-6.198-2.373-11.435-6.865-15.146-4.267-3.519-10.229-5.302-17.719-5.302-12.459 0-26.899 4.73-44.146 14.461-16.713 9.433-35.352 25.41-55.396 47.487-1.569 1.729-1.733 4.314-0.395 6.228 1.34 1.915 3.825 2.644 5.986 1.764 7.037-2.872 42.402-17.359 47.557-20.597 4.221-2.646 7.875-3.989 10.861-3.989 0.107 0 0.199 4e-3 0.276 0.01 0.036 0.198 0.07 0.5 0.07 0.933 0 3.047-0.627 6.654-1.856 10.703-30.136 97.641-44.785 157.5-44.785 182.99 0 8.998 2.501 16.242 7.432 21.528 5.025 5.393 11.803 8.127 20.146 8.127 8.891 0 19.712-3.714 33.08-11.354 12.936-7.392 32.68-23.653 60.363-49.717 1.793-1.687 2.092-4.426 0.705-6.458z"/><path d="m314.28 76.672c-4.925-5.041-11.227-7.597-18.729-7.597-9.34 0-17.475 3.691-24.176 10.971-6.594 7.16-9.938 15.946-9.938 26.113 0 8.033 2.463 14.69 7.32 19.785 4.922 5.172 11.139 7.794 18.476 7.794 8.958 0 17.049-3.898 24.047-11.586 6.876-7.553 10.363-16.433 10.363-26.393 1e-3 -7.654-2.476-14.075-7.363-19.087z"/></g></svg>',cancel:Um},qm={},Vm=null,Xm=$l();function Zm(){ou(["top-right","top-left","bottom-right","bottom-left"],(e=>{!function(e){let t=fp(qm,{position:e});t=Vp(t,"timeStart");let n=16;ou(t,(e=>{qm[e.id].ele||(qm[e.id].ele=document.querySelector(`#${e.id}`)),qm[e.id].loc.top=n,qm[e.id].loc.height=qm[e.id].ele.offsetHeight,n+=qm[e.id].loc.height+16})),ou(t,(t=>{e.indexOf("bottom-")>=0?(qm[t.id].ele.style.bottom=`${qm[t.id].loc.top}px`,qm[t.id].loc.bottom=qm[t.id].loc.top):qm[t.id].ele.style.top=`${qm[t.id].loc.top}px`,e.indexOf("-left")>=0?(qm[t.id].ele.style.left="16px",qm[t.id].loc.left=16):(qm[t.id].ele.style.right="16px",qm[t.id].loc.right=16),qm[t.id].ele.style.zIndex=2e5,qm[t.id].ele.style.opacity=1,qm[t.id].ele.style.transform="",qm[t.id].ele.style.transform=null}))}(e)}))}function Gm(e){qm[e].ele&&qm[e].ele.parentNode.removeChild(qm[e].ele),qm[e]&&delete qm[e],Zm()}function Km(e,t){if(!Ko(e))return"invalid eleParent";if(Wt(t))e.insertAdjacentHTML("beforeend",t);else{if(!Ko(t))return"invalid itemChild";e.appendChild(t)}}function Jm(){return null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)}function Qm(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{Jm()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(e){}}function eg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tg(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!Ko(e))return Promise.reject("invalid ele");let o=Ft(i,"format");"side"!==o&&"line"!==o&&(o="side");let u="side"===o?"side-by-side":"line-by-line",l=$l().Diff2Html;if(!zt(l))throw new Error("invalid window.Diff2Html");(()=>{let e="fix-d2h-line-width";if(Ko(document.querySelector(`#${e}`)))return;let t=document.createElement("style");t.id=e,t.textContent="\n .d2h-code-side-line {\n width: inherit !important;\n }\n ",document.head.append(t)})(),qt(t)||(t="Text");let a=Hd(t,t,n,r),s=l.html(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eg(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({drawFileList:!0,matching:"lines",outputFormat:u},i));s=s.replace('<span class="d2h-file-list-title">Files changed (1)</span>',"");try{e.innerHTML=s}catch(e){console.log(e)}return{diff:a,html:s}}function ng(e,t){let n=kh();if(!Ut(e)&&!Rt(e))return n.reject("rs is not an array or object"),n;let r=!1;if(Rt(e)){r=!0;let t=[];ou(e,((e,n)=>{t.push({k:n,v:e})})),e=t}wp(t)||(t=function(e){return e});let i=-1,o=[];return e.reduce((function(e,n){return e.then((function(e){o.push(e),i+=1;let u=i,l=n;return r&&(u=n.k,l=n.v),wp(t)?t(l,u):l}))}),Promise.resolve()).then((function(e){o.push(e),o=Kp(o),n.resolve(o)})).catch((function(e){n.reject(e)})),n}Xm.ttWAlertCancel=function(e){Gm(e)},Xm.ttWAlertFadeIn=function(e){Rm(document.querySelector(`#${e}`))},Xm.ttWAlertFadeOut=function(e){zm(document.querySelector(`#${e}`))};let rg={},ig={};function og(e){let{tagName:t,path:n,attributes:r={},func:i}=e,o=kh();if("done"===rg[n])return o.resolve("loaded"),o;if("loading"===rg[n])return Rh((()=>"done"===rg[n])).then((function(){o.resolve("loaded")})),o;rg[n]="loading";let u=document.createElement(t);return ou(r,((e,t)=>{u.setAttribute(t,e)})),r.rel&&"stylesheet"===r.rel?(u.setAttribute("href",n),setTimeout((()=>{o.resolve(u),rg[n]="done"}),1)):(u.src=n,u.addEventListener("load",(()=>{let e;wp(i)?e=Rh(i):(e=kh(),e.resolve()),e.then((()=>$m(500))).then((function(){o.resolve(u),rg[n]="done"}))})),u.addEventListener("error",(()=>{o.reject(u),rg[n]="done"}))),document.getElementsByTagName("head")[0].appendChild(u),o}function ug(e){let t=kh();Ut(e)||(e=[e]),ou(e,((t,n)=>{Wt(t)&&(e[n]={path:t})}));let n=If(pu(e,"path"),"|");return"done"===ig[n]?(t.resolve("loaded"),t):"loading"===ig[n]?(Rh((()=>"done"===ig[n])).then((function(){t.resolve("loaded")})),t):(ig[n]="loading",ou(e,((e,t)=>{e.type||(".js"===ip(e.path,3)?e.type="js":".css"===ip(e.path,4)?e.type="css":e.type="unknow")})),ng(e,(e=>{let t=kh();if("js"===e.type)t=og({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=og({tagName:"link",path:e.path,attributes:{rel:"stylesheet"}});else{let n="invalid pathItem.type: "+e.type;console.log(n),t.reject(n)}return t})).finally((()=>{ig[n]="done"})))}function lg(e){return document.querySelectorAll(e)}function ag(e){function t(e){e.parentNode.removeChild(e)}if(Ko(e)){return void t(e)}if(!qt(e))return;let n=lg(e);ou(n,(function(e){t(e)}))}function sg(e,t){if(!Ko(e))return"invalid eleParent";if(Wt(t))e.insertAdjacentHTML("afterbegin",t);else{if(!Ko(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}async function cg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return Promise.reject("invalid ele");let n=Ft(t,"scale",1);if(!yp(n))return Promise.reject("opt.scale is not a number");if(n<1)return Promise.reject("opt.scale can not less then 1");let r=Ft(t,"picType","image/png");if("image/jpeg"!==r&&"image/png"!==r)return Promise.reject("opt.picType is not one of image/jpeg or image/png");let i=Ft(t,"toBase64",!0);if(!Tl(i))return Promise.reject("opt.toBase64 is not a boolean");let o=e.cloneNode(!0),u=document.createElement("div");u.style.position="absolute",u.style.top=0,u.style.left=0,u.style.zIndex=-1,u.appendChild(o);let l=document.createElement("div");l.style.opacity=0,l.style.position="relative",l.appendChild(u),sg(document.querySelector("body"),l);let a,s=$l().htmlToImage,c={pixelRatio:n,quality:.95};return i?"image/jpeg"===r?a=await s.toJpeg(u,c):"image/png"===r&&(a=await s.toPng(u,c)):a=await s.toCanvas(u,c),ag(l),a}function fg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var dg=wt,pg=$u,hg=function(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1},vg=wn,mg=wu,gg=Array.prototype.splice;var yg=function(e,t,n,r){var i=r?hg:pg,o=-1,u=t.length,l=e;for(e===t&&(t=mg(t)),n&&(l=dg(e,vg(n)));++o<u;)for(var a=0,s=t[o],c=n?n(s):s;(a=i(l,c,a,r))>-1;)l!==e&&gg.call(l,a,1),gg.call(e,a,1);return e},bg=yg;var wg=function(e,t){return e&&e.length&&t&&t.length?bg(e,t):e},xg=y(zp(wg));function jg(e){let t=function(e,n){return null===e.parentNode?n:t(e.parentNode,n.concat([e]))};return e instanceof HTMLElement||e instanceof SVGElement?t(e.parentNode,[]):[]}function Og(e){let t=Ft(e,"clientX",null),n=Ft(e,"clientY",null),r=Ft(e,"pageX",null),i=Ft(e,"pageY",null);if(null!==t&&null!==n&&null!==r&&null!==i)return{clientX:t,clientY:n,pageX:r,pageY:i};let o=Ft(e,"changedTouches",[]);if(1!==_l(o))return null;let u=o[0];return{clientX:Ft(u,"clientX",null),clientY:Ft(u,"clientY",null),pageX:Ft(u,"pageX",null),pageY:Ft(u,"pageY",null)}}function Sg(e,t){let n=[];try{n=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return n}function Eg(e,t){if(!Ko(e))return null;if(!qt(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function Dg(e){if(!Ko(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function kg(e,t){if(!zt(e))return null;if(!yp(e.clientX)||!yp(e.clientY))return null;if(!Ko(t))return null;let n=Dg(t);return n?{x:e.clientX-n.left,y:e.clientY-n.top,w:t.offsetWidth,h:t.offsetHeight}:null}function Mg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="dragpreviewid",n=null,r=null,i=null,o=null,u=null,l=!1,a=Ft(e,"attIdentify",null);qt(a)||(a="dragprevid");let s=Ft(e,"containerOpacity",null);yp(s)||(s=.4);let c=Ft(e,"containerBackground",null);qt(c)||(c="white");let f=Ft(e,"containerBorderWidth",null);yp(f)||(f=1);let d=Ft(e,"containerBorderColor",null);qt(d)||(d="#f26");let p=`c${Fm(8)}`;function h(e,t,n){r&&i&&o&&u&&!l&&(u.style.top=t-r.tShiftY+"px",u.style.left=e-r.tShiftX+"px")}function v(){ag(`[${t}='${p}']`),r=null,i=null,o=null,u=null}let m=function(e){h(e.clientX,e.clientY)};window.addEventListener("mousemove",m);let g=function(e){let t=Og(e);t&&h(t.clientX,t.clientY)};return window.addEventListener("touchmove",g),{createPreview:function(e,l,m){try{!function(){let v=function(e,t,r){let i=Dg(e);if(!i)return null;n=e;let o=e.cloneNode(!0);return o.tShiftX=t-i.left,o.tShiftY=r-i.top,o.tWidth=e.offsetWidth,o.tHeight=e.offsetHeight,o.tParent=e.parentNode,o.setAttribute(a,""),o}(e,l,m);if(null===v)return;let g=document.createElement("div");g.style.position="absolute",g.style.zIndex=1,g.style.top=0,g.style.left=0,g.style.width="100%",g.style.height="100%",g.appendChild(v);let y=document.createElement("div");y.style.position="relative",y.appendChild(g);let b=document.createElement("div");b.setAttribute(t,p),b.style.position="fixed",b.style.zIndex=1e5,b.style.width=`${v.tWidth+2*f}px`,b.style.height=`${v.tHeight+2*f}px`,b.style.opacity=s,b.style.background=c,b.style.border=`${f}px solid ${d}`,b.style.pointerEvents="none",b.appendChild(y),document.querySelector("body").appendChild(b),r=v,i=g,o=y,u=b,h(l,m)}()}catch(e){}let g=setInterval((()=>{let e=Eg(n,a);document.querySelector(`[${a}='${e}']`)||(clearInterval(g),v())}),500)},updateDragPreview:h,pauseDragPreview:function(e){l=e},removeDragPreview:v,setNodeStyle:function(e){try{ou(e,((e,t)=>{r.style[t]=e}))}catch(e){}},setCoverStyle:function(e){try{ou(e,((e,t)=>{i.style[t]=e}))}catch(e){}},setSellStyle:function(e){try{ou(e,((e,t)=>{o.style[t]=e}))}catch(e){}},setContainerStyle:function(e){try{ou(e,((e,t)=>{u.style[t]=e}))}catch(e){}},clear:function(){window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",g)}}}function _g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ag(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_g(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let Pg={};function Tg(e,t,n){let{attIdentify:r,previewOpacity:i,previewBackground:o,previewBorderWidth:u,previewBorderColor:l}=n;if(!Zt(Pg,e)){let t=$c(),n=function(e){let t=[];function n(){let n;n="mousemove";let r=function(t){e.dragMove({e:t,name:"mousemove"})};window.addEventListener(n,r),t.push({ele:window,name:n,f:r}),n="mouseup";let i=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(n,i),t.push({ele:window,name:n,f:i}),n="touchmove";let o=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(n,o),t.push({ele:window,name:n,f:o}),n="touchend";let u=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(n,u),t.push({ele:window,name:n,f:u})}function r(){ou(t,(e=>{let{ele:t,name:n,f:r}=e;t.removeEventListener(n,r)}))}return{bind:n,unbind:r}}({dragMove:n=>{t.emit(e+"-dragMove",n)},dragDrop:n=>{t.emit(e+"-dragDrop",n)}});n.bind();let a=Mg({attIdentify:r,containerOpacity:i,containerBackground:o,containerBorderWidth:u,containerBorderColor:l});Pg[e]={eleIds:[],evg:t,oevg:n,pv:a,isInit:!1,isActive:!0}}return Pg[e].eleIds.push(t),Pg[e].evg}function Yg(e,t){let n=Eg(e,t);return n=qc(n),n}function Hg(e){let{gid:t,attGroup:n,attIndex:r,attIdentify:i,timeDragStartDelay:o,previewOpacity:u,previewDisabledOpacity:l}=e,a=null,s=null,c=null,f=null;if(Pg[t].isInit)return Pg[t].evg;Pg[t].isInit=!0;let d=Pg[t].evg;d.on(t+"-dragStart",(function(e){let{e:n,ele:u,from:c}=e;if(!Pg[t].isActive)return;let f=Yg(u,r);if(null===f)return;a=f,s=u;let h={event:n,startInd:a,startEle:s,tarInd:a,tarEid:Eg(s,i)};d.emit(t+"-change",Ag({mode:"start"},h)),d.emit(t+"-start",h);let v=Og(n);if(!v)return;setTimeout((()=>{null!==a&&(p.createPreview(s,v.clientX,v.clientY),p.setContainerStyle({opacity:l}))}),o)})),d.on(t+"-dragMove",(function(e){let{e:o,name:h,from:v}=e;if(!Pg[t].isActive)return;let m=function(e,t,n){let r=null,i=jg(e.target);return ou(i,(e=>{if(Eg(e,t)===n)return r=e,!1})),r}(o,n,t);if(null===a)return;let g=Og(o);if(!g)return;function y(){let e={event:o,startInd:a,startEle:s,endInd:c,endEle:f,tarInd:c,tarEid:Eg(f,i)};d.emit(t+"-change",Ag({mode:"leave"},e)),d.emit(t+"-leave",e),c=null,f=null,p.setContainerStyle({opacity:l})}if(!m)return void(null!==c&&y());let b=Yg(m,r);if(null===b)return;if(b===a)return void(null!==c&&y());if(b!==c)null!==c&&y(),function(e,n){c=e,f=n;let r={event:o,startInd:a,startEle:s,endInd:c,endEle:f,tarInd:c,tarEid:Eg(f,i)};d.emit(t+"-change",Ag({mode:"enter"},r)),d.emit(t+"-enter",r),p.setContainerStyle({opacity:u})}(b,m);else{let e=kg(g,m),n=0;e.w>0&&(n=e.x/e.w);let r=0;e.h>0&&(r=e.y/e.h),n>=0&&n<=1&&r>=0&&r<=1&&function(e,n,r){let l=Ag(Ag({event:o,startInd:a,startEle:s,endInd:c,endEle:f,tarInd:c,tarEid:Eg(f,i)},e),{},{rx:n,ry:r});d.emit(t+"-change",Ag({mode:"move"},l)),d.emit(t+"-move",l),p.setContainerStyle({opacity:u})}(e,n,r)}})),d.on(t+"-dragDrop",(function(e){let{e:o,name:u,from:l}=e;if(p.removeDragPreview(),!Pg[t].isActive)return;if(null===a)return;let h=function(e,t,n){let r=null,i=Og(e);if(!i)return r;let o=Sg(i.clientX,i.clientY);return ou(o,(e=>{if(Eg(e,t)===n)return r=e,!1})),r}(o,n,t);if(!h)return a=null,s=null,c=null,void(f=null);let v=Yg(h,r);if(null===v)return;(function(e,n){c=e,f=n;let r={event:o,startInd:a,startEle:s,endInd:c,endEle:f,tarInd:c,tarEid:Eg(f,i)};d.emit(t+"-change",Ag({mode:"drop"},r)),d.emit(t+"-drop",r)})(v,h),a=null,s=null,c=null,f=null}));let p=Pg[t].pv}async function Ig(e){let t=[],n=kh();return await async function e(n){let r=null;if(n.isFile&&(r=await async function(e){let t=kh();try{e.file(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(n)),t.push({type:n.isDirectory?"folder":n.isFile?"file":"unknow",path:n.fullPath,name:n.name,entry:n,file:r}),n.isDirectory){let t=n.createReader(),r=await async function(e){let t=kh();try{e.readEntries(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(t);await ng(r,(async t=>{await e(t)}))}}(e),n.resolve(t),n}async function Lg(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n].webkitGetAsEntry();r&&t.push(r)}let n=await async function(e){let t=[];return await ng(e,(async e=>{let n=await Ig(e);ou(n,(e=>{t.push(e)}))})),t}(t);return n}async function Ng(e){let t=[],n=[];try{t=await async function(e){let t=[];return ou(e,(e=>{e.type&&t.push({type:"file",name:e.name,file:e})})),t}(Ft(e,"files",[])),Jm()||(n=await Lg(Ft(e,"items",[])))}catch(e){return Promise.reject(e)}return{files:t,entries:n}}function $g(e){return document.querySelector(e)}function Cg(e){return!Tu(e)}function Bg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=[{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"ppt",group:"docums",acp:"application/vnd.ms-powerpoint",exec:"powerpoint"},{name:"pptx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.presentationml.presentation",exec:"powerpoint"},{name:"xls",group:"docums",acp:"application/vnd.ms-excel",exec:"excel"},{name:"xlsx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",exec:"word"},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"application/vnd.oasis.opendocument.spreadsheet",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"zip",group:"compress",acp:"application/zip",exec:"7z"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"7z"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"7z"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"7z"},{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"txt",group:"data",acp:"text/plain",exec:"textviwer"},{name:"csv",group:"data",acp:"text/csv",exec:"excel"},{name:"dat",group:"data",acp:"application/octet-stream",exec:"binaryviwer"}];if(""===e)return t;let n={};return ou(t,(function(t){let r=t[e];Zt(n,r)||(n[r]=[]),n[r].push(t)})),n}function Fg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";if("*"===e)return e;if(!Wt(e)&&!Yu(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=Bg();function n(e){return Qu(pu(e,"acp"))}Wt(e)&&(e=[e]);let r="";if(Yu(e)){let i=pu(e,(function(e){return function(e){return n(fp(t,{group:e}))}(e)})),o=pu(e,(function(e){return n(fp(t,{name:e}))})),u=Du(i,o);u=fp(u,Cg),r=If(u,",")}return r}function Rg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;t=sa(t),t<=0&&(t=1e3);let n={},r=[];return ou(Ft(e,"files",[]),(function(e,i){e.size/1024/1024>t&&(n[i]=`檔案大小超過上限${t}mb`),r.push(e)})),{files:r,errs:n}}var zg=C;var Ug=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],u=t(o);if(null!=u&&(void 0===l?u==u&&!zg(u):n(u,l)))var l=u,a=o}return a};var Wg=Ug,qg=function(e,t){return e<t},Vg=fo;var Xg=y((function(e){return e&&e.length?Wg(e,Vg,qg):void 0}));function Zg(){return!function(){try{return"IntersectionObserver"in window}catch(e){return!1}}()||!function(){try{return"IntersectionObserverEntry"in window}catch(e){return!1}}()||!(function(){try{return"intersectionRatio"in window.IntersectionObserverEntry.prototype}catch(e){return!1}}()||wp(window.IntersectionObserverEntry))}function Gg(e,t){if(!Ko(e))return Promise.reject("invalid ele");let n=$l().markmap,{Transformer:r,Markmap:i,loadCSS:o,loadJS:u}=n,l=e=>{let t=new r,{root:n,features:i}=t.transform(e),{styles:o,scripts:u}=t.getUsedAssets(i);return{root:n,features:i,styles:o,scripts:u}},{root:a,styles:s,scripts:c}=l(t);s&&o(s),c&&u(c,{getMarkmap:()=>n}),e.innerHTML="";let f=i.create(e,null,a);return f.transMarkdown=l,f}const Kg=e=>void 0===e||"auto"===e||"instant"===e||"smooth"===e;function Jg(e,t){this.scrollLeft=e,this.scrollTop=t}const Qg=function(e,t){return`Failed to execute '${e}' on '${t}': ${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cannot convert to dictionary."}`},ey=(e,t,n)=>Qg(e,t,`The provided value '${n}' is not a valid enum value of type ScrollBehavior.`),ty=(e,t,n)=>{var r;const i=`__SEAMLESS.BACKUP$${t}`;return e[i]||!e[t]||(null===(r=e[t])||void 0===r?void 0:r.__isPolyfill)||(e[i]=e[t]),e[i]||n},ny=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},ry=e=>"scrollBehavior"in window.document.documentElement.style&&!0!==(null==e?void 0:e.forcePolyfill),iy=e=>{Object.defineProperty(e,"__isPolyfill",{value:!0})},oy=(e,t)=>{iy(t),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach((n=>{ty(n,e),n[e]=t}))},uy=e=>e.ownerDocument.scrollingElement||e.ownerDocument.documentElement;const ly=e=>.5*(1-Math.cos(Math.PI*e));function ay(){var e;let t;return t=(null===(e=window.performance)||void 0===e?void 0:e.now)?()=>window.performance.now():()=>window.Date.now(),ay=t,t()}const sy=e=>{const t=(ay()-e.timeStamp)/(e.duration||500);if(t>1)return e.method(e.targetX,e.targetY),void e.callback();const n=(e.timingFunc||ly)(t),r=e.startX+(e.targetX-e.startX)*n,i=e.startY+(e.targetY-e.startY)*n;e.method(r,i),e.rafId=window.requestAnimationFrame((()=>{sy(e)}))},cy=e=>isFinite(e)?Number(e):0,fy=(e,t,n)=>{var r,i;if(!(e=>{var t;return null!==(t=e.isConnected)&&void 0!==t?t:!(e.ownerDocument&&1&e.ownerDocument.compareDocumentPosition(e))})(e))return;const o=e.scrollLeft,u=e.scrollTop,l=cy(null!==(r=t.left)&&void 0!==r?r:o),a=cy(null!==(i=t.top)&&void 0!==i?i:u);if(l===o&&a===u)return;const s=ty(HTMLElement.prototype,"scroll",Jg),c=ty(Object.getPrototypeOf(e),"scroll",s).bind(e);if("smooth"!==t.behavior)return void c(l,a);const f=()=>{window.removeEventListener("wheel",p),window.removeEventListener("touchmove",p)},d=Object.assign(Object.assign({},n),{timeStamp:ay(),startX:o,startY:u,targetX:l,targetY:a,rafId:0,method:c,callback:()=>{f();const t=9===e.nodeType;e.dispatchEvent(function(e){if("function"==typeof Event)return new Event("scrollend",{bubbles:e,cancelable:!1});const t=document.createEvent("Event");return t.initEvent("scrollend",e,!1),t}(t))}}),p=()=>{window.cancelAnimationFrame(d.rafId),f()};window.addEventListener("wheel",p,{passive:!0,once:!0}),window.addEventListener("touchmove",p,{passive:!0,once:!0}),sy(d)},dy=e=>(t,n,r)=>{const[i,o]=(u=t).window===u?[uy(t.document.documentElement),"Window"]:[t,"Element"];var u;const l=null!=n?n:{};if(!ny(l))throw new TypeError(Qg(e,o));if(!Kg(l.behavior))throw new TypeError(ey(e,o,l.behavior));"scrollBy"===e&&(l.left=cy(l.left)+i.scrollLeft,l.top=cy(l.top)+i.scrollTop),fy(i,l,r)},py=dy("scroll"),hy=dy("scrollTo"),vy=dy("scrollBy"),my=py,gy=e=>{switch(e){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},yy=(e,t,n,r)=>{let i=0;switch(t||(i^=2),e){case 0:i=i>>1|(1&i)<<1,[n,r]=[r,n];break;case 1:case 3:i^=1;break;case 4:i^=2}return[i,n,r]},by=e=>1==(1&yy(gy(e.writingMode),"rtl"!==e.direction,void 0,void 0)[0]),wy=(e,t,n,r,i,o,u)=>0!==e?e:i<t&&o>n||i>t&&o<n?null:i<=t&&u<=r||o>=n&&u>=r?2:o>n&&u<r||i<t&&u>r?3:null,xy=e=>"visible"!==e&&"clip"!==e,jy=(e,t)=>(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(xy(t.overflowY)||xy(t.overflowX)||e===uy(e)),Oy=e=>{const t=e.parentNode,n=e.parentElement;if(null===n&&null!==t){if(11===t.nodeType)return t.host;if(9===t.nodeType)return(e=>{var t;try{return(null===(t=e.ownerDocument.defaultView)||void 0===t?void 0:t.frameElement)||null}catch(e){return null}})(e)}return n},Sy=(e,t,n)=>e<t?t:e>n?n:e,Ey=(e,t,n)=>{switch(e){case 1:return(t+n)/2;case 3:return n;case 2:case 0:return t}},Dy=(e,t)=>{var n,r,i;const o=null===(n=e.ownerDocument.defaultView)||void 0===n?void 0:n.visualViewport,[u,l,a,s]=e===uy(e)?[0,0,null!==(r=null==o?void 0:o.width)&&void 0!==r?r:e.clientWidth,null!==(i=null==o?void 0:o.height)&&void 0!==i?i:e.clientHeight]:[t.left,t.top,e.clientWidth,e.clientHeight],c=u+e.clientLeft,f=l+e.clientTop;return[f,c+a,f+s,c]},ky=(e,t)=>{const n=[];let r=e.ownerDocument,i=r.defaultView;if(!i)return n;const o=window.getComputedStyle(e),u="rtl"!==o.direction,l=gy(o.writingMode||o.getPropertyValue("-webkit-writing-mode")||o.getPropertyValue("-ms-writing-mode")),[a,s]=((e,t,n)=>{const[r,i,o]=yy(t,n,e.block||"start",e.inline||"nearest");return[i,o].map(((e,t)=>{switch(e){case"center":return 1;case"nearest":return 0;default:return"start"===e==!(r>>t&1)?2:3}}))})(t,l,u);let[c,f,d,p]=((e,t,n)=>{const{top:r,right:i,bottom:o,left:u}=t,l=(a=e.ownerDocument,["scroll-margin","scroll-snap-margin"].filter((e=>e in a.documentElement.style))[0]);var a;if(!l)return[r,i,o,u];const s=e=>{const t=n.getPropertyValue(`${l}-${e}`);return parseInt(t,10)||0};return[r-s("top"),i+s("right"),o+s("bottom"),u-s("left")]})(e,e.getBoundingClientRect(),o);for(let o=Oy(e);null!==o;o=Oy(o)){if(r!==o.ownerDocument){if(r=o.ownerDocument,i=r.defaultView,!i)break;const{left:e,top:t}=o.getBoundingClientRect();c+=t,f+=e,d+=t,p+=e}const e=i.getComputedStyle(o);if("fixed"===e.position)break;if(!jy(o,e))continue;const u=o.getBoundingClientRect(),[l,h,v,m]=Dy(o,u),g=wy(a,m,h,o.clientWidth,p,f,f-p),y=wy(s,l,v,o.clientHeight,c,d,d-c),b=null===g?0:Ey(g,p,f)-Ey(g,m,h),w=null===y?0:Ey(y,c,d)-Ey(y,l,v),x=by(e)?Sy(b,-o.scrollWidth+o.clientWidth-o.scrollLeft,-o.scrollLeft):Sy(b,-o.scrollLeft,o.scrollWidth-o.clientWidth-o.scrollLeft),j=Sy(w,-o.scrollTop,o.scrollHeight-o.clientHeight-o.scrollTop);n.push([o,{left:o.scrollLeft+x,top:o.scrollTop+j,behavior:t.behavior}]),c=Math.max(c-j,l),f=Math.min(f-x,h),d=Math.min(d-j,v),p=Math.max(p-x,m)}return n},My=(e,t,n)=>{const r=t||{};if(!Kg(r.behavior))throw new TypeError(ey("scrollIntoView","Element",r.behavior));ky(e,r).forEach((e=>{let[t,r]=e;my(t,r,n)}))},_y=(e,t)=>n=>{if(ry(n))return;const r={scroll:py,scrollTo:hy,scrollBy:vy}[e];t(e,(function(){const e=arguments;if(1===arguments.length)return void r(this,e[0],n);r(this,{left:e[0],top:e[1]})}))},Ay=_y("scroll",oy),Py=_y("scrollTo",oy),Ty=_y("scrollBy",oy),Yy=(e,t)=>{iy(t),ty(window,e),window[e]=t},Hy=_y("scroll",Yy),Iy=_y("scrollTo",Yy),Ly=_y("scrollBy",Yy);function Ny(e){My(this,{block:null==e||e?"start":"end",inline:"nearest"})}const $y=e=>{if(ry(e))return;const t=ty(window.HTMLElement.prototype,"scrollIntoView",Ny);oy("scrollIntoView",(function(){const n=arguments,r=n[0];1===n.length&&ny(r)?My(this,r,e):t.apply(this,n)}))},Cy=e=>{ry(e)||(Ay(e),Py(e),Ty(e),$y(e),Hy(e),Iy(e),Ly(e))};function By(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?By(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):By(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ry(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function zy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ry(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ry(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Uy=Ba,Wy=He;var qy=function(e,t,n){(void 0!==n&&!Wy(e[t],n)||void 0===n&&!(t in e))&&Uy(e,t,n)},Vy=Wn,Xy=L;var Zy=function(e){return Xy(e)&&Vy(e)};var Gy=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Ky=Va,Jy=is;var Qy=qy,eb=ss,tb=Ls,nb=wu,rb=Xs,ib=an,ob=b,ub=Zy,lb=fn,ab=G,sb=q,cb=Vo,fb=Dn,db=Gy,pb=function(e){return Ky(e,Jy(e))};var hb=hr,vb=qy,mb=Kt,gb=function(e,t,n,r,i,o,u){var l=db(e,n),a=db(t,n),s=u.get(a);if(s)Qy(e,n,s);else{var c=o?o(l,a,n+"",e,t,u):void 0,f=void 0===c;if(f){var d=ob(a),p=!d&&lb(a),h=!d&&!p&&fb(a);c=a,d||p||h?ob(l)?c=l:ub(l)?c=nb(l):p?(f=!1,c=eb(a,!0)):h?(f=!1,c=tb(a,!0)):c=[]:cb(a)||ib(a)?(c=l,ib(l)?c=pb(l):sb(l)&&!ab(l)||(c=rb(a))):f=!1}f&&(u.set(a,c),i(c,a,r,o,u),u.delete(a)),Qy(e,n,c)}},yb=q,bb=is,wb=Gy;var xb=function e(t,n,r,i,o){t!==n&&mb(n,(function(u,l){if(o||(o=new hb),yb(u))gb(t,n,l,r,e,i,o);else{var a=i?i(wb(t,l),u,l+"",t,n,o):void 0;void 0===a&&(a=u),vb(t,l,a)}}),bb)},jb=zp,Ob=Po;var Sb=xb,Eb=y(function(e){return jb((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,u&&Ob(n[0],n[1],u)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}((function(e,t,n){Sb(e,t,n)})));async function Db(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!0,o=null,u=kh();if(zt(n)||(n={}),!Ko(e))return u.reject("eleImg is not a HTMLElement"),u;if(o=e,null!==t){if(!Ko(t))return u.reject("eleGroup is not a HTMLElement"),u;r=!1,o=t}if(!r){let e=t.querySelectorAll("img"),n=_l(e);if(0===n)return u.reject("eleGroup does not contain any img"),u;1===n&&(r=!0)}let l={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};r||(l=function(){let e={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};return e.navbar=!0,e.toolbar.prev=4,e.toolbar.next=4,e}()),l=Eb(l,Ic(n));let a=!1;l.hide=function(){a||(a=!0,c.hide(!0))},l.hidden=function(){c.destroy(),u.resolve("close")};let s=function(){let e=$l();return i||e.Viewer}(),c=new s(o,l);return c.show(),u}function kb(e,t){let n=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}function Mb(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ft(t,"multiple");Yl(n)||(n=!1);let r=Ft(t,"entireHierarchy");Yl(r)||(r=!1),r&&!n&&(n=!0);let i=Ft(t,"sizelimit");Xt(i)||(i=1e3),i=sa(i);let o=kh(),u="drf"+Fm(),l="GrpDomReadFile";ag(`[name=${l}]`);let a=Fg(e),s=`<div name="${l}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${u}" type="file" accept="${a}" ${n?"multiple":""} ${r?"webkitdirectory":""} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;Km(document.querySelector("body"),s);let c=$g("#"+u),f=!1;function d(e){f=!0;let t=Rg(this,i);o.resolve(t),c.removeEventListener("change",d),r||window.removeEventListener("focus",p),ag(`[name=${l}]`)}function p(e){setTimeout((()=>{f||d()}),300)}return c.addEventListener("change",d,!0),r||window.addEventListener("focus",p),kb(c,"click"),o}Nl()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let n=document.createEvent("MouseEvent");return n.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),n};e.prototype=Event.prototype,window.MouseEvent=e}();var _b="top",Ab="bottom",Pb="right",Tb="left",Yb="auto",Hb=[_b,Ab,Pb,Tb],Ib="start",Lb="end",Nb="clippingParents",$b="viewport",Cb="popper",Bb="reference",Fb=Hb.reduce((function(e,t){return e.concat([t+"-"+Ib,t+"-"+Lb])}),[]),Rb=[].concat(Hb,[Yb]).reduce((function(e,t){return e.concat([t,t+"-"+Ib,t+"-"+Lb])}),[]),zb=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ub(e){return e?(e.nodeName||"").toLowerCase():null}function Wb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qb(e){return e instanceof Wb(e).Element||e instanceof Element}function Vb(e){return e instanceof Wb(e).HTMLElement||e instanceof HTMLElement}function Xb(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Wb(e).ShadowRoot||e instanceof ShadowRoot)}var Zb={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Vb(i)&&Ub(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Vb(r)&&Ub(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Gb(e){return e.split("-")[0]}var Kb=Math.max,Jb=Math.min,Qb=Math.round;function ew(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function tw(){return!/^((?!chrome|android).)*safari/i.test(ew())}function nw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Vb(e)&&(i=e.offsetWidth>0&&Qb(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Qb(r.height)/e.offsetHeight||1);var u=(qb(e)?Wb(e):window).visualViewport,l=!tw()&&n,a=(r.left+(l&&u?u.offsetLeft:0))/i,s=(r.top+(l&&u?u.offsetTop:0))/o,c=r.width/i,f=r.height/o;return{width:c,height:f,top:s,right:a+c,bottom:s+f,left:a,x:a,y:s}}function rw(e){var t=nw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function iw(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ow(e){return Wb(e).getComputedStyle(e)}function uw(e){return["table","td","th"].indexOf(Ub(e))>=0}function lw(e){return((qb(e)?e.ownerDocument:e.document)||window.document).documentElement}function aw(e){return"html"===Ub(e)?e:e.assignedSlot||e.parentNode||(Xb(e)?e.host:null)||lw(e)}function sw(e){return Vb(e)&&"fixed"!==ow(e).position?e.offsetParent:null}function cw(e){for(var t=Wb(e),n=sw(e);n&&uw(n)&&"static"===ow(n).position;)n=sw(n);return n&&("html"===Ub(n)||"body"===Ub(n)&&"static"===ow(n).position)?t:n||function(e){var t=/firefox/i.test(ew());if(/Trident/i.test(ew())&&Vb(e)&&"fixed"===ow(e).position)return null;var n=aw(e);for(Xb(n)&&(n=n.host);Vb(n)&&["html","body"].indexOf(Ub(n))<0;){var r=ow(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function fw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dw(e,t,n){return Kb(e,Jb(t,n))}function pw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function hw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var vw={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,u=n.modifiersData.popperOffsets,l=Gb(n.placement),a=fw(l),s=[Tb,Pb].indexOf(l)>=0?"height":"width";if(o&&u){var c=function(e,t){return pw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:hw(e,Hb))}(i.padding,n),f=rw(o),d="y"===a?_b:Tb,p="y"===a?Ab:Pb,h=n.rects.reference[s]+n.rects.reference[a]-u[a]-n.rects.popper[s],v=u[a]-n.rects.reference[a],m=cw(o),g=m?"y"===a?m.clientHeight||0:m.clientWidth||0:0,y=h/2-v/2,b=c[d],w=g-f[s]-c[p],x=g/2-f[s]/2+y,j=dw(b,x,w),O=a;n.modifiersData[r]=((t={})[O]=j,t.centerOffset=j-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&iw(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mw(e){return e.split("-")[1]}var gw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yw(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,u=e.offsets,l=e.position,a=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=u.x,p=void 0===d?0:d,h=u.y,v=void 0===h?0:h,m="function"==typeof c?c({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var g=u.hasOwnProperty("x"),y=u.hasOwnProperty("y"),b=Tb,w=_b,x=window;if(s){var j=cw(n),O="clientHeight",S="clientWidth";if(j===Wb(n)&&"static"!==ow(j=lw(n)).position&&"absolute"===l&&(O="scrollHeight",S="scrollWidth"),i===_b||(i===Tb||i===Pb)&&o===Lb)w=Ab,v-=(f&&j===x&&x.visualViewport?x.visualViewport.height:j[O])-r.height,v*=a?1:-1;if(i===Tb||(i===_b||i===Ab)&&o===Lb)b=Pb,p-=(f&&j===x&&x.visualViewport?x.visualViewport.width:j[S])-r.width,p*=a?1:-1}var E,D=Object.assign({position:l},s&&gw),k=!0===c?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Qb(n*i)/i||0,y:Qb(r*i)/i||0}}({x:p,y:v},Wb(n)):{x:p,y:v};return p=k.x,v=k.y,a?Object.assign({},D,((E={})[w]=y?"0":"",E[b]=g?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",E)):Object.assign({},D,((t={})[w]=y?v+"px":"",t[b]=g?p+"px":"",t.transform="",t))}var bw={passive:!0};var ww={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,u=r.resize,l=void 0===u||u,a=Wb(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&s.forEach((function(e){e.addEventListener("scroll",n.update,bw)})),l&&a.addEventListener("resize",n.update,bw),function(){o&&s.forEach((function(e){e.removeEventListener("scroll",n.update,bw)})),l&&a.removeEventListener("resize",n.update,bw)}},data:{}},xw={left:"right",right:"left",bottom:"top",top:"bottom"};function jw(e){return e.replace(/left|right|bottom|top/g,(function(e){return xw[e]}))}var Ow={start:"end",end:"start"};function Sw(e){return e.replace(/start|end/g,(function(e){return Ow[e]}))}function Ew(e){var t=Wb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Dw(e){return nw(lw(e)).left+Ew(e).scrollLeft}function kw(e){var t=ow(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Mw(e){return["html","body","#document"].indexOf(Ub(e))>=0?e.ownerDocument.body:Vb(e)&&kw(e)?e:Mw(aw(e))}function _w(e,t){var n;void 0===t&&(t=[]);var r=Mw(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=Wb(r),u=i?[o].concat(o.visualViewport||[],kw(r)?r:[]):r,l=t.concat(u);return i?l:l.concat(_w(aw(u)))}function Aw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Pw(e,t,n){return t===$b?Aw(function(e,t){var n=Wb(e),r=lw(e),i=n.visualViewport,o=r.clientWidth,u=r.clientHeight,l=0,a=0;if(i){o=i.width,u=i.height;var s=tw();(s||!s&&"fixed"===t)&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:u,x:l+Dw(e),y:a}}(e,n)):qb(t)?function(e,t){var n=nw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Aw(function(e){var t,n=lw(e),r=Ew(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Kb(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),u=Kb(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+Dw(e),a=-r.scrollTop;return"rtl"===ow(i||n).direction&&(l+=Kb(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:u,x:l,y:a}}(lw(e)))}function Tw(e,t,n,r){var i="clippingParents"===t?function(e){var t=_w(aw(e)),n=["absolute","fixed"].indexOf(ow(e).position)>=0&&Vb(e)?cw(e):e;return qb(n)?t.filter((function(e){return qb(e)&&iw(e,n)&&"body"!==Ub(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),u=o[0],l=o.reduce((function(t,n){var i=Pw(e,n,r);return t.top=Kb(i.top,t.top),t.right=Jb(i.right,t.right),t.bottom=Jb(i.bottom,t.bottom),t.left=Kb(i.left,t.left),t}),Pw(e,u,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Yw(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Gb(i):null,u=i?mw(i):null,l=n.x+n.width/2-r.width/2,a=n.y+n.height/2-r.height/2;switch(o){case _b:t={x:l,y:n.y-r.height};break;case Ab:t={x:l,y:n.y+n.height};break;case Pb:t={x:n.x+n.width,y:a};break;case Tb:t={x:n.x-r.width,y:a};break;default:t={x:n.x,y:n.y}}var s=o?fw(o):null;if(null!=s){var c="y"===s?"height":"width";switch(u){case Ib:t[s]=t[s]-(n[c]/2-r[c]/2);break;case Lb:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}function Hw(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,u=void 0===o?e.strategy:o,l=n.boundary,a=void 0===l?Nb:l,s=n.rootBoundary,c=void 0===s?$b:s,f=n.elementContext,d=void 0===f?Cb:f,p=n.altBoundary,h=void 0!==p&&p,v=n.padding,m=void 0===v?0:v,g=pw("number"!=typeof m?m:hw(m,Hb)),y=d===Cb?Bb:Cb,b=e.rects.popper,w=e.elements[h?y:d],x=Tw(qb(w)?w:w.contextElement||lw(e.elements.popper),a,c,u),j=nw(e.elements.reference),O=Yw({reference:j,element:b,strategy:"absolute",placement:i}),S=Aw(Object.assign({},b,O)),E=d===Cb?S:j,D={top:x.top-E.top+g.top,bottom:E.bottom-x.bottom+g.bottom,left:x.left-E.left+g.left,right:E.right-x.right+g.right},k=e.modifiersData.offset;if(d===Cb&&k){var M=k[i];Object.keys(D).forEach((function(e){var t=[Pb,Ab].indexOf(e)>=0?1:-1,n=[_b,Ab].indexOf(e)>=0?"y":"x";D[e]+=M[n]*t}))}return D}function Iw(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,u=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,s=void 0===a?Rb:a,c=mw(r),f=c?l?Fb:Fb.filter((function(e){return mw(e)===c})):Hb,d=f.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Hw(e,{placement:n,boundary:i,rootBoundary:o,padding:u})[Gb(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var Lw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,u=n.altAxis,l=void 0===u||u,a=n.fallbackPlacements,s=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,m=t.options.placement,g=Gb(m),y=a||(g===m||!h?[jw(m)]:function(e){if(Gb(e)===Yb)return[];var t=jw(e);return[Sw(e),t,Sw(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(Gb(n)===Yb?Iw(t,{placement:n,boundary:c,rootBoundary:f,padding:s,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,x=t.rects.popper,j=new Map,O=!0,S=b[0],E=0;E<b.length;E++){var D=b[E],k=Gb(D),M=mw(D)===Ib,_=[_b,Ab].indexOf(k)>=0,A=_?"width":"height",P=Hw(t,{placement:D,boundary:c,rootBoundary:f,altBoundary:d,padding:s}),T=_?M?Pb:Tb:M?Ab:_b;w[A]>x[A]&&(T=jw(T));var Y=jw(T),H=[];if(o&&H.push(P[k]<=0),l&&H.push(P[T]<=0,P[Y]<=0),H.every((function(e){return e}))){S=D,O=!1;break}j.set(D,H)}if(O)for(var I=function(e){var t=b.find((function(t){var n=j.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},L=h?3:1;L>0;L--){if("break"===I(L))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Nw(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function $w(e){return[_b,Pb,Ab,Tb].some((function(t){return e[t]>=0}))}var Cw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,u=Rb.reduce((function(e,n){return e[n]=function(e,t,n){var r=Gb(e),i=[Tb,_b].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,u=o[0],l=o[1];return u=u||0,l=(l||0)*i,[Tb,Pb].indexOf(r)>=0?{x:l,y:u}:{x:u,y:l}}(n,t.rects,o),e}),{}),l=u[t.placement],a=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=u}};var Bw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,u=n.altAxis,l=void 0!==u&&u,a=n.boundary,s=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,v=void 0===h?0:h,m=Hw(t,{boundary:a,rootBoundary:s,padding:f,altBoundary:c}),g=Gb(t.placement),y=mw(t.placement),b=!y,w=fw(g),x="x"===w?"y":"x",j=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,E="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,D="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(j){if(o){var _,A="y"===w?_b:Tb,P="y"===w?Ab:Pb,T="y"===w?"height":"width",Y=j[w],H=Y+m[A],I=Y-m[P],L=p?-S[T]/2:0,N=y===Ib?O[T]:S[T],$=y===Ib?-S[T]:-O[T],C=t.elements.arrow,B=p&&C?rw(C):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=F[A],z=F[P],U=dw(0,O[T],B[T]),W=b?O[T]/2-L-U-R-D.mainAxis:N-U-R-D.mainAxis,q=b?-O[T]/2+L+U+z+D.mainAxis:$+U+z+D.mainAxis,V=t.elements.arrow&&cw(t.elements.arrow),X=V?"y"===w?V.clientTop||0:V.clientLeft||0:0,Z=null!=(_=null==k?void 0:k[w])?_:0,G=Y+q-Z,K=dw(p?Jb(H,Y+W-Z-X):H,Y,p?Kb(I,G):I);j[w]=K,M[w]=K-Y}if(l){var J,Q="x"===w?_b:Tb,ee="x"===w?Ab:Pb,te=j[x],ne="y"===x?"height":"width",re=te+m[Q],ie=te-m[ee],oe=-1!==[_b,Tb].indexOf(g),ue=null!=(J=null==k?void 0:k[x])?J:0,le=oe?re:te-O[ne]-S[ne]-ue+D.altAxis,ae=oe?te+O[ne]+S[ne]-ue-D.altAxis:ie,se=p&&oe?function(e,t,n){var r=dw(e,t,n);return r>n?n:r}(le,te,ae):dw(p?le:re,te,p?ae:ie);j[x]=se,M[x]=se-te}t.modifiersData[r]=M}},requiresIfExists:["offset"]};function Fw(e,t,n){void 0===n&&(n=!1);var r,i,o=Vb(t),u=Vb(t)&&function(e){var t=e.getBoundingClientRect(),n=Qb(t.width)/e.offsetWidth||1,r=Qb(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=lw(t),a=nw(e,u,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(("body"!==Ub(t)||kw(l))&&(s=(r=t)!==Wb(r)&&Vb(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Ew(r)),Vb(t)?((c=nw(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=Dw(l))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function Rw(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var zw={placement:"bottom",modifiers:[],strategy:"absolute"};function Uw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Ww(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?zw:i;return function(e,t,n){void 0===n&&(n=o);var i,u,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},zw,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:l,setOptions:function(n){var i="function"==typeof n?n(l.options):n;f(),l.options=Object.assign({},o,l.options,i),l.scrollParents={reference:qb(e)?_w(e):e.contextElement?_w(e.contextElement):[],popper:_w(t)};var u,s,d=function(e){var t=Rw(e);return zb.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(r,l.options.modifiers),s=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(s).map((function(e){return s[e]}))));return l.orderedModifiers=d.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:l,name:t,instance:c,options:r}),u=function(){};a.push(o||u)}})),c.update()},forceUpdate:function(){if(!s){var e=l.elements,t=e.reference,n=e.popper;if(Uw(t,n)){l.rects={reference:Fw(t,cw(n),"fixed"===l.options.strategy),popper:rw(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var i=l.orderedModifiers[r],o=i.fn,u=i.options,a=void 0===u?{}:u,f=i.name;"function"==typeof o&&(l=o({state:l,options:a,name:f,instance:c})||l)}else l.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return u||(u=new Promise((function(e){Promise.resolve().then((function(){u=void 0,e(i())}))}))),u}),destroy:function(){f(),s=!0}};if(!Uw(e,t))return c;function f(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var qw=Ww({defaultModifiers:[ww,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Yw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,u=void 0===o||o,l=n.roundOffsets,a=void 0===l||l,s={placement:Gb(t.placement),variation:mw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,yw(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,yw(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Zb,Cw,Lw,Bw,vw,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,u=Hw(t,{elementContext:"reference"}),l=Hw(t,{altBoundary:!0}),a=Nw(u,r),s=Nw(l,i,o),c=$w(a),f=$w(s);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Vw="tippy-content",Xw="tippy-backdrop",Zw="tippy-arrow",Gw="tippy-svg-arrow",Kw={passive:!0,capture:!0},Jw=function(){return document.body};function Qw(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function ex(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function tx(e,t){return"function"==typeof e?e.apply(void 0,t):e}function nx(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function rx(e){return[].concat(e)}function ix(e,t){-1===e.indexOf(t)&&e.push(t)}function ox(e){return[].slice.call(e)}function ux(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function lx(){return document.createElement("div")}function ax(e){return["Element","Fragment"].some((function(t){return ex(e,t)}))}function sx(e){return ax(e)?[e]:function(e){return ex(e,"NodeList")}(e)?ox(e):Array.isArray(e)?e:ox(document.querySelectorAll(e))}function cx(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function fx(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function dx(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function px(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var hx={isTouch:!1},vx=0;function mx(){hx.isTouch||(hx.isTouch=!0,window.performance&&document.addEventListener("mousemove",gx))}function gx(){var e=performance.now();e-vx<20&&(hx.isTouch=!1,document.removeEventListener("mousemove",gx)),vx=e}function yx(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var bx,wx=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function xx(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function jx(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function Ox(e){return jx("\n %ctippy.js\n\n %c"+jx(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function Sx(e){return[Ox(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Ex(e,t){var n;e&&!bx.has(t)&&(bx.add(t),(n=console).warn.apply(n,Sx(t)))}function Dx(e,t){var n;e&&!bx.has(t)&&(bx.add(t),(n=console).error.apply(n,Sx(t)))}bx=new Set;var kx={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Mx=Object.assign({appendTo:Jw,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},kx,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),_x=Object.keys(Mx);function Ax(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=Mx[i])?r:o);return t}),{});return Object.assign({},e,t)}function Px(e,t){var n=Object.assign({},t,{content:tx(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ax(Object.assign({},Mx,{plugins:t}))):_x).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Mx.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Tx(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var n,r,i=function(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}(Mx,Object.keys(kx)),o=(n=i,r=e,!{}.hasOwnProperty.call(n,r));o&&(o=0===t.filter((function(t){return t.name===e})).length),Ex(o,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}var Yx=function(){return"innerHTML"};function Hx(e,t){e[Yx()]=t}function Ix(e){var t=lx();return!0===e?t.className=Zw:(t.className=Gw,ax(e)?t.appendChild(e):Hx(t,e)),t}function Lx(e,t){ax(t.content)?(Hx(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Hx(e,t.content):e.textContent=t.content)}function Nx(e){var t=e.firstElementChild,n=ox(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Vw)})),arrow:n.find((function(e){return e.classList.contains(Zw)||e.classList.contains(Gw)})),backdrop:n.find((function(e){return e.classList.contains(Xw)}))}}function $x(e){var t=lx(),n=lx();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=lx();function i(n,r){var i=Nx(t),o=i.box,u=i.content,l=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Lx(u,e.props),r.arrow?l?n.arrow!==r.arrow&&(o.removeChild(l),o.appendChild(Ix(r.arrow))):o.appendChild(Ix(r.arrow)):l&&o.removeChild(l)}return r.className=Vw,r.setAttribute("data-state","hidden"),Lx(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}$x.$$tippy=!0;var Cx=1,Bx=[],Fx=[];function Rx(e,t){var n,r,i,o,u,l,a,s,c=Px(e,Object.assign({},Mx,Ax(ux(t)))),f=!1,d=!1,p=!1,h=!1,v=[],m=nx(V,c.interactiveDebounce),g=Cx++,y=(s=c.plugins).filter((function(e,t){return s.indexOf(e)===t})),b={id:g,reference:e,popper:lx(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(Ex(b.state.isDestroyed,xx("setProps")),b.state.isDestroyed)return;Y("onBeforeUpdate",[b,t]),W();var n=b.props,r=Px(e,Object.assign({},n,ux(t),{ignoreAttributes:!0}));b.props=r,U(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),m=nx(V,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?rx(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");I(),T(),j&&j(n,r);b.popperInstance&&(K(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));Y("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){Ex(b.state.isDestroyed,xx("show"));var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=hx.isTouch&&!b.props.touch,i=Qw(b.props.duration,0,Mx.duration);if(e||t||n||r)return;if(M().hasAttribute("disabled"))return;if(Y("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(x.style.visibility="visible");T(),B(),b.state.isMounted||(x.style.transition="none");if(k()){var o=A();cx([o.box,o.content],0)}l=function(){var e;if(b.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=A(),n=t.box,r=t.content;cx([n,r],i),fx([n,r],"visible")}H(),I(),ix(Fx,b),null==(e=b.popperInstance)||e.forceUpdate(),Y("onMount",[b]),b.props.animation&&k()&&function(e,t){R(e,t)}(i,(function(){b.state.isShown=!0,Y("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=M();e=b.props.interactive&&t===Jw||"parent"===t?n.parentNode:tx(t,[n]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,K(),Ex(b.props.interactive&&t===Mx.appendTo&&n.nextElementSibling!==x,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){Ex(b.state.isDestroyed,xx("hide"));var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=Qw(b.props.duration,1,Mx.duration);if(e||t||n)return;if(Y("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,k()&&(x.style.visibility="hidden");if(L(),F(),T(!0),k()){var i=A(),o=i.box,u=i.content;b.props.animation&&(cx([o,u],r),fx([o,u],"hidden"))}H(),I(),b.props.animation?k()&&function(e,t){R(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){Ex(b.state.isDestroyed,xx("hideWithInteractivity")),_().addEventListener("mousemove",m),ix(Bx,m),m(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){Ex(b.state.isDestroyed,xx("unmount")),b.state.isVisible&&b.hide();if(!b.state.isMounted)return;J(),Q().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);Fx=Fx.filter((function(e){return e!==b})),b.state.isMounted=!1,Y("onHidden",[b])},destroy:function(){if(Ex(b.state.isDestroyed,xx("destroy")),b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),W(),delete e._tippy,b.state.isDestroyed=!0,Y("onDestroy",[b])}};if(!c.render)return Dx(!0,"render() function has not been supplied."),b;var w=c.render(b),x=w.popper,j=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var O=y.map((function(e){return e.fn(b)})),S=e.hasAttribute("aria-expanded");return U(),I(),T(),Y("onCreate",[b]),c.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&_().addEventListener("mousemove",m)})),b;function E(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function D(){return"hold"===E()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function M(){return a||e}function _(){var e,t,n=M().parentNode;return n?null!=(t=rx(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function A(){return Nx(x)}function P(e){return b.state.isMounted&&!b.state.isVisible||hx.isTouch||o&&"focus"===o.type?0:Qw(b.props.delay,e?0:1,Mx.delay)}function T(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function Y(e,t,n){var r;(void 0===n&&(n=!0),O.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function H(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;rx(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function I(){!S&&b.props.aria.expanded&&rx(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")}))}function L(){_().removeEventListener("mousemove",m),Bx=Bx.filter((function(e){return e!==m}))}function N(t){if(!hx.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!px(x,n)){if(rx(b.props.triggerTarget||e).some((function(e){return px(e,n)}))){if(hx.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else Y("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout((function(){d=!1})),b.state.isMounted||F())}}}function $(){p=!0}function C(){p=!1}function B(){var e=_();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,Kw),e.addEventListener("touchstart",C,Kw),e.addEventListener("touchmove",$,Kw)}function F(){var e=_();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,Kw),e.removeEventListener("touchstart",C,Kw),e.removeEventListener("touchmove",$,Kw)}function R(e,t){var n=A().box;function r(e){e.target===n&&(dx(n,"remove",r),t())}if(0===e)return t();dx(n,"remove",u),dx(n,"add",r),u=r}function z(t,n,r){void 0===r&&(r=!1),rx(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),v.push({node:e,eventType:t,handler:n,options:r})}))}function U(){var e;D()&&(z("touchstart",q,{passive:!0}),z("touchend",X,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(z(e,q),e){case"mouseenter":z("mouseleave",X);break;case"focus":z(wx?"focusout":"blur",Z);break;case"focusin":z("focusout",Z)}}))}function W(){v.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),v=[]}function q(e){var t,n=!1;if(b.state.isEnabled&&!G(e)&&!d){var r="focus"===(null==(t=o)?void 0:t.type);o=e,a=e.currentTarget,I(),!b.state.isVisible&&ex(e,"MouseEvent")&&Bx.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function V(e){var t=e.target,n=M().contains(t)||x.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,u=i.placement.split("-")[0],l=i.modifiersData.offset;if(!l)return!0;var a="bottom"===u?l.top.y:0,s="top"===u?l.bottom.y:0,c="right"===u?l.left.x:0,f="left"===u?l.right.x:0,d=t.top-r+a>o,p=r-t.bottom-s>o,h=t.left-n+c>o,v=n-t.right-f>o;return d||p||h||v}))})(r,e)&&(L(),te(e))}}function X(e){G(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Z(e){b.props.trigger.indexOf("focusin")<0&&e.target!==M()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function G(e){return!!hx.isTouch&&D()!==e.type.indexOf("touch")>=0}function K(){J();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,u=t.moveTransition,a=k()?Nx(x).arrow:null,s=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!u}},c];k()&&a&&f.push({name:"arrow",options:{element:a,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),b.popperInstance=qw(s,x,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:f}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return ox(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&Y("onTrigger",[b,e]),B();var t=P(!0),r=E(),i=r[0],o=r[1];hx.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),Y("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=P(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else F()}}function zx(e,t){void 0===t&&(t={});var n=Mx.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;Dx(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),Dx(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),Tx(t,n),document.addEventListener("touchstart",mx,Kw),window.addEventListener("blur",yx);var r=Object.assign({},t,{plugins:n}),i=sx(e),o=ax(r.content),u=i.length>1;Ex(o&&u,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var l=i.reduce((function(e,t){var n=t&&Rx(t,r);return n&&e.push(n),e}),[]);return ax(e)?l[0]:l}function Ux(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}zx.defaultProps=Mx,zx.setDefaultProps=function(e){Tx(e,[]),Object.keys(e).forEach((function(t){Mx[t]=e[t]}))},zx.currentInput=hx,Object.assign({},Zb,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),zx.setDefaultProps({render:$x});Ux('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');function Wx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function qx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wx(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}async function Vx(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!wp(e))throw new Error("invalid fun");let n=Ft(t,"width");n=qt(n)?ep(n):Xt(n)?sa(n):null;let r=Ft(t,"height");r=qt(r)?ep(r):Xt(r)?sa(r):null;let i=document.createElement("div");Xt(n)&&(i.style.width=`${n}px`),Xt(r)&&(i.style.height=`${r}px`);let o=document.createElement("div");o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.zIndex=-1,o.appendChild(i);let u=document.createElement("div");u.style.position="relative",u.appendChild(o);let l,a=document.createElement("div");a.style.position="fixed",a.style.zIndex=-1,a.appendChild(u),sg(document.querySelector("body"),a);let s=e(i);return l=Fh(s)?await s:s,ag(a),l}function Xx(e){if(!wp(e))throw new Error("fn is not a function");return function(){let t=kh(),n=null,r=null;try{n=e.apply(this,arguments)}catch(e){r=e}return null!==r?t.resolve({state:"error",msg:r}):Fh(n)?n.then((e=>{t.resolve({state:"success",msg:e})})).catch((e=>{"cancelled"===Ft(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})})):t.resolve({state:"success",msg:n}),t}}Ux(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");let Zx=Xx;function Gx(e){if(!ca(e))return!1;return qc(e)<0}function Kx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0,n=[];Gx(e)&&(e=0),e=qc(e);let r=$c();return r.get=function(){if(n.length>0){return t+=1,n.splice(0,1)[0]}return null},r.cb=function(){t-=1,t<0&&(t=0),n.length>0&&r.emit("message",n)},r.push=function(i){n.push(i),(e<=0||t<e)&&r.emit("message",n)},r.clear=function(){t=0,n=[]},r}function Jx(){return new function(e,t){let n=null;_f(e)||(e=0),e=qc(e),Tl(t)||(t=!1);let r=Kx(e);return r.on("message",(async function(e){let t=r.get();if(!t)return;await $m(1);let n,i=Ft(t,"id"),o=Ft(t,"fun"),u=Ft(t,"input");n=wp(o)?await Zx(o)(...u):{state:"error",msg:"fun is not a function"},r.emit(i,n),r.cb()})),function(e){let i=kh(),o=Fm();n=o;for(var u=arguments.length,l=new Array(u>1?u-1:0),a=1;a<u;a++)l[a-1]=arguments[a];let s={id:o,fun:e,input:l};return r.push(s),r.once(o,(e=>{t?o===n?"success"===e.state?i.resolve(e.msg):i.reject(e.msg):i.reject({reason:"cancelled"}):"success"===e.state?i.resolve(e.msg):i.reject(e.msg)})),i}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function Qx(e,t){Nl()?qt(e)?Jm()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){let n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}(e,t):console.log("no filename"):console.log("no window")}function ej(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!Rt(e))return{error:"sheet is not an object"};qt(t)||(t="data");let n=Im();return n.SheetNames.push(t),n.Sheets[t]=e,n}function tj(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!Ut(e)&&!Ko(e))return{error:"data is not an array or element"};qt(t)||(t="data");let n=null,r=Bl(e);return Zt(r,"error")?r:(n=ej(r,t),Zt(n,"error"),n)}function nj(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",n=arguments.length>2?arguments[2]:void 0;if(!qt(e)){let t="no filename";return console.log(t,e),{error:t}}if(qt(t)||(t="data"),!Ut(n)&&!Ko(n)){let e="data is not an array or element";return console.log(e,n),{error:e}}Ut(n)&&zt(Ft(n,0,null))&&(n=Ll(n));let r=tj(n,t);if(Ft(r,"error"))return console.log(r.error),r.error;let i=Cl();if(Nl()){let t=i.write(r,{bookType:"xlsx",bookSST:!1,type:"array"});Qx(e,new Blob([t]))}else i.writeFile(r,e);return"ok"}function rj(e){if(!Oh(e))return new Blob;return new Blob([e])}function ij(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Yu(t))return{};let r={};return ou(t,(function(t){r[t]=Ft(e,t,n)})),r}function oj(e,t){if(!Rt(e))return{};if(!Yu(t))return{};let n={};return ou(t,(function(t){Zt(e,t)&&(n[t]=Ft(e,t))})),n}var uj=Ug,lj=function(e,t){return e>t},aj=fo;var sj=y((function(e){return e&&e.length?uj(e,aj,lj):void 0})),cj=wt;var fj=function(e,t){return cj(t,(function(t){return e[t]}))},dj=Zn;var pj=y((function(e){return null==e?[]:fj(e,dj(e))}));var hj=er;var vj=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var u=e[i];t(r,u,n(u),e)}return r},mj=function(e,t,n,r){return hj(e,(function(e,i,o){t(r,e,n(e),o)})),r},gj=Do,yj=b;var bj=Ba,wj=function(e,t){return function(n,r){var i=yj(n)?vj:mj,o=t?t():{};return i(n,e,gj(r),o)}},xj=Object.prototype.hasOwnProperty,jj=y(wj((function(e,t,n){xj.call(e,n)?e[n].push(t):bj(e,n,[t])}))),Oj=Do,Sj=Wn,Ej=Zn;var Dj=function(e){return function(t,n,r){var i=Object(t);if(!Sj(t)){var o=Oj(n);t=Ej(t),n=function(e){return o(i[e],e,i)}}var u=e(t,n,r);return u>-1?i[o?t[u]:u]:void 0}},kj=Hu,Mj=Do,_j=ua,Aj=Math.max;var Pj=y(Dj((function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:_j(n);return i<0&&(i=Aj(r+i,0)),kj(e,Mj(t),i)})));function Tj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Tj(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Hj(e,t){if(!Ut(e)||!Ut(t))return[];if(e.length!==t.length)return[];return pu(e,(function(n,r){return Eb(e[r],t[r])}))}function Ij(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Lj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ij(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ij(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nj(e){return!!u.existsSync(e)&&(!u.lstatSync(e).isFile()&&!u.lstatSync(e).isSymbolicLink())}function $j(e){if(!u.existsSync(e))return{success:"folder does not exist: "+e};if(!Nj(e))return{error:"input path is not a folder: "+e};try{u.readdirSync(e).forEach((function(t){let n=e+"/"+t;if(u.lstatSync(n).isDirectory())$j(n);else try{u.unlinkSync(n)}catch(e){}}))}catch(e){return{error:e}}try{u.rmdirSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}function Cj(e){if(Nj(e))return{success:"input folder is already exists: "+e};if(u.existsSync(e))return{error:"input path already exists: "+e};try{u.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function Bj(e){return!!u.existsSync(e)&&(!u.lstatSync(e).isDirectory()&&!u.lstatSync(e).isSymbolicLink())}function Fj(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=[],r=$c(),i=Ft(e,"timeDetect");Vc(i)||(i=50),i=qc(i);let o=Ft(e,"timeRewatch");function l(e){let t="";try{let n=u.readFileSync(e);t=a.createHash("md5").update(n).digest("base64")}catch(e){}return t}return Vc(o)||(o=1e3),o=qc(o),r.on=function(e,r){let a=null,s=setInterval((()=>{if(Bj(e)){u.stat(e,((t,n)=>{t||(a=l(e),r({tag:a,stats:n}))}));let t=(t,n)=>{let i=l(e);a!==i&&(a=i,r({tag:a,stats:t}))};u.watchFile(e,{interval:i},t),n.push({fp:e,func:t}),clearInterval(s)}}),o);t.push({fp:e,t:s})},r.off=function(e){ou(t,(t=>{t.fp===e&&clearInterval(t.t)})),ou(n,(t=>{t.fp===e&&u.unwatchFile(t.fp,t.func)}))},r.clear=function(){ou(t,(e=>{clearInterval(e.t)})),ou(n,(e=>{u.unwatchFile(e.fp,e.func)}))},r}function Rj(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=1;return function e(r){let i=[],o=u.readdirSync(r);return ou(o,(function(o){let a=l.resolve(r,o),s=null;try{s=u.statSync(a)}catch(e){}s&&s.isDirectory()?(i.push({isFolder:!0,level:n,path:a,name:l.basename(a)}),n+=1,(n<=t||null===t)&&(i=i.concat(e(a))),n-=1):i.push({isFolder:!1,level:n,path:a,name:l.basename(a)})})),i}(e)}function zj(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function Uj(e){if(!(v(e)||Ih(e)||Oh(e)||zj(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}function Wj(e){if(!qt(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===ip(e,1))return{path:`${e}\\`,isRoot:!0};if("\\"===ip(e,1)){let t=eh(e,1);return":"===ip(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===ip(e,1)){let t=eh(e,1);return 0===_l(t)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}return{path:e,isRoot:!1}}function qj(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!Yu(e)){return{error:"no data"}}let n=null;try{n=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?"":"\ufeff";return ou(e,(e=>{let n=[];ou(e,(e=>{Wt(e)?(e=Xh(e,"\r\n",""),e=Xh(e,"\r",""),e=`"${e=Xh(e,"\n","")}"`):e=Yl(e)?e?"true":"false":Xp(e),n.push(e)})),t+=If(n,",")+"\r\n"})),t}(e,t)}catch(e){return{error:e}}return n}function Vj(e){return Yl(e)?e?"true":"false":Xp(e)}function Xj(e,t){let n=[];return e.SheetNames.forEach((function(r){let i=Cl().utils.sheet_to_json(e.Sheets[r],{header:"A",defval:"",blankrows:!0});i=pu(i,(e=>pj(e))),t&&(i=pu(i,(e=>pu(e,(e=>Vj(e)))))),n.push({sheetname:r,data:i})})),n}function Zj(e,t){let n=Ft(t,"fmt","ltdt");if(!bp(["ltdt","csv","array"],n))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let r,i=Ft(t,"valueToString",!0);if(!Yl(i))return{error:"opt.valueToString is not a boolean"};try{r=Cl().read(e,{type:"buffer"})}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}let o=null;try{"ltdt"===n?o=function(e,t){let n=[];return e.SheetNames.forEach((function(r){let i=Cl().utils.sheet_to_json(e.Sheets[r]);t&&(i=pu(i,(e=>(ou(e,((t,n)=>{e[n]=Vj(t)})),e)))),n.push({sheetname:r,data:i})})),n}(r,i):"array"===n?o=Xj(r,i):"csv"===n&&(o=function(e,t){let n=Xj(e,t);return ou(n,((e,t)=>{n[t].data=qj(e.data,!1)})),n}(r,i))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return o}function Gj(e){if(!qt(e))return"";let t=Wj(e);if(t.isRoot)return t.path;let n=t.path;try{n=n.split("\\").pop().split("/").pop()}catch(e){}return n}function Kj(e){if(!zt(e))return{error:"wb is not an effective object"};if(!Ut(Ft(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Rt(Ft(e,"Sheets")))return{error:"wb.Sheets is not an object"};let t=null;try{t=Lh(Cl().write(e,{bookType:"xlsx",type:"binary"}))}catch(e){return{error:e}}return t}var Jj=Jt,Qj=eu,eO=ua,tO=4294967295,nO=Math.min;var rO=y((function(e,t){if((e=eO(e))<1||e>9007199254740991)return[];var n=tO,r=nO(e,tO);t=Qj(t),e-=tO;for(var i=Jj(r,t);++n<e;)t(n);return i}));function iO(e){let t="";return"years"===e?t="YYYY":"months"===e?t="YYYY-MM":"days"===e?t="YYYY-MM-DD":"hours"===e?t="YYYY-MM-DDTHH":"minutes"===e?t="YYYY-MM-DDTHH:mm":"seconds"===e&&(t="YYYY-MM-DDTHH:mm:ss"),t}function oO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";if(!qt(e))return null;if(!qt(t))return null;let r=function(e,t){let r="";return"years"===t?r="-01-01T00:00:00":"months"===t?r="-01T00:00:00":"days"===t?r="T00:00:00":"hours"===t?r=":00:00":"minutes"===t&&(r=":00"),n(e+r,"YYYY-MM-DDTHH:mm:ss")}(e,t),i=iO(t);return e===r.format(i)?r:null}function uO(e){if(!qt(e))return!1;let t="YYYY-MM-DDTHH:mm:ss";return e===n(e,t).format(t)}function lO(e){if(!uO(e))return"";return n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}function aO(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=function(){let e=$l();return s||e.UAParser}();e=Wt(t)?new n(t):new n;let r=e.getResult();return{browsername:r.browser.name,browserversion:r.browser.version,engineinfor:r.engine.name+r.engine.version,platform:r.os.name+r.os.version,devicetype:Ft(r.device,"type",""),cpuarchitecture:Ft(r.cpu,"architecture","")}}function sO(e,t){let n=$l().canvg.Canvg,r=e.querySelectorAll("svg");ou(r,(e=>{let r=sa(e.getAttribute("width")),i=sa(e.getAttribute("height"));if(r<=0)return console.log("svg width <=0"),!0;if(i<=0)return console.log("svg height <=0"),!0;let o=document.createElement("canvas");o.width=r*t,o.height=i*t;let u=o.getContext("2d");n.fromString(u,e.parentNode.innerHTML,{ignoreDimensions:!0,scaleWidth:o.width,scaleHeight:o.height}).start();let l=new Image;l.src=o.toDataURL("image/png"),l.style.width=`${r}px`,l.style.height=`${i}px`,e.parentNode.appendChild(l),e.parentNode.removeChild(e)}))}async function cO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return Promise.reject("invalid ele");let n=Ft(t,"scale",1);if(!yp(n))return Promise.reject("opt.scale is not a number");if(n<1)return Promise.reject("opt.scale can not less then 1");let r=Ft(t,"picType","image/jpeg");if("image/jpeg"!==r&&"image/png"!==r)return Promise.reject("opt.picType is not one of image/jpeg or image/png");let i=Ft(t,"toBase64",!0);if(!Tl(i))return Promise.reject("opt.toBase64 is not a boolean");let o=e.cloneNode(!0);Jm()&&sO(o,n);let u=document.createElement("div");u.style.position="absolute",u.style.top=0,u.style.left=0,u.style.zIndex=-1,u.appendChild(o);let l=document.createElement("div");l.style.position="relative",l.appendChild(u),sg(document.querySelector("body"),l);let a=$l().html2canvas,s=await a(u,{logging:!1,scale:n,x:0,y:0}),c=s;return i&&(c=s.toDataURL(r,1)),ag(l),c}function fO(e){let t=null;if(!qt(e))return"";let n=function(){let e=$l();return c||e.htmlparser||e.Tautologistics.NodeHtmlParser}(),r=new n.DefaultHandler((function(e,n){e&&(t=e)}));if(new n.Parser(r).parseComplete(e),null!==t)return t;let i=[];return function e(t){ou(t,(t=>{_l(t.children)>0&&e(t.children),"text"===t.type&&i.push(t.data)}))}(r.dom),i=If(i,""),i}let dO="in x-range",pO="out of x-range",hO="order list",vO="reverse order list";function mO(e,t){let n=null,r=null;return n=e[0].x,r=e[_l(e)-1].x,t<n?{err:pO,msg:`x[${t}] less than lower limit[${n}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:t>r?{err:pO,msg:`x[${t}] greater than upper limit[${r}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:dO}function gO(e){if(!ca(e))return!1;return qc(e)<=0}function yO(e){if(!Xt(e))return!1;return sa(e)<=0}function bO(e){if(!Xt(e))return!1;return sa(e)>=0}function wO(e){if(!qt(e))return!1;return!(null===e.match(/^.*[A-Z]+.*$/))}function xO(e){if(!qt(e))return!1;return!(null===e.match(/^.*[a-z]+.*$/))}function jO(e){if(!qt(e))return!1;return!(null===e.match(/^.*[0-9]+.*$/))}function OO(e){if(!qt(e))return!1;let t="YYYY-MM-DDTHH:mm:ss.SSS";return e===n(e,t).format(t)}function SO(e){let t;return t=ip(e,1),"Z"===t?`${e=eh(e,1)}+00:00`:e}let EO={checkTZ:function(e){let t;return t=ip(e,1),"Z"===t||(t=ip(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=ip(e,1),eh(e,"Z"===t?1:6)},normTZ:SO,sepTZ:function(e){let t=SO(e);return{t:eh(t,6),tz:ip(t,6)}}};function DO(e){if(!qt(e))return!1;if(!EO.checkTZ(e))return!1;let t=EO.delTZ(e),r="YYYY-MM-DDTHH:mm:ss.SSS";return t===n(t,r).format(r)}function kO(e){if(!qt(e))return!1;if(!EO.checkTZ(e))return!1;let t=EO.delTZ(e),r="YYYY-MM-DDTHH:mm:ss";return t===n(t,r).format(r)}function MO(e,t){if(!Yu(e))return[];if(!Yu(t))return[];if(!Yu(t[0]))return[];return pu(t,(function(t){let n=Jc(e,t);return ou(n,(function(e,t){void 0===e&&(n[t]="")})),n}))}function _O(){return n().format("YYYY-MM-DDTHH:mm:ss.SSSZ")}var AO=bu,PO=Ku,TO=Zy,YO=y(zp((function(e){return PO(AO(e,1,TO,!0))})));function HO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HO(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var LO=br,NO=Bu,$O=Fu,CO=wt,BO=wn,FO=wr;var RO=function(e,t,n,r){var i=-1,o=NO,u=!0,l=e.length,a=[],s=t.length;if(!l)return a;n&&(t=CO(t,BO(n))),r?(o=$O,u=!1):t.length>=200&&(o=FO,u=!1,t=new LO(t));e:for(;++i<l;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,u&&f==f){for(var d=s;d--;)if(t[d]===f)continue e;a.push(c)}else o(t,f,r)||a.push(c)}return a},zO=RO,UO=bu,WO=Do,qO=Zy,VO=am,XO=zp((function(e,t){var n=VO(t);return qO(n)&&(n=void 0),qO(e)?zO(e,UO(t,1,qO,!0),WO(n)):[]})),ZO=y(XO);var GO=Lf;var KO=y((function(e){var t=null==e?0:e.length;return t?GO(e,1,t):[]}));function JO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function QO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JO(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eS(e){if(!qt(e))return"";let t=Ya.parse(e);return ya.stringify(t)}function tS(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!qt(e))return"";if(!qt(t))return"";if(!Yl(n))return"";let r=Pa.encrypt(e,t),i="";if(n)i=r.toString();else{let e=r.toString();i=ya.parse(e).toString(Ia)}return i}var nS={exports:{}};!function(e,t){var n;e.exports=(n=ha(),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)}(nS);var rS=y(nS.exports);function iS(e){if(!Oh(e))return"";return rS.create(e).toString(ya)}function oS(e){return zj(e)?new Uint8Array(e):new Uint8Array}function uS(e){return zj(e)?iS(oS(e)):""}let lS="[Uint8Array]::";let aS="[Uint16Array]::";let sS={tagU8A:lS,u8arr2b64:function(e){return Oh(e)?lS+iS(e):e},b642u8arr:function(e){return Wt(e)&&rp(e,14)===lS?jh(e=op(e,14)):e},tagU16A:aS,u16arr2b64:function(e){return zj(e)?aS+uS(e):e},b642u16arr:function(e){return Wt(e)&&rp(e,15)===aS?Eh(e=op(e,15)):e}};var cS=I,fS=L,dS=Vo;var pS=function(e){if(!fS(e))return!1;var t=cS(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!dS(e)},hS=y(pS);function vS(e){if(!Rt(e))return{results:"",binarys:[]};if(_u(e))return{results:"",binarys:[]};let t="",n=[];try{let r=-1;t=JSON.stringify(e,(function(e,t){if(Oh(t)){r+=1;let e=`[Uint8Array]::${r}`;return n.push(t),e}if(zj(t)){r+=1;let e=`[Uint16Array]::${r}`;return n.push(t),e}if(v(t)){r+=1;let e=`[ArrayBuffer]::${r}`;return n.push(t),e}return hS(t)&&(t=t.toString()),t}))}catch(e){}return{results:t,binarys:n}}function mS(e){if(!qt(e))return new Uint8Array;let t;try{t=jh(eS(e))}catch(e){return new Uint8Array}return t}function gS(e,t){if(!zt(e))return{};if(!wp(t))throw new Error("fun is not a function");let n=pu(e,((e,n)=>({k:n,v:e,t:t(e,n)})));n=Vp(n,"t");let r={};return ou(n,(e=>{r[e.k]=e.v})),r}async function yS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!qt(e))return Promise.reject("img is not an effective string");let n=Ft(t,"lang");qt(n)||(n="eng");let r=function(){let e=$l();return f||e.Tesseract}(),i=await r.createWorker();await i.load(),await i.loadLanguage(n),await i.initialize(n);let o=Ft(t,"whitelist");qt(o)&&await i.setParameters({tessedit_char_whitelist:o});let u=await i.recognize(e),{data:{text:l}}=u;return await i.terminate(),l}function bS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};if(!wp(e))return null;function n(e,t){let n;return Mu(e)||ku(e)?t:(n=Ft(e,"data",null),n||e)}return wp(t)||(t=()=>{}),function(){let r,i=kh(),o=t({mode:"before",data:arguments});return(Mu(o)||ku(o))&&(o=arguments),e(...o).then((e=>{r=t({mode:"afterThen",data:e}),e=n(r,e),i.resolve(e)})).catch((e=>{r=t({mode:"afterCatch",data:e}),e=n(r,e),i.reject(e)})),i}}function wS(e){if(!Wt(e))return null;if(""===e)return 0;return e.split("").reduce(((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e),0)}let xS=0;function jS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start1";void 0===e?e=(new Date).getTime():"start1"===e&&(xS++,e=xS);let t=624,n=397,r=2147483648,i=2147483647,o=new Array(t),u=625,l=e=>{for(yp(e)?o[0]=e>>>0:(e=Xp(e),o[0]=wS(e)),u=1;u<t;u++){let e=o[u-1]^o[u-1]>>>30;o[u]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+u,o[u]>>>=0}};return l(e),(()=>{let e,a=new Array(2567483615);if(u>=t){let s;for(625===u&&l(5489),s=0;s<227;s++)e=o[s]&r|o[s+1]&i,o[s]=o[s+n]^e>>>1^a[1&e];for(;s<623;s++)e=o[s]&r|o[s+1]&i,o[s]=o[s+(n-t)]^e>>>1^a[1&e];e=o[623]&r|o[0]&i,o[623]=o[396]^e>>>1^a[1&e],u=0}return e=o[u++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0})()*(1/4294967296)}var OS=Math.floor;var SS=function(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=OS(t/2))&&(e+=e)}while(t);return n},ES=Po,DS=ua,kS=Mt;var MS=y((function(e,t,n){return t=(n?ES(e,t,n):void 0===t)?1:DS(t),SS(kS(e),t)}));
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("xlsx"),require("dayjs"),require("xss"),require("viewerjs"),require("child_process"),require("fs"),require("path"),require("crypto"),require("ua-parser-js"),require("htmlparser"),require("tesseract.js"),require("fuse.js")):"function"==typeof define&&define.amd?define(["exports","xlsx","dayjs","xss","viewerjs","child_process","fs","path","crypto","ua-parser-js","htmlparser","tesseract.js","fuse.js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).wsemi={},e.XLSX,e.dayjs,e.filterXSS,e.viewerjs,e.child_process,e.fs,e.path,e.crypto,e.UAParser,e.htmlparser,e.tesseractjs,e.Fuse)}(this,(function(e,t,n,r,i,o,u,l,a,s,c,f,d){"use strict";function p(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var h=p(t);function v(e){return"[object ArrayBuffer]"===Object.prototype.toString.call(e)}function m(e){if(!v(e))return new Uint8Array;return new Uint8Array(e)}var g="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var b=Array.isArray,w="object"==typeof g&&g&&g.Object===Object&&g,x=w,j="object"==typeof self&&self&&self.Object===Object&&self,O=x||j||Function("return this")(),S=O.Symbol,E=S,D=Object.prototype,k=D.hasOwnProperty,M=D.toString,_=E?E.toStringTag:void 0;var A=function(e){var t=k.call(e,_),n=e[_];try{e[_]=void 0;var r=!0}catch(e){}var i=M.call(e);return r&&(t?e[_]=n:delete e[_]),i},P=Object.prototype.toString;var T=A,Y=function(e){return P.call(e)},H=S?S.toStringTag:void 0;var I=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":H&&H in Object(e)?T(e):Y(e)};var L=function(e){return null!=e&&"object"==typeof e},N=I,$=L;var C=function(e){return"symbol"==typeof e||$(e)&&"[object Symbol]"==N(e)},B=y(C),F=b,R=C,z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/;var W=function(e,t){if(F(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!R(e))||(U.test(e)||!z.test(e)||null!=t&&e in Object(t))};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},V=I,X=q;var Z,G=function(e){if(!X(e))return!1;var t=V(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},K=y(G),J=O["__core-js_shared__"],Q=(Z=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var ee=function(e){return!!Q&&Q in e},te=Function.prototype.toString;var ne=function(e){if(null!=e){try{return te.call(e)}catch(e){}try{return e+""}catch(e){}}return""},re=G,ie=ee,oe=q,ue=ne,le=/^\[object .+?Constructor\]$/,ae=Function.prototype,se=Object.prototype,ce=ae.toString,fe=se.hasOwnProperty,de=RegExp("^"+ce.call(fe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var pe=function(e){return!(!oe(e)||ie(e))&&(re(e)?de:le).test(ue(e))},he=function(e,t){return null==e?void 0:e[t]};var ve=function(e,t){var n=he(e,t);return pe(n)?n:void 0},me=ve(Object,"create"),ge=me;var ye=function(){this.__data__=ge?ge(null):{},this.size=0};var be=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},we=me,xe=Object.prototype.hasOwnProperty;var je=function(e){var t=this.__data__;if(we){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return xe.call(t,e)?t[e]:void 0},Oe=me,Se=Object.prototype.hasOwnProperty;var Ee=me;var De=ye,ke=be,Me=je,_e=function(e){var t=this.__data__;return Oe?void 0!==t[e]:Se.call(t,e)},Ae=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ee&&void 0===t?"__lodash_hash_undefined__":t,this};function Pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pe.prototype.clear=De,Pe.prototype.delete=ke,Pe.prototype.get=Me,Pe.prototype.has=_e,Pe.prototype.set=Ae;var Te=Pe;var Ye=function(){this.__data__=[],this.size=0};var He=function(e,t){return e===t||e!=e&&t!=t},Ie=He;var Le=function(e,t){for(var n=e.length;n--;)if(Ie(e[n][0],t))return n;return-1},Ne=Le,$e=Array.prototype.splice;var Ce=Le;var Be=Le;var Fe=Le;var Re=Ye,ze=function(e){var t=this.__data__,n=Ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():$e.call(t,n,1),--this.size,!0)},Ue=function(e){var t=this.__data__,n=Ce(t,e);return n<0?void 0:t[n][1]},We=function(e){return Be(this.__data__,e)>-1},qe=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Ve(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ve.prototype.clear=Re,Ve.prototype.delete=ze,Ve.prototype.get=Ue,Ve.prototype.has=We,Ve.prototype.set=qe;var Xe=Ve,Ze=ve(O,"Map"),Ge=Te,Ke=Xe,Je=Ze;var Qe=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var et=function(e,t){var n=e.__data__;return Qe(t)?n["string"==typeof t?"string":"hash"]:n.map},tt=et;var nt=et;var rt=et;var it=et;var ot=function(e,t){var n=it(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},ut=function(){this.size=0,this.__data__={hash:new Ge,map:new(Je||Ke),string:new Ge}},lt=function(e){var t=tt(this,e).delete(e);return this.size-=t?1:0,t},at=function(e){return nt(this,e).get(e)},st=function(e){return rt(this,e).has(e)},ct=ot;function ft(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ft.prototype.clear=ut,ft.prototype.delete=lt,ft.prototype.get=at,ft.prototype.has=st,ft.prototype.set=ct;var dt=ft,pt=dt;function ht(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=e.apply(this,r);return n.cache=o.set(i,u)||o,u};return n.cache=new(ht.Cache||pt),n}ht.Cache=pt;var vt=ht;var mt=function(e){var t=vt(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},gt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yt=/\\(\\)?/g,bt=mt((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(gt,(function(e,n,r,i){t.push(r?i.replace(yt,"$1"):n||e)})),t}));var wt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},xt=wt,jt=b,Ot=C,St=S?S.prototype:void 0,Et=St?St.toString:void 0;var Dt=function e(t){if("string"==typeof t)return t;if(jt(t))return xt(t,e)+"";if(Ot(t))return Et?Et.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},kt=Dt;var Mt=function(e){return null==e?"":kt(e)},_t=b,At=W,Pt=bt,Tt=Mt;var Yt=function(e,t){return _t(e)?e:At(e,t)?[e]:Pt(Tt(e))},Ht=C;var It=function(e){if("string"==typeof e||Ht(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Lt=Yt,Nt=It;var $t=function(e,t){for(var n=0,r=(t=Lt(t,e)).length;null!=e&&n<r;)e=e[Nt(t[n++])];return n&&n==r?e:void 0},Ct=$t;var Bt=function(e,t,n){var r=null==e?void 0:Ct(e,t);return void 0===r?n:r},Ft=y(Bt);function Rt(e){return"[object Object]"===Object.prototype.toString.call(e)}function zt(e){if(Rt(e)){for(let t in e)return!0;return!1}return!1}function Ut(e){return"[object Array]"===Object.prototype.toString.call(e)}function Wt(e){return"[object String]"===Object.prototype.toString.call(e)}function qt(e){return!(!Wt(e)||""===e)}function Vt(e){return"[object Number]"===Object.prototype.toString.call(e)}function Xt(e){let t=!1;return qt(e)?t=!isNaN(Number(e)):Vt(e)&&(t=!0),t}function Zt(e,t){return!!Rt(e)&&(!(!qt(t)&&!Xt(t))&&t in e)}var Gt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0};var Kt=function(e){return function(t,n,r){for(var i=-1,o=Object(t),u=r(t),l=u.length;l--;){var a=u[e?l:++i];if(!1===n(o[a],a,o))break}return t}}();var Jt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},Qt=I,en=L;var tn=function(e){return en(e)&&"[object Arguments]"==Qt(e)},nn=L,rn=Object.prototype,on=rn.hasOwnProperty,un=rn.propertyIsEnumerable,ln=tn(function(){return arguments}())?tn:function(e){return nn(e)&&on.call(e,"callee")&&!un.call(e,"callee")},an=ln,sn={exports:{}};var cn=function(){return!1};!function(e,t){var n=O,r=cn,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,u=o&&o.exports===i?n.Buffer:void 0,l=(u?u.isBuffer:void 0)||r;e.exports=l}(sn,sn.exports);var fn=sn.exports,dn=/^(?:0|[1-9]\d*)$/;var pn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&dn.test(e))&&e>-1&&e%1==0&&e<t};var hn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},vn=I,mn=hn,gn=L,yn={};yn["[object Float32Array]"]=yn["[object Float64Array]"]=yn["[object Int8Array]"]=yn["[object Int16Array]"]=yn["[object Int32Array]"]=yn["[object Uint8Array]"]=yn["[object Uint8ClampedArray]"]=yn["[object Uint16Array]"]=yn["[object Uint32Array]"]=!0,yn["[object Arguments]"]=yn["[object Array]"]=yn["[object ArrayBuffer]"]=yn["[object Boolean]"]=yn["[object DataView]"]=yn["[object Date]"]=yn["[object Error]"]=yn["[object Function]"]=yn["[object Map]"]=yn["[object Number]"]=yn["[object Object]"]=yn["[object RegExp]"]=yn["[object Set]"]=yn["[object String]"]=yn["[object WeakMap]"]=!1;var bn=function(e){return gn(e)&&mn(e.length)&&!!yn[vn(e)]};var wn=function(e){return function(t){return e(t)}},xn={exports:{}};!function(e,t){var n=w,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=u}(xn,xn.exports);var jn=xn.exports,On=bn,Sn=wn,En=jn&&jn.isTypedArray,Dn=En?Sn(En):On,kn=Jt,Mn=an,_n=b,An=fn,Pn=pn,Tn=Dn,Yn=Object.prototype.hasOwnProperty;var Hn=function(e,t){var n=_n(e),r=!n&&Mn(e),i=!n&&!r&&An(e),o=!n&&!r&&!i&&Tn(e),u=n||r||i||o,l=u?kn(e.length,String):[],a=l.length;for(var s in e)!t&&!Yn.call(e,s)||u&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Pn(s,a))||l.push(s);return l},In=Object.prototype;var Ln=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||In)};var Nn=function(e,t){return function(n){return e(t(n))}},$n=Nn(Object.keys,Object),Cn=Ln,Bn=$n,Fn=Object.prototype.hasOwnProperty;var Rn=function(e){if(!Cn(e))return Bn(e);var t=[];for(var n in Object(e))Fn.call(e,n)&&"constructor"!=n&&t.push(n);return t},zn=G,Un=hn;var Wn=function(e){return null!=e&&Un(e.length)&&!zn(e)},qn=Hn,Vn=Rn,Xn=Wn;var Zn=function(e){return Xn(e)?qn(e):Vn(e)},Gn=y(Zn),Kn=Kt,Jn=Zn;var Qn=Wn;var er=function(e,t){return function(n,r){if(null==n)return n;if(!Qn(n))return e(n,r);for(var i=n.length,o=t?i:-1,u=Object(n);(t?o--:++o<i)&&!1!==r(u[o],o,u););return n}}((function(e,t){return e&&Kn(e,t,Jn)})),tr=er;var nr=function(e,t){var n=!0;return tr(e,(function(e,r,i){return n=!!t(e,r,i)})),n},rr=Xe;var ir=Xe,or=Ze,ur=dt;var lr=Xe,ar=function(){this.__data__=new rr,this.size=0},sr=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},cr=function(e){return this.__data__.get(e)},fr=function(e){return this.__data__.has(e)},dr=function(e,t){var n=this.__data__;if(n instanceof ir){var r=n.__data__;if(!or||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ur(r)}return n.set(e,t),this.size=n.size,this};function pr(e){var t=this.__data__=new lr(e);this.size=t.size}pr.prototype.clear=ar,pr.prototype.delete=sr,pr.prototype.get=cr,pr.prototype.has=fr,pr.prototype.set=dr;var hr=pr;var vr=dt,mr=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},gr=function(e){return this.__data__.has(e)};function yr(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new vr;++t<n;)this.add(e[t])}yr.prototype.add=yr.prototype.push=mr,yr.prototype.has=gr;var br=yr;var wr=function(e,t){return e.has(t)},xr=br,jr=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Or=wr;var Sr=function(e,t,n,r,i,o){var u=1&n,l=e.length,a=t.length;if(l!=a&&!(u&&a>l))return!1;var s=o.get(e),c=o.get(t);if(s&&c)return s==t&&c==e;var f=-1,d=!0,p=2&n?new xr:void 0;for(o.set(e,t),o.set(t,e);++f<l;){var h=e[f],v=t[f];if(r)var m=u?r(v,h,f,t,e,o):r(h,v,f,e,t,o);if(void 0!==m){if(m)continue;d=!1;break}if(p){if(!jr(t,(function(e,t){if(!Or(p,t)&&(h===e||i(h,e,n,r,o)))return p.push(t)}))){d=!1;break}}else if(h!==v&&!i(h,v,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d},Er=O.Uint8Array;var Dr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n};var kr=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Mr=Er,_r=He,Ar=Sr,Pr=Dr,Tr=kr,Yr=S?S.prototype:void 0,Hr=Yr?Yr.valueOf:void 0;var Ir=function(e,t,n,r,i,o,u){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Mr(e),new Mr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return _r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var l=Pr;case"[object Set]":var a=1&r;if(l||(l=Tr),e.size!=t.size&&!a)return!1;var s=u.get(e);if(s)return s==t;r|=2,u.set(e,t);var c=Ar(l(e),l(t),r,i,o,u);return u.delete(e),c;case"[object Symbol]":if(Hr)return Hr.call(e)==Hr.call(t)}return!1};var Lr=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Nr=Lr,$r=b;var Cr=function(e,t,n){var r=t(e);return $r(e)?r:Nr(r,n(e))};var Br=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var u=e[n];t(u,n,e)&&(o[i++]=u)}return o};var Fr=function(){return[]},Rr=Br,zr=Fr,Ur=Object.prototype.propertyIsEnumerable,Wr=Object.getOwnPropertySymbols,qr=Wr?function(e){return null==e?[]:(e=Object(e),Rr(Wr(e),(function(t){return Ur.call(e,t)})))}:zr,Vr=Cr,Xr=qr,Zr=Zn;var Gr=function(e){return Vr(e,Zr,Xr)},Kr=Gr,Jr=Object.prototype.hasOwnProperty;var Qr=function(e,t,n,r,i,o){var u=1&n,l=Kr(e),a=l.length;if(a!=Kr(t).length&&!u)return!1;for(var s=a;s--;){var c=l[s];if(!(u?c in t:Jr.call(t,c)))return!1}var f=o.get(e),d=o.get(t);if(f&&d)return f==t&&d==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=u;++s<a;){var v=e[c=l[s]],m=t[c];if(r)var g=u?r(m,v,c,t,e,o):r(v,m,c,e,t,o);if(!(void 0===g?v===m||i(v,m,n,r,o):g)){p=!1;break}h||(h="constructor"==c)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},ei=ve(O,"DataView"),ti=ve(O,"Promise"),ni=ve(O,"Set"),ri=ei,ii=Ze,oi=ti,ui=ni,li=ve(O,"WeakMap"),ai=I,si=ne,ci="[object Map]",fi="[object Promise]",di="[object Set]",pi="[object WeakMap]",hi="[object DataView]",vi=si(ri),mi=si(ii),gi=si(oi),yi=si(ui),bi=si(li),wi=ai;(ri&&wi(new ri(new ArrayBuffer(1)))!=hi||ii&&wi(new ii)!=ci||oi&&wi(oi.resolve())!=fi||ui&&wi(new ui)!=di||li&&wi(new li)!=pi)&&(wi=function(e){var t=ai(e),n="[object Object]"==t?e.constructor:void 0,r=n?si(n):"";if(r)switch(r){case vi:return hi;case mi:return ci;case gi:return fi;case yi:return di;case bi:return pi}return t});var xi=wi,ji=hr,Oi=Sr,Si=Ir,Ei=Qr,Di=xi,ki=b,Mi=fn,_i=Dn,Ai="[object Arguments]",Pi="[object Array]",Ti="[object Object]",Yi=Object.prototype.hasOwnProperty;var Hi=function(e,t,n,r,i,o){var u=ki(e),l=ki(t),a=u?Pi:Di(e),s=l?Pi:Di(t),c=(a=a==Ai?Ti:a)==Ti,f=(s=s==Ai?Ti:s)==Ti,d=a==s;if(d&&Mi(e)){if(!Mi(t))return!1;u=!0,c=!1}if(d&&!c)return o||(o=new ji),u||_i(e)?Oi(e,t,n,r,i,o):Si(e,t,a,n,r,i,o);if(!(1&n)){var p=c&&Yi.call(e,"__wrapped__"),h=f&&Yi.call(t,"__wrapped__");if(p||h){var v=p?e.value():e,m=h?t.value():t;return o||(o=new ji),i(v,m,n,r,o)}}return!!d&&(o||(o=new ji),Ei(e,t,n,r,i,o))},Ii=L;var Li=function e(t,n,r,i,o){return t===n||(null==t||null==n||!Ii(t)&&!Ii(n)?t!=t&&n!=n:Hi(t,n,r,i,e,o))},Ni=hr,$i=Li;var Ci=q;var Bi=function(e){return e==e&&!Ci(e)},Fi=Bi,Ri=Zn;var zi=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},Ui=function(e,t,n,r){var i=n.length,o=i,u=!r;if(null==e)return!o;for(e=Object(e);i--;){var l=n[i];if(u&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<o;){var a=(l=n[i])[0],s=e[a],c=l[1];if(u&&l[2]){if(void 0===s&&!(a in e))return!1}else{var f=new Ni;if(r)var d=r(s,c,a,e,t,f);if(!(void 0===d?$i(c,s,3,r,f):d))return!1}}return!0},Wi=function(e){for(var t=Ri(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Fi(i)]}return t},qi=zi;var Vi=Yt,Xi=an,Zi=b,Gi=pn,Ki=hn,Ji=It;var Qi=function(e,t,n){for(var r=-1,i=(t=Vi(t,e)).length,o=!1;++r<i;){var u=Ji(t[r]);if(!(o=null!=e&&n(e,u)))break;e=e[u]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Ki(i)&&Gi(u,i)&&(Zi(e)||Xi(e))},eo=function(e,t){return null!=e&&t in Object(e)},to=Qi;var no=function(e,t){return null!=e&&to(e,t,eo)},ro=Li,io=Bt,oo=no,uo=W,lo=Bi,ao=zi,so=It;var co=function(e,t){return uo(e)&&lo(t)?ao(so(e),t):function(n){var r=io(n,e);return void 0===r&&r===t?oo(n,e):ro(t,r,3)}};var fo=function(e){return e};var po=function(e){return function(t){return null==t?void 0:t[e]}},ho=$t;var vo=function(e){return function(t){return ho(t,e)}},mo=po,go=vo,yo=W,bo=It;var wo=function(e){return yo(e)?mo(bo(e)):go(e)},xo=function(e){var t=Wi(e);return 1==t.length&&t[0][2]?qi(t[0][0],t[0][1]):function(n){return n===e||Ui(n,e,t)}},jo=co,Oo=fo,So=b,Eo=wo;var Do=function(e){return"function"==typeof e?e:null==e?Oo:"object"==typeof e?So(e)?jo(e[0],e[1]):xo(e):Eo(e)},ko=He,Mo=Wn,_o=pn,Ao=q;var Po=function(e,t,n){if(!Ao(n))return!1;var r=typeof t;return!!("number"==r?Mo(n)&&_o(t,n.length):"string"==r&&t in n)&&ko(n[t],e)},To=Gt,Yo=nr,Ho=Do,Io=b,Lo=Po;var No=y((function(e,t,n){var r=Io(e)?To:Yo;return n&&Lo(e,t,n)&&(t=void 0),r(e,Ho(t))})),$o=Nn(Object.getPrototypeOf,Object),Co=I,Bo=$o,Fo=L,Ro=Function.prototype,zo=Object.prototype,Uo=Ro.toString,Wo=zo.hasOwnProperty,qo=Uo.call(Object);var Vo=function(e){if(!Fo(e)||"[object Object]"!=Co(e))return!1;var t=Bo(e);if(null===t)return!0;var n=Wo.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Uo.call(n)==qo},Xo=L,Zo=Vo;var Go=y((function(e){return Xo(e)&&1===e.nodeType&&!Zo(e)}));function Ko(e){return Go(e)}var Jo=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},Qo=fo;var eu=function(e){return"function"==typeof e?e:Qo},tu=Jo,nu=er,ru=eu,iu=b;var ou=y((function(e,t){return(iu(e)?tu:nu)(e,ru(t))})),uu=er,lu=Wn;var au=function(e,t){var n=-1,r=lu(e)?Array(e.length):[];return uu(e,(function(e,i,o){r[++n]=t(e,i,o)})),r},su=wt,cu=Do,fu=au,du=b;var pu=y((function(e,t){return(du(e)?su:fu)(e,cu(t))})),hu=an,vu=b,mu=S?S.isConcatSpreadable:void 0;var gu=Lr,yu=function(e){return vu(e)||hu(e)||!!(mu&&e&&e[mu])};var bu=function e(t,n,r,i,o){var u=-1,l=t.length;for(r||(r=yu),o||(o=[]);++u<l;){var a=t[u];n>0&&r(a)?n>1?e(a,n-1,r,i,o):gu(o,a):i||(o[o.length]=a)}return o};var wu=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},xu=Lr,ju=bu,Ou=wu,Su=b;var Eu=function(){var e=arguments.length;if(!e)return[];for(var t=Array(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return xu(Su(n)?Ou(n):[n],ju(t,1))},Du=y(Eu);function ku(e){return"[object Undefined]"===Object.prototype.toString.call(e)}function Mu(e){return"[object Null]"===Object.prototype.toString.call(e)}function _u(e){if(Rt(e)){for(let t in e)return!1;return!0}return!1}function Au(e){return!(!Wt(e)||""!==e)}function Pu(e){return!!Ut(e)&&0===e.length}function Tu(e){return!!ku(e)||(!!Mu(e)||(!!_u(e)||(!!Au(e)||!!Pu(e))))}function Yu(e){return!!Ut(e)&&(0!==e.length&&(1!==e.length||!Tu(e[0])))}var Hu=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1};var Iu=Hu,Lu=function(e){return e!=e},Nu=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var $u=function(e,t,n){return t==t?Nu(e,t,n):Iu(e,Lu,n)},Cu=$u;var Bu=function(e,t){return!!(null==e?0:e.length)&&Cu(e,t,0)>-1};var Fu=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1};var Ru=ni,zu=function(){},Uu=Ru&&1/kr(new Ru([,-0]))[1]==1/0?function(e){return new Ru(e)}:zu,Wu=br,qu=Bu,Vu=Fu,Xu=wr,Zu=Uu,Gu=kr;var Ku=function(e,t,n){var r=-1,i=qu,o=e.length,u=!0,l=[],a=l;if(n)u=!1,i=Vu;else if(o>=200){var s=t?null:Zu(e);if(s)return Gu(s);u=!1,i=Xu,a=new Wu}else a=t?[]:l;e:for(;++r<o;){var c=e[r],f=t?t(c):c;if(c=n||0!==c?c:0,u&&f==f){for(var d=a.length;d--;)if(a[d]===f)continue e;t&&a.push(f),l.push(c)}else i(a,f,n)||(a!==l&&a.push(f),l.push(c))}return l},Ju=Ku;var Qu=y((function(e){return e&&e.length?Ju(e):[]}));function el(e){if(!Yu(e))return[];let t=[];return ou(e,(function(e){let n=Gn(e);t=[...t,...n],t=Qu(t)})),t}var tl=I,nl=b,rl=L;var il=function(e){return"string"==typeof e||!nl(e)&&rl(e)&&"[object String]"==tl(e)},ol=po("length"),ul=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var ll=function(e){return ul.test(e)},al="\\ud800-\\udfff",sl="["+al+"]",cl="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",fl="\\ud83c[\\udffb-\\udfff]",dl="[^"+al+"]",pl="(?:\\ud83c[\\udde6-\\uddff]){2}",hl="[\\ud800-\\udbff][\\udc00-\\udfff]",vl="(?:"+cl+"|"+fl+")"+"?",ml="[\\ufe0e\\ufe0f]?",gl=ml+vl+("(?:\\u200d(?:"+[dl,pl,hl].join("|")+")"+ml+vl+")*"),yl="(?:"+[dl+cl+"?",cl,pl,hl,sl].join("|")+")",bl=RegExp(fl+"(?="+fl+")|"+yl+gl,"g");var wl=ol,xl=ll,jl=function(e){for(var t=bl.lastIndex=0;bl.test(e);)++t;return t};var Ol=Rn,Sl=xi,El=Wn,Dl=il,kl=function(e){return xl(e)?jl(e):wl(e)};var Ml=function(e){if(null==e)return 0;if(El(e))return Dl(e)?kl(e):e.length;var t=Sl(e);return"[object Map]"==t||"[object Set]"==t?e.size:Ol(e).length},_l=y(Ml),Al=I,Pl=L;var Tl=y((function(e){return!0===e||!1===e||Pl(e)&&"[object Boolean]"==Al(e)}));function Yl(e){return Tl(e)}function Hl(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(ku(e))return"";let n="";try{n=t?JSON.stringify(e,null,2):JSON.stringify(e)}catch(e){n=""}return n}function Il(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Yu(e))return[];if(Yu(t)||(t=el(e)),0===_l(t))return[];let r=!1;if(ou(e,(function(e){zt(e)||(r=!0)})),r)return[];let i=Ft(n,"empty",""),o=[];return ou(e,(function(e){let n=pu(t,(function(t){return Zt(e,t)?Yl(e[t])?e[t]?"true":"false":Wt(e[t])||Xt(e[t])?e[t]:Hl(e[t]):i}));o.push(n)})),o}function Ll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Yu(e))return[];Yu(t)||(t=el(e)),zt(n)||(n={},ou(t,(e=>{n[e]=e})));let r=!1;if(ou(e,(function(e){zt(e)||(r=!0)})),r)return[];let i=pu(t,(function(e){return Ft(n,e)})),o=Il(e,t);return Du([i],o)}function Nl(){return"undefined"!=typeof window&&void 0!==window.document}function $l(){return"undefined"!=typeof self?self:Nl()?window:"undefined"!=typeof global?global:null}function Cl(){let e=$l();if(zt(Ft(h,"utils")))return h;if(zt(Ft(h,"default.utils")))return Ft(h,"default");if(zt(Ft(e,"XLSX.utils")))return Ft(e,"XLSX");if(zt(Ft(e,"XLSX.default.utils")))return Ft(e,"XLSX.default");if(zt(Ft(e,"xlsx.utils")))return Ft(e,"xlsx");if(zt(Ft(e,"xlsx.default.utils")))return Ft(e,"xlsx.default");throw console.log("XLSX",h,"g.XLSX",e.XLSX,"g.xlsx",e.xlsx),new Error("invalid XLSX, g.XLSX, g.xlsx")}function Bl(e){if(!Ut(e)&&!Ko(e))return{error:"data is not an array or element"};let t=null;try{let n=Cl().utils;if(Ut(e)){No(e,zt)&&(e=Ll(e)),t=n.aoa_to_sheet(e)}else Ko(e)&&(t=n.table_to_sheet(e,{raw:!0}))}catch(e){return{error:e}}return t}function Fl(e){if(!qt(e))return!1;let t="YYYY-MM";return e===n(e,t).format(t)}var Rl=/\s/;var zl=function(e){for(var t=e.length;t--&&Rl.test(e.charAt(t)););return t},Ul=/^\s+/;var Wl=function(e){return e?e.slice(0,zl(e)+1).replace(Ul,""):e},ql=Wl,Vl=q,Xl=C,Zl=/^[-+]0x[0-9a-f]+$/i,Gl=/^0b[01]+$/i,Kl=/^0o[0-7]+$/i,Jl=parseInt;var Ql=function(e){if("number"==typeof e)return e;if(Xl(e))return NaN;if(Vl(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Vl(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ql(e);var n=Gl.test(e);return n||Kl.test(e)?Jl(e.slice(2),n?2:8):Zl.test(e)?NaN:+e},ea=y(Ql),ta=Ql,na=1/0;var ra=function(e){return e?(e=ta(e))===na||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},ia=y(ra),oa=ra;var ua=function(e){var t=oa(e),n=t%1;return t==t?n?t-n:t:0},la=ua;var aa=y((function(e){return"number"==typeof e&&e==la(e)}));function sa(e){if(!Xt(e))return 0;return ia(e)}function ca(e){return!!Xt(e)&&(e=sa(e),aa(e))}var fa={exports:{}};var da,pa={exports:{}};function ha(){return da||(da=1,function(e,t){var n;e.exports=(n=n||function(e,t){var n;if("undefined"!=typeof window&&window.crypto&&(n=window.crypto),"undefined"!=typeof self&&self.crypto&&(n=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(n=globalThis.crypto),!n&&"undefined"!=typeof window&&window.msCrypto&&(n=window.msCrypto),!n&&void 0!==g&&g.crypto&&(n=g.crypto),!n)try{n=require("crypto")}catch(e){}var r=function(){if(n){if("function"==typeof n.getRandomValues)try{return n.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"==typeof n.randomBytes)try{return n.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")},i=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),o={},u=o.lib={},l=u.Base={extend:function(e){var t=i(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=u.WordArray=l.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||c).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var u=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=u<<24-(r+o)%4*8}else for(var l=0;l<i;l+=4)t[r+l>>>2]=n[l>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=l.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n<e;n+=4)t.push(r());return new a.init(t,e)}}),s=o.enc={},c=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},f=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},d=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(f.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return f.parse(unescape(encodeURIComponent(e)))}},p=u.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=d.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,u=this.blockSize,l=o/(4*u),s=(l=t?e.ceil(l):e.max((0|l)-this._minBufferSize,0))*u,c=e.min(4*s,o);if(s){for(var f=0;f<s;f+=u)this._doProcessBlock(i,f);n=i.splice(0,s),r.sigBytes-=c}return new a.init(n,c)},clone:function(){var e=l.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});u.Hasher=p.extend({cfg:l.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new h.HMAC.init(e,n).finalize(t)}}});var h=o.algo={};return o}(Math),n)}(pa)),pa.exports}var va={exports:{}};!function(e,t){var n;e.exports=(n=ha(),function(){var e=n,t=e.lib.WordArray;function r(e,n,r){for(var i=[],o=0,u=0;u<n;u++)if(u%4){var l=r[e.charCodeAt(u-1)]<<u%4*2|r[e.charCodeAt(u)]>>>6-u%4*2;i[o>>>2]|=l<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var u=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,l=0;l<4&&o+.75*l<n;l++)i.push(r.charAt(u>>>6*(3-l)&63));var a=r.charAt(64);if(a)for(;i.length%4;)i.push(a);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var u=n.charAt(64);if(u){var l=e.indexOf(u);-1!==l&&(t=l)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)}(va);var ma,ga=va.exports,ya=y(ga),ba={exports:{}};function wa(){return ma||(ma=1,function(e,t){var n;e.exports=(n=ha(),function(e){var t=n,r=t.lib,i=r.WordArray,o=r.Hasher,u=t.algo,l=[];!function(){for(var t=0;t<64;t++)l[t]=4294967296*e.abs(e.sin(t+1))|0}();var a=u.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,u=e[t+0],a=e[t+1],p=e[t+2],h=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],j=e[t+11],O=e[t+12],S=e[t+13],E=e[t+14],D=e[t+15],k=o[0],M=o[1],_=o[2],A=o[3];k=s(k,M,_,A,u,7,l[0]),A=s(A,k,M,_,a,12,l[1]),_=s(_,A,k,M,p,17,l[2]),M=s(M,_,A,k,h,22,l[3]),k=s(k,M,_,A,v,7,l[4]),A=s(A,k,M,_,m,12,l[5]),_=s(_,A,k,M,g,17,l[6]),M=s(M,_,A,k,y,22,l[7]),k=s(k,M,_,A,b,7,l[8]),A=s(A,k,M,_,w,12,l[9]),_=s(_,A,k,M,x,17,l[10]),M=s(M,_,A,k,j,22,l[11]),k=s(k,M,_,A,O,7,l[12]),A=s(A,k,M,_,S,12,l[13]),_=s(_,A,k,M,E,17,l[14]),k=c(k,M=s(M,_,A,k,D,22,l[15]),_,A,a,5,l[16]),A=c(A,k,M,_,g,9,l[17]),_=c(_,A,k,M,j,14,l[18]),M=c(M,_,A,k,u,20,l[19]),k=c(k,M,_,A,m,5,l[20]),A=c(A,k,M,_,x,9,l[21]),_=c(_,A,k,M,D,14,l[22]),M=c(M,_,A,k,v,20,l[23]),k=c(k,M,_,A,w,5,l[24]),A=c(A,k,M,_,E,9,l[25]),_=c(_,A,k,M,h,14,l[26]),M=c(M,_,A,k,b,20,l[27]),k=c(k,M,_,A,S,5,l[28]),A=c(A,k,M,_,p,9,l[29]),_=c(_,A,k,M,y,14,l[30]),k=f(k,M=c(M,_,A,k,O,20,l[31]),_,A,m,4,l[32]),A=f(A,k,M,_,b,11,l[33]),_=f(_,A,k,M,j,16,l[34]),M=f(M,_,A,k,E,23,l[35]),k=f(k,M,_,A,a,4,l[36]),A=f(A,k,M,_,v,11,l[37]),_=f(_,A,k,M,y,16,l[38]),M=f(M,_,A,k,x,23,l[39]),k=f(k,M,_,A,S,4,l[40]),A=f(A,k,M,_,u,11,l[41]),_=f(_,A,k,M,h,16,l[42]),M=f(M,_,A,k,g,23,l[43]),k=f(k,M,_,A,w,4,l[44]),A=f(A,k,M,_,O,11,l[45]),_=f(_,A,k,M,D,16,l[46]),k=d(k,M=f(M,_,A,k,p,23,l[47]),_,A,u,6,l[48]),A=d(A,k,M,_,y,10,l[49]),_=d(_,A,k,M,E,15,l[50]),M=d(M,_,A,k,m,21,l[51]),k=d(k,M,_,A,O,6,l[52]),A=d(A,k,M,_,h,10,l[53]),_=d(_,A,k,M,x,15,l[54]),M=d(M,_,A,k,a,21,l[55]),k=d(k,M,_,A,b,6,l[56]),A=d(A,k,M,_,D,10,l[57]),_=d(_,A,k,M,g,15,l[58]),M=d(M,_,A,k,S,21,l[59]),k=d(k,M,_,A,v,6,l[60]),A=d(A,k,M,_,j,10,l[61]),_=d(_,A,k,M,p,15,l[62]),M=d(M,_,A,k,w,21,l[63]),o[0]=o[0]+k|0,o[1]=o[1]+M|0,o[2]=o[2]+_|0,o[3]=o[3]+A|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),u=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),t.sigBytes=4*(n.length+1),this._process();for(var l=this._hash,a=l.words,s=0;s<4;s++){var c=a[s];a[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return l},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function s(e,t,n,r,i,o,u){var l=e+(t&n|~t&r)+i+u;return(l<<o|l>>>32-o)+t}function c(e,t,n,r,i,o,u){var l=e+(t&r|n&~r)+i+u;return(l<<o|l>>>32-o)+t}function f(e,t,n,r,i,o,u){var l=e+(t^n^r)+i+u;return(l<<o|l>>>32-o)+t}function d(e,t,n,r,i,o,u){var l=e+(n^(t|~r))+i+u;return(l<<o|l>>>32-o)+t}t.MD5=o._createHelper(a),t.HmacMD5=o._createHmacHelper(a)}(Math),n.MD5)}(ba)),ba.exports}var xa,ja={exports:{}},Oa={exports:{}};function Sa(){return xa||(xa=1,function(e,t){var n,r,i,o,u,l,a,s;e.exports=(s=ha(),r=(n=s).lib,i=r.WordArray,o=r.Hasher,u=n.algo,l=[],a=u.SHA1=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],u=n[3],a=n[4],s=0;s<80;s++){if(s<16)l[s]=0|e[t+s];else{var c=l[s-3]^l[s-8]^l[s-14]^l[s-16];l[s]=c<<1|c>>>31}var f=(r<<5|r>>>27)+a+l[s];f+=s<20?1518500249+(i&o|~i&u):s<40?1859775393+(i^o^u):s<60?(i&o|i&u|o&u)-1894007588:(i^o^u)-899497514,a=u,u=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+u|0,n[4]=n[4]+a|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}}),n.SHA1=o._createHelper(a),n.HmacSHA1=o._createHmacHelper(a),s.SHA1)}(Oa)),Oa.exports}var Ea,Da,ka={exports:{}};function Ma(){return Da||(Da=1,function(e,t){var n;e.exports=(n=ha(),Sa(),Ea||(Ea=1,function(e,t){var n,r,i;e.exports=(r=(n=ha()).lib.Base,i=n.enc.Utf8,void(n.algo.HMAC=r.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=i.parse(t));var n=e.blockSize,r=4*n;t.sigBytes>r&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),u=this._iKey=t.clone(),l=o.words,a=u.words,s=0;s<n;s++)l[s]^=1549556828,a[s]^=909522486;o.sigBytes=u.sigBytes=r,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})))}(ka)),ka.exports,function(){var e=n,t=e.lib,r=t.Base,i=t.WordArray,o=e.algo,u=o.MD5,l=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:u,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n,r=this.cfg,o=r.hasher.create(),u=i.create(),l=u.words,a=r.keySize,s=r.iterations;l.length<a;){n&&o.update(n),n=o.update(e).finalize(t),o.reset();for(var c=1;c<s;c++)n=o.finalize(n),o.reset();u.concat(n)}return u.sigBytes=4*a,u}});e.EvpKDF=function(e,t,n){return l.create(n).compute(e,t)}}(),n.EvpKDF)}(ja)),ja.exports}var _a,Aa={exports:{}};!function(e,t){var n;e.exports=(n=ha(),wa(),Ma(),_a||(_a=1,function(e,t){var n;e.exports=(n=ha(),Ma(),void(n.lib.Cipher||function(e){var t=n,r=t.lib,i=r.Base,o=r.WordArray,u=r.BufferedBlockAlgorithm,l=t.enc;l.Utf8;var a=l.Base64,s=t.algo.EvpKDF,c=r.Cipher=u.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:g}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var f=t.mode={},d=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=f.CBC=function(){var t=d.extend();function n(t,n,r){var i,o=this._iv;o?(i=o,this._iv=e):i=this._prevBlock;for(var u=0;u<r;u++)t[n+u]^=i[u]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),t}(),h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,u=[],l=0;l<r;l+=4)u.push(i);var a=o.create(u,r);e.concat(a)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=c.extend({cfg:c.cfg.extend({mode:p,padding:h}),reset:function(){var e;c.reset.call(this);var t=this.cfg,n=t.iv,r=t.mode;this._xformMode==this._ENC_XFORM_MODE?e=r.createEncryptor:(e=r.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==e?this._mode.init(this,n&&n.words):(this._mode=e.call(r,this,n&&n.words),this._mode.__creator=e)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e,t=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(t.pad(this._data,this.blockSize),e=this._process(!0)):(e=this._process(!0),t.unpad(e)),e},blockSize:4});var v=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),m=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(t):t).toString(a)},parse:function(e){var t,n=a.parse(e),r=n.words;return 1398893684==r[0]&&1701076831==r[1]&&(t=o.create(r.slice(2,4)),r.splice(0,4),n.sigBytes-=16),v.create({ciphertext:n,salt:t})}},g=r.SerializableCipher=i.extend({cfg:i.extend({format:m}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),u=i.cfg;return v.create({ciphertext:o,key:n,iv:u.iv,algorithm:e,mode:u.mode,padding:u.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),y=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=o.random(8));var i=s.create({keySize:t+n}).compute(e,r),u=o.create(i.words.slice(t),4*n);return i.sigBytes=4*t,v.create({key:i,iv:u,salt:r})}},b=r.PasswordBasedCipher=g.extend({cfg:g.cfg.extend({kdf:y}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=g.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,g.decrypt.call(this,e,t,i.key,r)}})}()))}(Aa)),function(){var e=n,t=e.lib.BlockCipher,r=e.algo,i=[],o=[],u=[],l=[],a=[],s=[],c=[],f=[],d=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var h=r^r<<1^r<<2^r<<3^r<<4;h=h>>>8^255&h^99,i[n]=h,o[h]=n;var v=e[n],m=e[v],g=e[m],y=257*e[h]^16843008*h;u[n]=y<<24|y>>>8,l[n]=y<<16|y>>>16,a[n]=y<<8|y>>>24,s[n]=y,y=16843009*g^65537*m^257*v^16843008*n,c[h]=y<<24|y>>>8,f[h]=y<<16|y>>>16,d[h]=y<<8|y>>>24,p[h]=y,n?(n=v^e[e[e[g^v]]],r^=e[e[r]]):n=r=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],v=r.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],u=0;u<r;u++)u<n?o[u]=t[u]:(s=o[u-1],u%n?n>6&&u%n==4&&(s=i[s>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s]):(s=i[(s=s<<8|s>>>24)>>>24]<<24|i[s>>>16&255]<<16|i[s>>>8&255]<<8|i[255&s],s^=h[u/n|0]<<24),o[u]=o[u-n]^s);for(var l=this._invKeySchedule=[],a=0;a<r;a++){if(u=r-a,a%4)var s=o[u];else s=o[u-4];l[a]=a<4||u<=4?s:c[i[s>>>24]]^f[i[s>>>16&255]]^d[i[s>>>8&255]]^p[i[255&s]]}}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,u,l,a,s,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,c,f,d,p,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,u,l){for(var a=this._nRounds,s=e[t]^n[0],c=e[t+1]^n[1],f=e[t+2]^n[2],d=e[t+3]^n[3],p=4,h=1;h<a;h++){var v=r[s>>>24]^i[c>>>16&255]^o[f>>>8&255]^u[255&d]^n[p++],m=r[c>>>24]^i[f>>>16&255]^o[d>>>8&255]^u[255&s]^n[p++],g=r[f>>>24]^i[d>>>16&255]^o[s>>>8&255]^u[255&c]^n[p++],y=r[d>>>24]^i[s>>>16&255]^o[c>>>8&255]^u[255&f]^n[p++];s=v,c=m,f=g,d=y}v=(l[s>>>24]<<24|l[c>>>16&255]<<16|l[f>>>8&255]<<8|l[255&d])^n[p++],m=(l[c>>>24]<<24|l[f>>>16&255]<<16|l[d>>>8&255]<<8|l[255&s])^n[p++],g=(l[f>>>24]<<24|l[d>>>16&255]<<16|l[s>>>8&255]<<8|l[255&c])^n[p++],y=(l[d>>>24]<<24|l[s>>>16&255]<<16|l[c>>>8&255]<<8|l[255&f])^n[p++],e[t]=v,e[t+1]=m,e[t+2]=g,e[t+3]=y},keySize:8});e.AES=t._createHelper(v)}(),n.AES)}(fa);var Pa=y(fa.exports),Ta={exports:{}};!function(e,t){e.exports=ha().enc.Utf8}(Ta);var Ya=y(Ta.exports),Ha={exports:{}};!function(e,t){e.exports=ha().enc.Hex}(Ha);var Ia=y(Ha.exports);function La(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!qt(e))return"";if(!qt(t))return"";if(!Yl(n))return"";let r="";if(n){r=Pa.decrypt(e,t).toString(Ya)}else{let n=Ia.parse(e).toString(ya);r=Pa.decrypt(n,t).toString(Ya)}return r}var Na=ve,$a=function(){try{var e=Na(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ca=$a;var Ba=function(e,t,n){"__proto__"==t&&Ca?Ca(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Fa=Ba,Ra=He,za=Object.prototype.hasOwnProperty;var Ua=function(e,t,n){var r=e[t];za.call(e,t)&&Ra(r,n)&&(void 0!==n||t in e)||Fa(e,t,n)},Wa=Ua,qa=Ba;var Va=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,u=t.length;++o<u;){var l=t[o],a=r?r(n[l],e[l],l,n,e):void 0;void 0===a&&(a=e[l]),i?qa(n,l,a):Wa(n,l,a)}return n},Xa=Va,Za=Zn;var Ga=function(e,t){return e&&Xa(t,Za(t),e)};var Ka=q,Ja=Ln,Qa=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},es=Object.prototype.hasOwnProperty;var ts=Hn,ns=function(e){if(!Ka(e))return Qa(e);var t=Ja(e),n=[];for(var r in e)("constructor"!=r||!t&&es.call(e,r))&&n.push(r);return n},rs=Wn;var is=function(e){return rs(e)?ts(e,!0):ns(e)},os=Va,us=is;var ls=function(e,t){return e&&os(t,us(t),e)},as={exports:{}};!function(e,t){var n=O,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,u=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=u?u(n):new e.constructor(n);return e.copy(r),r}}(as,as.exports);var ss=as.exports,cs=Va,fs=qr;var ds=function(e,t){return cs(e,fs(e),t)},ps=Lr,hs=$o,vs=qr,ms=Fr,gs=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)ps(t,vs(e)),e=hs(e);return t}:ms,ys=Va,bs=gs;var ws=function(e,t){return ys(e,bs(e),t)},xs=Cr,js=gs,Os=is;var Ss=function(e){return xs(e,Os,js)},Es=Object.prototype.hasOwnProperty;var Ds=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Es.call(e,"index")&&(n.index=e.index,n.input=e.input),n},ks=Er;var Ms=function(e){var t=new e.constructor(e.byteLength);return new ks(t).set(new ks(e)),t},_s=Ms;var As=function(e,t){var n=t?_s(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Ps=/\w*$/;var Ts=function(e){var t=new e.constructor(e.source,Ps.exec(e));return t.lastIndex=e.lastIndex,t},Ys=S?S.prototype:void 0,Hs=Ys?Ys.valueOf:void 0;var Is=Ms;var Ls=function(e,t){var n=t?Is(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},Ns=Ms,$s=As,Cs=Ts,Bs=function(e){return Hs?Object(Hs.call(e)):{}},Fs=Ls;var Rs=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Ns(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return $s(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Fs(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Cs(e);case"[object Symbol]":return Bs(e)}},zs=q,Us=Object.create,Ws=function(){function e(){}return function(t){if(!zs(t))return{};if(Us)return Us(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),qs=$o,Vs=Ln;var Xs=function(e){return"function"!=typeof e.constructor||Vs(e)?{}:Ws(qs(e))},Zs=xi,Gs=L;var Ks=function(e){return Gs(e)&&"[object Map]"==Zs(e)},Js=wn,Qs=jn&&jn.isMap,ec=Qs?Js(Qs):Ks,tc=xi,nc=L;var rc=function(e){return nc(e)&&"[object Set]"==tc(e)},ic=wn,oc=jn&&jn.isSet,uc=oc?ic(oc):rc,lc=hr,ac=Jo,sc=Ua,cc=Ga,fc=ls,dc=ss,pc=wu,hc=ds,vc=ws,mc=Gr,gc=Ss,yc=xi,bc=Ds,wc=Rs,xc=Xs,jc=b,Oc=fn,Sc=ec,Ec=q,Dc=uc,kc=Zn,Mc=is,_c="[object Arguments]",Ac="[object Function]",Pc="[object Object]",Tc={};Tc[_c]=Tc["[object Array]"]=Tc["[object ArrayBuffer]"]=Tc["[object DataView]"]=Tc["[object Boolean]"]=Tc["[object Date]"]=Tc["[object Float32Array]"]=Tc["[object Float64Array]"]=Tc["[object Int8Array]"]=Tc["[object Int16Array]"]=Tc["[object Int32Array]"]=Tc["[object Map]"]=Tc["[object Number]"]=Tc[Pc]=Tc["[object RegExp]"]=Tc["[object Set]"]=Tc["[object String]"]=Tc["[object Symbol]"]=Tc["[object Uint8Array]"]=Tc["[object Uint8ClampedArray]"]=Tc["[object Uint16Array]"]=Tc["[object Uint32Array]"]=!0,Tc["[object Error]"]=Tc[Ac]=Tc["[object WeakMap]"]=!1;var Yc=function e(t,n,r,i,o,u){var l,a=1&n,s=2&n,c=4&n;if(r&&(l=o?r(t,i,o,u):r(t)),void 0!==l)return l;if(!Ec(t))return t;var f=jc(t);if(f){if(l=bc(t),!a)return pc(t,l)}else{var d=yc(t),p=d==Ac||"[object GeneratorFunction]"==d;if(Oc(t))return dc(t,a);if(d==Pc||d==_c||p&&!o){if(l=s||p?{}:xc(t),!a)return s?vc(t,fc(l,t)):hc(t,cc(l,t))}else{if(!Tc[d])return o?t:{};l=wc(t,d,a)}}u||(u=new lc);var h=u.get(t);if(h)return h;u.set(t,l),Dc(t)?t.forEach((function(i){l.add(e(i,n,r,i,t,u))})):Sc(t)&&t.forEach((function(i,o){l.set(o,e(i,n,r,o,t,u))}));var v=f?void 0:(c?s?gc:mc:s?Mc:kc)(t);return ac(v||t,(function(i,o){v&&(i=t[o=i]),sc(l,o,e(i,n,r,o,t,u))})),l},Hc=Yc;var Ic=y((function(e){return Hc(e,5)})),Lc={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,u){if("function"!=typeof r)throw new TypeError("The listener must be a function");var l=new i(r,o||e,u),a=n?n+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],l]:e._events[a].push(l):(e._events[a]=l,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function l(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),l.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},l.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,u=new Array(o);i<o;i++)u[i]=r[i].fn;return u},l.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},l.prototype.emit=function(e,t,r,i,o,u){var l=n?n+e:e;if(!this._events[l])return!1;var a,s,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,i),!0;case 5:return c.fn.call(c.context,t,r,i,o),!0;case 6:return c.fn.call(c.context,t,r,i,o,u),!0}for(s=1,a=new Array(f-1);s<f;s++)a[s-1]=arguments[s];c.fn.apply(c.context,a)}else{var d,p=c.length;for(s=0;s<p;s++)switch(c[s].once&&this.removeListener(e,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,t);break;case 3:c[s].fn.call(c[s].context,t,r);break;case 4:c[s].fn.call(c[s].context,t,r,i);break;default:if(!a)for(d=1,a=new Array(f-1);d<f;d++)a[d-1]=arguments[d];c[s].fn.apply(c[s].context,a)}}return!0},l.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},l.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},l.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return u(this,o),this;var l=this._events[o];if(l.fn)l.fn!==t||i&&!l.once||r&&l.context!==r||u(this,o);else{for(var a=0,s=[],c=l.length;a<c;a++)(l[a].fn!==t||i&&!l[a].once||r&&l[a].context!==r)&&s.push(l[a]);s.length?this._events[o]=1===s.length?s[0]:s:u(this,o)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&u(this,t)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l}(Lc);var Nc=y(Lc.exports);function $c(){return new Nc}var Cc=ua,Bc=Ql,Fc=Mt,Rc=O.isFinite,zc=Math.min;var Uc=function(e){var t=Math[e];return function(e,n){if(e=Bc(e),(n=null==n?0:zc(Cc(n),292))&&Rc(e)){var r=(Fc(e)+"e").split("e"),i=t(r[0]+"e"+(+r[1]+n));return+((r=(Fc(i)+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}},Wc=y(Uc("round"));function qc(e){if(!Xt(e))return 0;e=sa(e);let t=Wc(e);return"0"===String(t)?0:t}function Vc(e){if(!ca(e))return!1;return qc(e)>0}var Xc=function(e,t,n){for(var r=-1,i=e.length,o=t.length,u={};++r<i;){var l=r<o?t[r]:void 0;n(u,e[r],l)}return u},Zc=Ua,Gc=Xc;var Kc=function(e,t){return Gc(e||[],t||[],Zc)},Jc=y(Kc);function Qc(e,t){if(!Ut(e))return[];if(!Ut(t))return[];if(_l(e)!==_l(t))return[];let n=[];return ou(e,(function(r,i){let o=null,u=Xt(e[i]),l=Xt(t[i]);(u||l)&&(o=0),u&&(o+=sa(e[i])),l&&(o+=sa(t[i])),n.push(o)})),n}var ef=Math.ceil,tf=Math.max;var nf=function(e,t,n,r){for(var i=-1,o=tf(ef((t-e)/(n||1)),0),u=Array(o);o--;)u[r?o:++i]=e,e+=n;return u},rf=nf,of=Po,uf=ra;var lf=function(e){return function(t,n,r){return r&&"number"!=typeof r&&of(t,n,r)&&(n=r=void 0),t=uf(t),void 0===n?(n=t,t=0):n=uf(n),r=void 0===r?t<n?1:-1:uf(r),rf(t,n,r,e)}},af=y(lf()),sf=Bt;var cf=function(e,t){for(var n=-1,r=t.length,i=Array(r),o=null==e;++n<r;)i[n]=o?void 0:sf(e,t[n]);return i},ff=bu;var df=function(e){return(null==e?0:e.length)?ff(e,1):[]};var pf=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},hf=Math.max;var vf=function(e,t,n){return t=hf(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=hf(r.length-t,0),u=Array(o);++i<o;)u[i]=r[t+i];i=-1;for(var l=Array(t+1);++i<t;)l[i]=r[i];return l[t]=n(u),pf(e,this,l)}};var mf=function(e){return function(){return e}},gf=y(mf),yf=mf,bf=$a,wf=bf?function(e,t){return bf(e,"toString",{configurable:!0,enumerable:!1,value:yf(t),writable:!0})}:fo,xf=Date.now;var jf=function(e){var t=0,n=0;return function(){var r=xf(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},Of=jf(wf),Sf=df,Ef=vf,Df=Of;var kf=function(e){return Df(Ef(e,void 0,Sf),e+"")},Mf=y(kf(cf));function _f(e){if(!ca(e))return!1;return qc(e)>=0}function Af(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(e))return[];if(!_f(t))return[];if(t=qc(t),Tu(r)){if(t>=e.length)return[];n=Mf(e,t)}else{if(!_f(r))return[];if(r=qc(r),t>=e.length||r>=e.length)return[];let i=af(t,r+1);n=Mf(e,i)}return n}function Pf(e){return Pf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pf(e)}function Tf(e){var t=function(e,t){if("object"!==Pf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Pf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Pf(t)?t:String(t)}function Yf(e,t,n){return(t=Tf(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Hf=Array.prototype.join;var If=y((function(e,t){return null==e?"":Hf.call(e,t)}));var Lf=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},Nf=Lf;var $f=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Nf(e,t,n)},Cf=I,Bf=L;var Ff=function(e){return Bf(e)&&"[object RegExp]"==Cf(e)},Rf=wn,zf=jn&&jn.isRegExp,Uf=zf?Rf(zf):Ff;var Wf=function(e){return e.split("")},qf="\\ud800-\\udfff",Vf="["+qf+"]",Xf="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Zf="\\ud83c[\\udffb-\\udfff]",Gf="[^"+qf+"]",Kf="(?:\\ud83c[\\udde6-\\uddff]){2}",Jf="[\\ud800-\\udbff][\\udc00-\\udfff]",Qf="(?:"+Xf+"|"+Zf+")"+"?",ed="[\\ufe0e\\ufe0f]?",td=ed+Qf+("(?:\\u200d(?:"+[Gf,Kf,Jf].join("|")+")"+ed+Qf+")*"),nd="(?:"+[Gf+Xf+"?",Xf,Kf,Jf,Vf].join("|")+")",rd=RegExp(Zf+"(?="+Zf+")|"+nd+td,"g");var id=Wf,od=ll,ud=function(e){return e.match(rd)||[]};var ld=function(e){return od(e)?ud(e):id(e)},ad=Dt,sd=$f,cd=ll,fd=Po,dd=Uf,pd=ld,hd=Mt;var vd=y((function(e,t,n){return n&&"number"!=typeof n&&fd(e,t,n)&&(t=n=void 0),(n=void 0===n?4294967295:n>>>0)?(e=hd(e))&&("string"==typeof t||null!=t&&!dd(t))&&!(t=ad(t))&&cd(e)?sd(pd(e),0,n):e.split(t,n):[]})),md=Lf,gd=ua;var yd=y((function(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:gd(t),md(e,0,(t=r-t)<0?0:t)):[]}));function bd(){}function wd(e,t,n,r,i){for(var o=0,u=t.length,l=0,a=0;o<u;o++){var s=t[o];if(s.removed){if(s.value=e.join(r.slice(a,a+s.count)),a+=s.count,o&&t[o-1].added){var c=t[o-1];t[o-1]=t[o],t[o]=c}}else{if(!s.added&&i){var f=n.slice(l,l+s.count);f=f.map((function(e,t){var n=r[a+t];return n.length>e.length?n:e})),s.value=e.join(f)}else s.value=e.join(n.slice(l,l+s.count));l+=s.count,s.added||(a+=s.count)}}var d=t[u-1];return u>1&&"string"==typeof d.value&&(d.added||d.removed)&&e.equals("",d.value)&&(t[u-2].value+=d.value,t.pop()),t}function xd(e){return{newPos:e.newPos,components:e.components.slice(0)}}bd.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.callback;"function"==typeof n&&(r=n,n={}),this.options=n;var i=this;function o(e){return r?(setTimeout((function(){r(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,a=1,s=u+l;n.maxEditLength&&(s=Math.min(s,n.maxEditLength));var c=[{newPos:-1,components:[]}],f=this.extractCommon(c[0],t,e,0);if(c[0].newPos+1>=u&&f+1>=l)return o([{value:this.join(t),count:t.length}]);function d(){for(var n=-1*a;n<=a;n+=2){var r=void 0,s=c[n-1],f=c[n+1],d=(f?f.newPos:0)-n;s&&(c[n-1]=void 0);var p=s&&s.newPos+1<u,h=f&&0<=d&&d<l;if(p||h){if(!p||h&&s.newPos<f.newPos?(r=xd(f),i.pushComponent(r.components,void 0,!0)):((r=s).newPos++,i.pushComponent(r.components,!0,void 0)),d=i.extractCommon(r,t,e,n),r.newPos+1>=u&&d+1>=l)return o(wd(i,r.components,t,e,i.useLongestToken));c[n]=r}else c[n]=void 0}a++}if(r)!function e(){setTimeout((function(){if(a>s)return r();d()||e()}),0)}();else for(;a<=s;){var p=d();if(p)return p}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,u=e.newPos,l=u-r,a=0;u+1<i&&l+1<o&&this.equals(t[u+1],n[l+1]);)u++,l++,a++;return a&&e.components.push({count:a}),e.newPos=u,l},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};var jd=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Od=/\S/,Sd=new bd;Sd.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!Od.test(e)&&!Od.test(t)},Sd.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&jd.test(t[n])&&jd.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var Ed=new bd;function Dd(e,t,n){return Ed.diff(e,t,n)}function kd(e){return kd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kd(e)}function Md(e){return function(e){if(Array.isArray(e))return _d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Ed.tokenize=function(e){var t=[],n=e.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(var r=0;r<n.length;r++){var i=n[r];r%2&&!this.options.newlineIsToken?t[t.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),t.push(i))}return t},(new bd).tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)},(new bd).tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};var Ad=Object.prototype.toString,Pd=new bd;function Td(e,t,n,r,i){var o,u;for(t=t||[],n=n||[],r&&(e=r(i,e)),o=0;o<t.length;o+=1)if(t[o]===e)return n[o];if("[object Array]"===Ad.call(e)){for(t.push(e),u=new Array(e.length),n.push(u),o=0;o<e.length;o+=1)u[o]=Td(e[o],t,n,r,i);return t.pop(),n.pop(),u}if(e&&e.toJSON&&(e=e.toJSON()),"object"===kd(e)&&null!==e){t.push(e),u={},n.push(u);var l,a=[];for(l in e)e.hasOwnProperty(l)&&a.push(l);for(a.sort(),o=0;o<a.length;o+=1)u[l=a[o]]=Td(e[l],t,n,r,l);t.pop(),n.pop()}else u=e;return u}Pd.useLongestToken=!0,Pd.tokenize=Ed.tokenize,Pd.castInput=function(e){var t=this.options,n=t.undefinedReplacement,r=t.stringifyReplacer,i=void 0===r?function(e,t){return void 0===t?n:t}:r;return"string"==typeof e?e:JSON.stringify(Td(e,null,null,i),i," ")},Pd.equals=function(e,t){return bd.prototype.equals.call(Pd,e.replace(/,([\r\n])/g,"$1"),t.replace(/,([\r\n])/g,"$1"))};var Yd=new bd;function Hd(e,t,n,r,i,o,u){return function(e){var t=[];e.oldFileName==e.newFileName&&t.push("Index: "+e.oldFileName),t.push("==================================================================="),t.push("--- "+e.oldFileName+(void 0===e.oldHeader?"":"\t"+e.oldHeader)),t.push("+++ "+e.newFileName+(void 0===e.newHeader?"":"\t"+e.newHeader));for(var n=0;n<e.hunks.length;n++){var r=e.hunks[n];0===r.oldLines&&(r.oldStart-=1),0===r.newLines&&(r.newStart-=1),t.push("@@ -"+r.oldStart+","+r.oldLines+" +"+r.newStart+","+r.newLines+" @@"),t.push.apply(t,r.lines)}return t.join("\n")+"\n"}(function(e,t,n,r,i,o,u){u||(u={}),void 0===u.context&&(u.context=4);var l=Dd(n,r,u);if(l){l.push({value:"",lines:[]});for(var a=[],s=0,c=0,f=[],d=1,p=1,h=function(e){var t=l[e],i=t.lines||t.value.replace(/\n$/,"").split("\n");if(t.lines=i,t.added||t.removed){var o;if(!s){var h=l[e-1];s=d,c=p,h&&(f=u.context>0?m(h.lines.slice(-u.context)):[],s-=f.length,c-=f.length)}(o=f).push.apply(o,Md(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?p+=i.length:d+=i.length}else{if(s)if(i.length<=2*u.context&&e<l.length-2){var v;(v=f).push.apply(v,Md(m(i)))}else{var g,y=Math.min(i.length,u.context);(g=f).push.apply(g,Md(m(i.slice(0,y))));var b={oldStart:s,oldLines:d-s+y,newStart:c,newLines:p-c+y,lines:f};if(e>=l.length-2&&i.length<=u.context){var w=/\n$/.test(n),x=/\n$/.test(r),j=0==i.length&&f.length>b.oldLines;!w&&j&&n.length>0&&f.splice(b.oldLines,0,"\"),(w||j)&&x||f.push("\")}a.push(b),s=0,c=0,f=[]}d+=i.length,p+=i.length}},v=0;v<l.length;v++)h(v);return{oldFileName:e,newFileName:t,oldHeader:i,newHeader:o,hunks:a}}function m(e){return e.map((function(e){return" "+e}))}}(e,t,n,r,i,o,u))}Yd.tokenize=function(e){return e.slice()},Yd.join=Yd.removeEmpty=function(e){return e};var Id=Lf,Ld=ua;var Nd=y((function(e,t,n){return e&&e.length?(t=n||void 0===t?1:Ld(t),Id(e,0,t<0?0:t)):[]}));function $d(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Wt(e))return{};if(!Wt(t))return{};if(""===e&&""===t)return{};let r=Ft(n,"eliminateEndLine");Yl(r)||(r=!1);let i,o=Dd(e,t),u=_l(o),l=[],a=[];for(i=-1;i++,!(i>u-1);){let e=o[i],t=Ft(e,"count",0),n=Ft(e,"removed",!1),r=Ft(e,"added",!1),u=Ft(e,"value",""),s=vd(u,"\n");s=Nd(s,t);for(let e=1;e<=t;e++){let t=s[e-1];n||r?n&&!r?(l.push({p:"remove",v:t}),a.push({p:"empty",v:""})):!n&&r&&(l.push({p:"empty",v:""}),a.push({p:"add",v:t})):(l.push({p:"",v:t}),a.push({p:"",v:t}))}}let s=_l(l);for(i=-1;i++,!(i>s-1);){let e=Ft(l,i,null),t=Ft(a,i,null),n=Ft(e,"p",""),r=Ft(t,"p","");if("remove"===n&&"empty"===r){let e=0,t=i,n=-1;for(let t=i;t<=s-1;t++){let r=Ft(l,t,null),i=Ft(a,t,null),o=Ft(r,"p",""),u=Ft(i,"p","");if("remove"!==o||"empty"!==u)break;e++,n=t}if(e<=0)continue;let r=0,o=!1,u=-1;for(let t=i;t<=n+e;t++){let e=Ft(l,t,null),n=Ft(a,t,null),i=Ft(e,"p",""),s=Ft(n,"p","");if("empty"===i&&"add"===s)o||(u=t),o=!0,r++;else if(o)break}if(r<=0)continue;let c=Math.min(e,r);if(c>=1){for(let e=0;e<=c-1;e++){let n=t+e,r=u+e;l[n]={p:"modify",vo:Ft(l,`${n}.v`,""),vn:Ft(a,`${r}.v`,"")},a[n]=null,l[r]=null,a[r]=null}i+=c+1}}}let c=[];for(i=-1;i++,!(i>s-1);){let e=Ft(l,i,null),t=Ft(a,i,null),n=Ft(e,"p",""),r=Ft(t,"p",""),o=Ft(e,"v",""),u=Ft(t,"v","");if(null===e&&null===t)continue;let s="",f=o,d="";"modify"===n?(s="modify",f=e.vo,d=e.vn):"remove"===n&&"empty"===r?(s="remove",f=o,d=""):"empty"===n&&"add"===r&&(s="add",f=u,d=""),c.push({p:s,vo:f,vn:d})}return{diff:o,dfs:c}}function Cd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Bd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cd(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let Fd="\n";function Rd(e,t){if(!Ut(e))return{};if(!Ut(t))return{};let n=pu(e,(e=>`${e}${Fd}`));n=If(n,"");let r=pu(t,(e=>`${e}${Fd}`));r=If(r,"");let i=$d(n,r,{eliminateEndLine:!0});return i.dfs=pu(i.dfs,((e,t)=>({p:e.p,k:t,vo:e.vo,vn:e.vn}))),i}function zd(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Ut(e))return{};if(!Ut(t))return{};if(0===_l(e)&&0===_l(t))return{};let r,i=Ft(n,"mode","");return"array"!==i&&"matrix"!==i&&(i="array"),"array"===i?r=Rd(e,t):"matrix"===i&&(r=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Ut(e))return{};if(!Ut(t))return{};let r=Ft(n,"dls","");qt(r)||(r="⟋");let i=Ft(n,"dlq","");qt(i)||(i="∶");let o=[];ou(e,((t,n)=>{if(!Ut(t))throw console.log("arrOld",e),console.log(n,t),new Error("arrOld is not a matrix");ou(t,((e,t)=>{o.push(`${t}${i}${e}${r}`)})),o.push(Fd)})),o=If(o,"");let u=[];ou(t,((e,n)=>{if(!Ut(e))throw console.log("arrNew",t),console.log(n,e),new Error("arrNew is not a matrix");ou(e,((e,t)=>{u.push(`${t}${i}${e}${r}`)})),u.push(Fd)})),u=If(u,"");let l=$d(o,u,Bd(Bd({},n),{},{eliminateEndLine:!0})),a=[];return ou(l.dfs,(e=>{let t=vd(e.vo,r);if(t=yd(t,1),"modify"===e.p){let n=vd(e.vn,r);n=yd(n,1);let i=Rd(t,n);e.dfs=i.dfs}let n=[];"modify"===e.p?ou(e.dfs,(e=>{n.push(e)})):ou(t,(t=>{n.push({p:e.p,vo:t,vn:""})})),n=pu(n,((e,t)=>{let n=vd(e.vo,i),r=Ft(n,1,""),o=vd(e.vn,i),u=Ft(o,1,"");return{p:e.p,k:t,vo:r,vn:u}})),a.push(n)})),{diff:l.diff,dfs:a}}(e,t,n)),r}var Ud=$u;var Wd=$u;var qd=Dt,Vd=Wl,Xd=$f,Zd=function(e,t){for(var n=e.length;n--&&Ud(t,e[n],0)>-1;);return n},Gd=function(e,t){for(var n=-1,r=e.length;++n<r&&Wd(t,e[n],0)>-1;);return n},Kd=ld,Jd=Mt;var Qd=function(e,t,n){if((e=Jd(e))&&(n||void 0===t))return Vd(e);if(!e||!(t=qd(t)))return e;var r=Kd(e),i=Kd(t),o=Gd(r,i),u=Zd(r,i)+1;return Xd(r,o,u).join("")},ep=y(Qd);function tp(e,t){if(!qt(e))return[];if(!qt(t))return[];return e.split(t)}function np(e,t){if(!qt(e))return[];if(!qt(t))return[];let n=tp(e,t);n=pu(n,ep);let r=[];return ou(n,(function(e){qt(e)&&r.push(e)})),r}function rp(e,t){return qt(e)&&_f(t)?0===(t=qc(t))?"":e.substring(0,t):""}function ip(e,t){if(!qt(e))return"";if(!_f(t))return"";if(0===(t=qc(t)))return"";let n=e.length-t;return n<0&&(n=0),e.substr(n,t)}function op(e,t){return qt(e)&&_f(t)?0===(t=qc(t))?e:ip(e,e.length-t):""}var up=er;var lp=Br,ap=function(e,t){var n=[];return up(e,(function(e,r,i){t(e,r,i)&&n.push(e)})),n},sp=Do,cp=b;var fp=y((function(e,t){return(cp(e)?lp:ap)(e,sp(t))}));function dp(e){if(!Xt(e))return!1;return sa(e)>0}function pp(e){return Yu(e)?(e=Ic(e),e=fp(e,dp),e=pu(e,sa)):[]}var hp=Li;var vp=y((function(e,t){return hp(e,t)}));var mp=I,gp=L;var yp=y((function(e){return"number"==typeof e||gp(e)&&"[object Number]"==mp(e)}));function bp(e,t){function n(e){return Ut(e)?e:[e]}if(Tu(e))return!1;if(0===(e=n(e)).length)return!1;if(Tu(e))return!1;if(0===(t=n(t)).length)return!1;for(let n=0;n<e.length;n++)for(let r=0;r<t.length;r++)if(vp(e[n],t[r]))return!0;return!1}function wp(e){let t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t}function xp(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Yu(e))return null;if(!wp(t))return null;let r=Ft(n,"returnIndex");Yl(r)||(r=!1);let i=-1,o=null;for(let n=0;n<_l(e);n++){let r=t(o,e[n]);vp(o,r)||(o=r,i=n)}let u=null;return u=r?i:o,u}function jp(e,t){if(!Ut(e))return[];if(!Ut(t))return[];if(_l(e)!==_l(t))return[];let n=[];return ou(e,(function(r,i){let o=null,u=Xt(e[i]),l=Xt(t[i]);(u||l)&&(o=1),u&&(o*=sa(e[i])),l&&(o*=sa(t[i])),n.push(o)})),n}function Op(){if(_l(arguments)<2)return[];let e=arguments[0];for(let t=1;t<_l(arguments);t++){e=jp(e,arguments[t])}return e}var Sp=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n},Ep=Sp,Dp=fo;var kp=y((function(e){return e&&e.length?Ep(e,Dp):0}));function Mp(){if(_l(arguments)<2)return null;let e=Op(...arguments);return 0===_l(e)?null:(e=kp(e),e)}var _p=C;var Ap=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=_p(e),u=void 0!==t,l=null===t,a=t==t,s=_p(t);if(!l&&!s&&!o&&e>t||o&&u&&a&&!l&&!s||r&&u&&a||!n&&a||!i)return 1;if(!r&&!o&&!s&&e<t||s&&n&&i&&!r&&!o||l&&n&&i||!u&&i||!a)return-1}return 0};var Pp=wt,Tp=$t,Yp=Do,Hp=au,Ip=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e},Lp=wn,Np=function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,u=i.length,l=n.length;++r<u;){var a=Ap(i[r],o[r]);if(a)return r>=l?a:a*("desc"==n[r]?-1:1)}return e.index-t.index},$p=fo,Cp=b;var Bp=fo,Fp=vf,Rp=Of;var zp=function(e,t){return Rp(Fp(e,t,Bp),e+"")},Up=bu,Wp=function(e,t,n){t=t.length?Pp(t,(function(e){return Cp(e)?function(t){return Tp(t,1===e.length?e[0]:e)}:e})):[$p];var r=-1;t=Pp(t,Lp(Yp));var i=Hp(e,(function(e,n,i){return{criteria:Pp(t,(function(t){return t(e)})),index:++r,value:e}}));return Ip(i,(function(e,t){return Np(e,t,n)}))},qp=Po,Vp=y(zp((function(e,t){if(null==e)return[];var n=t.length;return n>1&&qp(e,t[0],t[1])?t=[]:n>2&&qp(t[0],t[1],t[2])&&(t=[t[0]]),Wp(e,Up(t,1),[])})));function Xp(e){if(!qt(e)&&!Xt(e)&&!B(e))return"";let t="";try{t=String(e)}catch(e){}try{t=e.toString()}catch(e){}return t}var Zp=Lf,Gp=ua;var Kp=y((function(e,t,n){var r=null==e?0:e.length;return r?(t=n||void 0===t?1:Gp(t),Zp(e,t<0?0:t,r)):[]})),Jp=Array.prototype.reverse;var Qp=y((function(e){return null==e?e:Jp.call(e)}));function eh(e,t){return qt(e)&&_f(t)?0===(t=qc(t))?e:rp(e,e.length-t):""}function th(e){let t=Ft(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},"excludeString");if(Yl(t)||(t=!1),!qt(e))return"";let n=e=>e>="0"&&e<="9"||"."===e||"-"===e||"+"===e,r=ep(e);if(t){let e=r.split("");for(let t=0;t<e.length;t++)if(n(e[t])){r=op(r,t),e=Kp(e,t);break}e=Qp(e);for(let t=0;t<e.length;t++)if(n(e[t])){r=eh(r,t);break}}return r}function nh(e){let t=0,n=0,r=0,i=_l(e);ou(e,(e=>{Xt(e)?t+=1:Wt(e)?n+=1:Rt(e)&&(r+=1)}));let o="";return t===i?o="num":n===i?o="str":r===i?o="obj":t+n===i?o="str":console.log("eles in array are non-homogeneous",e),o}function rh(e,t){let n=[];if("num"!==t&&"str"!==t&&"files"!==t)throw new Error(`invalid type[${t}]`);if("num"===t)n=pu(e,((e,t)=>({key:t,payload:e,value:sa(e)})));else if("files"===t)n=pu(e,((e,t)=>({key:t,payload:e,value:Xp(e)})));else if("str"===t){let t=pu(e,(e=>th(e,{excludeString:!0}))),r=0;ou(t,(e=>{Xt(e)&&r++}));let i=r===_l(t);n=pu(e,((e,n)=>{let r=e;return i?(r=t[n],r=sa(r)):r=Xp(r),{key:n,payload:e,value:r}}))}return n}function ih(e,t){let n=Vp(e,"value");return pu(n,t?"key":"payload")}function oh(e,t){let n=function(e,t){let n=Ic(e);return n.sort(((e,n)=>e[t].localeCompare(n[t],"standard",{numeric:!0}))),n}(e,"value");return pu(n,t?"key":"payload")}function uh(e){if(!qt(e))return[];let t=np(e,";");return t=Qu(t),t}function lh(e){if(!Yu(e))return"";return e=Qu(e),If(e,";")}function ah(e){return e=fp(e,qt),lh(e=Qu(e))}function sh(e){let t=[];return ou(e,(n=>{let r=Ft(n,"table",""),i=Ft(n,"id","");""===ep(r)?console.log("atItemsMergeS2: invalid table in its",n,e):""===ep(i)?console.log("atItemsMergeS2: invalid id in its",n,e):t.push(`${r}@${i}`)})),e=lh(t)}function ch(e){if(!Yu(e))return"";let t=Ft(e,0),n=ep(Ft(t,"table","")),r=ep(Ft(t,"id","")),i="1p";return qt(n)&&qt(r)&&(i="2p"),"1p"===i?ah(e):"2p"===i?sh(e):""}function fh(e){if(!qt(e))return[];let t=uh(e);return fp(t,qt)}function dh(e){if(!qt(e))return[];let t=uh(e),n=[];return ou(t,(t=>{let r=np(t,"@"),i=Ft(r,0,""),o=Ft(r,1,"");""===i?console.log("atParseS2: invalid table in composItems",t,e):""===o?console.log("atParseS2: invalid id in composItems",t,e):n.push({item:t,table:i,id:o})})),n}function ph(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!qt(e))return[];let n=Ft(t,"mode");return"1p"!==n&&"2p"!==n&&(n="auto"),"1p"===n?fh(e):"2p"===n||e.indexOf("@")>=0?dh(e):fh(e)}function hh(e,t){let n=[...fh(e),...fh(t)];return 0===_l(n)?"":ah(n)}function vh(e,t){let n=[...dh(e),...dh(t)];return 0===_l(n)?"":sh(n)}function mh(e,t){let n=Ft(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},"mode");if("1p"!==n&&"2p"!==n&&(n="auto"),"1p"===n)hh(e,t);else if("2p"===n)return vh(e,t);let r=e.indexOf("@")>=0,i=t.indexOf("@")>=0;return r||i?vh(e,t):hh(e,t)}function gh(e,t){let n=fh(e),r=fh(t),i=[];return ou(n,(e=>{bp(e,r)||i.push(e)})),0===_l(i)?"":ah(i)}function yh(e,t){let n=dh(e),r=dh(t),i=[];return ou(n,(e=>{bp(e,r)||i.push(e)})),0===_l(i)?"":sh(i)}function bh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!qt(e))return"";if(!qt(t))return e;let r=Ft(n,"mode");return"1p"!==r&&"2p"!==r&&(r="auto"),"1p"===r?gh(e,t):"2p"===r||t.indexOf("@")>=0?yh(e,t):gh(e,t)}var wh={parse:ph,join:ch,remove:bh,add:mh};function xh(e){if(!qt(e))return"";return ya.parse(e).toString(Ya)}function jh(e){if(!qt(e))return{};let t={};try{t=JSON.parse(e)}catch(e){t={}}return t}function Oh(e){if(!Wt(e))return new Uint8Array;let t=ya.parse(e),n=t.words,r=t.sigBytes,i=new Uint8Array(r);for(let e=0;e<r;e++){let t=n[e>>>2]>>>24-e%4*8&255;i[e]=t}return i}function Sh(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)}function Eh(e){return Sh(e)?new Uint16Array(e):new Uint16Array}function Dh(e){if(!Wt(e))return new Uint16Array;return Eh(Oh(e))}function kh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"anyone";if(!qt(e))return!1;if("anyone"!==n&&"all"!==n)return!1;if(Wt(t)){if(!qt(t))return!1;t=[t]}if(!Yu(t))return!1;let r=!1;if(ou(t,(function(e){qt(e)||(r=!0)})),r)return!1;let i=0;return ou(t,(function(t){-1!==function(e,t){return e.indexOf(t)}(e,t)&&i++})),"anyone"===n?i>0:"all"===n&&i===t.length}function Mh(){let e,t,n=new Promise((function(){e=arguments[0],t=arguments[1]}));return n.resolve=e,n.reject=t,n}function _h(e){if(!Nl())return Promise.reject("no window");try{return function(e){return e.arrayBuffer()}(e)}catch(t){return function(e){let t=Mh(),n=new FileReader;return n.onload=function(){let e=n.result;t.resolve(e)},n.onerror=function(e){t.reject(e)},n.readAsArrayBuffer(e),t}(e)}}function Ah(e){let t=Mh(),n=new FileReader;return n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsDataURL(e),t}function Ph(e){let t=Mh();return _h(e).then((e=>{let n=new Uint8Array(e);t.resolve(n)})).catch((e=>{t.reject(e)})),t}function Th(e){let t=pu(e,(function(e){return Ah(e)}));return Promise.all(t)}function Yh(e){let t=pu(e,(function(e){return Ph(e)}));return Promise.all(t)}function Hh(e){let t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML}function Ih(e,t){let n=new Blob([e],{type:t});try{let e=window.URL.createObjectURL(n);window.open(e)}catch(e){console.log("window.URL.createObjectURL is not support for IE11",e)}}function Lh(e){return"[object Blob]"===Object.prototype.toString.call(e)}function Nh(e){if(!qt(e))return new Uint8Array;let t=e.length,n=new Uint8Array(t);for(let r=0;r<t;r++)n[r]=e.charCodeAt(r);return n}function $h(e,t,n,r,i){if(!Sh(e))return null;if(!ca(t))return null;if(!Yl(n))return null;if(!ca(r))return null;if(!ca(i))return null;let o,u,l=8*i-r-1,a=(1<<l)-1,s=a>>1,c=-7,f=n?0:i-1,d=n?1:-1,p=e[t+f];for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=l;c>0;o=256*o+e[t+f],f+=d,c-=8);for(u=o&(1<<-c)-1,o>>=-c,c+=r;c>0;u=256*u+e[t+f],f+=d,c-=8);if(0===o)o=1-s;else{if(o===a)return u?NaN:1/0*(p?-1:1);u+=Math.pow(2,r),o-=s}return(p?-1:1)*u*Math.pow(2,o-r)}function Ch(e){return $h(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,!(arguments.length>2&&void 0!==arguments[2])||arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:52,arguments.length>4&&void 0!==arguments[4]?arguments[4]:8)}function Bh(e,t,n,r,i,o){if(!Xt(e))return null;if(!Sh(t))return null;if(!ca(n))return null;if(!Yl(r))return null;if(!ca(i))return null;if(!ca(o))return null;let u,l,a;e=sa(e);let s=8*o-i-1,c=(1<<s)-1,f=c>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?o-1:0,h=r?-1:1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(l=isNaN(e)?1:0,u=c):(u=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-u))<1&&(u--,a*=2),(e+=u+f>=1?d/a:d*Math.pow(2,1-f))*a>=2&&(u++,a/=2),u+f>=c?(l=0,u=c):u+f>=1?(l=(e*a-1)*Math.pow(2,i),u+=f):(l=e*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;t[n+p]=255&l,p+=h,l/=256,i-=8);for(u=u<<i|l,s+=i;s>0;t[n+p]=255&u,p+=h,u/=256,s-=8);return t[n+p-h]|=128*v,null}function Fh(e,t){return Bh(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,!(arguments.length>3&&void 0!==arguments[3])||arguments[3],arguments.length>4&&void 0!==arguments[4]?arguments[4]:52,arguments.length>5&&void 0!==arguments[5]?arguments[5]:8)}function Rh(e){let t,n=Object.prototype.toString.call(e);if(t="[object Promise]"===n,t)return!0;if("[object Function]"!==n)return!1;try{t="function"!=typeof e.subscribe&&"function"==typeof e.then}catch(e){}return t}async function zh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=Mh();if(!wp(e))return r.reject("waitfunction需輸入函數f"),r;let i=async()=>{let t=e();return Rh(t)&&(t=await t),t};if(n=await i(),!0===n)return r.resolve(),r;let o=Ft(t,"attemptNum",null);Vc(o)||(o=200);let u=Ft(t,"timeInterval",null);Vc(u)||(u=1e3);let l=0,a=setInterval((async()=>{l+=1,n=await i(),!0===n&&(clearInterval(a),r.resolve()),l>o&&(clearInterval(a),r.reject(`exceeded attemptNum[${o}]`))}),u);return r}var Uh=Mt;var Wh=y((function(e){return Uh(e).toLowerCase()}));function qh(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Xt(e)&&_f(t)?(e=sa(e),Wc(e,t).toFixed(t)):""}var Vh=Mt;var Xh=y((function(e){return Vh(e).toUpperCase()}));function Zh(e,t,n){if(!qt(e))return"";if(!qt(t))return"";if(!Wt(n))return"";let r=new RegExp(t,"g");return String(e).replace(r,n)}function Gh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return qt(e)&&_f(t)?(n=Vc(n)?qc(n):1,e.substring(t,t+n)):""}let Kh={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};function Jh(e){return ev(e,1)}function Qh(e){return ev(e,360)}function ev(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;if(e.indexOf("%")>=0){if(!Xt(e=Zh(e,"%","")))throw new Error("invalid color: value is not a number");e=sa(e)/100}else{if(!Xt(e))throw new Error("invalid color: value is not a number");e=sa(e)/t}if(e>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function tv(e){if(!Xt(e))throw new Error("invalid color: value is not a number");if((e=sa(e))>1)throw new Error("invalid color: value > 1");if(e<0)throw new Error("invalid color: value < 0");return e}function nv(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba";if(!Ut(e))throw new Error("invalid colors array");let n=Ft(e,0,0),r=Ft(e,1,0),i=Ft(e,2,0),o=Ft(e,3,1);if(t=t.split(""),4!==_l(t))throw new Error("tar.length !== 4");return{[Ft(t,0)]:n,[Ft(t,1)]:r,[Ft(t,2)]:i,[Ft(t,3)]:o}}function rv(e){e=op(e,1);let t=_l(e);if(2===t)e=`${e}${e}${e}ff`;else if(3===t){let t=Gh(e,0,1),n=Gh(e,1,1),r=Gh(e,2,1);e=`${t}${t}${n}${n}${r}${r}ff`}else if(6===t)e=`${e}ff`;else if(8!==t)throw new Error("invalid hex color");function n(e){if(2!==_l(e))throw new Error("hex.length of color is not equal to 2");if(!Xt(e=parseInt(e,16)))throw new Error("invalid hex of color");return(e=sa(e))/255}return{r:n(Gh(e,0,2)),g:n(Gh(e,2,2)),b:n(Gh(e,4,2)),a:n(Gh(e,6,2))}}function iv(e){return e=nv(e=pu(e,((e,t)=>t<=2?ev(e,255):3===t?tv(e):null)),"rgba")}function ov(e){return e=pv(e=nv(e=pu(e,((e,t)=>0===t?Qh(e):1===t||2===t?Jh(e):3===t?tv(e):null)),"hsla"))}function uv(e){return e=hv(e=nv(e=pu(e,((e,t)=>0===t?Qh(e):1===t||2===t?Jh(e):3===t?tv(e):null)),"hsva"))}function lv(e){if("transparent"===e)return{r:0,g:0,b:0,a:0};if(function(e){return Zt(Kh,e)}(e))return rv(e=`#${Kh[e]}`);if(function(e){return"#"===rp(e,1)&&(!!/[0-9A-Fa-f]{2}/g.test(e)||(!!/[0-9A-Fa-f]{3}/g.test(e)||(!!/[0-9A-Fa-f]{6}/g.test(e)||!!/[0-9A-Fa-f]{8}/g.test(e))))}(e))return rv(e);if(function(e){return"rgb"===rp(e,3)||"rgba"===rp(e,4)}(e))return function(e){return e=Zh(e,"rgba",""),e=Zh(e,"rgb",""),iv(np(e=Zh(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsl"===rp(e,3)||"hsla"===rp(e,4)}(e))return function(e){return e=Zh(e,"hsla",""),e=Zh(e,"hsl",""),ov(np(e=Zh(e=e.replace(/[()]/g,""),","," ")," "))}(e);if(function(e){return"hsv"===rp(e,3)||"hsva"===rp(e,4)}(e))return function(e){return e=Zh(e,"hsva",""),e=Zh(e,"hsv",""),uv(np(e=Zh(e=e.replace(/[()]/g,""),","," ")," "))}(e);throw new Error("format of color string is not hex-color, name-color, rgba, hsla, hsva")}function av(e,t){return!!Zt(e,t=Wh(t))||!!Zt(e,t=Xh(t))}function sv(e,t,n){let r;return r=Ft(e,t,null),null!==r?r:(t=Xh(t),r=Ft(e,t,null),null!==r?r:n)}function cv(e){if(function(e){let t=av(e,"r"),n=av(e,"g"),r=av(e,"b");return t&&n&&r}(e))return function(e){let t=[sv(e,"r",null),sv(e,"g",null),sv(e,"b",null),sv(e,"a",1)];return t=pu(t,Xp),iv(t)}(e);if(function(e){let t=av(e,"h"),n=av(e,"s"),r=av(e,"l");return t&&n&&r}(e))return function(e){let t=[sv(e,"h",null),sv(e,"s",null),sv(e,"l",null),sv(e,"a",1)];return t=pu(t,Xp),ov(t)}(e);if(function(e){let t=av(e,"h"),n=av(e,"s"),r=av(e,"v");return t&&n&&r}(e))return function(e){let t=[sv(e,"h",null),sv(e,"s",null),sv(e,"v",null),sv(e,"a",1)];return t=pu(t,Xp),uv(t)}(e);throw new Error("color object is not one of rgba, hsla, hsva")}function fv(e){let t,n,r=e.r,i=e.g,o=e.b,u=Math.max(r,i,o),l=Math.min(r,i,o),a=(u+l)/2;if(u===l)t=n=0;else{let e=u-l;switch(n=a>.5?e/(2-u-l):e/(u+l),u){case r:t=(i-o)/e+(i<o?6:0);break;case i:t=(o-r)/e+2;break;case o:t=(r-i)/e+4}t/=6}return{h:t,s:n,l:a,a:e.a}}function dv(e){let t,n,r=e.r,i=e.g,o=e.b,u=Math.max(r,i,o),l=Math.min(r,i,o),a=u,s=u-l;if(n=0===u?0:s/u,u===l)t=0;else{switch(u){case r:t=(i-o)/s+(i<o?6:0);break;case i:t=(o-r)/s+2;break;case o:t=(r-i)/s+4}t/=6}return{h:t,s:n,v:a,a:e.a}}function pv(e){let t,n,r,i=e.h,o=e.s,u=e.l;function l(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(0===o)t=n=r=u;else{let e=u<.5?u*(1+o):u+o-u*o,a=2*u-e;t=l(a,e,i+1/3),n=l(a,e,i),r=l(a,e,i-1/3)}return{r:t,g:n,b:r,a:e.a}}function hv(e){let t,n,r,i=e.h,o=e.s,u=e.v,l=Math.floor(6*i),a=6*i-l,s=u*(1-o),c=u*(1-a*o),f=u*(1-(1-a)*o);switch(l%6){case 0:t=u,n=f,r=s;break;case 1:t=c,n=u,r=s;break;case 2:t=s,n=u,r=f;break;case 3:t=s,n=c,r=u;break;case 4:t=f,n=s,r=u;break;case 5:t=u,n=s,r=c}return{r:t,g:n,b:r,a:e.a}}function vv(e){let t=Math.round(255*e).toString(16);if(1===_l(t))return`0${t}`;if(2===_l(t))return t;throw new Error("invalid value")}function mv(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e.r,r=e.g,i=e.b,o=e.a,u=`${vv(n)}${vv(r)}${vv(i)}`;return t&&(u=`${u}${vv(o)}`),u}function gv(e){return Math.min(1,Math.max(0,e))}function yv(e,t){if(!qt(t))throw new Error("fmtOutput is not a string");if(!Jv[t])throw console.log(`fmtOutput must be [${Gn(Jv)}]`),new Error("invalid fmtOutput");return e=Jv[t](e)}function bv(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=fv(e);return r.h+=t,r.h=r.h%1,yv(pv(r),n)}function wv(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"toRgbString";if(t<0||t>1)throw new Error("w1 < 0 or > 1");if(r<0||r>1)throw new Error("w1 < 0 or > 1");return yv({r:e.r*t+n.r*r,g:e.g*t+n.g*r,b:e.b*t+n.b*r,a:e.a*t+n.a*r},i)}function xv(e){return`${Wc(100*e,1)}%`}function jv(e){return Wc(e,0)}function Ov(e){return Wc(e,3)}function Sv(e){return{r:jv(255*e.r),g:jv(255*e.g),b:jv(255*e.b)}}function Ev(e){return`rgb(${jv(255*e.r)}, ${jv(255*e.g)}, ${jv(255*e.b)})`}function Dv(e){return{r:jv(255*e.r),g:jv(255*e.g),b:jv(255*e.b),a:Ov(e.a)}}function kv(e){return`rgba(${jv(255*e.r)}, ${jv(255*e.g)}, ${jv(255*e.b)}, ${Ov(e.a)})`}function Mv(e){let t=fv(e);return{h:jv(360*t.h),s:Ov(t.s),l:Ov(t.l)}}function _v(e){let t=fv(e);return`hsl(${jv(360*t.h)}, ${Ov(t.s)}, ${Ov(t.l)})`}function Av(e){let t=fv(e);return{h:jv(360*t.h),s:Ov(t.s),l:Ov(t.l),a:Ov(t.a)}}function Pv(e){let t=fv(e);return`hsla(${jv(360*t.h)}, ${Ov(t.s)}, ${Ov(t.l)}, ${Ov(t.a)})`}function Tv(e){let t=dv(e);return{h:jv(360*t.h),s:Ov(t.s),v:Ov(t.v)}}function Yv(e){let t=dv(e);return`hsv(${jv(360*t.h)}, ${Ov(t.s)}, ${Ov(t.v)})`}function Hv(e){let t=dv(e);return{h:jv(360*t.h),s:Ov(t.s),v:Ov(t.v),a:Ov(t.a)}}function Iv(e){let t=dv(e);return`hsva(${jv(360*t.h)}, ${Ov(t.s)}, ${Ov(t.v)}, ${Ov(t.a)})`}function Lv(e){return{r:xv(e.r),g:xv(e.g),b:xv(e.b)}}function Nv(e){return`rgb(${xv(e.r)}, ${xv(e.g)}, ${xv(e.b)})`}function $v(e){return{r:xv(e.r),g:xv(e.g),b:xv(e.b),a:Ov(e.a)}}function Cv(e){return`rgba(${xv(e.r)}, ${xv(e.g)}, ${xv(e.b)}, ${Ov(e.a)})`}function Bv(e){let t=fv(e);return{h:jv(360*t.h),s:xv(t.s),l:xv(t.l)}}function Fv(e){let t=fv(e);return`hsl(${jv(360*t.h)}, ${xv(t.s)}, ${xv(t.l)})`}function Rv(e){let t=fv(e);return{h:jv(360*t.h),s:xv(t.s),l:xv(t.l),a:Ov(t.a)}}function zv(e){let t=fv(e);return`hsla(${jv(360*t.h)}, ${xv(t.s)}, ${xv(t.l)}, ${Ov(t.a)})`}function Uv(e){let t=dv(e);return{h:jv(360*t.h),s:xv(t.s),v:xv(t.v)}}function Wv(e){let t=dv(e);return`hsv(${jv(360*t.h)}, ${xv(t.s)}, ${xv(t.v)})`}function qv(e){let t=dv(e);return{h:jv(360*t.h),s:xv(t.s),v:xv(t.v),a:Ov(t.a)}}function Vv(e){let t=dv(e);return`hsva(${jv(360*t.h)}, ${xv(t.s)}, ${xv(t.v)}, ${Ov(t.a)})`}function Xv(e){let t=function(e){return mv(e,!1)}(e);return`#${t}`}function Zv(e){return`#${mv(e)}`}function Gv(e){let t=null,n=null,r=null;if(qt(e))t=Wh(ep(e));else{if(!zt(e))throw console.log("color=",e),new Error("color is not a string or an object");n=e}if(null!==t)try{r=lv(t)}catch(e){throw console.log(e),new Error(`can not parse color: ${t}`)}else if(null!==n)try{r=cv(n)}catch(e){throw console.log(e),new Error(`can not parse color: ${JSON.stringify(n)}`)}return r}function Kv(e){if(!zt(e))return console.log("gradient is not an effective object"),e=>`rgb(${255*(e=Math.min(Math.max(e,0),1))},${255*e},${255*e})`;let t=[];return ou(e,((e,n)=>{t.push([sa(n),Dv(Gv(e)),e])})),t=Vp(t,0),function(e){let n=null;for(let r=1;r<t.length;r++){let i=t[r-1][0],o=t[r-1][1],u=t[r][0],l=t[r][1];if(i<=e&&u>=e){let t=(u-e)/(u-i),r=(e-i)/(u-i);n=wv(Gv(o),t,Gv(l),r,"toRgbaString");break}}return n}}let Jv={toRgb:Sv,toRgbString:Ev,toRgba:Dv,toRgbaString:kv,toHsl:Mv,toHslString:_v,toHsla:Av,toHslaString:Pv,toHsv:Tv,toHsvString:Yv,toHsva:Hv,toHsvaString:Iv,toRgbP:Lv,toRgbPString:Nv,toRgbaP:$v,toRgbaPString:Cv,toHslP:Bv,toHslPString:Fv,toHslaP:Rv,toHslaPString:zv,toHsvP:Uv,toHsvPString:Wv,toHsvaP:qv,toHsvaPString:Vv,toHexString:Xv,toHex8String:Zv};var Qv=function(){let e={toRgb:e=>Sv(Gv(e)),toRgbString:e=>Ev(Gv(e)),toRgba:e=>Dv(Gv(e)),toRgbaString:e=>kv(Gv(e)),toHsl:e=>Mv(Gv(e)),toHslString:e=>_v(Gv(e)),toHsla:e=>Av(Gv(e)),toHslaString:e=>Pv(Gv(e)),toHsv:e=>Tv(Gv(e)),toHsvString:e=>Yv(Gv(e)),toHsva:e=>Hv(Gv(e)),toHsvaString:e=>Iv(Gv(e)),toRgbP:e=>Lv(Gv(e)),toRgbPString:e=>Nv(Gv(e)),toRgbaP:e=>$v(Gv(e)),toRgbaPString:e=>Cv(Gv(e)),toHslP:e=>Bv(Gv(e)),toHslPString:e=>Fv(Gv(e)),toHslaP:e=>Rv(Gv(e)),toHslaPString:e=>zv(Gv(e)),toHsvP:e=>Uv(Gv(e)),toHsvPString:e=>Wv(Gv(e)),toHsvaP:e=>qv(Gv(e)),toHsvaPString:e=>Vv(Gv(e)),toHexString:e=>Xv(Gv(e)),toHex8String:e=>Zv(Gv(e)),modSaturate:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=fv(e);return r.s+=t,r.s=gv(r.s),yv(pv(r),n)}(Gv(e),t,n),modGrey:(e,t)=>function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toRgbString",n=fv(e);return n.s=0,yv(pv(n),t)}(Gv(e),t),modLighten:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");let r=fv(e);return r.l+=t,r.l=gv(r.l),yv(pv(r),n)}(Gv(e),t,n),modBrighten:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(t<0||t>1)throw new Error("amount < 0 or > 1");return e.r+=t,e.r=gv(e.r),e.g+=t,e.g=gv(e.g),e.b+=t,e.b=gv(e.b),yv(e,n)}(Gv(e),t,n),modHue:(e,t,n)=>bv(Gv(e),t,n),modComplement:(e,t)=>function(e){return bv(e,.5,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"toRgbString")}(Gv(e),t),spreadHue:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(!ca(t))throw new Error("num is not an integer");if((t=qc(t))<=1)return[e];let r=fv(e),i=1/t,o=[];for(let e=0;e<t;e++)o.push(yv(pv(r),n)),r.h+=i,r.h=r.h%1;return o}(Gv(e),t,n),spreadMonochromatic:(e,t,n)=>function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toRgbString";if(!ca(t))throw new Error("num is not an integer");if((t=qc(t))<=1)return[e];let r=dv(e);r.s=1,r.l=1;let i=1/t,o=[];for(let e=0;e<t;e++)o.push(yv(hv(r),n)),r.h-=i,r.l-=i;return o}(Gv(e),t,n),mix:(e,t,n,r,i)=>wv(Gv(e),t,Gv(n),r,i),getBrightness:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");return(299*e.r+587*e.g+114*e.b)/1e3}(Gv(e)),getLuminance:e=>function(e){if(1!==e.a)throw new Error("alpha of color can not be equal to 1");let t,n,r,i=e.r,o=e.g,u=e.b;return t=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4),n=o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4),r=u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4),.2126*t+.7152*n+.0722*r}(Gv(e)),interp:Kv};return e}(),em=Ua,tm=Yt,nm=pn,rm=q,im=It;var om=function(e,t,n,r){if(!rm(e))return e;for(var i=-1,o=(t=tm(t,e)).length,u=o-1,l=e;null!=l&&++i<o;){var a=im(t[i]),s=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return e;if(i!=u){var c=l[a];void 0===(s=r?r(c,a,l):void 0)&&(s=rm(c)?c:nm(t[i+1])?[]:{})}em(l,a,s),l=l[a]}return e},um=om;var lm=function(e,t,n){return null==e?e:um(e,t,n)},am=y(lm);var sm=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},cm=$t,fm=Lf;var dm=function(e,t){return t.length<2?e:cm(e,fm(t,0,-1))},pm=Yt,hm=sm,vm=dm,mm=It;var gm=function(e,t){return t=pm(t,e),null==(e=vm(e,t))||delete e[mm(hm(t))]},ym=Vo;var bm=wt,wm=Yc,xm=gm,jm=Yt,Om=Va,Sm=function(e){return ym(e)?void 0:e},Em=Ss,Dm=kf((function(e,t){var n={};if(null==e)return n;var r=!1;t=bm(t,(function(t){return t=jm(t,e),r||(r=t.length>1),t})),Om(e,Em(e),n),r&&(n=wm(n,7,Sm));for(var i=t.length;i--;)xm(n,t[i]);return n})),km=y(Dm);function Mm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mm(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Am(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n="$level",r="$parents";if(!Yu(e))return[];let i=Ft(t,"bindKey",null);qt(i)||(i="id");let o=Ft(t,"bindParent",null);qt(o)||(o="parentId");let u=Ft(t,"bindChildren",null);qt(u)||(u="children");let l=Ft(t,"saveExtProps",null);Yl(l)||(l=!1),e=function(e){let t=[];function u(u){let l=[];ou(e,((e,a)=>{let s=Ft(e,o),c=Ft(u,i);if(s&&c&&s===c){let o=Ft(u,r,[]);o=Ic(o),o.push(u[i]),t.push(_m({[n]:u[n]+1,[r]:o},e))}else l.push(e)})),e=l}if(e=Ic(e),function(){let i=[];ou(e,((e,u)=>{Tu(e[o])?t.push(_m({[n]:0,[r]:[]},e)):i.push(e)})),e=i}(),0===t.length)return t;let l=-1;for(;l+=1,!(l>t.length-1);){if(u(t[l]),0===e.length)break}return t}(e);let a=function(e){let t=[];function a(e){return l?e:km(e,[n,r])}let s={};return ou(e,((r,l)=>{if(0===r[n]){let e=a(r);t.push(e),s[r[i]]=[l]}else{let n=function(t){for(let n=0;n<e.length;n++){let r=e[n];if(t[o]===r[i])return r}return null}(r);if(null!==n){let e=s[n[i]];e=[...e,u];let o=Ft(t,e,[]),l=a(r);o.push(l),s[r[i]]=[...e,o.length-1],am(t,e,o)}else console.log(`can not find parent for ${Ft(r,o)}`)}})),t}(e);return a}function Pm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};K(t)||(t=e=>e);let r=Ft(n,"force",!1);return Yl(r)||(r=!1),function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=[];if(!Ut(e)&&!Rt(e))return t(e,null,[]);function i(e){if(Ut(e))return af(_l(e));if(Rt(e)){let t=Object.getOwnPropertyNames(e),r=null;return n&&(r=Object.getOwnPropertySymbols(e)),Ut(t)||(t=[]),Ut(r)||(r=[]),[...t,...r]}return e}return function e(n,o){if(Ut(n))return i(n).map((i=>{let o=n[i],u=Ic(r);return r.push(i),o=t(o,i,u),o=e(o),r.pop(),o}));if(Rt(n)){let o=i(n),u={};return o.map((i=>{let o=n[i],l=Ic(r);r.push(i),o=t(o,i,l),o=e(o),r.pop(),u[i]=o})),u}return n}(e)}(e,t,r)}function Tm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!zt(e)&&!Yu(e))return[];let n=Ft(t,"bindKey",null);qt(n)||(n="id");let r=Ft(t,"bindParent",null);qt(r)||(r="parentId");let i=Ft(t,"bindBelong",null);qt(i)||(i="key");let o=Ft(t,"bindText",null);qt(o)||(o="text");let u=Ft(t,"bindType",null);qt(u)||(u="type");let l=Ft(t,"bindNumOfChilren",null);function a(e,t){return e=Ic(e),e=pu(e,(e=>B(e)?Xp(e):e)),B(t)&&(t=Xp(t)),(qt(t)||Xt(t))&&e.push(t),If(e,"-")}qt(l)||(l="numOfChilren");let s=[];return Pm(e,((e,t,c)=>{let f=a(c,t),d=a(c,null),p="node";Rt(e)?p="object":Ut(e)&&(p="array");let h={[n]:f,[r]:d,[u]:p};if((qt(t)||yp(t))&&(h[i]=t),Rt(e)||Ut(e)||(h[o]=e),Rt(e)||Ut(e)){let t=_l(e);h[l]=t}return s.push(h),e}),{force:!0}),s}function Ym(e){if(!Ko(e))return"invalid element";let t=!1;try{t=document.activeElement===e}catch(e){}return t}function Hm(e){return Xt(e)?(e=sa(e),Math.cos(e*Math.PI/180)):null}function Im(e){return Xt(e)?(e=sa(e),Math.tan(e*Math.PI/180)):null}function Lm(){let e=new function e(){if(!(this instanceof e))return new e;this.SheetNames=[],this.Sheets={}};return e}function Nm(e){return Xt(e)?(e=sa(e),Math.sin(e*Math.PI/180)):null}function $m(e){if(!qt(e))return!1;let t="YYYY-MM-DD";return e===n(e,t).format(t)}function Cm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;Xt(e)||(e=10);let t=Mh();return setTimeout((function(){t.resolve()}),e),t}let Bm="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),Fm=Bm.length;function Rm(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:32,t=[];e=Vc(e)?qc(e):32;for(let n=0;n<e;n++)t[n]=Bm[0|Math.random()*Fm];return t.join("")}function zm(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return;let n=Ft(t,"duration",500);n=sa(n),n<0&&(n=1e3);let r=Ft(t,"delay",0);r=sa(r),r<0&&(r=0);let i=Ft(t,"opacityIni",0);i=sa(i),i=Math.min(Math.max(i,0),1),Xt(e.style.opacity)&&(i=sa(e.style.opacity));let o=10/n,u=`tag-${Rm()}`;e.setAttribute("dom-fade-tag",u),setTimeout((()=>{let t=setInterval((()=>{e.getAttribute("dom-fade-tag")!==u&&clearInterval(t),e.style.opacity=i,i>=1&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i+=o,i>1&&(i=1)}),10)}),r)}function Um(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return;let n=Ft(t,"duration",500);n=sa(n),n<0&&(n=1e3);let r=Ft(t,"delay",0);r=sa(r),r<0&&(r=0);let i=Ft(t,"opacityIni",1);i=sa(i),i=Math.min(Math.max(i,0),1),Xt(e.style.opacity)&&(i=sa(e.style.opacity));let o=10/n,u=`tag-${Rm()}`;e.setAttribute("dom-fade-tag",u),setTimeout((()=>{let t=setInterval((()=>{e.getAttribute("dom-fade-tag")!==u&&clearInterval(t),e.style.opacity=i,i<=0&&(clearInterval(t),e.removeAttribute("dom-fade-tag")),i-=o,i<0&&(i=0)}),10)}),r)}let Wm='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 512.001 512.001" style="width:12px; height:12px; enable-background:new 0 0 512.001 512.001;" xml:space="preserve"><g><g><path d="M284.286,256.002L506.143,34.144c7.811-7.811,7.811-20.475,0-28.285c-7.811-7.81-20.475-7.811-28.285,0L256,227.717L34.143,5.859c-7.811-7.811-20.475-7.811-28.285,0c-7.81,7.811-7.811,20.475,0,28.285l221.857,221.857L5.858,477.859c-7.811,7.811-7.811,20.475,0,28.285c3.905,3.905,9.024,5.857,14.143,5.857c5.119,0,10.237-1.952,14.143-5.857L256,284.287l221.857,221.857c3.905,3.905,9.024,5.857,14.143,5.857s10.237-1.952,14.143-5.857c7.811-7.811,7.811-20.475,0-28.285L284.286,256.002z"/></g></g></svg>',qm={success:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 426.667 426.667" style="width:24px; height:24px; enable-background:new 0 0 426.667 426.667" xml:space="preserve"><path style="fill:#6ac259" d="M213.333,0C95.518,0,0,95.514,0,213.333s95.518,213.333,213.333,213.333 c117.828,0,213.333-95.514,213.333-213.333S331.157,0,213.333,0z M174.199,322.918l-93.935-93.931l31.309-31.309l62.626,62.622 l140.894-140.898l31.309,31.309L174.199,322.918z"/></svg>',error:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.158 496.158" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158" xml:space="preserve"><path style="fill:#e04f5f" d="M496.158,248.085c0-137.021-111.07-248.082-248.076-248.082C111.07,0.003,0,111.063,0,248.085 c0,137.002,111.07,248.07,248.082,248.07C385.088,496.155,496.158,385.087,496.158,248.085z"/><path style="fill:#fff" d="M277.042,248.082l72.528-84.196c7.91-9.182,6.876-23.041-2.31-30.951 c-9.172-7.904-23.032-6.876-30.947,2.306l-68.236,79.212l-68.229-79.212c-7.91-9.188-21.771-10.216-30.954-2.306 c-9.186,7.91-10.214,21.77-2.304,30.951l72.522,84.196l-72.522,84.192c-7.91,9.182-6.882,23.041,2.304,30.951 c4.143,3.569,9.241,5.318,14.316,5.318c6.161,0,12.294-2.586,16.638-7.624l68.229-79.212l68.236,79.212 c4.338,5.041,10.47,7.624,16.637,7.624c5.069,0,10.168-1.749,14.311-5.318c9.186-7.91,10.22-21.77,2.31-30.951L277.042,248.082z"/></svg>',warning:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 497.472 497.472" style="width:24px; height:24px; enable-background:new 0 0 497.472 497.472" xml:space="preserve"><g transform="matrix(1.25 0 0 -1.25 0 45)"><path style="fill:#ffcc4d" d="M24.374-357.857c-20.958,0-30.197,15.223-20.548,33.826L181.421,17.928 c9.648,18.603,25.463,18.603,35.123,0L394.14-324.031c9.671-18.603,0.421-33.826-20.548-33.826H24.374z"/><path style="fill:#231f20" d="M173.605-80.922c0,14.814,10.934,23.984,25.395,23.984c14.12,0,25.407-9.512,25.407-23.984 V-216.75c0-14.461-11.287-23.984-25.407-23.984c-14.461,0-25.395,9.182-25.395,23.984V-80.922z M171.489-289.056 c0,15.167,12.345,27.511,27.511,27.511c15.167,0,27.523-12.345,27.523-27.511c0-15.178-12.356-27.523-27.523-27.523 C183.834-316.579,171.489-304.234,171.489-289.056"/></g></svg>',infor:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 496.16 496.16" style="width:24px; height:24px; enable-background:new 0 0 496.158 496.158;" xml:space="preserve"><path d="m496.16 248.08c0-137.02-111.07-248.08-248.08-248.08-137.01 0-248.08 111.06-248.08 248.08 0 137 111.07 248.07 248.08 248.07 137.01 0 248.08-111.07 248.08-248.07z" fill="#25B7D3"/><g fill="#fff"><path d="m315.25 359.56c-1.387-2.032-4.048-2.755-6.27-1.702-24.582 11.637-52.482 23.94-57.958 25.015-0.138-0.123-0.357-0.348-0.644-0.737-0.742-1.005-1.103-2.318-1.103-4.015 0-13.905 10.495-56.205 31.192-125.72 17.451-58.406 19.469-70.499 19.469-74.514 0-6.198-2.373-11.435-6.865-15.146-4.267-3.519-10.229-5.302-17.719-5.302-12.459 0-26.899 4.73-44.146 14.461-16.713 9.433-35.352 25.41-55.396 47.487-1.569 1.729-1.733 4.314-0.395 6.228 1.34 1.915 3.825 2.644 5.986 1.764 7.037-2.872 42.402-17.359 47.557-20.597 4.221-2.646 7.875-3.989 10.861-3.989 0.107 0 0.199 4e-3 0.276 0.01 0.036 0.198 0.07 0.5 0.07 0.933 0 3.047-0.627 6.654-1.856 10.703-30.136 97.641-44.785 157.5-44.785 182.99 0 8.998 2.501 16.242 7.432 21.528 5.025 5.393 11.803 8.127 20.146 8.127 8.891 0 19.712-3.714 33.08-11.354 12.936-7.392 32.68-23.653 60.363-49.717 1.793-1.687 2.092-4.426 0.705-6.458z"/><path d="m314.28 76.672c-4.925-5.041-11.227-7.597-18.729-7.597-9.34 0-17.475 3.691-24.176 10.971-6.594 7.16-9.938 15.946-9.938 26.113 0 8.033 2.463 14.69 7.32 19.785 4.922 5.172 11.139 7.794 18.476 7.794 8.958 0 17.049-3.898 24.047-11.586 6.876-7.553 10.363-16.433 10.363-26.393 1e-3 -7.654-2.476-14.075-7.363-19.087z"/></g></svg>',cancel:Wm},Vm={},Xm=null,Zm=$l();function Gm(){ou(["top-right","top-left","bottom-right","bottom-left"],(e=>{!function(e){let t=fp(Vm,{position:e});t=Vp(t,"timeStart");let n=16;ou(t,(e=>{Vm[e.id].ele||(Vm[e.id].ele=document.querySelector(`#${e.id}`)),Vm[e.id].loc.top=n,Vm[e.id].loc.height=Vm[e.id].ele.offsetHeight,n+=Vm[e.id].loc.height+16})),ou(t,(t=>{e.indexOf("bottom-")>=0?(Vm[t.id].ele.style.bottom=`${Vm[t.id].loc.top}px`,Vm[t.id].loc.bottom=Vm[t.id].loc.top):Vm[t.id].ele.style.top=`${Vm[t.id].loc.top}px`,e.indexOf("-left")>=0?(Vm[t.id].ele.style.left="16px",Vm[t.id].loc.left=16):(Vm[t.id].ele.style.right="16px",Vm[t.id].loc.right=16),Vm[t.id].ele.style.zIndex=2e5,Vm[t.id].ele.style.opacity=1,Vm[t.id].ele.style.transform="",Vm[t.id].ele.style.transform=null}))}(e)}))}function Km(e){Vm[e].ele&&Vm[e].ele.parentNode.removeChild(Vm[e].ele),Vm[e]&&delete Vm[e],Gm()}function Jm(e,t){if(!Ko(e))return"invalid eleParent";if(Wt(t))e.insertAdjacentHTML("beforeend",t);else{if(!Ko(t))return"invalid itemChild";e.appendChild(t)}}function Qm(){return null!==navigator.userAgent.toLowerCase().match(/rv:([\d.]+)\) like gecko/)}function eg(e){if(!e)return"invalid event";if(!e.cancelable)return"event is not cancelable";try{Qm()?e.cancelBubble=!0:e.stopPropagation(),e.preventDefault()}catch(e){}}function tg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ng(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!Ko(e))return Promise.reject("invalid ele");let o=Ft(i,"format");"side"!==o&&"line"!==o&&(o="side");let u="side"===o?"side-by-side":"line-by-line",l=$l().Diff2Html;if(!zt(l))throw new Error("invalid window.Diff2Html");(()=>{let e="fix-d2h-line-width";if(Ko(document.querySelector(`#${e}`)))return;let t=document.createElement("style");t.id=e,t.textContent="\n .d2h-code-side-line {\n width: inherit !important;\n }\n ",document.head.append(t)})(),qt(t)||(t="Text");let a=Hd(t,t,n,r),s=l.html(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tg(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({drawFileList:!0,matching:"lines",outputFormat:u},i));s=s.replace('<span class="d2h-file-list-title">Files changed (1)</span>',"");try{e.innerHTML=s}catch(e){console.log(e)}return{diff:a,html:s}}function rg(e,t){let n=Mh();if(!Ut(e)&&!Rt(e))return n.reject("rs is not an array or object"),n;let r=!1;if(Rt(e)){r=!0;let t=[];ou(e,((e,n)=>{t.push({k:n,v:e})})),e=t}wp(t)||(t=function(e){return e});let i=-1,o=[];return e.reduce((function(e,n){return e.then((function(e){o.push(e),i+=1;let u=i,l=n;return r&&(u=n.k,l=n.v),wp(t)?t(l,u):l}))}),Promise.resolve()).then((function(e){o.push(e),o=Kp(o),n.resolve(o)})).catch((function(e){n.reject(e)})),n}Zm.ttWAlertCancel=function(e){Km(e)},Zm.ttWAlertFadeIn=function(e){zm(document.querySelector(`#${e}`))},Zm.ttWAlertFadeOut=function(e){Um(document.querySelector(`#${e}`))};let ig={},og={};function ug(e){let{tagName:t,path:n,attributes:r={},func:i}=e,o=Mh();if("done"===ig[n])return o.resolve("loaded"),o;if("loading"===ig[n])return zh((()=>"done"===ig[n])).then((function(){o.resolve("loaded")})),o;ig[n]="loading";let u=document.createElement(t);return ou(r,((e,t)=>{u.setAttribute(t,e)})),r.rel&&"stylesheet"===r.rel?(u.setAttribute("href",n),setTimeout((()=>{o.resolve(u),ig[n]="done"}),1)):(u.src=n,u.addEventListener("load",(()=>{let e;wp(i)?e=zh(i):(e=Mh(),e.resolve()),e.then((()=>Cm(500))).then((function(){o.resolve(u),ig[n]="done"}))})),u.addEventListener("error",(()=>{o.reject(u),ig[n]="done"}))),document.getElementsByTagName("head")[0].appendChild(u),o}function lg(e){let t=Mh();Ut(e)||(e=[e]),ou(e,((t,n)=>{Wt(t)&&(e[n]={path:t})}));let n=If(pu(e,"path"),"|");return"done"===og[n]?(t.resolve("loaded"),t):"loading"===og[n]?(zh((()=>"done"===og[n])).then((function(){t.resolve("loaded")})),t):(og[n]="loading",ou(e,((e,t)=>{e.type||(".js"===ip(e.path,3)?e.type="js":".css"===ip(e.path,4)?e.type="css":e.type="unknow")})),rg(e,(e=>{let t=Mh();if("js"===e.type)t=ug({tagName:"script",path:e.path,attributes:{type:"text/javascript"},func:e.func});else if("css"===e.type)t=ug({tagName:"link",path:e.path,attributes:{rel:"stylesheet"}});else{let n="invalid pathItem.type: "+e.type;console.log(n),t.reject(n)}return t})).finally((()=>{og[n]="done"})))}function ag(e){return document.querySelectorAll(e)}function sg(e){function t(e){e.parentNode.removeChild(e)}if(Ko(e)){return void t(e)}if(!qt(e))return;let n=ag(e);ou(n,(function(e){t(e)}))}function cg(e,t){if(!Ko(e))return"invalid eleParent";if(Wt(t))e.insertAdjacentHTML("afterbegin",t);else{if(!Ko(t))return"invalid itemChild";e.insertBefore(t,e.firstChild)}}async function fg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return Promise.reject("invalid ele");let n=Ft(t,"scale",1);if(!yp(n))return Promise.reject("opt.scale is not a number");if(n<1)return Promise.reject("opt.scale can not less then 1");let r=Ft(t,"picType","image/png");if("image/jpeg"!==r&&"image/png"!==r)return Promise.reject("opt.picType is not one of image/jpeg or image/png");let i=Ft(t,"toBase64",!0);if(!Tl(i))return Promise.reject("opt.toBase64 is not a boolean");let o=e.cloneNode(!0),u=document.createElement("div");u.style.position="absolute",u.style.top=0,u.style.left=0,u.style.zIndex=-1,u.appendChild(o);let l=document.createElement("div");l.style.opacity=0,l.style.position="relative",l.appendChild(u),cg(document.querySelector("body"),l);let a,s=$l().htmlToImage,c={pixelRatio:n,quality:.95};return i?"image/jpeg"===r?a=await s.toJpeg(u,c):"image/png"===r&&(a=await s.toPng(u,c)):a=await s.toCanvas(u,c),sg(l),a}function dg(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}var pg=wt,hg=$u,vg=function(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1},mg=wn,gg=wu,yg=Array.prototype.splice;var bg=function(e,t,n,r){var i=r?vg:hg,o=-1,u=t.length,l=e;for(e===t&&(t=gg(t)),n&&(l=pg(e,mg(n)));++o<u;)for(var a=0,s=t[o],c=n?n(s):s;(a=i(l,c,a,r))>-1;)l!==e&&yg.call(l,a,1),yg.call(e,a,1);return e},wg=bg;var xg=function(e,t){return e&&e.length&&t&&t.length?wg(e,t):e},jg=y(zp(xg));function Og(e){let t=function(e,n){return null===e.parentNode?n:t(e.parentNode,n.concat([e]))};return e instanceof HTMLElement||e instanceof SVGElement?t(e.parentNode,[]):[]}function Sg(e){let t=Ft(e,"clientX",null),n=Ft(e,"clientY",null),r=Ft(e,"pageX",null),i=Ft(e,"pageY",null);if(null!==t&&null!==n&&null!==r&&null!==i)return{clientX:t,clientY:n,pageX:r,pageY:i};let o=Ft(e,"changedTouches",[]);if(1!==_l(o))return null;let u=o[0];return{clientX:Ft(u,"clientX",null),clientY:Ft(u,"clientY",null),pageX:Ft(u,"pageX",null),pageY:Ft(u,"pageY",null)}}function Eg(e,t){let n=[];try{n=document.elementsFromPoint(e,t)}catch(e){console.log(e)}return n}function Dg(e,t){if(!Ko(e))return null;if(!qt(t))return null;try{return e.getAttribute(t)}catch(e){}return null}function kg(e){if(!Ko(e))return null;try{return e.getBoundingClientRect()}catch(e){}return null}function Mg(e,t){if(!zt(e))return null;if(!yp(e.clientX)||!yp(e.clientY))return null;if(!Ko(t))return null;let n=kg(t);return n?{x:e.clientX-n.left,y:e.clientY-n.top,w:t.offsetWidth,h:t.offsetHeight}:null}function _g(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="dragpreviewid",n=null,r=null,i=null,o=null,u=null,l=!1,a=Ft(e,"attIdentify",null);qt(a)||(a="dragprevid");let s=Ft(e,"containerOpacity",null);yp(s)||(s=.4);let c=Ft(e,"containerBackground",null);qt(c)||(c="white");let f=Ft(e,"containerBorderWidth",null);yp(f)||(f=1);let d=Ft(e,"containerBorderColor",null);qt(d)||(d="#f26");let p=`c${Rm(8)}`;function h(e,t,n){r&&i&&o&&u&&!l&&(u.style.top=t-r.tShiftY+"px",u.style.left=e-r.tShiftX+"px")}function v(){sg(`[${t}='${p}']`),r=null,i=null,o=null,u=null}let m=function(e){h(e.clientX,e.clientY)};window.addEventListener("mousemove",m);let g=function(e){let t=Sg(e);t&&h(t.clientX,t.clientY)};return window.addEventListener("touchmove",g),{createPreview:function(e,l,m){try{!function(){let v=function(e,t,r){let i=kg(e);if(!i)return null;n=e;let o=e.cloneNode(!0);return o.tShiftX=t-i.left,o.tShiftY=r-i.top,o.tWidth=e.offsetWidth,o.tHeight=e.offsetHeight,o.tParent=e.parentNode,o.setAttribute(a,""),o}(e,l,m);if(null===v)return;let g=document.createElement("div");g.style.position="absolute",g.style.zIndex=1,g.style.top=0,g.style.left=0,g.style.width="100%",g.style.height="100%",g.appendChild(v);let y=document.createElement("div");y.style.position="relative",y.appendChild(g);let b=document.createElement("div");b.setAttribute(t,p),b.style.position="fixed",b.style.zIndex=1e5,b.style.width=`${v.tWidth+2*f}px`,b.style.height=`${v.tHeight+2*f}px`,b.style.opacity=s,b.style.background=c,b.style.border=`${f}px solid ${d}`,b.style.pointerEvents="none",b.appendChild(y),document.querySelector("body").appendChild(b),r=v,i=g,o=y,u=b,h(l,m)}()}catch(e){}let g=setInterval((()=>{let e=Dg(n,a);document.querySelector(`[${a}='${e}']`)||(clearInterval(g),v())}),500)},updateDragPreview:h,pauseDragPreview:function(e){l=e},removeDragPreview:v,setNodeStyle:function(e){try{ou(e,((e,t)=>{r.style[t]=e}))}catch(e){}},setCoverStyle:function(e){try{ou(e,((e,t)=>{i.style[t]=e}))}catch(e){}},setSellStyle:function(e){try{ou(e,((e,t)=>{o.style[t]=e}))}catch(e){}},setContainerStyle:function(e){try{ou(e,((e,t)=>{u.style[t]=e}))}catch(e){}},clear:function(){window.removeEventListener("mousemove",m),window.removeEventListener("touchmove",g)}}}function Ag(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pg(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ag(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ag(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}let Tg={};function Yg(e,t,n){let{attIdentify:r,previewOpacity:i,previewBackground:o,previewBorderWidth:u,previewBorderColor:l}=n;if(!Zt(Tg,e)){let t=$c(),n=function(e){let t=[];function n(){let n;n="mousemove";let r=function(t){e.dragMove({e:t,name:"mousemove"})};window.addEventListener(n,r),t.push({ele:window,name:n,f:r}),n="mouseup";let i=function(t){e.dragDrop({e:t,name:"mouseup"})};window.addEventListener(n,i),t.push({ele:window,name:n,f:i}),n="touchmove";let o=function(t){e.dragMove({e:t,name:"touchmove"})};window.addEventListener(n,o),t.push({ele:window,name:n,f:o}),n="touchend";let u=function(t){e.dragDrop({e:t,name:"touchend"})};window.addEventListener(n,u),t.push({ele:window,name:n,f:u})}function r(){ou(t,(e=>{let{ele:t,name:n,f:r}=e;t.removeEventListener(n,r)}))}return{bind:n,unbind:r}}({dragMove:n=>{t.emit(e+"-dragMove",n)},dragDrop:n=>{t.emit(e+"-dragDrop",n)}});n.bind();let a=_g({attIdentify:r,containerOpacity:i,containerBackground:o,containerBorderWidth:u,containerBorderColor:l});Tg[e]={eleIds:[],evg:t,oevg:n,pv:a,isInit:!1,isActive:!0}}return Tg[e].eleIds.push(t),Tg[e].evg}function Hg(e,t){let n=Dg(e,t);return n=qc(n),n}function Ig(e){let{gid:t,attGroup:n,attIndex:r,attIdentify:i,timeDragStartDelay:o,previewOpacity:u,previewDisabledOpacity:l}=e,a=null,s=null,c=null,f=null;if(Tg[t].isInit)return Tg[t].evg;Tg[t].isInit=!0;let d=Tg[t].evg;d.on(t+"-dragStart",(function(e){let{e:n,ele:u,from:c}=e;if(!Tg[t].isActive)return;let f=Hg(u,r);if(null===f)return;a=f,s=u;let h={event:n,startInd:a,startEle:s,tarInd:a,tarEid:Dg(s,i)};d.emit(t+"-change",Pg({mode:"start"},h)),d.emit(t+"-start",h);let v=Sg(n);if(!v)return;setTimeout((()=>{null!==a&&(p.createPreview(s,v.clientX,v.clientY),p.setContainerStyle({opacity:l}))}),o)})),d.on(t+"-dragMove",(function(e){let{e:o,name:h,from:v}=e;if(!Tg[t].isActive)return;let m=function(e,t,n){let r=null,i=Og(e.target);return ou(i,(e=>{if(Dg(e,t)===n)return r=e,!1})),r}(o,n,t);if(null===a)return;let g=Sg(o);if(!g)return;function y(){let e={event:o,startInd:a,startEle:s,endInd:c,endEle:f,tarInd:c,tarEid:Dg(f,i)};d.emit(t+"-change",Pg({mode:"leave"},e)),d.emit(t+"-leave",e),c=null,f=null,p.setContainerStyle({opacity:l})}if(!m)return void(null!==c&&y());let b=Hg(m,r);if(null===b)return;if(b===a)return void(null!==c&&y());if(b!==c)null!==c&&y(),function(e,n){c=e,f=n;let r={event:o,startInd:a,startEle:s,endInd:c,endEle:f,tarInd:c,tarEid:Dg(f,i)};d.emit(t+"-change",Pg({mode:"enter"},r)),d.emit(t+"-enter",r),p.setContainerStyle({opacity:u})}(b,m);else{let e=Mg(g,m),n=0;e.w>0&&(n=e.x/e.w);let r=0;e.h>0&&(r=e.y/e.h),n>=0&&n<=1&&r>=0&&r<=1&&function(e,n,r){let l=Pg(Pg({event:o,startInd:a,startEle:s,endInd:c,endEle:f,tarInd:c,tarEid:Dg(f,i)},e),{},{rx:n,ry:r});d.emit(t+"-change",Pg({mode:"move"},l)),d.emit(t+"-move",l),p.setContainerStyle({opacity:u})}(e,n,r)}})),d.on(t+"-dragDrop",(function(e){let{e:o,name:u,from:l}=e;if(p.removeDragPreview(),!Tg[t].isActive)return;if(null===a)return;let h=function(e,t,n){let r=null,i=Sg(e);if(!i)return r;let o=Eg(i.clientX,i.clientY);return ou(o,(e=>{if(Dg(e,t)===n)return r=e,!1})),r}(o,n,t);if(!h)return a=null,s=null,c=null,void(f=null);let v=Hg(h,r);if(null===v)return;(function(e,n){c=e,f=n;let r={event:o,startInd:a,startEle:s,endInd:c,endEle:f,tarInd:c,tarEid:Dg(f,i)};d.emit(t+"-change",Pg({mode:"drop"},r)),d.emit(t+"-drop",r)})(v,h),a=null,s=null,c=null,f=null}));let p=Tg[t].pv}async function Lg(e){let t=[],n=Mh();return await async function e(n){let r=null;if(n.isFile&&(r=await async function(e){let t=Mh();try{e.file(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(n)),t.push({type:n.isDirectory?"folder":n.isFile?"file":"unknow",path:n.fullPath,name:n.name,entry:n,file:r}),n.isDirectory){let t=n.createReader(),r=await async function(e){let t=Mh();try{e.readEntries(t.resolve,t.reject)}catch(e){t.reject(e)}return t}(t);await rg(r,(async t=>{await e(t)}))}}(e),n.resolve(t),n}async function Ng(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n].webkitGetAsEntry();r&&t.push(r)}let n=await async function(e){let t=[];return await rg(e,(async e=>{let n=await Lg(e);ou(n,(e=>{t.push(e)}))})),t}(t);return n}async function $g(e){let t=[],n=[];try{t=await async function(e){let t=[];return ou(e,(e=>{e.type&&t.push({type:"file",name:e.name,file:e})})),t}(Ft(e,"files",[])),Qm()||(n=await Ng(Ft(e,"items",[])))}catch(e){return Promise.reject(e)}return{files:t,entries:n}}function Cg(e){return document.querySelector(e)}function Bg(e){return!Tu(e)}function Fg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""!==e&&"name"!==e&&"group"!==e&&"acp"!==e&&"exec"!==e)return[];let t=[{name:"htm",group:"docums",acp:"text/html",exec:"browser"},{name:"html",group:"docums",acp:"text/html",exec:"browser"},{name:"pdf",group:"docums",acp:"application/pdf",exec:"acrobat"},{name:"rtf",group:"docums",acp:"application/rtf",exec:"word"},{name:"doc",group:"docums",acp:"application/msword",exec:"word"},{name:"docx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",exec:"word"},{name:"ppt",group:"docums",acp:"application/vnd.ms-powerpoint",exec:"powerpoint"},{name:"pptx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.presentationml.presentation",exec:"powerpoint"},{name:"xls",group:"docums",acp:"application/vnd.ms-excel",exec:"excel"},{name:"xlsx",group:"docums",acp:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",exec:"excel"},{name:"odt",group:"docums",acp:"application/vnd.oasis.opendocument.text",exec:"word"},{name:"odp",group:"docums",acp:"application/vnd.oasis.opendocument.presentation",exec:"powerpoint"},{name:"application/vnd.oasis.opendocument.spreadsheet",group:"docums",acp:"application/vnd.oasis.opendocument.spreadsheet",exec:"excel"},{name:"zip",group:"compress",acp:"application/zip",exec:"7z"},{name:"rar",group:"compress",acp:"application/x-rar-compressed",exec:"7z"},{name:"7z",group:"compress",acp:"application/x-7z-compressed",exec:"7z"},{name:"bzip",group:"compress",acp:"application/x-bzip",exec:"7z"},{name:"bzip2",group:"compress",acp:"application/x-bzip2",exec:"7z"},{name:"pic",group:"image",acp:"image/*",exec:"imageviwer"},{name:"xml",group:"data",acp:"text/xml",exec:"textviwer"},{name:"json",group:"data",acp:"application/json",exec:"textviwer"},{name:"txt",group:"data",acp:"text/plain",exec:"textviwer"},{name:"csv",group:"data",acp:"text/csv",exec:"excel"},{name:"dat",group:"data",acp:"application/octet-stream",exec:"binaryviwer"}];if(""===e)return t;let n={};return ou(t,(function(t){let r=t[e];Zt(n,r)||(n[r]=[]),n[r].push(t)})),n}function Rg(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*";if("*"===e)return e;if(!Wt(e)&&!Yu(e))return"*";"common"===e&&(e=["docums","compress","image","data"]);let t=Fg();function n(e){return Qu(pu(e,"acp"))}Wt(e)&&(e=[e]);let r="";if(Yu(e)){let i=pu(e,(function(e){return function(e){return n(fp(t,{group:e}))}(e)})),o=pu(e,(function(e){return n(fp(t,{name:e}))})),u=Du(i,o);u=fp(u,Bg),r=If(u,",")}return r}function zg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;t=sa(t),t<=0&&(t=1e3);let n={},r=[];return ou(Ft(e,"files",[]),(function(e,i){e.size/1024/1024>t&&(n[i]=`檔案大小超過上限${t}mb`),r.push(e)})),{files:r,errs:n}}var Ug=C;var Wg=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],u=t(o);if(null!=u&&(void 0===l?u==u&&!Ug(u):n(u,l)))var l=u,a=o}return a};var qg=Wg,Vg=function(e,t){return e<t},Xg=fo;var Zg=y((function(e){return e&&e.length?qg(e,Xg,Vg):void 0}));function Gg(){return!function(){try{return"IntersectionObserver"in window}catch(e){return!1}}()||!function(){try{return"IntersectionObserverEntry"in window}catch(e){return!1}}()||!(function(){try{return"intersectionRatio"in window.IntersectionObserverEntry.prototype}catch(e){return!1}}()||wp(window.IntersectionObserverEntry))}function Kg(e,t){if(!Ko(e))return Promise.reject("invalid ele");let n=$l().markmap,{Transformer:r,Markmap:i,loadCSS:o,loadJS:u}=n,l=e=>{let t=new r,{root:n,features:i}=t.transform(e),{styles:o,scripts:u}=t.getUsedAssets(i);return{root:n,features:i,styles:o,scripts:u}},{root:a,styles:s,scripts:c}=l(t);s&&o(s),c&&u(c,{getMarkmap:()=>n}),e.innerHTML="";let f=i.create(e,null,a);return f.transMarkdown=l,f}const Jg=e=>void 0===e||"auto"===e||"instant"===e||"smooth"===e;function Qg(e,t){this.scrollLeft=e,this.scrollTop=t}const ey=function(e,t){return`Failed to execute '${e}' on '${t}': ${arguments.length>2&&void 0!==arguments[2]?arguments[2]:"cannot convert to dictionary."}`},ty=(e,t,n)=>ey(e,t,`The provided value '${n}' is not a valid enum value of type ScrollBehavior.`),ny=(e,t,n)=>{var r;const i=`__SEAMLESS.BACKUP$${t}`;return e[i]||!e[t]||(null===(r=e[t])||void 0===r?void 0:r.__isPolyfill)||(e[i]=e[t]),e[i]||n},ry=e=>{const t=typeof e;return null!==e&&("object"===t||"function"===t)},iy=e=>"scrollBehavior"in window.document.documentElement.style&&!0!==(null==e?void 0:e.forcePolyfill),oy=e=>{Object.defineProperty(e,"__isPolyfill",{value:!0})},uy=(e,t)=>{oy(t),[HTMLElement.prototype,SVGElement.prototype,Element.prototype].forEach((n=>{ny(n,e),n[e]=t}))},ly=e=>e.ownerDocument.scrollingElement||e.ownerDocument.documentElement;const ay=e=>.5*(1-Math.cos(Math.PI*e));function sy(){var e;let t;return t=(null===(e=window.performance)||void 0===e?void 0:e.now)?()=>window.performance.now():()=>window.Date.now(),sy=t,t()}const cy=e=>{const t=(sy()-e.timeStamp)/(e.duration||500);if(t>1)return e.method(e.targetX,e.targetY),void e.callback();const n=(e.timingFunc||ay)(t),r=e.startX+(e.targetX-e.startX)*n,i=e.startY+(e.targetY-e.startY)*n;e.method(r,i),e.rafId=window.requestAnimationFrame((()=>{cy(e)}))},fy=e=>isFinite(e)?Number(e):0,dy=(e,t,n)=>{var r,i;if(!(e=>{var t;return null!==(t=e.isConnected)&&void 0!==t?t:!(e.ownerDocument&&1&e.ownerDocument.compareDocumentPosition(e))})(e))return;const o=e.scrollLeft,u=e.scrollTop,l=fy(null!==(r=t.left)&&void 0!==r?r:o),a=fy(null!==(i=t.top)&&void 0!==i?i:u);if(l===o&&a===u)return;const s=ny(HTMLElement.prototype,"scroll",Qg),c=ny(Object.getPrototypeOf(e),"scroll",s).bind(e);if("smooth"!==t.behavior)return void c(l,a);const f=()=>{window.removeEventListener("wheel",p),window.removeEventListener("touchmove",p)},d=Object.assign(Object.assign({},n),{timeStamp:sy(),startX:o,startY:u,targetX:l,targetY:a,rafId:0,method:c,callback:()=>{f();const t=9===e.nodeType;e.dispatchEvent(function(e){if("function"==typeof Event)return new Event("scrollend",{bubbles:e,cancelable:!1});const t=document.createEvent("Event");return t.initEvent("scrollend",e,!1),t}(t))}}),p=()=>{window.cancelAnimationFrame(d.rafId),f()};window.addEventListener("wheel",p,{passive:!0,once:!0}),window.addEventListener("touchmove",p,{passive:!0,once:!0}),cy(d)},py=e=>(t,n,r)=>{const[i,o]=(u=t).window===u?[ly(t.document.documentElement),"Window"]:[t,"Element"];var u;const l=null!=n?n:{};if(!ry(l))throw new TypeError(ey(e,o));if(!Jg(l.behavior))throw new TypeError(ty(e,o,l.behavior));"scrollBy"===e&&(l.left=fy(l.left)+i.scrollLeft,l.top=fy(l.top)+i.scrollTop),dy(i,l,r)},hy=py("scroll"),vy=py("scrollTo"),my=py("scrollBy"),gy=hy,yy=e=>{switch(e){case"horizontal-tb":case"lr":case"lr-tb":case"rl":case"rl-tb":return 0;case"vertical-rl":case"tb":case"tb-rl":return 1;case"vertical-lr":case"tb-lr":return 2;case"sideways-rl":return 3;case"sideways-lr":return 4}return 0},by=(e,t,n,r)=>{let i=0;switch(t||(i^=2),e){case 0:i=i>>1|(1&i)<<1,[n,r]=[r,n];break;case 1:case 3:i^=1;break;case 4:i^=2}return[i,n,r]},wy=e=>1==(1&by(yy(e.writingMode),"rtl"!==e.direction,void 0,void 0)[0]),xy=(e,t,n,r,i,o,u)=>0!==e?e:i<t&&o>n||i>t&&o<n?null:i<=t&&u<=r||o>=n&&u>=r?2:o>n&&u<r||i<t&&u>r?3:null,jy=e=>"visible"!==e&&"clip"!==e,Oy=(e,t)=>(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth)&&(jy(t.overflowY)||jy(t.overflowX)||e===ly(e)),Sy=e=>{const t=e.parentNode,n=e.parentElement;if(null===n&&null!==t){if(11===t.nodeType)return t.host;if(9===t.nodeType)return(e=>{var t;try{return(null===(t=e.ownerDocument.defaultView)||void 0===t?void 0:t.frameElement)||null}catch(e){return null}})(e)}return n},Ey=(e,t,n)=>e<t?t:e>n?n:e,Dy=(e,t,n)=>{switch(e){case 1:return(t+n)/2;case 3:return n;case 2:case 0:return t}},ky=(e,t)=>{var n,r,i;const o=null===(n=e.ownerDocument.defaultView)||void 0===n?void 0:n.visualViewport,[u,l,a,s]=e===ly(e)?[0,0,null!==(r=null==o?void 0:o.width)&&void 0!==r?r:e.clientWidth,null!==(i=null==o?void 0:o.height)&&void 0!==i?i:e.clientHeight]:[t.left,t.top,e.clientWidth,e.clientHeight],c=u+e.clientLeft,f=l+e.clientTop;return[f,c+a,f+s,c]},My=(e,t)=>{const n=[];let r=e.ownerDocument,i=r.defaultView;if(!i)return n;const o=window.getComputedStyle(e),u="rtl"!==o.direction,l=yy(o.writingMode||o.getPropertyValue("-webkit-writing-mode")||o.getPropertyValue("-ms-writing-mode")),[a,s]=((e,t,n)=>{const[r,i,o]=by(t,n,e.block||"start",e.inline||"nearest");return[i,o].map(((e,t)=>{switch(e){case"center":return 1;case"nearest":return 0;default:return"start"===e==!(r>>t&1)?2:3}}))})(t,l,u);let[c,f,d,p]=((e,t,n)=>{const{top:r,right:i,bottom:o,left:u}=t,l=(a=e.ownerDocument,["scroll-margin","scroll-snap-margin"].filter((e=>e in a.documentElement.style))[0]);var a;if(!l)return[r,i,o,u];const s=e=>{const t=n.getPropertyValue(`${l}-${e}`);return parseInt(t,10)||0};return[r-s("top"),i+s("right"),o+s("bottom"),u-s("left")]})(e,e.getBoundingClientRect(),o);for(let o=Sy(e);null!==o;o=Sy(o)){if(r!==o.ownerDocument){if(r=o.ownerDocument,i=r.defaultView,!i)break;const{left:e,top:t}=o.getBoundingClientRect();c+=t,f+=e,d+=t,p+=e}const e=i.getComputedStyle(o);if("fixed"===e.position)break;if(!Oy(o,e))continue;const u=o.getBoundingClientRect(),[l,h,v,m]=ky(o,u),g=xy(a,m,h,o.clientWidth,p,f,f-p),y=xy(s,l,v,o.clientHeight,c,d,d-c),b=null===g?0:Dy(g,p,f)-Dy(g,m,h),w=null===y?0:Dy(y,c,d)-Dy(y,l,v),x=wy(e)?Ey(b,-o.scrollWidth+o.clientWidth-o.scrollLeft,-o.scrollLeft):Ey(b,-o.scrollLeft,o.scrollWidth-o.clientWidth-o.scrollLeft),j=Ey(w,-o.scrollTop,o.scrollHeight-o.clientHeight-o.scrollTop);n.push([o,{left:o.scrollLeft+x,top:o.scrollTop+j,behavior:t.behavior}]),c=Math.max(c-j,l),f=Math.min(f-x,h),d=Math.min(d-j,v),p=Math.max(p-x,m)}return n},_y=(e,t,n)=>{const r=t||{};if(!Jg(r.behavior))throw new TypeError(ty("scrollIntoView","Element",r.behavior));My(e,r).forEach((e=>{let[t,r]=e;gy(t,r,n)}))},Ay=(e,t)=>n=>{if(iy(n))return;const r={scroll:hy,scrollTo:vy,scrollBy:my}[e];t(e,(function(){const e=arguments;if(1===arguments.length)return void r(this,e[0],n);r(this,{left:e[0],top:e[1]})}))},Py=Ay("scroll",uy),Ty=Ay("scrollTo",uy),Yy=Ay("scrollBy",uy),Hy=(e,t)=>{oy(t),ny(window,e),window[e]=t},Iy=Ay("scroll",Hy),Ly=Ay("scrollTo",Hy),Ny=Ay("scrollBy",Hy);function $y(e){_y(this,{block:null==e||e?"start":"end",inline:"nearest"})}const Cy=e=>{if(iy(e))return;const t=ny(window.HTMLElement.prototype,"scrollIntoView",$y);uy("scrollIntoView",(function(){const n=arguments,r=n[0];1===n.length&&ry(r)?_y(this,r,e):t.apply(this,n)}))},By=e=>{iy(e)||(Py(e),Ty(e),Yy(e),Cy(e),Iy(e),Ly(e),Ny(e))};function Fy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ry(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Fy(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zy(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Uy(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zy(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zy(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wy=Ba,qy=He;var Vy=function(e,t,n){(void 0!==n&&!qy(e[t],n)||void 0===n&&!(t in e))&&Wy(e,t,n)},Xy=Wn,Zy=L;var Gy=function(e){return Zy(e)&&Xy(e)};var Ky=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},Jy=Va,Qy=is;var eb=Vy,tb=ss,nb=Ls,rb=wu,ib=Xs,ob=an,ub=b,lb=Gy,ab=fn,sb=G,cb=q,fb=Vo,db=Dn,pb=Ky,hb=function(e){return Jy(e,Qy(e))};var vb=hr,mb=Vy,gb=Kt,yb=function(e,t,n,r,i,o,u){var l=pb(e,n),a=pb(t,n),s=u.get(a);if(s)eb(e,n,s);else{var c=o?o(l,a,n+"",e,t,u):void 0,f=void 0===c;if(f){var d=ub(a),p=!d&&ab(a),h=!d&&!p&&db(a);c=a,d||p||h?ub(l)?c=l:lb(l)?c=rb(l):p?(f=!1,c=tb(a,!0)):h?(f=!1,c=nb(a,!0)):c=[]:fb(a)||ob(a)?(c=l,ob(l)?c=hb(l):cb(l)&&!sb(l)||(c=ib(a))):f=!1}f&&(u.set(a,c),i(c,a,r,o,u),u.delete(a)),eb(e,n,c)}},bb=q,wb=is,xb=Ky;var jb=function e(t,n,r,i,o){t!==n&&gb(n,(function(u,l){if(o||(o=new vb),bb(u))yb(t,n,l,r,e,i,o);else{var a=i?i(xb(t,l),u,l+"",t,n,o):void 0;void 0===a&&(a=u),mb(t,l,a)}}),wb)},Ob=zp,Sb=Po;var Eb=jb,Db=y(function(e){return Ob((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,u=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,u&&Sb(n[0],n[1],u)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,o)}return t}))}((function(e,t,n){Eb(e,t,n)})));async function kb(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=!0,o=null,u=Mh();if(zt(n)||(n={}),!Ko(e))return u.reject("eleImg is not a HTMLElement"),u;if(o=e,null!==t){if(!Ko(t))return u.reject("eleGroup is not a HTMLElement"),u;r=!1,o=t}if(!r){let e=t.querySelectorAll("img"),n=_l(e);if(0===n)return u.reject("eleGroup does not contain any img"),u;1===n&&(r=!0)}let l={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};r||(l=function(){let e={button:!1,navbar:!1,title:!1,toolbar:{zoomIn:4,zoomOut:4,oneToOne:4,reset:4,prev:0,play:0,next:0,rotateLeft:4,rotateRight:4,flipHorizontal:4,flipVertical:4},tooltip:!1,movable:!0,zoomable:!0,rotatable:!0,scalable:!0,transition:!0,fullscreen:!1,keyboard:!0};return e.navbar=!0,e.toolbar.prev=4,e.toolbar.next=4,e}()),l=Db(l,Ic(n));let a=!1;l.hide=function(){a||(a=!0,c.hide(!0))},l.hidden=function(){c.destroy(),u.resolve("close")};let s=function(){let e=$l();return i||e.Viewer}(),c=new s(o,l);return c.show(),u}function Mb(e,t){let n=new MouseEvent(t,{view:window,bubbles:!0,cancelable:!0});e.dispatchEvent(n)}function _b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ft(t,"multiple");Yl(n)||(n=!1);let r=Ft(t,"entireHierarchy");Yl(r)||(r=!1),r&&!n&&(n=!0);let i=Ft(t,"sizelimit");Xt(i)||(i=1e3),i=sa(i);let o=Mh(),u="drf"+Rm(),l="GrpDomReadFile";sg(`[name=${l}]`);let a=Rg(e),s=`<div name="${l}" style="position:relative; width:0px; height:0px; overflow:hidden;"><input id="${u}" type="file" accept="${a}" ${n?"multiple":""} ${r?"webkitdirectory":""} style="opacity:0; position:absolute; top:-10000px; left:-10000px;"></div>`;Jm(document.querySelector("body"),s);let c=Cg("#"+u),f=!1;function d(e){f=!0;let t=zg(this,i);o.resolve(t),c.removeEventListener("change",d),r||window.removeEventListener("focus",p),sg(`[name=${l}]`)}function p(e){setTimeout((()=>{f||d()}),300)}return c.addEventListener("change",d,!0),r||window.addEventListener("focus",p),Mb(c,"click"),o}Nl()&&function(){try{return new MouseEvent("MouseEventPolyfillTest"),!1}catch(e){}let e=function(e,t){t=t||{bubbles:!1,cancelable:!1};let n=document.createEvent("MouseEvent");return n.initMouseEvent(e,t.bubbles,t.cancelable,window,0,t.screenX||0,t.screenY||0,t.clientX||0,t.clientY||0,t.ctrlKey||!1,t.altKey||!1,t.shiftKey||!1,t.metaKey||!1,t.button||0,t.relatedTarget||null),n};e.prototype=Event.prototype,window.MouseEvent=e}();var Ab="top",Pb="bottom",Tb="right",Yb="left",Hb="auto",Ib=[Ab,Pb,Tb,Yb],Lb="start",Nb="end",$b="clippingParents",Cb="viewport",Bb="popper",Fb="reference",Rb=Ib.reduce((function(e,t){return e.concat([t+"-"+Lb,t+"-"+Nb])}),[]),zb=[].concat(Ib,[Hb]).reduce((function(e,t){return e.concat([t,t+"-"+Lb,t+"-"+Nb])}),[]),Ub=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Wb(e){return e?(e.nodeName||"").toLowerCase():null}function qb(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Vb(e){return e instanceof qb(e).Element||e instanceof Element}function Xb(e){return e instanceof qb(e).HTMLElement||e instanceof HTMLElement}function Zb(e){return"undefined"!=typeof ShadowRoot&&(e instanceof qb(e).ShadowRoot||e instanceof ShadowRoot)}var Gb={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Xb(i)&&Wb(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Xb(r)&&Wb(r)&&(Object.assign(r.style,o),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Kb(e){return e.split("-")[0]}var Jb=Math.max,Qb=Math.min,ew=Math.round;function tw(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function nw(){return!/^((?!chrome|android).)*safari/i.test(tw())}function rw(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Xb(e)&&(i=e.offsetWidth>0&&ew(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&ew(r.height)/e.offsetHeight||1);var u=(Vb(e)?qb(e):window).visualViewport,l=!nw()&&n,a=(r.left+(l&&u?u.offsetLeft:0))/i,s=(r.top+(l&&u?u.offsetTop:0))/o,c=r.width/i,f=r.height/o;return{width:c,height:f,top:s,right:a+c,bottom:s+f,left:a,x:a,y:s}}function iw(e){var t=rw(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ow(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function uw(e){return qb(e).getComputedStyle(e)}function lw(e){return["table","td","th"].indexOf(Wb(e))>=0}function aw(e){return((Vb(e)?e.ownerDocument:e.document)||window.document).documentElement}function sw(e){return"html"===Wb(e)?e:e.assignedSlot||e.parentNode||(Zb(e)?e.host:null)||aw(e)}function cw(e){return Xb(e)&&"fixed"!==uw(e).position?e.offsetParent:null}function fw(e){for(var t=qb(e),n=cw(e);n&&lw(n)&&"static"===uw(n).position;)n=cw(n);return n&&("html"===Wb(n)||"body"===Wb(n)&&"static"===uw(n).position)?t:n||function(e){var t=/firefox/i.test(tw());if(/Trident/i.test(tw())&&Xb(e)&&"fixed"===uw(e).position)return null;var n=sw(e);for(Zb(n)&&(n=n.host);Xb(n)&&["html","body"].indexOf(Wb(n))<0;){var r=uw(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function dw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pw(e,t,n){return Jb(e,Qb(t,n))}function hw(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function vw(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var mw={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,u=n.modifiersData.popperOffsets,l=Kb(n.placement),a=dw(l),s=[Yb,Tb].indexOf(l)>=0?"height":"width";if(o&&u){var c=function(e,t){return hw("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:vw(e,Ib))}(i.padding,n),f=iw(o),d="y"===a?Ab:Yb,p="y"===a?Pb:Tb,h=n.rects.reference[s]+n.rects.reference[a]-u[a]-n.rects.popper[s],v=u[a]-n.rects.reference[a],m=fw(o),g=m?"y"===a?m.clientHeight||0:m.clientWidth||0:0,y=h/2-v/2,b=c[d],w=g-f[s]-c[p],x=g/2-f[s]/2+y,j=pw(b,x,w),O=a;n.modifiersData[r]=((t={})[O]=j,t.centerOffset=j-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&ow(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gw(e){return e.split("-")[1]}var yw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bw(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,u=e.offsets,l=e.position,a=e.gpuAcceleration,s=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=u.x,p=void 0===d?0:d,h=u.y,v=void 0===h?0:h,m="function"==typeof c?c({x:p,y:v}):{x:p,y:v};p=m.x,v=m.y;var g=u.hasOwnProperty("x"),y=u.hasOwnProperty("y"),b=Yb,w=Ab,x=window;if(s){var j=fw(n),O="clientHeight",S="clientWidth";if(j===qb(n)&&"static"!==uw(j=aw(n)).position&&"absolute"===l&&(O="scrollHeight",S="scrollWidth"),i===Ab||(i===Yb||i===Tb)&&o===Nb)w=Pb,v-=(f&&j===x&&x.visualViewport?x.visualViewport.height:j[O])-r.height,v*=a?1:-1;if(i===Yb||(i===Ab||i===Pb)&&o===Nb)b=Tb,p-=(f&&j===x&&x.visualViewport?x.visualViewport.width:j[S])-r.width,p*=a?1:-1}var E,D=Object.assign({position:l},s&&yw),k=!0===c?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:ew(n*i)/i||0,y:ew(r*i)/i||0}}({x:p,y:v},qb(n)):{x:p,y:v};return p=k.x,v=k.y,a?Object.assign({},D,((E={})[w]=y?"0":"",E[b]=g?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",E)):Object.assign({},D,((t={})[w]=y?v+"px":"",t[b]=g?p+"px":"",t.transform="",t))}var ww={passive:!0};var xw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=void 0===i||i,u=r.resize,l=void 0===u||u,a=qb(t.elements.popper),s=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&s.forEach((function(e){e.addEventListener("scroll",n.update,ww)})),l&&a.addEventListener("resize",n.update,ww),function(){o&&s.forEach((function(e){e.removeEventListener("scroll",n.update,ww)})),l&&a.removeEventListener("resize",n.update,ww)}},data:{}},jw={left:"right",right:"left",bottom:"top",top:"bottom"};function Ow(e){return e.replace(/left|right|bottom|top/g,(function(e){return jw[e]}))}var Sw={start:"end",end:"start"};function Ew(e){return e.replace(/start|end/g,(function(e){return Sw[e]}))}function Dw(e){var t=qb(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function kw(e){return rw(aw(e)).left+Dw(e).scrollLeft}function Mw(e){var t=uw(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function _w(e){return["html","body","#document"].indexOf(Wb(e))>=0?e.ownerDocument.body:Xb(e)&&Mw(e)?e:_w(sw(e))}function Aw(e,t){var n;void 0===t&&(t=[]);var r=_w(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),o=qb(r),u=i?[o].concat(o.visualViewport||[],Mw(r)?r:[]):r,l=t.concat(u);return i?l:l.concat(Aw(sw(u)))}function Pw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Tw(e,t,n){return t===Cb?Pw(function(e,t){var n=qb(e),r=aw(e),i=n.visualViewport,o=r.clientWidth,u=r.clientHeight,l=0,a=0;if(i){o=i.width,u=i.height;var s=nw();(s||!s&&"fixed"===t)&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:u,x:l+kw(e),y:a}}(e,n)):Vb(t)?function(e,t){var n=rw(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Pw(function(e){var t,n=aw(e),r=Dw(e),i=null==(t=e.ownerDocument)?void 0:t.body,o=Jb(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),u=Jb(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+kw(e),a=-r.scrollTop;return"rtl"===uw(i||n).direction&&(l+=Jb(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:u,x:l,y:a}}(aw(e)))}function Yw(e,t,n,r){var i="clippingParents"===t?function(e){var t=Aw(sw(e)),n=["absolute","fixed"].indexOf(uw(e).position)>=0&&Xb(e)?fw(e):e;return Vb(n)?t.filter((function(e){return Vb(e)&&ow(e,n)&&"body"!==Wb(e)})):[]}(e):[].concat(t),o=[].concat(i,[n]),u=o[0],l=o.reduce((function(t,n){var i=Tw(e,n,r);return t.top=Jb(i.top,t.top),t.right=Qb(i.right,t.right),t.bottom=Qb(i.bottom,t.bottom),t.left=Jb(i.left,t.left),t}),Tw(e,u,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Hw(e){var t,n=e.reference,r=e.element,i=e.placement,o=i?Kb(i):null,u=i?gw(i):null,l=n.x+n.width/2-r.width/2,a=n.y+n.height/2-r.height/2;switch(o){case Ab:t={x:l,y:n.y-r.height};break;case Pb:t={x:l,y:n.y+n.height};break;case Tb:t={x:n.x+n.width,y:a};break;case Yb:t={x:n.x-r.width,y:a};break;default:t={x:n.x,y:n.y}}var s=o?dw(o):null;if(null!=s){var c="y"===s?"height":"width";switch(u){case Lb:t[s]=t[s]-(n[c]/2-r[c]/2);break;case Nb:t[s]=t[s]+(n[c]/2-r[c]/2)}}return t}function Iw(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,o=n.strategy,u=void 0===o?e.strategy:o,l=n.boundary,a=void 0===l?$b:l,s=n.rootBoundary,c=void 0===s?Cb:s,f=n.elementContext,d=void 0===f?Bb:f,p=n.altBoundary,h=void 0!==p&&p,v=n.padding,m=void 0===v?0:v,g=hw("number"!=typeof m?m:vw(m,Ib)),y=d===Bb?Fb:Bb,b=e.rects.popper,w=e.elements[h?y:d],x=Yw(Vb(w)?w:w.contextElement||aw(e.elements.popper),a,c,u),j=rw(e.elements.reference),O=Hw({reference:j,element:b,strategy:"absolute",placement:i}),S=Pw(Object.assign({},b,O)),E=d===Bb?S:j,D={top:x.top-E.top+g.top,bottom:E.bottom-x.bottom+g.bottom,left:x.left-E.left+g.left,right:E.right-x.right+g.right},k=e.modifiersData.offset;if(d===Bb&&k){var M=k[i];Object.keys(D).forEach((function(e){var t=[Tb,Pb].indexOf(e)>=0?1:-1,n=[Ab,Pb].indexOf(e)>=0?"y":"x";D[e]+=M[n]*t}))}return D}function Lw(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,u=n.padding,l=n.flipVariations,a=n.allowedAutoPlacements,s=void 0===a?zb:a,c=gw(r),f=c?l?Rb:Rb.filter((function(e){return gw(e)===c})):Ib,d=f.filter((function(e){return s.indexOf(e)>=0}));0===d.length&&(d=f);var p=d.reduce((function(t,n){return t[n]=Iw(e,{placement:n,boundary:i,rootBoundary:o,padding:u})[Kb(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var Nw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=void 0===i||i,u=n.altAxis,l=void 0===u||u,a=n.fallbackPlacements,s=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,h=void 0===p||p,v=n.allowedAutoPlacements,m=t.options.placement,g=Kb(m),y=a||(g===m||!h?[Ow(m)]:function(e){if(Kb(e)===Hb)return[];var t=Ow(e);return[Ew(e),t,Ew(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(Kb(n)===Hb?Lw(t,{placement:n,boundary:c,rootBoundary:f,padding:s,flipVariations:h,allowedAutoPlacements:v}):n)}),[]),w=t.rects.reference,x=t.rects.popper,j=new Map,O=!0,S=b[0],E=0;E<b.length;E++){var D=b[E],k=Kb(D),M=gw(D)===Lb,_=[Ab,Pb].indexOf(k)>=0,A=_?"width":"height",P=Iw(t,{placement:D,boundary:c,rootBoundary:f,altBoundary:d,padding:s}),T=_?M?Tb:Yb:M?Pb:Ab;w[A]>x[A]&&(T=Ow(T));var Y=Ow(T),H=[];if(o&&H.push(P[k]<=0),l&&H.push(P[T]<=0,P[Y]<=0),H.every((function(e){return e}))){S=D,O=!1;break}j.set(D,H)}if(O)for(var I=function(e){var t=b.find((function(t){var n=j.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},L=h?3:1;L>0;L--){if("break"===I(L))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function $w(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Cw(e){return[Ab,Tb,Pb,Yb].some((function(t){return e[t]>=0}))}var Bw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=void 0===i?[0,0]:i,u=zb.reduce((function(e,n){return e[n]=function(e,t,n){var r=Kb(e),i=[Yb,Ab].indexOf(r)>=0?-1:1,o="function"==typeof n?n(Object.assign({},t,{placement:e})):n,u=o[0],l=o[1];return u=u||0,l=(l||0)*i,[Yb,Tb].indexOf(r)>=0?{x:l,y:u}:{x:u,y:l}}(n,t.rects,o),e}),{}),l=u[t.placement],a=l.x,s=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=u}};var Fw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=void 0===i||i,u=n.altAxis,l=void 0!==u&&u,a=n.boundary,s=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=void 0===d||d,h=n.tetherOffset,v=void 0===h?0:h,m=Iw(t,{boundary:a,rootBoundary:s,padding:f,altBoundary:c}),g=Kb(t.placement),y=gw(t.placement),b=!y,w=dw(g),x="x"===w?"y":"x",j=t.modifiersData.popperOffsets,O=t.rects.reference,S=t.rects.popper,E="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,D="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(j){if(o){var _,A="y"===w?Ab:Yb,P="y"===w?Pb:Tb,T="y"===w?"height":"width",Y=j[w],H=Y+m[A],I=Y-m[P],L=p?-S[T]/2:0,N=y===Lb?O[T]:S[T],$=y===Lb?-S[T]:-O[T],C=t.elements.arrow,B=p&&C?iw(C):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},R=F[A],z=F[P],U=pw(0,O[T],B[T]),W=b?O[T]/2-L-U-R-D.mainAxis:N-U-R-D.mainAxis,q=b?-O[T]/2+L+U+z+D.mainAxis:$+U+z+D.mainAxis,V=t.elements.arrow&&fw(t.elements.arrow),X=V?"y"===w?V.clientTop||0:V.clientLeft||0:0,Z=null!=(_=null==k?void 0:k[w])?_:0,G=Y+q-Z,K=pw(p?Qb(H,Y+W-Z-X):H,Y,p?Jb(I,G):I);j[w]=K,M[w]=K-Y}if(l){var J,Q="x"===w?Ab:Yb,ee="x"===w?Pb:Tb,te=j[x],ne="y"===x?"height":"width",re=te+m[Q],ie=te-m[ee],oe=-1!==[Ab,Yb].indexOf(g),ue=null!=(J=null==k?void 0:k[x])?J:0,le=oe?re:te-O[ne]-S[ne]-ue+D.altAxis,ae=oe?te+O[ne]+S[ne]-ue-D.altAxis:ie,se=p&&oe?function(e,t,n){var r=pw(e,t,n);return r>n?n:r}(le,te,ae):pw(p?le:re,te,p?ae:ie);j[x]=se,M[x]=se-te}t.modifiersData[r]=M}},requiresIfExists:["offset"]};function Rw(e,t,n){void 0===n&&(n=!1);var r,i,o=Xb(t),u=Xb(t)&&function(e){var t=e.getBoundingClientRect(),n=ew(t.width)/e.offsetWidth||1,r=ew(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),l=aw(t),a=rw(e,u,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!n)&&(("body"!==Wb(t)||Mw(l))&&(s=(r=t)!==qb(r)&&Xb(r)?{scrollLeft:(i=r).scrollLeft,scrollTop:i.scrollTop}:Dw(r)),Xb(t)?((c=rw(t,!0)).x+=t.clientLeft,c.y+=t.clientTop):l&&(c.x=kw(l))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function zw(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}var Uw={placement:"bottom",modifiers:[],strategy:"absolute"};function Ww(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function qw(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,o=void 0===i?Uw:i;return function(e,t,n){void 0===n&&(n=o);var i,u,l={placement:"bottom",orderedModifiers:[],options:Object.assign({},Uw,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],s=!1,c={state:l,setOptions:function(n){var i="function"==typeof n?n(l.options):n;f(),l.options=Object.assign({},o,l.options,i),l.scrollParents={reference:Vb(e)?Aw(e):e.contextElement?Aw(e.contextElement):[],popper:Aw(t)};var u,s,d=function(e){var t=zw(e);return Ub.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((u=[].concat(r,l.options.modifiers),s=u.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(s).map((function(e){return s[e]}))));return l.orderedModifiers=d.filter((function(e){return e.enabled})),l.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var o=i({state:l,name:t,instance:c,options:r}),u=function(){};a.push(o||u)}})),c.update()},forceUpdate:function(){if(!s){var e=l.elements,t=e.reference,n=e.popper;if(Ww(t,n)){l.rects={reference:Rw(t,fw(n),"fixed"===l.options.strategy),popper:iw(n)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach((function(e){return l.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<l.orderedModifiers.length;r++)if(!0!==l.reset){var i=l.orderedModifiers[r],o=i.fn,u=i.options,a=void 0===u?{}:u,f=i.name;"function"==typeof o&&(l=o({state:l,options:a,name:f,instance:c})||l)}else l.reset=!1,r=-1}}},update:(i=function(){return new Promise((function(e){c.forceUpdate(),e(l)}))},function(){return u||(u=new Promise((function(e){Promise.resolve().then((function(){u=void 0,e(i())}))}))),u}),destroy:function(){f(),s=!0}};if(!Ww(e,t))return c;function f(){a.forEach((function(e){return e()})),a=[]}return c.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),c}}var Vw=qw({defaultModifiers:[xw,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Hw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,o=n.adaptive,u=void 0===o||o,l=n.roundOffsets,a=void 0===l||l,s={placement:Kb(t.placement),variation:gw(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,bw(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,bw(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Gb,Bw,Nw,Fw,mw,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,u=Iw(t,{elementContext:"reference"}),l=Iw(t,{altBoundary:!0}),a=$w(u,r),s=$w(l,i,o),c=Cw(a),f=Cw(s);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:s,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Xw="tippy-content",Zw="tippy-backdrop",Gw="tippy-arrow",Kw="tippy-svg-arrow",Jw={passive:!0,capture:!0},Qw=function(){return document.body};function ex(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function tx(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function nx(e,t){return"function"==typeof e?e.apply(void 0,t):e}function rx(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function ix(e){return[].concat(e)}function ox(e,t){-1===e.indexOf(t)&&e.push(t)}function ux(e){return[].slice.call(e)}function lx(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function ax(){return document.createElement("div")}function sx(e){return["Element","Fragment"].some((function(t){return tx(e,t)}))}function cx(e){return sx(e)?[e]:function(e){return tx(e,"NodeList")}(e)?ux(e):Array.isArray(e)?e:ux(document.querySelectorAll(e))}function fx(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function dx(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function px(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}function hx(e,t){for(var n=t;n;){var r;if(e.contains(n))return!0;n=null==n.getRootNode||null==(r=n.getRootNode())?void 0:r.host}return!1}var vx={isTouch:!1},mx=0;function gx(){vx.isTouch||(vx.isTouch=!0,window.performance&&document.addEventListener("mousemove",yx))}function yx(){var e=performance.now();e-mx<20&&(vx.isTouch=!1,document.removeEventListener("mousemove",yx)),mx=e}function bx(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var wx,xx=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;function jx(e){return[e+"() was called on a"+("destroy"===e?"n already-":" ")+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function Ox(e){return e.replace(/[ \t]{2,}/g," ").replace(/^[ \t]*/gm,"").trim()}function Sx(e){return Ox("\n %ctippy.js\n\n %c"+Ox(e)+"\n\n %c👷‍ This is a development-only message. It will be removed in production.\n ")}function Ex(e){return[Sx(e),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}function Dx(e,t){var n;e&&!wx.has(t)&&(wx.add(t),(n=console).warn.apply(n,Ex(t)))}function kx(e,t){var n;e&&!wx.has(t)&&(wx.add(t),(n=console).error.apply(n,Ex(t)))}wx=new Set;var Mx={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},_x=Object.assign({appendTo:Qw,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Mx,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),Ax=Object.keys(_x);function Px(e){var t=(e.plugins||[]).reduce((function(t,n){var r,i=n.name,o=n.defaultValue;i&&(t[i]=void 0!==e[i]?e[i]:null!=(r=_x[i])?r:o);return t}),{});return Object.assign({},e,t)}function Tx(e,t){var n=Object.assign({},t,{content:nx(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Px(Object.assign({},_x,{plugins:t}))):Ax).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},_x.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Yx(e,t){void 0===e&&(e={}),void 0===t&&(t=[]),Object.keys(e).forEach((function(e){var n,r,i=function(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}(_x,Object.keys(Mx)),o=(n=i,r=e,!{}.hasOwnProperty.call(n,r));o&&(o=0===t.filter((function(t){return t.name===e})).length),Dx(o,["`"+e+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.","\n\n","All props: https://atomiks.github.io/tippyjs/v6/all-props/\n","Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))}))}var Hx=function(){return"innerHTML"};function Ix(e,t){e[Hx()]=t}function Lx(e){var t=ax();return!0===e?t.className=Gw:(t.className=Kw,sx(e)?t.appendChild(e):Ix(t,e)),t}function Nx(e,t){sx(t.content)?(Ix(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ix(e,t.content):e.textContent=t.content)}function $x(e){var t=e.firstElementChild,n=ux(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Xw)})),arrow:n.find((function(e){return e.classList.contains(Gw)||e.classList.contains(Kw)})),backdrop:n.find((function(e){return e.classList.contains(Zw)}))}}function Cx(e){var t=ax(),n=ax();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=ax();function i(n,r){var i=$x(t),o=i.box,u=i.content,l=i.arrow;r.theme?o.setAttribute("data-theme",r.theme):o.removeAttribute("data-theme"),"string"==typeof r.animation?o.setAttribute("data-animation",r.animation):o.removeAttribute("data-animation"),r.inertia?o.setAttribute("data-inertia",""):o.removeAttribute("data-inertia"),o.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?o.setAttribute("role",r.role):o.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||Nx(u,e.props),r.arrow?l?n.arrow!==r.arrow&&(o.removeChild(l),o.appendChild(Lx(r.arrow))):o.appendChild(Lx(r.arrow)):l&&o.removeChild(l)}return r.className=Xw,r.setAttribute("data-state","hidden"),Nx(r,e.props),t.appendChild(n),n.appendChild(r),i(e.props,e.props),{popper:t,onUpdate:i}}Cx.$$tippy=!0;var Bx=1,Fx=[],Rx=[];function zx(e,t){var n,r,i,o,u,l,a,s,c=Tx(e,Object.assign({},_x,Px(lx(t)))),f=!1,d=!1,p=!1,h=!1,v=[],m=rx(V,c.interactiveDebounce),g=Bx++,y=(s=c.plugins).filter((function(e,t){return s.indexOf(e)===t})),b={id:g,reference:e,popper:ax(),popperInstance:null,props:c,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(r),cancelAnimationFrame(i)},setProps:function(t){if(Dx(b.state.isDestroyed,jx("setProps")),b.state.isDestroyed)return;Y("onBeforeUpdate",[b,t]),W();var n=b.props,r=Tx(e,Object.assign({},n,lx(t),{ignoreAttributes:!0}));b.props=r,U(),n.interactiveDebounce!==r.interactiveDebounce&&(L(),m=rx(V,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?ix(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");I(),T(),j&&j(n,r);b.popperInstance&&(K(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));Y("onAfterUpdate",[b,t])},setContent:function(e){b.setProps({content:e})},show:function(){Dx(b.state.isDestroyed,jx("show"));var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=vx.isTouch&&!b.props.touch,i=ex(b.props.duration,0,_x.duration);if(e||t||n||r)return;if(M().hasAttribute("disabled"))return;if(Y("onShow",[b],!1),!1===b.props.onShow(b))return;b.state.isVisible=!0,k()&&(x.style.visibility="visible");T(),B(),b.state.isMounted||(x.style.transition="none");if(k()){var o=A();fx([o.box,o.content],0)}l=function(){var e;if(b.state.isVisible&&!h){if(h=!0,x.offsetHeight,x.style.transition=b.props.moveTransition,k()&&b.props.animation){var t=A(),n=t.box,r=t.content;fx([n,r],i),dx([n,r],"visible")}H(),I(),ox(Rx,b),null==(e=b.popperInstance)||e.forceUpdate(),Y("onMount",[b]),b.props.animation&&k()&&function(e,t){R(e,t)}(i,(function(){b.state.isShown=!0,Y("onShown",[b])}))}},function(){var e,t=b.props.appendTo,n=M();e=b.props.interactive&&t===Qw||"parent"===t?n.parentNode:nx(t,[n]);e.contains(x)||e.appendChild(x);b.state.isMounted=!0,K(),Dx(b.props.interactive&&t===_x.appendTo&&n.nextElementSibling!==x,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.","\n\n","Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.","\n\n","Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.","\n\n","See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}()},hide:function(){Dx(b.state.isDestroyed,jx("hide"));var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,r=ex(b.props.duration,1,_x.duration);if(e||t||n)return;if(Y("onHide",[b],!1),!1===b.props.onHide(b))return;b.state.isVisible=!1,b.state.isShown=!1,h=!1,f=!1,k()&&(x.style.visibility="hidden");if(L(),F(),T(!0),k()){var i=A(),o=i.box,u=i.content;b.props.animation&&(fx([o,u],r),dx([o,u],"hidden"))}H(),I(),b.props.animation?k()&&function(e,t){R(e,(function(){!b.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&t()}))}(r,b.unmount):b.unmount()},hideWithInteractivity:function(e){Dx(b.state.isDestroyed,jx("hideWithInteractivity")),_().addEventListener("mousemove",m),ox(Fx,m),m(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){Dx(b.state.isDestroyed,jx("unmount")),b.state.isVisible&&b.hide();if(!b.state.isMounted)return;J(),Q().forEach((function(e){e._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);Rx=Rx.filter((function(e){return e!==b})),b.state.isMounted=!1,Y("onHidden",[b])},destroy:function(){if(Dx(b.state.isDestroyed,jx("destroy")),b.state.isDestroyed)return;b.clearDelayTimeouts(),b.unmount(),W(),delete e._tippy,b.state.isDestroyed=!0,Y("onDestroy",[b])}};if(!c.render)return kx(!0,"render() function has not been supplied."),b;var w=c.render(b),x=w.popper,j=w.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+b.id,b.popper=x,e._tippy=b,x._tippy=b;var O=y.map((function(e){return e.fn(b)})),S=e.hasAttribute("aria-expanded");return U(),I(),T(),Y("onCreate",[b]),c.showOnCreate&&ee(),x.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&_().addEventListener("mousemove",m)})),b;function E(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function D(){return"hold"===E()[0]}function k(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function M(){return a||e}function _(){var e,t,n=M().parentNode;return n?null!=(t=ix(n)[0])&&null!=(e=t.ownerDocument)&&e.body?t.ownerDocument:document:document}function A(){return $x(x)}function P(e){return b.state.isMounted&&!b.state.isVisible||vx.isTouch||o&&"focus"===o.type?0:ex(b.props.delay,e?0:1,_x.delay)}function T(e){void 0===e&&(e=!1),x.style.pointerEvents=b.props.interactive&&!e?"":"none",x.style.zIndex=""+b.props.zIndex}function Y(e,t,n){var r;(void 0===n&&(n=!0),O.forEach((function(n){n[e]&&n[e].apply(n,t)})),n)&&(r=b.props)[e].apply(r,t)}function H(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,r=x.id;ix(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var i=t&&t.replace(r,"").trim();i?e.setAttribute(n,i):e.removeAttribute(n)}}))}}function I(){!S&&b.props.aria.expanded&&ix(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===M()?"true":"false"):e.removeAttribute("aria-expanded")}))}function L(){_().removeEventListener("mousemove",m),Fx=Fx.filter((function(e){return e!==m}))}function N(t){if(!vx.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!hx(x,n)){if(ix(b.props.triggerTarget||e).some((function(e){return hx(e,n)}))){if(vx.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else Y("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),d=!0,setTimeout((function(){d=!1})),b.state.isMounted||F())}}}function $(){p=!0}function C(){p=!1}function B(){var e=_();e.addEventListener("mousedown",N,!0),e.addEventListener("touchend",N,Jw),e.addEventListener("touchstart",C,Jw),e.addEventListener("touchmove",$,Jw)}function F(){var e=_();e.removeEventListener("mousedown",N,!0),e.removeEventListener("touchend",N,Jw),e.removeEventListener("touchstart",C,Jw),e.removeEventListener("touchmove",$,Jw)}function R(e,t){var n=A().box;function r(e){e.target===n&&(px(n,"remove",r),t())}if(0===e)return t();px(n,"remove",u),px(n,"add",r),u=r}function z(t,n,r){void 0===r&&(r=!1),ix(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),v.push({node:e,eventType:t,handler:n,options:r})}))}function U(){var e;D()&&(z("touchstart",q,{passive:!0}),z("touchend",X,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(z(e,q),e){case"mouseenter":z("mouseleave",X);break;case"focus":z(xx?"focusout":"blur",Z);break;case"focusin":z("focusout",Z)}}))}function W(){v.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,i=e.options;t.removeEventListener(n,r,i)})),v=[]}function q(e){var t,n=!1;if(b.state.isEnabled&&!G(e)&&!d){var r="focus"===(null==(t=o)?void 0:t.type);o=e,a=e.currentTarget,I(),!b.state.isVisible&&tx(e,"MouseEvent")&&Fx.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||f)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(f=!n),n&&!r&&te(e)}}function V(e){var t=e.target,n=M().contains(t)||x.contains(t);if("mousemove"!==e.type||!n){var r=Q().concat(x).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:c}:null})).filter(Boolean);(function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,i=e.popperState,o=e.props.interactiveBorder,u=i.placement.split("-")[0],l=i.modifiersData.offset;if(!l)return!0;var a="bottom"===u?l.top.y:0,s="top"===u?l.bottom.y:0,c="right"===u?l.left.x:0,f="left"===u?l.right.x:0,d=t.top-r+a>o,p=r-t.bottom-s>o,h=t.left-n+c>o,v=n-t.right-f>o;return d||p||h||v}))})(r,e)&&(L(),te(e))}}function X(e){G(e)||b.props.trigger.indexOf("click")>=0&&f||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function Z(e){b.props.trigger.indexOf("focusin")<0&&e.target!==M()||b.props.interactive&&e.relatedTarget&&x.contains(e.relatedTarget)||te(e)}function G(e){return!!vx.isTouch&&D()!==e.type.indexOf("touch")>=0}function K(){J();var t=b.props,n=t.popperOptions,r=t.placement,i=t.offset,o=t.getReferenceClientRect,u=t.moveTransition,a=k()?$x(x).arrow:null,s=o?{getBoundingClientRect:o,contextElement:o.contextElement||M()}:e,c={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}},f=[{name:"offset",options:{offset:i}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!u}},c];k()&&a&&f.push({name:"arrow",options:{element:a,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),b.popperInstance=Vw(s,x,Object.assign({},n,{placement:r,onFirstUpdate:l,modifiers:f}))}function J(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return ux(x.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&Y("onTrigger",[b,e]),B();var t=P(!0),r=E(),i=r[0],o=r[1];vx.isTouch&&"hold"===i&&o&&(t=o),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),Y("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=P(!1);t?r=setTimeout((function(){b.state.isVisible&&b.hide()}),t):i=requestAnimationFrame((function(){b.hide()}))}}else F()}}function Ux(e,t){void 0===t&&(t={});var n=_x.plugins.concat(t.plugins||[]);!function(e){var t=!e,n="[object Object]"===Object.prototype.toString.call(e)&&!e.addEventListener;kx(t,["tippy() was passed","`"+String(e)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),kx(n,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}(e),Yx(t,n),document.addEventListener("touchstart",gx,Jw),window.addEventListener("blur",bx);var r=Object.assign({},t,{plugins:n}),i=cx(e),o=sx(r.content),u=i.length>1;Dx(o&&u,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.","\n\n","Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.","\n\n","1) content: element.innerHTML\n","2) content: () => element.cloneNode(true)"].join(" "));var l=i.reduce((function(e,t){var n=t&&zx(t,r);return n&&e.push(n),e}),[]);return sx(e)?l[0]:l}function Wx(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}Ux.defaultProps=_x,Ux.setDefaultProps=function(e){Yx(e,[]),Object.keys(e).forEach((function(t){_x[t]=e[t]}))},Ux.currentInput=vx,Object.assign({},Gb,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Ux.setDefaultProps({render:Cx});Wx('.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}');function qx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qx(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}async function Xx(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!wp(e))throw new Error("invalid fun");let n=Ft(t,"width");n=qt(n)?ep(n):Xt(n)?sa(n):null;let r=Ft(t,"height");r=qt(r)?ep(r):Xt(r)?sa(r):null;let i=document.createElement("div");Xt(n)&&(i.style.width=`${n}px`),Xt(r)&&(i.style.height=`${r}px`);let o=document.createElement("div");o.style.position="absolute",o.style.top=0,o.style.left=0,o.style.zIndex=-1,o.appendChild(i);let u=document.createElement("div");u.style.position="relative",u.appendChild(o);let l,a=document.createElement("div");a.style.position="fixed",a.style.zIndex=-1,a.appendChild(u),cg(document.querySelector("body"),a);let s=e(i);return l=Rh(s)?await s:s,sg(a),l}function Zx(e){if(!wp(e))throw new Error("fn is not a function");return function(){let t=Mh(),n=null,r=null;try{n=e.apply(this,arguments)}catch(e){r=e}return null!==r?t.resolve({state:"error",msg:r}):Rh(n)?n.then((e=>{t.resolve({state:"success",msg:e})})).catch((e=>{"cancelled"===Ft(e,"reason")?t.resolve({state:"cancelled",msg:""}):t.resolve({state:"error",msg:e})})):t.resolve({state:"success",msg:n}),t}}Wx(".tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px rgba(154,161,177,.15),0 4px 80px -8px rgba(36,40,47,.25),0 4px 4px -2px rgba(91,94,105,.15);background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}");let Gx=Zx;function Kx(e){if(!ca(e))return!1;return qc(e)<0}function Jx(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=0,n=[];Kx(e)&&(e=0),e=qc(e);let r=$c();return r.get=function(){if(n.length>0){return t+=1,n.splice(0,1)[0]}return null},r.cb=function(){t-=1,t<0&&(t=0),n.length>0&&r.emit("message",n)},r.push=function(i){n.push(i),(e<=0||t<e)&&r.emit("message",n)},r.clear=function(){t=0,n=[]},r}function Qx(){return new function(e,t){let n=null;_f(e)||(e=0),e=qc(e),Tl(t)||(t=!1);let r=Jx(e);return r.on("message",(async function(e){let t=r.get();if(!t)return;await Cm(1);let n,i=Ft(t,"id"),o=Ft(t,"fun"),u=Ft(t,"input");n=wp(o)?await Gx(o)(...u):{state:"error",msg:"fun is not a function"},r.emit(i,n),r.cb()})),function(e){let i=Mh(),o=Rm();n=o;for(var u=arguments.length,l=new Array(u>1?u-1:0),a=1;a<u;a++)l[a-1]=arguments[a];let s={id:o,fun:e,input:l};return r.push(s),r.once(o,(e=>{t?o===n?"success"===e.state?i.resolve(e.msg):i.reject(e.msg):i.reject({reason:"cancelled"}):"success"===e.state?i.resolve(e.msg):i.reject(e.msg)})),i}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]&&arguments[1])}function ej(e,t){Nl()?qt(e)?Qm()?function(e,t){window.navigator.msSaveOrOpenBlob(t,e)}(e,t):function(e,t){let n=window.URL.createObjectURL(t),r=document.createElement("a");r.href=n,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),window.URL.revokeObjectURL(n)}(e,t):console.log("no filename"):console.log("no window")}function tj(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!Rt(e))return{error:"sheet is not an object"};qt(t)||(t="data");let n=Lm();return n.SheetNames.push(t),n.Sheets[t]=e,n}function nj(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!Ut(e)&&!Ko(e))return{error:"data is not an array or element"};qt(t)||(t="data");let n=null,r=Bl(e);return Zt(r,"error")?r:(n=tj(r,t),Zt(n,"error"),n)}function rj(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",n=arguments.length>2?arguments[2]:void 0;if(!qt(e)){let t="no filename";return console.log(t,e),{error:t}}if(qt(t)||(t="data"),!Ut(n)&&!Ko(n)){let e="data is not an array or element";return console.log(e,n),{error:e}}Ut(n)&&zt(Ft(n,0,null))&&(n=Ll(n));let r=nj(n,t);if(Ft(r,"error"))return console.log(r.error),r.error;let i=Cl();if(Nl()){let t=i.write(r,{bookType:"xlsx",bookSST:!1,type:"array"});ej(e,new Blob([t]))}else i.writeFile(r,e);return"ok"}function ij(e){if(!Sh(e))return new Blob;return new Blob([e])}function oj(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!Yu(t))return{};let r={};return ou(t,(function(t){r[t]=Ft(e,t,n)})),r}function uj(e,t){if(!Rt(e))return{};if(!Yu(t))return{};let n={};return ou(t,(function(t){Zt(e,t)&&(n[t]=Ft(e,t))})),n}var lj=Wg,aj=function(e,t){return e>t},sj=fo;var cj=y((function(e){return e&&e.length?lj(e,sj,aj):void 0})),fj=wt;var dj=function(e,t){return fj(t,(function(t){return e[t]}))},pj=Zn;var hj=y((function(e){return null==e?[]:dj(e,pj(e))}));var vj=er;var mj=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var u=e[i];t(r,u,n(u),e)}return r},gj=function(e,t,n,r){return vj(e,(function(e,i,o){t(r,e,n(e),o)})),r},yj=Do,bj=b;var wj=Ba,xj=function(e,t){return function(n,r){var i=bj(n)?mj:gj,o=t?t():{};return i(n,e,yj(r),o)}},jj=Object.prototype.hasOwnProperty,Oj=y(xj((function(e,t,n){jj.call(e,n)?e[n].push(t):wj(e,n,[t])}))),Sj=Do,Ej=Wn,Dj=Zn;var kj=function(e){return function(t,n,r){var i=Object(t);if(!Ej(t)){var o=Sj(n);t=Dj(t),n=function(e){return o(i[e],e,i)}}var u=e(t,n,r);return u>-1?i[o?t[u]:u]:void 0}},Mj=Hu,_j=Do,Aj=ua,Pj=Math.max;var Tj=y(kj((function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Aj(n);return i<0&&(i=Pj(r+i,0)),Mj(e,_j(t),i)})));function Yj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yj(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ij(e,t){if(!Ut(e)||!Ut(t))return[];if(e.length!==t.length)return[];return pu(e,(function(n,r){return Db(e[r],t[r])}))}function Lj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lj(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $j(e){return!!u.existsSync(e)&&(!u.lstatSync(e).isFile()&&!u.lstatSync(e).isSymbolicLink())}function Cj(e){if(!u.existsSync(e))return{success:"folder does not exist: "+e};if(!$j(e))return{error:"input path is not a folder: "+e};try{u.readdirSync(e).forEach((function(t){let n=e+"/"+t;if(u.lstatSync(n).isDirectory())Cj(n);else try{u.unlinkSync(n)}catch(e){}}))}catch(e){return{error:e}}try{u.rmdirSync(e)}catch(e){return{error:e}}return{success:"done: "+e}}function Bj(e){if($j(e))return{success:"input folder is already exists: "+e};if(u.existsSync(e))return{error:"input path already exists: "+e};try{u.mkdirSync(e,{recursive:!0})}catch(e){return{error:e}}return{success:"done: "+e}}function Fj(e){return!!u.existsSync(e)&&(!u.lstatSync(e).isDirectory()&&!u.lstatSync(e).isSymbolicLink())}function Rj(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=[],r=$c(),i=Ft(e,"timeDetect");Vc(i)||(i=50),i=qc(i);let o=Ft(e,"timeRewatch");function l(e){let t="";try{let n=u.readFileSync(e);t=a.createHash("md5").update(n).digest("base64")}catch(e){}return t}return Vc(o)||(o=1e3),o=qc(o),r.on=function(e,r){let a=null,s=setInterval((()=>{if(Fj(e)){u.stat(e,((t,n)=>{t||(a=l(e),r({tag:a,stats:n}))}));let t=(t,n)=>{let i=l(e);a!==i&&(a=i,r({tag:a,stats:t}))};u.watchFile(e,{interval:i},t),n.push({fp:e,func:t}),clearInterval(s)}}),o);t.push({fp:e,t:s})},r.off=function(e){ou(t,(t=>{t.fp===e&&clearInterval(t.t)})),ou(n,(t=>{t.fp===e&&u.unwatchFile(t.fp,t.func)}))},r.clear=function(){ou(t,(e=>{clearInterval(e.t)})),ou(n,(e=>{u.unwatchFile(e.fp,e.func)}))},r}function zj(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=1;return function e(r){let i=[],o=u.readdirSync(r);return ou(o,(function(o){let a=l.resolve(r,o),s=null;try{s=u.statSync(a)}catch(e){}s&&s.isDirectory()?(i.push({isFolder:!0,level:n,path:a,name:l.basename(a)}),n+=1,(n<=t||null===t)&&(i=i.concat(e(a))),n-=1):i.push({isFolder:!1,level:n,path:a,name:l.basename(a)})})),i}(e)}function Uj(e){return"[object Uint16Array]"===Object.prototype.toString.call(e)}function Wj(e){if(!(v(e)||Lh(e)||Sh(e)||Uj(e)))return null;try{if(e.byteLength)return e.byteLength}catch(e){}try{if(e.length)return e.length}catch(e){}try{if(e.size)return e.size}catch(e){}return null}function qj(e){if(!qt(e))return{path:"",isRoot:!1};for(;e.indexOf("\\\\")>=0;)e=e.replace("\\\\","\\");for(;e.indexOf("//")>=0;)e=e.replace("//","/");if(":"===ip(e,1))return{path:`${e}\\`,isRoot:!0};if("\\"===ip(e,1)){let t=eh(e,1);return":"===ip(t,1)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}if("/"===ip(e,1)){let t=eh(e,1);return 0===_l(t)?{path:e,isRoot:!0}:{path:t,isRoot:!1}}return{path:e,isRoot:!1}}function Vj(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!Yu(e)){return{error:"no data"}}let n=null;try{n=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?"":"\ufeff";return ou(e,(e=>{let n=[];ou(e,(e=>{Wt(e)?(e=Zh(e,"\r\n",""),e=Zh(e,"\r",""),e=`"${e=Zh(e,"\n","")}"`):e=Yl(e)?e?"true":"false":Xp(e),n.push(e)})),t+=If(n,",")+"\r\n"})),t}(e,t)}catch(e){return{error:e}}return n}function Xj(e){return Yl(e)?e?"true":"false":Xp(e)}function Zj(e,t){let n=[];return e.SheetNames.forEach((function(r){let i=Cl().utils.sheet_to_json(e.Sheets[r],{header:"A",defval:"",blankrows:!0});i=pu(i,(e=>hj(e))),t&&(i=pu(i,(e=>pu(e,(e=>Xj(e)))))),n.push({sheetname:r,data:i})})),n}function Gj(e,t){let n=Ft(t,"fmt","ltdt");if(!bp(["ltdt","csv","array"],n))return{error:"opt.fmt is not one of 'ltdt', 'csv', 'array'"};let r,i=Ft(t,"valueToString",!0);if(!Yl(i))return{error:"opt.valueToString is not a boolean"};try{r=Cl().read(e,{type:"buffer"})}catch(e){return console.log("error: ",e),{error:"can not read data from u8a"}}let o=null;try{"ltdt"===n?o=function(e,t){let n=[];return e.SheetNames.forEach((function(r){let i=Cl().utils.sheet_to_json(e.Sheets[r]);t&&(i=pu(i,(e=>(ou(e,((t,n)=>{e[n]=Xj(t)})),e)))),n.push({sheetname:r,data:i})})),n}(r,i):"array"===n?o=Zj(r,i):"csv"===n&&(o=function(e,t){let n=Zj(e,t);return ou(n,((e,t)=>{n[t].data=Vj(e.data,!1)})),n}(r,i))}catch(e){return console.log("error: ",e),{error:"can not convert data"}}return o}function Kj(e){if(!qt(e))return"";let t=qj(e);if(t.isRoot)return t.path;let n=t.path;try{n=n.split("\\").pop().split("/").pop()}catch(e){}return n}function Jj(e){if(!zt(e))return{error:"wb is not an effective object"};if(!Ut(Ft(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Rt(Ft(e,"Sheets")))return{error:"wb.Sheets is not an object"};let t=null;try{t=Nh(Cl().write(e,{bookType:"xlsx",type:"binary"}))}catch(e){return{error:e}}return t}var Qj=Jt,eO=eu,tO=ua,nO=4294967295,rO=Math.min;var iO=y((function(e,t){if((e=tO(e))<1||e>9007199254740991)return[];var n=nO,r=rO(e,nO);t=eO(t),e-=nO;for(var i=Qj(r,t);++n<e;)t(n);return i}));function oO(e){let t="";return"years"===e?t="YYYY":"months"===e?t="YYYY-MM":"days"===e?t="YYYY-MM-DD":"hours"===e?t="YYYY-MM-DDTHH":"minutes"===e?t="YYYY-MM-DDTHH:mm":"seconds"===e&&(t="YYYY-MM-DDTHH:mm:ss"),t}function uO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"days";if(!qt(e))return null;if(!qt(t))return null;let r=function(e,t){let r="";return"years"===t?r="-01-01T00:00:00":"months"===t?r="-01T00:00:00":"days"===t?r="T00:00:00":"hours"===t?r=":00:00":"minutes"===t&&(r=":00"),n(e+r,"YYYY-MM-DDTHH:mm:ss")}(e,t),i=oO(t);return e===r.format(i)?r:null}function lO(e){if(!qt(e))return!1;let t="YYYY-MM-DDTHH:mm:ss";return e===n(e,t).format(t)}function aO(e){if(!lO(e))return"";return n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")}function sO(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=function(){let e=$l();return s||e.UAParser}();e=Wt(t)?new n(t):new n;let r=e.getResult();return{browsername:r.browser.name,browserversion:r.browser.version,engineinfor:r.engine.name+r.engine.version,platform:r.os.name+r.os.version,devicetype:Ft(r.device,"type",""),cpuarchitecture:Ft(r.cpu,"architecture","")}}function cO(e,t){let n=$l().canvg.Canvg,r=e.querySelectorAll("svg");ou(r,(e=>{let r=sa(e.getAttribute("width")),i=sa(e.getAttribute("height"));if(r<=0)return console.log("svg width <=0"),!0;if(i<=0)return console.log("svg height <=0"),!0;let o=document.createElement("canvas");o.width=r*t,o.height=i*t;let u=o.getContext("2d");n.fromString(u,e.parentNode.innerHTML,{ignoreDimensions:!0,scaleWidth:o.width,scaleHeight:o.height}).start();let l=new Image;l.src=o.toDataURL("image/png"),l.style.width=`${r}px`,l.style.height=`${i}px`,e.parentNode.appendChild(l),e.parentNode.removeChild(e)}))}async function fO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return Promise.reject("invalid ele");let n=Ft(t,"scale",1);if(!yp(n))return Promise.reject("opt.scale is not a number");if(n<1)return Promise.reject("opt.scale can not less then 1");let r=Ft(t,"picType","image/jpeg");if("image/jpeg"!==r&&"image/png"!==r)return Promise.reject("opt.picType is not one of image/jpeg or image/png");let i=Ft(t,"toBase64",!0);if(!Tl(i))return Promise.reject("opt.toBase64 is not a boolean");let o=e.cloneNode(!0);Qm()&&cO(o,n);let u=document.createElement("div");u.style.position="absolute",u.style.top=0,u.style.left=0,u.style.zIndex=-1,u.appendChild(o);let l=document.createElement("div");l.style.position="relative",l.appendChild(u),cg(document.querySelector("body"),l);let a=$l().html2canvas,s=await a(u,{logging:!1,scale:n,x:0,y:0}),c=s;return i&&(c=s.toDataURL(r,1)),sg(l),c}function dO(e){let t=null;if(!qt(e))return"";let n=function(){let e=$l();return c||e.htmlparser||e.Tautologistics.NodeHtmlParser}(),r=new n.DefaultHandler((function(e,n){e&&(t=e)}));if(new n.Parser(r).parseComplete(e),null!==t)return t;let i=[];return function e(t){ou(t,(t=>{_l(t.children)>0&&e(t.children),"text"===t.type&&i.push(t.data)}))}(r.dom),i=If(i,""),i}let pO="in x-range",hO="out of x-range",vO="order list",mO="reverse order list";function gO(e,t){let n=null,r=null;return n=e[0].x,r=e[_l(e)-1].x,t<n?{err:hO,msg:`x[${t}] less than lower limit[${n}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:t>r?{err:hO,msg:`x[${t}] greater than upper limit[${r}]`,data:{ps:e,x:t,xmin:n,xmax:r}}:pO}function yO(e){if(!ca(e))return!1;return qc(e)<=0}function bO(e){if(!Xt(e))return!1;return sa(e)<=0}function wO(e){if(!Xt(e))return!1;return sa(e)>=0}function xO(e){if(!qt(e))return!1;return!(null===e.match(/^.*[A-Z]+.*$/))}function jO(e){if(!qt(e))return!1;return!(null===e.match(/^.*[a-z]+.*$/))}function OO(e){if(!qt(e))return!1;return!(null===e.match(/^.*[0-9]+.*$/))}function SO(e){if(!qt(e))return!1;let t="YYYY-MM-DDTHH:mm:ss.SSS";return e===n(e,t).format(t)}function EO(e){let t;return t=ip(e,1),"Z"===t?`${e=eh(e,1)}+00:00`:e}let DO={checkTZ:function(e){let t;return t=ip(e,1),"Z"===t||(t=ip(e,6),!!/[+|-]\d\d:\d\d/.test(t))},delTZ:function(e){let t;return t=ip(e,1),eh(e,"Z"===t?1:6)},normTZ:EO,sepTZ:function(e){let t=EO(e);return{t:eh(t,6),tz:ip(t,6)}}};function kO(e){if(!qt(e))return!1;if(!DO.checkTZ(e))return!1;let t=DO.delTZ(e),r="YYYY-MM-DDTHH:mm:ss.SSS";return t===n(t,r).format(r)}function MO(e){if(!qt(e))return!1;if(!DO.checkTZ(e))return!1;let t=DO.delTZ(e),r="YYYY-MM-DDTHH:mm:ss";return t===n(t,r).format(r)}function _O(e,t){if(!Yu(e))return[];if(!Yu(t))return[];if(!Yu(t[0]))return[];return pu(t,(function(t){let n=Jc(e,t);return ou(n,(function(e,t){void 0===e&&(n[t]="")})),n}))}function AO(){return n().format("YYYY-MM-DDTHH:mm:ss.SSSZ")}var PO=bu,TO=Ku,YO=Gy,HO=y(zp((function(e){return TO(PO(e,1,YO,!0))})));function IO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function LO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IO(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var NO=br,$O=Bu,CO=Fu,BO=wt,FO=wn,RO=wr;var zO=function(e,t,n,r){var i=-1,o=$O,u=!0,l=e.length,a=[],s=t.length;if(!l)return a;n&&(t=BO(t,FO(n))),r?(o=CO,u=!1):t.length>=200&&(o=RO,u=!1,t=new NO(t));e:for(;++i<l;){var c=e[i],f=null==n?c:n(c);if(c=r||0!==c?c:0,u&&f==f){for(var d=s;d--;)if(t[d]===f)continue e;a.push(c)}else o(t,f,r)||a.push(c)}return a},UO=zO,WO=bu,qO=Do,VO=Gy,XO=sm,ZO=zp((function(e,t){var n=XO(t);return VO(n)&&(n=void 0),VO(e)?UO(e,WO(t,1,VO,!0),qO(n)):[]})),GO=y(ZO);var KO=Lf;var JO=y((function(e){var t=null==e?0:e.length;return t?KO(e,1,t):[]}));function QO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function eS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QO(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tS(e){if(!qt(e))return"";let t=Ya.parse(e);return ya.stringify(t)}function nS(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!qt(e))return"";if(!qt(t))return"";if(!Yl(n))return"";let r=Pa.encrypt(e,t),i="";if(n)i=r.toString();else{let e=r.toString();i=ya.parse(e).toString(Ia)}return i}var rS={exports:{}};!function(e,t){var n;e.exports=(n=ha(),function(){if("function"==typeof ArrayBuffer){var e=n.lib.WordArray,t=e.init,r=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)};r.prototype=e}}(),n.lib.WordArray)}(rS);var iS=y(rS.exports);function oS(e){if(!Sh(e))return"";return iS.create(e).toString(ya)}function uS(e){return Uj(e)?new Uint8Array(e):new Uint8Array}function lS(e){return Uj(e)?oS(uS(e)):""}let aS="[Uint8Array]::";let sS="[Uint16Array]::";let cS={tagU8A:aS,u8arr2b64:function(e){return Sh(e)?aS+oS(e):e},b642u8arr:function(e){return Wt(e)&&rp(e,14)===aS?Oh(e=op(e,14)):e},tagU16A:sS,u16arr2b64:function(e){return Uj(e)?sS+lS(e):e},b642u16arr:function(e){return Wt(e)&&rp(e,15)===sS?Dh(e=op(e,15)):e}};var fS=I,dS=L,pS=Vo;var hS=function(e){if(!dS(e))return!1;var t=fS(e);return"[object Error]"==t||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!pS(e)},vS=y(hS);function mS(e){if(!Rt(e))return{results:"",binarys:[]};if(_u(e))return{results:"",binarys:[]};let t="",n=[];try{let r=-1;t=JSON.stringify(e,(function(e,t){if(Sh(t)){r+=1;let e=`[Uint8Array]::${r}`;return n.push(t),e}if(Uj(t)){r+=1;let e=`[Uint16Array]::${r}`;return n.push(t),e}if(v(t)){r+=1;let e=`[ArrayBuffer]::${r}`;return n.push(t),e}return vS(t)&&(t=t.toString()),t}))}catch(e){}return{results:t,binarys:n}}function gS(e){if(!qt(e))return new Uint8Array;let t;try{t=Oh(tS(e))}catch(e){return new Uint8Array}return t}function yS(e,t){if(!zt(e))return{};if(!wp(t))throw new Error("fun is not a function");let n=pu(e,((e,n)=>({k:n,v:e,t:t(e,n)})));n=Vp(n,"t");let r={};return ou(n,(e=>{r[e.k]=e.v})),r}async function bS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!qt(e))return Promise.reject("img is not an effective string");let n=Ft(t,"lang");qt(n)||(n="eng");let r=function(){let e=$l();return f||e.Tesseract}(),i=await r.createWorker();await i.load(),await i.loadLanguage(n),await i.initialize(n);let o=Ft(t,"whitelist");qt(o)&&await i.setParameters({tessedit_char_whitelist:o});let u=await i.recognize(e),{data:{text:l}}=u;return await i.terminate(),l}function wS(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};if(!wp(e))return null;function n(e,t){let n;return Mu(e)||ku(e)?t:(n=Ft(e,"data",null),n||e)}return wp(t)||(t=()=>{}),function(){let r,i=Mh(),o=t({mode:"before",data:arguments});return(Mu(o)||ku(o))&&(o=arguments),e(...o).then((e=>{r=t({mode:"afterThen",data:e}),e=n(r,e),i.resolve(e)})).catch((e=>{r=t({mode:"afterCatch",data:e}),e=n(r,e),i.reject(e)})),i}}function xS(e){if(!Wt(e))return null;if(""===e)return 0;return e.split("").reduce(((e,t)=>t.charCodeAt(0)+(e<<6)+(e<<16)-e),0)}let jS=0;function OS(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"start1";void 0===e?e=(new Date).getTime():"start1"===e&&(jS++,e=jS);let t=624,n=397,r=2147483648,i=2147483647,o=new Array(t),u=625,l=e=>{for(yp(e)?o[0]=e>>>0:(e=Xp(e),o[0]=xS(e)),u=1;u<t;u++){let e=o[u-1]^o[u-1]>>>30;o[u]=(1812433253*((4294901760&e)>>>16)<<16)+1812433253*(65535&e)+u,o[u]>>>=0}};return l(e),(()=>{let e,a=new Array(2567483615);if(u>=t){let s;for(625===u&&l(5489),s=0;s<227;s++)e=o[s]&r|o[s+1]&i,o[s]=o[s+n]^e>>>1^a[1&e];for(;s<623;s++)e=o[s]&r|o[s+1]&i,o[s]=o[s+(n-t)]^e>>>1^a[1&e];e=o[623]&r|o[0]&i,o[623]=o[396]^e>>>1^a[1&e],u=0}return e=o[u++],e^=e>>>11,e^=e<<7&2636928640,e^=e<<15&4022730752,e^=e>>>18,e>>>0})()*(1/4294967296)}var SS=Math.floor;var ES=function(e,t){var n="";if(!e||t<1||t>9007199254740991)return n;do{t%2&&(n+=e),(t=SS(t/2))&&(e+=e)}while(t);return n},DS=Po,kS=ua,MS=Mt;var _S=y((function(e,t,n){return t=(n?DS(e,t,n):void 0===t)?1:kS(t),ES(MS(e),t)}));
7
7
  /*!
8
8
  * decimal.js v10.4.3
9
9
  * An arbitrary-precision Decimal type for JavaScript.
@@ -11,5 +11,5 @@
11
11
  * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
12
12
  * MIT Licence
13
13
  */
14
- var _S,AS,PS=9e15,TS=1e9,YS="0123456789abcdef",HS="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",IS="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",LS={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-PS,maxE:PS,crypto:!1},NS=!0,$S="[DecimalError] ",CS=$S+"Invalid argument: ",BS=$S+"Precision limit exceeded",FS=$S+"crypto unavailable",RS="[object Decimal]",zS=Math.floor,US=Math.pow,WS=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,qS=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,VS=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,XS=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ZS=1e7,GS=7,KS=HS.length-1,JS=IS.length-1,QS={toStringTag:RS};function eE(e){var t,n,r,i=e.length-1,o="",u=e[0];if(i>0){for(o+=u,t=1;t<i;t++)r=e[t]+"",(n=GS-r.length)&&(o+=fE(n)),o+=r;u=e[t],(n=GS-(r=u+"").length)&&(o+=fE(n))}else if(0===u)return"0";for(;u%10==0;)u/=10;return o+u}function tE(e,t,n){if(e!==~~e||e<t||e>n)throw Error(CS+e)}function nE(e,t,n,r){var i,o,u,l;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=GS,i=0):(i=Math.ceil((t+1)/GS),t%=GS),o=US(10,GS-t),l=e[i]%o|0,null==r?t<3?(0==t?l=l/100|0:1==t&&(l=l/10|0),u=n<4&&99999==l||n>3&&49999==l||5e4==l||0==l):u=(n<4&&l+1==o||n>3&&l+1==o/2)&&(e[i+1]/o/100|0)==US(10,t-2)-1||(l==o/2||0==l)&&0==(e[i+1]/o/100|0):t<4?(0==t?l=l/1e3|0:1==t?l=l/100|0:2==t&&(l=l/10|0),u=(r||n<4)&&9999==l||!r&&n>3&&4999==l):u=((r||n<4)&&l+1==o||!r&&n>3&&l+1==o/2)&&(e[i+1]/o/1e3|0)==US(10,t-3)-1,u}function rE(e,t,n){for(var r,i,o=[0],u=0,l=e.length;u<l;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=YS.indexOf(e.charAt(u++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}QS.absoluteValue=QS.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),oE(e)},QS.ceil=function(){return oE(new this.constructor(this),this.e+1,2)},QS.clampedTo=QS.clamp=function(e,t){var n=this,r=n.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(CS+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},QS.comparedTo=QS.cmp=function(e){var t,n,r,i,o=this,u=o.d,l=(e=new o.constructor(e)).d,a=o.s,s=e.s;if(!u||!l)return a&&s?a!==s?a:u===l?0:!u^a<0?1:-1:NaN;if(!u[0]||!l[0])return u[0]?a:l[0]?-s:0;if(a!==s)return a;if(o.e!==e.e)return o.e>e.e^a<0?1:-1;for(t=0,n=(r=u.length)<(i=l.length)?r:i;t<n;++t)if(u[t]!==l[t])return u[t]>l[t]^a<0?1:-1;return r===i?0:r>i^a<0?1:-1},QS.cosine=QS.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+GS,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;r=t.d.length,r<32?i=(1/xE(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");e.precision+=n,t=wE(e,1,t.times(i),new e(1));for(var o=n;o--;){var u=t.times(t);t=u.times(u).minus(u).times(8).plus(1)}return e.precision-=n,t}(r,jE(r,n)),r.precision=e,r.rounding=t,oE(2==AS||3==AS?n.neg():n,e,t,!0)):new r(1):new r(NaN)},QS.cubeRoot=QS.cbrt=function(){var e,t,n,r,i,o,u,l,a,s,c=this,f=c.constructor;if(!c.isFinite()||c.isZero())return new f(c);for(NS=!1,(o=c.s*US(c.s*c,1/3))&&Math.abs(o)!=1/0?r=new f(o.toString()):(n=eE(c.d),(o=((e=c.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=US(n,1/3),e=zS((e+1)/3)-(e%3==(e<0?-1:2)),(r=new f(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=c.s),u=(e=f.precision)+3;;)if(s=(a=(l=r).times(l).times(l)).plus(c),r=iE(s.plus(c).times(l),s.plus(a),u+2,1),eE(l.d).slice(0,u)===(n=eE(r.d)).slice(0,u)){if("9999"!=(n=n.slice(u-3,u+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(oE(r,e+1,1),t=!r.times(r).times(r).eq(c));break}if(!i&&(oE(l,e+1,0),l.times(l).times(l).eq(c))){r=l;break}u+=4,i=1}return NS=!0,oE(r,e,f.rounding,t)},QS.decimalPlaces=QS.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-zS(this.e/GS))*GS,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},QS.dividedBy=QS.div=function(e){return iE(this,new this.constructor(e))},QS.dividedToIntegerBy=QS.divToInt=function(e){var t=this.constructor;return oE(iE(this,new t(e),0,1,1),t.precision,t.rounding)},QS.equals=QS.eq=function(e){return 0===this.cmp(e)},QS.floor=function(){return oE(new this.constructor(this),this.e+1,3)},QS.greaterThan=QS.gt=function(e){return this.cmp(e)>0},QS.greaterThanOrEqualTo=QS.gte=function(e){var t=this.cmp(e);return 1==t||0===t},QS.hyperbolicCosine=QS.cosh=function(){var e,t,n,r,i,o=this,u=o.constructor,l=new u(1);if(!o.isFinite())return new u(o.s?1/0:NaN);if(o.isZero())return l;n=u.precision,r=u.rounding,u.precision=n+Math.max(o.e,o.sd())+4,u.rounding=1,(i=o.d.length)<32?t=(1/xE(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=wE(u,1,o.times(t),new u(1),!0);for(var a,s=e,c=new u(8);s--;)a=o.times(o),o=l.minus(a.times(c.minus(a.times(c))));return oE(o,u.precision=n,u.rounding=r,!0)},QS.hyperbolicSine=QS.sinh=function(){var e,t,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=wE(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=wE(o,2,i=i.times(1/xE(5,e)),i,!0);for(var u,l=new o(5),a=new o(16),s=new o(20);e--;)u=i.times(i),i=i.times(l.plus(u.times(a.times(u).plus(s))))}return o.precision=t,o.rounding=n,oE(i,t,n,!0)},QS.hyperbolicTangent=QS.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,iE(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},QS.inverseCosine=QS.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?t.isNeg()?sE(n,i,o):new n(0):new n(NaN):t.isZero()?sE(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,t=t.asin(),e=sE(n,i+4,o).times(.5),n.precision=i,n.rounding=o,e.minus(t))},QS.inverseHyperbolicCosine=QS.acosh=function(){var e,t,n=this,r=n.constructor;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,NS=!1,n=n.times(n).minus(1).sqrt().plus(n),NS=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},QS.inverseHyperbolicSine=QS.asinh=function(){var e,t,n=this,r=n.constructor;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,NS=!1,n=n.times(n).plus(1).sqrt().plus(n),NS=!0,r.precision=e,r.rounding=t,n.ln())},QS.inverseHyperbolicTangent=QS.atanh=function(){var e,t,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?oE(new o(i),e,t,!0):(o.precision=n=r-i.e,i=iE(i.plus(1),new o(1).minus(i),n+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},QS.inverseSine=QS.asin=function(){var e,t,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==t?0===t?((e=sE(o,n+4,r).times(.5)).s=i.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},QS.inverseTangent=QS.atan=function(){var e,t,n,r,i,o,u,l,a,s=this,c=s.constructor,f=c.precision,d=c.rounding;if(s.isFinite()){if(s.isZero())return new c(s);if(s.abs().eq(1)&&f+4<=JS)return(u=sE(c,f+4,d).times(.25)).s=s.s,u}else{if(!s.s)return new c(NaN);if(f+4<=JS)return(u=sE(c,f+4,d).times(.5)).s=s.s,u}for(c.precision=l=f+10,c.rounding=1,e=n=Math.min(28,l/GS+2|0);e;--e)s=s.div(s.times(s).plus(1).sqrt().plus(1));for(NS=!1,t=Math.ceil(l/GS),r=1,a=s.times(s),u=new c(s),i=s;-1!==e;)if(i=i.times(a),o=u.minus(i.div(r+=2)),i=i.times(a),void 0!==(u=o.plus(i.div(r+=2))).d[t])for(e=t;u.d[e]===o.d[e]&&e--;);return n&&(u=u.times(2<<n-1)),NS=!0,oE(u,c.precision=f,c.rounding=d,!0)},QS.isFinite=function(){return!!this.d},QS.isInteger=QS.isInt=function(){return!!this.d&&zS(this.e/GS)>this.d.length-2},QS.isNaN=function(){return!this.s},QS.isNegative=QS.isNeg=function(){return this.s<0},QS.isPositive=QS.isPos=function(){return this.s>0},QS.isZero=function(){return!!this.d&&0===this.d[0]},QS.lessThan=QS.lt=function(e){return this.cmp(e)<0},QS.lessThanOrEqualTo=QS.lte=function(e){return this.cmp(e)<1},QS.logarithm=QS.log=function(e){var t,n,r,i,o,u,l,a,s=this,c=s.constructor,f=c.precision,d=c.rounding;if(null==e)e=new c(10),t=!0;else{if(n=(e=new c(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(n=s.d,s.s<0||!n||!n[0]||s.eq(1))return new c(n&&!n[0]?-1/0:1!=s.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(NS=!1,u=mE(s,l=f+5),r=t?aE(c,l+10):mE(e,l),nE((a=iE(u,r,l,1)).d,i=f,d))do{if(u=mE(s,l+=10),r=t?aE(c,l+10):mE(e,l),a=iE(u,r,l,1),!o){+eE(a.d).slice(i+1,i+15)+1==1e14&&(a=oE(a,f+1,0));break}}while(nE(a.d,i+=10,d));return NS=!0,oE(a,f,d)},QS.minus=QS.sub=function(e){var t,n,r,i,o,u,l,a,s,c,f,d,p=this,h=p.constructor;if(e=new h(e),!p.d||!e.d)return p.s&&e.s?p.d?e.s=-e.s:e=new h(e.d||p.s!==e.s?p:NaN):e=new h(NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(s=p.d,d=e.d,l=h.precision,a=h.rounding,!s[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!s[0])return new h(3===a?-0:0);e=new h(p)}return NS?oE(e,l,a):e}if(n=zS(e.e/GS),c=zS(p.e/GS),s=s.slice(),o=c-n){for((f=o<0)?(t=s,o=-o,u=d.length):(t=d,n=c,u=s.length),o>(r=Math.max(Math.ceil(l/GS),u)+2)&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for((f=(r=s.length)<(u=d.length))&&(u=r),r=0;r<u;r++)if(s[r]!=d[r]){f=s[r]<d[r];break}o=0}for(f&&(t=s,s=d,d=t,e.s=-e.s),u=s.length,r=d.length-u;r>0;--r)s[u++]=0;for(r=d.length;r>o;){if(s[--r]<d[r]){for(i=r;i&&0===s[--i];)s[i]=ZS-1;--s[i],s[r]+=ZS}s[r]-=d[r]}for(;0===s[--u];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(e.d=s,e.e=lE(s,n),NS?oE(e,l,a):e):new h(3===a?-0:0)},QS.modulo=QS.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?oE(new r(n),r.precision,r.rounding):(NS=!1,9==r.modulo?(t=iE(n,e.abs(),0,3,1)).s*=e.s:t=iE(n,e,0,r.modulo,1),t=t.times(e),NS=!0,n.minus(t))},QS.naturalExponential=QS.exp=function(){return vE(this)},QS.naturalLogarithm=QS.ln=function(){return mE(this)},QS.negated=QS.neg=function(){var e=new this.constructor(this);return e.s=-e.s,oE(e)},QS.plus=QS.add=function(e){var t,n,r,i,o,u,l,a,s,c,f=this,d=f.constructor;if(e=new d(e),!f.d||!e.d)return f.s&&e.s?f.d||(e=new d(e.d||f.s===e.s?f:NaN)):e=new d(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(s=f.d,c=e.d,l=d.precision,a=d.rounding,!s[0]||!c[0])return c[0]||(e=new d(f)),NS?oE(e,l,a):e;if(o=zS(f.e/GS),r=zS(e.e/GS),s=s.slice(),i=o-r){for(i<0?(n=s,i=-i,u=c.length):(n=c,r=o,u=s.length),i>(u=(o=Math.ceil(l/GS))>u?o+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=s.length)-(i=c.length)<0&&(i=u,n=c,c=s,s=n),t=0;i;)t=(s[--i]=s[i]+c[i]+t)/ZS|0,s[i]%=ZS;for(t&&(s.unshift(t),++r),u=s.length;0==s[--u];)s.pop();return e.d=s,e.e=lE(s,r),NS?oE(e,l,a):e},QS.precision=QS.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(CS+e);return n.d?(t=cE(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},QS.round=function(){var e=this,t=e.constructor;return oE(new t(e),e.e+1,t.rounding)},QS.sine=QS.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+GS,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:wE(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=t.times(1/xE(5,n)),t=wE(e,2,t,t);for(var i,o=new e(5),u=new e(16),l=new e(20);n--;)i=t.times(t),t=t.times(o.plus(i.times(u.times(i).minus(l))));return t}(r,jE(r,n)),r.precision=e,r.rounding=t,oE(AS>2?n.neg():n,e,t,!0)):new r(NaN)},QS.squareRoot=QS.sqrt=function(){var e,t,n,r,i,o,u=this,l=u.d,a=u.e,s=u.s,c=u.constructor;if(1!==s||!l||!l[0])return new c(!s||s<0&&(!l||l[0])?NaN:l?u:1/0);for(NS=!1,0==(s=Math.sqrt(+u))||s==1/0?(((t=eE(l)).length+a)%2==0&&(t+="0"),s=Math.sqrt(t),a=zS((a+1)/2)-(a<0||a%2),r=new c(t=s==1/0?"5e"+a:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+a)):r=new c(s.toString()),n=(a=c.precision)+3;;)if(r=(o=r).plus(iE(u,o,n+2,1)).times(.5),eE(o.d).slice(0,n)===(t=eE(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(oE(r,a+1,1),e=!r.times(r).eq(u));break}if(!i&&(oE(o,a+1,0),o.times(o).eq(u))){r=o;break}n+=4,i=1}return NS=!0,oE(r,a,c.rounding,e)},QS.tangent=QS.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=iE(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,oE(2==AS||4==AS?n.neg():n,e,t,!0)):new r(NaN)},QS.times=QS.mul=function(e){var t,n,r,i,o,u,l,a,s,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(e.s*=c.s,!(d&&d[0]&&p&&p[0]))return new f(!e.s||d&&!d[0]&&!p||p&&!p[0]&&!d?NaN:d&&p?0*e.s:e.s/0);for(n=zS(c.e/GS)+zS(e.e/GS),(a=d.length)<(s=p.length)&&(o=d,d=p,p=o,u=a,a=s,s=u),o=[],r=u=a+s;r--;)o.push(0);for(r=s;--r>=0;){for(t=0,i=a+r;i>r;)l=o[i]+p[r]*d[i-r-1]+t,o[i--]=l%ZS|0,t=l/ZS|0;o[i]=(o[i]+t)%ZS|0}for(;!o[--u];)o.pop();return t?++n:o.shift(),e.d=o,e.e=lE(o,n),NS?oE(e,f.precision,f.rounding):e},QS.toBinary=function(e,t){return OE(this,2,e,t)},QS.toDecimalPlaces=QS.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(tE(e,0,TS),void 0===t?t=r.rounding:tE(t,0,8),oE(n,e+n.e+1,t))},QS.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=uE(r,!0):(tE(e,0,TS),void 0===t?t=i.rounding:tE(t,0,8),n=uE(r=oE(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},QS.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?n=uE(i):(tE(e,0,TS),void 0===t?t=o.rounding:tE(t,0,8),n=uE(r=oE(new o(i),e+i.e+1,t),!1,e+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},QS.toFraction=function(e){var t,n,r,i,o,u,l,a,s,c,f,d,p=this,h=p.d,v=p.constructor;if(!h)return new v(p);if(s=n=new v(1),r=a=new v(0),u=(o=(t=new v(r)).e=cE(h)-p.e-1)%GS,t.d[0]=US(10,u<0?GS+u:u),null==e)e=o>0?t:s;else{if(!(l=new v(e)).isInt()||l.lt(s))throw Error(CS+l);e=l.gt(t)?o>0?t:s:l}for(NS=!1,l=new v(eE(h)),c=v.precision,v.precision=o=h.length*GS*2;f=iE(l,t,0,1,1),1!=(i=n.plus(f.times(r))).cmp(e);)n=r,r=i,i=s,s=a.plus(f.times(i)),a=i,i=t,t=l.minus(f.times(i)),l=i;return i=iE(e.minus(n),r,0,1,1),a=a.plus(i.times(s)),n=n.plus(i.times(r)),a.s=s.s=p.s,d=iE(s,r,o,1).minus(p).abs().cmp(iE(a,n,o,1).minus(p).abs())<1?[s,r]:[a,n],v.precision=c,NS=!0,d},QS.toHexadecimal=QS.toHex=function(e,t){return OE(this,16,e,t)},QS.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:tE(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(NS=!1,n=iE(n,e,0,t,1).times(e),NS=!0,oE(n)):(e.s=n.s,n=e),n},QS.toNumber=function(){return+this},QS.toOctal=function(e,t){return OE(this,8,e,t)},QS.toPower=QS.pow=function(e){var t,n,r,i,o,u,l=this,a=l.constructor,s=+(e=new a(e));if(!(l.d&&e.d&&l.d[0]&&e.d[0]))return new a(US(+l,s));if((l=new a(l)).eq(1))return l;if(r=a.precision,o=a.rounding,e.eq(1))return oE(l,r,o);if((t=zS(e.e/GS))>=e.d.length-1&&(n=s<0?-s:s)<=9007199254740991)return i=dE(a,l,n,r),e.s<0?new a(1).div(i):oE(i,r,o);if((u=l.s)<0){if(t<e.d.length-1)return new a(NaN);if(0==(1&e.d[t])&&(u=1),0==l.e&&1==l.d[0]&&1==l.d.length)return l.s=u,l}return(t=0!=(n=US(+l,s))&&isFinite(n)?new a(n+"").e:zS(s*(Math.log("0."+eE(l.d))/Math.LN10+l.e+1)))>a.maxE+1||t<a.minE-1?new a(t>0?u/0:0):(NS=!1,a.rounding=l.s=1,n=Math.min(12,(t+"").length),(i=vE(e.times(mE(l,r+n)),r)).d&&nE((i=oE(i,r+5,1)).d,r,o)&&(t=r+10,+eE((i=oE(vE(e.times(mE(l,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=oE(i,r+1,0))),i.s=u,NS=!0,a.rounding=o,oE(i,r,o))},QS.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=uE(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(tE(e,1,TS),void 0===t?t=i.rounding:tE(t,0,8),n=uE(r=oE(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},QS.toSignificantDigits=QS.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(tE(e,1,TS),void 0===t?t=n.rounding:tE(t,0,8)),oE(new n(this),e,t)},QS.toString=function(){var e=this,t=e.constructor,n=uE(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},QS.truncated=QS.trunc=function(){return oE(new this.constructor(this),this.e+1,1)},QS.valueOf=QS.toJSON=function(){var e=this,t=e.constructor,n=uE(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var iE=function(){function e(e,t,n){var r,i=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+i,e[o]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,u,l,a){var s,c,f,d,p,h,v,m,g,y,b,w,x,j,O,S,E,D,k,M,_=r.constructor,A=r.s==i.s?1:-1,P=r.d,T=i.d;if(!(P&&P[0]&&T&&T[0]))return new _(r.s&&i.s&&(P?!T||P[0]!=T[0]:T)?P&&0==P[0]||!T?0*A:A/0:NaN);for(a?(p=1,c=r.e-i.e):(a=ZS,p=GS,c=zS(r.e/p)-zS(i.e/p)),k=T.length,E=P.length,y=(g=new _(A)).d=[],f=0;T[f]==(P[f]||0);f++);if(T[f]>(P[f]||0)&&c--,null==o?(j=o=_.precision,u=_.rounding):j=l?o+(r.e-i.e)+1:o,j<0)y.push(1),h=!0;else{if(j=j/p+2|0,f=0,1==k){for(d=0,T=T[0],j++;(f<E||d)&&j--;f++)O=d*a+(P[f]||0),y[f]=O/T|0,d=O%T|0;h=d||f<E}else{for((d=a/(T[0]+1)|0)>1&&(T=e(T,d,a),P=e(P,d,a),k=T.length,E=P.length),S=k,w=(b=P.slice(0,k)).length;w<k;)b[w++]=0;(M=T.slice()).unshift(0),D=T[0],T[1]>=a/2&&++D;do{d=0,(s=t(T,b,k,w))<0?(x=b[0],k!=w&&(x=x*a+(b[1]||0)),(d=x/D|0)>1?(d>=a&&(d=a-1),1==(s=t(v=e(T,d,a),b,m=v.length,w=b.length))&&(d--,n(v,k<m?M:T,m,a))):(0==d&&(s=d=1),v=T.slice()),(m=v.length)<w&&v.unshift(0),n(b,v,w,a),-1==s&&(s=t(T,b,k,w=b.length))<1&&(d++,n(b,k<w?M:T,w,a)),w=b.length):0===s&&(d++,b=[0]),y[f++]=d,s&&b[0]?b[w++]=P[S]||0:(b=[P[S]],w=1)}while((S++<E||void 0!==b[0])&&j--);h=void 0!==b[0]}y[0]||y.shift()}if(1==p)g.e=c,_S=h;else{for(f=1,d=y[0];d>=10;d/=10)f++;g.e=f+c*p-1,oE(g,l?o+g.e+1:o,u,h)}return g}}();function oE(e,t,n,r){var i,o,u,l,a,s,c,f,d,p=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(i=1,l=f[0];l>=10;l/=10)i++;if((o=t-i)<0)o+=GS,u=t,a=(c=f[d=0])/US(10,i-u-1)%10|0;else if((d=Math.ceil((o+1)/GS))>=(l=f.length)){if(!r)break e;for(;l++<=d;)f.push(0);c=a=0,i=1,u=(o%=GS)-GS+1}else{for(c=l=f[d],i=1;l>=10;l/=10)i++;a=(u=(o%=GS)-GS+i)<0?0:c/US(10,i-u-1)%10|0}if(r=r||t<0||void 0!==f[d+1]||(u<0?c:c%US(10,i-u-1)),s=n<4?(a||r)&&(0==n||n==(e.s<0?3:2)):a>5||5==a&&(4==n||r||6==n&&(o>0?u>0?c/US(10,i-u):0:f[d-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,s?(t-=e.e+1,f[0]=US(10,(GS-t%GS)%GS),e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=d,l=1,d--):(f.length=d+1,l=US(10,GS-o),f[d]=u>0?(c/US(10,i-u)%US(10,u)|0)*l:0),s)for(;;){if(0==d){for(o=1,u=f[0];u>=10;u/=10)o++;for(u=f[0]+=l,l=1;u>=10;u/=10)l++;o!=l&&(e.e++,f[0]==ZS&&(f[0]=1));break}if(f[d]+=l,f[d]!=ZS)break;f[d--]=0,l=1}for(o=f.length;0===f[--o];)f.pop()}return NS&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function uE(e,t,n){if(!e.isFinite())return gE(e);var r,i=e.e,o=eE(e.d),u=o.length;return t?(n&&(r=n-u)>0?o=o.charAt(0)+"."+o.slice(1)+fE(r):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+fE(-i-1)+o,n&&(r=n-u)>0&&(o+=fE(r))):i>=u?(o+=fE(i+1-u),n&&(r=n-i-1)>0&&(o=o+"."+fE(r))):((r=i+1)<u&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-u)>0&&(i+1===u&&(o+="."),o+=fE(r))),o}function lE(e,t){var n=e[0];for(t*=GS;n>=10;n/=10)t++;return t}function aE(e,t,n){if(t>KS)throw NS=!0,n&&(e.precision=n),Error(BS);return oE(new e(HS),t,1,!0)}function sE(e,t,n){if(t>JS)throw Error(BS);return oE(new e(IS),t,n,!0)}function cE(e){var t=e.length-1,n=t*GS+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function fE(e){for(var t="";e--;)t+="0";return t}function dE(e,t,n,r){var i,o=new e(1),u=Math.ceil(r/GS+4);for(NS=!1;;){if(n%2&&SE((o=o.times(t)).d,u)&&(i=!0),0===(n=zS(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}SE((t=t.times(t)).d,u)}return NS=!0,o}function pE(e){return 1&e.d[e.d.length-1]}function hE(e,t,n){for(var r,i=new e(t[0]),o=0;++o<t.length;){if(!(r=new e(t[o])).s){i=r;break}i[n](r)&&(i=r)}return i}function vE(e,t){var n,r,i,o,u,l,a,s=0,c=0,f=0,d=e.constructor,p=d.rounding,h=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?(NS=!1,a=h):a=t,l=new d(.03125);e.e>-2;)e=e.times(l),f+=5;for(a+=r=Math.log(US(2,f))/Math.LN10*2+5|0,n=o=u=new d(1),d.precision=a;;){if(o=oE(o.times(e),a,1),n=n.times(++c),eE((l=u.plus(iE(o,n,a,1))).d).slice(0,a)===eE(u.d).slice(0,a)){for(i=f;i--;)u=oE(u.times(u),a,1);if(null!=t)return d.precision=h,u;if(!(s<3&&nE(u.d,a-r,p,s)))return oE(u,d.precision=h,p,NS=!0);d.precision=a+=10,n=o=l=new d(1),c=0,s++}u=l}}function mE(e,t){var n,r,i,o,u,l,a,s,c,f,d,p=1,h=e,v=h.d,m=h.constructor,g=m.rounding,y=m.precision;if(h.s<0||!v||!v[0]||!h.e&&1==v[0]&&1==v.length)return new m(v&&!v[0]?-1/0:1!=h.s?NaN:v?0:h);if(null==t?(NS=!1,c=y):c=t,m.precision=c+=10,r=(n=eE(v)).charAt(0),!(Math.abs(o=h.e)<15e14))return s=aE(m,c+2,y).times(o+""),h=mE(new m(r+"."+n.slice(1)),c-10).plus(s),m.precision=y,null==t?oE(h,y,g,NS=!0):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=eE((h=h.times(e)).d)).charAt(0),p++;for(o=h.e,r>1?(h=new m("0."+n),o++):h=new m(r+"."+n.slice(1)),f=h,a=u=h=iE(h.minus(1),h.plus(1),c,1),d=oE(h.times(h),c,1),i=3;;){if(u=oE(u.times(d),c,1),eE((s=a.plus(iE(u,new m(i),c,1))).d).slice(0,c)===eE(a.d).slice(0,c)){if(a=a.times(2),0!==o&&(a=a.plus(aE(m,c+2,y).times(o+""))),a=iE(a,new m(p),c,1),null!=t)return m.precision=y,a;if(!nE(a.d,c-10,g,l))return oE(a,m.precision=y,g,NS=!0);m.precision=c+=10,s=u=h=iE(f.minus(1),f.plus(1),c,1),d=oE(h.times(h),c,1),i=l=1}a=s,i+=2}}function gE(e){return String(e.s*e.s/0)}function yE(e,t){var n,r,i;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;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%GS,n<0&&(r+=GS),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=GS;r<i;)e.d.push(+t.slice(r,r+=GS));t=t.slice(r),r=GS-t.length}else r-=i;for(;r--;)t+="0";e.d.push(+t),NS&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function bE(e,t){var n,r,i,o,u,l,a,s,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),XS.test(t))return yE(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(qS.test(t))n=16,t=t.toLowerCase();else if(WS.test(t))n=2;else{if(!VS.test(t))throw Error(CS+t);n=8}for((o=t.search(/p/i))>0?(a=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),u=(o=t.indexOf("."))>=0,r=e.constructor,u&&(o=(l=(t=t.replace(".","")).length)-o,i=dE(r,new r(n),o,2*o)),o=c=(s=rE(t,n,ZS)).length-1;0===s[o];--o)s.pop();return o<0?new r(0*e.s):(e.e=lE(s,c),e.d=s,NS=!1,u&&(e=iE(e,i,4*l)),a&&(e=e.times(Math.abs(a)<54?US(2,a):fD.pow(2,a))),NS=!0,e)}function wE(e,t,n,r,i){var o,u,l,a,s=e.precision,c=Math.ceil(s/GS);for(NS=!1,a=n.times(n),l=new e(r);;){if(u=iE(l.times(a),new e(t++*t++),s,1),l=i?r.plus(u):r.minus(u),r=iE(u.times(a),new e(t++*t++),s,1),void 0!==(u=l.plus(r)).d[c]){for(o=c;u.d[o]===l.d[o]&&o--;);if(-1==o)break}o=l,l=r,r=u,u=o}return NS=!0,u.d.length=c+1,u}function xE(e,t){for(var n=e;--t;)n*=e;return n}function jE(e,t){var n,r=t.s<0,i=sE(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return AS=r?4:1,t;if((n=t.divToInt(i)).isZero())AS=r?3:2;else{if((t=t.minus(n.times(i))).lte(o))return AS=pE(n)?r?2:3:r?4:1,t;AS=pE(n)?r?1:4:r?3:2}return t.minus(i).abs()}function OE(e,t,n,r){var i,o,u,l,a,s,c,f,d,p=e.constructor,h=void 0!==n;if(h?(tE(n,1,TS),void 0===r?r=p.rounding:tE(r,0,8)):(n=p.precision,r=p.rounding),e.isFinite()){for(h?(i=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):i=t,(u=(c=uE(e)).indexOf("."))>=0&&(c=c.replace(".",""),(d=new p(1)).e=c.length-u,d.d=rE(uE(d),10,i),d.e=d.d.length),o=a=(f=rE(c,10,i)).length;0==f[--a];)f.pop();if(f[0]){if(u<0?o--:((e=new p(e)).d=f,e.e=o,f=(e=iE(e,d,n,r,0,i)).d,o=e.e,s=_S),u=f[n],l=i/2,s=s||void 0!==f[n+1],s=r<4?(void 0!==u||s)&&(0===r||r===(e.s<0?3:2)):u>l||u===l&&(4===r||s||6===r&&1&f[n-1]||r===(e.s<0?8:7)),f.length=n,s)for(;++f[--n]>i-1;)f[n]=0,n||(++o,f.unshift(1));for(a=f.length;!f[a-1];--a);for(u=0,c="";u<a;u++)c+=YS.charAt(f[u]);if(h){if(a>1)if(16==t||8==t){for(u=16==t?4:3,--a;a%u;a++)c+="0";for(a=(f=rE(c,i,t)).length;!f[a-1];--a);for(u=1,c="1.";u<a;u++)c+=YS.charAt(f[u])}else c=c.charAt(0)+"."+c.slice(1);c=c+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)c="0"+c;c="0."+c}else if(++o>a)for(o-=a;o--;)c+="0";else o<a&&(c=c.slice(0,o)+"."+c.slice(o))}else c=h?"0p+0":"0";c=(16==t?"0x":2==t?"0b":8==t?"0o":"")+c}else c=gE(e);return e.s<0?"-"+c:c}function SE(e,t){if(e.length>t)return e.length=t,!0}function EE(e){return new this(e).abs()}function DE(e){return new this(e).acos()}function kE(e){return new this(e).acosh()}function ME(e,t){return new this(e).plus(t)}function _E(e){return new this(e).asin()}function AE(e){return new this(e).asinh()}function PE(e){return new this(e).atan()}function TE(e){return new this(e).atanh()}function YE(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,o=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?sE(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=sE(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(iE(e,t,o,1)),t=sE(this,o,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(iE(e,t,o,1)):(n=sE(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function HE(e){return new this(e).cbrt()}function IE(e){return oE(e=new this(e),e.e+1,2)}function LE(e,t,n){return new this(e).clamp(t,n)}function NE(e){if(!e||"object"!=typeof e)throw Error($S+"Object expected");var t,n,r,i=!0===e.defaults,o=["precision",1,TS,"rounding",0,8,"toExpNeg",-PS,0,"toExpPos",0,PS,"maxE",0,PS,"minE",-PS,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(n=o[t],i&&(this[n]=LS[n]),void 0!==(r=e[n])){if(!(zS(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(CS+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=LS[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(CS+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(FS);this[n]=!0}else this[n]=!1}return this}function $E(e){return new this(e).cos()}function CE(e){return new this(e).cosh()}function BE(e,t){return new this(e).div(t)}function FE(e){return new this(e).exp()}function RE(e){return oE(e=new this(e),e.e+1,3)}function zE(){var e,t,n=new this(0);for(NS=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return NS=!0,new this(1/0);n=t}return NS=!0,n.sqrt()}function UE(e){return e instanceof fD||e&&e.toStringTag===RS||!1}function WE(e){return new this(e).ln()}function qE(e,t){return new this(e).log(t)}function VE(e){return new this(e).log(2)}function XE(e){return new this(e).log(10)}function ZE(){return hE(this,arguments,"lt")}function GE(){return hE(this,arguments,"gt")}function KE(e,t){return new this(e).mod(t)}function JE(e,t){return new this(e).mul(t)}function QE(e,t){return new this(e).pow(t)}function eD(e){var t,n,r,i,o=0,u=new this(1),l=[];if(void 0===e?e=this.precision:tE(e,1,TS),r=Math.ceil(e/GS),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:l[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(FS);for(t=crypto.randomBytes(r*=4);o<r;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(l.push(i%1e7),o+=4);o=r/4}else for(;o<r;)l[o++]=1e7*Math.random()|0;for(r=l[--o],e%=GS,r&&e&&(i=US(10,GS-e),l[o]=(r/i|0)*i);0===l[o];o--)l.pop();if(o<0)n=0,l=[0];else{for(n=-1;0===l[0];n-=GS)l.shift();for(r=1,i=l[0];i>=10;i/=10)r++;r<GS&&(n-=GS-r)}return u.e=n,u.d=l,u}function tD(e){return oE(e=new this(e),e.e+1,this.rounding)}function nD(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function rD(e){return new this(e).sin()}function iD(e){return new this(e).sinh()}function oD(e){return new this(e).sqrt()}function uD(e,t){return new this(e).sub(t)}function lD(){var e=0,t=arguments,n=new this(t[e]);for(NS=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return NS=!0,oE(n,this.precision,this.rounding)}function aD(e){return new this(e).tan()}function sD(e){return new this(e).tanh()}function cD(e){return oE(e=new this(e),e.e+1,1)}QS[Symbol.for("nodejs.util.inspect.custom")]=QS.toString,QS[Symbol.toStringTag]="Decimal";var fD=QS.constructor=function e(t){var n,r,i;function o(e){var t,n,r,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,UE(e))return i.s=e.s,void(NS?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e<o.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));if("number"===(r=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(e<0?(e=-e,i.s=-1):i.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void(NS?t>o.maxE?(i.e=NaN,i.d=null):t<o.minE?(i.e=0,i.d=[0]):(i.e=t,i.d=[e]):(i.e=t,i.d=[e]))}return 0*e!=0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):yE(i,e.toString())}if("string"!==r)throw Error(CS+e);return 45===(n=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===n&&(e=e.slice(1)),i.s=1),XS.test(e)?yE(i,e):bE(i,e)}if(o.prototype=QS,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=NE,o.clone=e,o.isDecimal=UE,o.abs=EE,o.acos=DE,o.acosh=kE,o.add=ME,o.asin=_E,o.asinh=AE,o.atan=PE,o.atanh=TE,o.atan2=YE,o.cbrt=HE,o.ceil=IE,o.clamp=LE,o.cos=$E,o.cosh=CE,o.div=BE,o.exp=FE,o.floor=RE,o.hypot=zE,o.ln=WE,o.log=qE,o.log10=XE,o.log2=VE,o.max=ZE,o.min=GE,o.mod=KE,o.mul=JE,o.pow=QE,o.random=eD,o.round=tD,o.sign=nD,o.sin=rD,o.sinh=iD,o.sqrt=oD,o.sub=uD,o.sum=lD,o.tan=aD,o.tanh=sD,o.trunc=cD,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(LS);HS=new fD(HS),IS=new fD(IS);var dD=y(Uc("floor"));var pD=y(wa());var hD,vD={exports:{}},mD={exports:{}};!function(e,t){var n;e.exports=(n=ha(),hD||(hD=1,function(e,t){var n,r,i,o,u,l,a;e.exports=(i=(r=a=ha()).lib,o=i.Base,u=i.WordArray,(l=r.x64={}).Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return u.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}}),a)}(mD)),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,u=e.algo;function l(){return i.create.apply(i,arguments)}var a=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],s=[];!function(){for(var e=0;e<80;e++)s[e]=l()}();var c=u.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],u=n[3],l=n[4],c=n[5],f=n[6],d=n[7],p=r.high,h=r.low,v=i.high,m=i.low,g=o.high,y=o.low,b=u.high,w=u.low,x=l.high,j=l.low,O=c.high,S=c.low,E=f.high,D=f.low,k=d.high,M=d.low,_=p,A=h,P=v,T=m,Y=g,H=y,I=b,L=w,N=x,$=j,C=O,B=S,F=E,R=D,z=k,U=M,W=0;W<80;W++){var q,V,X=s[W];if(W<16)V=X.high=0|e[t+2*W],q=X.low=0|e[t+2*W+1];else{var Z=s[W-15],G=Z.high,K=Z.low,J=(G>>>1|K<<31)^(G>>>8|K<<24)^G>>>7,Q=(K>>>1|G<<31)^(K>>>8|G<<24)^(K>>>7|G<<25),ee=s[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=s[W-7],ue=oe.high,le=oe.low,ae=s[W-16],se=ae.high,ce=ae.low;V=(V=(V=J+ue+((q=Q+le)>>>0<Q>>>0?1:0))+re+((q+=ie)>>>0<ie>>>0?1:0))+se+((q+=ce)>>>0<ce>>>0?1:0),X.high=V,X.low=q}var fe,de=N&C^~N&F,pe=$&B^~$&R,he=_&P^_&Y^P&Y,ve=A&T^A&H^T&H,me=(_>>>28|A<<4)^(_<<30|A>>>2)^(_<<25|A>>>7),ge=(A>>>28|_<<4)^(A<<30|_>>>2)^(A<<25|_>>>7),ye=(N>>>14|$<<18)^(N>>>18|$<<14)^(N<<23|$>>>9),be=($>>>14|N<<18)^($>>>18|N<<14)^($<<23|N>>>9),we=a[W],xe=we.high,je=we.low,Oe=z+ye+((fe=U+be)>>>0<U>>>0?1:0),Se=ge+ve;z=F,U=R,F=C,R=B,C=N,B=$,N=I+(Oe=(Oe=(Oe=Oe+de+((fe+=pe)>>>0<pe>>>0?1:0))+xe+((fe+=je)>>>0<je>>>0?1:0))+V+((fe+=q)>>>0<q>>>0?1:0))+(($=L+fe|0)>>>0<L>>>0?1:0)|0,I=Y,L=H,Y=P,H=T,P=_,T=A,_=Oe+(me+he+(Se>>>0<ge>>>0?1:0))+((A=fe+Se|0)>>>0<fe>>>0?1:0)|0}h=r.low=h+A,r.high=p+_+(h>>>0<A>>>0?1:0),m=i.low=m+T,i.high=v+P+(m>>>0<T>>>0?1:0),y=o.low=y+H,o.high=g+Y+(y>>>0<H>>>0?1:0),w=u.low=w+L,u.high=b+I+(w>>>0<L>>>0?1:0),j=l.low=j+$,l.high=x+N+(j>>>0<$>>>0?1:0),S=c.low=S+B,c.high=O+C+(S>>>0<B>>>0?1:0),D=f.low=D+R,f.high=E+F+(D>>>0<R>>>0?1:0),M=d.low=M+U,d.high=k+z+(M>>>0<U>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),n.SHA512)}(vD);var gD=y(vD.exports);function yD(e,t){return qt(e)&&qt(t)?function(e,t){if(e=e.replace(/\s+/g,""),t=t.replace(/\s+/g,""),!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(1===e.length&&1===t.length)return 0;if(e.length<2||t.length<2)return 0;let n=new Map;for(let t=0;t<e.length-1;t++){const r=e.substring(t,t+2),i=n.has(r)?n.get(r)+1:1;n.set(r,i)}let r=0;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),o=n.has(i)?n.get(i):0;o>0&&(n.set(i,o-1),r++)}return 2*r/(e.length+t.length-2)}(e,t):0}var bD=Sp;var wD=function(e,t){var n=null==e?0:e.length;return n?bD(e,t)/n:NaN},xD=fo;var jD=y((function(e){return wD(e,xD)}));function OD(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";if(qt(e)||Xt(e))r=Xp(e);else{if(!Yu(e))return!!n&&0;r=If(e,"")}if(""===t)return!n||100;if(Tu(t))return!!n&&0;if(Dh(r,t))return!n||100;let i=np(t," "),o=function(){let e=$l();return d||e.Fuse}(),u=pu(i,(function(e){return((e,t)=>{let n=new o([e],{includeScore:!0}).search(t);n=Ft(n,0);let r=Ft(n,"score",1);return r=1-r,r*=100,r})(r,e)}));if(n)return jD(u);{let e=80;return No(u,(function(t){return t>=e}))}}function SD(e){if(!zt(e))return{};let{results:t,binarys:n}=e;if(!qt(t))return{};if(!Ut(n))return{};let r={};try{r=JSON.parse(t,(function(e,t){if(qt(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=qc(t.replace("[Uint8Array]::",""));return n[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=qc(t.replace("[Uint16Array]::",""));return n[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=qc(t.replace("[ArrayBuffer]::",""));return n[e]}}return t}))}catch(e){}return r}function ED(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!DO(e))return{today:null,msg:"",err:"時間格式錯誤"};let r=n();DO(t)&&(r=n(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=n(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>i)return{today:null,msg:"",err:"時間已過"};let o,u=r.format("YYYY-MM-DD"),l=i.format("YYYY-MM-DD"),a=n(u,"YYYY-MM-DD"),s=n(l,"YYYY-MM-DD"),c=i.diff(r,"seconds"),f=i.diff(r,"minutes"),d=i.diff(r,"hours"),p=s.diff(a,"days"),h=s.diff(a,"weeks"),v=s.diff(a,"months"),m=s.diff(a,"years"),g="即將到來";if(c>=0&&(o=!0,g=c+"秒後"),f>0&&(o=!0,g=f+"分鐘後"),d>0){let e=i.format("HH:mm");u===l?(o=!0,g=d+"小時後,今天"+e):(o=!1,g=d+"小時後,明天"+e)}return p>1&&(o=!1,g=2===p?"後天":p+"天後"),h>0&&(o=!1,g=h+"周後"),v>0&&(o=!1,g=v+"個月後"),m>0&&(o=!1,g=m+"年後"),{today:o,msg:g,err:""}}function DD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!DO(e))return{today:null,msg:"",err:"時間格式錯誤"};let r=n();DO(t)&&(r=n(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=n(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<i)return{today:null,msg:"",err:"時間未到"};let o=r.format("YYYY-MM-DD"),u=i.format("YYYY-MM-DD"),l=n(o,"YYYY-MM-DD"),a=n(u,"YYYY-MM-DD"),s=r.diff(i,"seconds"),c=r.diff(i,"minutes"),f=r.diff(i,"hours"),d=l.diff(a,"days"),p=l.diff(a,"weeks"),h=l.diff(a,"months"),v=l.diff(a,"years"),m=!1,g="剛剛";if(s>=0&&(m=!0,g=s+"秒前"),c>0&&(m=!0,g=c+"分鐘前"),f>0){let e=i.format("HH:mm");o===u?(m=!0,g=f+"小時前"):(m=!1,g="昨天"+e)}return d>1&&(m=!1,g=d+"天前"),p>0&&(m=!1,g=p+"周前"),h>0&&(m=!1,g=h+"個月前"),v>0&&(m=!1,g=v+"年前"),{today:m,msg:g,err:""}}function kD(e){let t=EO.sepTZ(e);return e=`${t.t}.000${t.tz}`}function MD(e){let t=EO.sepTZ(e);return e=`${t.t}.000${t.tz}`}function _D(e){if(!Oh(e))return"";let t;try{t=wh(iS(e))}catch(e){return""}return t}var AD=y((function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}));e._getXLSX=Cl,e._tz=EO,e.ab2blob=function(e){let t=m(e);return new Blob([t])},e.ab2u8arr=m,e.addExcelWorksheetFromData=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"data";if(!zt(e))return{error:"wb is not an effective object"};if(!Ut(Ft(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Rt(Ft(e,"Sheets")))return{error:"wb.Sheets is not an object"};let r=Bl(t);return Zt(r,"error")?r:(e.SheetNames.push(n),e.Sheets[n]=r,e)},e.addMonth=function(e,t){return Fl(e)&&ca(t)?n(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=La,e.alive=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$c(),n={},r=null,i=Ft(e,"timeAlive");Vc(i)||(i=1e4),i=qc(i);let o=Ft(e,"timeDetect");return Vc(o)||(o=50),o=qc(o),t.trigger=function(e,u){qt(e)?(Zt(n,e)||setTimeout((()=>{t.emit("message",{eventName:"enter",key:e,data:u,now:_l(n)})}),1),n[e]={data:u,time:Date.now()},null===r&&(r=setInterval((()=>{ou(n,((e,r)=>{if(Date.now()-e.time>i){let e=Ic(n[r]);delete n[r],t.emit("message",{eventName:"leave",key:r,data:e.data,now:_l(n)})}})),zt(n)||(clearInterval(r),r=null)}),o))):console.log("trigger need key")},t.get=function(){let e=[];return ou(n,((t,n)=>{e.push({key:n,data:t.data})})),e=Ic(e),e},t},e.arr2dt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!Yu(e))return{};if(Yu(t))return _l(e)===_l(t)?Jc(e,t):{};let n=[];for(let r=0;r<_l(e);r++)n.push(Ic(t));return Jc(e,n)},e.arrAccum=function(e){if(!Yu(e))return[];let t=[],n=0;return ou(e,(function(e){n+=sa(e),Xt(e)?t.push(n):t.push("")})),t},e.arrAdd=function(){if(_l(arguments)<2)return[];let e=arguments[0];for(let t=1;t<_l(arguments);t++){e=Qc(e,arguments[t])}return e},e.arrAt=Af,e.arrDiff=zd,e.arrFilterByKeywords=function(e,t){if(!Yu(e))return[];if(!qt(t)&&!Yu(t))return[];let n=null;n=qt(t)?np(t," "):t;let r=_l(n);return pu(e,(e=>function(e){let t=!1,i=0;for(let o=0;o<r;o++){let u=n[o],l=u,a="+"===rp(u,1),s="-"===rp(u,1);if((a||s)&&(l=op(u,1)),""===ep(l))continue;let c=e.indexOf(l)>=0;if(a){if(c){t=!0,i=1;break}t=!1,i=0;break}if(s){if(c){t=!1,i=0;break}t=!0,i=1;break}if(c){t=!0;let e=1-o/r;e=e**2,i+=e}}return{hasKeyword:t,weight:i}}(e)))},e.arrFilterByNum=function(e){return Yu(e)?(e=Ic(e),e=fp(e,Xt),e=pu(e,sa)):[]},e.arrFilterByPnum=pp,e.arrFilterByPnumAndToLog=function(e){return Yu(e)?(e=pp(e),e=pu(e,Math.log)):[]},e.arrFind=function(e,t){function n(e){return Ut(e)?e:[e]}return Tu(e)||0===(e=n(e)).length||Tu(t)?[]:(t=n(t),pu(t,(function(t){let n=-1;for(let r=0;r<e.length;r++)if(vp(e[r],t)){n=r;break}return n})))},e.arrGroupByMaxmin=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ft(n,"keyMax");qt(r)||(r="max");let i=Ft(n,"keyMin");qt(i)||(i="min");let o=Ft(n,"keyValue");qt(o)||(o="value");let u=Ft(n,"keyItems");if(qt(u)||(u="items"),!Yu(e))return[];if(!Yu(t))return[];let l=Ic(t);return ou(e,((e,n)=>{let a=Ft(e,o);Xt(a)?a=sa(a):Xt(e)&&(a=sa(e)),yp(a)&&ou(t,((t,n)=>{let o=Ft(t,r,null),s=Ft(t,i,null);if(null!==o&&null!==s&&Xt(o)&&Xt(s)){let r=Ft(t,"maxType");"<="!==r&&"<"!==r&&(r="<=");let i,c,f=Ft(t,"minType");">="!==f&&">"!==f&&(f=">="),o=sa(o),s=sa(s),i=">="===f?a>=s:a>s,c="<="===r?a<=o:a<o,i&&c&&(Zt(l[n],u)||(l[n][u]=[]),l[n][u].push(e))}}))})),l},e.arrHas=bp,e.arrInsert=function(e,t,n){if(!Ut(e))return[];if(Ut(n)||(n=[n]),!_f(t))return e;if((t=qc(t))>_l(e))return e;let r=e;try{r=[...e.slice(0,t),...n,...e.slice(t)]}catch(e){}return r},e.arrLookupByMaxmin=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ft(n,"keyMax");qt(r)||(r="max");let i=Ft(n,"keyMin");qt(i)||(i="min");let o=Ft(n,"keyValue");qt(o)||(o="value");let u=Ft(n,"keyItems");qt(u)||(u="items");let l=Ft(n,"beforeAddResult",null);if(!Yu(e))return[];if(!Yu(t))return[];if(!zt(Ft(e,0)))return[];let a=Ic(e);return ou(a,((e,n)=>{let s=Ft(e,o);Xt(s)&&(s=sa(s)),yp(s)&&ou(t,((e,t)=>{let o=Ft(e,r,null),c=Ft(e,i,null);if(null!==o&&null!==c&&Xt(o)&&Xt(c)){let t=Ft(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let r,i,f=Ft(e,"minType");">="!==f&&">"!==f&&(f=">="),o=sa(o),c=sa(c),r=">="===f?s>=c:s>c,i="<="===t?s<=o:s<o,r&&i&&(wp(l)&&(e=l(e,a[n],n)),Zt(a[n],u)||(a[n][u]=[]),a[n][u].push(e))}}))})),a},e.arrMax=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return null;let n=Ft(t,"returnIndex");Yl(n)||(n=!1);let r=Ft(t,"compareKey",null),i=e;qt(r)&&(i=pu(e,((e,t)=>Ft(e,r,""))));let o=null,u=xp(i,((e,t)=>Xt(t)?(t=sa(t),null===e?(o=t,t):(e=Math.max(e,t),o=e,e)):e),{returnIndex:!0});if(n)return u;let l=null;return u>=0&&(l=qt(r)?e[u]:o),l},e.arrMin=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return null;let n=Ft(t,"returnIndex");Yl(n)||(n=!1);let r=Ft(t,"compareKey",null),i=e;qt(r)&&(i=pu(e,((e,t)=>Ft(e,r,""))));let o=null,u=xp(i,((e,t)=>Xt(t)?(t=sa(t),null===e?(o=t,t):(e=Math.min(e,t),o=e,e)):e),{returnIndex:!0});if(n)return u;let l=null;return u>=0&&(l=qt(r)?e[u]:o),l},e.arrMulti=Op,e.arrNorm=function(e){if(!Yu(e))return null;let t=Mp(e,e);return Xt(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=Mp,e.arrReduce=xp,e.arrSep=function(e,t){if(!Yu(e))return[];if(!Vc(t)&&!zt(t))return[];let n="",r=null;if(Vc(t))r=t,n="numCount";else if(zt(t))if(Vc(Ft(t,"numCount")))r=t.numCount,n="numCount";else{if(!Vc(Ft(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");r=t.numGroup,n="numGroup"}let i=_l(e),o=[];if("numCount"===n)for(let t=0;t<i;t+=r){let n=[];for(let o=0;o<r;o++){let r=t+o;r<i&&n.push(e[r])}o.push(n)}else if("numGroup"===n){for(let e=0;e<r;e++)o[e]=[];let t=-1;for(let n=0;n<i;n++)t++,t>r-1&&(t=0),o[t].push(e[n])}return o},e.arrSort=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return[];if(1===_l(e))return e;let n=Ft(t,"localeCompare");Yl(n)||(n=!1);let r=Ft(t,"returnIndex");Yl(r)||(r=!1);let i=Ft(t,"compareKey",null),o=null;o=n?oh:ih;let u,l=nh(e);if(""===l)return[];if("obj"===l){if(!qt(i))return[];let t=pu(e,((e,t)=>Ft(e,i,""))),l=nh(t);if("num"!==l&&"str"!==l)return[];{n&&(l="files");let i=o(rh(t,l),!0);u=r?i:pu(i,(t=>e[t]))}}else if("num"===l||"str"===l){n&&(l="files");let t=rh(e,l);console.log("num|str: getVirArr vs",t),u=o(t,r)}return u},e.asind=function(e){return Xt(e)?(e=sa(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return Xt(e)?(e=sa(e),Xt(t)?(t=sa(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return Xt(e)?(e=sa(e),180*Math.atan(e)/Math.PI):null},e.attstr=bh,e.b642obj=function(e){if(!Wt(e))return{};let t={};try{t=xh(wh(e))}catch(e){t={}}return t},e.b642str=wh,e.b642u16arr=Eh,e.b642u8arr=jh,e.binstr=Dh,e.blob2ab=Mh,e.blob2b64=_h,e.blob2str=function(e){let t=kh(),n=new FileReader;return n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsText(e),t},e.blob2u8arr=Ah,e.blobs2b64s=Ph,e.blobs2u8arrs=Th,e.bodyLog=function(){let e=`\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>${Yh(pu(arguments,(function(e){return Hl(e)})).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=Hh,e.browserViewFromBlob=function(e,t){Ih(e)&&Hh(e,t)},e.browserViewFromText=function(e){Wt(e)&&Hh(e,"text/plain")},e.browserViewFromU8arr=function(e,t){Oh(e)&&Hh(e,t)},e.bs2u8arr=Lh,e.bufRead=Nh,e.bufReadDbl=$h,e.bufWrite=Ch,e.bufWriteDbl=Bh,e.cache=function(){let e=$c(),t={};function n(t,n){setTimeout((()=>{e.emit(t,n)}),1)}function r(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Zt(t,e))return;let i=Ft(r,"execFun");wp(i)||(i=async()=>{});let o=Ft(r,"inputFun");Ut(o)||(o=[]);let u=Ft(r,"timeExpired");Vc(u)||(u=5e3),u=qc(u),t[e]={needExec:!0,execFun:i,execFunRunning:!1,inputFun:o,value:null,time:null,timeExpired:u},n("message",{fun:"set",key:e,timeExpired:u})}async function i(e){if(Zt(t,e)){let r;n("message",{fun:"get",key:e,msg:"waiting"}),await Rh((()=>!t[e].execFunRunning),{timeInterval:1e3});let i=Date.now();r=t[e].needExec;let o=i-t[e].time;return r?n("message",{fun:"get",key:e,msg:"execute first"}):t[e].timeExpired>0&&o>t[e].timeExpired&&(n("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:o}),r=!0),r?(n("message",{fun:"get",key:e,msg:"execFun start"}),t[e].execFunRunning=!0,t[e].value=await t[e].execFun(...t[e].inputFun).catch((t=>{n("error",{fun:"get",key:e,msg:t})})),t[e].needExec=!1,t[e].time=i,t[e].execFunRunning=!1,n("message",{fun:"get",key:e,msg:"execFun end"})):n("message",{fun:"get",key:e,msg:"use cache"}),Ic(t[e].value)}return n("error",{fun:"get",key:e,msg:"invalid key"}),null}return e.set=r,e.getProxy=async function(e){return r(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),i(e)},e.get=i,e.update=function(e,r){Zt(t,e)&&(n("message",{fun:"updateValue",key:e}),t[e].value=r,t[e].time=Date.now())},e.clear=function(e){Zt(t,e)&&(n("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Zt(t,e)&&(n("message",{fun:"remove",key:e}),delete t[e])},e},e.cbol=function(e){if(Yl(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return qt(e)&&"true"===(e=Uh(ep(e)))&&(t=!0),t},e.cdbl=sa,e.cfilesize=function(e){return Xt(e)?(e=sa(e))<1024?Wh(e,1)+" b":e<1048576?Wh(e/1024,1)+" kb":e<1073741824?Wh(e/1024/1024,1)+" mb":e<1099511627776?Wh(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Xt(e))return"";if(!_f(t))return"";let n=(e=Wh(e,t)).split("."),r=n[0],i=n.length>1?"."+n[1]:"",o=/(\d+)(\d{3})/;for(;o.test(r);)r=r.replace(o,"$1,$2");return r+i},e.cint=qc,e.clearXSS=function(e){return function e(t){return Ut(t)||Rt(t)?(ou(t,(function(n,r){t[r]=e(n)})),t):Wt(t)?r(t,{onIgnoreTagAttr:function(e,t,n,i){if("style"===t)return t+'="'+r.escapeAttrValue(n)+'"'}}):t}(Ic(e))},e.color=Jv,e.composeToTree=_m,e.convertToTree=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!zt(e)&&!Yu(e))return[];let n=Ft(t,"bindKey",null);qt(n)||(n="id");let r=Ft(t,"bindParent",null);qt(r)||(r="parentId");let i=Ft(t,"bindText",null);qt(i)||(i="text");let o=Ft(t,"bindChildren",null);qt(o)||(o="children");let u=Ft(t,"bindType",null);qt(u)||(u="type");let l=Ft(t,"bindNumOfChilren",null);qt(l)||(l="numOfChilren");let a=Ft(t,"bindRoot",null);qt(a)||(a="root");let s=Ft(t,"saveExtProps",null);return Yl(s)||(s=!1),qt(a)&&(e={[a]:e}),_m(Pm(e,{bindKey:n,bindParent:r,bindText:i,bindType:u,bindNumOfChilren:l}),{bindKey:n,bindParent:r,bindChildren:o,saveExtProps:s})},e.copyStrToClipboard=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Wt(e))return"invalid input";let n=Ft(t,"eleParent");Ko(n)||(n=document.body);let r=document.createElement("textarea");if(r.style.position="fixed",r.style.left=0,r.style.top=0,r.style.zIndex=-1,r.style.background="transparent",r.style.color="transparent",r.value=e,n.appendChild(r),r.select(),!Tm(r))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return n.removeChild(r),""},e.cosd=Ym,e.cotd=function(e){return Xt(e)?1/Hm(e=sa(e)):null},e.createExcelWorkbook=Im,e.cscd=function(e){return Xt(e)?1/Lm(e=sa(e)):null},e.cstr=Xp,e.day2cht=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Nm(e))return"";let r=n(e,"YYYY-MM-DD"),i="";return i=t?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日",i},e.debounce=function(){return new function(e){let t=[],n=null,r=null;return Vc(e)||(e=300),e=qc(e),function(i){if(wp(i)){r=Date.now();for(var o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];t.push({func:i,input:u}),null===n&&(n=setInterval((()=>{if(Date.now()-r>e){let e=t.pop();t=[],e.func(...e.input)}0===t.length&&(clearInterval(n),n=null)}),10))}else console.log("func is not a function")}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:300)},e.delay=$m,e.dig=Wh,e.digExp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Xt(e))return"";if(!_f(t))return"";let n="";return n=0===(e=sa(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):Wh(e,t),n},e.domAlert=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!qt(e))return;let n=Ft(t,"type","success");Zt(Wm,n)||(n="success");let r=Ft(t,"icon",null);qt(r)||(r=Wm[n]);let i="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(i=t.position);let o=Ft(t,"time");yp(o)||(o=4e3),o<0&&(o=4e3);let u=Ft(t,"paddingStyle",null);null===u&&(u={top:14,right:26,bottom:14,left:14});let l="";{let e=Ft(u,"top",0),t=Ft(u,"bottom",0),n=Ft(u,"left",0);l=`padding:${e}px ${Ft(u,"right",0)}px ${t}px ${n}px;`}let a=Ft(t,"textColor","#000");a=Xh(a,";","");let s=Ft(t,"backgroundColor","#fff");s=Xh(s,";","");let c=Ft(t,"borderWidth",1),f=Ft(t,"borderColor","#ebeef5");f=Xh(f,";","");let d=Ft(t,"borderRadius",8),p=Ft(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");p=Xh(p,";","");let h=Ft(t,"closeIconShift",null);null===h&&(h={top:10,right:10});let v="";{let e=Ft(h,"top",""),t=Ft(h,"bottom",""),n=Ft(h,"left",""),r=Ft(h,"right","");yp(e)&&(e=`top:${e}px;`),yp(t)&&(t=`bottom:${t}px;`),yp(n)&&(n=`left:${n}px;`),yp(r)&&(r=`right:${r}px;`),v=`position:absolute; ${e} ${r} ${t} ${n}`}let m=`alt-${Fm()}`,g=`alt-${Fm()}`,y=`\n <div \n style="display:inline-block; color:${a}; background:${s}; border:${c}px solid ${f}; border-radius:${d}px; box-shadow:${p};"\n onmouseenter="ttWAlertFadeIn('${g}')"\n onmouseleave="ttWAlertFadeOut('${g}')"\n >\n <div style="position:relative; ${l}">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">${r}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${v}">\n <div \n id="${g}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${m}')"\n >\n ${Um}\n </div>\n </div>\n\n </div>\n </div>\n `,b=document.createElement("div");b.id=m,b.style.position="fixed",b.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",b.style.zIndex=-1,b.style.opacity=.001,i.indexOf("-left")>=0?b.style.transform="translateX(-100%)":b.style.transform="translateX(100%)",b.innerHTML=y,document.querySelector("body").appendChild(b);let w=kh();return function(e){let{id:t,position:n,time:r,pm:i}=e;qm[t]={id:t,position:n,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:r,timeStart:Date.now(),pm:i},Zm(),null===Vm&&(Vm=setInterval((()=>{ou(qm,(e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),Gm(e.id))})),zt(qm)||(clearInterval(Vm),Vm=null)}),50))}({id:m,position:i,time:o,pm:w}),w},e.domAppend=Km,e.domCancelEvent=Qm,e.domCompareText=tg,e.domCompareTextDyn=async function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5?arguments[5]:void 0;return Yu(o)||(o=["https://cdn.jsdelivr.net/npm/diff2html@3.4.34/bundles/css/diff2html.min.css","https://cdn.jsdelivr.net/npm/diff2html@3.4.34/bundles/js/diff2html.min.js"]),await ug(o),tg(e,t,n,r,i)},e.domConvertToPic=cg,e.domConvertToPicDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Yu(n)||(n=["https://cdn.jsdelivr.net/npm/html-to-image@1.11.11/dist/html-to-image.js"]),await ug(n),cg(e,t)},e.domDetect=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ft(t,"timeInterval",null);Vc(n)||(n=20);let r=Ft(t,"tolerancePixel",null);Vc(r)||(r=1);let i,o=$c(),u={offsetWidth:0,offsetHeight:0};if(!wp(e))return console.log("invalid f",e),null;i=setInterval((()=>{let t=e();if(t){let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight},n=Math.abs(u.offsetWidth-e.offsetWidth)>r,i=Math.abs(u.offsetHeight-e.offsetHeight)>r;if(n||i){let n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fg(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u);setTimeout((()=>{e.offsetWidth>0&&e.offsetHeight>0&&(o.emit("resize",{sold:n,snew:e,ele:t}),o.emit("resizeWithWindow",{sold:n,snew:e,ele:t,from:"dom"}))}),1)}u=e}}),n);let l=e=>{o.emit("resizeWithWindow",{snew:u,from:"window"})};return window.addEventListener("resize",l),o.clear=()=>{clearInterval(i),window.removeEventListener("resize",l)},o},e.domDrag=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return void console.log("ele is not a HTMLElement",e);let n=Ft(t,"attIdentify",null);qt(n)||(n="dragid");let r=Ft(t,"attIndex",null);qt(r)||(r="dragindex");let i=Ft(t,"attGroup",null);qt(i)||(i="draggroup");let o=Ft(t,"group",null);qt(o)||(o="group");let u=Ft(t,"previewOpacity",null);yp(u)||(u=.4);let l=Ft(t,"previewDisabledOpacity",null);yp(l)||(l=.2);let a=Ft(t,"previewBackground",null);qt(a)||(a="white");let s=Ft(t,"previewBorderWidth",null);yp(s)||(s=1);let c=Ft(t,"previewBorderColor",null);qt(c)||(c="#f26");let f=Ft(t,"timeDragStartDelay",null);yp(f)||(f=120);let d=`c${Fm(8)}`,p=o;e.setAttribute(i,p),e.setAttribute(n,d);let h=Tg(p,d,{attIdentify:n,previewOpacity:u,previewBackground:a,previewBorderWidth:s,previewBorderColor:c}),v=function(e,t,n,r){let i=[];return{bind:function(){let n;n="mousedown";let r=function(n){t.dragStart({e:n,ele:e,name:"mousedown"})};e.addEventListener(n,r,!1),i.push({ele:e,name:n,f:r}),n="touchstart";let o=function(n){t.dragStart({e:n,ele:e,name:"touchstart"})};e.addEventListener(n,o,!1),i.push({ele:e,name:n,f:o}),n="touchmove";let u=function(e){t.dragMove({e:e,name:"touchmove"}),e.cancelable&&e.preventDefault()};e.addEventListener(n,u,!1),i.push({ele:e,name:n,f:u})},unbind:function(){ou(i,(e=>{let{ele:t,name:n,f:r}=e;t.removeEventListener(n,r)}))}}}(e,{dragStart:e=>{h.emit(p+"-dragStart",e)},dragMove:e=>{h.emit(p+"-dragMove",e)}});v.bind(),Hg({gid:p,attGroup:i,attIndex:r,attIdentify:n,timeDragStartDelay:f,previewOpacity:u,previewDisabledOpacity:l});let m=$c();return h.on(o+"-change",(e=>{e.tarEid===d&&m.emit("change",e)})),h.on(o+"-start",(e=>{e.tarEid===d&&m.emit("start",e)})),h.on(o+"-move",(e=>{e.tarEid===d&&m.emit("move",e)})),h.on(o+"-enter",(e=>{e.tarEid===d&&m.emit("enter",e)})),h.on(o+"-leave",(e=>{e.tarEid===d&&m.emit("leave",e)})),h.on(o+"-drop",(e=>{e.tarEid===d&&m.emit("drop",e)})),m.setIsActive=function(e){Pg[p].isActive=e},m.unbind=function(){v.unbind(),function(e,t){let n=Pg[e],r=Ic(n.eleIds);xg(r,t),n.eleIds=r,0===r.length&&(n.oevg.unbind(),n.pv.clear(),delete Pg[e])}(p,d)},m},e.domDragBarAndScroll=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=null,o=null,u=null,l=null,a=null,s=null,c=null,f=null,d=null,p=null,h=null,v=null,m=null,g=null,y=!1,b=Ft(n,"getHeighRatio",null);K(b)||(b=()=>1);let w=Ft(n,"getWidthRatio",null);K(w)||(w=()=>1);let x=Ft(n,"stopScrollPropagationForPanel",null);Tl(x)||(x=!1);let j=Ft(n,"stopTouchDragPropagationForPanel",null);Tl(j)||(j=!1);let O=Ft(n,"useTouchDragForPanel",null);Tl(O)||(O=!0);let S=e,E=t,D=$c();return r=e=>{let t=e.deltaY/Math.abs(e.deltaY),n=e.deltaX/Math.abs(e.deltaX);D.emit("scrollPanel",{ratioY:t,ratioX:n}),x&&Qm(e)},S.addEventListener("wheel",r),i=e=>{if(O){let t=Ft(e,"touches.0.clientY",0),n=Ft(e,"touches.0.clientX",0),r=-t*b(),i=-n*w();y=!0,D.emit("pressBar",{clientY:r,clientX:i}),j&&Qm(e)}},S.addEventListener("touchstart",i),o=e=>{if(O&&y){let t=Ft(e,"touches.0.clientY",0),n=Ft(e,"touches.0.clientX",0),r=-t*b(),i=-n*w();D.emit("dragBar",{clientY:r,clientX:i}),j&&Qm(e)}},S.addEventListener("touchmove",o,{passive:!1}),u=e=>{O&&y&&(y=!1,D.emit("freeBar"),j&&Qm(e))},S.addEventListener("touchend",u),l=e=>{y=!0,D.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},E.addEventListener("mousedown",l),a=e=>{y&&(y=!1,D.emit("freeBar"))},E.addEventListener("mouseup",a),s=e=>{y=!0,D.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},E.addEventListener("touchstart",s),c=e=>{y&&(D.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),Qm(e))},E.addEventListener("touchmove",c,{passive:!1}),f=e=>{y&&(y=!1,D.emit("freeBar"))},E.addEventListener("touchend",f),d=e=>{y&&D.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",d),p=e=>{y&&(y=!1,D.emit("freeBar"),x&&Qm(e))},window.addEventListener("mouseup",p),h=e=>{},window.addEventListener("scroll",h,{passive:!1}),v=e=>{},window.addEventListener("wheel",v,{passive:!1}),m=e=>{},document.addEventListener("scroll",m,{passive:!1}),g=e=>{},document.addEventListener("wheel",g,{passive:!1}),D.clear=function(){S.removeEventListener("wheel",r),S.removeEventListener("touchstart",i),S.removeEventListener("touchmove",o),S.removeEventListener("touchend",u),E.removeEventListener("mousedown",l),E.removeEventListener("mouseup",a),E.removeEventListener("touchstart",s),E.removeEventListener("touchmove",c),E.removeEventListener("touchend",f),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p),window.removeEventListener("scroll",h),window.removeEventListener("wheel",v),document.removeEventListener("scroll",m),document.removeEventListener("wheel",g)},D},e.domDragPreview=Mg,e.domDropFiles=function(e){let t=!1,n=!1,r=$c();function i(e){Qm(e),n=!0,!1===t&&(t=!0,r.emit("dropIn",{ev:e}))}function o(e){Qm(e),n=!1,setTimeout((function(){n||(t=!1,r.emit("dropOut",{ev:e}))}),100)}function u(e){i(e)}function l(e){o(e)}function a(e){function t(){o(e)}i(e),Ng(e.dataTransfer).then((n=>{let i=fp(n.entries,{type:"file"});r.emit("getFiles",{ev:e,files:n.files,filesTree:i,entries:n.entries,cb:t})})).catch((e=>{r.emit("error",e)}))}return e.addEventListener("dragenter",u,!1),e.addEventListener("dragover",u,!1),e.addEventListener("dragleave",l,!1),e.addEventListener("drop",a,!1),r.off=function(){e.removeEventListener("dragenter",u,!1),e.removeEventListener("dragover",u,!1),e.removeEventListener("dragleave",l,!1),e.removeEventListener("drop",a,!1)},r},e.domElementsFromPoint=Sg,e.domFadeIn=Rm,e.domFadeOut=zm,e.domFind=$g,e.domFinds=lg,e.domGetAttr=Eg,e.domGetBoudRect=Dg,e.domGetBoudRectRefSelf=kg,e.domGetFileAccept=Fg,e.domGetFiles=Rg,e.domGetParents=jg,e.domGetPointFromEvent=Og,e.domGetScrollableParent=function(e){let t=/(auto|scroll)/,n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return t.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(e))};if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let i=jg(e);for(let e=0;e<i.length;e+=1)if(r(i[e]))return i[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=$l();return{width:(()=>{let t=[Ft(e,"innerWidth"),Ft(e,"document.documentElement.clientWidth"),Ft(e,"document.body.clientWidth")];return t=fp(t,yp),Xg(t)})(),height:(()=>{let t=[Ft(e,"innerHeight"),Ft(e,"document.documentElement.clientHeight"),Ft(e,"document.body.clientHeight")];return t=fp(t,yp),Xg(t)})()}},e.domIsClientXYIn=function(e,t,n){if(!yp(e))return void console.log("clientX is not a number",e);if(!yp(t))return void console.log("clientY is not a number",t);if(!Ko(n))return void console.log("ele is not a HTMLElement",n);let r;try{r=n.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}let i=!1;try{i=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}catch(e){console.log("catch when calculating page information of element",e)}return i},e.domIsFocused=Tm,e.domIsVisible=function(e){if(!Ko(e))return Promise.reject("invalid element");if(Zg())return Promise.reject("invalid IntersectionObserver");let t=kh();try{let n=new IntersectionObserver((e=>{t.resolve(e[0].isIntersecting),n.disconnect()}));n.observe(e)}catch(e){t.reject(e)}return t},e.domPrepend=sg,e.domRemove=ag,e.domRenderMarkdownMind=Gg,e.domRenderMarkdownMindDyn=async function(e,t){let n=arguments.length>3?arguments[3]:void 0;return Yu(n)||(n=["https://cdn.jsdelivr.net/npm/d3@7.8.3/dist/d3.min.js","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4/dist/index.min.js","https://cdn.jsdelivr.net/npm/markmap-lib@0.14.4/dist/browser/index.min.js"]),await ug(n),Gg(e,t)},e.domRipple=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ft(n,"timeDuration",null);Vc(r)||(r=1e3);let i=Ft(n,"color",null);if(qt(i)||(i="rgba(255, 255, 255, 0.5)"),!Ko(e))return;e.style.position="relative",e.style.overflow="hidden";let o=e.getBoundingClientRect(),u=t.clientX-o.left,l=t.clientY-o.top,a=2*Math.max(e.clientWidth,e.clientHeight),s=document.createElement("div");s.style.width=`${a}px`,s.style.height=`${a}px`,s.style.transition=`all ${r/1e3}s linear`,s.style.position="absolute",s.style.zIndex=1,s.style.left=`${u}px`,s.style.top=`${l}px`,s.style.borderRadius="50%",s.style.transformOrigin="center",s.style.transform="translate(-50%,-50%) scale(0)",s.style.background=i,s.style.userSelect="none",s.style.pointerEvents="none",e.appendChild(s),setTimeout((()=>{s.style.transform="translate(-50%,-50%) scale(2)",s.style.opacity=0}),1),setTimeout((()=>{ag(s)}),r)},e.domScrollIntoView=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return;Rt(t)||(t={});let n={behavior:"smooth"};n=Fy(Fy({},n),t),Jm()&&Cy(),e.scrollIntoView(n)},e.domScrollTo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return;Rt(t)||(t={});let n={behavior:"smooth"};n=zy(zy({},n),t),Jm()&&Cy(),e.scrollTo(n)},e.domShowImages=Db,e.domShowImagesDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return Yu(r)||(r=["https://cdn.jsdelivr.net/npm/viewerjs@1.11.3/dist/viewer.min.css","https://cdn.jsdelivr.net/npm/viewerjs@1.11.3/dist/viewer.min.js"]),await ug(r),Db(e,t,n)},e.domShowInputAndGetFiles=Mb,e.domShowInputAndGetFilesU8Arrs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ft(t,"multiple");Yl(n)||(n=!1);let r=Ft(t,"entireHierarchy");Yl(r)||(r=!1);let i=Ft(t,"sizelimit");Xt(i)||(i=1e3),i=sa(i);let o=kh(),u=[];return Mb(e,{multiple:n,entireHierarchy:r,sizelimit:i}).then((function(e){let t=kh(),n=Ft(e,"errs",{}),r=Ft(e,"files",[]);return zt(n)?t.reject(n):t.resolve(r),t})).then((function(e){return ou(e,(function(e){u.push({name:e.name,size:e.size,type:e.type})})),Th(e)})).then((function(e){ou(e,(function(e,t){u[t].u8a=e})),o.resolve(u)})).catch((function(e){o.reject(e)})),o},e.domTooltip=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=null;function o(){null!==r&&r.destroy(!0),e.setAttribute("tippystate",""),clearInterval(i)}let u={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=zt(n)?Eb(u,n):u;let l=t;t||(l=e.innerHTML);let a=Xt(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),a)return;l=`<div style="text-align:left;">${l}</div>`;let s=zx;zx.default&&(s=zx.default),r=s(e,qx(qx({},n),{},{content:l,allowHTML:!0,onHidden(){o()},onDestroy(){r=null,o()}})),r.show(),i=setInterval((()=>{let t=e.getAttribute("tippystate");Xt(t)?(t=qc(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()}),1e3)},e.domTriggerEvent=kb,e.domVirtualCreate=Vx,e.domVirtualCreateQueue=function(){return new function(){let e=Jx(1);return async function(t){return e(Vx,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}},e.downloadExcelFileFromData=nj,e.downloadExcelFileFromDataDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;Yu(r)||(r=["https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js"]),await ug(r);let i=nj(e,t,n);return""!==Ft(i,"error","")?Promise.reject(i.error):i},e.downloadFileFromB64=function(e,t){if(!Nl())return void console.log("no window");if(!qt(e))return void console.log("no filename");let n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e.downloadFileFromBlob=Qx,e.downloadFileFromText=function(e,t){let n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Nl()?qt(e)?Wt(t)?Yl(r)?(n=r?new Blob(["\ufeff",t]):new Blob([t]),Qx(e,n)):console.log("withBOM is not a boolean"):console.log("invalid content"):console.log("invalid filename"):console.log("no window")},e.downloadFileFromU8Arr=function(e,t){if(!Nl())return void console.log("no window");if(!qt(e))return void console.log("no filename");if(!Oh(t))return void console.log("no data");Qx(e,rj(t))},e.dtmapping=ij,e.dtpick=oj,e.evem=$c,e.execProcess=function(e,t){function n(e){try{return e.toString("utf8")}catch(e){}return""}return new Promise((function(r,i){let u="";o.exec(`${e} ${t}`,((e,t,r)=>{if(e)return i(e);qt(t=n(t))&&(u+=t),qt(r=n(r))&&(u+=r)})).on("close",(e=>{r(u)}))}))},e.execScript=function(e,t){return new Promise((function(n,r){Ut(t)||(t=[t]);let i=o.spawnSync(e,t),u=fp(i.output,(e=>null!==e));u=pu(u,(e=>function(e){try{return e.toString("utf8")}catch(e){}return""}(e)));let l=If(u,""),a=Ft(i,"error.message");a?r(a):n(l)}))},e.f2c=function(e){if(!wp(e))return"";let t=String(e),n=t.substring(t.indexOf("/*")+3,t.lastIndexOf("*/"));return n=th(n),n},e.filepathToTree=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return{};let n=Ft(t,"delimiter");qt(n)||(n="❯");let r=Ft(t,"bindRoot");qt(r)||(r="root");let i=Ft(t,"soryItems"),o=pu(e,((e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let r=(e=>{let t=np(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:If(t,n)}})(e.path);return{ind:t,type:e.type,ss:r.ss,data:Ic(e)}})),u=e=>{let t=_l(e),r=[];for(let i=0;i<t;i++){let t=[];for(let n=0;n<=i;n++)t.push(e[n]);let o=If(t,n);r.push({id:o,name:e[i]})}return r},l=-1,a=[],s={};ou(o,(e=>{let t=[r],i=r,o=_l(e.ss)-1;ou(e.ss,((r,c)=>{let f=c<o||"folder"===e.type;t.push(r);let d=null,p=null;c===o&&(d=e.ind,p=e.data);let h=If(t,n),v=u(t);if(!Zt(s,h)){l++;let e=l;s[h]=f?{_indOri:d,_indNormalize:e,ns:_l(t),ts:Ic(t),pathInfors:v,_type:"folder",type:"array",numOfChilren:-1,id:h,parentId:i,text:r,children:[],data:p}:{_indOri:d,_indNormalize:e,ns:_l(t),ts:Ic(t),pathInfors:v,_type:"file",type:"node",numOfChilren:-1,id:h,parentId:i,text:r,data:p},a.push(Yj(Yj({},Ft(s[h],"data",{})),{},{type:s[h]._type,path:"/"+If(t,"/")}))}i=h}))}));let c=pj(s);if(c=Vp(c,"id"),c=Vp(c,"ns"),wp(i)){let e=[],t=jj(c,"ns");ou(t,((t,n)=>{let r=jj(t,"parentId");ou(r,((t,r)=>{let o=i(t,r,n);e=[...e,...o]}))})),c=e}let f=[],d=[];ou(c,(e=>{"folder"===e._type?f.push(e):d.push(e)}));let p=jj(f,"ns"),h=jj(d,"ns"),v=sj(pu(f,"ns")),m=sj(pu(d,"ns")),g=null;{let e=[r];g=[{_indOri:null,_indNormalize:null,ns:_l(e),ts:Ic(e),pathInfors:u(e),_type:"folder",type:"array",numOfChilren:-1,id:r,parentId:"",text:r,children:[],data:null}]}let y={};y[r]="0.children";let b={};b[r]="0";for(let e=2;e<=v;e++){let t=p[e];ou(t,(e=>{let t=Ft(y,e.parentId,"");if(!qt(t))throw console.log("kpPathFd",y),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let n=Ft(g,t);if(Ut(n)||lm(g,t,[]),n=Ft(g,t),!zt(Pj(n,{id:e.id}))){n.push(Yj(Yj({},e),{},{children:[]}));let r=`${t}.${_l(n)-1}`;y[e.id]=`${r}.children`,b[e.id]=r}}))}let w=Ic(g),x={};for(let e=2;e<=m;e++){let t=h[e];ou(t,(e=>{let t=Ft(y,e.parentId,"");if(!qt(t))throw console.log("kpPathFd",y),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let n=Ft(g,t);if(!Ut(n))throw console.log("treeItems",g),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!zt(Pj(n,{id:e.id}))){n.push(e);let r=`${t}.${_l(n)-1}`;x[e.id]=r,b[e.id]=r}}))}return{treeItems:g,treeItemsFolder:w,kpPath:b,fpsNormalize:a}},e.files2data=function(e){let t=kh(),n=pu(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));return Ph(e).then((function(e){let r=pu(e,(function(e){return{b64:e}})),i=Hj(n,r);t.resolve(i)})),t},e.flattenToConn=Pm,e.flattenTree=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ut(e)){if(0===e.length)return[]}else{if(!Rt(e))return[];if(_u(e))return[]}let n=Ft(t,"bindKey",null);qt(n)||(n="id");let r=Ft(t,"bindChildren",null);qt(r)||(r="children");let i=!1;Rt(e)&&(i=!0,e=[e]);let o=[];return Am(e,((e,t,i)=>{let u=Ft(e,n,null),l=Ft(e,r,null);if(u){let n=function(e){let t=[e[0]];for(let n=1;n<e.length;n++){let i=e[n];t.push(r),t.push(i)}return t}([...i,t]);if(o.push(Lj(Lj({},e),{},{level:(_l(n)-1)/2,nk:n})),l)return l}})),i&&(o=o[0]),o},e.fsCleanFolder=function(e){if(!u.existsSync(e)){let t=Cj(e);return t.error?t.error:{success:"done: "+e}}if(!Nj(e))return{error:"input path is not a folder"};try{u.readdirSync(e).forEach((function(t){let n=e+"/"+t;if(u.lstatSync(n).isDirectory())$j(n);else try{u.unlinkSync(n)}catch(e){}}))}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCopyFolder=function e(t,n){try{u.readdirSync(t).forEach((function(r){let i=t+"/"+r,o=n+"/"+r,a=u.lstatSync(i);if(a.isDirectory())Cj(l.dirname(o)),e(i,o);else if(a.isSymbolicLink()){let e=u.readlinkSync(i);u.symlinkSync(e,o)}else Cj(l.dirname(o)),u.copyFileSync(i,o)}))}catch(e){return{error:e}}return{success:"done: "+n}},e.fsCreateFile=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(u.existsSync(e))return{error:"input path already exists: "+e};if(Bj(e))return{error:"input file is already exists: "+e};try{u.writeFileSync(e,t,n)}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCreateFolder=Cj,e.fsDeleteFile=function(e){if(!u.existsSync(e))return{success:"file does not exist: "+e};if(!Bj(e))return{error:"input path is not a file: "+e};try{u.unlinkSync(e)}catch(e){return{error:e}}return{success:"done: "+e}},e.fsDeleteFolder=$j,e.fsEvem=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"./_evps",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=$c(),i=Ft(t,"timeDetect");Vc(i)||(i=50),i=qc(i);let o=Ft(t,"timeRewatch");return Vc(o)||(o=1e3),o=qc(o),Nj(e)||Cj(e),r.on=function(t,r){let a=l.resolve(e,t),s=Fj({timeDetect:i,timeRewatch:o});s.on(a,(e=>{let t=u.readFileSync(a,"utf8"),n=xh(t);zt(n)&&(t=n),r(t,e)})),n.push({fp:a,evf:s})},r.off=function(t){let r=l.resolve(e,t);ou(n,(e=>{e.fp===r&&e.evf.clear()}))},r.emit=function(t,n){let r=l.resolve(e,t);qt(n)||(n=JSON.stringify(n)),u.writeFileSync(r,n,"utf8")},r.clear=function(){ou(n,(e=>{e.evf.clear()}))},r},e.fsGetFilesInFolder=function(e){let t=Rj(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1);return t=fp(t,(e=>Bj(e.path))),t=pu(t,"path"),t},e.fsGetFoldersInFolder=function(e){let t=Rj(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1);return t=fp(t,(e=>!Bj(e.path))),t=pu(t,"path"),t},e.fsIsFile=Bj,e.fsIsFolder=Nj,e.fsReadText=function(e){return u.readFileSync(e,"utf8")},e.fsRenameFile=function(e,t){if(!Bj(e))return{error:`pahOld[${e}] is not a file`};if(!u.existsSync(t))return{error:`pahNew[${t}] does exist`};try{u.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}},e.fsRenameFolder=function(e,t){if(!Nj(e))return{error:`pahOld[${e}] is not a folder`};if(!u.existsSync(t))return{error:`pahNew[${t}] does exist`};try{u.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}},e.fsTreeFolder=Rj,e.fsWatchFile=Fj,e.fsWriteText=function(e,t){u.writeFileSync(e,t,"utf8")},e.genGradientColor=function(e){if(Tu(e))return{};let t;try{t=Jv.toRgba(e)}catch(e){return{}}function n(e,t){return e.a=t,Jv.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,n(t,.4)],[1,n(t,.9)]]}},e.genID=Fm,e.genPm=kh,e.getBufferSize=Uj,e.getClearPathName=Wj,e.getCsvStrFromData=qj,e.getDataFromExcelFileU8Arr=Zj,e.getDataFromExcelFileU8ArrDyn=async function(e,t,n){Yu(n)||(n=["https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js"]),await ug(n);let r=Zj(e,t);return""!==Ft(r,"error","")?Promise.reject(r.error):r},e.getDirName=function(e){if(!qt(e))return"";let t=Wj(e);if(t.isRoot)return t.path;let n=Gj(e=t.path);if(!qt(n))return e;let r=Wj(e=eh(e,_l(n)));return r.isRoot,r.path},e.getEnv=function(){let e=Nl(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return e=e||t,{isBrowser:e,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getExcelU8ArrFromData=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!Yu(e)){return{error:"no data"}}qt(t)||(t="data");let n=null,r=tj(e,t);return Zt(r,"error")?r:(n=Kj(r),Zt(n,"error"),n)},e.getExcelU8ArrFromWorkbook=Kj,e.getExcelWorkbookFromData=tj,e.getExcelWorkbookFromWorksheet=ej,e.getExcelWorksheetFromData=Bl,e.getFileAccept=Bg,e.getFileName=Gj,e.getFileTrueName=function(e){if(!qt(e))return"";let t=Gj(e),n=vd(t,".");if(_l(n)<=1)return t;let r="";try{n=yd(n),r=If(n,".")}catch(e){}return r},e.getGlobal=$l,e.getObjSize=function(e){let t=0,n=function e(n){if(null!=n)switch(typeof n){case"number":t+=8;break;case"string":t+=2*n.length;break;case"boolean":t+=4;break;case"object":let r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r||"Array"===r)for(let t in n)n.hasOwnProperty(t)&&e(n[t]);else t+=2*n.toString().length}return t}(e),r=function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(n);return{int:n,str:r}},e.getTimeBetween=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",r=iO(n);if(""===r)return[];let i=oO(e,n),o=oO(t,n);if(null===i||null===o)return[];if(e>=t)return[];let u=o.diff(i,n)+1;return pu(rO(u),(function(e){return i.clone().add(e,n).format(r)}))},e.getTimeFromUnit=iO,e.getTimeObject=oO,e.getTimeRange=function(e,t){if(!uO(e))return"無起始時間";if(void 0===t&&(t=e),!uO(t))return"結束時間格式錯誤";let r=n(e,"YYYY-MM-DDTHH:mm:ss"),i=n(t,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),u=i.format("YYYY-MM-DD");if(o===u){let n=i.format("HH:mm");if(e===t)return lO(e)+" 至 無";if(e<t)return lO(e)+" 至 "+n;if(e>t)return lO(e)+" 至 "+n+" (起始時間大於結束時間)"}else{if(o<u)return lO(e)+" 至 "+lO(t);if(o>u)return lO(e)+" 至 "+lO(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=aO,e.getUserAgentDyn=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return Yu(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@1.0.34/dist/ua-parser.min.js"]),await ug(t),aO(e)},e.getltdtkeys=el,e.haskey=Zt,e.html2pic=cO,e.html2picDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Yu(n)||(n=["https://cdn.jsdelivr.net/npm/canvg@4.0.0/lib/umd.js","https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js"]),await ug(n),cO(e,t)},e.html2str=fO,e.html2strDyn=async function(e,t){return Yu(t)||(t=["https://cdn.jsdelivr.net/npm/htmlparser@1.7.7/lib/htmlparser.min.js"]),await ug(t),await fO(e)},e.htmlDecode=function(e){let t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML},e.htmlEncode=Yh,e.importResources=ug,e.interp1=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Ut(e))return{err:"ps is not an array"};if(!yp(t))return{err:"x is not a number"};let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(_l(e)<=0)return[];let n=Ft(t,"keyX");qt(n)||(n="x");let r=Ft(t,"keyY");qt(r)||(r="y");let i=[];return ou(e,(e=>{let t=null,o=null;Ut(e)&&_l(e)>=2?(t=Ft(e,0),o=Ft(e,1)):(t=Ft(e,n,null),o=Ft(e,r,null)),Xt(t)&&Xt(o)&&(t=ea(t),o=ea(o),i.push({x:t,y:o}))})),i}(e,n);if(Ft(r,"err"))return Ft(r,"err");if(0===_l(r))return{err:"ps(length=0) is not an effective array",ps:e,psEff:r};if(1===_l(r))return{err:"ps(length=1) is one point only",ps:e,psEff:r};let i=function(e){let t=!0,n=!0;for(let r=1;r<_l(e);r++){let i=e[r-1],o=e[r];if(t&&i.x>o.x&&(t=!1),n&&i.x<o.x&&(n=!1),i.x===o.x)return{err:`x can not be equal: i=${r}, x=${i.x}`}}return t?hO:n?vO:"no"}(r);if("no"===i)return{err:"psEff is not increasing or decreasing"};i===vO&&(i=hO,r=Qp(r));let o=Ft(n,"mode");"linear"!==o&&"stairs"!==o&&"blocks"!==o&&(o="linear");try{if("linear"===o)return function(e,t){let n=mO(e,t);if(n!==dO)return n;let r=null;for(let n=1;n<_l(e);n++){let i=e[n-1],o=e[n];if(i.x<=t&&t<=o.x){r=((t-i.x)*o.y+(o.x-t)*i.y)/(o.x-i.x);break}}return null===r?{err:pO}:r}(r,t);if("blocks"===o)return function(e,t){let n=mO(e,t);if(n!==dO)return n;let r=null;for(let n=1;n<_l(e);n++){let i=e[n-1],o=e[n],u=i.x,l=o.x;if(u<=t&&t<=l){r=o.y;break}}return null===r?{err:pO}:r}(r,t);if("stairs"===o)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ft(n,"xMin");if(yp(r)){if(r>e[0].x)return{err:`xMin=${r} > ps[0].x=${e[0].x}`};r===e[0].x||(e=[{x:r,y:e[0].y},...e])}let i=Ft(n,"xMax");if(yp(i)){if(i<e[_l(e)-1].x)return{err:`xMax=${i} < ps[size(ps)-1].x=${e[_l(e)-1].x}`};if(i===e[_l(e)-1].x);else{let t={x:i,y:e[_l(e)-1].y};e=[...e,t]}}let o=mO(e,t);if(o!==dO)return o;let u=null;for(let n=0;n<_l(e);n++){let r=Ft(e,n-1,null),i=Ft(e,n,null),o=Ft(e,n+1,null),l=i.x;r&&(l=(r.x+i.x)/2);let a=i.x;if(o&&(a=(o.x+i.x)/2),l<=t&&t<=a){u=i.y;break}}return null===u?{err:pO}:u}(r,t,n)}catch(e){return{err:e.toString()}}},e.isDev=function(){return!!location&&Dh(location.href,"localhost")},e.isEle=Ko,e.isEleExistByID=function(e){return!!qt(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!qt(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isIE=Jm,e.isNarrow=function(e){if(!Nl())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,n=!1;if(e){let t=Ft(e,"clientWidth",0);n=t>0&&t<=700}return t||n},e.isStrHasCapital=wO,e.isStrHasLowerCase=xO,e.isStrHasNumber=jO,e.isUserIdentify=function(e){let t=kh();if(!qt(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substr(1,9))||!/^[A-Z]$/.test(e.substr(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substr(1,9);let n=parseInt(e.substr(0,1))+9*parseInt(e.substr(1,1))+8*parseInt(e.substr(2,1))+7*parseInt(e.substr(3,1))+6*parseInt(e.substr(4,1))+5*parseInt(e.substr(5,1))+4*parseInt(e.substr(6,1))+3*parseInt(e.substr(7,1))+2*parseInt(e.substr(8,1))+parseInt(e.substr(9,1)),r=parseInt(e.substr(10,1));return n%10!=0&&10-n%10!==r?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){let t=kh();return qt(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPW=function(e){let t=kh();if(!Wt(e))return t.reject("密碼非字串"),t;let n=[];return e.length<8&&n.push("長度須大於8個字元"),e.length>30&&n.push("長度須小於30個字元"),wO(e)&&xO(e)&&jO(e)||n.push("須包含大寫、小寫英文與數字各1個字元"),Dh(e,["<",">"])&&n.push("不能使用特殊符號(<,>)"),Dh(e,["select","insert","update","delete"])&&n.push("不能使用指令(select,insert,update,delete)"),n.length>0?t.reject(If(n,",")):t.resolve(),t},e.isWindow=Nl,e.isab=v,e.isarr=Ut,e.isarr0=Pu,e.isblob=Ih,e.isbol=Yl,e.isday=Nm,e.isearr=Yu,e.iseobj=zt,e.iser=Tu,e.isernot=Cg,e.isestr=qt,e.isfun=wp,e.isint=ca,e.ismonth=Fl,e.isn0int=gO,e.isn0num=yO,e.isnbr=Vt,e.isnint=Gx,e.isnnum=function(e){return!!Xt(e)&&sa(e)<0},e.isnull=Mu,e.isnum=Xt,e.isobj=Rt,e.isobj0=_u,e.isp0int=_f,e.isp0num=bO,e.ispint=Vc,e.ispm=Fh,e.ispnum=dp,e.isstr=Wt,e.isstr0=Au,e.istime=uO,e.istimeTZ=kO,e.istimems=OO,e.istimemsTZ=DO,e.isu16arr=zj,e.isu8arr=Oh,e.isundefined=ku,e.j2o=xh,e.keysmat2ltdt=MO,e.log=function(){let e=null;return{init:function(t){if(!wp(t))throw new Error("loggerFun is not a function");e=t},log:function(t,n,r){if(null===e)throw new Error("no logger: need to construct by init");let i=_O(),o={id:Fm(),from:t,level:n,msg:Hl(r),time:i};return e(o)}}},e.ltdt2vrtsable=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!Yu(e))return[];if(!Ut(t))return[];let n=!1;if(ou(e,(function(e){zt(e)||(n=!0)})),n)return[];let r=el(e),i=[];ou(e,(function(e){let t={};ou(r,(function(n){t[n]={value:e[n].value,style:e[n].style,rowspan:1}})),i.push(t)}));let o=Qp(i),u=_l(o);return ou(r,(function(e){if(bp(e,t)){let t=af(0,u,0),n=af(0,u,0),r=af(1,u+1,0);ou(o,(function(i,u){if(u>0){let i=o[u-1][e].value,l=o[u][e].value;vp(i,l)&&(t[u-1]=1,t[u]=1,r[u]=r[u-1]+1),1===t[u-1]&&1===t[u]&&(n[u-1]=0,n[u]=1)}})),ou(o,(function(i,u){1===t[u]&&(1===n[u]?o[u][e].rowspan=r[u]:o[u][e].rowspan=null)}))}})),Qp(o)},e.ltdtDiff=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Ut(e))return{};if(!Ut(t))return{};if(0===_l(e)&&0===_l(t))return{};let r=Ft(n,"empty");qt(r)||(r="∗empty∗");let i=el(e),o=el(t),u=YO(i,o),l={};ou(u,((e,t)=>{l[t]=e}));let a=zd(Il(e,u,{empty:r}),Il(t,u,{empty:r}),IO(IO({},n),{},{mode:"matrix"}));return a.dfs=pu(a.dfs,(e=>{let t={};ou(e,(e=>{e.k=l[e.k],t[e.k]=e}));let n={};return ou(u,(e=>{n[e]=t[e]})),n})),a},e.ltdtDiffByKey=function(e,t,n){let r={infor:{},del:[],same:[],diff:[],add:[]};if(!qt(n))return console.log("invalid key"),r;Ut(e)||(e=[e]),Ut(t)||(t=[t]);let i={},o=[],u=[],l=[];ou(e,(function(e){if(Zt(e,n)){let r={[n]:e[n]},a=Pj(t,r);Tu(a)?(o.push(e),i[e[n]]="del"):vp(e,a)?(l.push(a),i[a[n]]="same"):(u.push(a),i[a[n]]="diff")}}));let a=[];return ou(t,(function(t){if(Zt(t,n)){let r={[n]:t[n]};Tu(Pj(e,r))&&(a.push(t),i[t[n]]="add")}})),{infor:i,del:o,same:l,diff:u,add:a}},e.ltdtkeys2mat=Il,e.ltdtkeysheads2mat=Ll,e.ltdtmapping=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Yu(e)&&Yu(t)?pu(e,(e=>ij(e,t,n))):[]},e.ltdtmerge=Hj,e.ltdtpick=function(e,t){return Yu(e)&&Yu(t)?pu(e,(e=>oj(e,t))):[]},e.ltdtpull=function(e,t,n){return Ut(e)&&Ut(t)&&qt(n)&&No(e,(e=>Rt(e)))?0===t.length?e:No(t,(e=>Rt(e)))?ZO(e,t,n):[]:[]},e.mat2ltdt=function(e){if(!Yu(e))return[];if(e.length<=1)return[];let t=!1;return ou(e,(function(e){Yu(e)||(t=!0)})),t?[]:MO(Nd(e)[0],KO(e))},e.matConcat=function(e,t){if(!Ut(e))return[];if(!Ut(t))return[];if(0===_l(e)&&0===_l(t))return[];let n=_l(e),r=_l(Ft(e,0,[])),i=_l(t),o=_l(Ft(t,0,[])),u=[],l=Math.max(n,i);for(let n=0;n<l;n++){let i=[],l=-1;for(let t=0;t<r;t++){l++;let r=Ft(e,`${n}.${t}`,null);i[l]=r}for(let e=0;e<o;e++){l++;let r=Ft(t,`${n}.${e}`,null);i[l]=r}u[n]=i}return u},e.matDiff=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ut(e)&&Ut(t)?0===_l(e)&&0===_l(t)?{}:zd(e,t,QO(QO({},n),{},{mode:"matrix"})):{}},e.matat=function(e,t,n){return Yu(e)?pu(e,(function(e){return Af(e,t,n)})):[]},e.now2str=function(){return n().format("YYYY-MM-DDTHH:mm:ssZ")},e.now2strp=function(){return n().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){return n().format("YYYY-MM-DD")},e.nowms2str=_O,e.nowms2strp=function(){return n().format("YYYYMMDDHHmmssSSS")},e.o2j=Hl,e.obj2b64=function(e){let t="";try{t=eS(Hl(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":qt(t)?tS(Hl({data:e}),t,!0):""},e.obj2str=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(ku(e))return"";if(Wt(t))t=[t];else if(!Ut(t))return"";let n="";try{n=JSON.stringify(e,(function(e,n){return t.indexOf("Uint8Array")>=0&&(n=sS.u8arr2b64(n)),t.indexOf("Uint16Array")>=0&&(n=sS.u16arr2b64(n)),n}))}catch(e){n=""}return n},e.obj2stru8arr=vS,e.obj2u8arr=function(e){let t=[],n=[];if(!Yu(e)&&!zt(e))return null;let r=[],i=[];function o(e){r.push(Uj(e)),i.push(e)}try{let u=vS(e);o(mS(u.results)),ou(u.binarys,(e=>{o(e)}));let l=r,a=mS(JSON.stringify(l)),s=new Uint8Array(8);Bh(Uj(a),s),t.push(s),t.push(a),ou(i,(e=>{t.push(e)})),ou(t,(e=>{n=function(e,t){let n=Uj(e),r=Uj(t),i=new Uint8Array(n+r);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),n),i}(n,e)}))}catch(e){return null}return n},e.objSortBy=gS,e.objSortByKeys=function(e,t){if(!zt(e))return{};if(!Yu(t))return{};let n={};return ou(t,((e,t)=>{n[e]=t})),gS(e,((e,t)=>Ft(n,t,0)))},e.ocr=yS,e.ocrDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Yu(n)||(n=["https://cdn.jsdelivr.net/npm/tesseract.js@4.0.3/dist/tesseract.min.js"]),await ug(n),await yS(e,t)},e.oo=function(e){if(void 0!==e)return xh(Hl(e))},e.openLink=function(e){if(!qt(e))return;let t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)},e.pb642obj=function(e,t){return qt(e)&&qt(t)?xh(La(e,t,!0)).data:""},e.pm2resolve=Zx,e.pmChain=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Ut(e)){let e=kh();return e.reject("pms is not an array"),e}return e.reduce(((e,t)=>e.then(t)),Promise.resolve(t))},e.pmConvertResolve=Xx,e.pmHook=bS,e.pmHookReject=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return wp(e)?(wp(t)||(t=()=>{}),bS(e,(e=>{if("afterCatch"===e.mode)return t(e.data)}))):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Fh(e))throw new Error("pm is not a promise");let n=Ft(t,"thenExtractData");Yl(n)||(n=!1);let r=kh();return e.then((e=>{n&&(e=Ft(e,"data"));let t=Ft(e,"state",""),i=Ft(e,"msg",{});"success"===t?r.resolve(i):"cancelled"===t?r.reject({reason:"cancelled"}):r.reject(i)})).catch((e=>{r.reject(e)})),r},e.pmMap=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r={},i=!1,o=kh();if(!Ut(e)&&!Rt(e))return o.reject("rs is not an array or object"),o;let u=!1;if(Rt(e)){u=!0;let t=[];ou(e,((e,n)=>{t.push({k:n,v:e})})),e=t}let l=Kx(n);return l.on("message",(function(n){if(i)return;let a,s=l.get();if(wp(t)){let e=s.key,n=s.value;u&&(e=s.value.k,n=s.value.v),a=t(n,e)}else a=s.value;a.then((e=>{r[s.key]=e})).catch((e=>{i=!0,l.clear(),o.reject(e)})).finally((()=>{l.cb(),_l(r)===e.length&&o.resolve(pj(r))}))})),ou(e,((e,t)=>{l.push({key:t,value:e})})),o},e.pmQueue=Jx,e.pmSeries=ng,e.pmThrottle=function(){let e=$c(),t=[],n=null,r=!1;return function(i){let o=kh();if(!wp(i))return void console.log("func is not a function");let u=Fm();for(var l=arguments.length,a=new Array(l>1?l-1:0),s=1;s<l;s++)a[s-1]=arguments[s];return t.push({id:u,func:i,input:a}),null===n&&(n=setInterval((async()=>{if(r)return;r=!0;let i=t.pop();for(let n=0;n<t.length;n++){let r=t[n].id,i={state:"cancelled"};e.emit(r,i)}if(t=[],i){let t,n=i.id;t=wp(i.func)?await Zx(i.func)(...i.input):{state:"error",msg:"fun is not a function"},e.emit(n,t)}r=!1,r||0!==t.length||(clearInterval(n),n=null)}),10)),e.once(u,(e=>{"success"===e.state?o.resolve(e.msg):"cancelled"===e.state?o.reject({reason:"cancelled"}):o.reject(e.msg)})),o}},e.pseudoRandom=jS,e.pseudoRandomIntRange=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start1";if(ca(e)||(e=0),e=qc(e),ca(t)||(t=100),t=qc(t),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=jS(n)*(t-e+1)+e;return r=Math.ceil(r),r},e.pseudoRandomRange=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start1";if(Xt(e)||(e=0),e=sa(e),Xt(t)||(t=1),t=sa(t),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);return jS(n)*(t-e)+e},e.queue=Kx,e.rang=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!Xt(e))return[];if(e=sa(e),!Xt(t))return[];t=sa(t),Vc(n)||(n=2),n=qc(n);let r=(t-e)/n,i=e,o=[];for(let e=0;e<=n;e++)o.push(i),i+=r;return o},e.rep=function(e,t){return qt(e)&&_f(t)?MS(e,t):""},e.repObj=function(e,t){return Tu(e)?[]:Vc(t)?rO(t,gf(e)):[]},e.replace=Xh,e.replaceObj=function(e,t){if(!qt(e))return"";if(!zt(t))return"";let n=!1;return ou(t,(function(e,t){Wt(e)||(n=!0)})),n?"":(ou(t,(function(t,n){e=Xh(e,n,t)})),e)},e.replacePlus=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4?arguments[4]:void 0;if(!qt(e)||!qt(t)||!qt(n))return"";if(!Wt(i))return"";let o="[\\s\\S]*";qt(r)&&(o="[^"+r+"]*");let u=new RegExp(t+o+n,"g");return e.replace(u,i)},e.round=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_f(t)||(t=0),t=qc(t);let r=Ft(n,"rounding","");if("ROUND_HALF_UP"!==r&&"ROUND_HALF_EVEN"!==r&&(r="ROUND_HALF_UP"),!Xt(e))return"";e=sa(e);let i=fD.clone();return i.set({rounding:fD[r]}),new i(e).toDecimalPlaces(t).toNumber()},e.secd=function(e){return Xt(e)?1/Ym(e=sa(e)):null},e.sep=np,e.sepInt=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!ca(e))return[];if(!_f(t))return[];if(!Yl(n))return[];let r=dD(e/t),i=e-r*t,o=[];for(let e=1;e<=t;e++){let t=r;e<=i&&(t=r+1),o.push(t)}return n&&(o=Qp(o)),o},e.sind=Lm,e.split=tp,e.str2aes=tS,e.str2b64=eS,e.str2hint=wS,e.str2md5=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!qt(e))return"";if(!Yl(t))return"";let n=pD(e),r="";return r=t?n.toString(ya):n.toString(Ia),r},e.str2obj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(Wt(t))t=[t];else if(!Ut(t))return{};let n={};try{n=JSON.parse(e,(function(e,n){return t.indexOf("Uint8Array")>=0&&(n=sS.b642u8arr(n)),t.indexOf("Uint16Array")>=0&&(n=sS.b642u16arr(n)),n}))}catch(e){n={}}return n},e.str2sha512=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!qt(e))return"";if(!Yl(t))return"";let n=gD(e),r="";return r=t?n.toString(ya):n.toString(Ia),r},e.str2u8arr=mS,e.strCompare=yD,e.strDiff=$d,e.strFindFuzz=OD,e.strFindFuzzDyn=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return Yu(r)||(r=["https://cdn.jsdelivr.net/npm/fuse.js@6.6.2/dist/fuse.min.js"]),await ug(r),OD(e,t,n)},e.strFindSimilar=function(e,t){let n="";if(qt(e)||Xt(e))n=Xp(e);else{if(!Yu(e))return{};n=If(e,"")}return Xt(t)&&(t=Xp(t)),qt(t)&&(t=[t]),Yu(t)?function(e,t){let n=[],r=0;for(let i=0;i<t.length;i++){let o=t[i],u=yD(e,o);n.push({target:o,rating:u}),u>n[r].rating&&(r=i)}return{ratings:n,bestMatch:n[r],bestMatchIndex:r}}(n,t=pu(t,(function(e){return Xp(e)}))):{}},e.strdelleft=op,e.strdelright=eh,e.strleft=rp,e.strmid=Zh,e.strright=ip,e.stru8arr2obj=SD,e.tand=Hm,e.time2day=function(e){return uO(e)?n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return uO(e)?n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=lO,e.timeTZ2day=function(e){return kO(e)?(e=EO.delTZ(e),n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return kO(e)?(e=kD(e),t=kD(t),ED(e,t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return kO(e)?(e=EO.delTZ(e),n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return kO(e)?(e=EO.delTZ(e),n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return kO(e)?(e=MD(e),t=MD(t),DD(e,t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return OO(e)?n(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return OO(e)?n(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return OO(e)?n(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return OO(e)?n(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return DO(e)?(e=EO.delTZ(e),n(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=ED,e.timemsTZ2hour=function(e){return DO(e)?(e=EO.delTZ(e),n(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return DO(e)?(e=EO.delTZ(e),n(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=DD,e.timemsTZ2time=function(e){return DO(e)?(e=EO.delTZ(e),n(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=Am,e.treeToFilepath=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return[];let n=Ft(t,"delimiter");qt(n)||(n="/");let r=Ft(t,"bindRoot");qt(r)||(r="root");let i=[];return Am(e,((e,t,o)=>{let u=Ft(e,"_type","");if("folder"!==u&&"file"!==u)return e;let l=Ft(e,"pathInfors",[]),a=pu(l,"name"),s=Ft(a,0,"")===r;if(1===_l(a)&&s)return e;s&&(a=Kp(a));let c={type:u,path:n+If(a,n)};return i.push(c),e}),{force:!0}),i},e.trim=th,e.u16arr2b64=uS,e.u16arr2u8arr=oS,e.u8arr2ab=function(e){return Oh(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=iS,e.u8arr2blob=rj,e.u8arr2bs=function(e){if(!Oh(e))return"";let t=e.length,n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},e.u8arr2obj=function(e){let t=null;if(!Oh(e))return null;try{let n=8,r=e.slice(0,n),i=e.slice(n,Uj(e)),o=$h(r),u=i.slice(0,o),l=i.slice(o,Uj(i)),a=_D(u),s=function(e,t){let n=0,r=0,i=[];return ou(t,(t=>{r=n+t;let o=e.slice(n,r);n=r,i.push(o)})),i}(l,JSON.parse(a));t=SD({results:_D(s.shift()),binarys:s})}catch(e){}return t},e.u8arr2str=_D,e.u8arr2u16arr=Sh,e.urlParse=function(e){if(!qt(e))return{};if(e=vd(e,"?"),!qt(e=Ft(e,"[1]")))return{};let t=vd(e,"&");return t=pu(t,(function(e){return vd(e,"=")})),t=AD(t),t},e.verifyValue=function(e,t){let n=!1,r="";if("isstr"===t)Wt(e)||(n=!0,r="需要為字串",e="");else if("isnum"===t)Xt(e)||(n=!0,r="需要為數字",e=0);else if("isp0num"===t)bO(e)||(n=!0,r="需要為含0的正浮點數",e=0);else if("isn0num"===t)yO(e)||(n=!0,r="需要為含0的負浮點數",e=0);else if("isint"===t)ca(e)||(n=!0,r="需要為整數",e=0);else if("ispint"===t)Vc(e)||(n=!0,r="需要為不含0正整數",e=0);else if("isp0int"===t)_f(e)||(n=!0,r="需要為含0正整數",e=0);else if("isnint"===t)Gx(e)||(n=!0,r="需要為不含0負整數",e=0);else if("isn0int"===t)gO(e)||(n=!0,r="需要為含0負整數",e=0);else if(wp(t)){e=t(e)}else"any"===t?Xt(e)||Wt(e)||(n=!0,r="需要為字串或數字",e=""):(n=!0,r="需要指定驗證類型",e=null);return{value:e,err:n,errmsg:r}},e.waitFun=Rh}));
14
+ var AS,PS,TS=9e15,YS=1e9,HS="0123456789abcdef",IS="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",LS="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",NS={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-TS,maxE:TS,crypto:!1},$S=!0,CS="[DecimalError] ",BS=CS+"Invalid argument: ",FS=CS+"Precision limit exceeded",RS=CS+"crypto unavailable",zS="[object Decimal]",US=Math.floor,WS=Math.pow,qS=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,VS=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,XS=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,ZS=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,GS=1e7,KS=7,JS=IS.length-1,QS=LS.length-1,eE={toStringTag:zS};function tE(e){var t,n,r,i=e.length-1,o="",u=e[0];if(i>0){for(o+=u,t=1;t<i;t++)r=e[t]+"",(n=KS-r.length)&&(o+=dE(n)),o+=r;u=e[t],(n=KS-(r=u+"").length)&&(o+=dE(n))}else if(0===u)return"0";for(;u%10==0;)u/=10;return o+u}function nE(e,t,n){if(e!==~~e||e<t||e>n)throw Error(BS+e)}function rE(e,t,n,r){var i,o,u,l;for(o=e[0];o>=10;o/=10)--t;return--t<0?(t+=KS,i=0):(i=Math.ceil((t+1)/KS),t%=KS),o=WS(10,KS-t),l=e[i]%o|0,null==r?t<3?(0==t?l=l/100|0:1==t&&(l=l/10|0),u=n<4&&99999==l||n>3&&49999==l||5e4==l||0==l):u=(n<4&&l+1==o||n>3&&l+1==o/2)&&(e[i+1]/o/100|0)==WS(10,t-2)-1||(l==o/2||0==l)&&0==(e[i+1]/o/100|0):t<4?(0==t?l=l/1e3|0:1==t?l=l/100|0:2==t&&(l=l/10|0),u=(r||n<4)&&9999==l||!r&&n>3&&4999==l):u=((r||n<4)&&l+1==o||!r&&n>3&&l+1==o/2)&&(e[i+1]/o/1e3|0)==WS(10,t-3)-1,u}function iE(e,t,n){for(var r,i,o=[0],u=0,l=e.length;u<l;){for(i=o.length;i--;)o[i]*=t;for(o[0]+=HS.indexOf(e.charAt(u++)),r=0;r<o.length;r++)o[r]>n-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}eE.absoluteValue=eE.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),uE(e)},eE.ceil=function(){return uE(new this.constructor(this),this.e+1,2)},eE.clampedTo=eE.clamp=function(e,t){var n=this,r=n.constructor;if(e=new r(e),t=new r(t),!e.s||!t.s)return new r(NaN);if(e.gt(t))throw Error(BS+t);return n.cmp(e)<0?e:n.cmp(t)>0?t:new r(n)},eE.comparedTo=eE.cmp=function(e){var t,n,r,i,o=this,u=o.d,l=(e=new o.constructor(e)).d,a=o.s,s=e.s;if(!u||!l)return a&&s?a!==s?a:u===l?0:!u^a<0?1:-1:NaN;if(!u[0]||!l[0])return u[0]?a:l[0]?-s:0;if(a!==s)return a;if(o.e!==e.e)return o.e>e.e^a<0?1:-1;for(t=0,n=(r=u.length)<(i=l.length)?r:i;t<n;++t)if(u[t]!==l[t])return u[t]>l[t]^a<0?1:-1;return r===i?0:r>i^a<0?1:-1},eE.cosine=eE.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+KS,r.rounding=1,n=function(e,t){var n,r,i;if(t.isZero())return t;r=t.d.length,r<32?i=(1/jE(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");e.precision+=n,t=xE(e,1,t.times(i),new e(1));for(var o=n;o--;){var u=t.times(t);t=u.times(u).minus(u).times(8).plus(1)}return e.precision-=n,t}(r,OE(r,n)),r.precision=e,r.rounding=t,uE(2==PS||3==PS?n.neg():n,e,t,!0)):new r(1):new r(NaN)},eE.cubeRoot=eE.cbrt=function(){var e,t,n,r,i,o,u,l,a,s,c=this,f=c.constructor;if(!c.isFinite()||c.isZero())return new f(c);for($S=!1,(o=c.s*WS(c.s*c,1/3))&&Math.abs(o)!=1/0?r=new f(o.toString()):(n=tE(c.d),(o=((e=c.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=WS(n,1/3),e=US((e+1)/3)-(e%3==(e<0?-1:2)),(r=new f(n=o==1/0?"5e"+e:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=c.s),u=(e=f.precision)+3;;)if(s=(a=(l=r).times(l).times(l)).plus(c),r=oE(s.plus(c).times(l),s.plus(a),u+2,1),tE(l.d).slice(0,u)===(n=tE(r.d)).slice(0,u)){if("9999"!=(n=n.slice(u-3,u+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(uE(r,e+1,1),t=!r.times(r).times(r).eq(c));break}if(!i&&(uE(l,e+1,0),l.times(l).times(l).eq(c))){r=l;break}u+=4,i=1}return $S=!0,uE(r,e,f.rounding,t)},eE.decimalPlaces=eE.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-US(this.e/KS))*KS,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},eE.dividedBy=eE.div=function(e){return oE(this,new this.constructor(e))},eE.dividedToIntegerBy=eE.divToInt=function(e){var t=this.constructor;return uE(oE(this,new t(e),0,1,1),t.precision,t.rounding)},eE.equals=eE.eq=function(e){return 0===this.cmp(e)},eE.floor=function(){return uE(new this.constructor(this),this.e+1,3)},eE.greaterThan=eE.gt=function(e){return this.cmp(e)>0},eE.greaterThanOrEqualTo=eE.gte=function(e){var t=this.cmp(e);return 1==t||0===t},eE.hyperbolicCosine=eE.cosh=function(){var e,t,n,r,i,o=this,u=o.constructor,l=new u(1);if(!o.isFinite())return new u(o.s?1/0:NaN);if(o.isZero())return l;n=u.precision,r=u.rounding,u.precision=n+Math.max(o.e,o.sd())+4,u.rounding=1,(i=o.d.length)<32?t=(1/jE(4,e=Math.ceil(i/3))).toString():(e=16,t="2.3283064365386962890625e-10"),o=xE(u,1,o.times(t),new u(1),!0);for(var a,s=e,c=new u(8);s--;)a=o.times(o),o=l.minus(a.times(c.minus(a.times(c))));return uE(o,u.precision=n,u.rounding=r,!0)},eE.hyperbolicSine=eE.sinh=function(){var e,t,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(t=o.precision,n=o.rounding,o.precision=t+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=xE(o,2,i,i,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,i=xE(o,2,i=i.times(1/jE(5,e)),i,!0);for(var u,l=new o(5),a=new o(16),s=new o(20);e--;)u=i.times(i),i=i.times(l.plus(u.times(a.times(u).plus(s))))}return o.precision=t,o.rounding=n,uE(i,t,n,!0)},eE.hyperbolicTangent=eE.tanh=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+7,r.rounding=1,oE(n.sinh(),n.cosh(),r.precision=e,r.rounding=t)):new r(n.s)},eE.inverseCosine=eE.acos=function(){var e,t=this,n=t.constructor,r=t.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?t.isNeg()?cE(n,i,o):new n(0):new n(NaN):t.isZero()?cE(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,t=t.asin(),e=cE(n,i+4,o).times(.5),n.precision=i,n.rounding=o,e.minus(t))},eE.inverseHyperbolicCosine=eE.acosh=function(){var e,t,n=this,r=n.constructor;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,$S=!1,n=n.times(n).minus(1).sqrt().plus(n),$S=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},eE.inverseHyperbolicSine=eE.asinh=function(){var e,t,n=this,r=n.constructor;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,$S=!1,n=n.times(n).plus(1).sqrt().plus(n),$S=!0,r.precision=e,r.rounding=t,n.ln())},eE.inverseHyperbolicTangent=eE.atanh=function(){var e,t,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(e=o.precision,t=o.rounding,r=i.sd(),Math.max(r,e)<2*-i.e-1?uE(new o(i),e,t,!0):(o.precision=n=r-i.e,i=oE(i.plus(1),new o(1).minus(i),n+e,1),o.precision=e+4,o.rounding=1,i=i.ln(),o.precision=e,o.rounding=t,i.times(.5))):new o(NaN)},eE.inverseSine=eE.asin=function(){var e,t,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(t=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==t?0===t?((e=cE(o,n+4,r).times(.5)).s=i.s,e):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},eE.inverseTangent=eE.atan=function(){var e,t,n,r,i,o,u,l,a,s=this,c=s.constructor,f=c.precision,d=c.rounding;if(s.isFinite()){if(s.isZero())return new c(s);if(s.abs().eq(1)&&f+4<=QS)return(u=cE(c,f+4,d).times(.25)).s=s.s,u}else{if(!s.s)return new c(NaN);if(f+4<=QS)return(u=cE(c,f+4,d).times(.5)).s=s.s,u}for(c.precision=l=f+10,c.rounding=1,e=n=Math.min(28,l/KS+2|0);e;--e)s=s.div(s.times(s).plus(1).sqrt().plus(1));for($S=!1,t=Math.ceil(l/KS),r=1,a=s.times(s),u=new c(s),i=s;-1!==e;)if(i=i.times(a),o=u.minus(i.div(r+=2)),i=i.times(a),void 0!==(u=o.plus(i.div(r+=2))).d[t])for(e=t;u.d[e]===o.d[e]&&e--;);return n&&(u=u.times(2<<n-1)),$S=!0,uE(u,c.precision=f,c.rounding=d,!0)},eE.isFinite=function(){return!!this.d},eE.isInteger=eE.isInt=function(){return!!this.d&&US(this.e/KS)>this.d.length-2},eE.isNaN=function(){return!this.s},eE.isNegative=eE.isNeg=function(){return this.s<0},eE.isPositive=eE.isPos=function(){return this.s>0},eE.isZero=function(){return!!this.d&&0===this.d[0]},eE.lessThan=eE.lt=function(e){return this.cmp(e)<0},eE.lessThanOrEqualTo=eE.lte=function(e){return this.cmp(e)<1},eE.logarithm=eE.log=function(e){var t,n,r,i,o,u,l,a,s=this,c=s.constructor,f=c.precision,d=c.rounding;if(null==e)e=new c(10),t=!0;else{if(n=(e=new c(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new c(NaN);t=e.eq(10)}if(n=s.d,s.s<0||!n||!n[0]||s.eq(1))return new c(n&&!n[0]?-1/0:1!=s.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if($S=!1,u=gE(s,l=f+5),r=t?sE(c,l+10):gE(e,l),rE((a=oE(u,r,l,1)).d,i=f,d))do{if(u=gE(s,l+=10),r=t?sE(c,l+10):gE(e,l),a=oE(u,r,l,1),!o){+tE(a.d).slice(i+1,i+15)+1==1e14&&(a=uE(a,f+1,0));break}}while(rE(a.d,i+=10,d));return $S=!0,uE(a,f,d)},eE.minus=eE.sub=function(e){var t,n,r,i,o,u,l,a,s,c,f,d,p=this,h=p.constructor;if(e=new h(e),!p.d||!e.d)return p.s&&e.s?p.d?e.s=-e.s:e=new h(e.d||p.s!==e.s?p:NaN):e=new h(NaN),e;if(p.s!=e.s)return e.s=-e.s,p.plus(e);if(s=p.d,d=e.d,l=h.precision,a=h.rounding,!s[0]||!d[0]){if(d[0])e.s=-e.s;else{if(!s[0])return new h(3===a?-0:0);e=new h(p)}return $S?uE(e,l,a):e}if(n=US(e.e/KS),c=US(p.e/KS),s=s.slice(),o=c-n){for((f=o<0)?(t=s,o=-o,u=d.length):(t=d,n=c,u=s.length),o>(r=Math.max(Math.ceil(l/KS),u)+2)&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for((f=(r=s.length)<(u=d.length))&&(u=r),r=0;r<u;r++)if(s[r]!=d[r]){f=s[r]<d[r];break}o=0}for(f&&(t=s,s=d,d=t,e.s=-e.s),u=s.length,r=d.length-u;r>0;--r)s[u++]=0;for(r=d.length;r>o;){if(s[--r]<d[r]){for(i=r;i&&0===s[--i];)s[i]=GS-1;--s[i],s[r]+=GS}s[r]-=d[r]}for(;0===s[--u];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(e.d=s,e.e=aE(s,n),$S?uE(e,l,a):e):new h(3===a?-0:0)},eE.modulo=eE.mod=function(e){var t,n=this,r=n.constructor;return e=new r(e),!n.d||!e.s||e.d&&!e.d[0]?new r(NaN):!e.d||n.d&&!n.d[0]?uE(new r(n),r.precision,r.rounding):($S=!1,9==r.modulo?(t=oE(n,e.abs(),0,3,1)).s*=e.s:t=oE(n,e,0,r.modulo,1),t=t.times(e),$S=!0,n.minus(t))},eE.naturalExponential=eE.exp=function(){return mE(this)},eE.naturalLogarithm=eE.ln=function(){return gE(this)},eE.negated=eE.neg=function(){var e=new this.constructor(this);return e.s=-e.s,uE(e)},eE.plus=eE.add=function(e){var t,n,r,i,o,u,l,a,s,c,f=this,d=f.constructor;if(e=new d(e),!f.d||!e.d)return f.s&&e.s?f.d||(e=new d(e.d||f.s===e.s?f:NaN)):e=new d(NaN),e;if(f.s!=e.s)return e.s=-e.s,f.minus(e);if(s=f.d,c=e.d,l=d.precision,a=d.rounding,!s[0]||!c[0])return c[0]||(e=new d(f)),$S?uE(e,l,a):e;if(o=US(f.e/KS),r=US(e.e/KS),s=s.slice(),i=o-r){for(i<0?(n=s,i=-i,u=c.length):(n=c,r=o,u=s.length),i>(u=(o=Math.ceil(l/KS))>u?o+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=s.length)-(i=c.length)<0&&(i=u,n=c,c=s,s=n),t=0;i;)t=(s[--i]=s[i]+c[i]+t)/GS|0,s[i]%=GS;for(t&&(s.unshift(t),++r),u=s.length;0==s[--u];)s.pop();return e.d=s,e.e=aE(s,r),$S?uE(e,l,a):e},eE.precision=eE.sd=function(e){var t,n=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(BS+e);return n.d?(t=fE(n.d),e&&n.e+1>t&&(t=n.e+1)):t=NaN,t},eE.round=function(){var e=this,t=e.constructor;return uE(new t(e),e.e+1,t.rounding)},eE.sine=eE.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+KS,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:xE(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=t.times(1/jE(5,n)),t=xE(e,2,t,t);for(var i,o=new e(5),u=new e(16),l=new e(20);n--;)i=t.times(t),t=t.times(o.plus(i.times(u.times(i).minus(l))));return t}(r,OE(r,n)),r.precision=e,r.rounding=t,uE(PS>2?n.neg():n,e,t,!0)):new r(NaN)},eE.squareRoot=eE.sqrt=function(){var e,t,n,r,i,o,u=this,l=u.d,a=u.e,s=u.s,c=u.constructor;if(1!==s||!l||!l[0])return new c(!s||s<0&&(!l||l[0])?NaN:l?u:1/0);for($S=!1,0==(s=Math.sqrt(+u))||s==1/0?(((t=tE(l)).length+a)%2==0&&(t+="0"),s=Math.sqrt(t),a=US((a+1)/2)-(a<0||a%2),r=new c(t=s==1/0?"5e"+a:(t=s.toExponential()).slice(0,t.indexOf("e")+1)+a)):r=new c(s.toString()),n=(a=c.precision)+3;;)if(r=(o=r).plus(oE(u,o,n+2,1)).times(.5),tE(o.d).slice(0,n)===(t=tE(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(i||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(uE(r,a+1,1),e=!r.times(r).eq(u));break}if(!i&&(uE(o,a+1,0),o.times(o).eq(u))){r=o;break}n+=4,i=1}return $S=!0,uE(r,a,c.rounding,e)},eE.tangent=eE.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=oE(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,uE(2==PS||4==PS?n.neg():n,e,t,!0)):new r(NaN)},eE.times=eE.mul=function(e){var t,n,r,i,o,u,l,a,s,c=this,f=c.constructor,d=c.d,p=(e=new f(e)).d;if(e.s*=c.s,!(d&&d[0]&&p&&p[0]))return new f(!e.s||d&&!d[0]&&!p||p&&!p[0]&&!d?NaN:d&&p?0*e.s:e.s/0);for(n=US(c.e/KS)+US(e.e/KS),(a=d.length)<(s=p.length)&&(o=d,d=p,p=o,u=a,a=s,s=u),o=[],r=u=a+s;r--;)o.push(0);for(r=s;--r>=0;){for(t=0,i=a+r;i>r;)l=o[i]+p[r]*d[i-r-1]+t,o[i--]=l%GS|0,t=l/GS|0;o[i]=(o[i]+t)%GS|0}for(;!o[--u];)o.pop();return t?++n:o.shift(),e.d=o,e.e=aE(o,n),$S?uE(e,f.precision,f.rounding):e},eE.toBinary=function(e,t){return SE(this,2,e,t)},eE.toDecimalPlaces=eE.toDP=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(nE(e,0,YS),void 0===t?t=r.rounding:nE(t,0,8),uE(n,e+n.e+1,t))},eE.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=lE(r,!0):(nE(e,0,YS),void 0===t?t=i.rounding:nE(t,0,8),n=lE(r=uE(new i(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},eE.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?n=lE(i):(nE(e,0,YS),void 0===t?t=o.rounding:nE(t,0,8),n=lE(r=uE(new o(i),e+i.e+1,t),!1,e+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},eE.toFraction=function(e){var t,n,r,i,o,u,l,a,s,c,f,d,p=this,h=p.d,v=p.constructor;if(!h)return new v(p);if(s=n=new v(1),r=a=new v(0),u=(o=(t=new v(r)).e=fE(h)-p.e-1)%KS,t.d[0]=WS(10,u<0?KS+u:u),null==e)e=o>0?t:s;else{if(!(l=new v(e)).isInt()||l.lt(s))throw Error(BS+l);e=l.gt(t)?o>0?t:s:l}for($S=!1,l=new v(tE(h)),c=v.precision,v.precision=o=h.length*KS*2;f=oE(l,t,0,1,1),1!=(i=n.plus(f.times(r))).cmp(e);)n=r,r=i,i=s,s=a.plus(f.times(i)),a=i,i=t,t=l.minus(f.times(i)),l=i;return i=oE(e.minus(n),r,0,1,1),a=a.plus(i.times(s)),n=n.plus(i.times(r)),a.s=s.s=p.s,d=oE(s,r,o,1).minus(p).abs().cmp(oE(a,n,o,1).minus(p).abs())<1?[s,r]:[a,n],v.precision=c,$S=!0,d},eE.toHexadecimal=eE.toHex=function(e,t){return SE(this,16,e,t)},eE.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:nE(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?($S=!1,n=oE(n,e,0,t,1).times(e),$S=!0,uE(n)):(e.s=n.s,n=e),n},eE.toNumber=function(){return+this},eE.toOctal=function(e,t){return SE(this,8,e,t)},eE.toPower=eE.pow=function(e){var t,n,r,i,o,u,l=this,a=l.constructor,s=+(e=new a(e));if(!(l.d&&e.d&&l.d[0]&&e.d[0]))return new a(WS(+l,s));if((l=new a(l)).eq(1))return l;if(r=a.precision,o=a.rounding,e.eq(1))return uE(l,r,o);if((t=US(e.e/KS))>=e.d.length-1&&(n=s<0?-s:s)<=9007199254740991)return i=pE(a,l,n,r),e.s<0?new a(1).div(i):uE(i,r,o);if((u=l.s)<0){if(t<e.d.length-1)return new a(NaN);if(0==(1&e.d[t])&&(u=1),0==l.e&&1==l.d[0]&&1==l.d.length)return l.s=u,l}return(t=0!=(n=WS(+l,s))&&isFinite(n)?new a(n+"").e:US(s*(Math.log("0."+tE(l.d))/Math.LN10+l.e+1)))>a.maxE+1||t<a.minE-1?new a(t>0?u/0:0):($S=!1,a.rounding=l.s=1,n=Math.min(12,(t+"").length),(i=mE(e.times(gE(l,r+n)),r)).d&&rE((i=uE(i,r+5,1)).d,r,o)&&(t=r+10,+tE((i=uE(mE(e.times(gE(l,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=uE(i,r+1,0))),i.s=u,$S=!0,a.rounding=o,uE(i,r,o))},eE.toPrecision=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=lE(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(nE(e,1,YS),void 0===t?t=i.rounding:nE(t,0,8),n=lE(r=uE(new i(r),e,t),e<=r.e||r.e<=i.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},eE.toSignificantDigits=eE.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(nE(e,1,YS),void 0===t?t=n.rounding:nE(t,0,8)),uE(new n(this),e,t)},eE.toString=function(){var e=this,t=e.constructor,n=lE(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()&&!e.isZero()?"-"+n:n},eE.truncated=eE.trunc=function(){return uE(new this.constructor(this),this.e+1,1)},eE.valueOf=eE.toJSON=function(){var e=this,t=e.constructor,n=lE(e,e.e<=t.toExpNeg||e.e>=t.toExpPos);return e.isNeg()?"-"+n:n};var oE=function(){function e(e,t,n){var r,i=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+i,e[o]=r%n|0,i=r/n|0;return i&&e.unshift(i),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n,r){for(var i=0;n--;)e[n]-=i,i=e[n]<t[n]?1:0,e[n]=i*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,u,l,a){var s,c,f,d,p,h,v,m,g,y,b,w,x,j,O,S,E,D,k,M,_=r.constructor,A=r.s==i.s?1:-1,P=r.d,T=i.d;if(!(P&&P[0]&&T&&T[0]))return new _(r.s&&i.s&&(P?!T||P[0]!=T[0]:T)?P&&0==P[0]||!T?0*A:A/0:NaN);for(a?(p=1,c=r.e-i.e):(a=GS,p=KS,c=US(r.e/p)-US(i.e/p)),k=T.length,E=P.length,y=(g=new _(A)).d=[],f=0;T[f]==(P[f]||0);f++);if(T[f]>(P[f]||0)&&c--,null==o?(j=o=_.precision,u=_.rounding):j=l?o+(r.e-i.e)+1:o,j<0)y.push(1),h=!0;else{if(j=j/p+2|0,f=0,1==k){for(d=0,T=T[0],j++;(f<E||d)&&j--;f++)O=d*a+(P[f]||0),y[f]=O/T|0,d=O%T|0;h=d||f<E}else{for((d=a/(T[0]+1)|0)>1&&(T=e(T,d,a),P=e(P,d,a),k=T.length,E=P.length),S=k,w=(b=P.slice(0,k)).length;w<k;)b[w++]=0;(M=T.slice()).unshift(0),D=T[0],T[1]>=a/2&&++D;do{d=0,(s=t(T,b,k,w))<0?(x=b[0],k!=w&&(x=x*a+(b[1]||0)),(d=x/D|0)>1?(d>=a&&(d=a-1),1==(s=t(v=e(T,d,a),b,m=v.length,w=b.length))&&(d--,n(v,k<m?M:T,m,a))):(0==d&&(s=d=1),v=T.slice()),(m=v.length)<w&&v.unshift(0),n(b,v,w,a),-1==s&&(s=t(T,b,k,w=b.length))<1&&(d++,n(b,k<w?M:T,w,a)),w=b.length):0===s&&(d++,b=[0]),y[f++]=d,s&&b[0]?b[w++]=P[S]||0:(b=[P[S]],w=1)}while((S++<E||void 0!==b[0])&&j--);h=void 0!==b[0]}y[0]||y.shift()}if(1==p)g.e=c,AS=h;else{for(f=1,d=y[0];d>=10;d/=10)f++;g.e=f+c*p-1,uE(g,l?o+g.e+1:o,u,h)}return g}}();function uE(e,t,n,r){var i,o,u,l,a,s,c,f,d,p=e.constructor;e:if(null!=t){if(!(f=e.d))return e;for(i=1,l=f[0];l>=10;l/=10)i++;if((o=t-i)<0)o+=KS,u=t,a=(c=f[d=0])/WS(10,i-u-1)%10|0;else if((d=Math.ceil((o+1)/KS))>=(l=f.length)){if(!r)break e;for(;l++<=d;)f.push(0);c=a=0,i=1,u=(o%=KS)-KS+1}else{for(c=l=f[d],i=1;l>=10;l/=10)i++;a=(u=(o%=KS)-KS+i)<0?0:c/WS(10,i-u-1)%10|0}if(r=r||t<0||void 0!==f[d+1]||(u<0?c:c%WS(10,i-u-1)),s=n<4?(a||r)&&(0==n||n==(e.s<0?3:2)):a>5||5==a&&(4==n||r||6==n&&(o>0?u>0?c/WS(10,i-u):0:f[d-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,s?(t-=e.e+1,f[0]=WS(10,(KS-t%KS)%KS),e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=d,l=1,d--):(f.length=d+1,l=WS(10,KS-o),f[d]=u>0?(c/WS(10,i-u)%WS(10,u)|0)*l:0),s)for(;;){if(0==d){for(o=1,u=f[0];u>=10;u/=10)o++;for(u=f[0]+=l,l=1;u>=10;u/=10)l++;o!=l&&(e.e++,f[0]==GS&&(f[0]=1));break}if(f[d]+=l,f[d]!=GS)break;f[d--]=0,l=1}for(o=f.length;0===f[--o];)f.pop()}return $S&&(e.e>p.maxE?(e.d=null,e.e=NaN):e.e<p.minE&&(e.e=0,e.d=[0])),e}function lE(e,t,n){if(!e.isFinite())return yE(e);var r,i=e.e,o=tE(e.d),u=o.length;return t?(n&&(r=n-u)>0?o=o.charAt(0)+"."+o.slice(1)+dE(r):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(e.e<0?"e":"e+")+e.e):i<0?(o="0."+dE(-i-1)+o,n&&(r=n-u)>0&&(o+=dE(r))):i>=u?(o+=dE(i+1-u),n&&(r=n-i-1)>0&&(o=o+"."+dE(r))):((r=i+1)<u&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-u)>0&&(i+1===u&&(o+="."),o+=dE(r))),o}function aE(e,t){var n=e[0];for(t*=KS;n>=10;n/=10)t++;return t}function sE(e,t,n){if(t>JS)throw $S=!0,n&&(e.precision=n),Error(FS);return uE(new e(IS),t,1,!0)}function cE(e,t,n){if(t>QS)throw Error(FS);return uE(new e(LS),t,n,!0)}function fE(e){var t=e.length-1,n=t*KS+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function dE(e){for(var t="";e--;)t+="0";return t}function pE(e,t,n,r){var i,o=new e(1),u=Math.ceil(r/KS+4);for($S=!1;;){if(n%2&&EE((o=o.times(t)).d,u)&&(i=!0),0===(n=US(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}EE((t=t.times(t)).d,u)}return $S=!0,o}function hE(e){return 1&e.d[e.d.length-1]}function vE(e,t,n){for(var r,i=new e(t[0]),o=0;++o<t.length;){if(!(r=new e(t[o])).s){i=r;break}i[n](r)&&(i=r)}return i}function mE(e,t){var n,r,i,o,u,l,a,s=0,c=0,f=0,d=e.constructor,p=d.rounding,h=d.precision;if(!e.d||!e.d[0]||e.e>17)return new d(e.d?e.d[0]?e.s<0?0:1/0:1:e.s?e.s<0?0:e:NaN);for(null==t?($S=!1,a=h):a=t,l=new d(.03125);e.e>-2;)e=e.times(l),f+=5;for(a+=r=Math.log(WS(2,f))/Math.LN10*2+5|0,n=o=u=new d(1),d.precision=a;;){if(o=uE(o.times(e),a,1),n=n.times(++c),tE((l=u.plus(oE(o,n,a,1))).d).slice(0,a)===tE(u.d).slice(0,a)){for(i=f;i--;)u=uE(u.times(u),a,1);if(null!=t)return d.precision=h,u;if(!(s<3&&rE(u.d,a-r,p,s)))return uE(u,d.precision=h,p,$S=!0);d.precision=a+=10,n=o=l=new d(1),c=0,s++}u=l}}function gE(e,t){var n,r,i,o,u,l,a,s,c,f,d,p=1,h=e,v=h.d,m=h.constructor,g=m.rounding,y=m.precision;if(h.s<0||!v||!v[0]||!h.e&&1==v[0]&&1==v.length)return new m(v&&!v[0]?-1/0:1!=h.s?NaN:v?0:h);if(null==t?($S=!1,c=y):c=t,m.precision=c+=10,r=(n=tE(v)).charAt(0),!(Math.abs(o=h.e)<15e14))return s=sE(m,c+2,y).times(o+""),h=gE(new m(r+"."+n.slice(1)),c-10).plus(s),m.precision=y,null==t?uE(h,y,g,$S=!0):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=tE((h=h.times(e)).d)).charAt(0),p++;for(o=h.e,r>1?(h=new m("0."+n),o++):h=new m(r+"."+n.slice(1)),f=h,a=u=h=oE(h.minus(1),h.plus(1),c,1),d=uE(h.times(h),c,1),i=3;;){if(u=uE(u.times(d),c,1),tE((s=a.plus(oE(u,new m(i),c,1))).d).slice(0,c)===tE(a.d).slice(0,c)){if(a=a.times(2),0!==o&&(a=a.plus(sE(m,c+2,y).times(o+""))),a=oE(a,new m(p),c,1),null!=t)return m.precision=y,a;if(!rE(a.d,c-10,g,l))return uE(a,m.precision=y,g,$S=!0);m.precision=c+=10,s=u=h=oE(f.minus(1),f.plus(1),c,1),d=uE(h.times(h),c,1),i=l=1}a=s,i+=2}}function yE(e){return String(e.s*e.s/0)}function bE(e,t){var n,r,i;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;48===t.charCodeAt(r);r++);for(i=t.length;48===t.charCodeAt(i-1);--i);if(t=t.slice(r,i)){if(i-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%KS,n<0&&(r+=KS),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=KS;r<i;)e.d.push(+t.slice(r,r+=KS));t=t.slice(r),r=KS-t.length}else r-=i;for(;r--;)t+="0";e.d.push(+t),$S&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function wE(e,t){var n,r,i,o,u,l,a,s,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),ZS.test(t))return bE(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(VS.test(t))n=16,t=t.toLowerCase();else if(qS.test(t))n=2;else{if(!XS.test(t))throw Error(BS+t);n=8}for((o=t.search(/p/i))>0?(a=+t.slice(o+1),t=t.substring(2,o)):t=t.slice(2),u=(o=t.indexOf("."))>=0,r=e.constructor,u&&(o=(l=(t=t.replace(".","")).length)-o,i=pE(r,new r(n),o,2*o)),o=c=(s=iE(t,n,GS)).length-1;0===s[o];--o)s.pop();return o<0?new r(0*e.s):(e.e=aE(s,c),e.d=s,$S=!1,u&&(e=oE(e,i,4*l)),a&&(e=e.times(Math.abs(a)<54?WS(2,a):dD.pow(2,a))),$S=!0,e)}function xE(e,t,n,r,i){var o,u,l,a,s=e.precision,c=Math.ceil(s/KS);for($S=!1,a=n.times(n),l=new e(r);;){if(u=oE(l.times(a),new e(t++*t++),s,1),l=i?r.plus(u):r.minus(u),r=oE(u.times(a),new e(t++*t++),s,1),void 0!==(u=l.plus(r)).d[c]){for(o=c;u.d[o]===l.d[o]&&o--;);if(-1==o)break}o=l,l=r,r=u,u=o}return $S=!0,u.d.length=c+1,u}function jE(e,t){for(var n=e;--t;)n*=e;return n}function OE(e,t){var n,r=t.s<0,i=cE(e,e.precision,1),o=i.times(.5);if((t=t.abs()).lte(o))return PS=r?4:1,t;if((n=t.divToInt(i)).isZero())PS=r?3:2;else{if((t=t.minus(n.times(i))).lte(o))return PS=hE(n)?r?2:3:r?4:1,t;PS=hE(n)?r?1:4:r?3:2}return t.minus(i).abs()}function SE(e,t,n,r){var i,o,u,l,a,s,c,f,d,p=e.constructor,h=void 0!==n;if(h?(nE(n,1,YS),void 0===r?r=p.rounding:nE(r,0,8)):(n=p.precision,r=p.rounding),e.isFinite()){for(h?(i=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):i=t,(u=(c=lE(e)).indexOf("."))>=0&&(c=c.replace(".",""),(d=new p(1)).e=c.length-u,d.d=iE(lE(d),10,i),d.e=d.d.length),o=a=(f=iE(c,10,i)).length;0==f[--a];)f.pop();if(f[0]){if(u<0?o--:((e=new p(e)).d=f,e.e=o,f=(e=oE(e,d,n,r,0,i)).d,o=e.e,s=AS),u=f[n],l=i/2,s=s||void 0!==f[n+1],s=r<4?(void 0!==u||s)&&(0===r||r===(e.s<0?3:2)):u>l||u===l&&(4===r||s||6===r&&1&f[n-1]||r===(e.s<0?8:7)),f.length=n,s)for(;++f[--n]>i-1;)f[n]=0,n||(++o,f.unshift(1));for(a=f.length;!f[a-1];--a);for(u=0,c="";u<a;u++)c+=HS.charAt(f[u]);if(h){if(a>1)if(16==t||8==t){for(u=16==t?4:3,--a;a%u;a++)c+="0";for(a=(f=iE(c,i,t)).length;!f[a-1];--a);for(u=1,c="1.";u<a;u++)c+=HS.charAt(f[u])}else c=c.charAt(0)+"."+c.slice(1);c=c+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)c="0"+c;c="0."+c}else if(++o>a)for(o-=a;o--;)c+="0";else o<a&&(c=c.slice(0,o)+"."+c.slice(o))}else c=h?"0p+0":"0";c=(16==t?"0x":2==t?"0b":8==t?"0o":"")+c}else c=yE(e);return e.s<0?"-"+c:c}function EE(e,t){if(e.length>t)return e.length=t,!0}function DE(e){return new this(e).abs()}function kE(e){return new this(e).acos()}function ME(e){return new this(e).acosh()}function _E(e,t){return new this(e).plus(t)}function AE(e){return new this(e).asin()}function PE(e){return new this(e).asinh()}function TE(e){return new this(e).atan()}function YE(e){return new this(e).atanh()}function HE(e,t){e=new this(e),t=new this(t);var n,r=this.precision,i=this.rounding,o=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?cE(this,r,i):new this(0)).s=e.s:!e.d||t.isZero()?(n=cE(this,o,1).times(.5)).s=e.s:t.s<0?(this.precision=o,this.rounding=1,n=this.atan(oE(e,t,o,1)),t=cE(this,o,1),this.precision=r,this.rounding=i,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(oE(e,t,o,1)):(n=cE(this,o,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function IE(e){return new this(e).cbrt()}function LE(e){return uE(e=new this(e),e.e+1,2)}function NE(e,t,n){return new this(e).clamp(t,n)}function $E(e){if(!e||"object"!=typeof e)throw Error(CS+"Object expected");var t,n,r,i=!0===e.defaults,o=["precision",1,YS,"rounding",0,8,"toExpNeg",-TS,0,"toExpPos",0,TS,"maxE",0,TS,"minE",-TS,0,"modulo",0,9];for(t=0;t<o.length;t+=3)if(n=o[t],i&&(this[n]=NS[n]),void 0!==(r=e[n])){if(!(US(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(BS+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=NS[n]),void 0!==(r=e[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(BS+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error(RS);this[n]=!0}else this[n]=!1}return this}function CE(e){return new this(e).cos()}function BE(e){return new this(e).cosh()}function FE(e,t){return new this(e).div(t)}function RE(e){return new this(e).exp()}function zE(e){return uE(e=new this(e),e.e+1,3)}function UE(){var e,t,n=new this(0);for($S=!1,e=0;e<arguments.length;)if((t=new this(arguments[e++])).d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return $S=!0,new this(1/0);n=t}return $S=!0,n.sqrt()}function WE(e){return e instanceof dD||e&&e.toStringTag===zS||!1}function qE(e){return new this(e).ln()}function VE(e,t){return new this(e).log(t)}function XE(e){return new this(e).log(2)}function ZE(e){return new this(e).log(10)}function GE(){return vE(this,arguments,"lt")}function KE(){return vE(this,arguments,"gt")}function JE(e,t){return new this(e).mod(t)}function QE(e,t){return new this(e).mul(t)}function eD(e,t){return new this(e).pow(t)}function tD(e){var t,n,r,i,o=0,u=new this(1),l=[];if(void 0===e?e=this.precision:nE(e,1,YS),r=Math.ceil(e/KS),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));o<r;)(i=t[o])>=429e7?t[o]=crypto.getRandomValues(new Uint32Array(1))[0]:l[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error(RS);for(t=crypto.randomBytes(r*=4);o<r;)(i=t[o]+(t[o+1]<<8)+(t[o+2]<<16)+((127&t[o+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,o):(l.push(i%1e7),o+=4);o=r/4}else for(;o<r;)l[o++]=1e7*Math.random()|0;for(r=l[--o],e%=KS,r&&e&&(i=WS(10,KS-e),l[o]=(r/i|0)*i);0===l[o];o--)l.pop();if(o<0)n=0,l=[0];else{for(n=-1;0===l[0];n-=KS)l.shift();for(r=1,i=l[0];i>=10;i/=10)r++;r<KS&&(n-=KS-r)}return u.e=n,u.d=l,u}function nD(e){return uE(e=new this(e),e.e+1,this.rounding)}function rD(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function iD(e){return new this(e).sin()}function oD(e){return new this(e).sinh()}function uD(e){return new this(e).sqrt()}function lD(e,t){return new this(e).sub(t)}function aD(){var e=0,t=arguments,n=new this(t[e]);for($S=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return $S=!0,uE(n,this.precision,this.rounding)}function sD(e){return new this(e).tan()}function cD(e){return new this(e).tanh()}function fD(e){return uE(e=new this(e),e.e+1,1)}eE[Symbol.for("nodejs.util.inspect.custom")]=eE.toString,eE[Symbol.toStringTag]="Decimal";var dD=eE.constructor=function e(t){var n,r,i;function o(e){var t,n,r,i=this;if(!(i instanceof o))return new o(e);if(i.constructor=o,WE(e))return i.s=e.s,void($S?!e.d||e.e>o.maxE?(i.e=NaN,i.d=null):e.e<o.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));if("number"===(r=typeof e)){if(0===e)return i.s=1/e<0?-1:1,i.e=0,void(i.d=[0]);if(e<0?(e=-e,i.s=-1):i.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;return void($S?t>o.maxE?(i.e=NaN,i.d=null):t<o.minE?(i.e=0,i.d=[0]):(i.e=t,i.d=[e]):(i.e=t,i.d=[e]))}return 0*e!=0?(e||(i.s=NaN),i.e=NaN,void(i.d=null)):bE(i,e.toString())}if("string"!==r)throw Error(BS+e);return 45===(n=e.charCodeAt(0))?(e=e.slice(1),i.s=-1):(43===n&&(e=e.slice(1)),i.s=1),ZS.test(e)?bE(i,e):wE(i,e)}if(o.prototype=eE,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.EUCLID=9,o.config=o.set=$E,o.clone=e,o.isDecimal=WE,o.abs=DE,o.acos=kE,o.acosh=ME,o.add=_E,o.asin=AE,o.asinh=PE,o.atan=TE,o.atanh=YE,o.atan2=HE,o.cbrt=IE,o.ceil=LE,o.clamp=NE,o.cos=CE,o.cosh=BE,o.div=FE,o.exp=RE,o.floor=zE,o.hypot=UE,o.ln=qE,o.log=VE,o.log10=ZE,o.log2=XE,o.max=GE,o.min=KE,o.mod=JE,o.mul=QE,o.pow=eD,o.random=tD,o.round=nD,o.sign=rD,o.sin=iD,o.sinh=oD,o.sqrt=uD,o.sub=lD,o.sum=aD,o.tan=sD,o.tanh=cD,o.trunc=fD,void 0===t&&(t={}),t&&!0!==t.defaults)for(i=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(NS);IS=new dD(IS),LS=new dD(LS);var pD=y(Uc("floor"));var hD=y(wa());var vD,mD={exports:{}},gD={exports:{}};!function(e,t){var n;e.exports=(n=ha(),vD||(vD=1,function(e,t){var n,r,i,o,u,l,a;e.exports=(i=(r=a=ha()).lib,o=i.Base,u=i.WordArray,(l=r.x64={}).Word=o.extend({init:function(e,t){this.high=e,this.low=t}}),l.WordArray=o.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=t!=n?t:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return u.create(n,this.sigBytes)},clone:function(){for(var e=o.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}}),a)}(gD)),function(){var e=n,t=e.lib.Hasher,r=e.x64,i=r.Word,o=r.WordArray,u=e.algo;function l(){return i.create.apply(i,arguments)}var a=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],s=[];!function(){for(var e=0;e<80;e++)s[e]=l()}();var c=u.SHA512=t.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],u=n[3],l=n[4],c=n[5],f=n[6],d=n[7],p=r.high,h=r.low,v=i.high,m=i.low,g=o.high,y=o.low,b=u.high,w=u.low,x=l.high,j=l.low,O=c.high,S=c.low,E=f.high,D=f.low,k=d.high,M=d.low,_=p,A=h,P=v,T=m,Y=g,H=y,I=b,L=w,N=x,$=j,C=O,B=S,F=E,R=D,z=k,U=M,W=0;W<80;W++){var q,V,X=s[W];if(W<16)V=X.high=0|e[t+2*W],q=X.low=0|e[t+2*W+1];else{var Z=s[W-15],G=Z.high,K=Z.low,J=(G>>>1|K<<31)^(G>>>8|K<<24)^G>>>7,Q=(K>>>1|G<<31)^(K>>>8|G<<24)^(K>>>7|G<<25),ee=s[W-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=s[W-7],ue=oe.high,le=oe.low,ae=s[W-16],se=ae.high,ce=ae.low;V=(V=(V=J+ue+((q=Q+le)>>>0<Q>>>0?1:0))+re+((q+=ie)>>>0<ie>>>0?1:0))+se+((q+=ce)>>>0<ce>>>0?1:0),X.high=V,X.low=q}var fe,de=N&C^~N&F,pe=$&B^~$&R,he=_&P^_&Y^P&Y,ve=A&T^A&H^T&H,me=(_>>>28|A<<4)^(_<<30|A>>>2)^(_<<25|A>>>7),ge=(A>>>28|_<<4)^(A<<30|_>>>2)^(A<<25|_>>>7),ye=(N>>>14|$<<18)^(N>>>18|$<<14)^(N<<23|$>>>9),be=($>>>14|N<<18)^($>>>18|N<<14)^($<<23|N>>>9),we=a[W],xe=we.high,je=we.low,Oe=z+ye+((fe=U+be)>>>0<U>>>0?1:0),Se=ge+ve;z=F,U=R,F=C,R=B,C=N,B=$,N=I+(Oe=(Oe=(Oe=Oe+de+((fe+=pe)>>>0<pe>>>0?1:0))+xe+((fe+=je)>>>0<je>>>0?1:0))+V+((fe+=q)>>>0<q>>>0?1:0))+(($=L+fe|0)>>>0<L>>>0?1:0)|0,I=Y,L=H,Y=P,H=T,P=_,T=A,_=Oe+(me+he+(Se>>>0<ge>>>0?1:0))+((A=fe+Se|0)>>>0<fe>>>0?1:0)|0}h=r.low=h+A,r.high=p+_+(h>>>0<A>>>0?1:0),m=i.low=m+T,i.high=v+P+(m>>>0<T>>>0?1:0),y=o.low=y+H,o.high=g+Y+(y>>>0<H>>>0?1:0),w=u.low=w+L,u.high=b+I+(w>>>0<L>>>0?1:0),j=l.low=j+$,l.high=x+N+(j>>>0<$>>>0?1:0),S=c.low=S+B,c.high=O+C+(S>>>0<B>>>0?1:0),D=f.low=D+R,f.high=E+F+(D>>>0<R>>>0?1:0),M=d.low=M+U,d.high=k+z+(M>>>0<U>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(c),e.HmacSHA512=t._createHmacHelper(c)}(),n.SHA512)}(mD);var yD=y(mD.exports);function bD(e,t){return qt(e)&&qt(t)?function(e,t){if(e=e.replace(/\s+/g,""),t=t.replace(/\s+/g,""),!e.length&&!t.length)return 1;if(!e.length||!t.length)return 0;if(e===t)return 1;if(1===e.length&&1===t.length)return 0;if(e.length<2||t.length<2)return 0;let n=new Map;for(let t=0;t<e.length-1;t++){const r=e.substring(t,t+2),i=n.has(r)?n.get(r)+1:1;n.set(r,i)}let r=0;for(let e=0;e<t.length-1;e++){const i=t.substring(e,e+2),o=n.has(i)?n.get(i):0;o>0&&(n.set(i,o-1),r++)}return 2*r/(e.length+t.length-2)}(e,t):0}var wD=Sp;var xD=function(e,t){var n=null==e?0:e.length;return n?wD(e,t)/n:NaN},jD=fo;var OD=y((function(e){return xD(e,jD)}));function SD(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";if(qt(e)||Xt(e))r=Xp(e);else{if(!Yu(e))return!!n&&0;r=If(e,"")}if(""===t)return!n||100;if(Tu(t))return!!n&&0;if(kh(r,t))return!n||100;let i=np(t," "),o=function(){let e=$l();return d||e.Fuse}(),u=pu(i,(function(e){return((e,t)=>{let n=new o([e],{includeScore:!0}).search(t);n=Ft(n,0);let r=Ft(n,"score",1);return r=1-r,r*=100,r})(r,e)}));if(n)return OD(u);{let e=80;return No(u,(function(t){return t>=e}))}}function ED(e){if(!zt(e))return{};let{results:t,binarys:n}=e;if(!qt(t))return{};if(!Ut(n))return{};let r={};try{r=JSON.parse(t,(function(e,t){if(qt(t)){if(t.indexOf("[Uint8Array]::")>=0){let e=qc(t.replace("[Uint8Array]::",""));return n[e]}if(t.indexOf("[Uint16Array]::")>=0){let e=qc(t.replace("[Uint16Array]::",""));return n[e]}if(t.indexOf("[ArrayBuffer]::")>=0){let e=qc(t.replace("[ArrayBuffer]::",""));return n[e]}}return t}))}catch(e){}return r}function DD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!kO(e))return{today:null,msg:"",err:"時間格式錯誤"};let r=n();kO(t)&&(r=n(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=n(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r>i)return{today:null,msg:"",err:"時間已過"};let o,u=r.format("YYYY-MM-DD"),l=i.format("YYYY-MM-DD"),a=n(u,"YYYY-MM-DD"),s=n(l,"YYYY-MM-DD"),c=i.diff(r,"seconds"),f=i.diff(r,"minutes"),d=i.diff(r,"hours"),p=s.diff(a,"days"),h=s.diff(a,"weeks"),v=s.diff(a,"months"),m=s.diff(a,"years"),g="即將到來";if(c>=0&&(o=!0,g=c+"秒後"),f>0&&(o=!0,g=f+"分鐘後"),d>0){let e=i.format("HH:mm");u===l?(o=!0,g=d+"小時後,今天"+e):(o=!1,g=d+"小時後,明天"+e)}return p>1&&(o=!1,g=2===p?"後天":p+"天後"),h>0&&(o=!1,g=h+"周後"),v>0&&(o=!1,g=v+"個月後"),m>0&&(o=!1,g=m+"年後"),{today:o,msg:g,err:""}}function kD(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!kO(e))return{today:null,msg:"",err:"時間格式錯誤"};let r=n();kO(t)&&(r=n(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));let i=n(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(r<i)return{today:null,msg:"",err:"時間未到"};let o=r.format("YYYY-MM-DD"),u=i.format("YYYY-MM-DD"),l=n(o,"YYYY-MM-DD"),a=n(u,"YYYY-MM-DD"),s=r.diff(i,"seconds"),c=r.diff(i,"minutes"),f=r.diff(i,"hours"),d=l.diff(a,"days"),p=l.diff(a,"weeks"),h=l.diff(a,"months"),v=l.diff(a,"years"),m=!1,g="剛剛";if(s>=0&&(m=!0,g=s+"秒前"),c>0&&(m=!0,g=c+"分鐘前"),f>0){let e=i.format("HH:mm");o===u?(m=!0,g=f+"小時前"):(m=!1,g="昨天"+e)}return d>1&&(m=!1,g=d+"天前"),p>0&&(m=!1,g=p+"周前"),h>0&&(m=!1,g=h+"個月前"),v>0&&(m=!1,g=v+"年前"),{today:m,msg:g,err:""}}function MD(e){let t=DO.sepTZ(e);return e=`${t.t}.000${t.tz}`}function _D(e){let t=DO.sepTZ(e);return e=`${t.t}.000${t.tz}`}function AD(e){if(!Sh(e))return"";let t;try{t=xh(oS(e))}catch(e){return""}return t}var PD=y((function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}));e._getXLSX=Cl,e._tz=DO,e.ab2blob=function(e){let t=m(e);return new Blob([t])},e.ab2u8arr=m,e.addExcelWorksheetFromData=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"data";if(!zt(e))return{error:"wb is not an effective object"};if(!Ut(Ft(e,"SheetNames")))return{error:"wb.SheetNames is not an array"};if(!Rt(Ft(e,"Sheets")))return{error:"wb.Sheets is not an object"};let r=Bl(t);return Zt(r,"error")?r:(e.SheetNames.push(n),e.Sheets[n]=r,e)},e.addMonth=function(e,t){return Fl(e)&&ca(t)?n(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=La,e.alive=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=$c(),n={},r=null,i=Ft(e,"timeAlive");Vc(i)||(i=1e4),i=qc(i);let o=Ft(e,"timeDetect");return Vc(o)||(o=50),o=qc(o),t.trigger=function(e,u){qt(e)?(Zt(n,e)||setTimeout((()=>{t.emit("message",{eventName:"enter",key:e,data:u,now:_l(n)})}),1),n[e]={data:u,time:Date.now()},null===r&&(r=setInterval((()=>{ou(n,((e,r)=>{if(Date.now()-e.time>i){let e=Ic(n[r]);delete n[r],t.emit("message",{eventName:"leave",key:r,data:e.data,now:_l(n)})}})),zt(n)||(clearInterval(r),r=null)}),o))):console.log("trigger need key")},t.get=function(){let e=[];return ou(n,((t,n)=>{e.push({key:n,data:t.data})})),e=Ic(e),e},t},e.arr2dt=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!Yu(e))return{};if(Yu(t))return _l(e)===_l(t)?Jc(e,t):{};let n=[];for(let r=0;r<_l(e);r++)n.push(Ic(t));return Jc(e,n)},e.arrAccum=function(e){if(!Yu(e))return[];let t=[],n=0;return ou(e,(function(e){n+=sa(e),Xt(e)?t.push(n):t.push("")})),t},e.arrAdd=function(){if(_l(arguments)<2)return[];let e=arguments[0];for(let t=1;t<_l(arguments);t++){e=Qc(e,arguments[t])}return e},e.arrAt=Af,e.arrDiff=zd,e.arrFilterByKeywords=function(e,t){if(!Yu(e))return[];if(!qt(t)&&!Yu(t))return[];let n=null;n=qt(t)?np(t," "):t;let r=_l(n);return pu(e,(e=>function(e){let t=!1,i=0;for(let o=0;o<r;o++){let u=n[o],l=u,a="+"===rp(u,1),s="-"===rp(u,1);if((a||s)&&(l=op(u,1)),""===ep(l))continue;let c=e.indexOf(l)>=0;if(a){if(c){t=!0,i=1;break}t=!1,i=0;break}if(s){if(c){t=!1,i=0;break}t=!0,i=1;break}if(c){t=!0;let e=1-o/r;e=e**2,i+=e}}return{hasKeyword:t,weight:i}}(e)))},e.arrFilterByNum=function(e){return Yu(e)?(e=Ic(e),e=fp(e,Xt),e=pu(e,sa)):[]},e.arrFilterByPnum=pp,e.arrFilterByPnumAndToLog=function(e){return Yu(e)?(e=pp(e),e=pu(e,Math.log)):[]},e.arrFind=function(e,t){function n(e){return Ut(e)?e:[e]}return Tu(e)||0===(e=n(e)).length||Tu(t)?[]:(t=n(t),pu(t,(function(t){let n=-1;for(let r=0;r<e.length;r++)if(vp(e[r],t)){n=r;break}return n})))},e.arrGroupByMaxmin=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ft(n,"keyMax");qt(r)||(r="max");let i=Ft(n,"keyMin");qt(i)||(i="min");let o=Ft(n,"keyValue");qt(o)||(o="value");let u=Ft(n,"keyItems");if(qt(u)||(u="items"),!Yu(e))return[];if(!Yu(t))return[];let l=Ic(t);return ou(e,((e,n)=>{let a=Ft(e,o);Xt(a)?a=sa(a):Xt(e)&&(a=sa(e)),yp(a)&&ou(t,((t,n)=>{let o=Ft(t,r,null),s=Ft(t,i,null);if(null!==o&&null!==s&&Xt(o)&&Xt(s)){let r=Ft(t,"maxType");"<="!==r&&"<"!==r&&(r="<=");let i,c,f=Ft(t,"minType");">="!==f&&">"!==f&&(f=">="),o=sa(o),s=sa(s),i=">="===f?a>=s:a>s,c="<="===r?a<=o:a<o,i&&c&&(Zt(l[n],u)||(l[n][u]=[]),l[n][u].push(e))}}))})),l},e.arrHas=bp,e.arrInsert=function(e,t,n){if(!Ut(e))return[];if(Ut(n)||(n=[n]),!_f(t))return e;if((t=qc(t))>_l(e))return e;let r=e;try{r=[...e.slice(0,t),...n,...e.slice(t)]}catch(e){}return r},e.arrLookupByMaxmin=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ft(n,"keyMax");qt(r)||(r="max");let i=Ft(n,"keyMin");qt(i)||(i="min");let o=Ft(n,"keyValue");qt(o)||(o="value");let u=Ft(n,"keyItems");qt(u)||(u="items");let l=Ft(n,"beforeAddResult",null);if(!Yu(e))return[];if(!Yu(t))return[];if(!zt(Ft(e,0)))return[];let a=Ic(e);return ou(a,((e,n)=>{let s=Ft(e,o);Xt(s)&&(s=sa(s)),yp(s)&&ou(t,((e,t)=>{let o=Ft(e,r,null),c=Ft(e,i,null);if(null!==o&&null!==c&&Xt(o)&&Xt(c)){let t=Ft(e,"maxType");"<="!==t&&"<"!==t&&(t="<=");let r,i,f=Ft(e,"minType");">="!==f&&">"!==f&&(f=">="),o=sa(o),c=sa(c),r=">="===f?s>=c:s>c,i="<="===t?s<=o:s<o,r&&i&&(wp(l)&&(e=l(e,a[n],n)),Zt(a[n],u)||(a[n][u]=[]),a[n][u].push(e))}}))})),a},e.arrMax=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return null;let n=Ft(t,"returnIndex");Yl(n)||(n=!1);let r=Ft(t,"compareKey",null),i=e;qt(r)&&(i=pu(e,((e,t)=>Ft(e,r,""))));let o=null,u=xp(i,((e,t)=>Xt(t)?(t=sa(t),null===e?(o=t,t):(e=Math.max(e,t),o=e,e)):e),{returnIndex:!0});if(n)return u;let l=null;return u>=0&&(l=qt(r)?e[u]:o),l},e.arrMin=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return null;let n=Ft(t,"returnIndex");Yl(n)||(n=!1);let r=Ft(t,"compareKey",null),i=e;qt(r)&&(i=pu(e,((e,t)=>Ft(e,r,""))));let o=null,u=xp(i,((e,t)=>Xt(t)?(t=sa(t),null===e?(o=t,t):(e=Math.min(e,t),o=e,e)):e),{returnIndex:!0});if(n)return u;let l=null;return u>=0&&(l=qt(r)?e[u]:o),l},e.arrMulti=Op,e.arrNorm=function(e){if(!Yu(e))return null;let t=Mp(e,e);return Xt(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=Mp,e.arrReduce=xp,e.arrSep=function(e,t){if(!Yu(e))return[];if(!Vc(t)&&!zt(t))return[];let n="",r=null;if(Vc(t))r=t,n="numCount";else if(zt(t))if(Vc(Ft(t,"numCount")))r=t.numCount,n="numCount";else{if(!Vc(Ft(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");r=t.numGroup,n="numGroup"}let i=_l(e),o=[];if("numCount"===n)for(let t=0;t<i;t+=r){let n=[];for(let o=0;o<r;o++){let r=t+o;r<i&&n.push(e[r])}o.push(n)}else if("numGroup"===n){for(let e=0;e<r;e++)o[e]=[];let t=-1;for(let n=0;n<i;n++)t++,t>r-1&&(t=0),o[t].push(e[n])}return o},e.arrSort=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return[];if(1===_l(e))return e;let n=Ft(t,"localeCompare");Yl(n)||(n=!1);let r=Ft(t,"returnIndex");Yl(r)||(r=!1);let i=Ft(t,"compareKey",null),o=null;o=n?oh:ih;let u,l=nh(e);if(""===l)return[];if("obj"===l){if(!qt(i))return[];let t=pu(e,((e,t)=>Ft(e,i,""))),l=nh(t);if("num"!==l&&"str"!==l)return[];{n&&(l="files");let i=o(rh(t,l),!0);u=r?i:pu(i,(t=>e[t]))}}else if("num"===l||"str"===l){n&&(l="files");let t=rh(e,l);console.log("num|str: getVirArr vs",t),u=o(t,r)}return u},e.asind=function(e){return Xt(e)?(e=sa(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return Xt(e)?(e=sa(e),Xt(t)?(t=sa(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return Xt(e)?(e=sa(e),180*Math.atan(e)/Math.PI):null},e.attstr=wh,e.b642obj=function(e){if(!Wt(e))return{};let t={};try{t=jh(xh(e))}catch(e){t={}}return t},e.b642str=xh,e.b642u16arr=Dh,e.b642u8arr=Oh,e.binstr=kh,e.blob2ab=_h,e.blob2b64=Ah,e.blob2str=function(e){let t=Mh(),n=new FileReader;return n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsText(e),t},e.blob2u8arr=Ph,e.blobs2b64s=Th,e.blobs2u8arrs=Yh,e.bodyLog=function(){let e=`\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>${Hh(pu(arguments,(function(e){return Hl(e)})).join(", "))}</code>\n </div>\n `;document.querySelector("body").insertAdjacentHTML("beforeend",e)},e.browserView=Ih,e.browserViewFromBlob=function(e,t){Lh(e)&&Ih(e,t)},e.browserViewFromText=function(e){Wt(e)&&Ih(e,"text/plain")},e.browserViewFromU8arr=function(e,t){Sh(e)&&Ih(e,t)},e.bs2u8arr=Nh,e.bufRead=$h,e.bufReadDbl=Ch,e.bufWrite=Bh,e.bufWriteDbl=Fh,e.cache=function(){let e=$c(),t={};function n(t,n){setTimeout((()=>{e.emit(t,n)}),1)}function r(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Zt(t,e))return;let i=Ft(r,"execFun");wp(i)||(i=async()=>{});let o=Ft(r,"inputFun");Ut(o)||(o=[]);let u=Ft(r,"timeExpired");Vc(u)||(u=5e3),u=qc(u),t[e]={needExec:!0,execFun:i,execFunRunning:!1,inputFun:o,value:null,time:null,timeExpired:u},n("message",{fun:"set",key:e,timeExpired:u})}async function i(e){if(Zt(t,e)){let r;n("message",{fun:"get",key:e,msg:"waiting"}),await zh((()=>!t[e].execFunRunning),{timeInterval:1e3});let i=Date.now();r=t[e].needExec;let o=i-t[e].time;return r?n("message",{fun:"get",key:e,msg:"execute first"}):t[e].timeExpired>0&&o>t[e].timeExpired&&(n("message",{fun:"get",key:e,msg:"execute by timeExpired",timeDiff:o}),r=!0),r?(n("message",{fun:"get",key:e,msg:"execFun start"}),t[e].execFunRunning=!0,t[e].value=await t[e].execFun(...t[e].inputFun).catch((t=>{n("error",{fun:"get",key:e,msg:t})})),t[e].needExec=!1,t[e].time=i,t[e].execFunRunning=!1,n("message",{fun:"get",key:e,msg:"execFun end"})):n("message",{fun:"get",key:e,msg:"use cache"}),Ic(t[e].value)}return n("error",{fun:"get",key:e,msg:"invalid key"}),null}return e.set=r,e.getProxy=async function(e){return r(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),i(e)},e.get=i,e.update=function(e,r){Zt(t,e)&&(n("message",{fun:"updateValue",key:e}),t[e].value=r,t[e].time=Date.now())},e.clear=function(e){Zt(t,e)&&(n("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){Zt(t,e)&&(n("message",{fun:"remove",key:e}),delete t[e])},e},e.cbol=function(e){if(Yl(e))return e;if(0===e)return!1;if(1===e)return!0;let t=!1;return qt(e)&&"true"===(e=Wh(ep(e)))&&(t=!0),t},e.cdbl=sa,e.cfilesize=function(e){return Xt(e)?(e=sa(e))<1024?qh(e,1)+" b":e<1048576?qh(e/1024,1)+" kb":e<1073741824?qh(e/1024/1024,1)+" mb":e<1099511627776?qh(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Xt(e))return"";if(!_f(t))return"";let n=(e=qh(e,t)).split("."),r=n[0],i=n.length>1?"."+n[1]:"",o=/(\d+)(\d{3})/;for(;o.test(r);)r=r.replace(o,"$1,$2");return r+i},e.cint=qc,e.clearXSS=function(e){return function e(t){return Ut(t)||Rt(t)?(ou(t,(function(n,r){t[r]=e(n)})),t):Wt(t)?r(t,{onIgnoreTagAttr:function(e,t,n,i){if("style"===t)return t+'="'+r.escapeAttrValue(n)+'"'}}):t}(Ic(e))},e.color=Qv,e.composeToTree=Am,e.convertToTree=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!zt(e)&&!Yu(e))return[];let n=Ft(t,"bindKey",null);qt(n)||(n="id");let r=Ft(t,"bindParent",null);qt(r)||(r="parentId");let i=Ft(t,"bindText",null);qt(i)||(i="text");let o=Ft(t,"bindChildren",null);qt(o)||(o="children");let u=Ft(t,"bindType",null);qt(u)||(u="type");let l=Ft(t,"bindNumOfChilren",null);qt(l)||(l="numOfChilren");let a=Ft(t,"bindRoot",null);qt(a)||(a="root");let s=Ft(t,"saveExtProps",null);return Yl(s)||(s=!1),qt(a)&&(e={[a]:e}),Am(Tm(e,{bindKey:n,bindParent:r,bindText:i,bindType:u,bindNumOfChilren:l}),{bindKey:n,bindParent:r,bindChildren:o,saveExtProps:s})},e.copyStrToClipboard=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Wt(e))return"invalid input";let n=Ft(t,"eleParent");Ko(n)||(n=document.body);let r=document.createElement("textarea");if(r.style.position="fixed",r.style.left=0,r.style.top=0,r.style.zIndex=-1,r.style.background="transparent",r.style.color="transparent",r.value=e,n.appendChild(r),r.select(),!Ym(r))return"ele can not be focusd";try{document.execCommand("copy")}catch(e){return"can not copy str to clipboard"}return n.removeChild(r),""},e.cosd=Hm,e.cotd=function(e){return Xt(e)?1/Im(e=sa(e)):null},e.createExcelWorkbook=Lm,e.cscd=function(e){return Xt(e)?1/Nm(e=sa(e)):null},e.cstr=Xp,e.day2cht=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!$m(e))return"";let r=n(e,"YYYY-MM-DD"),i="";return i=t?r.month()+1+"月"+r.date()+"日":"民國 "+(r.year()-1911)+" 年 "+(r.month()+1)+" 月 "+r.date()+" 日",i},e.debounce=function(){return new function(e){let t=[],n=null,r=null;return Vc(e)||(e=300),e=qc(e),function(i){if(wp(i)){r=Date.now();for(var o=arguments.length,u=new Array(o>1?o-1:0),l=1;l<o;l++)u[l-1]=arguments[l];t.push({func:i,input:u}),null===n&&(n=setInterval((()=>{if(Date.now()-r>e){let e=t.pop();t=[],e.func(...e.input)}0===t.length&&(clearInterval(n),n=null)}),10))}else console.log("func is not a function")}}(arguments.length>0&&void 0!==arguments[0]?arguments[0]:300)},e.delay=Cm,e.dig=qh,e.digExp=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!Xt(e))return"";if(!_f(t))return"";let n="";return n=0===(e=sa(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):qh(e,t),n},e.domAlert=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!qt(e))return;let n=Ft(t,"type","success");Zt(qm,n)||(n="success");let r=Ft(t,"icon",null);qt(r)||(r=qm[n]);let i="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(i=t.position);let o=Ft(t,"time");yp(o)||(o=4e3),o<0&&(o=4e3);let u=Ft(t,"paddingStyle",null);null===u&&(u={top:14,right:26,bottom:14,left:14});let l="";{let e=Ft(u,"top",0),t=Ft(u,"bottom",0),n=Ft(u,"left",0);l=`padding:${e}px ${Ft(u,"right",0)}px ${t}px ${n}px;`}let a=Ft(t,"textColor","#000");a=Zh(a,";","");let s=Ft(t,"backgroundColor","#fff");s=Zh(s,";","");let c=Ft(t,"borderWidth",1),f=Ft(t,"borderColor","#ebeef5");f=Zh(f,";","");let d=Ft(t,"borderRadius",8),p=Ft(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");p=Zh(p,";","");let h=Ft(t,"closeIconShift",null);null===h&&(h={top:10,right:10});let v="";{let e=Ft(h,"top",""),t=Ft(h,"bottom",""),n=Ft(h,"left",""),r=Ft(h,"right","");yp(e)&&(e=`top:${e}px;`),yp(t)&&(t=`bottom:${t}px;`),yp(n)&&(n=`left:${n}px;`),yp(r)&&(r=`right:${r}px;`),v=`position:absolute; ${e} ${r} ${t} ${n}`}let m=`alt-${Rm()}`,g=`alt-${Rm()}`,y=`\n <div \n style="display:inline-block; color:${a}; background:${s}; border:${c}px solid ${f}; border-radius:${d}px; box-shadow:${p};"\n onmouseenter="ttWAlertFadeIn('${g}')"\n onmouseleave="ttWAlertFadeOut('${g}')"\n >\n <div style="position:relative; ${l}">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">${r}</div>\n </div>\n <div>${e}</div>\n </div>\n\n <div style="${v}">\n <div \n id="${g}" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel('${m}')"\n >\n ${Wm}\n </div>\n </div>\n\n </div>\n </div>\n `,b=document.createElement("div");b.id=m,b.style.position="fixed",b.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",b.style.zIndex=-1,b.style.opacity=.001,i.indexOf("-left")>=0?b.style.transform="translateX(-100%)":b.style.transform="translateX(100%)",b.innerHTML=y,document.querySelector("body").appendChild(b);let w=Mh();return function(e){let{id:t,position:n,time:r,pm:i}=e;Vm[t]={id:t,position:n,ele:null,loc:{height:null,top:null,bottom:null,left:null,right:null},timeShow:r,timeStart:Date.now(),pm:i},Gm(),null===Xm&&(Xm=setInterval((()=>{ou(Vm,(e=>{Date.now()-e.timeStart>e.timeShow&&(e.pm.resolve(),Km(e.id))})),zt(Vm)||(clearInterval(Xm),Xm=null)}),50))}({id:m,position:i,time:o,pm:w}),w},e.domAppend=Jm,e.domCancelEvent=eg,e.domCompareText=ng,e.domCompareTextDyn=async function(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5?arguments[5]:void 0;return Yu(o)||(o=["https://cdn.jsdelivr.net/npm/diff2html@3.4.34/bundles/css/diff2html.min.css","https://cdn.jsdelivr.net/npm/diff2html@3.4.34/bundles/js/diff2html.min.js"]),await lg(o),ng(e,t,n,r,i)},e.domConvertToPic=fg,e.domConvertToPicDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Yu(n)||(n=["https://cdn.jsdelivr.net/npm/html-to-image@1.11.11/dist/html-to-image.js"]),await lg(n),fg(e,t)},e.domDetect=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ft(t,"timeInterval",null);Vc(n)||(n=20);let r=Ft(t,"tolerancePixel",null);Vc(r)||(r=1);let i,o=$c(),u={offsetWidth:0,offsetHeight:0};if(!wp(e))return console.log("invalid f",e),null;i=setInterval((()=>{let t=e();if(t){let e={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight},n=Math.abs(u.offsetWidth-e.offsetWidth)>r,i=Math.abs(u.offsetHeight-e.offsetHeight)>r;if(n||i){let n=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dg(Object(n),!0).forEach((function(t){Yf(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dg(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},u);setTimeout((()=>{e.offsetWidth>0&&e.offsetHeight>0&&(o.emit("resize",{sold:n,snew:e,ele:t}),o.emit("resizeWithWindow",{sold:n,snew:e,ele:t,from:"dom"}))}),1)}u=e}}),n);let l=e=>{o.emit("resizeWithWindow",{snew:u,from:"window"})};return window.addEventListener("resize",l),o.clear=()=>{clearInterval(i),window.removeEventListener("resize",l)},o},e.domDrag=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return void console.log("ele is not a HTMLElement",e);let n=Ft(t,"attIdentify",null);qt(n)||(n="dragid");let r=Ft(t,"attIndex",null);qt(r)||(r="dragindex");let i=Ft(t,"attGroup",null);qt(i)||(i="draggroup");let o=Ft(t,"group",null);qt(o)||(o="group");let u=Ft(t,"previewOpacity",null);yp(u)||(u=.4);let l=Ft(t,"previewDisabledOpacity",null);yp(l)||(l=.2);let a=Ft(t,"previewBackground",null);qt(a)||(a="white");let s=Ft(t,"previewBorderWidth",null);yp(s)||(s=1);let c=Ft(t,"previewBorderColor",null);qt(c)||(c="#f26");let f=Ft(t,"timeDragStartDelay",null);yp(f)||(f=120);let d=`c${Rm(8)}`,p=o;e.setAttribute(i,p),e.setAttribute(n,d);let h=Yg(p,d,{attIdentify:n,previewOpacity:u,previewBackground:a,previewBorderWidth:s,previewBorderColor:c}),v=function(e,t,n,r){let i=[];return{bind:function(){let n;n="mousedown";let r=function(n){t.dragStart({e:n,ele:e,name:"mousedown"})};e.addEventListener(n,r,!1),i.push({ele:e,name:n,f:r}),n="touchstart";let o=function(n){t.dragStart({e:n,ele:e,name:"touchstart"})};e.addEventListener(n,o,!1),i.push({ele:e,name:n,f:o}),n="touchmove";let u=function(e){t.dragMove({e:e,name:"touchmove"}),e.cancelable&&e.preventDefault()};e.addEventListener(n,u,!1),i.push({ele:e,name:n,f:u})},unbind:function(){ou(i,(e=>{let{ele:t,name:n,f:r}=e;t.removeEventListener(n,r)}))}}}(e,{dragStart:e=>{h.emit(p+"-dragStart",e)},dragMove:e=>{h.emit(p+"-dragMove",e)}});v.bind(),Ig({gid:p,attGroup:i,attIndex:r,attIdentify:n,timeDragStartDelay:f,previewOpacity:u,previewDisabledOpacity:l});let m=$c();return h.on(o+"-change",(e=>{e.tarEid===d&&m.emit("change",e)})),h.on(o+"-start",(e=>{e.tarEid===d&&m.emit("start",e)})),h.on(o+"-move",(e=>{e.tarEid===d&&m.emit("move",e)})),h.on(o+"-enter",(e=>{e.tarEid===d&&m.emit("enter",e)})),h.on(o+"-leave",(e=>{e.tarEid===d&&m.emit("leave",e)})),h.on(o+"-drop",(e=>{e.tarEid===d&&m.emit("drop",e)})),m.setIsActive=function(e){Tg[p].isActive=e},m.unbind=function(){v.unbind(),function(e,t){let n=Tg[e],r=Ic(n.eleIds);jg(r,t),n.eleIds=r,0===r.length&&(n.oevg.unbind(),n.pv.clear(),delete Tg[e])}(p,d)},m},e.domDragBarAndScroll=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=null,o=null,u=null,l=null,a=null,s=null,c=null,f=null,d=null,p=null,h=null,v=null,m=null,g=null,y=!1,b=Ft(n,"getHeighRatio",null);K(b)||(b=()=>1);let w=Ft(n,"getWidthRatio",null);K(w)||(w=()=>1);let x=Ft(n,"stopScrollPropagationForPanel",null);Tl(x)||(x=!1);let j=Ft(n,"stopTouchDragPropagationForPanel",null);Tl(j)||(j=!1);let O=Ft(n,"useTouchDragForPanel",null);Tl(O)||(O=!0);let S=e,E=t,D=$c();return r=e=>{let t=e.deltaY/Math.abs(e.deltaY),n=e.deltaX/Math.abs(e.deltaX);D.emit("scrollPanel",{ratioY:t,ratioX:n}),x&&eg(e)},S.addEventListener("wheel",r),i=e=>{if(O){let t=Ft(e,"touches.0.clientY",0),n=Ft(e,"touches.0.clientX",0),r=-t*b(),i=-n*w();y=!0,D.emit("pressBar",{clientY:r,clientX:i}),j&&eg(e)}},S.addEventListener("touchstart",i),o=e=>{if(O&&y){let t=Ft(e,"touches.0.clientY",0),n=Ft(e,"touches.0.clientX",0),r=-t*b(),i=-n*w();D.emit("dragBar",{clientY:r,clientX:i}),j&&eg(e)}},S.addEventListener("touchmove",o,{passive:!1}),u=e=>{O&&y&&(y=!1,D.emit("freeBar"),j&&eg(e))},S.addEventListener("touchend",u),l=e=>{y=!0,D.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},E.addEventListener("mousedown",l),a=e=>{y&&(y=!1,D.emit("freeBar"))},E.addEventListener("mouseup",a),s=e=>{y=!0,D.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},E.addEventListener("touchstart",s),c=e=>{y&&(D.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),eg(e))},E.addEventListener("touchmove",c,{passive:!1}),f=e=>{y&&(y=!1,D.emit("freeBar"))},E.addEventListener("touchend",f),d=e=>{y&&D.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",d),p=e=>{y&&(y=!1,D.emit("freeBar"),x&&eg(e))},window.addEventListener("mouseup",p),h=e=>{},window.addEventListener("scroll",h,{passive:!1}),v=e=>{},window.addEventListener("wheel",v,{passive:!1}),m=e=>{},document.addEventListener("scroll",m,{passive:!1}),g=e=>{},document.addEventListener("wheel",g,{passive:!1}),D.clear=function(){S.removeEventListener("wheel",r),S.removeEventListener("touchstart",i),S.removeEventListener("touchmove",o),S.removeEventListener("touchend",u),E.removeEventListener("mousedown",l),E.removeEventListener("mouseup",a),E.removeEventListener("touchstart",s),E.removeEventListener("touchmove",c),E.removeEventListener("touchend",f),window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",p),window.removeEventListener("scroll",h),window.removeEventListener("wheel",v),document.removeEventListener("scroll",m),document.removeEventListener("wheel",g)},D},e.domDragPreview=_g,e.domDropFiles=function(e){let t=!1,n=!1,r=$c();function i(e){eg(e),n=!0,!1===t&&(t=!0,r.emit("dropIn",{ev:e}))}function o(e){eg(e),n=!1,setTimeout((function(){n||(t=!1,r.emit("dropOut",{ev:e}))}),100)}function u(e){i(e)}function l(e){o(e)}function a(e){function t(){o(e)}i(e),$g(e.dataTransfer).then((n=>{let i=fp(n.entries,{type:"file"});r.emit("getFiles",{ev:e,files:n.files,filesTree:i,entries:n.entries,cb:t})})).catch((e=>{r.emit("error",e)}))}return e.addEventListener("dragenter",u,!1),e.addEventListener("dragover",u,!1),e.addEventListener("dragleave",l,!1),e.addEventListener("drop",a,!1),r.off=function(){e.removeEventListener("dragenter",u,!1),e.removeEventListener("dragover",u,!1),e.removeEventListener("dragleave",l,!1),e.removeEventListener("drop",a,!1)},r},e.domElementsFromPoint=Eg,e.domFadeIn=zm,e.domFadeOut=Um,e.domFind=Cg,e.domFinds=ag,e.domGetAttr=Dg,e.domGetBoudRect=kg,e.domGetBoudRectRefSelf=Mg,e.domGetFileAccept=Rg,e.domGetFiles=zg,e.domGetParents=Og,e.domGetPointFromEvent=Sg,e.domGetScrollableParent=function(e){let t=/(auto|scroll)/,n=function(e,t){return getComputedStyle(e,null).getPropertyValue(t)},r=function(e){return t.test(function(e){return n(e,"overflow")+n(e,"overflow-y")+n(e,"overflow-x")}(e))};if(!(e instanceof HTMLElement||e instanceof SVGElement))return;let i=Og(e);for(let e=0;e<i.length;e+=1)if(r(i[e]))return i[e];return document.scrollingElement||document.documentElement},e.domGetWindowSize=function(){let e=$l();return{width:(()=>{let t=[Ft(e,"innerWidth"),Ft(e,"document.documentElement.clientWidth"),Ft(e,"document.body.clientWidth")];return t=fp(t,yp),Zg(t)})(),height:(()=>{let t=[Ft(e,"innerHeight"),Ft(e,"document.documentElement.clientHeight"),Ft(e,"document.body.clientHeight")];return t=fp(t,yp),Zg(t)})()}},e.domIsClientXYIn=function(e,t,n){if(!yp(e))return void console.log("clientX is not a number",e);if(!yp(t))return void console.log("clientY is not a number",t);if(!Ko(n))return void console.log("ele is not a HTMLElement",n);let r;try{r=n.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}let i=!1;try{i=e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom}catch(e){console.log("catch when calculating page information of element",e)}return i},e.domIsFocused=Ym,e.domIsVisible=function(e){if(!Ko(e))return Promise.reject("invalid element");if(Gg())return Promise.reject("invalid IntersectionObserver");let t=Mh();try{let n=new IntersectionObserver((e=>{t.resolve(e[0].isIntersecting),n.disconnect()}));n.observe(e)}catch(e){t.reject(e)}return t},e.domPrepend=cg,e.domRemove=sg,e.domRenderMarkdownMind=Kg,e.domRenderMarkdownMindDyn=async function(e,t){let n=arguments.length>3?arguments[3]:void 0;return Yu(n)||(n=["https://cdn.jsdelivr.net/npm/d3@7.8.3/dist/d3.min.js","https://cdn.jsdelivr.net/npm/markmap-view@0.14.4/dist/index.min.js","https://cdn.jsdelivr.net/npm/markmap-lib@0.14.4/dist/browser/index.min.js"]),await lg(n),Kg(e,t)},e.domRipple=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ft(n,"timeDuration",null);Vc(r)||(r=1e3);let i=Ft(n,"color",null);if(qt(i)||(i="rgba(255, 255, 255, 0.5)"),!Ko(e))return;e.style.position="relative",e.style.overflow="hidden";let o=e.getBoundingClientRect(),u=t.clientX-o.left,l=t.clientY-o.top,a=2*Math.max(e.clientWidth,e.clientHeight),s=document.createElement("div");s.style.width=`${a}px`,s.style.height=`${a}px`,s.style.transition=`all ${r/1e3}s linear`,s.style.position="absolute",s.style.zIndex=1,s.style.left=`${u}px`,s.style.top=`${l}px`,s.style.borderRadius="50%",s.style.transformOrigin="center",s.style.transform="translate(-50%,-50%) scale(0)",s.style.background=i,s.style.userSelect="none",s.style.pointerEvents="none",e.appendChild(s),setTimeout((()=>{s.style.transform="translate(-50%,-50%) scale(2)",s.style.opacity=0}),1),setTimeout((()=>{sg(s)}),r)},e.domScrollIntoView=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return;Rt(t)||(t={});let n={behavior:"smooth"};n=Ry(Ry({},n),t),Qm()&&By(),e.scrollIntoView(n)},e.domScrollTo=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Ko(e))return;Rt(t)||(t={});let n={behavior:"smooth"};n=Uy(Uy({},n),t),Qm()&&By(),e.scrollTo(n)},e.domShowImages=kb,e.domShowImagesDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;return Yu(r)||(r=["https://cdn.jsdelivr.net/npm/viewerjs@1.11.3/dist/viewer.min.css","https://cdn.jsdelivr.net/npm/viewerjs@1.11.3/dist/viewer.min.js"]),await lg(r),kb(e,t,n)},e.domShowInputAndGetFiles=_b,e.domShowInputAndGetFilesU8Arrs=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Ft(t,"multiple");Yl(n)||(n=!1);let r=Ft(t,"entireHierarchy");Yl(r)||(r=!1);let i=Ft(t,"sizelimit");Xt(i)||(i=1e3),i=sa(i);let o=Mh(),u=[];return _b(e,{multiple:n,entireHierarchy:r,sizelimit:i}).then((function(e){let t=Mh(),n=Ft(e,"errs",{}),r=Ft(e,"files",[]);return zt(n)?t.reject(n):t.resolve(r),t})).then((function(e){return ou(e,(function(e){u.push({name:e.name,size:e.size,type:e.type})})),Yh(e)})).then((function(e){ou(e,(function(e,t){u[t].u8a=e})),o.resolve(u)})).catch((function(e){o.reject(e)})),o},e.domTooltip=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,i=null;function o(){null!==r&&r.destroy(!0),e.setAttribute("tippystate",""),clearInterval(i)}let u={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=zt(n)?Db(u,n):u;let l=t;t||(l=e.innerHTML);let a=Xt(e.getAttribute("tippystate"));if(e.setAttribute("tippystate","5"),a)return;l=`<div style="text-align:left;">${l}</div>`;let s=Ux;Ux.default&&(s=Ux.default),r=s(e,Vx(Vx({},n),{},{content:l,allowHTML:!0,onHidden(){o()},onDestroy(){r=null,o()}})),r.show(),i=setInterval((()=>{let t=e.getAttribute("tippystate");Xt(t)?(t=qc(t),t-=1,e.setAttribute("tippystate",t),t<=0&&o()):o()}),1e3)},e.domTriggerEvent=Mb,e.domVirtualCreate=Xx,e.domVirtualCreateQueue=function(){return new function(){let e=Qx(1);return async function(t){return e(Xx,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}}},e.downloadExcelFileFromData=rj,e.downloadExcelFileFromDataDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data",n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;Yu(r)||(r=["https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js"]),await lg(r);let i=rj(e,t,n);return""!==Ft(i,"error","")?Promise.reject(i.error):i},e.downloadFileFromB64=function(e,t){if(!Nl())return void console.log("no window");if(!qt(e))return void console.log("no filename");let n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},e.downloadFileFromBlob=ej,e.downloadFileFromText=function(e,t){let n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];Nl()?qt(e)?Wt(t)?Yl(r)?(n=r?new Blob(["\ufeff",t]):new Blob([t]),ej(e,n)):console.log("withBOM is not a boolean"):console.log("invalid content"):console.log("invalid filename"):console.log("no window")},e.downloadFileFromU8Arr=function(e,t){if(!Nl())return void console.log("no window");if(!qt(e))return void console.log("no filename");if(!Sh(t))return void console.log("no data");ej(e,ij(t))},e.dtmapping=oj,e.dtpick=uj,e.evem=$c,e.execProcess=function(e,t){function n(e){try{return e.toString("utf8")}catch(e){}return""}return new Promise((function(r,i){let u="";o.exec(`${e} ${t}`,((e,t,r)=>{if(e)return i(e);qt(t=n(t))&&(u+=t),qt(r=n(r))&&(u+=r)})).on("close",(e=>{r(u)}))}))},e.execScript=function(e,t){return new Promise((function(n,r){Ut(t)||(t=[t]);let i=o.spawnSync(e,t),u=fp(i.output,(e=>null!==e));u=pu(u,(e=>function(e){try{return e.toString("utf8")}catch(e){}return""}(e)));let l=If(u,""),a=Ft(i,"error.message");a?r(a):n(l)}))},e.f2c=function(e){if(!wp(e))return"";let t=String(e),n=t.substring(t.indexOf("/*")+3,t.lastIndexOf("*/"));return n=th(n),n},e.filepathToTree=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return{};let n=Ft(t,"delimiter");qt(n)||(n="❯");let r=Ft(t,"bindRoot");qt(r)||(r="root");let i=Ft(t,"soryItems"),o=pu(e,((e,t)=>{"folder"!==e.type&&"file"!==e.type&&(e.type="file");let r=(e=>{let t=np(e=(e=e.replace(/\\\\/g,"\\")).replace(/\\/g,"/"),"/");return{ss:t,cfp:If(t,n)}})(e.path);return{ind:t,type:e.type,ss:r.ss,data:Ic(e)}})),u=e=>{let t=_l(e),r=[];for(let i=0;i<t;i++){let t=[];for(let n=0;n<=i;n++)t.push(e[n]);let o=If(t,n);r.push({id:o,name:e[i]})}return r},l=-1,a=[],s={};ou(o,(e=>{let t=[r],i=r,o=_l(e.ss)-1;ou(e.ss,((r,c)=>{let f=c<o||"folder"===e.type;t.push(r);let d=null,p=null;c===o&&(d=e.ind,p=e.data);let h=If(t,n),v=u(t);if(!Zt(s,h)){l++;let e=l;s[h]=f?{_indOri:d,_indNormalize:e,ns:_l(t),ts:Ic(t),pathInfors:v,_type:"folder",type:"array",numOfChilren:-1,id:h,parentId:i,text:r,children:[],data:p}:{_indOri:d,_indNormalize:e,ns:_l(t),ts:Ic(t),pathInfors:v,_type:"file",type:"node",numOfChilren:-1,id:h,parentId:i,text:r,data:p},a.push(Hj(Hj({},Ft(s[h],"data",{})),{},{type:s[h]._type,path:"/"+If(t,"/")}))}i=h}))}));let c=hj(s);if(c=Vp(c,"id"),c=Vp(c,"ns"),wp(i)){let e=[],t=Oj(c,"ns");ou(t,((t,n)=>{let r=Oj(t,"parentId");ou(r,((t,r)=>{let o=i(t,r,n);e=[...e,...o]}))})),c=e}let f=[],d=[];ou(c,(e=>{"folder"===e._type?f.push(e):d.push(e)}));let p=Oj(f,"ns"),h=Oj(d,"ns"),v=cj(pu(f,"ns")),m=cj(pu(d,"ns")),g=null;{let e=[r];g=[{_indOri:null,_indNormalize:null,ns:_l(e),ts:Ic(e),pathInfors:u(e),_type:"folder",type:"array",numOfChilren:-1,id:r,parentId:"",text:r,children:[],data:null}]}let y={};y[r]="0.children";let b={};b[r]="0";for(let e=2;e<=v;e++){let t=p[e];ou(t,(e=>{let t=Ft(y,e.parentId,"");if(!qt(t))throw console.log("kpPathFd",y),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in folder`);let n=Ft(g,t);if(Ut(n)||am(g,t,[]),n=Ft(g,t),!zt(Tj(n,{id:e.id}))){n.push(Hj(Hj({},e),{},{children:[]}));let r=`${t}.${_l(n)-1}`;y[e.id]=`${r}.children`,b[e.id]=r}}))}let w=Ic(g),x={};for(let e=2;e<=m;e++){let t=h[e];ou(t,(e=>{let t=Ft(y,e.parentId,"");if(!qt(t))throw console.log("kpPathFd",y),console.log("v",e,e.parentId),new Error(`invalid parentId[${e.parentId}] in file`);let n=Ft(g,t);if(!Ut(n))throw console.log("treeItems",g),console.log("k",t),console.log("v",e),new Error("無預先建置資料夾");if(!zt(Tj(n,{id:e.id}))){n.push(e);let r=`${t}.${_l(n)-1}`;x[e.id]=r,b[e.id]=r}}))}return{treeItems:g,treeItemsFolder:w,kpPath:b,fpsNormalize:a}},e.files2data=function(e){let t=Mh(),n=pu(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));return Th(e).then((function(e){let r=pu(e,(function(e){return{b64:e}})),i=Ij(n,r);t.resolve(i)})),t},e.flattenToConn=Tm,e.flattenTree=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Ut(e)){if(0===e.length)return[]}else{if(!Rt(e))return[];if(_u(e))return[]}let n=Ft(t,"bindKey",null);qt(n)||(n="id");let r=Ft(t,"bindChildren",null);qt(r)||(r="children");let i=!1;Rt(e)&&(i=!0,e=[e]);let o=[];return Pm(e,((e,t,i)=>{let u=Ft(e,n,null),l=Ft(e,r,null);if(u){let n=function(e){let t=[e[0]];for(let n=1;n<e.length;n++){let i=e[n];t.push(r),t.push(i)}return t}([...i,t]);if(o.push(Nj(Nj({},e),{},{level:(_l(n)-1)/2,nk:n})),l)return l}})),i&&(o=o[0]),o},e.fsCleanFolder=function(e){if(!u.existsSync(e)){let t=Bj(e);return t.error?t.error:{success:"done: "+e}}if(!$j(e))return{error:"input path is not a folder"};try{u.readdirSync(e).forEach((function(t){let n=e+"/"+t;if(u.lstatSync(n).isDirectory())Cj(n);else try{u.unlinkSync(n)}catch(e){}}))}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCopyFolder=function e(t,n){try{u.readdirSync(t).forEach((function(r){let i=t+"/"+r,o=n+"/"+r,a=u.lstatSync(i);if(a.isDirectory())Bj(l.dirname(o)),e(i,o);else if(a.isSymbolicLink()){let e=u.readlinkSync(i);u.symlinkSync(e,o)}else Bj(l.dirname(o)),u.copyFileSync(i,o)}))}catch(e){return{error:e}}return{success:"done: "+n}},e.fsCreateFile=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(u.existsSync(e))return{error:"input path already exists: "+e};if(Fj(e))return{error:"input file is already exists: "+e};try{u.writeFileSync(e,t,n)}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCreateFolder=Bj,e.fsDeleteFile=function(e){if(!u.existsSync(e))return{success:"file does not exist: "+e};if(!Fj(e))return{error:"input path is not a file: "+e};try{u.unlinkSync(e)}catch(e){return{error:e}}return{success:"done: "+e}},e.fsDeleteFolder=Cj,e.fsEvem=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"./_evps",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=$c(),i=Ft(t,"timeDetect");Vc(i)||(i=50),i=qc(i);let o=Ft(t,"timeRewatch");return Vc(o)||(o=1e3),o=qc(o),$j(e)||Bj(e),r.on=function(t,r){let a=l.resolve(e,t),s=Rj({timeDetect:i,timeRewatch:o});s.on(a,(e=>{let t=u.readFileSync(a,"utf8"),n=jh(t);zt(n)&&(t=n),r(t,e)})),n.push({fp:a,evf:s})},r.off=function(t){let r=l.resolve(e,t);ou(n,(e=>{e.fp===r&&e.evf.clear()}))},r.emit=function(t,n){let r=l.resolve(e,t);qt(n)||(n=JSON.stringify(n)),u.writeFileSync(r,n,"utf8")},r.clear=function(){ou(n,(e=>{e.evf.clear()}))},r},e.fsGetFilesInFolder=function(e){let t=zj(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1);return t=fp(t,(e=>Fj(e.path))),t=pu(t,"path"),t},e.fsGetFoldersInFolder=function(e){let t=zj(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1);return t=fp(t,(e=>!Fj(e.path))),t=pu(t,"path"),t},e.fsIsFile=Fj,e.fsIsFolder=$j,e.fsReadText=function(e){return u.readFileSync(e,"utf8")},e.fsRenameFile=function(e,t){if(!Fj(e))return{error:`pahOld[${e}] is not a file`};if(!u.existsSync(t))return{error:`pahNew[${t}] does exist`};try{u.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}},e.fsRenameFolder=function(e,t){if(!$j(e))return{error:`pahOld[${e}] is not a folder`};if(!u.existsSync(t))return{error:`pahNew[${t}] does exist`};try{u.renameSync(e,t)}catch(e){return{error:e}}return{success:"done: "+t}},e.fsTreeFolder=zj,e.fsWatchFile=Rj,e.fsWriteText=function(e,t){u.writeFileSync(e,t,"utf8")},e.genGradientColor=function(e){if(Tu(e))return{};let t;try{t=Qv.toRgba(e)}catch(e){return{}}function n(e,t){return e.a=t,Qv.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,n(t,.4)],[1,n(t,.9)]]}},e.genID=Rm,e.genPm=Mh,e.getBufferSize=Wj,e.getClearPathName=qj,e.getCsvStrFromData=Vj,e.getDataFromExcelFileU8Arr=Gj,e.getDataFromExcelFileU8ArrDyn=async function(e,t,n){Yu(n)||(n=["https://cdn.jsdelivr.net/npm/xlsx@0.18.5/dist/xlsx.full.min.js"]),await lg(n);let r=Gj(e,t);return""!==Ft(r,"error","")?Promise.reject(r.error):r},e.getDirName=function(e){if(!qt(e))return"";let t=qj(e);if(t.isRoot)return t.path;let n=Kj(e=t.path);if(!qt(n))return e;let r=qj(e=eh(e,_l(n)));return r.isRoot,r.path},e.getEnv=function(){let e=Nl(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return e=e||t,{isBrowser:e,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getExcelU8ArrFromData=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!Yu(e)){return{error:"no data"}}qt(t)||(t="data");let n=null,r=nj(e,t);return Zt(r,"error")?r:(n=Jj(r),Zt(n,"error"),n)},e.getExcelU8ArrFromWorkbook=Jj,e.getExcelWorkbookFromData=nj,e.getExcelWorkbookFromWorksheet=tj,e.getExcelWorksheetFromData=Bl,e.getFileAccept=Fg,e.getFileName=Kj,e.getFileTrueName=function(e){if(!qt(e))return"";let t=Kj(e),n=vd(t,".");if(_l(n)<=1)return t;let r="";try{n=yd(n),r=If(n,".")}catch(e){}return r},e.getGlobal=$l,e.getObjSize=function(e){let t=0,n=function e(n){if(null!=n)switch(typeof n){case"number":t+=8;break;case"string":t+=2*n.length;break;case"boolean":t+=4;break;case"object":let r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r||"Array"===r)for(let t in n)n.hasOwnProperty(t)&&e(n[t]);else t+=2*n.toString().length}return t}(e),r=function(e){return e<1024?e+" bytes":e<1048576?(e/1024).toFixed(3)+" KiB":e<1073741824?(e/1048576).toFixed(3)+" MiB":(e/1073741824).toFixed(3)+" GiB"}(n);return{int:n,str:r}},e.getTimeBetween=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",r=oO(n);if(""===r)return[];let i=uO(e,n),o=uO(t,n);if(null===i||null===o)return[];if(e>=t)return[];let u=o.diff(i,n)+1;return pu(iO(u),(function(e){return i.clone().add(e,n).format(r)}))},e.getTimeFromUnit=oO,e.getTimeObject=uO,e.getTimeRange=function(e,t){if(!lO(e))return"無起始時間";if(void 0===t&&(t=e),!lO(t))return"結束時間格式錯誤";let r=n(e,"YYYY-MM-DDTHH:mm:ss"),i=n(t,"YYYY-MM-DDTHH:mm:ss"),o=r.format("YYYY-MM-DD"),u=i.format("YYYY-MM-DD");if(o===u){let n=i.format("HH:mm");if(e===t)return aO(e)+" 至 無";if(e<t)return aO(e)+" 至 "+n;if(e>t)return aO(e)+" 至 "+n+" (起始時間大於結束時間)"}else{if(o<u)return aO(e)+" 至 "+aO(t);if(o>u)return aO(e)+" 至 "+aO(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=sO,e.getUserAgentDyn=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return Yu(t)||(t=["https://cdn.jsdelivr.net/npm/ua-parser-js@1.0.34/dist/ua-parser.min.js"]),await lg(t),sO(e)},e.getltdtkeys=el,e.haskey=Zt,e.html2pic=fO,e.html2picDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Yu(n)||(n=["https://cdn.jsdelivr.net/npm/canvg@4.0.0/lib/umd.js","https://cdn.jsdelivr.net/npm/html2canvas@1.4.1/dist/html2canvas.min.js"]),await lg(n),fO(e,t)},e.html2str=dO,e.html2strDyn=async function(e,t){return Yu(t)||(t=["https://cdn.jsdelivr.net/npm/htmlparser@1.7.7/lib/htmlparser.min.js"]),await lg(t),await dO(e)},e.htmlDecode=function(e){let t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML},e.htmlEncode=Hh,e.importResources=lg,e.interp1=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Ut(e))return{err:"ps is not an array"};if(!yp(t))return{err:"x is not a number"};let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(_l(e)<=0)return[];let n=Ft(t,"keyX");qt(n)||(n="x");let r=Ft(t,"keyY");qt(r)||(r="y");let i=[];return ou(e,(e=>{let t=null,o=null;Ut(e)&&_l(e)>=2?(t=Ft(e,0),o=Ft(e,1)):(t=Ft(e,n,null),o=Ft(e,r,null)),Xt(t)&&Xt(o)&&(t=ea(t),o=ea(o),i.push({x:t,y:o}))})),i}(e,n);if(Ft(r,"err"))return Ft(r,"err");if(0===_l(r))return{err:"ps(length=0) is not an effective array",ps:e,psEff:r};if(1===_l(r))return{err:"ps(length=1) is one point only",ps:e,psEff:r};let i=function(e){let t=!0,n=!0;for(let r=1;r<_l(e);r++){let i=e[r-1],o=e[r];if(t&&i.x>o.x&&(t=!1),n&&i.x<o.x&&(n=!1),i.x===o.x)return{err:`x can not be equal: i=${r}, x=${i.x}`}}return t?vO:n?mO:"no"}(r);if("no"===i)return{err:"psEff is not increasing or decreasing"};i===mO&&(i=vO,r=Qp(r));let o=Ft(n,"mode");"linear"!==o&&"stairs"!==o&&"blocks"!==o&&(o="linear");try{if("linear"===o)return function(e,t){let n=gO(e,t);if(n!==pO)return n;let r=null;for(let n=1;n<_l(e);n++){let i=e[n-1],o=e[n];if(i.x<=t&&t<=o.x){r=((t-i.x)*o.y+(o.x-t)*i.y)/(o.x-i.x);break}}return null===r?{err:hO}:r}(r,t);if("blocks"===o)return function(e,t){let n=gO(e,t);if(n!==pO)return n;let r=null;for(let n=1;n<_l(e);n++){let i=e[n-1],o=e[n],u=i.x,l=o.x;if(u<=t&&t<=l){r=o.y;break}}return null===r?{err:hO}:r}(r,t);if("stairs"===o)return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Ft(n,"xMin");if(yp(r)){if(r>e[0].x)return{err:`xMin=${r} > ps[0].x=${e[0].x}`};r===e[0].x||(e=[{x:r,y:e[0].y},...e])}let i=Ft(n,"xMax");if(yp(i)){if(i<e[_l(e)-1].x)return{err:`xMax=${i} < ps[size(ps)-1].x=${e[_l(e)-1].x}`};if(i===e[_l(e)-1].x);else{let t={x:i,y:e[_l(e)-1].y};e=[...e,t]}}let o=gO(e,t);if(o!==pO)return o;let u=null;for(let n=0;n<_l(e);n++){let r=Ft(e,n-1,null),i=Ft(e,n,null),o=Ft(e,n+1,null),l=i.x;r&&(l=(r.x+i.x)/2);let a=i.x;if(o&&(a=(o.x+i.x)/2),l<=t&&t<=a){u=i.y;break}}return null===u?{err:hO}:u}(r,t,n)}catch(e){return{err:e.toString()}}},e.isDev=function(){return!!location&&kh(location.href,"localhost")},e.isEle=Ko,e.isEleExistByID=function(e){return!!qt(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!qt(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isIE=Qm,e.isNarrow=function(e){if(!Nl())return!1;let t=window.innerWidth>0&&window.innerWidth<=1024,n=!1;if(e){let t=Ft(e,"clientWidth",0);n=t>0&&t<=700}return t||n},e.isStrHasCapital=xO,e.isStrHasLowerCase=jO,e.isStrHasNumber=OO,e.isUserIdentify=function(e){let t=Mh();if(!qt(e))return t.reject("身份證字號非有效字串"),t;if(10!==e.length)return t.reject("身份證字號長度非10位"),t;if(isNaN(e.substr(1,9))||!/^[A-Z]$/.test(e.substr(0,1)))return t.reject("身份證格式錯誤,字首需大寫英文"),t;e="ABCDEFGHJKLMNPQRSTUVXYWZIO".indexOf(e.substring(0,1))+10+""+e.substr(1,9);let n=parseInt(e.substr(0,1))+9*parseInt(e.substr(1,1))+8*parseInt(e.substr(2,1))+7*parseInt(e.substr(3,1))+6*parseInt(e.substr(4,1))+5*parseInt(e.substr(5,1))+4*parseInt(e.substr(6,1))+3*parseInt(e.substr(7,1))+2*parseInt(e.substr(8,1))+parseInt(e.substr(9,1)),r=parseInt(e.substr(10,1));return n%10!=0&&10-n%10!==r?(t.reject("非有效身份證"),t):(t.resolve(),t)},e.isUserName=function(e){let t=Mh();return qt(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPW=function(e){let t=Mh();if(!Wt(e))return t.reject("密碼非字串"),t;let n=[];return e.length<8&&n.push("長度須大於8個字元"),e.length>30&&n.push("長度須小於30個字元"),xO(e)&&jO(e)&&OO(e)||n.push("須包含大寫、小寫英文與數字各1個字元"),kh(e,["<",">"])&&n.push("不能使用特殊符號(<,>)"),kh(e,["select","insert","update","delete"])&&n.push("不能使用指令(select,insert,update,delete)"),n.length>0?t.reject(If(n,",")):t.resolve(),t},e.isWindow=Nl,e.isab=v,e.isarr=Ut,e.isarr0=Pu,e.isblob=Lh,e.isbol=Yl,e.isday=$m,e.isearr=Yu,e.iseobj=zt,e.iser=Tu,e.isernot=Bg,e.isestr=qt,e.isfun=wp,e.isint=ca,e.ismonth=Fl,e.isn0int=yO,e.isn0num=bO,e.isnbr=Vt,e.isnint=Kx,e.isnnum=function(e){return!!Xt(e)&&sa(e)<0},e.isnull=Mu,e.isnum=Xt,e.isobj=Rt,e.isobj0=_u,e.isp0int=_f,e.isp0num=wO,e.ispint=Vc,e.ispm=Rh,e.ispnum=dp,e.isstr=Wt,e.isstr0=Au,e.istime=lO,e.istimeTZ=MO,e.istimems=SO,e.istimemsTZ=kO,e.isu16arr=Uj,e.isu8arr=Sh,e.isundefined=ku,e.j2o=jh,e.keysmat2ltdt=_O,e.log=function(){let e=null;return{init:function(t){if(!wp(t))throw new Error("loggerFun is not a function");e=t},log:function(t,n,r){if(null===e)throw new Error("no logger: need to construct by init");let i=AO(),o={id:Rm(),from:t,level:n,msg:Hl(r),time:i};return e(o)}}},e.ltdt2vrtsable=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!Yu(e))return[];if(!Ut(t))return[];let n=!1;if(ou(e,(function(e){zt(e)||(n=!0)})),n)return[];let r=el(e),i=[];ou(e,(function(e){let t={};ou(r,(function(n){t[n]={value:e[n].value,style:e[n].style,rowspan:1}})),i.push(t)}));let o=Qp(i),u=_l(o);return ou(r,(function(e){if(bp(e,t)){let t=af(0,u,0),n=af(0,u,0),r=af(1,u+1,0);ou(o,(function(i,u){if(u>0){let i=o[u-1][e].value,l=o[u][e].value;vp(i,l)&&(t[u-1]=1,t[u]=1,r[u]=r[u-1]+1),1===t[u-1]&&1===t[u]&&(n[u-1]=0,n[u]=1)}})),ou(o,(function(i,u){1===t[u]&&(1===n[u]?o[u][e].rowspan=r[u]:o[u][e].rowspan=null)}))}})),Qp(o)},e.ltdtDiff=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!Ut(e))return{};if(!Ut(t))return{};if(0===_l(e)&&0===_l(t))return{};let r=Ft(n,"empty");qt(r)||(r="∗empty∗");let i=el(e),o=el(t),u=HO(i,o),l={};ou(u,((e,t)=>{l[t]=e}));let a=zd(Il(e,u,{empty:r}),Il(t,u,{empty:r}),LO(LO({},n),{},{mode:"matrix"}));return a.dfs=pu(a.dfs,(e=>{let t={};ou(e,(e=>{e.k=l[e.k],t[e.k]=e}));let n={};return ou(u,(e=>{n[e]=t[e]})),n})),a},e.ltdtDiffByKey=function(e,t,n){let r={infor:{},del:[],same:[],diff:[],add:[]};if(!qt(n))return console.log("invalid key"),r;Ut(e)||(e=[e]),Ut(t)||(t=[t]);let i={},o=[],u=[],l=[];ou(e,(function(e){if(Zt(e,n)){let r={[n]:e[n]},a=Tj(t,r);Tu(a)?(o.push(e),i[e[n]]="del"):vp(e,a)?(l.push(a),i[a[n]]="same"):(u.push(a),i[a[n]]="diff")}}));let a=[];return ou(t,(function(t){if(Zt(t,n)){let r={[n]:t[n]};Tu(Tj(e,r))&&(a.push(t),i[t[n]]="add")}})),{infor:i,del:o,same:l,diff:u,add:a}},e.ltdtkeys2mat=Il,e.ltdtkeysheads2mat=Ll,e.ltdtmapping=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return Yu(e)&&Yu(t)?pu(e,(e=>oj(e,t,n))):[]},e.ltdtmerge=Ij,e.ltdtpick=function(e,t){return Yu(e)&&Yu(t)?pu(e,(e=>uj(e,t))):[]},e.ltdtpull=function(e,t,n){return Ut(e)&&Ut(t)&&qt(n)&&No(e,(e=>Rt(e)))?0===t.length?e:No(t,(e=>Rt(e)))?GO(e,t,n):[]:[]},e.mat2ltdt=function(e){if(!Yu(e))return[];if(e.length<=1)return[];let t=!1;return ou(e,(function(e){Yu(e)||(t=!0)})),t?[]:_O(Nd(e)[0],JO(e))},e.matConcat=function(e,t){if(!Ut(e))return[];if(!Ut(t))return[];if(0===_l(e)&&0===_l(t))return[];let n=_l(e),r=_l(Ft(e,0,[])),i=_l(t),o=_l(Ft(t,0,[])),u=[],l=Math.max(n,i);for(let n=0;n<l;n++){let i=[],l=-1;for(let t=0;t<r;t++){l++;let r=Ft(e,`${n}.${t}`,null);i[l]=r}for(let e=0;e<o;e++){l++;let r=Ft(t,`${n}.${e}`,null);i[l]=r}u[n]=i}return u},e.matDiff=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Ut(e)&&Ut(t)?0===_l(e)&&0===_l(t)?{}:zd(e,t,eS(eS({},n),{},{mode:"matrix"})):{}},e.matat=function(e,t,n){return Yu(e)?pu(e,(function(e){return Af(e,t,n)})):[]},e.now2str=function(){return n().format("YYYY-MM-DDTHH:mm:ssZ")},e.now2strp=function(){return n().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){return n().format("YYYY-MM-DD")},e.nowms2str=AO,e.nowms2strp=function(){return n().format("YYYYMMDDHHmmssSSS")},e.o2j=Hl,e.obj2b64=function(e){let t="";try{t=tS(Hl(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":qt(t)?nS(Hl({data:e}),t,!0):""},e.obj2str=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(ku(e))return"";if(Wt(t))t=[t];else if(!Ut(t))return"";let n="";try{n=JSON.stringify(e,(function(e,n){return t.indexOf("Uint8Array")>=0&&(n=cS.u8arr2b64(n)),t.indexOf("Uint16Array")>=0&&(n=cS.u16arr2b64(n)),n}))}catch(e){n=""}return n},e.obj2stru8arr=mS,e.obj2u8arr=function(e){let t=[],n=[];if(!Yu(e)&&!zt(e))return null;let r=[],i=[];function o(e){r.push(Wj(e)),i.push(e)}try{let u=mS(e);o(gS(u.results)),ou(u.binarys,(e=>{o(e)}));let l=r,a=gS(JSON.stringify(l)),s=new Uint8Array(8);Fh(Wj(a),s),t.push(s),t.push(a),ou(i,(e=>{t.push(e)})),ou(t,(e=>{n=function(e,t){let n=Wj(e),r=Wj(t),i=new Uint8Array(n+r);return i.set(new Uint8Array(e),0),i.set(new Uint8Array(t),n),i}(n,e)}))}catch(e){return null}return n},e.objSortBy=yS,e.objSortByKeys=function(e,t){if(!zt(e))return{};if(!Yu(t))return{};let n={};return ou(t,((e,t)=>{n[e]=t})),yS(e,((e,t)=>Ft(n,t,0)))},e.ocr=bS,e.ocrDyn=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return Yu(n)||(n=["https://cdn.jsdelivr.net/npm/tesseract.js@4.0.3/dist/tesseract.min.js"]),await lg(n),await bS(e,t)},e.oo=function(e){if(void 0!==e)return jh(Hl(e))},e.openLink=function(e){if(!qt(e))return;let t=document.createElement("a");t.href=e,t.target="_blank",document.body.appendChild(t),t.click(),document.body.removeChild(t)},e.pb642obj=function(e,t){return qt(e)&&qt(t)?jh(La(e,t,!0)).data:""},e.pm2resolve=Gx,e.pmChain=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Ut(e)){let e=Mh();return e.reject("pms is not an array"),e}return e.reduce(((e,t)=>e.then(t)),Promise.resolve(t))},e.pmConvertResolve=Zx,e.pmHook=wS,e.pmHookReject=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};return wp(e)?(wp(t)||(t=()=>{}),wS(e,(e=>{if("afterCatch"===e.mode)return t(e.data)}))):null},e.pmIni=function(){return Promise.resolve()},e.pmInvResolve=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Rh(e))throw new Error("pm is not a promise");let n=Ft(t,"thenExtractData");Yl(n)||(n=!1);let r=Mh();return e.then((e=>{n&&(e=Ft(e,"data"));let t=Ft(e,"state",""),i=Ft(e,"msg",{});"success"===t?r.resolve(i):"cancelled"===t?r.reject({reason:"cancelled"}):r.reject(i)})).catch((e=>{r.reject(e)})),r},e.pmMap=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r={},i=!1,o=Mh();if(!Ut(e)&&!Rt(e))return o.reject("rs is not an array or object"),o;let u=!1;if(Rt(e)){u=!0;let t=[];ou(e,((e,n)=>{t.push({k:n,v:e})})),e=t}let l=Jx(n);return l.on("message",(function(n){if(i)return;let a,s=l.get();if(wp(t)){let e=s.key,n=s.value;u&&(e=s.value.k,n=s.value.v),a=t(n,e)}else a=s.value;a.then((e=>{r[s.key]=e})).catch((e=>{i=!0,l.clear(),o.reject(e)})).finally((()=>{l.cb(),_l(r)===e.length&&o.resolve(hj(r))}))})),ou(e,((e,t)=>{l.push({key:t,value:e})})),o},e.pmQueue=Qx,e.pmSeries=rg,e.pmThrottle=function(){let e=$c(),t=[],n=null,r=!1;return function(i){let o=Mh();if(!wp(i))return void console.log("func is not a function");let u=Rm();for(var l=arguments.length,a=new Array(l>1?l-1:0),s=1;s<l;s++)a[s-1]=arguments[s];return t.push({id:u,func:i,input:a}),null===n&&(n=setInterval((async()=>{if(r)return;r=!0;let i=t.pop();for(let n=0;n<t.length;n++){let r=t[n].id,i={state:"cancelled"};e.emit(r,i)}if(t=[],i){let t,n=i.id;t=wp(i.func)?await Gx(i.func)(...i.input):{state:"error",msg:"fun is not a function"},e.emit(n,t)}r=!1,r||0!==t.length||(clearInterval(n),n=null)}),10)),e.once(u,(e=>{"success"===e.state?o.resolve(e.msg):"cancelled"===e.state?o.reject({reason:"cancelled"}):o.reject(e.msg)})),o}},e.pseudoRandom=OS,e.pseudoRandomIntRange=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start1";if(ca(e)||(e=0),e=qc(e),ca(t)||(t=100),t=qc(t),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);let r=OS(n)*(t-e+1)+e;return r=Math.ceil(r),r},e.pseudoRandomRange=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"start1";if(Xt(e)||(e=0),e=sa(e),Xt(t)||(t=1),t=sa(t),e>t)throw new Error(`vstart[${e}] > vend[${t}]`);return OS(n)*(t-e)+e},e.queue=Jx,e.rang=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!Xt(e))return[];if(e=sa(e),!Xt(t))return[];t=sa(t),Vc(n)||(n=2),n=qc(n);let r=(t-e)/n,i=e,o=[];for(let e=0;e<=n;e++)o.push(i),i+=r;return o},e.rep=function(e,t){return qt(e)&&_f(t)?_S(e,t):""},e.repObj=function(e,t){return Tu(e)?[]:Vc(t)?iO(t,gf(e)):[]},e.replace=Zh,e.replaceObj=function(e,t){if(!qt(e))return"";if(!zt(t))return"";let n=!1;return ou(t,(function(e,t){Wt(e)||(n=!0)})),n?"":(ou(t,(function(t,n){e=Zh(e,n,t)})),e)},e.replacePlus=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4?arguments[4]:void 0;if(!qt(e)||!qt(t)||!qt(n))return"";if(!Wt(i))return"";let o="[\\s\\S]*";qt(r)&&(o="[^"+r+"]*");let u=new RegExp(t+o+n,"g");return e.replace(u,i)},e.round=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};_f(t)||(t=0),t=qc(t);let r=Ft(n,"rounding","");if("ROUND_HALF_UP"!==r&&"ROUND_HALF_EVEN"!==r&&(r="ROUND_HALF_UP"),!Xt(e))return"";e=sa(e);let i=dD.clone();return i.set({rounding:dD[r]}),new i(e).toDecimalPlaces(t).toNumber()},e.secd=function(e){return Xt(e)?1/Hm(e=sa(e)):null},e.sep=np,e.sepInt=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!ca(e))return[];if(!_f(t))return[];if(!Yl(n))return[];let r=pD(e/t),i=e-r*t,o=[];for(let e=1;e<=t;e++){let t=r;e<=i&&(t=r+1),o.push(t)}return n&&(o=Qp(o)),o},e.sind=Nm,e.split=tp,e.str2aes=nS,e.str2b64=tS,e.str2hint=xS,e.str2md5=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!qt(e))return"";if(!Yl(t))return"";let n=hD(e),r="";return r=t?n.toString(ya):n.toString(Ia),r},e.str2obj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(Wt(t))t=[t];else if(!Ut(t))return{};let n={};try{n=JSON.parse(e,(function(e,n){return t.indexOf("Uint8Array")>=0&&(n=cS.b642u8arr(n)),t.indexOf("Uint16Array")>=0&&(n=cS.b642u16arr(n)),n}))}catch(e){n={}}return n},e.str2sha512=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!qt(e))return"";if(!Yl(t))return"";let n=yD(e),r="";return r=t?n.toString(ya):n.toString(Ia),r},e.str2u8arr=gS,e.strCompare=bD,e.strDiff=$d,e.strFindFuzz=SD,e.strFindFuzzDyn=async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0;return Yu(r)||(r=["https://cdn.jsdelivr.net/npm/fuse.js@6.6.2/dist/fuse.min.js"]),await lg(r),SD(e,t,n)},e.strFindSimilar=function(e,t){let n="";if(qt(e)||Xt(e))n=Xp(e);else{if(!Yu(e))return{};n=If(e,"")}return Xt(t)&&(t=Xp(t)),qt(t)&&(t=[t]),Yu(t)?function(e,t){let n=[],r=0;for(let i=0;i<t.length;i++){let o=t[i],u=bD(e,o);n.push({target:o,rating:u}),u>n[r].rating&&(r=i)}return{ratings:n,bestMatch:n[r],bestMatchIndex:r}}(n,t=pu(t,(function(e){return Xp(e)}))):{}},e.strdelleft=op,e.strdelright=eh,e.strleft=rp,e.strmid=Gh,e.strright=ip,e.stru8arr2obj=ED,e.tand=Im,e.time2day=function(e){return lO(e)?n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return lO(e)?n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=aO,e.timeTZ2day=function(e){return MO(e)?(e=DO.delTZ(e),n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return MO(e)?(e=MD(e),t=MD(t),DD(e,t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return MO(e)?(e=DO.delTZ(e),n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return MO(e)?(e=DO.delTZ(e),n(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return MO(e)?(e=_D(e),t=_D(t),kD(e,t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return SO(e)?n(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return SO(e)?n(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return SO(e)?n(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return SO(e)?n(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return kO(e)?(e=DO.delTZ(e),n(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=DD,e.timemsTZ2hour=function(e){return kO(e)?(e=DO.delTZ(e),n(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return kO(e)?(e=DO.delTZ(e),n(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=kD,e.timemsTZ2time=function(e){return kO(e)?(e=DO.delTZ(e),n(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=Pm,e.treeToFilepath=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Yu(e))return[];let n=Ft(t,"delimiter");qt(n)||(n="/");let r=Ft(t,"bindRoot");qt(r)||(r="root");let i=[];return Pm(e,((e,t,o)=>{let u=Ft(e,"_type","");if("folder"!==u&&"file"!==u)return e;let l=Ft(e,"pathInfors",[]),a=pu(l,"name"),s=Ft(a,0,"")===r;if(1===_l(a)&&s)return e;s&&(a=Kp(a));let c={type:u,path:n+If(a,n)};return i.push(c),e}),{force:!0}),i},e.trim=th,e.u16arr2b64=lS,e.u16arr2u8arr=uS,e.u8arr2ab=function(e){return Sh(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=oS,e.u8arr2blob=ij,e.u8arr2bs=function(e){if(!Sh(e))return"";let t=e.length,n="";for(let r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},e.u8arr2obj=function(e){let t=null;if(!Sh(e))return null;try{let n=8,r=e.slice(0,n),i=e.slice(n,Wj(e)),o=Ch(r),u=i.slice(0,o),l=i.slice(o,Wj(i)),a=AD(u),s=function(e,t){let n=0,r=0,i=[];return ou(t,(t=>{r=n+t;let o=e.slice(n,r);n=r,i.push(o)})),i}(l,JSON.parse(a));t=ED({results:AD(s.shift()),binarys:s})}catch(e){}return t},e.u8arr2str=AD,e.u8arr2u16arr=Eh,e.urlParse=function(e){if(!qt(e))return{};if(e=vd(e,"?"),!qt(e=Ft(e,"[1]")))return{};let t=vd(e,"&");return t=pu(t,(function(e){return vd(e,"=")})),t=PD(t),t},e.verifyValue=function(e,t){let n=!1,r="";if("isstr"===t)Wt(e)||(n=!0,r="需要為字串",e="");else if("isnum"===t)Xt(e)||(n=!0,r="需要為數字",e=0);else if("isp0num"===t)wO(e)||(n=!0,r="需要為含0的正浮點數",e=0);else if("isn0num"===t)bO(e)||(n=!0,r="需要為含0的負浮點數",e=0);else if("isint"===t)ca(e)||(n=!0,r="需要為整數",e=0);else if("ispint"===t)Vc(e)||(n=!0,r="需要為不含0正整數",e=0);else if("isp0int"===t)_f(e)||(n=!0,r="需要為含0正整數",e=0);else if("isnint"===t)Kx(e)||(n=!0,r="需要為不含0負整數",e=0);else if("isn0int"===t)yO(e)||(n=!0,r="需要為含0負整數",e=0);else if(wp(t)){e=t(e)}else"any"===t?Xt(e)||Wt(e)||(n=!0,r="需要為字串或數字",e=""):(n=!0,r="需要指定驗證類型",e=null);return{value:e,err:n,errmsg:r}},e.waitFun=zh}));
15
15
  //# sourceMappingURL=wsemi.umd.js.map