wsemi 1.6.60 → 1.6.61
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.
- package/README.md +1 -1
- package/dist/wsemi.umd.js +2 -2
- package/dist/wsemi.umd.js.map +1 -1
- package/docs/-_class.mjs.html +2 -2
- package/docs/ab2blob.mjs.html +2 -2
- package/docs/ab2u8arr.mjs.html +2 -2
- package/docs/addMonth.mjs.html +2 -2
- package/docs/aes2str.mjs.html +2 -2
- package/docs/alive.mjs.html +2 -2
- package/docs/arr2dt.mjs.html +2 -2
- package/docs/arrAccum.mjs.html +2 -2
- package/docs/arrAdd.mjs.html +2 -2
- package/docs/arrAt.mjs.html +2 -2
- package/docs/arrFilterByKeywords.mjs.html +2 -2
- package/docs/arrFilterByNum.mjs.html +2 -2
- package/docs/arrFilterByPnum.mjs.html +2 -2
- package/docs/arrFilterByPnumAndToLog.mjs.html +2 -2
- package/docs/arrFind.mjs.html +2 -2
- package/docs/arrGroupByMaxmin.mjs.html +2 -2
- package/docs/arrHas.mjs.html +2 -2
- package/docs/arrInsert.mjs.html +2 -2
- package/docs/arrLookupByMaxmin.mjs.html +2 -2
- package/docs/arrMulti.mjs.html +2 -2
- package/docs/arrNorm.mjs.html +2 -2
- package/docs/arrProduct.mjs.html +2 -2
- package/docs/arrSep.mjs.html +2 -2
- package/docs/arrSort.mjs.html +2 -2
- package/docs/asind.mjs.html +2 -2
- package/docs/atan2d.mjs.html +2 -2
- package/docs/atand.mjs.html +2 -2
- package/docs/attstr.mjs.html +2 -2
- package/docs/b642obj.mjs.html +2 -2
- package/docs/b642str.mjs.html +2 -2
- package/docs/b642u16arr.mjs.html +2 -2
- package/docs/b642u8arr.mjs.html +2 -2
- package/docs/binstr.mjs.html +2 -2
- package/docs/blob2ab.mjs.html +2 -2
- package/docs/blob2b64.mjs.html +2 -2
- package/docs/blob2str.mjs.html +2 -2
- package/docs/blob2u8arr.mjs.html +2 -2
- package/docs/blobs2b64s.mjs.html +2 -2
- package/docs/blobs2u8arrs.mjs.html +2 -2
- package/docs/bodyLog.mjs.html +2 -2
- package/docs/browserView.mjs.html +2 -2
- package/docs/browserViewFromBlob.mjs.html +2 -2
- package/docs/browserViewFromText.mjs.html +2 -2
- package/docs/browserViewFromU8arr.mjs.html +2 -2
- package/docs/bs2u8arr.mjs.html +2 -2
- package/docs/bufRead.mjs.html +2 -2
- package/docs/bufReadDbl.mjs.html +2 -2
- package/docs/bufWrite.mjs.html +2 -2
- package/docs/bufWriteDbl.mjs.html +2 -2
- package/docs/cache.mjs.html +2 -2
- package/docs/cbol.mjs.html +2 -2
- package/docs/cdbl.mjs.html +2 -2
- package/docs/cfilesize.mjs.html +2 -2
- package/docs/cfinancial.mjs.html +2 -2
- package/docs/cint.mjs.html +2 -2
- package/docs/clearXSS.mjs.html +2 -2
- package/docs/color.mjs.html +2 -2
- package/docs/composeToTree.mjs.html +2 -2
- package/docs/convertToTree.mjs.html +2 -2
- package/docs/copyStrToClipboard.mjs.html +2 -2
- package/docs/cosd.mjs.html +2 -2
- package/docs/cotd.mjs.html +2 -2
- package/docs/cscd.mjs.html +2 -2
- package/docs/cstr.mjs.html +2 -2
- package/docs/day2cht.mjs.html +2 -2
- package/docs/debounce.mjs.html +2 -2
- package/docs/delay.mjs.html +2 -2
- package/docs/dig.mjs.html +2 -2
- package/docs/digExp.mjs.html +2 -2
- package/docs/domAlert.mjs.html +2 -2
- package/docs/domAppend.mjs.html +2 -2
- package/docs/domCancelEvent.mjs.html +2 -2
- package/docs/domCompareText.mjs.html +2 -2
- package/docs/domCompareTextDyn.mjs.html +2 -2
- package/docs/domConvertToPic.mjs.html +2 -2
- package/docs/domConvertToPicDyn.mjs.html +2 -2
- package/docs/domDetect.mjs.html +2 -2
- package/docs/domDrag.mjs.html +2 -2
- package/docs/domDragBarAndScroll.mjs.html +2 -2
- package/docs/domDragPreview.mjs.html +2 -2
- package/docs/domDropFiles.mjs.html +2 -2
- package/docs/domFadeIn.mjs.html +2 -2
- package/docs/domFadeOut.mjs.html +2 -2
- package/docs/domFind.mjs.html +2 -2
- package/docs/domFinds.mjs.html +2 -2
- package/docs/domGetAttr.mjs.html +2 -2
- package/docs/domGetBoudRect.mjs.html +2 -2
- package/docs/domGetBoudRectRefSelf.mjs.html +2 -2
- package/docs/domGetFileAccept.mjs.html +2 -2
- package/docs/domGetFiles.mjs.html +2 -2
- package/docs/domGetPointFromEvent.mjs.html +2 -2
- package/docs/domGetScrollableParent.mjs.html +2 -2
- package/docs/domIsClientXYIn.mjs.html +2 -2
- package/docs/domIsFocused.mjs.html +2 -2
- package/docs/domIsVisible.mjs.html +2 -2
- package/docs/domPrepend.mjs.html +2 -2
- package/docs/domRemove.mjs.html +2 -2
- package/docs/domRenderMarkdownMind.mjs.html +2 -2
- package/docs/domRenderMarkdownMindDyn.mjs.html +2 -2
- package/docs/domRipple.mjs.html +2 -2
- package/docs/domScrollIntoView.mjs.html +2 -2
- package/docs/domScrollTo.mjs.html +2 -2
- package/docs/domShowImages.mjs.html +2 -2
- package/docs/domShowImagesDyn.mjs.html +2 -2
- package/docs/domShowInputAndGetFiles.mjs.html +2 -2
- package/docs/domShowInputAndGetFilesU8Arrs.mjs.html +2 -2
- package/docs/domTooltip.mjs.html +2 -2
- package/docs/domTriggerEvent.mjs.html +2 -2
- package/docs/domVirtualCreate.mjs.html +2 -2
- package/docs/domVirtualCreateQueue.mjs.html +2 -2
- package/docs/downloadExcelFileFromData.mjs.html +2 -2
- package/docs/downloadExcelFileFromDataDyn.mjs.html +2 -2
- package/docs/downloadFileFromB64.mjs.html +2 -2
- package/docs/downloadFileFromBlob.mjs.html +2 -2
- package/docs/downloadFileFromText.mjs.html +2 -2
- package/docs/downloadFileFromU8Arr.mjs.html +2 -2
- package/docs/dtmapping.mjs.html +2 -2
- package/docs/dtpick.mjs.html +2 -2
- package/docs/evem.mjs.html +2 -2
- package/docs/examples/ex-blob2b64.html +1 -1
- package/docs/examples/ex-clearXSS.html +1 -1
- package/docs/examples/ex-colorConverter.html +1 -1
- package/docs/examples/ex-cryptojs.html +1 -1
- package/docs/examples/ex-dayjs.html +1 -1
- package/docs/examples/ex-domCompareText.html +1 -1
- package/docs/examples/ex-domCompareTextDyn.html +1 -1
- package/docs/examples/ex-domConvertToPic.html +1 -1
- package/docs/examples/ex-domConvertToPicDyn.html +1 -1
- package/docs/examples/ex-domDrag.html +1 -1
- package/docs/examples/ex-domDropFiles.html +1 -1
- package/docs/examples/ex-domIsVisible.html +1 -1
- package/docs/examples/ex-domRenderMarkdownMind.html +1 -1
- package/docs/examples/ex-domRenderMarkdownMindDyn.html +1 -1
- package/docs/examples/ex-domRipple.html +1 -1
- package/docs/examples/ex-domScrollIntoView.html +1 -1
- package/docs/examples/ex-domScrollTo.html +1 -1
- package/docs/examples/ex-domShowImages.html +1 -1
- package/docs/examples/ex-domShowImagesDyn.html +1 -1
- package/docs/examples/ex-domTooltip.html +1 -1
- package/docs/examples/ex-getUserAgent.html +1 -1
- package/docs/examples/ex-getUserAgentDyn.html +1 -1
- package/docs/examples/ex-html2pic.html +1 -1
- package/docs/examples/ex-html2picDyn.html +1 -1
- package/docs/examples/ex-html2str.html +1 -1
- package/docs/examples/ex-html2strDyn.html +1 -1
- package/docs/examples/ex-lodash.html +1 -1
- package/docs/examples/ex-obj2u8arr-u8arr2obj.html +1 -1
- package/docs/examples/ex-ocr.html +1 -1
- package/docs/examples/ex-ocrDyn.html +1 -1
- package/docs/examples/ex-openLink.html +1 -1
- package/docs/examples/ex-strFindFuzz.html +1 -1
- package/docs/examples/ex-strFindFuzzDyn.html +1 -1
- package/docs/examples/ex-timeTZ2expire-timeTZ2past.html +1 -1
- package/docs/examples/ex-xlsx.html +1 -1
- package/docs/examples/ex-xlsxDyn.html +1 -1
- package/docs/execProcess.mjs.html +161 -0
- package/docs/execScript.mjs.html +7 -7
- package/docs/f2c.mjs.html +2 -2
- package/docs/files2data.mjs.html +2 -2
- package/docs/flattenToConn.mjs.html +2 -2
- package/docs/flattenTree.mjs.html +2 -2
- package/docs/fsCleanFolder.mjs.html +2 -2
- package/docs/fsCopyFolder.mjs.html +2 -2
- package/docs/fsCreateFolder.mjs.html +2 -2
- package/docs/fsDeleteFolder.mjs.html +2 -2
- package/docs/fsEvem.mjs.html +2 -2
- package/docs/fsGetFilesInFolder.mjs.html +2 -2
- package/docs/fsGetFoldersInFolder.mjs.html +2 -2
- package/docs/fsIsFile.mjs.html +2 -2
- package/docs/fsIsFolder.mjs.html +2 -2
- package/docs/fsReadText.mjs.html +2 -2
- package/docs/fsTreeFolder.mjs.html +2 -2
- package/docs/fsWatchFile.mjs.html +2 -2
- package/docs/fsWriteText.mjs.html +2 -2
- package/docs/genGradientColor.mjs.html +2 -2
- package/docs/genID.mjs.html +2 -2
- package/docs/genPm.mjs.html +2 -2
- package/docs/getBufferSize.mjs.html +2 -2
- package/docs/getClearPathName.mjs.html +2 -2
- package/docs/getCsvStrFromData.mjs.html +2 -2
- package/docs/getDataFromExcelFileU8Arr.mjs.html +2 -2
- package/docs/getDataFromExcelFileU8ArrDyn.mjs.html +2 -2
- package/docs/getDirName.mjs.html +2 -2
- package/docs/getEnv.mjs.html +2 -2
- package/docs/getExcelU8ArrFromData.mjs.html +2 -2
- package/docs/getExcelWorkbookFromData.mjs.html +2 -2
- package/docs/getExcelWorkbookFromWorksheet.mjs.html +2 -2
- package/docs/getFileAccept.mjs.html +2 -2
- package/docs/getFileName.mjs.html +2 -2
- package/docs/getFileTrueName.mjs.html +2 -2
- package/docs/getGlobal.mjs.html +2 -2
- package/docs/getObjSize.mjs.html +2 -2
- package/docs/getTimeBetween.mjs.html +2 -2
- package/docs/getTimeFromUnit.mjs.html +2 -2
- package/docs/getTimeObject.mjs.html +2 -2
- package/docs/getTimeRange.mjs.html +2 -2
- package/docs/getUserAgent.mjs.html +2 -2
- package/docs/getUserAgentDyn.mjs.html +2 -2
- package/docs/getltdtkeys.mjs.html +2 -2
- package/docs/haskey.mjs.html +2 -2
- package/docs/html2pic.mjs.html +2 -2
- package/docs/html2picDyn.mjs.html +2 -2
- package/docs/html2str.mjs.html +2 -2
- package/docs/html2strDyn.mjs.html +2 -2
- package/docs/htmlDecode.mjs.html +2 -2
- package/docs/htmlEncode.mjs.html +2 -2
- package/docs/importResources.mjs.html +2 -2
- package/docs/index.html +2 -2
- package/docs/interp1.mjs.html +2 -2
- package/docs/isDev.mjs.html +2 -2
- package/docs/isEle.mjs.html +2 -2
- package/docs/isEleExistByID.mjs.html +2 -2
- package/docs/isEmail.mjs.html +2 -2
- package/docs/isIE.mjs.html +2 -2
- package/docs/isNarrow.mjs.html +2 -2
- package/docs/isStrHasCapital.mjs.html +2 -2
- package/docs/isStrHasLowerCase.mjs.html +2 -2
- package/docs/isStrHasNumber.mjs.html +2 -2
- package/docs/isUserIdentify.mjs.html +2 -2
- package/docs/isUserName.mjs.html +2 -2
- package/docs/isUserPW.mjs.html +2 -2
- package/docs/isWindow.mjs.html +2 -2
- package/docs/isab.mjs.html +2 -2
- package/docs/isarr.mjs.html +2 -2
- package/docs/isarr0.mjs.html +2 -2
- package/docs/isblob.mjs.html +2 -2
- package/docs/isbol.mjs.html +2 -2
- package/docs/isday.mjs.html +2 -2
- package/docs/isearr.mjs.html +2 -2
- package/docs/iseobj.mjs.html +2 -2
- package/docs/iser.mjs.html +2 -2
- package/docs/isernot.mjs.html +2 -2
- package/docs/isestr.mjs.html +2 -2
- package/docs/isfun.mjs.html +2 -2
- package/docs/isint.mjs.html +2 -2
- package/docs/ismonth.mjs.html +2 -2
- package/docs/isn0int.mjs.html +2 -2
- package/docs/isn0num.mjs.html +2 -2
- package/docs/isnbr.mjs.html +2 -2
- package/docs/isnint.mjs.html +2 -2
- package/docs/isnnum.mjs.html +2 -2
- package/docs/isnull.mjs.html +2 -2
- package/docs/isnum.mjs.html +2 -2
- package/docs/isobj.mjs.html +2 -2
- package/docs/isobj0.mjs.html +2 -2
- package/docs/isp0int.mjs.html +2 -2
- package/docs/isp0num.mjs.html +2 -2
- package/docs/ispint.mjs.html +2 -2
- package/docs/ispm.mjs.html +2 -2
- package/docs/ispnum.mjs.html +2 -2
- package/docs/isstr.mjs.html +2 -2
- package/docs/isstr0.mjs.html +2 -2
- package/docs/istime.mjs.html +2 -2
- package/docs/istimeTZ.mjs.html +2 -2
- package/docs/istimems.mjs.html +2 -2
- package/docs/istimemsTZ.mjs.html +2 -2
- package/docs/isu16arr.mjs.html +2 -2
- package/docs/isu8arr.mjs.html +2 -2
- package/docs/isundefined.mjs.html +2 -2
- package/docs/j2o.mjs.html +2 -2
- package/docs/keysmat2ltdt.mjs.html +2 -2
- package/docs/log.mjs.html +2 -2
- package/docs/ltdt2vrtsable.mjs.html +2 -2
- package/docs/ltdtdiff.mjs.html +2 -2
- package/docs/ltdtkeys2mat.mjs.html +2 -2
- package/docs/ltdtkeysheads2mat.mjs.html +2 -2
- package/docs/ltdtmapping.mjs.html +2 -2
- package/docs/ltdtmerge.mjs.html +2 -2
- package/docs/ltdtpick.mjs.html +2 -2
- package/docs/ltdtpull.mjs.html +2 -2
- package/docs/mat2ltdt.mjs.html +2 -2
- package/docs/matConcat.mjs.html +2 -2
- package/docs/matat.mjs.html +2 -2
- package/docs/now2str.mjs.html +2 -2
- package/docs/now2strp.mjs.html +2 -2
- package/docs/nowDay2str.mjs.html +2 -2
- package/docs/nowms2str.mjs.html +2 -2
- package/docs/nowms2strp.mjs.html +2 -2
- package/docs/o2j.mjs.html +2 -2
- package/docs/obj2b64.mjs.html +2 -2
- package/docs/obj2pb64.mjs.html +2 -2
- package/docs/obj2str.mjs.html +2 -2
- package/docs/obj2stru8arr.mjs.html +2 -2
- package/docs/obj2u8arr.mjs.html +2 -2
- package/docs/objSortBy.mjs.html +2 -2
- package/docs/objSortByKeys.mjs.html +2 -2
- package/docs/ocr.mjs.html +2 -2
- package/docs/ocrDyn.mjs.html +2 -2
- package/docs/oo.mjs.html +2 -2
- package/docs/openLink.mjs.html +2 -2
- package/docs/pb642obj.mjs.html +2 -2
- package/docs/pm2resolve.mjs.html +2 -2
- package/docs/pmChain.mjs.html +2 -2
- package/docs/pmHook.mjs.html +2 -2
- package/docs/pmHookReject.mjs.html +2 -2
- package/docs/pmIni.mjs.html +2 -2
- package/docs/pmMap.mjs.html +2 -2
- package/docs/pmQueue.mjs.html +2 -2
- package/docs/pmSeries.mjs.html +2 -2
- package/docs/pmThrottle.mjs.html +2 -2
- package/docs/queue.mjs.html +2 -2
- package/docs/rang.mjs.html +2 -2
- package/docs/rep.mjs.html +2 -2
- package/docs/repObj.mjs.html +2 -2
- package/docs/replace.mjs.html +2 -2
- package/docs/replaceObj.mjs.html +2 -2
- package/docs/replacePlus.mjs.html +2 -2
- package/docs/round.mjs.html +2 -2
- package/docs/secd.mjs.html +2 -2
- package/docs/sep.mjs.html +2 -2
- package/docs/sepInt.mjs.html +2 -2
- package/docs/sind.mjs.html +2 -2
- package/docs/split.mjs.html +2 -2
- package/docs/str2aes.mjs.html +2 -2
- package/docs/str2b64.mjs.html +2 -2
- package/docs/str2md5.mjs.html +2 -2
- package/docs/str2obj.mjs.html +2 -2
- package/docs/str2sha512.mjs.html +2 -2
- package/docs/str2u8arr.mjs.html +2 -2
- package/docs/strCompare.mjs.html +2 -2
- package/docs/strFindFuzz.mjs.html +2 -2
- package/docs/strFindFuzzDyn.mjs.html +2 -2
- package/docs/strFindSimilar.mjs.html +2 -2
- package/docs/strdelleft.mjs.html +2 -2
- package/docs/strdelright.mjs.html +2 -2
- package/docs/strleft.mjs.html +2 -2
- package/docs/strmid.mjs.html +2 -2
- package/docs/strright.mjs.html +2 -2
- package/docs/stru8arr2obj.mjs.html +2 -2
- package/docs/tand.mjs.html +2 -2
- package/docs/time2day.mjs.html +2 -2
- package/docs/time2hour.mjs.html +2 -2
- package/docs/time2min.mjs.html +2 -2
- package/docs/timeTZ2day.mjs.html +2 -2
- package/docs/timeTZ2expire.mjs.html +2 -2
- package/docs/timeTZ2hour.mjs.html +2 -2
- package/docs/timeTZ2min.mjs.html +2 -2
- package/docs/timeTZ2past.mjs.html +2 -2
- package/docs/timems2day.mjs.html +2 -2
- package/docs/timems2hour.mjs.html +2 -2
- package/docs/timems2min.mjs.html +2 -2
- package/docs/timems2time.mjs.html +2 -2
- package/docs/timemsTZ2day.mjs.html +2 -2
- package/docs/timemsTZ2expire.mjs.html +2 -2
- package/docs/timemsTZ2hour.mjs.html +2 -2
- package/docs/timemsTZ2min.mjs.html +2 -2
- package/docs/timemsTZ2past.mjs.html +2 -2
- package/docs/timemsTZ2time.mjs.html +2 -2
- package/docs/treeObj.mjs.html +2 -2
- package/docs/trim.mjs.html +2 -2
- package/docs/u16arr2b64.mjs.html +2 -2
- package/docs/u16arr2u8arr.mjs.html +2 -2
- package/docs/u8arr2ab.mjs.html +2 -2
- package/docs/u8arr2b64.mjs.html +2 -2
- package/docs/u8arr2blob.mjs.html +2 -2
- package/docs/u8arr2bs.mjs.html +2 -2
- package/docs/u8arr2obj.mjs.html +2 -2
- package/docs/u8arr2str.mjs.html +2 -2
- package/docs/u8arr2u16arr.mjs.html +2 -2
- package/docs/urlParse.mjs.html +2 -2
- package/docs/verifyValue.mjs.html +2 -2
- package/docs/waitFun.mjs.html +2 -2
- package/docs/wsemi.html +227 -9
- package/package.json +1 -1
- package/src/execProcess.mjs +92 -0
- package/src/execScript.mjs +5 -5
- package/src/index.mjs +1 -0
- package/test/execProcess.test.mjs +11 -0
package/README.md
CHANGED
package/dist/wsemi.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* wsemi v1.6.
|
|
2
|
+
* wsemi v1.6.61
|
|
3
3
|
* (c) 2018-2021 yuda-lyu(semisphere)
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -22,5 +22,5 @@ var w={astral:!1,natives:!1},x={exec:RegExp.prototype.exec,test:RegExp.prototype
|
|
|
22
22
|
* XRegExp Unicode Base 3.1.1-next
|
|
23
23
|
* <xregexp.com>
|
|
24
24
|
* Steven Levithan (c) 2008-2016 MIT License
|
|
25
|
-
*/!function(e){var t={},n=e._dec,r=e._hex,o=e._pad4;function i(e){return e.replace(/[- _]+/g,"").toLowerCase()}function a(e){var t=/^\\[xu](.+)/.exec(e);return t?n(t[1]):e.charCodeAt("\\"===e.charAt(0)?1:0)}function u(n){return t[n]["b!"]||(t[n]["b!"]=function(t){var n="",i=-1;return e.forEach(t,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(e){var t=a(e[1]);t>i+1&&(n+="\\u"+o(r(i+1)),t>i+2&&(n+="-\\u"+o(r(t-1)))),i=a(e[2]||e[1])})),i<65535&&(n+="\\u"+o(r(i+1)),i<65534&&(n+="-\\uFFFF")),n}(t[n].bmp))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(e,n,r){var o="P"===e[1]||!!e[2],a=i(e[4]||e[3]),c=t[a];if("P"===e[1]&&e[2])throw new SyntaxError("Invalid double negation "+e[0]);if(!t.hasOwnProperty(a))throw new SyntaxError("Unknown Unicode token "+e[0]);if(c.inverseOf){if(a=i(c.inverseOf),!t.hasOwnProperty(a))throw new ReferenceError("Unicode token missing data "+e[0]+" -> "+c.inverseOf);c=t[a],o=!o}if(!c.bmp)throw new SyntaxError("Astral mode required for Unicode token "+e[0]);return"class"===n?o?u(a):c.bmp:(o?"[^":"[")+c.bmp+"]"}),{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(n){for(var r,o=0;o<n.length;++o){if(!(r=n[o]).name)throw new Error("Unicode token requires name");if(!(r.inverseOf||r.bmp||r.astral))throw new Error("Unicode token has no character data "+r.name);t[i(r.name)]=r,r.alias&&(t[i(r.alias)]=r)}e.cache.flush("patterns")},e._getUnicodeProperty=function(e){var n=i(e);return t[n]}}(Z),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData([{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൘-൞൦-൸෦-෯๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9"}])}(Z);var K=Z,J={exports:{}};return function(e){e.exports=function(t,n,r,o){return(e={}).dedupe=function(e,i){var a,u=t(i);if(!n(e)&&"object"!=C(e))throw new Error("contains_dupes must be an array or object");if(0===Object.keys(e).length)return void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("contains_dupes is empty"),[];u.limit&&(void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("options.limit will be ignored in dedupe"),u.limit=0),u.cutoff&&"number"==typeof u.cutoff||(void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Using default cutoff of 70"),u.cutoff=70),u.scorer||(u.scorer=r,void 0!==("undefined"==typeof console?"undefined":C(console))&&console.log("Using default scorer 'ratio' for dedupe")),a=u.processor&&"function"==typeof u.processor?u.processor:function(e){return e};var c={};for(var s in e){var f=a(e[s]);if("string"!=typeof f&&f instanceof String==0)throw new Error("Each processed item in dedupe must be a string.");var l=o(f,e,u);u.returnObjects?(1===l.length||(l=l.sort((function(e,t){var n=a(e.choice),r=a(t.choice),o=n.length,i=r.length;return o===i?n<r?-1:1:i-o}))),u.keepmap?c[a(l[0].choice)]={item:l[0].choice,key:l[0].key,matches:l}:c[a(l[0].choice)]={item:l[0].choice,key:l[0].key}):(1===l.length||(l=l.sort((function(e,t){var n=a(e[0]),r=a(t[0]),o=n.length,i=r.length;return o===i?n<r?-1:1:i-o}))),u.keepmap?c[a(l[0][0])]=[l[0][0],l[0][2],l]:c[a(l[0][0])]=[l[0][0],l[0][2]])}var p=[];for(var d in c)p.push(c[d]);return p},e}}(J),function(){var e=c,n=d,r=v.exports.intersection,o=v.exports.intersectionWith,i=v.exports.difference,a=v.exports.differenceWith,u=v.exports.uniq,s=v.exports.uniqWith,f=v.exports.partialRight,l=v.exports.forEach,p=v.exports.keys,h=v.exports.isArray,m=v.exports.toArray,w=v.exports.orderBy,x=g,j=y,_=b,O=function(e,t,n){var r={},o=K,i=y,a=b;function u(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){return("string"==typeof e||e instanceof String)&&e.length>0}r.validate=c,r.process_and_sort=function(e){return c(e)?e.match(/\S+/g).sort().join(" ").trim():""},r.tokenize=function(r,o){if(o&&o.wildcards&&t&&n){var u=n(i,o,a);return t(r.match(/\S+/g),(function(e,t){return 0===u(e,t)}))}return e(r.match(/\S+/g))};var s=o("[^\\pN|\\pL]","g");return r.full_process=function(e,t){if(!(e instanceof String)&&"string"!=typeof e)return"";var n;if(t&&"object"==C(t)&&t.wildcards&&"string"==typeof t.wildcards&&t.wildcards.length>0){var r=t.wildcards.toLowerCase();if(e=e.toLowerCase(),t.force_ascii){var i="[^\0 -|"+u(r)+"]";e=e.replace(new RegExp(i,"g"),"");var a="["+u(r)+"]",c=r[0];e=e.replace(new RegExp(a,"g"),c);var f="[^A-Za-z0-9"+u(r)+"]";n=(e=(e=e.replace(new RegExp(f,"g")," ")).replace(/_/g," ")).trim()}else{var l="[^\\pN|\\pL|"+u(r)+"]",p=o(l,"g");e=o.replace(e,p," ","all"),a="["+u(r)+"]",c=r[0],n=(e=e.replace(new RegExp(a,"g"),c)).trim()}}else t&&(t.force_ascii||!0===t)&&(n=(e=e.replace(/[^\x00-\x7F]/g,"")).replace(/\W|_/g," ").toLowerCase().trim()),n=o.replace(e,s," ","all").toLowerCase().trim();return t&&t.collapseWhitespace&&(n=n.replace(/\s+/g," ")),n},r.clone_and_set_option_defaults=function(e){if(e&&e.isAClone)return e;var t={isAClone:!0};if(e){var n,r=Object.keys(e);for(n=0;n<r.length;n++)t[r[n]]=e[r[n]]}return void 0!==t.full_process&&!1===t.full_process||(t.full_process=!0),void 0!==t.force_ascii&&!0===t.force_ascii||(t.force_ascii=!1),void 0!==t.normalize&&!1===t.normalize||(t.normalize=!0),void 0!==t.astral&&!0===t.astral&&(t.full_process=!1),void 0!==t.collapseWhitespace&&!1===t.collapseWhitespace||(t.collapseWhitespace=!0),t},r.isCustomFunc=function(e){return"function"!=typeof e||"token_set_ratio"!==e.name&&"partial_token_set_ratio"!==e.name&&"token_sort_ratio"!==e.name&&"partial_token_sort_ratio"!==e.name&&"QRatio"!==e.name&&"WRatio"!==e.name&&"distance"!==e.name&&"partial_ratio"!==e.name},r}(u,s,f),S=O.validate,k=O.process_and_sort,E=O.tokenize,A=O.full_process,M=O.clone_and_set_option_defaults,D=O.isCustomFunc,T=J.exports(M,h,P,H).dedupe;function P(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?ee(e,t,r):0}function I(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?X(e,t,r):0}function Y(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?(r.partial=!0,X(e,t,r)):0}function L(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?(r.proc_sorted||(e=k(e),t=k(t)),ee(e,t,r)):0}function B(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?(r.partial=!0,r.proc_sorted||(e=k(e),t=k(t)),te(e,t,r)):0}function H(e,t,r){var o,i=M(r);if(h(t))o=t.length;else{if(!(t instanceof Object))throw new Error("Invalid choices");o=p(t).length}if(!t||0===o)return void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("No choices"),[];if(i.processor&&"function"!=typeof i.processor)throw new Error("Invalid Processor");if(i.processor||(i.processor=function(e){return e}),i.scorer&&"function"!=typeof i.scorer)throw new Error("Invalid Scorer");i.scorer||(i.scorer=P);var a=D(i.scorer);i.cutoff&&"number"==typeof i.cutoff||(i.cutoff=-1);var u=function(e,t){return e};i.full_process&&(u=A,a||(i.processed=!0));var c=!1;a||(e=u(e,i),i.full_process=!1,i.astral&&i.normalize&&(i.normalize=!1,String.prototype.normalize?(c=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Processed query is empty string"));var s,f,d,v,g=[],m=!1,y=!1,b=!1;if("token_sort_ratio"===i.scorer.name||"partial_token_sort_ratio"===i.scorer.name){var w=k(e);y=!0}else if("token_set_ratio"===i.scorer.name||"partial_token_set_ratio"===i.scorer.name){var x=E(e,i);b=!0}return i.returnObjects?(d=function(e,t){return e.score-t.score},v=function(e,t){return t.score-e.score}):(d=function(e,t){return e[1]-t[1]},v=function(e,t){return t[1]-e[1]}),l(t,(function(t,n){i.tokens=void 0,i.proc_sorted=!1,y?(i.proc_sorted=!0,t&&t.proc_sorted?f=t.proc_sorted:(f=u(i.processor(t),i),f=k(c?f.normalize():f)),s=i.scorer(w,f,i)):b?(f="x",t&&t.tokens?(i.tokens=[x,t.tokens],i.trySimple&&(f=u(i.processor(t),i))):(f=u(i.processor(t),i),i.tokens=[x,E(c?f.normalize():f,i)]),s=i.scorer(e,f,i)):a?(f=i.processor(t),s=i.scorer(e,f,i)):("string"==typeof(f=u(i.processor(t),i))&&0!==f.length||(m=!0),c&&"string"==typeof f&&(f=f.normalize()),s=i.scorer(e,f,i)),s>i.cutoff&&(i.returnObjects?g.push({choice:t,score:s,key:n}):g.push([t,s,n]))})),m&&void 0!==("undefined"==typeof console?"undefined":C(console))&&console.log("One or more choices were empty. (post-processing if applied)"),i.limit&&"number"==typeof i.limit&&i.limit>0&&i.limit<o&&!i.unsorted?g=n.nlargest(g,i.limit,d):i.unsorted||(g=g.sort(v)),g}function F(e,t,r,o){var i,a,u=M(r);"object"==C(r.abortController)&&(i=r.abortController),"object"==C(r.cancelToken)&&(a=r.cancelToken);var c=256;"number"==typeof u.asyncLoopOffset&&(c=u.asyncLoopOffset<1?1:u.asyncLoopOffset);var s,f=!1;if(t&&t.length&&h(t))s=t.length,f=!0;else{if(!(t instanceof Object))return void o(new Error("Invalid choices"));s=Object.keys(t).length}if(!t||0===s)return void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("No choices"),void o(null,[]);if(u.processor&&"function"!=typeof u.processor)o(new Error("Invalid Processor"));else if(u.processor||(u.processor=function(e){return e}),u.scorer&&"function"!=typeof u.scorer)o(new Error("Invalid Scorer"));else{u.scorer||(u.scorer=P);var l=D(u.scorer);u.cutoff&&"number"==typeof u.cutoff||(u.cutoff=-1);var p=function(e,t){return e};u.full_process&&(p=A,l||(u.processed=!0));var d=!1;l||(e=p(e,u),u.full_process=!1,u.astral&&u.normalize&&(u.normalize=!1,String.prototype.normalize?(d=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Processed query is empty string"));var v,g,m,y,b,w=[],x=!1,j=!1,_=!1;if("token_sort_ratio"===u.scorer.name||"partial_token_sort_ratio"===u.scorer.name){var O=k(e);j=!0}else if("token_set_ratio"===u.scorer.name||"partial_token_set_ratio"===u.scorer.name){var S=E(e,u);_=!0}u.returnObjects?(y=function(e,t){return e.score-t.score},b=function(e,t){return t.score-e.score}):(y=function(e,t){return e[1]-t[1]},b=function(e,t){return t[1]-e[1]});var T=Object.keys(t);f?I(0):I(T[0],0)}function I(r,h){(f||t.hasOwnProperty(r))&&(u.tokens=void 0,u.proc_sorted=!1,j?(u.proc_sorted=!0,t[r]&&t[r].proc_sorted?g=t[r].proc_sorted:(g=p(u.processor(t[r]),u),g=k(d?g.normalize():g)),m=u.scorer(O,g,u)):_?(g="x",t[r]&&t[r].tokens?(u.tokens=[S,t[r].tokens],u.trySimple&&(g=p(u.processor(t[r]),u))):(g=p(u.processor(t[r]),u),u.tokens=[S,E(d?g.normalize():g,u)]),m=u.scorer(e,g,u)):l?(g=u.processor(t[r]),m=u.scorer(e,g,u)):("string"==typeof(g=p(u.processor(t[r]),u))&&0!==g.length||(x=!0),d&&"string"==typeof g&&(g=g.normalize()),m=u.scorer(e,g,u)),v=f?parseInt(r):r,m>u.cutoff&&(u.returnObjects?w.push({choice:t[r],score:m,key:v}):w.push([t[r],m,v]))),i&&!0===i.signal.aborted?o(new Error("aborted")):a&&!0===a.canceled?o(new Error("canceled")):f&&r<t.length-1?r%c==0?setImmediate((function(){I(r+1)})):I(r+1):h<T.length-1?h%c==0?setImmediate((function(){I(T[h+1],h+1)})):I(T[h+1],h+1):(x&&void 0!==("undefined"==typeof console?"undefined":C(console))&&console.log("One or more choices were empty. (post-processing if applied)"),u.limit&&"number"==typeof u.limit&&u.limit>0&&u.limit<s&&!u.unsorted?w=n.nlargest(w,u.limit,y):u.unsorted||(w=w.sort(b)),o(null,w))}}var z="%*SuperUniqueWildcardKey*%",R=!1;function N(e,t){var n=e;if(t.astral){t.normalize&&(String.prototype.normalize?n=e.normalize():R||(void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Normalization not supported in your environment"),R=!0));var r=m(n)}else r=n.split("");var o={};if(t.wildcards)for(var i=0;i<r.length;i++){var a=r[i];t.wildcards.indexOf(a)>-1?o[z]?o[z]+=1:o[z]=1:o[a]?o[a]+=1:o[a]=1}else for(i=0;i<r.length;i++)o[a=r[i]]?o[a]+=1:o[a]=1;return o}function U(e,t,n){for(var o=t,i=e.reduce((function(e,t){return e[t]=N(t,n),e}),{}),a=o.reduce((function(e,t){return e[t]=N(t,n),e}),{}),u=[],c=0;o.length&&c<e.length;){var s=w(o,(function(t){return n=i[e[c]],o=a[t],u=Object.keys(n),s=Object.keys(o),f=r(u,s).map((function(e){return n[e]*o[e]})).reduce((function(e,t){return e+t}),0),l=u.map((function(e){return Math.pow(n[e],2)})).reduce((function(e,t){return e+t}),0),p=s.map((function(e){return Math.pow(o[e],2)})).reduce((function(e,t){return e+t}),0),f/(Math.sqrt(l)*Math.sqrt(p));var n,o,u,s,f,l,p}),"desc")[0];u.push(s),c++,o=o.filter((function(e){return e!==s}))}return u.concat(o)}function W(e,t,n,r){var o=t,i=r;return(t.length>r.length||t.length===r.length&&(e.length>n.length||[e,n].sort()[0]===n))&&(o=r,i=t),[o,i]}function q(e,t,n){if(n.tokens)r=n.tokens[0],o=n.tokens[1];else var r=E(e,n),o=E(t,n);var i=W(e,r.sort(),t,o.sort()),a=i[0],u=U(a,i[1],n);return n.partial?te(a.join(" "),u.join(" "),n):ee(a.join(" "),u.join(" "),n)}function X(e,t,n){if(n.tokens)u=n.tokens[0],c=n.tokens[1];else var u=E(e,n),c=E(t,n);if(n.wildcards)var s=f(j,n,_),l=function(e,t){return 0===s(e,t)},p=o(u,c,l),d=a(u,c,l),v=a(c,u,l);else p=r(u,c),d=i(u,c),v=i(c,u);var h=p.sort().join(" "),g=d.sort(),m=v.sort();if(n.sortBySimilarity)var y=W(e,g,t,m),b=y[0],w=y[1],x=b.join(" "),O=U(b,w,n).join(" ");else x=g.join(" "),O=m.join(" ");var S=h+" "+x,k=h+" "+O;h=h.trim(),S=S.trim(),k=k.trim();var A=ee;if(n.partial&&(A=te,h.length>0))return 100;var M=[A(h,S,n),A(h,k,n),A(S,k,n)];return n.trySimple&&M.push(A(e,t,n)),Math.max.apply(null,M)}var V,$,G,Z,Q=!1;function ee(t,n,r){if(!S(t))return 0;if(!S(n))return 0;if(r.ratio_alg&&"difflib"===r.ratio_alg){var o=new e(null,t,n).ratio();return Math.round(100*o)}var i,a;return void 0===r.subcost&&(r.subcost=2),r.astral?(r.normalize&&(String.prototype.normalize?(t=t.normalize(),n=n.normalize()):Q||(void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Normalization not supported in your environment"),Q=!0)),i=x(t,n,r,m),a=m(t).length+m(n).length):r.wildcards?(i=j(t,n,r,_),a=t.length+n.length):(i=_(t,n,r),a=t.length+n.length),Math.round((a-i)/a*100)}function te(t,n,r){if(!S(t))return 0;if(!S(n))return 0;if(t.length<=n.length)var o=t,i=n;else o=n,i=t;for(var a=new e(null,o,i).getMatchingBlocks(),u=[],c=0;c<a.length;c++){var s=a[c][1]-a[c][0]>0?a[c][1]-a[c][0]:0,f=s+o.length,l=ee(o,i.substring(s,f),r);if(l>99.5)return 100;u.push(l)}return Math.max.apply(null,u)}Object.keys||(Object.keys=(V=Object.prototype.hasOwnProperty,$=!{toString:null}.propertyIsEnumerable("toString"),Z=(G=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!=C(e)&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,n,r=[];for(t in e)V.call(e,t)&&r.push(t);if($)for(n=0;n<Z;n++)V.call(e,G[n])&&r.push(G[n]);return r}));var ne=void 0;"undefined"!=typeof Promise&&(ne=function(e,t,n){return new Promise((function(r,o){F(e,t,n,(function(e,t){e?o(e):r(t)}))}))});var re={distance:function(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,void 0===r.subcost&&(r.subcost=1),r.astral?x(e,t,r,m):j(e,t,r,_)},ratio:P,partial_ratio:function(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?te(e,t,r):0},token_set_ratio:I,token_sort_ratio:L,partial_token_set_ratio:Y,partial_token_sort_ratio:B,token_similarity_sort_ratio:function(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?q(e,t,r):0},partial_token_similarity_sort_ratio:function(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?(r.partial=!0,q(e,t,r)):0},WRatio:function(e,t,n){var r=M(n);if(e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,r.full_process=!1,!S(e))return 0;if(!S(t))return 0;var o=!0,i=.95,a=.9,u=ee(e,t,r),c=Math.max(e.length,t.length)/Math.min(e.length,t.length);if(c<1.5&&(o=!1),c>8&&(a=.6),o){var s=te(e,t,r)*a,f=B(e,t,r)*i*a,l=Y(e,t,r)*i*a;return Math.round(Math.max(u,s,f,l))}var p=L(e,t,r)*i,d=I(e,t,r)*i;return Math.round(Math.max(u,p,d))},full_process:A,extract:H,extractAsync:F,extractAsPromised:ne,process_and_sort:k,unique_tokens:E,dedupe:T};t.exports=re}(),t.exports}()}));var ng=function(e,t){var n=null==e?0:e.length;return n?ca(e,t)/n:NaN};var rg=function(e){return ng(e,un)};function og(){var e=os();return tg||e.fuzzball}function ig(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";if(E(e)||ce(e))r=Au(e);else{if(!yo(e))return!!n&&0;r=Ca(e,"")}if(""===t)return!n||100;if(mo(t))return!!n&&0;if(Qa(r,t))return!n||100;var o=qi(t," "),i=wi(o,(function(e){return og().partial_ratio(r,e)}));if(n)return rg(i);var a=80;return kh(i,(function(e){return e>=a}))}function ag(){return(ag=mu(yu.mark((function e(t,n){var r,o,i,a=arguments;return yu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>2&&void 0!==a[2]&&a[2],yo(o=a.length>3?a[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/fuzzball@2.1.2/dist/fuzzball.umd.min.js"]),e.next=5,Ts(o);case 5:return i=ig(t,n,r),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ug(e){if(!ao(e))return{};var t=e.results,n=e.binarys;if(!E(t))return{};if(!fo(n))return{};var r={};try{r=JSON.parse(t,(function(e,t){if(E(t)){if(t.indexOf("[Uint8Array]::")>=0){var r=ro(t.replace("[Uint8Array]::",""));return n[r]}if(t.indexOf("[Uint16Array]::")>=0){var o=ro(t.replace("[Uint16Array]::",""));return n[o]}if(t.indexOf("[ArrayBuffer]::")>=0){var i=ro(t.replace("[ArrayBuffer]::",""));return n[i]}}return t}))}catch(e){}return r}function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!mh(e))return{today:null,msg:"",err:"時間格式錯誤"};var n=d.default();mh(t)&&(n=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var r=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n>r)return{today:null,msg:"",err:"時間已過"};var o,i=n.format("YYYY-MM-DD"),a=r.format("YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=d.default(a,"YYYY-MM-DD"),s=r.diff(n,"seconds"),f=r.diff(n,"minutes"),l=r.diff(n,"hours"),p=c.diff(u,"days"),v=c.diff(u,"weeks"),h=c.diff(u,"months"),g=c.diff(u,"years"),m="即將到來";if(s>=0&&(o=!0,m=s+"秒後"),f>0&&(o=!0,m=f+"分鐘後"),l>0){var y=r.format("HH:mm");i===a?(o=!0,m=l+"小時後,今天"+y):(o=!1,m=l+"小時後,明天"+y)}return p>1&&(o=!1,m=2===p?"後天":p+"天後"),v>0&&(o=!1,m=v+"周後"),h>0&&(o=!1,m=h+"個月後"),g>0&&(o=!1,m=g+"年後"),{today:o,msg:m,err:""}}function sg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!mh(e))return{today:null,msg:"",err:"時間格式錯誤"};var n=d.default();mh(t)&&(n=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var r=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n<r)return{today:null,msg:"",err:"時間未到"};var o=n.format("YYYY-MM-DD"),i=r.format("YYYY-MM-DD"),a=d.default(o,"YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=n.diff(r,"seconds"),s=n.diff(r,"minutes"),f=n.diff(r,"hours"),l=a.diff(u,"days"),p=a.diff(u,"weeks"),v=a.diff(u,"months"),h=a.diff(u,"years"),g=!1,m="剛剛";if(c>=0&&(g=!0,m=c+"秒前"),s>0&&(g=!0,m=s+"分鐘前"),f>0){var y=r.format("HH:mm");o===i?(g=!0,m=f+"小時前"):(g=!1,m="昨天"+y)}return l>1&&(g=!1,m=l+"天前"),p>0&&(g=!1,m=p+"周前"),v>0&&(g=!1,m=v+"個月前"),h>0&&(g=!1,m=h+"年前"),{today:g,msg:m,err:""}}function fg(e){var t=gh.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function lg(e){var t=gh.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function pg(e){if(!Za(e))return"";var t;try{t=Va(Ih(e))}catch(e){return""}return t}var dg=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r};e._getXLSX=Jd,e._tz=gh,e.ab2blob=function(e){var t=S(e);return new Blob([t])},e.ab2u8arr=S,e.addMonth=function(e,t){return A(e)&&fe(t)?d.default(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=be,e.alive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Jr(),n={},r=null,o=Mt(e,"timeAlive");oo(o)||(o=1e4),o=ro(o);var i=Mt(e,"timeDetect");function a(){null===r&&(r=setInterval((function(){sn(n,(function(e,r){if(Date.now()-e.time>o){var i=Tr(n[r]);delete n[r],t.emit("message",{eventName:"leave",key:r,data:i.data,now:Zr(n)})}})),ao(n)||(clearInterval(r),r=null)}),i))}function u(e,r){E(e)?(uo(n,e)||setTimeout((function(){t.emit("message",{eventName:"enter",key:e,data:r,now:Zr(n)})}),1),n[e]={data:r,time:Date.now()},a()):console.log("trigger need key")}function c(){var e=[];return sn(n,(function(t,n){e.push({key:n,data:t.data})})),e=Tr(e)}return oo(i)||(i=50),i=ro(i),t.trigger=u,t.get=c,t},e.arr2dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!yo(e))return{};if(yo(t))return Zr(e)===Zr(t)?so(e,t):{};for(var n=[],r=0;r<Zr(e);r++)n.push(Tr(t));var o=so(e,n);return o},e.arrAccum=function(e){if(!yo(e))return[];var t=[],n=0;return sn(e,(function(e){n+=se(e),ce(e)?t.push(n):t.push("")})),t},e.arrAdd=function(){if(Zr(arguments)<2)return[];for(var e=arguments[0],t=1;t<Zr(arguments);t++){var n=arguments[t];e=bo(e,n)}return e},e.arrAt=zo,e.arrFilterByKeywords=function(e,t){if(!yo(e))return[];if(!E(t))return[];var n=qi(t," "),r=Zr(n);return wi(e,(function(e){return function(e){for(var t=!1,o=0,i=0;i<r;i++){var a=n[i],u=a,c="+"===Xi(a,1),s="-"===Xi(a,1);if((c||s)&&(u=$i(a,1)),""!==Ui(u)){var f=e.indexOf(u)>=0;if(c&&!f){t=!1,o=0;break}if(s&&f){t=!1,o=0;break}if(f){t=!0;var l=1-i/r;o+=l=Math.pow(l,2)}}}return{hasKeyword:t,weight:o}}(e)}))},e.arrFilterByNum=function(e){return yo(e)?(e=Tr(e),e=Zi(e,ce),e=wi(e,se)):[]},e.arrFilterByPnum=Ji,e.arrFilterByPnumAndToLog=function(e){return yo(e)?(e=Ji(e),e=wi(e,Math.log)):[]},e.arrFind=function(e,t){function n(e){return fo(e)?e:[e]}return mo(e)||0===(e=n(e)).length||mo(t)?[]:(t=n(t),wi(t,(function(t){for(var n=-1,r=0;r<e.length;r++)if(Qi(e[r],t)){n=r;break}return n})))},e.arrGroupByMaxmin=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Mt(n,"keyMax");E(r)||(r="max");var o=Mt(n,"keyMin");E(o)||(o="min");var i=Mt(n,"keyValue");E(i)||(i="value");var a=Mt(n,"keyItems");if(E(a)||(a="items"),!yo(e))return[];if(!yo(t))return[];var u=Tr(t);return sn(e,(function(e,n){var c=Mt(e,i);ce(c)?c=se(c):ce(e)&&(c=se(e)),ea(c)&&sn(t,(function(t,n){var i=Mt(t,r,null),s=Mt(t,o,null);if(null!==i&&null!==s&&ce(i)&&ce(s)){var f=Mt(t,"maxType");"<="!==f&&"<"!==f&&(f="<=");var l,p=Mt(t,"minType");">="!==p&&">"!==p&&(p=">="),i=se(i),s=se(s),l="<="===f?c<=i:c<i,(">="===p?c>=s:c>s)&&l&&(uo(u[n],a)||(u[n][a]=[]),u[n][a].push(e))}}))})),u},e.arrHas=ta,e.arrInsert=function(e,t,n){if(!fo(e))return[];if(fo(n)||(n=[n]),!Fo(t))return e;if((t=ro(t))>Zr(e))return e;var r=e;try{r=[].concat(oa(e.slice(0,t)),oa(n),oa(e.slice(t)))}catch(e){}return r},e.arrLookupByMaxmin=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Mt(n,"keyMax");E(r)||(r="max");var o=Mt(n,"keyMin");E(o)||(o="min");var i=Mt(n,"keyValue");E(i)||(i="value");var a=Mt(n,"keyItems");E(a)||(a="items");var u=Mt(n,"beforeAddResult",null);if(!yo(e))return[];if(!yo(t))return[];var c=ao(Mt(e,0));if(!c)return[];var s=Tr(e);return sn(s,(function(e,n){var c=Mt(e,i);ce(c)&&(c=se(c)),ea(c)&&sn(t,(function(e,t){var i=Mt(e,r,null),f=Mt(e,o,null);if(null!==i&&null!==f&&ce(i)&&ce(f)){var l=Mt(e,"maxType");"<="!==l&&"<"!==l&&(l="<=");var p,d=Mt(e,"minType");">="!==d&&">"!==d&&(d=">="),i=se(i),f=se(f),p="<="===l?c<=i:c<i,(">="===d?c>=f:c>f)&&p&&(ia(u)&&(e=u(e,s[n],n)),uo(s[n],a)||(s[n][a]=[]),s[n][a].push(e))}}))})),s},e.arrMulti=ua,e.arrNorm=function(e){if(!yo(e))return null;var t=fa(e,e);return ce(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=fa,e.arrSep=function(e,t){if(!yo(e))return[];if(!oo(t)&&!ao(t))return[];var n="",r=null;if(oo(t))r=t,n="numCount";else if(ao(t))if(oo(Mt(t,"numCount")))r=t.numCount,n="numCount";else{if(!oo(Mt(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");r=t.numGroup,n="numGroup"}var o=Zr(e),i=[];if("numCount"===n)for(var a=0;a<o;a+=r){for(var u=[],c=0;c<r;c++){var s=a+c;s<o&&u.push(e[s])}i.push(u)}else if("numGroup"===n){for(var f=0;f<r;f++)i[f]=[];for(var l=-1,p=0;p<o;p++)++l>r-1&&(l=0),i[l].push(e[p])}return i},e.arrSort=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!yo(e))return[];if(1===Zr(e))return e;var n=Mt(t,"returnIndex");ye(n)||(n=!1);var r,o=Mt(t,"compareKey",null),i=_a(e);if(""===i)return[];if("obj"===i){if(!E(o))return[];var a=wi(e,(function(e,t){return Mt(e,o,"")})),u=_a(a);if("num"!==u&&"str"!==u)return[];var c=Oa(a,u),s=Sa(c,!0);r=n?s:wi(s,(function(t){return e[t]}))}else if("num"===i||"str"===i){var f=Oa(e,i);r=Sa(f,n)}return r},e.asind=function(e){return ce(e)?(e=se(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return ce(e)?(e=se(e),ce(t)?(t=se(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return ce(e)?(e=se(e),180*Math.atan(e)/Math.PI):null},e.attstr=Xa,e.b642obj=function(e){if(!k(e))return{};var t={};try{t=$a(Va(e))}catch(e){t={}}return t},e.b642str=Va,e.b642u16arr=Ja,e.b642u8arr=Ga,e.binstr=Qa,e.blob2ab=nu,e.blob2b64=ru,e.blob2str=function(e){var t=eu(),n=new FileReader;return n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsText(e),t},e.blob2u8arr=ou,e.blobs2b64s=iu,e.blobs2u8arrs=au,e.bodyLog=function(){var e=wi(arguments,(function(e){return uu(e)})).join(", "),t='\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>'.concat(cu(e),"</code>\n </div>\n ");document.querySelector("body").insertAdjacentHTML("beforeend",t)},e.browserView=su,e.browserViewFromBlob=function(e,t){fu(e)&&su(e,t)},e.browserViewFromText=function(e){k(e)&&su(e,"text/plain")},e.browserViewFromU8arr=function(e,t){Za(e)&&su(e,t)},e.bs2u8arr=lu,e.bufRead=pu,e.bufReadDbl=du,e.bufWrite=vu,e.bufWriteDbl=hu,e.cache=function(){var e=Jr(),t={};function n(t,n){setTimeout((function(){e.emit(t,n)}),1)}function r(e,r){var o=r.execFun,i=r.inputFun,a=r.timeExpired;uo(t,e)||(ia(o)||(o=function(){var e=mu(yu.mark((function e(){return yu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),ju(a)&&(a=5e3),a=ro(a),fo(i)||(i=[]),t[e]={needExec:!0,execFun:o,execFunRunning:!1,inputFun:i,value:null,time:null,timeExpired:a},n("message",{fun:"set",key:e,timeExpired:a}))}function o(e){return i.apply(this,arguments)}function i(){return(i=mu(yu.mark((function e(r){var o,i,a,u;return yu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!uo(t,r)){e.next=24;break}return n("message",{fun:"get",key:r,msg:"waiting"}),e.next=4,wu((function(){return!t[r].execFunRunning}),{timeInterval:1e3});case 4:if(i=Date.now(),o=t[r].needExec,a=i-t[r].time,o?n("message",{fun:"get",key:r,msg:"execute first"}):t[r].timeExpired>0&&a>t[r].timeExpired&&(n("message",{fun:"get",key:r,msg:"execute by timeExpired",timeDiff:a}),o=!0),!o){e.next=20;break}return n("message",{fun:"get",key:r,msg:"execFun start"}),t[r].execFunRunning=!0,e.next=13,(u=t[r]).execFun.apply(u,oa(t[r].inputFun)).catch((function(e){n("error",{fun:"get",key:r,msg:e})}));case 13:t[r].value=e.sent,t[r].needExec=!1,t[r].time=i,t[r].execFunRunning=!1,n("message",{fun:"get",key:r,msg:"execFun end"}),e.next=21;break;case 20:n("message",{fun:"get",key:r,msg:"use cache"});case 21:return e.abrupt("return",Tr(t[r].value));case 24:return n("error",{fun:"get",key:r,msg:"invalid key"}),e.abrupt("return",null);case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(){return(a=mu(yu.mark((function e(t,n){var i,a,u;return yu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.execFun,a=n.inputFun,u=n.timeExpired,r(t,{execFun:i,inputFun:a,timeExpired:u}),e.abrupt("return",o(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return e.set=r,e.getProxy=function(e,t){return a.apply(this,arguments)},e.get=o,e.update=function(e,r){uo(t,e)&&(n("message",{fun:"updateValue",key:e}),t[e].value=r,t[e].time=Date.now())},e.clear=function(e){uo(t,e)&&(n("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){uo(t,e)&&(n("message",{fun:"remove",key:e}),delete t[e])},e},e.cbol=function(e){if(ye(e))return e;if(0===e)return!1;if(1===e)return!0;var t=!1;return E(e)&&"true"===(e=_u(Ui(e)))&&(t=!0),t},e.cdbl=se,e.cfilesize=function(e){return ce(e)?(e=se(e))<1024?Ou(e,1)+" b":e<1048576?Ou(e/1024,1)+" kb":e<1073741824?Ou(e/1024/1024,1)+" mb":e<1099511627776?Ou(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!ce(e))return"";if(!Fo(t))return"";for(var n=(e=Ou(e,t)).split("."),r=n[0],o=n.length>1?"."+n[1]:"",i=/(\d+)(\d{3})/;i.test(r);)r=r.replace(i,"$1,$2");var a=r+o;return a},e.cint=ro,e.clearXSS=function(e){return function e(t){return fo(t)||io(t)?(sn(t,(function(n,r){t[r]=e(n)})),t):k(t)?(n=t,h.default(n,{onIgnoreTagAttr:function(e,t,n,r){if("style"===t)return t+'="'+h.default.escapeAttrValue(n)+'"'}})):t;var n}(Tr(e))},e.color=Dc,e.composeToTree=Xc,e.convertToTree=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ao(e)&&!yo(e))return[];var n=Mt(t,"bindKey",null);E(n)||(n="id");var r=Mt(t,"bindParent",null);E(r)||(r="parentId");var o=Mt(t,"bindText",null);E(o)||(o="text");var i=Mt(t,"bindChildren",null);E(i)||(i="children");var a=Mt(t,"bindType",null);E(a)||(a="type");var u=Mt(t,"bindNumOfChilren",null);E(u)||(u="numOfChilren");var c=Mt(t,"bindRoot",null);E(c)||(c="root");var s=Mt(t,"saveExtProps",null);ye(s)||(s=!1),E(c)&&(e=Su({},c,e));var f=Gc(e,{bindKey:n,bindParent:r,bindText:o,bindType:a,bindNumOfChilren:u}),l=Xc(f,{bindKey:n,bindParent:r,bindChildren:i,saveExtProps:s});return l},e.copyStrToClipboard=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!k(e))return"invalid input";var n=Mt(t,"eleParent");Kc(n)||(n=document.body);var 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(),!Jc(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=Qc,e.cotd=function(e){return ce(e)?1/es(e=se(e)):null},e.cscd=function(e){return ce(e)?1/ts(e=se(e)):null},e.cstr=Au,e.day2cht=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!ns(e))return"";var n=d.default(e,"YYYY-MM-DD");return t?n.month()+1+"月"+n.date()+"日":"民國 "+(n.year()-1911)+" 年 "+(n.month()+1)+" 月 "+n.date()+" 日"},e.debounce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;function t(e){var t=[],n=null,r=null;function o(){null===n&&(n=setInterval((function(){if(Date.now()-r>e){var o=t.pop();t=[],o.func.apply(o,oa(o.input))}0===t.length&&(clearInterval(n),n=null)}),10))}return oo(e)||(e=300),e=ro(e),function(e){if(ia(e)){r=Date.now();for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];t.push({func:e,input:i}),o()}else console.log("func is not function")}}return new t(e)},e.delay=rs,e.dig=Ou,e.digExp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ce(e)&&Fo(t)?0===(e=se(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):Ou(e,t):""},e.domAlert=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E(e)){var n=Mt(t,"type","success");uo(ls,n)||(n="success");var r=Mt(t,"icon",null);E(r)||(r=ls[n]);var o="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(o=t.position);var i=Mt(t,"time");ea(i)||(i=4e3),i<0&&(i=4e3);var a=Mt(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});var u="",c=Mt(a,"top",0),s=Mt(a,"bottom",0),f=Mt(a,"left",0),l=Mt(a,"right",0);u="padding:".concat(c,"px ").concat(l,"px ").concat(s,"px ").concat(f,"px;");var p=Mt(t,"textColor","#000");p=Eu(p,";","");var d=Mt(t,"backgroundColor","#fff");d=Eu(d,";","");var v=Mt(t,"borderWidth",1),h=Mt(t,"borderColor","#ebeef5");h=Eu(h,";","");var g=Mt(t,"borderRadius",8),m=Mt(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");m=Eu(m,";","");var y=Mt(t,"closeIconShift",null);null===y&&(y={top:10,right:10});var b="",w=Mt(y,"top",""),x=Mt(y,"bottom",""),j=Mt(y,"left",""),_=Mt(y,"right","");ea(w)&&(w="top:".concat(w,"px;")),ea(x)&&(x="bottom:".concat(x,"px;")),ea(j)&&(j="left:".concat(j,"px;")),ea(_)&&(_="right:".concat(_,"px;")),b="position:absolute; ".concat(w," ").concat(_," ").concat(x," ").concat(j);var O="alt-".concat(us()),S="alt-".concat(us()),k='\n <div \n style="display:inline-block; color:'.concat(p,"; background:").concat(d,"; border:").concat(v,"px solid ").concat(h,"; border-radius:").concat(g,"px; box-shadow:").concat(m,';"\n onmouseenter="ttWAlertFadeIn(\'').concat(S,"')\"\n onmouseleave=\"ttWAlertFadeOut('").concat(S,'\')"\n >\n <div style="position:relative; ').concat(u,'">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">').concat(r,"</div>\n </div>\n <div>").concat(e,'</div>\n </div>\n\n <div style="').concat(b,'">\n <div \n id="').concat(S,'" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel(\'').concat(O,"')\"\n >\n ").concat(fs,"\n </div>\n </div>\n\n </div>\n </div>\n "),A=document.createElement("div");A.id=O,A.style.position="fixed",A.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",A.style.zIndex=-1,A.style.opacity=.001,o.indexOf("-left")>=0?A.style.transform="translateX(-100%)":A.style.transform="translateX(100%)",A.innerHTML=k;var M=document.querySelector("body");M.appendChild(A);var D=eu();return ms({id:O,position:o,time:i,pm:D}),D}},e.domAppend=ys,e.domCancelEvent=ws,e.domCompareText=Ss,e.domCompareTextDyn=function(e,t,n,r){return Ps.apply(this,arguments)},e.domConvertToPic=Bs,e.domConvertToPicDyn=function(e){return Fs.apply(this,arguments)},e.domDetect=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Mt(t,"timeInterval",null);oo(n)||(n=20);var r=Mt(t,"tolerancePixel",null);oo(r)||(r=1);var o,i=Jr(),a={offsetWidth:0,offsetHeight:0};if(!ia(e))return console.log("invalid f",e),null;o=setInterval((function(){var t=e();if(t){var n={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight},o=Math.abs(a.offsetWidth-n.offsetWidth)>r,u=Math.abs(a.offsetHeight-n.offsetHeight)>r;if(o||u){var c=Rs({},a);setTimeout((function(){n.offsetWidth>0&&n.offsetHeight>0&&(i.emit("resize",{sold:c,snew:n,ele:t}),i.emit("resizeWithWindow",{sold:c,snew:n,ele:t,from:"dom"}))}),1)}a=n}}),n);var u=function(e){i.emit("resizeWithWindow",{snew:a,from:"window"})};return window.addEventListener("resize",u),i.clear=function(){clearInterval(o),window.removeEventListener("resize",u)},i},e.domDrag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){var n=Mt(t,"attIdentify",null);E(n)||(n="dragid");var r=Mt(t,"attIndex",null);E(r)||(r="dragindex");var o=Mt(t,"attGroup",null);E(o)||(o="draggroup");var i=Mt(t,"group",null);E(i)||(i="group");var a=Mt(t,"previewOpacity",null);ea(a)||(a=.4);var u=Mt(t,"previewDisabledOpacity",null);ea(u)||(u=.2);var c=Mt(t,"previewBackground",null);E(c)||(c="white");var s=Mt(t,"previewBorderWidth",null);ea(s)||(s=1);var f=Mt(t,"previewBorderColor",null);E(f)||(f="#f26");var l=Mt(t,"timeDragStartDelay",null);ea(l)||(l=120);var p="c".concat(us(8)),d=i;e.setAttribute(o,d),e.setAttribute(n,p);var v=ef(d,p,{attIdentify:n,previewOpacity:a,previewBackground:c,previewBorderWidth:s,previewBorderColor:f}),h={dragStart:function(e){v.emit(d+"-dragStart",e)}},g=rf(e,h);g.bind(),af({gid:d,attGroup:o,attIndex:r,attIdentify:n,timeDragStartDelay:l,previewOpacity:a,previewDisabledOpacity:u});var m=Jr();return v.on(i+"-change",(function(e){e.tarEid===p&&m.emit("change",e)})),v.on(i+"-start",(function(e){e.tarEid===p&&m.emit("start",e)})),v.on(i+"-move",(function(e){e.tarEid===p&&m.emit("move",e)})),v.on(i+"-enter",(function(e){e.tarEid===p&&m.emit("enter",e)})),v.on(i+"-leave",(function(e){e.tarEid===p&&m.emit("leave",e)})),v.on(i+"-drop",(function(e){e.tarEid===p&&m.emit("drop",e)})),m.setIsActive=b,m.unbind=y,m}function y(){g.unbind(),of(d,p)}function b(e){Qs[d].isActive=e}console.log("ele is not HTMLElement",e)},e.domDragBarAndScroll=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=null,i=null,a=null,u=null,c=null,s=null,f=null,l=null,p=null,d=null,v=null,h=null,g=null,m=null,y=!1,b=Mt(n,"getHeighRatio",null);Se(b)||(b=function(){return 1});var w=Mt(n,"getWidthRatio",null);Se(w)||(w=function(){return 1});var x=Mt(n,"stopScrollPropagationForPanel",null);me(x)||(x=!1);var j=Mt(n,"stopTouchDragPropagationForPanel",null);me(j)||(j=!1);var _=Mt(n,"useTouchDragForPanel",null);me(_)||(_=!0);var O=e,S=t,k=Jr();function E(){r=function(e){var t=e.deltaY/Math.abs(e.deltaY),n=e.deltaX/Math.abs(e.deltaX);k.emit("scrollPanel",{ratioY:t,ratioX:n}),x&&ws(e)},O.addEventListener("wheel",r),o=function(e){if(_){var t=Mt(e,"touches.0.clientY",0),n=Mt(e,"touches.0.clientX",0),r=-t*b(),o=-n*w();y=!0,k.emit("pressBar",{clientY:r,clientX:o}),j&&ws(e)}},O.addEventListener("touchstart",o),i=function(e){if(_&&y){var t=Mt(e,"touches.0.clientY",0),n=Mt(e,"touches.0.clientX",0),r=-t*b(),o=-n*w();k.emit("dragBar",{clientY:r,clientX:o}),j&&ws(e)}},O.addEventListener("touchmove",i,{passive:!1}),a=function(e){_&&y&&(y=!1,k.emit("freeBar"),j&&ws(e))},O.addEventListener("touchend",a),u=function(e){y=!0,k.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},S.addEventListener("mousedown",u),c=function(e){y&&(y=!1,k.emit("freeBar"))},S.addEventListener("mouseup",c),s=function(e){y=!0,k.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},S.addEventListener("touchstart",s),f=function(e){y&&(k.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),ws(e))},S.addEventListener("touchmove",f,{passive:!1}),l=function(e){y&&(y=!1,k.emit("freeBar"))},S.addEventListener("touchend",l),p=function(e){y&&k.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",p),d=function(e){y&&(y=!1,k.emit("freeBar"),x&&ws(e))},window.addEventListener("mouseup",d),v=function(e){},window.addEventListener("scroll",v,{passive:!1}),h=function(e){},window.addEventListener("wheel",h,{passive:!1}),g=function(e){},document.addEventListener("scroll",g,{passive:!1}),m=function(e){},document.addEventListener("wheel",m,{passive:!1})}function A(){O.removeEventListener("wheel",r),O.removeEventListener("touchstart",o),O.removeEventListener("touchmove",i),O.removeEventListener("touchend",a),S.removeEventListener("mousedown",u),S.removeEventListener("mouseup",c),S.removeEventListener("touchstart",s),S.removeEventListener("touchmove",f),S.removeEventListener("touchend",l),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",d),window.removeEventListener("scroll",v),window.removeEventListener("wheel",h),document.removeEventListener("scroll",g),document.removeEventListener("wheel",m)}return E(),k.clear=A,k},e.domDragPreview=Zs,e.domDropFiles=function(e){var t=!1,n=!1,r=Jr();function o(e){ws(e),n=!0,!1===t&&(t=!0,r.emit("dropIn",{ev:e}))}function i(e){ws(e),n=!1,setTimeout((function(){n||(t=!1,r.emit("dropOut",{ev:e}))}),100)}function a(e){o(e)}function u(e){i(e)}function c(e){function t(){i(e)}o(e),function(e){return bf.apply(this,arguments)}(e.dataTransfer).then((function(n){var o=Zi(n.entries,{type:"file"});r.emit("getFiles",{ev:e,files:n.files,filesTree:o,entries:n.entries,cb:t})})).catch((function(e){r.emit("error",e)}))}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",u,!1),e.addEventListener("drop",c,!1),r.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",u,!1),e.removeEventListener("drop",c,!1)},r},e.domFadeIn=cs,e.domFadeOut=ss,e.domFind=wf,e.domFinds=Cs,e.domGetAttr=Vs,e.domGetBoudRect=$s,e.domGetBoudRectRefSelf=Gs,e.domGetFileAccept=Of,e.domGetFiles=Sf,e.domGetPointFromEvent=Xs,e.domGetScrollableParent=function(e){var 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){for(var o=function e(t,n){return null===t.parentNode?n:e(t.parentNode,n.concat([t]))}(e.parentNode,[]),i=0;i<o.length;i+=1)if(r(o[i]))return o[i];return document.scrollingElement||document.documentElement}},e.domIsClientXYIn=function(e,t,n){if(ea(e))if(ea(t)){if(Kc(n)){var r;try{r=n.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}var o=!1;try{o=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 o}console.log("ele is not HTMLElement",n)}else console.log("clientY is not Number",t);else console.log("clientX is not Number",e)},e.domIsFocused=Jc,e.domIsVisible=function(e){if(!Kc(e))return Promise.reject("invalid element");if(kf())return Promise.reject("invalid IntersectionObserver");var t=eu();try{var n=new IntersectionObserver((function(e){t.resolve(e[0].isIntersecting),n.disconnect()}));n.observe(e)}catch(e){t.reject(e)}return t},e.domPrepend=Ys,e.domRemove=Is,e.domRenderMarkdownMind=Ef,e.domRenderMarkdownMindDyn=function(e,t){return Af.apply(this,arguments)},e.domRipple=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Mt(n,"timeDuration",null);oo(r)||(r=1e3);var o=Mt(n,"color",null);if(E(o)||(o="rgba(255, 255, 255, 0.5)"),Kc(e)){e.style.position="relative",e.style.overflow="hidden";var i=e.getBoundingClientRect(),a=t.clientX-i.left,u=t.clientY-i.top,c=2*Math.max(e.clientWidth,e.clientHeight),s=document.createElement("div");s.style.width="".concat(c,"px"),s.style.height="".concat(c,"px"),s.style.transition="all ".concat(r/1e3,"s linear"),s.style.userSelect="none",s.style.position="absolute",s.style.zIndex=1,s.style.left="".concat(a,"px"),s.style.top="".concat(u,"px"),s.style.borderRadius="50%",s.style.transformOrigin="center",s.style.transform="translate(-50%,-50%) scale(0)",s.style.background=o,e.appendChild(s),setTimeout((function(){s.style.transform="translate(-50%,-50%) scale(2)",s.style.opacity=0}),1),setTimeout((function(){Is(s)}),r)}},e.domScrollIntoView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){io(t)||(t={});var n={behavior:"smooth"};n=yl(yl({},n),t),bs()&&gl(),e.scrollIntoView(n)}},e.domScrollTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){io(t)||(t={});var n={behavior:"smooth"};n=wl(wl({},n),t),bs()&&gl(),e.scrollTo(n)}},e.domShowImages=Dl,e.domShowImagesDyn=function(e){return Pl.apply(this,arguments)},e.domShowInputAndGetFiles=Il,e.domShowInputAndGetFilesU8Arrs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=eu(),o=[];return Il(e,t,n).then((function(e){var t=eu(),n=e.err;return Zr(n)>0?t.reject(n):t.resolve(e),t})).then((function(e){var t=e.files;return sn(t,(function(e){o.push({name:e.name,size:e.size,type:e.type})})),au(t)})).then((function(e){sn(e,(function(e,t){o[t].u8a=e})),r.resolve(o)})).catch((function(e){r.reject(e)})),r},e.domTooltip=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=null;function i(){null!==r&&r.destroy(!0),e.setAttribute("tippystate",""),clearInterval(o)}var a={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=ao(n)?El(a,n):a;var u=t;t||(u=e.innerHTML);var c=e.getAttribute("tippystate"),s=ce(c);if(e.setAttribute("tippystate","5"),!s){u='<div style="text-align:left;">'.concat(u,"</div>");var f=Nd;Nd.default&&(f=Nd.default),(r=f(e,qd(qd({},n),{},{content:u,allowHTML:!0,onHidden:function(){i()},onDestroy:function(){r=null,i()}}))).show(),o=setInterval((function(){var t=e.getAttribute("tippystate");ce(t)?(t=ro(t),t-=1,e.setAttribute("tippystate",t),t<=0&&i()):i()}),1e3)}},e.domTriggerEvent=Cl,e.domVirtualCreate=Xd,e.domVirtualCreateQueue=function(){return new function(){var e=Zd(1);function t(){return(t=mu(yu.mark((function t(n){var r,o=arguments;return yu.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},t.abrupt("return",e(Xd,n,r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}}},e.downloadExcelFileFromData=ov,e.downloadExcelFileFromDataDyn=function(e){return iv.apply(this,arguments)},e.downloadFileFromB64=function(e,t){if(tu())if(E(e)){var n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}else console.log("no filename");else console.log("no window")},e.downloadFileFromBlob=Kd,e.downloadFileFromText=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];tu()?E(e)?k(t)?ye(n)?Kd(e,n?new Blob(["\ufeff",t]):new Blob([t])):console.log("withBOM is not boolean"):console.log("invalid content"):console.log("invalid filename"):console.log("no window")},e.downloadFileFromU8Arr=function(e,t){tu()?E(e)?Za(t)?Kd(e,av(t)):console.log("no data"):console.log("no filename"):console.log("no window")},e.dtmapping=uv,e.dtpick=cv,e.evem=Jr,e.execScript=function(e,t){return new Promise((function(n,r){fo(t)||(t=[t]);var o=y.default.spawnSync(e,t),i=Zi(o.output,(function(e){return null!==e}));i=wi(i,(function(e){return function(e){try{return e.toString("utf8")}catch(e){}return""}(e)}));var a=Ca(i,""),u=Mt(o,"error.message");u?r(u):n(a)}))},e.f2c=function(e){if(!ia(e))return"";var t=String(e),n=t.substring(t.indexOf("/*")+3,t.lastIndexOf("*/"));return n=sv(n)},e.files2data=function(e){var t=eu(),n=wi(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));return iu(e).then((function(e){var r=wi(e,(function(e){return{b64:e}})),o=fv(n,r);t.resolve(o)})),t},e.flattenToConn=Gc,e.flattenTree=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(fo(e)){if(0===e.length)return[]}else{if(!io(e))return[];if(vo(e))return[]}var n=Mt(t,"bindKey",null);E(n)||(n="id");var r=Mt(t,"bindChildren",null);E(r)||(r="children");var o=!1;function i(e){for(var t=[e[0]],n=1;n<e.length;n++){var o=e[n];t.push(r),t.push(o)}return t}io(e)&&(o=!0,e=[e]);var a=[];return $c(e,(function(e,t,o){var u=Mt(e,n,null),c=Mt(e,r,null);if(u){var s=i([].concat(oa(o),[t]));if(a.push(pv(pv({},e),{},{level:(Zr(s)-1)/2,nk:s})),c)return c}})),o&&(a=a[0]),a},e.fsCleanFolder=function(e){if(!b.default.existsSync(e)){var t=hv(e);return t.error?t.error:{success:"done: "+e}}if(!dv(e))return{error:"input path is not folder"};try{b.default.readdirSync(e).forEach((function(t){var n=e+"/"+t;if(b.default.lstatSync(n).isDirectory())vv(n);else try{b.default.unlinkSync(n)}catch(e){}}))}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCopyFolder=function e(t,n){try{b.default.readdirSync(t).forEach((function(r){var o=t+"/"+r,i=n+"/"+r,a=b.default.lstatSync(o);if(a.isDirectory())hv(w.default.dirname(i)),e(o,i);else if(a.isSymbolicLink()){var u=b.default.readlinkSync(o);b.default.symlinkSync(u,i)}else hv(w.default.dirname(i)),b.default.copyFileSync(o,i)}))}catch(e){return{error:e}}return{success:"done: "+n}},e.fsCreateFolder=hv,e.fsDeleteFolder=vv,e.fsEvem=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"./_evps",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Jr(),o=Mt(t,"timeDetect");oo(o)||(o=50),o=ro(o);var i=Mt(t,"timeRewatch");function a(t,r){var a=w.default.resolve(e,t),u=mv({timeDetect:o,timeRewatch:i});u.on(a,(function(e){var t=b.default.readFileSync(a,"utf8"),n=$a(t);ao(n)&&(t=n),r(t,e)})),n.push({fp:a,evf:u})}function u(t){var r=w.default.resolve(e,t);sn(n,(function(e){e.fp===r&&e.evf.clear()}))}function c(t,n){var r=w.default.resolve(e,t);E(n)||(n=JSON.stringify(n)),b.default.writeFileSync(r,n,"utf8")}function s(){sn(n,(function(e){e.evf.clear()}))}return oo(i)||(i=1e3),i=ro(i),dv(e)||hv(e),r.on=a,r.off=u,r.emit=c,r.clear=s,r},e.fsGetFilesInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=yv(e,t);return n=Zi(n,(function(e){return gv(e.path)})),n=wi(n,"path")},e.fsGetFoldersInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=yv(e,t);return n=Zi(n,(function(e){return!gv(e.path)})),n=wi(n,"path")},e.fsIsFile=gv,e.fsIsFolder=dv,e.fsReadText=function(e){return b.default.readFileSync(e,"utf8")},e.fsTreeFolder=yv,e.fsWatchFile=mv,e.fsWriteText=function(e,t){b.default.writeFileSync(e,t,"utf8")},e.genGradientColor=function(e){if(mo(e))return{};var t;try{t=Dc.toRgba(e)}catch(e){return{}}function n(e,t){return e.a=t,Dc.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,n(t,.4)],[1,n(t,.9)]]}},e.genID=us,e.genPm=eu,e.getBufferSize=wv,e.getClearPathName=jv,e.getCsvStrFromData=Ov,e.getDataFromExcelFileU8Arr=Mv,e.getDataFromExcelFileU8ArrDyn=function(e){return Dv.apply(this,arguments)},e.getDirName=function(e){if(!E(e))return"";var t=jv(e);if(t.isRoot)return t.path;var n=Tv(e=t.path);if(!E(n))return e;var r=jv(e=xv(e,Zr(n)));return r.isRoot,r.path},e.getEnv=function(){var e=tu(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return{isBrowser:e=e||t,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getExcelU8ArrFromData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!yo(e)){var n="no data";return{error:n}}E(t)||(t="data");var r=null;try{var o=ev(e,t),i=Jd().write(o,{bookType:"xlsx",type:"binary"});r=lu(i)}catch(e){return{error:e}}return r},e.getExcelWorkbookFromData=ev,e.getExcelWorkbookFromWorksheet=Qd,e.getFileAccept=_f,e.getFileName=Tv,e.getFileTrueName=function(e){if(!E(e))return"";var t=Tv(e),n=va(t,".");if(Zr(n)<=1)return t;var r="";try{n=Pv(n),r=Ca(n,".")}catch(e){}return r},e.getGlobal=os,e.getObjSize=function(e){var t=0,n=function e(n){if(null!=n)switch(C(n)){case"number":t+=8;break;case"string":t+=2*n.length;break;case"boolean":t+=4;break;case"object":var r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r||"Array"===r)for(var o in n)n.hasOwnProperty(o)&&e(n[o]);else t+=2*n.toString().length}return t}(e);return{int:n,str: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)}},e.getTimeBetween=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",r=Lv(n);if(""===r)return[];var o=Hv(e,n),i=Hv(t,n);if(null===o||null===i)return[];if(e>=t)return[];var a=i.diff(o,n)+1,u=wi(Yv(a),(function(e){return o.clone().add(e,n).format(r)}));return u},e.getTimeFromUnit=Lv,e.getTimeObject=Hv,e.getTimeRange=function(e,t){if(!Fv(e))return"無起始時間";if(void 0===t&&(t=e),!Fv(t))return"結束時間格式錯誤";var n=d.default(e,"YYYY-MM-DDTHH:mm:ss"),r=d.default(t,"YYYY-MM-DDTHH:mm:ss"),o=n.format("YYYY-MM-DD"),i=r.format("YYYY-MM-DD");if(o===i){var a=r.format("HH:mm");if(e===t)return zv(e)+" 至 無";if(e<t)return zv(e)+" 至 "+a;if(e>t)return zv(e)+" 至 "+a+" (起始時間大於結束時間)"}else{if(o<i)return zv(e)+" 至 "+zv(t);if(o>i)return zv(e)+" 至 "+zv(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=Nv,e.getUserAgentDyn=function(){return Uv.apply(this,arguments)},e.getltdtkeys=tv,e.haskey=uo,e.html2pic=Xv,e.html2picDyn=function(e){return $v.apply(this,arguments)},e.html2str=Gv,e.html2strDyn=function(e,t){return Zv.apply(this,arguments)},e.htmlDecode=function(e){var t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML},e.htmlEncode=cu,e.importResources=Ts,e.interp1=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!fo(e))return{err:"ps is not array"};if(!ea(t))return{err:"x is not number"};var r=rh(e,n);if(Mt(r,"err"))return Mt(r,"err");if(0===Zr(r))return{err:"ps(length=0) is not effective array",ps:e,psEff:r};if(1===Zr(r))return{err:"ps(length=1) is one point only",ps:e,psEff:r};var o=oh(r);if("no"===o)return{err:"psEff is not increasing or decreasing"};o===nh&&(o=th,r=Jv(r));var i=Mt(n,"mode");"linear"!==i&&"stairs"!==i&&"blocks"!==i&&(i="linear");try{if("linear"===i)return ah(r,t);if("blocks"===i)return ch(r,t);if("stairs"===i)return uh(r,t,n)}catch(e){return{err:e.toString()}}},e.isDev=function(){return!!location&&Qa(location.href,"localhost")},e.isEle=Kc,e.isEleExistByID=function(e){return!!E(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!E(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isIE=bs,e.isNarrow=function(e){if(!tu())return!1;var t=window.innerWidth>0&&window.innerWidth<=1024,n=!1;if(e){var r=Mt(e,"clientWidth",0);n=r>0&&r<=700}return t||n},e.isStrHasCapital=ph,e.isStrHasLowerCase=dh,e.isStrHasNumber=xa,e.isUserIdentify=function(e){var t=eu();if(!E(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);var 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){var t=eu();return E(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPW=function(e){var t=eu();if(!k(e))return t.reject("密碼非字串"),t;var n=[];return e.length<8&&n.push("長度須大於8個字元"),e.length>30&&n.push("長度須小於30個字元"),ph(e)&&dh(e)&&xa(e)||n.push("須包含大寫、小寫英文與數字各1個字元"),Qa(e,["<",">"])&&n.push("不能使用特殊符號(<,>)"),Qa(e,["select","insert","update","delete"])&&n.push("不能使用指令(select,insert,update,delete)"),n.length>0?t.reject(Ca(n,",")):t.resolve(),t},e.isWindow=tu,e.isab=O,e.isarr=fo,e.isarr0=go,e.isblob=fu,e.isbol=ye,e.isday=ns,e.isearr=yo,e.iseobj=ao,e.iser=mo,e.isernot=jf,e.isestr=E,e.isfun=ia,e.isint=fe,e.ismonth=A,e.isn0int=sh,e.isn0num=fh,e.isnbr=ue,e.isnint=ju,e.isnnum=function(e){return!!ce(e)&&se(e)<0},e.isnull=po,e.isnum=ce,e.isobj=io,e.isobj0=vo,e.isp0int=Fo,e.isp0num=lh,e.ispint=oo,e.ispm=bu,e.ispnum=Ki,e.isstr=k,e.isstr0=ho,e.istime=Fv,e.istimeTZ=yh,e.istimems=vh,e.istimemsTZ=mh,e.isu16arr=bv,e.isu8arr=Za,e.isundefined=lo,e.j2o=$a,e.keysmat2ltdt=bh,e.log=function(){var e=null;return{init:function(t){if(!ia(t))throw new Error("loggerFun is not function");e=t},log:function(t,n,r){if(null===e)throw new Error("no logger: need to construct by init");var o=wh(),i={id:us(),from:t,level:n,msg:uu(r),time:o};return e(i)}}},e.ltdt2vrtsable=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!yo(e))return[];if(!fo(t))return[];var n=!1;if(sn(e,(function(e){ao(e)||(n=!0)})),n)return[];var r=tv(e),o=[];sn(e,(function(e){var t={};sn(r,(function(n){t[n]={value:e[n].value,style:e[n].style,rowspan:1}})),o.push(t)}));var i=Jv(o),a=Zr(i);sn(r,(function(e){if(ta(e,t)){var n=Oo(0,a,0),r=Oo(0,a,0),o=Oo(1,a+1,0);sn(i,(function(t,a){if(a>0){var u=i[a-1][e].value,c=i[a][e].value;Qi(u,c)&&(n[a-1]=1,n[a]=1,o[a]=o[a-1]+1),1===n[a-1]&&1===n[a]&&(r[a-1]=0,r[a]=1)}})),sn(i,(function(t,a){1===n[a]&&(1===r[a]?i[a][e].rowspan=o[a]:i[a][e].rowspan=null)}))}}));var u=Jv(i);return u},e.ltdtdiff=function(e,t,n){if(!E(n))return console.log("invalid key"),{infor:{},del:[],same:[],diff:[],add:[]};fo(e)||(e=[e]),fo(t)||(t=[t]);var r={},o=[],i=[],a=[];sn(e,(function(e){if(uo(e,n)){var u=Su({},n,e[n]),c=_h(t,u);mo(c)?(o.push(e),r[e[n]]="del"):Qi(e,c)?(a.push(c),r[c[n]]="same"):(i.push(c),r[c[n]]="diff")}}));var u=[];return sn(t,(function(t){if(uo(t,n)){var o=Su({},n,t[n]);mo(_h(e,o))&&(u.push(t),r[t[n]]="add")}})),{infor:r,del:o,same:a,diff:i,add:u}},e.ltdtkeys2mat=nv,e.ltdtkeysheads2mat=rv,e.ltdtmapping=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!yo(e))return[];if(!yo(t))return[];var r=wi(e,(function(e){return uv(e,t,n)}));return r},e.ltdtmerge=fv,e.ltdtpick=function(e,t){return yo(e)&&yo(t)?wi(e,(function(e){return cv(e,t)})):[]},e.ltdtpull=function(e,t,n){return fo(e)&&fo(t)&&E(n)&&kh(e,(function(e){return io(e)}))?0===t.length?e:kh(t,(function(e){return io(e)}))?Ah(e,t,n):[]:[]},e.mat2ltdt=function(e){if(!yo(e))return[];if(e.length<=1)return[];var t=!1;return sn(e,(function(e){yo(e)||(t=!0)})),t?[]:bh(Mh(e)[0],Dh(e))},e.matConcat=function(e,t){if(!fo(e))return[];if(!fo(t))return[];if(0===Zr(e)&&0===Zr(t))return[];for(var n=Zr(e),r=Zr(Mt(e,0,[])),o=Zr(t),i=Zr(Mt(t,0,[])),a=[],u=Math.max(n,o),c=0;c<u;c++){for(var s=[],f=-1,l=0;l<r;l++){f++;var p=Mt(e,"".concat(c,".").concat(l),null);s[f]=p}for(var d=0;d<i;d++){f++;var v=Mt(t,"".concat(c,".").concat(d),null);s[f]=v}a[c]=s}return a},e.matat=function(e,t,n){return yo(e)?wi(e,(function(e){return zo(e,t,n)})):[]},e.now2str=function(){return d.default().format("YYYY-MM-DDTHH:mm:ssZ")},e.now2strp=function(){return d.default().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){return d.default().format("YYYY-MM-DD")},e.nowms2str=wh,e.nowms2strp=function(){return d.default().format("YYYYMMDDHHmmssSSS")},e.o2j=uu,e.obj2b64=function(e){var t="";try{t=Th(uu(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":E(t)?Ph(uu({data:e}),t,!0):""},e.obj2str=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(lo(e))return"";if(k(t))t=[t];else if(!fo(t))return"";function n(e,n){return t.indexOf("Uint8Array")>=0&&(n=Fh.u8arr2b64(n)),t.indexOf("Uint16Array")>=0&&(n=Fh.u16arr2b64(n)),n}var r="";try{r=JSON.stringify(e,n)}catch(e){r=""}return r},e.obj2stru8arr=Rh,e.obj2u8arr=function(e){var t=[],n=[];if(!yo(e)&&!ao(e))return null;var r=[],o=[];function i(e){r.push(wv(e)),o.push(e)}try{var a=Rh(e);i(Nh(a.results)),sn(a.binarys,(function(e){i(e)}));var u=r,c=Nh(JSON.stringify(u)),s=new Uint8Array(8);hu(wv(c),s),t.push(s),t.push(c),sn(o,(function(e){t.push(e)})),sn(t,(function(e){n=function(e,t){var n=wv(e),r=wv(t),o=new Uint8Array(n+r);return o.set(new Uint8Array(e),0),o.set(new Uint8Array(t),n),o}(n,e)}))}catch(e){return null}return n},e.objSortBy=Uh,e.objSortByKeys=function(e,t){if(!ao(e))return{};if(!yo(t))return{};var n={};return sn(t,(function(e,t){n[e]=t})),Uh(e,(function(e,t){return Mt(n,t,0)}))},e.ocr=qh,e.ocrDyn=function(e){return Vh.apply(this,arguments)},e.oo=function(e){if(void 0!==e)return $a(uu(e))},e.openLink=function(e){if(E(e)){var 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 E(e)&&E(t)?$a(be(e,t,!0)).data:""},e.pm2resolve=$d,e.pmChain=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!fo(e)){var n=eu();return n.reject("pms is not array"),n}return e.reduce((function(e,t){return e.then(t)}),Promise.resolve(t))},e.pmHook=$h,e.pmHookReject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return ia(e)?(ia(t)||(t=function(){}),$h(e,(function(e){if("afterCatch"===e.mode)return t(e.data)}))):null},e.pmIni=function(){return Promise.resolve()},e.pmMap=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r={},o=!1,i=eu();if(!fo(e)&&!io(e))return i.reject("rs is not array or object"),i;var a=!1;if(io(e)){a=!0;var u=[];sn(e,(function(e,t){u.push({k:t,v:e})})),e=u}var c=Gd(n);return c.on("message",(function(n){if(!o){var u,s=c.get();if(ia(t)){var f=s.key,l=s.value;a&&(f=s.value.k,l=s.value.v),u=t(l,f)}else u=s.value;u.then((function(e){r[s.key]=e})).catch((function(e){o=!0,c.clear(),i.reject(e)})).finally((function(){c.cb(),Zr(r)===e.length&&i.resolve(kv(r))}))}})),sn(e,(function(e,t){c.push({key:t,value:e})})),i},e.pmQueue=Zd,e.pmSeries=Es,e.pmThrottle=function(){var e=Jr(),t=[],n=null,r=!1;function o(){null===n&&(n=setInterval(mu(yu.mark((function o(){var i,a,u,c,s,f;return yu.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!r){o.next=2;break}return o.abrupt("return");case 2:for(r=!0,i=t.pop(),a=0;a<t.length;a++)u=t[a].id,c={state:"cancelled"},e.emit(u,c);if(t=[],!i){o.next=16;break}if(f=i.id,!ia(i.func)){o.next=14;break}return o.next=11,$d(i.func).apply(void 0,oa(i.input));case 11:s=o.sent,o.next=15;break;case 14:s={state:"error",msg:"fun is not function"};case 15:e.emit(f,s);case 16:(r=!1)||0!==t.length||(clearInterval(n),n=null);case 18:case"end":return o.stop()}}),o)}))),10))}return function(n){var r=eu();if(ia(n)){for(var i=us(),a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];return t.push({id:i,func:n,input:u}),o(),e.once(i,(function(e){"success"===e.state?r.resolve(e.msg):"cancelled"===e.state?r.reject({reason:"cancelled"}):r.reject(e.msg)})),r}console.log("func is not function")}},e.queue=Gd,e.rang=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!ce(e))return[];if(e=se(e),!ce(t))return[];if(t=se(t),ce(n)||(n=2),(n=ro(n))<2&&(n=2),2===n)return[e,t];var r=(t-e)/(n-1),o=e,i=[];i.push(e);for(var a=1;a<=n;a++)o+=r,i.push(o);return i},e.rep=function(e,t){return E(e)&&Fo(t)?Kh(e,t):""},e.repObj=function(e,t){return mo(e)?[]:oo(t)?Yv(t,Co(e)):[]},e.replace=Eu,e.replaceObj=function(e,t){if(!E(e))return"";if(!ao(t))return"";var n=!1;return sn(t,(function(e,t){k(e)||(n=!0)})),n?"":(sn(t,(function(t,n){e=Eu(e,n,t)})),e)},e.replacePlus=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;if(!E(e)||!E(t)||!E(n))return"";if(!k(o))return"";var i="[\\s\\S]*";E(r)&&(i="[^"+r+"]*");var a=t+i+n,u=new RegExp(a,"g"),c=e.replace(u,o);return c},e.round=function(e){return ce(e)?(e=se(e),no(e)):""},e.secd=function(e){return ce(e)?1/Qc(e=se(e)):null},e.sep=qi,e.sepInt=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!fe(e))return[];if(!Fo(t))return[];if(!ye(n))return[];for(var r=Jh(e/t),o=e-r*t,i=[],a=1;a<=t;a++){var u=r;a<=o&&(u=r+1),i.push(u)}return n&&(i=Jv(i)),i},e.sind=ts,e.split=Wi,e.str2aes=Ph,e.str2b64=Th,e.str2md5=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var n=de(e);return t?n.toString(pe):n.toString(ge)},e.str2obj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(k(t))t=[t];else if(!fo(t))return{};function n(e,n){return t.indexOf("Uint8Array")>=0&&(n=Fh.b642u8arr(n)),t.indexOf("Uint16Array")>=0&&(n=Fh.b642u16arr(n)),n}var r={};try{r=JSON.parse(e,n)}catch(e){r={}}return r},e.str2sha512=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var n=Qh(e);return t?n.toString(pe):n.toString(ge)},e.str2u8arr=Nh,e.strCompare=eg,e.strFindFuzz=ig,e.strFindFuzzDyn=function(e,t){return ag.apply(this,arguments)},e.strFindSimilar=function(e,t){var n="";if(E(e)||ce(e))n=Au(e);else{if(!yo(e))return{};n=Ca(e,"")}return ce(t)&&(t=Au(t)),E(t)&&(t=[t]),yo(t)?function(e,t){for(var n=[],r=0,o=0;o<t.length;o++){var i=t[o],a=eg(e,i);n.push({target:i,rating:a}),a>n[r].rating&&(r=o)}return{ratings:n,bestMatch:n[r],bestMatchIndex:r}}(n,t=wi(t,(function(e){return Au(e)}))):{}},e.strdelleft=$i,e.strdelright=xv,e.strleft=Xi,e.strmid=ja,e.strright=Vi,e.stru8arr2obj=ug,e.tand=es,e.time2day=function(e){return Fv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return Fv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=zv,e.timeTZ2day=function(e){return yh(e)?(e=gh.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return yh(e)?cg(e=fg(e),t=fg(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return yh(e)?(e=gh.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return yh(e)?(e=gh.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return yh(e)?sg(e=lg(e),t=lg(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return vh(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return vh(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return vh(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return vh(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return mh(e)?(e=gh.delTZ(e),d.default(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=cg,e.timemsTZ2hour=function(e){return mh(e)?(e=gh.delTZ(e),d.default(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return mh(e)?(e=gh.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=sg,e.timemsTZ2time=function(e){return mh(e)?(e=gh.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=$c,e.trim=sv,e.u16arr2b64=Lh,e.u16arr2u8arr=Yh,e.u8arr2ab=function(e){return Za(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=Ih,e.u8arr2blob=av,e.u8arr2bs=function(e){if(!Za(e))return"";for(var t=e.length,n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},e.u8arr2obj=function(e){var t=null;if(!Za(e))return null;try{var n=e.slice(0,8),r=e.slice(8,wv(e)),o=du(n),i=r.slice(0,o),a=r.slice(o,wv(r)),u=pg(i),c=function(e,t){var n=0,r=0,o=[];return sn(t,(function(t){r=n+t;var i=e.slice(n,r);n=r,o.push(i)})),o}(a,JSON.parse(u));t=ug({results:pg(c.shift()),binarys:c})}catch(e){}return t},e.u8arr2str=pg,e.u8arr2u16arr=Ka,e.urlParse=function(e){if(!E(e))return{};if(e=va(e,"?"),!E(e=Mt(e,"[1]")))return{};var t=va(e,"&");return t=wi(t,(function(e){return va(e,"=")})),t=dg(t)},e.verifyValue=function(e,t){var n=!1,r="";if("isstr"===t)k(e)||(n=!0,r="需要為字串",e="");else if("isnum"===t)ce(e)||(n=!0,r="需要為數字",e=0);else if("isp0num"===t)lh(e)||(n=!0,r="需要為含0的正浮點數",e=0);else if("isn0num"===t)fh(e)||(n=!0,r="需要為含0的負浮點數",e=0);else if("isint"===t)fe(e)||(n=!0,r="需要為整數",e=0);else if("ispint"===t)oo(e)||(n=!0,r="需要為不含0正整數",e=0);else if("isp0int"===t)Fo(e)||(n=!0,r="需要為含0正整數",e=0);else if("isnint"===t)ju(e)||(n=!0,r="需要為不含0負整數",e=0);else if("isn0int"===t)sh(e)||(n=!0,r="需要為含0負整數",e=0);else if(ia(t)){e=t(e)}else"any"===t?ce(e)||k(e)||(n=!0,r="需要為字串或數字",e=""):(n=!0,r="需要指定驗證類型",e=null);return{value:e,err:n,errmsg:r}},e.waitFun=wu,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
25
|
+
*/!function(e){var t={},n=e._dec,r=e._hex,o=e._pad4;function i(e){return e.replace(/[- _]+/g,"").toLowerCase()}function a(e){var t=/^\\[xu](.+)/.exec(e);return t?n(t[1]):e.charCodeAt("\\"===e.charAt(0)?1:0)}function u(n){return t[n]["b!"]||(t[n]["b!"]=function(t){var n="",i=-1;return e.forEach(t,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,(function(e){var t=a(e[1]);t>i+1&&(n+="\\u"+o(r(i+1)),t>i+2&&(n+="-\\u"+o(r(t-1)))),i=a(e[2]||e[1])})),i<65535&&(n+="\\u"+o(r(i+1)),i<65534&&(n+="-\\uFFFF")),n}(t[n].bmp))}e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,(function(e,n,r){var o="P"===e[1]||!!e[2],a=i(e[4]||e[3]),c=t[a];if("P"===e[1]&&e[2])throw new SyntaxError("Invalid double negation "+e[0]);if(!t.hasOwnProperty(a))throw new SyntaxError("Unknown Unicode token "+e[0]);if(c.inverseOf){if(a=i(c.inverseOf),!t.hasOwnProperty(a))throw new ReferenceError("Unicode token missing data "+e[0]+" -> "+c.inverseOf);c=t[a],o=!o}if(!c.bmp)throw new SyntaxError("Astral mode required for Unicode token "+e[0]);return"class"===n?o?u(a):c.bmp:(o?"[^":"[")+c.bmp+"]"}),{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(n){for(var r,o=0;o<n.length;++o){if(!(r=n[o]).name)throw new Error("Unicode token requires name");if(!(r.inverseOf||r.bmp||r.astral))throw new Error("Unicode token has no character data "+r.name);t[i(r.name)]=r,r.alias&&(t[i(r.alias)]=r)}e.cache.flush("patterns")},e._getUnicodeProperty=function(e){var n=i(e);return t[n]}}(Z),function(e){if(!e.addUnicodeData)throw new ReferenceError("Unicode Base must be loaded before Unicode Categories");e.addUnicodeData([{name:"L",alias:"Letter",bmp:"A-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢄᢇ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿯ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-Ᶎꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭧꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"},{name:"N",alias:"Number",bmp:"0-9²³¹¼-¾٠-٩۰-۹߀-߉०-९০-৯৴-৹੦-੯૦-૯୦-୯୲-୷௦-௲౦-౯౸-౾೦-೯൘-൞൦-൸෦-෯๐-๙໐-໙༠-༳၀-၉႐-႙፩-፼ᛮ-ᛰ០-៩៰-៹᠐-᠙᥆-᥏᧐-᧚᪀-᪉᪐-᪙᭐-᭙᮰-᮹᱀-᱉᱐-᱙⁰⁴-⁹₀-₉⅐-ↂↅ-↉①-⒛⓪-⓿❶-➓⳽〇〡-〩〸-〺㆒-㆕㈠-㈩㉈-㉏㉑-㉟㊀-㊉㊱-㊿꘠-꘩ꛦ-ꛯ꠰-꠵꣐-꣙꤀-꤉꧐-꧙꧰-꧹꩐-꩙꯰-꯹0-9"}])}(Z);var K=Z,J={exports:{}};return function(e){e.exports=function(t,n,r,o){return(e={}).dedupe=function(e,i){var a,u=t(i);if(!n(e)&&"object"!=C(e))throw new Error("contains_dupes must be an array or object");if(0===Object.keys(e).length)return void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("contains_dupes is empty"),[];u.limit&&(void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("options.limit will be ignored in dedupe"),u.limit=0),u.cutoff&&"number"==typeof u.cutoff||(void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Using default cutoff of 70"),u.cutoff=70),u.scorer||(u.scorer=r,void 0!==("undefined"==typeof console?"undefined":C(console))&&console.log("Using default scorer 'ratio' for dedupe")),a=u.processor&&"function"==typeof u.processor?u.processor:function(e){return e};var c={};for(var s in e){var f=a(e[s]);if("string"!=typeof f&&f instanceof String==0)throw new Error("Each processed item in dedupe must be a string.");var l=o(f,e,u);u.returnObjects?(1===l.length||(l=l.sort((function(e,t){var n=a(e.choice),r=a(t.choice),o=n.length,i=r.length;return o===i?n<r?-1:1:i-o}))),u.keepmap?c[a(l[0].choice)]={item:l[0].choice,key:l[0].key,matches:l}:c[a(l[0].choice)]={item:l[0].choice,key:l[0].key}):(1===l.length||(l=l.sort((function(e,t){var n=a(e[0]),r=a(t[0]),o=n.length,i=r.length;return o===i?n<r?-1:1:i-o}))),u.keepmap?c[a(l[0][0])]=[l[0][0],l[0][2],l]:c[a(l[0][0])]=[l[0][0],l[0][2]])}var p=[];for(var d in c)p.push(c[d]);return p},e}}(J),function(){var e=c,n=d,r=v.exports.intersection,o=v.exports.intersectionWith,i=v.exports.difference,a=v.exports.differenceWith,u=v.exports.uniq,s=v.exports.uniqWith,f=v.exports.partialRight,l=v.exports.forEach,p=v.exports.keys,h=v.exports.isArray,m=v.exports.toArray,w=v.exports.orderBy,x=g,j=y,_=b,O=function(e,t,n){var r={},o=K,i=y,a=b;function u(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function c(e){return("string"==typeof e||e instanceof String)&&e.length>0}r.validate=c,r.process_and_sort=function(e){return c(e)?e.match(/\S+/g).sort().join(" ").trim():""},r.tokenize=function(r,o){if(o&&o.wildcards&&t&&n){var u=n(i,o,a);return t(r.match(/\S+/g),(function(e,t){return 0===u(e,t)}))}return e(r.match(/\S+/g))};var s=o("[^\\pN|\\pL]","g");return r.full_process=function(e,t){if(!(e instanceof String)&&"string"!=typeof e)return"";var n;if(t&&"object"==C(t)&&t.wildcards&&"string"==typeof t.wildcards&&t.wildcards.length>0){var r=t.wildcards.toLowerCase();if(e=e.toLowerCase(),t.force_ascii){var i="[^\0 -|"+u(r)+"]";e=e.replace(new RegExp(i,"g"),"");var a="["+u(r)+"]",c=r[0];e=e.replace(new RegExp(a,"g"),c);var f="[^A-Za-z0-9"+u(r)+"]";n=(e=(e=e.replace(new RegExp(f,"g")," ")).replace(/_/g," ")).trim()}else{var l="[^\\pN|\\pL|"+u(r)+"]",p=o(l,"g");e=o.replace(e,p," ","all"),a="["+u(r)+"]",c=r[0],n=(e=e.replace(new RegExp(a,"g"),c)).trim()}}else t&&(t.force_ascii||!0===t)&&(n=(e=e.replace(/[^\x00-\x7F]/g,"")).replace(/\W|_/g," ").toLowerCase().trim()),n=o.replace(e,s," ","all").toLowerCase().trim();return t&&t.collapseWhitespace&&(n=n.replace(/\s+/g," ")),n},r.clone_and_set_option_defaults=function(e){if(e&&e.isAClone)return e;var t={isAClone:!0};if(e){var n,r=Object.keys(e);for(n=0;n<r.length;n++)t[r[n]]=e[r[n]]}return void 0!==t.full_process&&!1===t.full_process||(t.full_process=!0),void 0!==t.force_ascii&&!0===t.force_ascii||(t.force_ascii=!1),void 0!==t.normalize&&!1===t.normalize||(t.normalize=!0),void 0!==t.astral&&!0===t.astral&&(t.full_process=!1),void 0!==t.collapseWhitespace&&!1===t.collapseWhitespace||(t.collapseWhitespace=!0),t},r.isCustomFunc=function(e){return"function"!=typeof e||"token_set_ratio"!==e.name&&"partial_token_set_ratio"!==e.name&&"token_sort_ratio"!==e.name&&"partial_token_sort_ratio"!==e.name&&"QRatio"!==e.name&&"WRatio"!==e.name&&"distance"!==e.name&&"partial_ratio"!==e.name},r}(u,s,f),S=O.validate,k=O.process_and_sort,E=O.tokenize,A=O.full_process,M=O.clone_and_set_option_defaults,D=O.isCustomFunc,T=J.exports(M,h,P,H).dedupe;function P(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?ee(e,t,r):0}function I(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?X(e,t,r):0}function Y(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?(r.partial=!0,X(e,t,r)):0}function L(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?(r.proc_sorted||(e=k(e),t=k(t)),ee(e,t,r)):0}function B(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?(r.partial=!0,r.proc_sorted||(e=k(e),t=k(t)),te(e,t,r)):0}function H(e,t,r){var o,i=M(r);if(h(t))o=t.length;else{if(!(t instanceof Object))throw new Error("Invalid choices");o=p(t).length}if(!t||0===o)return void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("No choices"),[];if(i.processor&&"function"!=typeof i.processor)throw new Error("Invalid Processor");if(i.processor||(i.processor=function(e){return e}),i.scorer&&"function"!=typeof i.scorer)throw new Error("Invalid Scorer");i.scorer||(i.scorer=P);var a=D(i.scorer);i.cutoff&&"number"==typeof i.cutoff||(i.cutoff=-1);var u=function(e,t){return e};i.full_process&&(u=A,a||(i.processed=!0));var c=!1;a||(e=u(e,i),i.full_process=!1,i.astral&&i.normalize&&(i.normalize=!1,String.prototype.normalize?(c=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Processed query is empty string"));var s,f,d,v,g=[],m=!1,y=!1,b=!1;if("token_sort_ratio"===i.scorer.name||"partial_token_sort_ratio"===i.scorer.name){var w=k(e);y=!0}else if("token_set_ratio"===i.scorer.name||"partial_token_set_ratio"===i.scorer.name){var x=E(e,i);b=!0}return i.returnObjects?(d=function(e,t){return e.score-t.score},v=function(e,t){return t.score-e.score}):(d=function(e,t){return e[1]-t[1]},v=function(e,t){return t[1]-e[1]}),l(t,(function(t,n){i.tokens=void 0,i.proc_sorted=!1,y?(i.proc_sorted=!0,t&&t.proc_sorted?f=t.proc_sorted:(f=u(i.processor(t),i),f=k(c?f.normalize():f)),s=i.scorer(w,f,i)):b?(f="x",t&&t.tokens?(i.tokens=[x,t.tokens],i.trySimple&&(f=u(i.processor(t),i))):(f=u(i.processor(t),i),i.tokens=[x,E(c?f.normalize():f,i)]),s=i.scorer(e,f,i)):a?(f=i.processor(t),s=i.scorer(e,f,i)):("string"==typeof(f=u(i.processor(t),i))&&0!==f.length||(m=!0),c&&"string"==typeof f&&(f=f.normalize()),s=i.scorer(e,f,i)),s>i.cutoff&&(i.returnObjects?g.push({choice:t,score:s,key:n}):g.push([t,s,n]))})),m&&void 0!==("undefined"==typeof console?"undefined":C(console))&&console.log("One or more choices were empty. (post-processing if applied)"),i.limit&&"number"==typeof i.limit&&i.limit>0&&i.limit<o&&!i.unsorted?g=n.nlargest(g,i.limit,d):i.unsorted||(g=g.sort(v)),g}function F(e,t,r,o){var i,a,u=M(r);"object"==C(r.abortController)&&(i=r.abortController),"object"==C(r.cancelToken)&&(a=r.cancelToken);var c=256;"number"==typeof u.asyncLoopOffset&&(c=u.asyncLoopOffset<1?1:u.asyncLoopOffset);var s,f=!1;if(t&&t.length&&h(t))s=t.length,f=!0;else{if(!(t instanceof Object))return void o(new Error("Invalid choices"));s=Object.keys(t).length}if(!t||0===s)return void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("No choices"),void o(null,[]);if(u.processor&&"function"!=typeof u.processor)o(new Error("Invalid Processor"));else if(u.processor||(u.processor=function(e){return e}),u.scorer&&"function"!=typeof u.scorer)o(new Error("Invalid Scorer"));else{u.scorer||(u.scorer=P);var l=D(u.scorer);u.cutoff&&"number"==typeof u.cutoff||(u.cutoff=-1);var p=function(e,t){return e};u.full_process&&(p=A,l||(u.processed=!0));var d=!1;l||(e=p(e,u),u.full_process=!1,u.astral&&u.normalize&&(u.normalize=!1,String.prototype.normalize?(d=!0,e=e.normalize()):void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Normalization not supported in your environment")),0===e.length&&void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Processed query is empty string"));var v,g,m,y,b,w=[],x=!1,j=!1,_=!1;if("token_sort_ratio"===u.scorer.name||"partial_token_sort_ratio"===u.scorer.name){var O=k(e);j=!0}else if("token_set_ratio"===u.scorer.name||"partial_token_set_ratio"===u.scorer.name){var S=E(e,u);_=!0}u.returnObjects?(y=function(e,t){return e.score-t.score},b=function(e,t){return t.score-e.score}):(y=function(e,t){return e[1]-t[1]},b=function(e,t){return t[1]-e[1]});var T=Object.keys(t);f?I(0):I(T[0],0)}function I(r,h){(f||t.hasOwnProperty(r))&&(u.tokens=void 0,u.proc_sorted=!1,j?(u.proc_sorted=!0,t[r]&&t[r].proc_sorted?g=t[r].proc_sorted:(g=p(u.processor(t[r]),u),g=k(d?g.normalize():g)),m=u.scorer(O,g,u)):_?(g="x",t[r]&&t[r].tokens?(u.tokens=[S,t[r].tokens],u.trySimple&&(g=p(u.processor(t[r]),u))):(g=p(u.processor(t[r]),u),u.tokens=[S,E(d?g.normalize():g,u)]),m=u.scorer(e,g,u)):l?(g=u.processor(t[r]),m=u.scorer(e,g,u)):("string"==typeof(g=p(u.processor(t[r]),u))&&0!==g.length||(x=!0),d&&"string"==typeof g&&(g=g.normalize()),m=u.scorer(e,g,u)),v=f?parseInt(r):r,m>u.cutoff&&(u.returnObjects?w.push({choice:t[r],score:m,key:v}):w.push([t[r],m,v]))),i&&!0===i.signal.aborted?o(new Error("aborted")):a&&!0===a.canceled?o(new Error("canceled")):f&&r<t.length-1?r%c==0?setImmediate((function(){I(r+1)})):I(r+1):h<T.length-1?h%c==0?setImmediate((function(){I(T[h+1],h+1)})):I(T[h+1],h+1):(x&&void 0!==("undefined"==typeof console?"undefined":C(console))&&console.log("One or more choices were empty. (post-processing if applied)"),u.limit&&"number"==typeof u.limit&&u.limit>0&&u.limit<s&&!u.unsorted?w=n.nlargest(w,u.limit,y):u.unsorted||(w=w.sort(b)),o(null,w))}}var z="%*SuperUniqueWildcardKey*%",R=!1;function N(e,t){var n=e;if(t.astral){t.normalize&&(String.prototype.normalize?n=e.normalize():R||(void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Normalization not supported in your environment"),R=!0));var r=m(n)}else r=n.split("");var o={};if(t.wildcards)for(var i=0;i<r.length;i++){var a=r[i];t.wildcards.indexOf(a)>-1?o[z]?o[z]+=1:o[z]=1:o[a]?o[a]+=1:o[a]=1}else for(i=0;i<r.length;i++)o[a=r[i]]?o[a]+=1:o[a]=1;return o}function U(e,t,n){for(var o=t,i=e.reduce((function(e,t){return e[t]=N(t,n),e}),{}),a=o.reduce((function(e,t){return e[t]=N(t,n),e}),{}),u=[],c=0;o.length&&c<e.length;){var s=w(o,(function(t){return n=i[e[c]],o=a[t],u=Object.keys(n),s=Object.keys(o),f=r(u,s).map((function(e){return n[e]*o[e]})).reduce((function(e,t){return e+t}),0),l=u.map((function(e){return Math.pow(n[e],2)})).reduce((function(e,t){return e+t}),0),p=s.map((function(e){return Math.pow(o[e],2)})).reduce((function(e,t){return e+t}),0),f/(Math.sqrt(l)*Math.sqrt(p));var n,o,u,s,f,l,p}),"desc")[0];u.push(s),c++,o=o.filter((function(e){return e!==s}))}return u.concat(o)}function W(e,t,n,r){var o=t,i=r;return(t.length>r.length||t.length===r.length&&(e.length>n.length||[e,n].sort()[0]===n))&&(o=r,i=t),[o,i]}function q(e,t,n){if(n.tokens)r=n.tokens[0],o=n.tokens[1];else var r=E(e,n),o=E(t,n);var i=W(e,r.sort(),t,o.sort()),a=i[0],u=U(a,i[1],n);return n.partial?te(a.join(" "),u.join(" "),n):ee(a.join(" "),u.join(" "),n)}function X(e,t,n){if(n.tokens)u=n.tokens[0],c=n.tokens[1];else var u=E(e,n),c=E(t,n);if(n.wildcards)var s=f(j,n,_),l=function(e,t){return 0===s(e,t)},p=o(u,c,l),d=a(u,c,l),v=a(c,u,l);else p=r(u,c),d=i(u,c),v=i(c,u);var h=p.sort().join(" "),g=d.sort(),m=v.sort();if(n.sortBySimilarity)var y=W(e,g,t,m),b=y[0],w=y[1],x=b.join(" "),O=U(b,w,n).join(" ");else x=g.join(" "),O=m.join(" ");var S=h+" "+x,k=h+" "+O;h=h.trim(),S=S.trim(),k=k.trim();var A=ee;if(n.partial&&(A=te,h.length>0))return 100;var M=[A(h,S,n),A(h,k,n),A(S,k,n)];return n.trySimple&&M.push(A(e,t,n)),Math.max.apply(null,M)}var V,$,G,Z,Q=!1;function ee(t,n,r){if(!S(t))return 0;if(!S(n))return 0;if(r.ratio_alg&&"difflib"===r.ratio_alg){var o=new e(null,t,n).ratio();return Math.round(100*o)}var i,a;return void 0===r.subcost&&(r.subcost=2),r.astral?(r.normalize&&(String.prototype.normalize?(t=t.normalize(),n=n.normalize()):Q||(void 0!==("undefined"==typeof console?"undefined":C(console))&&console.warn("Normalization not supported in your environment"),Q=!0)),i=x(t,n,r,m),a=m(t).length+m(n).length):r.wildcards?(i=j(t,n,r,_),a=t.length+n.length):(i=_(t,n,r),a=t.length+n.length),Math.round((a-i)/a*100)}function te(t,n,r){if(!S(t))return 0;if(!S(n))return 0;if(t.length<=n.length)var o=t,i=n;else o=n,i=t;for(var a=new e(null,o,i).getMatchingBlocks(),u=[],c=0;c<a.length;c++){var s=a[c][1]-a[c][0]>0?a[c][1]-a[c][0]:0,f=s+o.length,l=ee(o,i.substring(s,f),r);if(l>99.5)return 100;u.push(l)}return Math.max.apply(null,u)}Object.keys||(Object.keys=(V=Object.prototype.hasOwnProperty,$=!{toString:null}.propertyIsEnumerable("toString"),Z=(G=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!=C(e)&&("function"!=typeof e||null===e))throw new TypeError("Object.keys called on non-object");var t,n,r=[];for(t in e)V.call(e,t)&&r.push(t);if($)for(n=0;n<Z;n++)V.call(e,G[n])&&r.push(G[n]);return r}));var ne=void 0;"undefined"!=typeof Promise&&(ne=function(e,t,n){return new Promise((function(r,o){F(e,t,n,(function(e,t){e?o(e):r(t)}))}))});var re={distance:function(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,void 0===r.subcost&&(r.subcost=1),r.astral?x(e,t,r,m):j(e,t,r,_)},ratio:P,partial_ratio:function(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?te(e,t,r):0},token_set_ratio:I,token_sort_ratio:L,partial_token_set_ratio:Y,partial_token_sort_ratio:B,token_similarity_sort_ratio:function(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?q(e,t,r):0},partial_token_similarity_sort_ratio:function(e,t,n){var r=M(n);return e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,S(e)&&S(t)?(r.partial=!0,q(e,t,r)):0},WRatio:function(e,t,n){var r=M(n);if(e=r.full_process?A(e,r):e,t=r.full_process?A(t,r):t,r.full_process=!1,!S(e))return 0;if(!S(t))return 0;var o=!0,i=.95,a=.9,u=ee(e,t,r),c=Math.max(e.length,t.length)/Math.min(e.length,t.length);if(c<1.5&&(o=!1),c>8&&(a=.6),o){var s=te(e,t,r)*a,f=B(e,t,r)*i*a,l=Y(e,t,r)*i*a;return Math.round(Math.max(u,s,f,l))}var p=L(e,t,r)*i,d=I(e,t,r)*i;return Math.round(Math.max(u,p,d))},full_process:A,extract:H,extractAsync:F,extractAsPromised:ne,process_and_sort:k,unique_tokens:E,dedupe:T};t.exports=re}(),t.exports}()}));var ng=function(e,t){var n=null==e?0:e.length;return n?ca(e,t)/n:NaN};var rg=function(e){return ng(e,un)};function og(){var e=os();return tg||e.fuzzball}function ig(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r="";if(E(e)||ce(e))r=Au(e);else{if(!yo(e))return!!n&&0;r=Ca(e,"")}if(""===t)return!n||100;if(mo(t))return!!n&&0;if(Qa(r,t))return!n||100;var o=qi(t," "),i=wi(o,(function(e){return og().partial_ratio(r,e)}));if(n)return rg(i);var a=80;return kh(i,(function(e){return e>=a}))}function ag(){return(ag=mu(yu.mark((function e(t,n){var r,o,i,a=arguments;return yu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=a.length>2&&void 0!==a[2]&&a[2],yo(o=a.length>3?a[3]:void 0)||(o=["https://cdn.jsdelivr.net/npm/fuzzball@2.1.2/dist/fuzzball.umd.min.js"]),e.next=5,Ts(o);case 5:return i=ig(t,n,r),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ug(e){if(!ao(e))return{};var t=e.results,n=e.binarys;if(!E(t))return{};if(!fo(n))return{};var r={};try{r=JSON.parse(t,(function(e,t){if(E(t)){if(t.indexOf("[Uint8Array]::")>=0){var r=ro(t.replace("[Uint8Array]::",""));return n[r]}if(t.indexOf("[Uint16Array]::")>=0){var o=ro(t.replace("[Uint16Array]::",""));return n[o]}if(t.indexOf("[ArrayBuffer]::")>=0){var i=ro(t.replace("[ArrayBuffer]::",""));return n[i]}}return t}))}catch(e){}return r}function cg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!mh(e))return{today:null,msg:"",err:"時間格式錯誤"};var n=d.default();mh(t)&&(n=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var r=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n>r)return{today:null,msg:"",err:"時間已過"};var o,i=n.format("YYYY-MM-DD"),a=r.format("YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=d.default(a,"YYYY-MM-DD"),s=r.diff(n,"seconds"),f=r.diff(n,"minutes"),l=r.diff(n,"hours"),p=c.diff(u,"days"),v=c.diff(u,"weeks"),h=c.diff(u,"months"),g=c.diff(u,"years"),m="即將到來";if(s>=0&&(o=!0,m=s+"秒後"),f>0&&(o=!0,m=f+"分鐘後"),l>0){var y=r.format("HH:mm");i===a?(o=!0,m=l+"小時後,今天"+y):(o=!1,m=l+"小時後,明天"+y)}return p>1&&(o=!1,m=2===p?"後天":p+"天後"),v>0&&(o=!1,m=v+"周後"),h>0&&(o=!1,m=h+"個月後"),g>0&&(o=!1,m=g+"年後"),{today:o,msg:m,err:""}}function sg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!mh(e))return{today:null,msg:"",err:"時間格式錯誤"};var n=d.default();mh(t)&&(n=d.default(t,"YYYY-MM-DDTHH:mm:ss.SSSZ"));var r=d.default(e,"YYYY-MM-DDTHH:mm:ss.SSSZ");if(n<r)return{today:null,msg:"",err:"時間未到"};var o=n.format("YYYY-MM-DD"),i=r.format("YYYY-MM-DD"),a=d.default(o,"YYYY-MM-DD"),u=d.default(i,"YYYY-MM-DD"),c=n.diff(r,"seconds"),s=n.diff(r,"minutes"),f=n.diff(r,"hours"),l=a.diff(u,"days"),p=a.diff(u,"weeks"),v=a.diff(u,"months"),h=a.diff(u,"years"),g=!1,m="剛剛";if(c>=0&&(g=!0,m=c+"秒前"),s>0&&(g=!0,m=s+"分鐘前"),f>0){var y=r.format("HH:mm");o===i?(g=!0,m=f+"小時前"):(g=!1,m="昨天"+y)}return l>1&&(g=!1,m=l+"天前"),p>0&&(g=!1,m=p+"周前"),v>0&&(g=!1,m=v+"個月前"),h>0&&(g=!1,m=h+"年前"),{today:g,msg:m,err:""}}function fg(e){var t=gh.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function lg(e){var t=gh.sepTZ(e);return e="".concat(t.t,".000").concat(t.tz)}function pg(e){if(!Za(e))return"";var t;try{t=Va(Ih(e))}catch(e){return""}return t}var dg=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r};e._getXLSX=Jd,e._tz=gh,e.ab2blob=function(e){var t=S(e);return new Blob([t])},e.ab2u8arr=S,e.addMonth=function(e,t){return A(e)&&fe(t)?d.default(e,"YYYY-MM").add(t,"months").format("YYYY-MM"):""},e.aes2str=be,e.alive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Jr(),n={},r=null,o=Mt(e,"timeAlive");oo(o)||(o=1e4),o=ro(o);var i=Mt(e,"timeDetect");function a(){null===r&&(r=setInterval((function(){sn(n,(function(e,r){if(Date.now()-e.time>o){var i=Tr(n[r]);delete n[r],t.emit("message",{eventName:"leave",key:r,data:i.data,now:Zr(n)})}})),ao(n)||(clearInterval(r),r=null)}),i))}function u(e,r){E(e)?(uo(n,e)||setTimeout((function(){t.emit("message",{eventName:"enter",key:e,data:r,now:Zr(n)})}),1),n[e]={data:r,time:Date.now()},a()):console.log("trigger need key")}function c(){var e=[];return sn(n,(function(t,n){e.push({key:n,data:t.data})})),e=Tr(e)}return oo(i)||(i=50),i=ro(i),t.trigger=u,t.get=c,t},e.arr2dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!yo(e))return{};if(yo(t))return Zr(e)===Zr(t)?so(e,t):{};for(var n=[],r=0;r<Zr(e);r++)n.push(Tr(t));var o=so(e,n);return o},e.arrAccum=function(e){if(!yo(e))return[];var t=[],n=0;return sn(e,(function(e){n+=se(e),ce(e)?t.push(n):t.push("")})),t},e.arrAdd=function(){if(Zr(arguments)<2)return[];for(var e=arguments[0],t=1;t<Zr(arguments);t++){var n=arguments[t];e=bo(e,n)}return e},e.arrAt=zo,e.arrFilterByKeywords=function(e,t){if(!yo(e))return[];if(!E(t))return[];var n=qi(t," "),r=Zr(n);return wi(e,(function(e){return function(e){for(var t=!1,o=0,i=0;i<r;i++){var a=n[i],u=a,c="+"===Xi(a,1),s="-"===Xi(a,1);if((c||s)&&(u=$i(a,1)),""!==Ui(u)){var f=e.indexOf(u)>=0;if(c&&!f){t=!1,o=0;break}if(s&&f){t=!1,o=0;break}if(f){t=!0;var l=1-i/r;o+=l=Math.pow(l,2)}}}return{hasKeyword:t,weight:o}}(e)}))},e.arrFilterByNum=function(e){return yo(e)?(e=Tr(e),e=Zi(e,ce),e=wi(e,se)):[]},e.arrFilterByPnum=Ji,e.arrFilterByPnumAndToLog=function(e){return yo(e)?(e=Ji(e),e=wi(e,Math.log)):[]},e.arrFind=function(e,t){function n(e){return fo(e)?e:[e]}return mo(e)||0===(e=n(e)).length||mo(t)?[]:(t=n(t),wi(t,(function(t){for(var n=-1,r=0;r<e.length;r++)if(Qi(e[r],t)){n=r;break}return n})))},e.arrGroupByMaxmin=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Mt(n,"keyMax");E(r)||(r="max");var o=Mt(n,"keyMin");E(o)||(o="min");var i=Mt(n,"keyValue");E(i)||(i="value");var a=Mt(n,"keyItems");if(E(a)||(a="items"),!yo(e))return[];if(!yo(t))return[];var u=Tr(t);return sn(e,(function(e,n){var c=Mt(e,i);ce(c)?c=se(c):ce(e)&&(c=se(e)),ea(c)&&sn(t,(function(t,n){var i=Mt(t,r,null),s=Mt(t,o,null);if(null!==i&&null!==s&&ce(i)&&ce(s)){var f=Mt(t,"maxType");"<="!==f&&"<"!==f&&(f="<=");var l,p=Mt(t,"minType");">="!==p&&">"!==p&&(p=">="),i=se(i),s=se(s),l="<="===f?c<=i:c<i,(">="===p?c>=s:c>s)&&l&&(uo(u[n],a)||(u[n][a]=[]),u[n][a].push(e))}}))})),u},e.arrHas=ta,e.arrInsert=function(e,t,n){if(!fo(e))return[];if(fo(n)||(n=[n]),!Fo(t))return e;if((t=ro(t))>Zr(e))return e;var r=e;try{r=[].concat(oa(e.slice(0,t)),oa(n),oa(e.slice(t)))}catch(e){}return r},e.arrLookupByMaxmin=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Mt(n,"keyMax");E(r)||(r="max");var o=Mt(n,"keyMin");E(o)||(o="min");var i=Mt(n,"keyValue");E(i)||(i="value");var a=Mt(n,"keyItems");E(a)||(a="items");var u=Mt(n,"beforeAddResult",null);if(!yo(e))return[];if(!yo(t))return[];var c=ao(Mt(e,0));if(!c)return[];var s=Tr(e);return sn(s,(function(e,n){var c=Mt(e,i);ce(c)&&(c=se(c)),ea(c)&&sn(t,(function(e,t){var i=Mt(e,r,null),f=Mt(e,o,null);if(null!==i&&null!==f&&ce(i)&&ce(f)){var l=Mt(e,"maxType");"<="!==l&&"<"!==l&&(l="<=");var p,d=Mt(e,"minType");">="!==d&&">"!==d&&(d=">="),i=se(i),f=se(f),p="<="===l?c<=i:c<i,(">="===d?c>=f:c>f)&&p&&(ia(u)&&(e=u(e,s[n],n)),uo(s[n],a)||(s[n][a]=[]),s[n][a].push(e))}}))})),s},e.arrMulti=ua,e.arrNorm=function(e){if(!yo(e))return null;var t=fa(e,e);return ce(t)?t<=0?null:Math.sqrt(t):null},e.arrProduct=fa,e.arrSep=function(e,t){if(!yo(e))return[];if(!oo(t)&&!ao(t))return[];var n="",r=null;if(oo(t))r=t,n="numCount";else if(ao(t))if(oo(Mt(t,"numCount")))r=t.numCount,n="numCount";else{if(!oo(Mt(t,"numGroup")))throw new Error("invalid opt.numCount or opt.numGroup");r=t.numGroup,n="numGroup"}var o=Zr(e),i=[];if("numCount"===n)for(var a=0;a<o;a+=r){for(var u=[],c=0;c<r;c++){var s=a+c;s<o&&u.push(e[s])}i.push(u)}else if("numGroup"===n){for(var f=0;f<r;f++)i[f]=[];for(var l=-1,p=0;p<o;p++)++l>r-1&&(l=0),i[l].push(e[p])}return i},e.arrSort=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!yo(e))return[];if(1===Zr(e))return e;var n=Mt(t,"returnIndex");ye(n)||(n=!1);var r,o=Mt(t,"compareKey",null),i=_a(e);if(""===i)return[];if("obj"===i){if(!E(o))return[];var a=wi(e,(function(e,t){return Mt(e,o,"")})),u=_a(a);if("num"!==u&&"str"!==u)return[];var c=Oa(a,u),s=Sa(c,!0);r=n?s:wi(s,(function(t){return e[t]}))}else if("num"===i||"str"===i){var f=Oa(e,i);r=Sa(f,n)}return r},e.asind=function(e){return ce(e)?(e=se(e),180*Math.asin(e)/Math.PI):null},e.atan2d=function(e,t){return ce(e)?(e=se(e),ce(t)?(t=se(t),180*Math.atan2(t,e)/Math.PI):null):null},e.atand=function(e){return ce(e)?(e=se(e),180*Math.atan(e)/Math.PI):null},e.attstr=Xa,e.b642obj=function(e){if(!k(e))return{};var t={};try{t=$a(Va(e))}catch(e){t={}}return t},e.b642str=Va,e.b642u16arr=Ja,e.b642u8arr=Ga,e.binstr=Qa,e.blob2ab=nu,e.blob2b64=ru,e.blob2str=function(e){var t=eu(),n=new FileReader;return n.onload=function(){t.resolve(n.result)},n.onerror=function(e){t.reject(e)},n.readAsText(e),t},e.blob2u8arr=ou,e.blobs2b64s=iu,e.blobs2u8arrs=au,e.bodyLog=function(){var e=wi(arguments,(function(e){return uu(e)})).join(", "),t='\n <div style="padding:5px; font-size:10pt; font-family:Microsoft JhengHei, Helvetica;">\n <span style="color:#f26;">log: </span>\n <code>'.concat(cu(e),"</code>\n </div>\n ");document.querySelector("body").insertAdjacentHTML("beforeend",t)},e.browserView=su,e.browserViewFromBlob=function(e,t){fu(e)&&su(e,t)},e.browserViewFromText=function(e){k(e)&&su(e,"text/plain")},e.browserViewFromU8arr=function(e,t){Za(e)&&su(e,t)},e.bs2u8arr=lu,e.bufRead=pu,e.bufReadDbl=du,e.bufWrite=vu,e.bufWriteDbl=hu,e.cache=function(){var e=Jr(),t={};function n(t,n){setTimeout((function(){e.emit(t,n)}),1)}function r(e,r){var o=r.execFun,i=r.inputFun,a=r.timeExpired;uo(t,e)||(ia(o)||(o=function(){var e=mu(yu.mark((function e(){return yu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()),ju(a)&&(a=5e3),a=ro(a),fo(i)||(i=[]),t[e]={needExec:!0,execFun:o,execFunRunning:!1,inputFun:i,value:null,time:null,timeExpired:a},n("message",{fun:"set",key:e,timeExpired:a}))}function o(e){return i.apply(this,arguments)}function i(){return(i=mu(yu.mark((function e(r){var o,i,a,u;return yu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!uo(t,r)){e.next=24;break}return n("message",{fun:"get",key:r,msg:"waiting"}),e.next=4,wu((function(){return!t[r].execFunRunning}),{timeInterval:1e3});case 4:if(i=Date.now(),o=t[r].needExec,a=i-t[r].time,o?n("message",{fun:"get",key:r,msg:"execute first"}):t[r].timeExpired>0&&a>t[r].timeExpired&&(n("message",{fun:"get",key:r,msg:"execute by timeExpired",timeDiff:a}),o=!0),!o){e.next=20;break}return n("message",{fun:"get",key:r,msg:"execFun start"}),t[r].execFunRunning=!0,e.next=13,(u=t[r]).execFun.apply(u,oa(t[r].inputFun)).catch((function(e){n("error",{fun:"get",key:r,msg:e})}));case 13:t[r].value=e.sent,t[r].needExec=!1,t[r].time=i,t[r].execFunRunning=!1,n("message",{fun:"get",key:r,msg:"execFun end"}),e.next=21;break;case 20:n("message",{fun:"get",key:r,msg:"use cache"});case 21:return e.abrupt("return",Tr(t[r].value));case 24:return n("error",{fun:"get",key:r,msg:"invalid key"}),e.abrupt("return",null);case 26:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function a(){return(a=mu(yu.mark((function e(t,n){var i,a,u;return yu.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.execFun,a=n.inputFun,u=n.timeExpired,r(t,{execFun:i,inputFun:a,timeExpired:u}),e.abrupt("return",o(t));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return e.set=r,e.getProxy=function(e,t){return a.apply(this,arguments)},e.get=o,e.update=function(e,r){uo(t,e)&&(n("message",{fun:"updateValue",key:e}),t[e].value=r,t[e].time=Date.now())},e.clear=function(e){uo(t,e)&&(n("message",{fun:"clear",key:e}),t[e].needExec=!0)},e.remove=function(e){uo(t,e)&&(n("message",{fun:"remove",key:e}),delete t[e])},e},e.cbol=function(e){if(ye(e))return e;if(0===e)return!1;if(1===e)return!0;var t=!1;return E(e)&&"true"===(e=_u(Ui(e)))&&(t=!0),t},e.cdbl=se,e.cfilesize=function(e){return ce(e)?(e=se(e))<1024?Ou(e,1)+" b":e<1048576?Ou(e/1024,1)+" kb":e<1073741824?Ou(e/1024/1024,1)+" mb":e<1099511627776?Ou(e/1024/1024/1024,1)+" gb":"":""},e.cfinancial=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!ce(e))return"";if(!Fo(t))return"";for(var n=(e=Ou(e,t)).split("."),r=n[0],o=n.length>1?"."+n[1]:"",i=/(\d+)(\d{3})/;i.test(r);)r=r.replace(i,"$1,$2");var a=r+o;return a},e.cint=ro,e.clearXSS=function(e){return function e(t){return fo(t)||io(t)?(sn(t,(function(n,r){t[r]=e(n)})),t):k(t)?(n=t,h.default(n,{onIgnoreTagAttr:function(e,t,n,r){if("style"===t)return t+'="'+h.default.escapeAttrValue(n)+'"'}})):t;var n}(Tr(e))},e.color=Dc,e.composeToTree=Xc,e.convertToTree=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!ao(e)&&!yo(e))return[];var n=Mt(t,"bindKey",null);E(n)||(n="id");var r=Mt(t,"bindParent",null);E(r)||(r="parentId");var o=Mt(t,"bindText",null);E(o)||(o="text");var i=Mt(t,"bindChildren",null);E(i)||(i="children");var a=Mt(t,"bindType",null);E(a)||(a="type");var u=Mt(t,"bindNumOfChilren",null);E(u)||(u="numOfChilren");var c=Mt(t,"bindRoot",null);E(c)||(c="root");var s=Mt(t,"saveExtProps",null);ye(s)||(s=!1),E(c)&&(e=Su({},c,e));var f=Gc(e,{bindKey:n,bindParent:r,bindText:o,bindType:a,bindNumOfChilren:u}),l=Xc(f,{bindKey:n,bindParent:r,bindChildren:i,saveExtProps:s});return l},e.copyStrToClipboard=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!k(e))return"invalid input";var n=Mt(t,"eleParent");Kc(n)||(n=document.body);var 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(),!Jc(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=Qc,e.cotd=function(e){return ce(e)?1/es(e=se(e)):null},e.cscd=function(e){return ce(e)?1/ts(e=se(e)):null},e.cstr=Au,e.day2cht=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!ns(e))return"";var n=d.default(e,"YYYY-MM-DD");return t?n.month()+1+"月"+n.date()+"日":"民國 "+(n.year()-1911)+" 年 "+(n.month()+1)+" 月 "+n.date()+" 日"},e.debounce=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300;function t(e){var t=[],n=null,r=null;function o(){null===n&&(n=setInterval((function(){if(Date.now()-r>e){var o=t.pop();t=[],o.func.apply(o,oa(o.input))}0===t.length&&(clearInterval(n),n=null)}),10))}return oo(e)||(e=300),e=ro(e),function(e){if(ia(e)){r=Date.now();for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];t.push({func:e,input:i}),o()}else console.log("func is not function")}}return new t(e)},e.delay=rs,e.dig=Ou,e.digExp=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ce(e)&&Fo(t)?0===(e=se(e))?"0":Math.abs(e)<=1e-6?e.toExponential(t):Ou(e,t):""},e.domAlert=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(E(e)){var n=Mt(t,"type","success");uo(ls,n)||(n="success");var r=Mt(t,"icon",null);E(r)||(r=ls[n]);var o="top-right";"top-left"!==t.position&&"bottom-right"!==t.position&&"bottom-left"!==t.position||(o=t.position);var i=Mt(t,"time");ea(i)||(i=4e3),i<0&&(i=4e3);var a=Mt(t,"paddingStyle",null);null===a&&(a={top:14,right:26,bottom:14,left:14});var u="",c=Mt(a,"top",0),s=Mt(a,"bottom",0),f=Mt(a,"left",0),l=Mt(a,"right",0);u="padding:".concat(c,"px ").concat(l,"px ").concat(s,"px ").concat(f,"px;");var p=Mt(t,"textColor","#000");p=Eu(p,";","");var d=Mt(t,"backgroundColor","#fff");d=Eu(d,";","");var v=Mt(t,"borderWidth",1),h=Mt(t,"borderColor","#ebeef5");h=Eu(h,";","");var g=Mt(t,"borderRadius",8),m=Mt(t,"shadowStyle","0 2px 12px 0 rgba(0,0,0,.1)");m=Eu(m,";","");var y=Mt(t,"closeIconShift",null);null===y&&(y={top:10,right:10});var b="",w=Mt(y,"top",""),x=Mt(y,"bottom",""),j=Mt(y,"left",""),_=Mt(y,"right","");ea(w)&&(w="top:".concat(w,"px;")),ea(x)&&(x="bottom:".concat(x,"px;")),ea(j)&&(j="left:".concat(j,"px;")),ea(_)&&(_="right:".concat(_,"px;")),b="position:absolute; ".concat(w," ").concat(_," ").concat(x," ").concat(j);var O="alt-".concat(us()),S="alt-".concat(us()),k='\n <div \n style="display:inline-block; color:'.concat(p,"; background:").concat(d,"; border:").concat(v,"px solid ").concat(h,"; border-radius:").concat(g,"px; box-shadow:").concat(m,';"\n onmouseenter="ttWAlertFadeIn(\'').concat(S,"')\"\n onmouseleave=\"ttWAlertFadeOut('").concat(S,'\')"\n >\n <div style="position:relative; ').concat(u,'">\n\n <div style="display:flex; align-items:center;">\n <div style="margin-right:10px;">\n <div style="display:flex;">').concat(r,"</div>\n </div>\n <div>").concat(e,'</div>\n </div>\n\n <div style="').concat(b,'">\n <div \n id="').concat(S,'" \n style="display:flex; cursor:pointer; opacity:0;" \n onclick="ttWAlertCancel(\'').concat(O,"')\"\n >\n ").concat(fs,"\n </div>\n </div>\n\n </div>\n </div>\n "),A=document.createElement("div");A.id=O,A.style.position="fixed",A.style.transition="transform 0.3s, top 0.5s, bottom 0.5s",A.style.zIndex=-1,A.style.opacity=.001,o.indexOf("-left")>=0?A.style.transform="translateX(-100%)":A.style.transform="translateX(100%)",A.innerHTML=k;var M=document.querySelector("body");M.appendChild(A);var D=eu();return ms({id:O,position:o,time:i,pm:D}),D}},e.domAppend=ys,e.domCancelEvent=ws,e.domCompareText=Ss,e.domCompareTextDyn=function(e,t,n,r){return Ps.apply(this,arguments)},e.domConvertToPic=Bs,e.domConvertToPicDyn=function(e){return Fs.apply(this,arguments)},e.domDetect=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Mt(t,"timeInterval",null);oo(n)||(n=20);var r=Mt(t,"tolerancePixel",null);oo(r)||(r=1);var o,i=Jr(),a={offsetWidth:0,offsetHeight:0};if(!ia(e))return console.log("invalid f",e),null;o=setInterval((function(){var t=e();if(t){var n={offsetWidth:t.offsetWidth,offsetHeight:t.offsetHeight,clientWidth:t.clientWidth,clientHeight:t.clientHeight},o=Math.abs(a.offsetWidth-n.offsetWidth)>r,u=Math.abs(a.offsetHeight-n.offsetHeight)>r;if(o||u){var c=Rs({},a);setTimeout((function(){n.offsetWidth>0&&n.offsetHeight>0&&(i.emit("resize",{sold:c,snew:n,ele:t}),i.emit("resizeWithWindow",{sold:c,snew:n,ele:t,from:"dom"}))}),1)}a=n}}),n);var u=function(e){i.emit("resizeWithWindow",{snew:a,from:"window"})};return window.addEventListener("resize",u),i.clear=function(){clearInterval(o),window.removeEventListener("resize",u)},i},e.domDrag=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){var n=Mt(t,"attIdentify",null);E(n)||(n="dragid");var r=Mt(t,"attIndex",null);E(r)||(r="dragindex");var o=Mt(t,"attGroup",null);E(o)||(o="draggroup");var i=Mt(t,"group",null);E(i)||(i="group");var a=Mt(t,"previewOpacity",null);ea(a)||(a=.4);var u=Mt(t,"previewDisabledOpacity",null);ea(u)||(u=.2);var c=Mt(t,"previewBackground",null);E(c)||(c="white");var s=Mt(t,"previewBorderWidth",null);ea(s)||(s=1);var f=Mt(t,"previewBorderColor",null);E(f)||(f="#f26");var l=Mt(t,"timeDragStartDelay",null);ea(l)||(l=120);var p="c".concat(us(8)),d=i;e.setAttribute(o,d),e.setAttribute(n,p);var v=ef(d,p,{attIdentify:n,previewOpacity:a,previewBackground:c,previewBorderWidth:s,previewBorderColor:f}),h={dragStart:function(e){v.emit(d+"-dragStart",e)}},g=rf(e,h);g.bind(),af({gid:d,attGroup:o,attIndex:r,attIdentify:n,timeDragStartDelay:l,previewOpacity:a,previewDisabledOpacity:u});var m=Jr();return v.on(i+"-change",(function(e){e.tarEid===p&&m.emit("change",e)})),v.on(i+"-start",(function(e){e.tarEid===p&&m.emit("start",e)})),v.on(i+"-move",(function(e){e.tarEid===p&&m.emit("move",e)})),v.on(i+"-enter",(function(e){e.tarEid===p&&m.emit("enter",e)})),v.on(i+"-leave",(function(e){e.tarEid===p&&m.emit("leave",e)})),v.on(i+"-drop",(function(e){e.tarEid===p&&m.emit("drop",e)})),m.setIsActive=b,m.unbind=y,m}function y(){g.unbind(),of(d,p)}function b(e){Qs[d].isActive=e}console.log("ele is not HTMLElement",e)},e.domDragBarAndScroll=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=null,i=null,a=null,u=null,c=null,s=null,f=null,l=null,p=null,d=null,v=null,h=null,g=null,m=null,y=!1,b=Mt(n,"getHeighRatio",null);Se(b)||(b=function(){return 1});var w=Mt(n,"getWidthRatio",null);Se(w)||(w=function(){return 1});var x=Mt(n,"stopScrollPropagationForPanel",null);me(x)||(x=!1);var j=Mt(n,"stopTouchDragPropagationForPanel",null);me(j)||(j=!1);var _=Mt(n,"useTouchDragForPanel",null);me(_)||(_=!0);var O=e,S=t,k=Jr();function E(){r=function(e){var t=e.deltaY/Math.abs(e.deltaY),n=e.deltaX/Math.abs(e.deltaX);k.emit("scrollPanel",{ratioY:t,ratioX:n}),x&&ws(e)},O.addEventListener("wheel",r),o=function(e){if(_){var t=Mt(e,"touches.0.clientY",0),n=Mt(e,"touches.0.clientX",0),r=-t*b(),o=-n*w();y=!0,k.emit("pressBar",{clientY:r,clientX:o}),j&&ws(e)}},O.addEventListener("touchstart",o),i=function(e){if(_&&y){var t=Mt(e,"touches.0.clientY",0),n=Mt(e,"touches.0.clientX",0),r=-t*b(),o=-n*w();k.emit("dragBar",{clientY:r,clientX:o}),j&&ws(e)}},O.addEventListener("touchmove",i,{passive:!1}),a=function(e){_&&y&&(y=!1,k.emit("freeBar"),j&&ws(e))},O.addEventListener("touchend",a),u=function(e){y=!0,k.emit("pressBar",{clientY:e.clientY,clientX:e.clientX})},S.addEventListener("mousedown",u),c=function(e){y&&(y=!1,k.emit("freeBar"))},S.addEventListener("mouseup",c),s=function(e){y=!0,k.emit("pressBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX})},S.addEventListener("touchstart",s),f=function(e){y&&(k.emit("dragBar",{clientY:e.touches[0].clientY,clientX:e.touches[0].clientX}),ws(e))},S.addEventListener("touchmove",f,{passive:!1}),l=function(e){y&&(y=!1,k.emit("freeBar"))},S.addEventListener("touchend",l),p=function(e){y&&k.emit("dragBar",{clientY:e.clientY,clientX:e.clientX})},window.addEventListener("mousemove",p),d=function(e){y&&(y=!1,k.emit("freeBar"),x&&ws(e))},window.addEventListener("mouseup",d),v=function(e){},window.addEventListener("scroll",v,{passive:!1}),h=function(e){},window.addEventListener("wheel",h,{passive:!1}),g=function(e){},document.addEventListener("scroll",g,{passive:!1}),m=function(e){},document.addEventListener("wheel",m,{passive:!1})}function A(){O.removeEventListener("wheel",r),O.removeEventListener("touchstart",o),O.removeEventListener("touchmove",i),O.removeEventListener("touchend",a),S.removeEventListener("mousedown",u),S.removeEventListener("mouseup",c),S.removeEventListener("touchstart",s),S.removeEventListener("touchmove",f),S.removeEventListener("touchend",l),window.removeEventListener("mousemove",p),window.removeEventListener("mouseup",d),window.removeEventListener("scroll",v),window.removeEventListener("wheel",h),document.removeEventListener("scroll",g),document.removeEventListener("wheel",m)}return E(),k.clear=A,k},e.domDragPreview=Zs,e.domDropFiles=function(e){var t=!1,n=!1,r=Jr();function o(e){ws(e),n=!0,!1===t&&(t=!0,r.emit("dropIn",{ev:e}))}function i(e){ws(e),n=!1,setTimeout((function(){n||(t=!1,r.emit("dropOut",{ev:e}))}),100)}function a(e){o(e)}function u(e){i(e)}function c(e){function t(){i(e)}o(e),function(e){return bf.apply(this,arguments)}(e.dataTransfer).then((function(n){var o=Zi(n.entries,{type:"file"});r.emit("getFiles",{ev:e,files:n.files,filesTree:o,entries:n.entries,cb:t})})).catch((function(e){r.emit("error",e)}))}return e.addEventListener("dragenter",a,!1),e.addEventListener("dragover",a,!1),e.addEventListener("dragleave",u,!1),e.addEventListener("drop",c,!1),r.off=function(){e.removeEventListener("dragenter",a,!1),e.removeEventListener("dragover",a,!1),e.removeEventListener("dragleave",u,!1),e.removeEventListener("drop",c,!1)},r},e.domFadeIn=cs,e.domFadeOut=ss,e.domFind=wf,e.domFinds=Cs,e.domGetAttr=Vs,e.domGetBoudRect=$s,e.domGetBoudRectRefSelf=Gs,e.domGetFileAccept=Of,e.domGetFiles=Sf,e.domGetPointFromEvent=Xs,e.domGetScrollableParent=function(e){var 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){for(var o=function e(t,n){return null===t.parentNode?n:e(t.parentNode,n.concat([t]))}(e.parentNode,[]),i=0;i<o.length;i+=1)if(r(o[i]))return o[i];return document.scrollingElement||document.documentElement}},e.domIsClientXYIn=function(e,t,n){if(ea(e))if(ea(t)){if(Kc(n)){var r;try{r=n.getBoundingClientRect()}catch(e){return void console.log("invalid ele for getBoundingClientRect",e)}var o=!1;try{o=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 o}console.log("ele is not HTMLElement",n)}else console.log("clientY is not Number",t);else console.log("clientX is not Number",e)},e.domIsFocused=Jc,e.domIsVisible=function(e){if(!Kc(e))return Promise.reject("invalid element");if(kf())return Promise.reject("invalid IntersectionObserver");var t=eu();try{var n=new IntersectionObserver((function(e){t.resolve(e[0].isIntersecting),n.disconnect()}));n.observe(e)}catch(e){t.reject(e)}return t},e.domPrepend=Ys,e.domRemove=Is,e.domRenderMarkdownMind=Ef,e.domRenderMarkdownMindDyn=function(e,t){return Af.apply(this,arguments)},e.domRipple=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Mt(n,"timeDuration",null);oo(r)||(r=1e3);var o=Mt(n,"color",null);if(E(o)||(o="rgba(255, 255, 255, 0.5)"),Kc(e)){e.style.position="relative",e.style.overflow="hidden";var i=e.getBoundingClientRect(),a=t.clientX-i.left,u=t.clientY-i.top,c=2*Math.max(e.clientWidth,e.clientHeight),s=document.createElement("div");s.style.width="".concat(c,"px"),s.style.height="".concat(c,"px"),s.style.transition="all ".concat(r/1e3,"s linear"),s.style.userSelect="none",s.style.position="absolute",s.style.zIndex=1,s.style.left="".concat(a,"px"),s.style.top="".concat(u,"px"),s.style.borderRadius="50%",s.style.transformOrigin="center",s.style.transform="translate(-50%,-50%) scale(0)",s.style.background=o,e.appendChild(s),setTimeout((function(){s.style.transform="translate(-50%,-50%) scale(2)",s.style.opacity=0}),1),setTimeout((function(){Is(s)}),r)}},e.domScrollIntoView=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){io(t)||(t={});var n={behavior:"smooth"};n=yl(yl({},n),t),bs()&&gl(),e.scrollIntoView(n)}},e.domScrollTo=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Kc(e)){io(t)||(t={});var n={behavior:"smooth"};n=wl(wl({},n),t),bs()&&gl(),e.scrollTo(n)}},e.domShowImages=Dl,e.domShowImagesDyn=function(e){return Pl.apply(this,arguments)},e.domShowInputAndGetFiles=Il,e.domShowInputAndGetFilesU8Arrs=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"*",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=eu(),o=[];return Il(e,t,n).then((function(e){var t=eu(),n=e.err;return Zr(n)>0?t.reject(n):t.resolve(e),t})).then((function(e){var t=e.files;return sn(t,(function(e){o.push({name:e.name,size:e.size,type:e.type})})),au(t)})).then((function(e){sn(e,(function(e,t){o[t].u8a=e})),r.resolve(o)})).catch((function(e){r.reject(e)})),r},e.domTooltip=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=null,o=null;function i(){null!==r&&r.destroy(!0),e.setAttribute("tippystate",""),clearInterval(o)}var a={arrow:!0,theme:"dark",placement:"bottom",delay:150};n=ao(n)?El(a,n):a;var u=t;t||(u=e.innerHTML);var c=e.getAttribute("tippystate"),s=ce(c);if(e.setAttribute("tippystate","5"),!s){u='<div style="text-align:left;">'.concat(u,"</div>");var f=Nd;Nd.default&&(f=Nd.default),(r=f(e,qd(qd({},n),{},{content:u,allowHTML:!0,onHidden:function(){i()},onDestroy:function(){r=null,i()}}))).show(),o=setInterval((function(){var t=e.getAttribute("tippystate");ce(t)?(t=ro(t),t-=1,e.setAttribute("tippystate",t),t<=0&&i()):i()}),1e3)}},e.domTriggerEvent=Cl,e.domVirtualCreate=Xd,e.domVirtualCreateQueue=function(){return new function(){var e=Zd(1);function t(){return(t=mu(yu.mark((function t(n){var r,o=arguments;return yu.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:{},t.abrupt("return",e(Xd,n,r));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return function(e){return t.apply(this,arguments)}}},e.downloadExcelFileFromData=ov,e.downloadExcelFileFromDataDyn=function(e){return iv.apply(this,arguments)},e.downloadFileFromB64=function(e,t){if(tu())if(E(e)){var n=document.createElement("a");n.href=t,n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}else console.log("no filename");else console.log("no window")},e.downloadFileFromBlob=Kd,e.downloadFileFromText=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];tu()?E(e)?k(t)?ye(n)?Kd(e,n?new Blob(["\ufeff",t]):new Blob([t])):console.log("withBOM is not boolean"):console.log("invalid content"):console.log("invalid filename"):console.log("no window")},e.downloadFileFromU8Arr=function(e,t){tu()?E(e)?Za(t)?Kd(e,av(t)):console.log("no data"):console.log("no filename"):console.log("no window")},e.dtmapping=uv,e.dtpick=cv,e.evem=Jr,e.execProcess=function(e,t){function n(e){try{return e.toString("utf8")}catch(e){}return""}return new Promise((function(r,o){var i="";y.default.exec("".concat(e," ").concat(t),(function(e,t,r){if(e)return o(e);E(t=n(t))&&(i+=t),E(r=n(r))&&(i+=r)})).on("close",(function(e){r(i)}))}))},e.execScript=function(e,t){return new Promise((function(n,r){fo(t)||(t=[t]);var o=y.default.spawnSync(e,t),i=Zi(o.output,(function(e){return null!==e}));i=wi(i,(function(e){return function(e){try{return e.toString("utf8")}catch(e){}return""}(e)}));var a=Ca(i,""),u=Mt(o,"error.message");u?r(u):n(a)}))},e.f2c=function(e){if(!ia(e))return"";var t=String(e),n=t.substring(t.indexOf("/*")+3,t.lastIndexOf("*/"));return n=sv(n)},e.files2data=function(e){var t=eu(),n=wi(e,(function(e){return{name:e.name,size:e.size,type:e.type}}));return iu(e).then((function(e){var r=wi(e,(function(e){return{b64:e}})),o=fv(n,r);t.resolve(o)})),t},e.flattenToConn=Gc,e.flattenTree=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(fo(e)){if(0===e.length)return[]}else{if(!io(e))return[];if(vo(e))return[]}var n=Mt(t,"bindKey",null);E(n)||(n="id");var r=Mt(t,"bindChildren",null);E(r)||(r="children");var o=!1;function i(e){for(var t=[e[0]],n=1;n<e.length;n++){var o=e[n];t.push(r),t.push(o)}return t}io(e)&&(o=!0,e=[e]);var a=[];return $c(e,(function(e,t,o){var u=Mt(e,n,null),c=Mt(e,r,null);if(u){var s=i([].concat(oa(o),[t]));if(a.push(pv(pv({},e),{},{level:(Zr(s)-1)/2,nk:s})),c)return c}})),o&&(a=a[0]),a},e.fsCleanFolder=function(e){if(!b.default.existsSync(e)){var t=hv(e);return t.error?t.error:{success:"done: "+e}}if(!dv(e))return{error:"input path is not folder"};try{b.default.readdirSync(e).forEach((function(t){var n=e+"/"+t;if(b.default.lstatSync(n).isDirectory())vv(n);else try{b.default.unlinkSync(n)}catch(e){}}))}catch(e){return{error:e}}return{success:"done: "+e}},e.fsCopyFolder=function e(t,n){try{b.default.readdirSync(t).forEach((function(r){var o=t+"/"+r,i=n+"/"+r,a=b.default.lstatSync(o);if(a.isDirectory())hv(w.default.dirname(i)),e(o,i);else if(a.isSymbolicLink()){var u=b.default.readlinkSync(o);b.default.symlinkSync(u,i)}else hv(w.default.dirname(i)),b.default.copyFileSync(o,i)}))}catch(e){return{error:e}}return{success:"done: "+n}},e.fsCreateFolder=hv,e.fsDeleteFolder=vv,e.fsEvem=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"./_evps",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=Jr(),o=Mt(t,"timeDetect");oo(o)||(o=50),o=ro(o);var i=Mt(t,"timeRewatch");function a(t,r){var a=w.default.resolve(e,t),u=mv({timeDetect:o,timeRewatch:i});u.on(a,(function(e){var t=b.default.readFileSync(a,"utf8"),n=$a(t);ao(n)&&(t=n),r(t,e)})),n.push({fp:a,evf:u})}function u(t){var r=w.default.resolve(e,t);sn(n,(function(e){e.fp===r&&e.evf.clear()}))}function c(t,n){var r=w.default.resolve(e,t);E(n)||(n=JSON.stringify(n)),b.default.writeFileSync(r,n,"utf8")}function s(){sn(n,(function(e){e.evf.clear()}))}return oo(i)||(i=1e3),i=ro(i),dv(e)||hv(e),r.on=a,r.off=u,r.emit=c,r.clear=s,r},e.fsGetFilesInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=yv(e,t);return n=Zi(n,(function(e){return gv(e.path)})),n=wi(n,"path")},e.fsGetFoldersInFolder=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=yv(e,t);return n=Zi(n,(function(e){return!gv(e.path)})),n=wi(n,"path")},e.fsIsFile=gv,e.fsIsFolder=dv,e.fsReadText=function(e){return b.default.readFileSync(e,"utf8")},e.fsTreeFolder=yv,e.fsWatchFile=mv,e.fsWriteText=function(e,t){b.default.writeFileSync(e,t,"utf8")},e.genGradientColor=function(e){if(mo(e))return{};var t;try{t=Dc.toRgba(e)}catch(e){return{}}function n(e,t){return e.a=t,Dc.toRgbaString(e)}return{linearGradient:{x1:0,x2:0,y1:0,y2:1},stops:[[0,n(t,.4)],[1,n(t,.9)]]}},e.genID=us,e.genPm=eu,e.getBufferSize=wv,e.getClearPathName=jv,e.getCsvStrFromData=Ov,e.getDataFromExcelFileU8Arr=Mv,e.getDataFromExcelFileU8ArrDyn=function(e){return Dv.apply(this,arguments)},e.getDirName=function(e){if(!E(e))return"";var t=jv(e);if(t.isRoot)return t.path;var n=Tv(e=t.path);if(!E(n))return e;var r=jv(e=xv(e,Zr(n)));return r.isRoot,r.path},e.getEnv=function(){var e=tu(),t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope;return{isBrowser:e=e||t,isWebWorker:t,isNode:"undefined"!=typeof process&&null!=process.versions&&null!=process.versions.node}},e.getExcelU8ArrFromData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"data";if(!yo(e)){var n="no data";return{error:n}}E(t)||(t="data");var r=null;try{var o=ev(e,t),i=Jd().write(o,{bookType:"xlsx",type:"binary"});r=lu(i)}catch(e){return{error:e}}return r},e.getExcelWorkbookFromData=ev,e.getExcelWorkbookFromWorksheet=Qd,e.getFileAccept=_f,e.getFileName=Tv,e.getFileTrueName=function(e){if(!E(e))return"";var t=Tv(e),n=va(t,".");if(Zr(n)<=1)return t;var r="";try{n=Pv(n),r=Ca(n,".")}catch(e){}return r},e.getGlobal=os,e.getObjSize=function(e){var t=0,n=function e(n){if(null!=n)switch(C(n)){case"number":t+=8;break;case"string":t+=2*n.length;break;case"boolean":t+=4;break;case"object":var r=Object.prototype.toString.call(n).slice(8,-1);if("Object"===r||"Array"===r)for(var o in n)n.hasOwnProperty(o)&&e(n[o]);else t+=2*n.toString().length}return t}(e);return{int:n,str: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)}},e.getTimeBetween=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"days",r=Lv(n);if(""===r)return[];var o=Hv(e,n),i=Hv(t,n);if(null===o||null===i)return[];if(e>=t)return[];var a=i.diff(o,n)+1,u=wi(Yv(a),(function(e){return o.clone().add(e,n).format(r)}));return u},e.getTimeFromUnit=Lv,e.getTimeObject=Hv,e.getTimeRange=function(e,t){if(!Fv(e))return"無起始時間";if(void 0===t&&(t=e),!Fv(t))return"結束時間格式錯誤";var n=d.default(e,"YYYY-MM-DDTHH:mm:ss"),r=d.default(t,"YYYY-MM-DDTHH:mm:ss"),o=n.format("YYYY-MM-DD"),i=r.format("YYYY-MM-DD");if(o===i){var a=r.format("HH:mm");if(e===t)return zv(e)+" 至 無";if(e<t)return zv(e)+" 至 "+a;if(e>t)return zv(e)+" 至 "+a+" (起始時間大於結束時間)"}else{if(o<i)return zv(e)+" 至 "+zv(t);if(o>i)return zv(e)+" 至 "+zv(t)+" (起始時間大於結束時間)"}return""},e.getUserAgent=Nv,e.getUserAgentDyn=function(){return Uv.apply(this,arguments)},e.getltdtkeys=tv,e.haskey=uo,e.html2pic=Xv,e.html2picDyn=function(e){return $v.apply(this,arguments)},e.html2str=Gv,e.html2strDyn=function(e,t){return Zv.apply(this,arguments)},e.htmlDecode=function(e){var t=document.createElement("span");return t.appendChild(document.createTextNode(e)),t.innerHTML},e.htmlEncode=cu,e.importResources=Ts,e.interp1=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!fo(e))return{err:"ps is not array"};if(!ea(t))return{err:"x is not number"};var r=rh(e,n);if(Mt(r,"err"))return Mt(r,"err");if(0===Zr(r))return{err:"ps(length=0) is not effective array",ps:e,psEff:r};if(1===Zr(r))return{err:"ps(length=1) is one point only",ps:e,psEff:r};var o=oh(r);if("no"===o)return{err:"psEff is not increasing or decreasing"};o===nh&&(o=th,r=Jv(r));var i=Mt(n,"mode");"linear"!==i&&"stairs"!==i&&"blocks"!==i&&(i="linear");try{if("linear"===i)return ah(r,t);if("blocks"===i)return ch(r,t);if("stairs"===i)return uh(r,t,n)}catch(e){return{err:e.toString()}}},e.isDev=function(){return!!location&&Qa(location.href,"localhost")},e.isEle=Kc,e.isEleExistByID=function(e){return!!E(e)&&!(null===document.getElementById(e))},e.isEmail=function(e){return!!E(e)&&/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(e)},e.isIE=bs,e.isNarrow=function(e){if(!tu())return!1;var t=window.innerWidth>0&&window.innerWidth<=1024,n=!1;if(e){var r=Mt(e,"clientWidth",0);n=r>0&&r<=700}return t||n},e.isStrHasCapital=ph,e.isStrHasLowerCase=dh,e.isStrHasNumber=xa,e.isUserIdentify=function(e){var t=eu();if(!E(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);var 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){var t=eu();return E(e)?(t.resolve(),t):(t.reject("請填入姓名"),t)},e.isUserPW=function(e){var t=eu();if(!k(e))return t.reject("密碼非字串"),t;var n=[];return e.length<8&&n.push("長度須大於8個字元"),e.length>30&&n.push("長度須小於30個字元"),ph(e)&&dh(e)&&xa(e)||n.push("須包含大寫、小寫英文與數字各1個字元"),Qa(e,["<",">"])&&n.push("不能使用特殊符號(<,>)"),Qa(e,["select","insert","update","delete"])&&n.push("不能使用指令(select,insert,update,delete)"),n.length>0?t.reject(Ca(n,",")):t.resolve(),t},e.isWindow=tu,e.isab=O,e.isarr=fo,e.isarr0=go,e.isblob=fu,e.isbol=ye,e.isday=ns,e.isearr=yo,e.iseobj=ao,e.iser=mo,e.isernot=jf,e.isestr=E,e.isfun=ia,e.isint=fe,e.ismonth=A,e.isn0int=sh,e.isn0num=fh,e.isnbr=ue,e.isnint=ju,e.isnnum=function(e){return!!ce(e)&&se(e)<0},e.isnull=po,e.isnum=ce,e.isobj=io,e.isobj0=vo,e.isp0int=Fo,e.isp0num=lh,e.ispint=oo,e.ispm=bu,e.ispnum=Ki,e.isstr=k,e.isstr0=ho,e.istime=Fv,e.istimeTZ=yh,e.istimems=vh,e.istimemsTZ=mh,e.isu16arr=bv,e.isu8arr=Za,e.isundefined=lo,e.j2o=$a,e.keysmat2ltdt=bh,e.log=function(){var e=null;return{init:function(t){if(!ia(t))throw new Error("loggerFun is not function");e=t},log:function(t,n,r){if(null===e)throw new Error("no logger: need to construct by init");var o=wh(),i={id:us(),from:t,level:n,msg:uu(r),time:o};return e(i)}}},e.ltdt2vrtsable=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!yo(e))return[];if(!fo(t))return[];var n=!1;if(sn(e,(function(e){ao(e)||(n=!0)})),n)return[];var r=tv(e),o=[];sn(e,(function(e){var t={};sn(r,(function(n){t[n]={value:e[n].value,style:e[n].style,rowspan:1}})),o.push(t)}));var i=Jv(o),a=Zr(i);sn(r,(function(e){if(ta(e,t)){var n=Oo(0,a,0),r=Oo(0,a,0),o=Oo(1,a+1,0);sn(i,(function(t,a){if(a>0){var u=i[a-1][e].value,c=i[a][e].value;Qi(u,c)&&(n[a-1]=1,n[a]=1,o[a]=o[a-1]+1),1===n[a-1]&&1===n[a]&&(r[a-1]=0,r[a]=1)}})),sn(i,(function(t,a){1===n[a]&&(1===r[a]?i[a][e].rowspan=o[a]:i[a][e].rowspan=null)}))}}));var u=Jv(i);return u},e.ltdtdiff=function(e,t,n){if(!E(n))return console.log("invalid key"),{infor:{},del:[],same:[],diff:[],add:[]};fo(e)||(e=[e]),fo(t)||(t=[t]);var r={},o=[],i=[],a=[];sn(e,(function(e){if(uo(e,n)){var u=Su({},n,e[n]),c=_h(t,u);mo(c)?(o.push(e),r[e[n]]="del"):Qi(e,c)?(a.push(c),r[c[n]]="same"):(i.push(c),r[c[n]]="diff")}}));var u=[];return sn(t,(function(t){if(uo(t,n)){var o=Su({},n,t[n]);mo(_h(e,o))&&(u.push(t),r[t[n]]="add")}})),{infor:r,del:o,same:a,diff:i,add:u}},e.ltdtkeys2mat=nv,e.ltdtkeysheads2mat=rv,e.ltdtmapping=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!yo(e))return[];if(!yo(t))return[];var r=wi(e,(function(e){return uv(e,t,n)}));return r},e.ltdtmerge=fv,e.ltdtpick=function(e,t){return yo(e)&&yo(t)?wi(e,(function(e){return cv(e,t)})):[]},e.ltdtpull=function(e,t,n){return fo(e)&&fo(t)&&E(n)&&kh(e,(function(e){return io(e)}))?0===t.length?e:kh(t,(function(e){return io(e)}))?Ah(e,t,n):[]:[]},e.mat2ltdt=function(e){if(!yo(e))return[];if(e.length<=1)return[];var t=!1;return sn(e,(function(e){yo(e)||(t=!0)})),t?[]:bh(Mh(e)[0],Dh(e))},e.matConcat=function(e,t){if(!fo(e))return[];if(!fo(t))return[];if(0===Zr(e)&&0===Zr(t))return[];for(var n=Zr(e),r=Zr(Mt(e,0,[])),o=Zr(t),i=Zr(Mt(t,0,[])),a=[],u=Math.max(n,o),c=0;c<u;c++){for(var s=[],f=-1,l=0;l<r;l++){f++;var p=Mt(e,"".concat(c,".").concat(l),null);s[f]=p}for(var d=0;d<i;d++){f++;var v=Mt(t,"".concat(c,".").concat(d),null);s[f]=v}a[c]=s}return a},e.matat=function(e,t,n){return yo(e)?wi(e,(function(e){return zo(e,t,n)})):[]},e.now2str=function(){return d.default().format("YYYY-MM-DDTHH:mm:ssZ")},e.now2strp=function(){return d.default().format("YYYYMMDDHHmmss")},e.nowDay2str=function(){return d.default().format("YYYY-MM-DD")},e.nowms2str=wh,e.nowms2strp=function(){return d.default().format("YYYYMMDDHHmmssSSS")},e.o2j=uu,e.obj2b64=function(e){var t="";try{t=Th(uu(e))}catch(e){t=""}return t},e.obj2pb64=function(e,t){return void 0===e?"":E(t)?Ph(uu({data:e}),t,!0):""},e.obj2str=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(lo(e))return"";if(k(t))t=[t];else if(!fo(t))return"";function n(e,n){return t.indexOf("Uint8Array")>=0&&(n=Fh.u8arr2b64(n)),t.indexOf("Uint16Array")>=0&&(n=Fh.u16arr2b64(n)),n}var r="";try{r=JSON.stringify(e,n)}catch(e){r=""}return r},e.obj2stru8arr=Rh,e.obj2u8arr=function(e){var t=[],n=[];if(!yo(e)&&!ao(e))return null;var r=[],o=[];function i(e){r.push(wv(e)),o.push(e)}try{var a=Rh(e);i(Nh(a.results)),sn(a.binarys,(function(e){i(e)}));var u=r,c=Nh(JSON.stringify(u)),s=new Uint8Array(8);hu(wv(c),s),t.push(s),t.push(c),sn(o,(function(e){t.push(e)})),sn(t,(function(e){n=function(e,t){var n=wv(e),r=wv(t),o=new Uint8Array(n+r);return o.set(new Uint8Array(e),0),o.set(new Uint8Array(t),n),o}(n,e)}))}catch(e){return null}return n},e.objSortBy=Uh,e.objSortByKeys=function(e,t){if(!ao(e))return{};if(!yo(t))return{};var n={};return sn(t,(function(e,t){n[e]=t})),Uh(e,(function(e,t){return Mt(n,t,0)}))},e.ocr=qh,e.ocrDyn=function(e){return Vh.apply(this,arguments)},e.oo=function(e){if(void 0!==e)return $a(uu(e))},e.openLink=function(e){if(E(e)){var 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 E(e)&&E(t)?$a(be(e,t,!0)).data:""},e.pm2resolve=$d,e.pmChain=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!fo(e)){var n=eu();return n.reject("pms is not array"),n}return e.reduce((function(e,t){return e.then(t)}),Promise.resolve(t))},e.pmHook=$h,e.pmHookReject=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return ia(e)?(ia(t)||(t=function(){}),$h(e,(function(e){if("afterCatch"===e.mode)return t(e.data)}))):null},e.pmIni=function(){return Promise.resolve()},e.pmMap=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r={},o=!1,i=eu();if(!fo(e)&&!io(e))return i.reject("rs is not array or object"),i;var a=!1;if(io(e)){a=!0;var u=[];sn(e,(function(e,t){u.push({k:t,v:e})})),e=u}var c=Gd(n);return c.on("message",(function(n){if(!o){var u,s=c.get();if(ia(t)){var f=s.key,l=s.value;a&&(f=s.value.k,l=s.value.v),u=t(l,f)}else u=s.value;u.then((function(e){r[s.key]=e})).catch((function(e){o=!0,c.clear(),i.reject(e)})).finally((function(){c.cb(),Zr(r)===e.length&&i.resolve(kv(r))}))}})),sn(e,(function(e,t){c.push({key:t,value:e})})),i},e.pmQueue=Zd,e.pmSeries=Es,e.pmThrottle=function(){var e=Jr(),t=[],n=null,r=!1;function o(){null===n&&(n=setInterval(mu(yu.mark((function o(){var i,a,u,c,s,f;return yu.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(!r){o.next=2;break}return o.abrupt("return");case 2:for(r=!0,i=t.pop(),a=0;a<t.length;a++)u=t[a].id,c={state:"cancelled"},e.emit(u,c);if(t=[],!i){o.next=16;break}if(f=i.id,!ia(i.func)){o.next=14;break}return o.next=11,$d(i.func).apply(void 0,oa(i.input));case 11:s=o.sent,o.next=15;break;case 14:s={state:"error",msg:"fun is not function"};case 15:e.emit(f,s);case 16:(r=!1)||0!==t.length||(clearInterval(n),n=null);case 18:case"end":return o.stop()}}),o)}))),10))}return function(n){var r=eu();if(ia(n)){for(var i=us(),a=arguments.length,u=new Array(a>1?a-1:0),c=1;c<a;c++)u[c-1]=arguments[c];return t.push({id:i,func:n,input:u}),o(),e.once(i,(function(e){"success"===e.state?r.resolve(e.msg):"cancelled"===e.state?r.reject({reason:"cancelled"}):r.reject(e.msg)})),r}console.log("func is not function")}},e.queue=Gd,e.rang=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!ce(e))return[];if(e=se(e),!ce(t))return[];if(t=se(t),ce(n)||(n=2),(n=ro(n))<2&&(n=2),2===n)return[e,t];var r=(t-e)/(n-1),o=e,i=[];i.push(e);for(var a=1;a<=n;a++)o+=r,i.push(o);return i},e.rep=function(e,t){return E(e)&&Fo(t)?Kh(e,t):""},e.repObj=function(e,t){return mo(e)?[]:oo(t)?Yv(t,Co(e)):[]},e.replace=Eu,e.replaceObj=function(e,t){if(!E(e))return"";if(!ao(t))return"";var n=!1;return sn(t,(function(e,t){k(e)||(n=!0)})),n?"":(sn(t,(function(t,n){e=Eu(e,n,t)})),e)},e.replacePlus=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0;if(!E(e)||!E(t)||!E(n))return"";if(!k(o))return"";var i="[\\s\\S]*";E(r)&&(i="[^"+r+"]*");var a=t+i+n,u=new RegExp(a,"g"),c=e.replace(u,o);return c},e.round=function(e){return ce(e)?(e=se(e),no(e)):""},e.secd=function(e){return ce(e)?1/Qc(e=se(e)):null},e.sep=qi,e.sepInt=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!fe(e))return[];if(!Fo(t))return[];if(!ye(n))return[];for(var r=Jh(e/t),o=e-r*t,i=[],a=1;a<=t;a++){var u=r;a<=o&&(u=r+1),i.push(u)}return n&&(i=Jv(i)),i},e.sind=ts,e.split=Wi,e.str2aes=Ph,e.str2b64=Th,e.str2md5=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var n=de(e);return t?n.toString(pe):n.toString(ge)},e.str2obj=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Uint8Array";if(k(t))t=[t];else if(!fo(t))return{};function n(e,n){return t.indexOf("Uint8Array")>=0&&(n=Fh.b642u8arr(n)),t.indexOf("Uint16Array")>=0&&(n=Fh.b642u16arr(n)),n}var r={};try{r=JSON.parse(e,n)}catch(e){r={}}return r},e.str2sha512=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!E(e))return"";if(!ye(t))return"";var n=Qh(e);return t?n.toString(pe):n.toString(ge)},e.str2u8arr=Nh,e.strCompare=eg,e.strFindFuzz=ig,e.strFindFuzzDyn=function(e,t){return ag.apply(this,arguments)},e.strFindSimilar=function(e,t){var n="";if(E(e)||ce(e))n=Au(e);else{if(!yo(e))return{};n=Ca(e,"")}return ce(t)&&(t=Au(t)),E(t)&&(t=[t]),yo(t)?function(e,t){for(var n=[],r=0,o=0;o<t.length;o++){var i=t[o],a=eg(e,i);n.push({target:i,rating:a}),a>n[r].rating&&(r=o)}return{ratings:n,bestMatch:n[r],bestMatchIndex:r}}(n,t=wi(t,(function(e){return Au(e)}))):{}},e.strdelleft=$i,e.strdelright=xv,e.strleft=Xi,e.strmid=ja,e.strright=Vi,e.stru8arr2obj=ug,e.tand=es,e.time2day=function(e){return Fv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD"):""},e.time2hour=function(e){return Fv(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH"):""},e.time2min=zv,e.timeTZ2day=function(e){return yh(e)?(e=gh.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DD")):""},e.timeTZ2expire=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return yh(e)?cg(e=fg(e),t=fg(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timeTZ2hour=function(e){return yh(e)?(e=gh.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH")):""},e.timeTZ2min=function(e){return yh(e)?(e=gh.delTZ(e),d.default(e,"YYYY-MM-DDTHH:mm:ss").format("YYYY-MM-DDTHH:mm")):""},e.timeTZ2past=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return yh(e)?sg(e=lg(e),t=lg(t)):{today:null,msg:"",err:"時間格式錯誤"}},e.timems2day=function(e){return vh(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DD"):""},e.timems2hour=function(e){return vh(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH"):""},e.timems2min=function(e){return vh(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm"):""},e.timems2time=function(e){return vh(e)?d.default(e,"YYYY-MM-DDTHH:mm:ss.SSS").format("YYYY-MM-DDTHH:mm:ss"):""},e.timemsTZ2day=function(e){return mh(e)?(e=gh.delTZ(e),d.default(e).format("YYYY-MM-DD")):""},e.timemsTZ2expire=cg,e.timemsTZ2hour=function(e){return mh(e)?(e=gh.delTZ(e),d.default(e).format("YYYY-MM-DDTHH")):""},e.timemsTZ2min=function(e){return mh(e)?(e=gh.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm")):""},e.timemsTZ2past=sg,e.timemsTZ2time=function(e){return mh(e)?(e=gh.delTZ(e),d.default(e).format("YYYY-MM-DDTHH:mm:ss")):""},e.treeObj=$c,e.trim=sv,e.u16arr2b64=Lh,e.u16arr2u8arr=Yh,e.u8arr2ab=function(e){return Za(e)?e.buffer:new ArrayBuffer},e.u8arr2b64=Ih,e.u8arr2blob=av,e.u8arr2bs=function(e){if(!Za(e))return"";for(var t=e.length,n="",r=0;r<t;r++)n+=String.fromCharCode(e[r]);return n},e.u8arr2obj=function(e){var t=null;if(!Za(e))return null;try{var n=e.slice(0,8),r=e.slice(8,wv(e)),o=du(n),i=r.slice(0,o),a=r.slice(o,wv(r)),u=pg(i),c=function(e,t){var n=0,r=0,o=[];return sn(t,(function(t){r=n+t;var i=e.slice(n,r);n=r,o.push(i)})),o}(a,JSON.parse(u));t=ug({results:pg(c.shift()),binarys:c})}catch(e){}return t},e.u8arr2str=pg,e.u8arr2u16arr=Ka,e.urlParse=function(e){if(!E(e))return{};if(e=va(e,"?"),!E(e=Mt(e,"[1]")))return{};var t=va(e,"&");return t=wi(t,(function(e){return va(e,"=")})),t=dg(t)},e.verifyValue=function(e,t){var n=!1,r="";if("isstr"===t)k(e)||(n=!0,r="需要為字串",e="");else if("isnum"===t)ce(e)||(n=!0,r="需要為數字",e=0);else if("isp0num"===t)lh(e)||(n=!0,r="需要為含0的正浮點數",e=0);else if("isn0num"===t)fh(e)||(n=!0,r="需要為含0的負浮點數",e=0);else if("isint"===t)fe(e)||(n=!0,r="需要為整數",e=0);else if("ispint"===t)oo(e)||(n=!0,r="需要為不含0正整數",e=0);else if("isp0int"===t)Fo(e)||(n=!0,r="需要為含0正整數",e=0);else if("isnint"===t)ju(e)||(n=!0,r="需要為不含0負整數",e=0);else if("isn0int"===t)sh(e)||(n=!0,r="需要為含0負整數",e=0);else if(ia(t)){e=t(e)}else"any"===t?ce(e)||k(e)||(n=!0,r="需要為字串或數字",e=""):(n=!0,r="需要指定驗證類型",e=null);return{value:e,err:n,errmsg:r}},e.waitFun=wu,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
26
26
|
//# sourceMappingURL=wsemi.umd.js.map
|