From 87553b6f0135b37dd690cd18204b2bf22558efdf Mon Sep 17 00:00:00 2001 From: kola-web Date: Wed, 16 Jul 2025 11:16:28 +0800 Subject: [PATCH] =?UTF-8?q?3.0=202-3=E9=98=B6=E6=AE=B5=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 +- pnpm-lock.yaml | 23 ++-- src/components/calendar/theme/theme-geneB.wxss | 4 +- src/components/popup/index.ts | 21 +++- src/components/popup/index.wxml | 20 +++- src/components/uploadFile/index.js | 91 ++++++++------- src/components/uploadFile/index.scss | 23 ++-- src/components/uploadFile/index.wxml | 27 +++-- src/doctor/pages/changeTel/index.wxml | 4 +- src/doctor/pages/my/index.ts | 2 +- src/images/doc.png | Bin 0 -> 2214 bytes src/images/docx.png | Bin 0 -> 2492 bytes src/images/file.png | Bin 0 -> 925 bytes src/images/icon97.png | Bin 0 -> 685 bytes src/images/pdf.png | Bin 0 -> 1779 bytes src/images/ppt.png | Bin 0 -> 1697 bytes src/images/pptx.png | Bin 0 -> 2051 bytes src/images/xls.png | Bin 0 -> 2050 bytes src/images/xlsx.png | Bin 0 -> 2381 bytes src/miniprogram_npm/a-calc/index.js | 14 +++ src/miniprogram_npm/a-calc/index.js.map | 1 + src/miniprogram_npm/dayjs/index.js | 4 +- src/miniprogram_npm/echarts/index.js | 4 +- src/miniprogram_npm/number-precision/index.js | 4 +- src/patient/pages/bbmRemark/index.ts | 47 +++++++- src/patient/pages/bbmRemark/index.wxml | 11 +- src/patient/pages/bbmReport/index.ts | 82 +++++++++++++- src/patient/pages/bbmReport/index.wxml | 40 +++++-- src/patient/pages/course/index.scss | 7 ++ src/patient/pages/course/index.ts | 71 ++++++++---- src/patient/pages/course/index.wxml | 81 +++++++++++--- src/patient/pages/index/index.ts | 3 +- src/patient/pages/inhibitorsManage/index.ts | 76 ++++++++++++- src/patient/pages/inhibitorsManage/index.wxml | 27 +++-- src/patient/pages/inhibitorsManageList/index.ts | 60 ++++++++-- src/patient/pages/inhibitorsManageList/index.wxml | 31 ++++-- src/patient/pages/injectDate/index.ts | 130 ++++++++++++---------- src/patient/pages/injectDate/index.wxml | 8 +- src/patient/pages/preDiagnosisReport/index.ts | 49 +++++++- src/patient/pages/preDiagnosisReport/index.wxml | 82 ++++++++++++-- src/patient/pages/userInfo/index.ts | 6 +- src/patient/pages/userInfo/index.wxml | 2 +- 42 files changed, 813 insertions(+), 246 deletions(-) create mode 100644 src/images/doc.png create mode 100644 src/images/docx.png create mode 100644 src/images/file.png create mode 100644 src/images/icon97.png create mode 100644 src/images/pdf.png create mode 100644 src/images/ppt.png create mode 100644 src/images/pptx.png create mode 100644 src/images/xls.png create mode 100644 src/images/xlsx.png create mode 100644 src/miniprogram_npm/a-calc/index.js create mode 100644 src/miniprogram_npm/a-calc/index.js.map diff --git a/package.json b/package.json index e833ce9..0722056 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,11 @@ "dependencies": { "@miniprogram-component-plus/video-swiper": "^1.0.1", "@vant/weapp": "^1.11.2", + "a-calc": "^2.2.14", "dayjs": "^1.11.10", "echarts": "^5.4.3", "miniprogram-licia": "^1.39.2", - "mp-html": "^2.4.2", - "number-precision": "^1.6.0" + "mp-html": "^2.4.2" }, "devDependencies": { "@antfu/eslint-config": "^3.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a6f0cf0..4047f89 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,6 +14,9 @@ importers: '@vant/weapp': specifier: ^1.11.2 version: 1.11.7 + a-calc: + specifier: ^2.2.14 + version: 2.2.14 dayjs: specifier: ^1.11.10 version: 1.11.13 @@ -26,9 +29,6 @@ importers: mp-html: specifier: ^2.4.2 version: 2.5.1 - number-precision: - specifier: ^1.6.0 - version: 1.6.0 devDependencies: '@antfu/eslint-config': specifier: ^3.2.0 @@ -561,6 +561,9 @@ packages: '@vue/shared@3.5.14': resolution: {integrity: sha512-oXTwNxVfc9EtP1zzXAlSlgARLXNC84frFYkS0HHz0h3E4WZSP9sywqjqzGCP9Y34M8ipNmd380pVgmMuwELDyQ==} + a-calc@2.2.14: + resolution: {integrity: sha512-Lp6xxnZ1G+qgO4EeLGSYjKRYrYR5qnxE566sYo37KO2dIKYe+ZY5tQJ2MetR3uFhfyC2KcgeDDBH1AKg/rKdyA==} + acorn-jsx@5.3.2: resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==} peerDependencies: @@ -1421,9 +1424,6 @@ packages: nth-check@2.1.1: resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==} - number-precision@1.6.0: - resolution: {integrity: sha512-05OLPgbgmnixJw+VvEh18yNPUo3iyp4BEWJcrLu4X9W05KmMifN7Mu5exYvQXqxxeNWhvIF+j3Rij+HmddM/hQ==} - once@1.4.0: resolution: {integrity: sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==} @@ -1718,6 +1718,9 @@ packages: resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} engines: {node: '>=8'} + typescript-treasure@0.0.9: + resolution: {integrity: sha512-QPmpqJvQqZ7rt2iVNzPrtQNSFs1zVuTuP+jzE3np7qytEUcfSKtAW8RTDslldeAwaJjVJa0UM3ps1uVddpEMqQ==} + typescript@5.8.3: resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} engines: {node: '>=14.17'} @@ -2398,6 +2401,10 @@ snapshots: '@vue/shared@3.5.14': {} + a-calc@2.2.14: + dependencies: + typescript-treasure: 0.0.9 + acorn-jsx@5.3.2(acorn@8.14.1): dependencies: acorn: 8.14.1 @@ -3468,8 +3475,6 @@ snapshots: dependencies: boolbase: 1.0.0 - number-precision@1.6.0: {} - once@1.4.0: dependencies: wrappy: 1.0.2 @@ -3727,6 +3732,8 @@ snapshots: type-fest@0.8.1: {} + typescript-treasure@0.0.9: {} + typescript@5.8.3: {} ufo@1.6.1: {} diff --git a/src/components/calendar/theme/theme-geneB.wxss b/src/components/calendar/theme/theme-geneB.wxss index 46b0432..e91ee6b 100644 --- a/src/components/calendar/theme/theme-geneB.wxss +++ b/src/components/calendar/theme/theme-geneB.wxss @@ -8,8 +8,8 @@ } .geneb_choosed { - color: rgba(51, 51, 51, 1); - background-color: rgba(189, 189, 189, 0.3); + color:#fff; + background-color: rgba(246, 74, 58, 1); } .geneb_today { diff --git a/src/components/popup/index.ts b/src/components/popup/index.ts index 4945a48..06c4f23 100644 --- a/src/components/popup/index.ts +++ b/src/components/popup/index.ts @@ -1,5 +1,3 @@ -import { wxPromiseWrapper } from 'XrFrame/core/utils' - const app = getApp() Component({ @@ -20,6 +18,8 @@ Component({ data: { popup1Check1: false, + TCenterId: '', + imageUrl: app.globalData.imageUrl, Timestamp: app.globalData.Timestamp, }, @@ -33,6 +33,17 @@ Component({ }) return } + if (type === 'TCenter') { + if (!this.data.TCenterId) { + wx.showToast({ + title: '请选择诊疗中心', + icon: 'none', + }) + return + } + this.triggerEvent('ok', { id: this.data.TCenterId }) + return + } this.triggerEvent('ok') }, handleCancel() { @@ -53,5 +64,11 @@ Component({ const { status } = e.currentTarget.dataset this.triggerEvent('ok', { type: 'selectStatusComplete', status }) }, + handleSelectTCenter(e) { + const { id } = e.currentTarget.dataset + this.setData({ + TCenterId: id, + }) + }, }, }) diff --git a/src/components/popup/index.wxml b/src/components/popup/index.wxml index 1536181..e8f806c 100644 --- a/src/components/popup/index.wxml +++ b/src/components/popup/index.wxml @@ -161,16 +161,26 @@ 请选择您的基于治疗中心 - + - + - 中国医学科学院血液病医院 + {{item.hospitalName}} - 重新选择 - 提交 + 取消 + 提交 diff --git a/src/components/uploadFile/index.js b/src/components/uploadFile/index.js index 2b864a9..758aa5e 100644 --- a/src/components/uploadFile/index.js +++ b/src/components/uploadFile/index.js @@ -53,20 +53,6 @@ Component({ name: '选择聊天文件', }, ], - - fileTypenNum: { - image: 1, - video: 2, - audio: 3, - pdf: 4, - ppt: 7, - - 1: 'image', - 2: 'video', - 3: 'audio', - 4: 'pdf', - 7: 'ppt', - }, }, /** @@ -76,20 +62,49 @@ Component({ viewFile(e) { const { index } = e.currentTarget.dataset const { fileList } = this.properties - let sources = [] + const params = fileList[index] + if (['image', 'video'].includes(params.fileType)) { + let sources = [] - fileList.map((e) => { - const obj = { - url: e.fileUrl, - type: e.type, // image video - poster: e.imgUrl, - } - sources.push(obj) - }) - wx.previewMedia({ - current: index, - sources: sources, - }) + fileList.forEach((item) => { + let obj = {} + if (item.fileType === 'image') { + obj = { + url: item.url, + type: item.fileType, + poster: item.url, + } + } + if (item.fileType === 'video') { + obj = { + url: item.vidoeUrl, + type: item.fileType, + poster: item.url, + } + } + sources.push(obj) + }) + wx.previewMedia({ + current: index, + sources: sources, + }) + } else if (params.fileType !== 'audio') { + wx.downloadFile({ + url: params.url, + success(res) { + wx.openDocument({ + filePath: res.tempFilePath, + showMenu: true, + fail() { + wx.showToast({ + title: '该文件无法预览', + icon: 'none', + }) + }, + }) + }, + }) + } }, deleteFile(e) { const { index, item } = e.currentTarget.dataset @@ -135,16 +150,15 @@ Component({ }) }, uploadFile(item) { - const { fileTypenNum } = this.data return new Promise((resolve, resject) => { let url = `${app.globalData.upFileUrl}?r=file-service/upload-` - if (item.fileType === 'image') { + if (item.type === 'image') { url += 'img' } - if (item.fileType === 'video') { + if (item.type === 'video') { url += 'video' } - if (item.fileType === 'file') { + if (item.type === 'file') { url += 'doc' } wx.uploadFile({ @@ -155,18 +169,17 @@ Component({ let data = JSON.parse(res.data) let expandJson = { name: item.name, - extend: item.extend, - fnum: fileTypenNum[item.fileType], + fileType: item.fileType, } - if (item.fileType === 'image') { + if (item.type === 'image') { expandJson.url = data.data.Url } - if (item.fileType === 'video') { + if (item.type === 'video') { expandJson.url = data.data.SnapshotUrl expandJson.videoUrl = data.data.Url expandJson.duration = data.data.Duration } - if (item.fileType === 'file') { + if (item.type === 'file') { expandJson.url = data.data.Url } resolve(expandJson) @@ -242,6 +255,7 @@ Component({ e.name = e.tempFilePath e.extend = this.GetExtensionFileName(e.tempFilePath) e.tempFilePath = e.tempFilePath + e.type = e.fileType e.fileType = e.fileType }) this.upFile(res.tempFiles) @@ -259,10 +273,9 @@ Component({ extension: ['doc', 'docx', 'pdf', 'xlsx', 'xls', 'ppt', 'pptx'], success: (res) => { res.tempFiles.map((e) => { - e.fileType = 'file' + e.type = 'file' e.tempFilePath = e.path - e.extend = this.GetExtensionFileName(e.path) - console.warn('DEBUGPRINT[62]: index.js:265: e=', e) + e.fileType = this.GetExtensionFileName(e.path) }) this.upFile(res.tempFiles) }, diff --git a/src/components/uploadFile/index.scss b/src/components/uploadFile/index.scss index a2d0e0d..56eeb1d 100644 --- a/src/components/uploadFile/index.scss +++ b/src/components/uploadFile/index.scss @@ -1,14 +1,18 @@ /* components/uploadFile/index.wxss */ .upload-list { - display: flex; - flex-wrap: wrap; + display: grid; + grid-template-columns: repeat(3, minmax(160rpx, 200rpx)); gap: 18rpx; .item { - width: 180rpx; height: 180rpx; position: relative; line-height: 0; + background-color: rgba(217, 217, 217, 1); + border-radius: 12rpx; + display: flex; + align-items: center; + justify-content: center; .item_mask { position: absolute; width: 100%; @@ -30,11 +34,16 @@ height: 100%; border-radius: 12rpx; } + .sub-image{ + width: 104rpx; + height: 104rpx; + } .clear { position: absolute; - right: -22rpx; - top: -28rpx; - padding: 10rpx; + right: 0; + top: 0; + width: 36rpx; + height: 36rpx; z-index: 9; } } @@ -42,7 +51,7 @@ .btn { width: 188rpx; height: 188rpx; - border-radius: 20rpx; + border-radius: 12rpx; display: flex; flex-direction: column; justify-content: center; diff --git a/src/components/uploadFile/index.wxml b/src/components/uploadFile/index.wxml index 8427eb3..5357e89 100644 --- a/src/components/uploadFile/index.wxml +++ b/src/components/uploadFile/index.wxml @@ -1,12 +1,25 @@ - - - - - - - + + + + + + + diff --git a/src/doctor/pages/changeTel/index.wxml b/src/doctor/pages/changeTel/index.wxml index 4101d77..8db7ed2 100644 --- a/src/doctor/pages/changeTel/index.wxml +++ b/src/doctor/pages/changeTel/index.wxml @@ -6,6 +6,7 @@ {{codeText}} diff --git a/src/doctor/pages/my/index.ts b/src/doctor/pages/my/index.ts index b0a04f5..df6e35d 100644 --- a/src/doctor/pages/my/index.ts +++ b/src/doctor/pages/my/index.ts @@ -10,7 +10,7 @@ Page({ Days: '', }, onLoad() { - app.waitLogin().then(() => { + app.waitLogin({ type: 2 }).then(() => { app.getUserInfo(2).then((userInfo) => { this.setData({ userInfo, diff --git a/src/images/doc.png b/src/images/doc.png new file mode 100644 index 0000000000000000000000000000000000000000..e959eb6cebe0e720e5a053120e21af1fa3ca0e92 GIT binary patch literal 2214 zcmZ{mXEYlO7snHVSgER24GDsfma5oF%u1sOwOchyTaUe3D|qd_sambk2SsSD8dbGw z#fsX5Cq`|ptzPff_nha$y}$FnU+=l+ccTsT?y)lQG64VpR;-Su;U%5^S77?f&IkQe zcnP4V;XQRg5b+ z>%xCXrEcX7PW~2Y?2S-9*k}>;9Xb}xo;^Q5sGlD?&fQm9X$2QQ40rx2jzPd}CV4`z z7~B110%%1Dh{e1`!Tka}ASncpDQ0KKo*s({y`1>n2}8i!IoXtzv(?y>7MQ^NdHrxk z9XC4A75%44AVdRAXk=yvOIejG^h%OAVUX^&`0Q)6thVi~TOT5U`s3-QdV#95hxMMS z-9Q;M8ss%w5Bq{p3Yj9ZM&=BUjL;KAIJB~#SXk7|CbW4?DMH@2sswOj$ff&*ujb2d zuqjE`z!e~?zt-GX1?-9P1Z^%vCJnDb(jyipdyIzyd{+RA=~_m*EW&}_#*((`DFnms zxLr6F6Sy8syhH{w+Wivel?9yy1Tfb#R%ky7Q2;zFxWkO4;bk*;I)P;;6#yI{DIl~H zCOZTHWMwos5on|_FfsxS41Cbg9&S@RVPY@^#Aw@r!@oj-z%;>Wq(XdlzSmr*$a2n zMEs12(Z*p0qxw3^LEkjA7y@-LkeI%XPyZTzgBj2#TcmI6mSa;nlBRbKdg=LjPWE@F zRGNa?n&%f+Gm1e=NER-Z7n zjC6v^Sye=)sx)^HUE`NHX3qZH%CFnPP6>u*tHa1av~Qm@RXH>fMcZ{e^b=hXEE>{O zC5C22Ue~X#?vMRjE5^qEcNtP}*kxMGj?u>?tL~;z{^@NX`KqE~NHbh&!)iL`OEPI^ z&L$_vH)$_KigAar*XOs&RQH( za_rf5So~Z2+r2!%vuvsOWcupCT>Jud7 zetwn_jS)R>h#|5`RnUX+hPePl_n6Ft4}IKYMf5 zZ~4Gn{?swJZj4r2ru!Rx|nR~03<&RZv{t7f?5 zxYBwv`XMGk7t6amda@-ZcA0tx)q%`Pd>`CbW2E8?F&uf+| zX1}Qv^-$H>weC1Z^69gDDA{eE+VGEF`?vjQeCVO$DTypE8?4;CD0#W(K&iSaa_y(? z%X|2xmia~3S;WgmBII5Ov8}7DC3P``yO3os&X&$@Pj}iNwlP*^Ca}Sk+8EwVrvCVI z=dpz3j|Y$WTLgJa^C1r4o`V;j%3jpMZqF+}0`(*aW^Ae3uH|G*#w089#s=qG(~0r8 zGRp4F8356`6)x&vW<1Ckl!at_rWG;80%FJry<5-|K)=F{VU^j7u&=c z3oD`rojqq7cs^$USJ4`zeU!5@NsGlCG)4BqEl+w`YJ~ImyV#TVd8eDgK=wG5m3U$J zicFn5gL==D`;xX~{h}>q6wSf-fSIwdZvLI}LaO~T%`1I8eo;i!byL1T2az&QF4^o| zmUL4D5OTeE~(X5O>>~gZ5%znXGhpe#1JIJkVyH?iTX~% zEW_8i`8(bgjp$>29DVVcdCi{erC`m3|KF~n(mFKkkAUqRsn-!e#!AA%VlT_TNxJ!h ZR?=ta<8={9*yZB^z-sAfR;pWv{ukPC9v=Vz literal 0 HcmV?d00001 diff --git a/src/images/docx.png b/src/images/docx.png new file mode 100644 index 0000000000000000000000000000000000000000..c3492bd9b7c28e59e2fcec227a4ac19b32e9d171 GIT binary patch literal 2492 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 literal 0 HcmV?d00001 diff --git a/src/images/icon97.png b/src/images/icon97.png new file mode 100644 index 0000000000000000000000000000000000000000..11ae782a59ba36b7a8b435a1ca95e1d031caf6c6 GIT binary patch literal 685 zcmV;e0#f~nP)Px%XGugsR9HvN*UxL(U>FDRZ*gEFJ8X38%FHf9DszXiOM9H7;AMm2Sp(LScq;TT zFcc?ZVYfj+JPc7V*Loiw+#fKu9yVoobFn2Ecd;>toba(+o zj!&~}c?R?kzz52dS1LqR>H|3R66gXz+e;v-(pM%>G#b4nNz%3`itlQ*+IKViXeyQB zi^bxWAPD>IcKffvy~j+Te!suV^ZeR)JpPl(WOA%1!c;1iJ-^?7doUP$31jhWv$bzziv9wd`q3mKTfwUeUeQxzJUCEE@e5GhoE18*Z z4CYX)b(9iC=gkIKZBAPtWoBq{qwZtbP%VR$n8{=^{Y&ce`8c~MOQ3m7sZ`1nNEF3_ zU6g5%8YZ95cL-D{6du_{nF8ryO6r0m#-ktjdJ89h}L=n;DJ+%>a9Z+qCug42H=LcbK zAb_V{0+D5PcDUwJR!BzNpJmGDhDr@2XX-J46{k^JAlX4-=K(AMxCvnKx`F=zIv|Qf Tss8?Erki#Rd<0!okdeK%$jIYs(YSK#K|G>5Hb<2NyMd!AMjs z=R+5~yv(>mLn56XfLqS>z&?ZFU@fxYthiWx_{5rvgX^dx-}0L;TZ|w~tXD^fnI<)d zDz&@idvMnpP@{q34)AV1ZZLz)KWoZHrO~z)g#lJrwG@fN z3_6@j-$y+~hwF6fBlql}(}HzE14Y6ZBV5z0fe28^nqMw$5@x$g7W^A1TU^r)RQtl$ z(&kMI!bS3!Iirf03p(FmK@AI=5$)#@S3skF*Qfq=^@eUp1R~Ua-u3eIoH!qI^kbGA zhvE7IGRs6w=s}BBYkOv{jXKT&TLx~w*wk=_v#?Q2wlCZ>i-|^@c~~y!mHxp;gmCIecK^zrD*5f9YJii*(k}q zZaguXlj>eK;v6#wwu593XkGo9+&f|!E~sz;w>oa&-JkM)jJ=9uF5EP1nWrScSVvA>Jk zw+#uBDzoAqmma&R)T-F0)qXHMTon2zdJKB;_vUw8cjxrSX0saKxA(8OnGZ-@e2OS| zgLO)`O$3MJ7?HGh0n3`pA2N|3L(kX6gqAr4XgB#e%*5^_%|~R;q~lvWujS=daQ4r1 z3sOzZxKE2=e?Wp+Dor-t^tk?LwfCTLlVs#^)McB63AS$Lu%(6F$RA`Y_b&aFr0+<` z@}eda=77DnA@bho44j;hP(8%tqk%4E6~*O*MCIpO%af4z#;Djbk!Bny$sqtndhQ)` zheCSbVWyX`jfqY|LsXlT@|73l%QEM{;wqa8&42aD%2XlOlD5F%<-cJvHsiS&11Uzn z@TC0)%z=g57A^A035BnP^SN-f<@_0nO5W-2FQ0}|eWq)bPl}$CoiyoahaUFd&?a>{ z(S()C@OZ(&CQ+Y}LzQvvW3Cu!=3}#^YoUu;pLw$heni$b6@3=}IX~IJ$O`9kRn_V` zHh9V0ANT!${5|EO2I-M{oH`!Z3%XHP9JM6bIMdUHZi4wk2#jNLg4zL|*PK*ed*guY zBKdyvl*IglXY3=B8CL?5y*Es{izsYFVS5=F2k9P+=xnH77lKqSO&&DiP$*7Fw%JzSKpd>&m$?R35ZHF?0f9kmVr zsb9npm<)(ky_hQ9>sq?qq zuQ4_#n%DLa&HT>SrDr1z^B&fom7`Dpg8i36*NhR-bjmdSmlc|XAn6M4l6lzD@{Ywo N#NQpQpWrE%{{i}5I;{Wz literal 0 HcmV?d00001 diff --git a/src/images/ppt.png b/src/images/ppt.png new file mode 100644 index 0000000000000000000000000000000000000000..898063f25d24f702726bd0b6491a3f782f9117c9 GIT binary patch literal 1697 zcma)-dpy&P9>;&bxoqY#m+5gChCM2`O1b9IR@3Zcta8a^DCI@Tt%Y$OWk5n>tA%M zMLe~`=>G(vx-(5MO}rg|S5A?R0)j!zJOHSMkckAp)Ud^}%h4hJ2EE&BlR|b} zZ%L2AX}1fFtz%jFr6?B5^Y|L!S54bXuk!V)PuCxdvdND$_PSuE>gk-&_#je0KWbX$ zH?+}sGFLYqhaBhvfDYP?*~&mK}{4YU88Cl%`8dQZ5npgMx3S7F~Eu1 zha0Ih+TzK>Uyu`lE)_gpM*w~zTtptg$gHs|Wxug-n4zhNh?dGd{AIw}&Pz+h&ke$8 z)E>gRVxUb30bNZhZb`u6A1rwKcq#AUKQBh&}b9v3B~X1)c%wr<4(yQsvrI2r+aI)Q9VW&#dq{c{2$7%LoJB(C>~_qDfvtPPQdL z@g^Q{(49gcA~a4?hQ~%nC9BTk9S2#iFvxYT;0LAa#LCd7^BRj>C;sA;(Z~a4KZ9hU zw_nn2U`BSNNJ2u|mR&vGI*<|zv%9a?%D<-7As~Z92JuI{yC2#h8&E^vCPl-#k9lSt zKtT9J#x<+|I(*WF)3?|U^@BeeXEeQd9G&9yxdXDxeVejbobh=+cNU&KN4#Mf%e&Zl z;P|nO@mn`bO5?e;n*~OJ+Yb-lNmWc#Jd1wpi^iEVISKvgtk4iQYBSSE?u(nue5q0q zj>au9tGf=QC>m8~GU4p5eO5GEW!*sh!4EDPkSlEodJ6U__hvDl9-D^kF~;Pyz7xov3E#v8D~klIpbb4Np>r7-GRFM#axahHx|?F-l&sbx zIx>_wPw0HFg0niUXlpUKmON)Uzi4URFa`WGJY7d2QS!bvmDXTb65_VvaNR7^L|R@p zpu;?aJFj->vihZpr!}UhDz~>Bt=61?+_-ihSl`&>)6ekAwxt}|3%;^wFzmLROQ*^| zYvFw8l<$Ac=8DG)`+Adu_f`GNsmtY~uTpXIT%D1y&8e&X>VlzB5xlfwJHf@SJ-^4t zZ@u&v7Y5?-(k{~nHRoJ92{BB8w`66(ml_|M^LyUmU-qMD!+sL37~P3ijHPoi48-;u{htjPlsVc z!8S}kZqKOLcJ7S-pRFF=$sW)`QT=rP#T&HsgQHXLA_J62f{q?KG)))JRsj2!{1Vq6{nM3PRnhmnxCiwBL zg6icaa({ypFNZD`#pqzUOox(*yGN@5+DCl=Mr8J_Tuc@?a50De)_#9&jv(cc+Gn+J z9`8}@iZhdi)}}wJEi6#R&e5axmeoCxZSCgq8k-fL!fpF2RPu{Hn8rg%kKkAT`G*_iVujwC^L-?~$*@Y9aXjxezC z$MW?-Wv}NwPRFU}S^hsx)ZK5bN)`#4GO40^7q2TLbOZfjUpc&>C{H-gKhOK~eExhTP%X{(!clMl0QQneM4Mgu z{BNY8yIVz>U$_ep!^YeMsOeRn0RXAjWTNrqQ0Mta;dG?wzV`gl*K@QIdx~OV6yAa; zc>wG~R;0@BO(ZI$yHnIbuwey``xK!Bn#RSblYnZFsgXL73PZqnr=!5e+Vavw`HeJg zM$pOw!Pxv**3gZP)v);h!AmBC`I5Zj!<>G^%o}e!wP3+qz?yKt!NHYmED-$8jA;Q( z=A;5beKd#!OwvHTTZ;Z^fUq8%E708iGwB5C9aWUyt=0fPLGG$%v@$oJ0T7%af29N&oE zMc2+o6c#WYDOi*s1Aa`Y9w{uSyiFrTOi*AKeaFoyo3X`!olR---(=^MpEjg7bSJOyIAS_QYSf>_3|zxZjCP98DyD# z(Pg4~p1XChp))8t+^@BH)VCr6awlOsv=S&A6QWhandLT&1hwDg=`h}^6lNW|ShV!K+3>!h^Phn$qR`$TAVi@FI{?T}c#e=0Z-=m%f))4zj-n)y09%cYm~XfcW|q^Z2{P05SW(-F8E( zFP9VL-Vi^{i}N1(ivu>C7RBO%khRSz zMYsE7TpzZK_dgI!jEcj`Ca^~_!zVkc0t=^%q*jHpq0M2B3HX(3t_^*?swT_Bb_RP% zvs;MVq?DQHqWZtj_@uM&Qi&ezr5T;Yu7py@$HiP+)Xi2IyVf<~%^0%_u8A_K1-2iR zegm!K-Ix9p(AbDv^Y(6YVOXcut{hBH!?6l)zoYv!(@%C6U#XvhoMxP&w`rnMFuy9b zT_gPtHK2?eDrO$G#@sdGF0h{U@IGIqkYS|!>tpAOj=wh>z#JB!bC+djACC%lJjz)a zAz_I!m#IrKU$YvF?8jeY(Z#b)-t{9FaSFE|qwLRiR{Q^SF@g-Lq>1JsGu!4X{DM)P zni|x0WTb>Aq_Z<_Br?l6?^?9TwCzikl3AHvxZk5S2wg){3bLl+Br{%P`ed(G1AC>F$j87*g5{8*<(WAz>YzZRrc2C24Lc$!qGGCt-@>XJ7Oh9bip z5Q7pBl4Q$At^Ut-hGi%-G7Jyp&7O$zg!INLrJ*}x!~D>VYMRK_K9+AuL~gO_*0iY4 zuYl%&Ed&j$<^vuLSk<|=xunRY7VQ2!k<<>yob~~%-ExFiW zg^hi7&%ii$H2#)j_-fTvh6P})nVlGxK@pz+P(|pXjvwzT*?++4pw8x-J&2IfVB4n& zxWyDHPEL~nLDG~9|d?)jOMgu@B{wzA_$plG&3sb zxTAQe$Tr!SOLf#C3s+8cTeB20!JgMFEk9he)eX=u*xcNFUwUYMJv2fh(-iF7-PMHx zw}`)$(t?CH@O@?3*$vy-(`A9@?8KvBOVgOS&5RGl5oKJWX-_xpLi&-3~7`#hf{qMeN#OdSS+K;-Z^tivAt z|1;83dm90-F4_a|w}Xu(q^u7<4}n0RSqCkCU!hskEFiO-K5OAwEp7fI1B&vk=I*U4u_y)j@rXZrqq zI2i|8@>;^C!fv@4y}Xf!Vb}g#c_G+Y-l`OA#jg5hN*5n3eW~E5qKHQNy}>0>z@W7c zRJGYwfC4@_))EmLBR@@5yFmTCUPnVC`6?b5vlXN~gCePBpMHiR?&SvXUkm?BX+$42 zt>x(>^(5OgA$e04I68LXqqmNin70Env$KJ^$MW0&MLliOso>Dl z;>jrl2xCU~Hrdk0$Df@au^IFjeSgyJoe%hRqR`Z-vAl%Zd6zGVr+{0li=(o)3^Ng6 znk+j-jErHqsS$-#(KK~Du?@gyq8by#p^i>XJeef%QqrXg=pO#@vr=*o;cctrzr#svpwIe|=fZ3=i22!Zc8ejqch4KR^r{m`tJKsLRQmTDDB zad?w0u?aK+L|5OW=sswpq=-y5raPLOFw2CjzN$Xl|}d z#*x;biwqH*^VVVHVKbNy$kn<=#>No_1^yd0lmk#5R59z($aVG1n$jXj$EYB1*Ub!@Ybhs${Ce>UW|JE*Wy7RZ}42s$rzj2lIbhJ^ba!>}CVd z=>Xdw3XXhWb-cX`1lNZt-^<^5x#VSyBuP3RWTpUzYYB+`Cg8?PiUl~VNdkOim?>h# zup}6=|7uC!lSfb7RtMP0&-zA)y+(Eu+X<6ZXk7B$tH8->Pth-P5f0`F1{Fr0H=2hCQ@-K`r3A1a0 zaS4G|q1yMwE9kr7t;GYqlNjE~h0r#s4SIRvm9)jbRAxAf{jyvz#1#~Ez4$b7KK?5? zBmagBhdBc0*KVb^#>)@lqObpYL%tlWcX@*Zqc0aS$KOv4iC^3GRQ*Co8F=+h9MSYc zNi+h}c&q(4II27+6ewxa_1OlGR~Tn^3$A&MTL$13wg{M^&^Jy+K@{Red-F++T08RE z!qq?u#*}mC%njCMGVe~I?QFrQ#m7d|Gc#mQ`NIkZG}njxd#$P*n;!59-k#qvyEUTN ztqS_JJkZoHaVefzr*^t!YUCk%kG-LC5Y- z^@}b;hbIk1Z$$Lj`p$VkiR2eAe@AN_!vQX>XnYD8bI}tEqA1=K40&BB;)DkVISbj`ECxQR!uv16`+gW-dz zeiprVVJ#Q#WdJZ3kzt~cfCyCLZj#c6o$U98&v?wR8nF|m`>q~HjSIH?d_Ir3t{@$k zcV5391iK-5j0d=f?^`O?svMc(Eo?el~ehY6&ukC;T)cjY^)Lf*%H4@~-tD2)c5{xyL(`&A+#>)o=ZW-3x$f~+Hu!@UOVJtk{>P~?w-kc}iM*D$(_b*vD zto(%-w43=!tIZ7m|Bm)(kxX^#}LEQ-jvJN zEYSL8Gr{Ih6N7>=GpWZ>>38U79Sn1}7G6>H+BXDiz&Q!JcVM%QYP)uzUWJuK%}tSp z-6HZtYQ{HuPz3+-X%`!9hp5aS#`m-e_ddO;+ZsSH|sb@g(a6YjXgEvnM;*k6?dQ0%teQ9}tQN1Py5ZI1Di$C1Su1EnbSG;~LQzx{5HtTVe(7TF+H?`*u6vnjYD zw5?7owWI^l1{jq=g!2?A1x(!wVAP}qTu}%!EYt}9KT4|jwnC(if7L#kP+~9Y5WKY= Kw#?Gw*1rMvAHYli literal 0 HcmV?d00001 diff --git a/src/images/xlsx.png b/src/images/xlsx.png new file mode 100644 index 0000000000000000000000000000000000000000..36cf5fde0963801ad356e188987555567426eb66 GIT binary patch literal 2381 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 o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;E(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}function _typeof(e){return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_typeof(e)}function asyncGeneratorStep(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){asyncGeneratorStep(o,n,i,a,u,"next",e)}function u(e){asyncGeneratorStep(o,n,i,a,u,"throw",e)}a(void 0)}))}}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re?(a=i.slice(1,i.length),o=(+o+1).toString()):a=i}},"~5":function(){if(0!==u){var e="<"===r?n-1:n;a=t.slice(0,e);var i=+t[e];Number.isNaN(i)||i>=5&&(a=(+"9".concat(a)+1).toString().slice(1)).length>e&&(a=a.slice(1,a.length),o=(+o+1).toString())}},"~6":function(){if(0!==u){var i,s="<"===r?n-1:n,c=+t[s],l=t.slice(+s+1,t.length);l=""===l?0:parseInt(l),i=0===s?+e[e.length-1]:+t[s-1],a=t.slice(0,s),(c>=6||5===c&&l>0||5===c&&i%2!=0)&&(a=(+"9".concat(a)+1).toString().slice(1)).length>s&&(a=a.slice(1,a.length),o=(+o+1).toString())}}};return"<="===r?u<=n?a=t.replace(/0*$/,""):(s[i]&&s[i](),a=a.replace(/0+$/,"")):"<"===r?un&&s[i]&&s[i]():">="===r?u"===r&&u<=n&&(a=t+"0".repeat(n-u+1)),{int_part:o,dec_part:a}}var number_char="0123456789",var_char="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",number_first_char="0123456789-+",var_members_char="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$[].'\"",var_first_char="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",pure_number_var_first_char="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$",empty_char=" \n\r\t",state_initial="initial",state_number="number",state_scientific="scientific",state_operator="operator",state_bracket="bracket",state_var="var",state_symbol="symbol",state_percent="percent",state_round="round",state_plus$1="plus",state_comma="comma",state_fraction="fraction",state_to_number="to-number",state_to_number_string="to-number-string",operator_set=new Set(["+","-","*","/","%","**","//"]),isArray=Array.isArray,isArray$1=isArray,freeGlobal="object"==("undefined"==typeof global?"undefined":_typeof(global))&&global&&global.Object===Object&&global,freeGlobal$1=freeGlobal,freeSelf="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")(),root$1=root,_Symbol=root$1.Symbol,_Symbol$1=_Symbol,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty,nativeObjectToString$1=objectProto$4.toString,symToStringTag$1=_Symbol$1?_Symbol$1.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$3.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var n=!0}catch(e){}var i=nativeObjectToString$1.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),i}var objectProto$3=Object.prototype,nativeObjectToString=objectProto$3.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=_Symbol$1?_Symbol$1.toStringTag:void 0;function baseGetTag(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return null!=e&&"object"==_typeof(e)}var symbolTag="[object Symbol]";function isSymbol(e){return"symbol"==_typeof(e)||isObjectLike(e)&&baseGetTag(e)==symbolTag}var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(e,t){if(isArray$1(e))return!1;var r=_typeof(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!isSymbol(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}function isObject(e){var t=_typeof(e);return null!=e&&("object"==t||"function"==t)}var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=root$1["__core-js_shared__"],coreJsData$1=coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||""),uid?"Symbol(src)_1."+uid:""),uid;function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+""}catch(e){}}return""}var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reIsHostCtor=/^\[object .+?Constructor\]$/,funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto$2.hasOwnProperty,reIsNative=RegExp("^"+funcToString.call(hasOwnProperty$2).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(e){return!(!isObject(e)||isMasked(e))&&(isFunction(e)?reIsNative:reIsHostCtor).test(toSource(e))}function getValue(e,t){return null==e?void 0:e[t]}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:void 0}var nativeCreate=getNative(Object,"create"),nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$1="__lodash_hash_undefined__",objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate$1){var r=t[e];return r===HASH_UNDEFINED$1?void 0:r}return hasOwnProperty$1.call(t,e)?t[e]:void 0}var objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate$1?void 0!==t[e]:hasOwnProperty.call(t,e)}var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate$1&&void 0===t?HASH_UNDEFINED:t,this}function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t1?null!==(n=null!==(i=get(e[0],t))&&void 0!==i?i:get(e.at(-1),t))&&void 0!==n?n:r:1===e.length&&null!==(o=get(e[0],t))&&void 0!==o?o:r:null!==(a=get(e,t,r))&&void 0!==a?a:r}function parse_mantissa(e,t,r,n){var i=e.split("."),o=i[0],a=1===i.length?"":i[1],u=decimal_round(o,a,t,+r,n);return o=u.int_part,""===(a=u.dec_part)?o:"".concat(o,".").concat(a)}function integer_thousands(e){for(var t=e.length,r="";t>0;)r=e.substring(t-3,t)+(""!==r?",":"")+r,t-=3;return r}function parse_thousands(e){var t=e.split("."),r=t[0];return"-"===r[0]?t[0]="-"+integer_thousands(r.slice(1)):t[0]=integer_thousands(r),t.join(".")}function promise_queue(e){return _promise_queue.apply(this,arguments)}function _promise_queue(){return _promise_queue=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,i,o=arguments;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=o.length>1&&void 0!==o[1]?o[1]:5e3,n=0;case 2:if(!(n1&&(n.fmt_expr=i[1].trim()),n}function push_token$3(e,t){if(t.curr_state===state_number||t.curr_state===state_scientific){var r=t.expr.slice(t.prev_index,t.cur_index);if(t._unit){var n,i=split_unit_num(r),o=i.num,a=i.unit;if(void 0===a)e.push({type:state_number,value:o,real_value:o,has_unit:!1});else t.has_unit=!0,null!==(n=t.unit_str)&&void 0!==n||(t.unit_str=a),e.push({type:state_number,value:o,real_value:o,has_unit:!0,unit:a})}else e.push({type:state_number,value:r,real_value:r,has_unit:!1})}else if(t.curr_state===state_var){t.has_var=!0;var u=t.expr.slice(t.prev_index,t.cur_index),s=get_real_value(t.fill_data,u);if(t._unit){var c,l=split_unit_num(s),f=l.num,p=l.unit;if(void 0===p)e.push({type:"var",value:u,real_value:f,has_unit:!1});else t.has_unit=!0,null!==(c=t.unit_str)&&void 0!==c||(t.unit_str=p),e.push({type:"var",value:u,real_value:f,has_unit:!0,unit:p})}else e.push({type:"var",value:u,real_value:s,has_unit:!1})}else e.push({type:t.curr_state,value:t.expr.slice(t.prev_index,t.cur_index)});t.curr_state=state_initial,t.prev_index=t.cur_index}function tokenizer(e,t,r){for(var n,i={has_var:!1,has_unit:!1,unit_str:void 0,fill_data:t,cur_index:0,prev_index:0,curr_state:state_initial,expr:e,_unit:r},o=e.length,a=[];i.cur_index-1||"%"===n&&number_char.includes(e[i.cur_index-1])&&pure_number_var_first_char.includes(get_next_nonempty_char(e,i.cur_index,o))?push_token$3(a,i):i.cur_index++:push_token$3(a,i);break;case state_operator:var s=e[i.cur_index-1];"*"===n&&"*"===s?(i.cur_index++,a.push({type:state_operator,value:"**"}),i.prev_index=i.cur_index):"/"===n&&"/"===s?(i.cur_index++,a.push({type:state_operator,value:"//"}),i.prev_index=i.cur_index):(a.push({type:state_operator,value:s}),i.prev_index=i.cur_index),i.curr_state=state_initial;break;case state_var:var_members_char.includes(n)?i.cur_index++:push_token$3(a,i);break;case state_scientific:if(number_char.includes(n))i.cur_index++;else if("+-".includes(n)){var c=i.prev_index;"+-".includes(e[c])&&(c+=1);var l=e.slice(c,i.cur_index),f=l.at(-1);l.includes(n)||"e"!==f?push_token$3(a,i):i.cur_index++}else r&&-1==="*/+-() ".indexOf(n)?i.cur_index++:push_token$3(a,i);break;default:throw new Error("字符扫描状态错误")}return i.prev_indexg?p.c=p.e=null:e.e=10;s/=10,u++);return void(u>g?p.c=p.e=null:(p.e=u,p.c=[e]))}f=String(e)}else{if(!isNumeric.test(f=String(e)))return n(p,f,c);p.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(u=f.indexOf("."))>-1&&(f=f.replace(".","")),(s=f.search(/e/i))>0?(u<0&&(u=s),u+=+f.slice(s+1),f=f.substring(0,s)):u<0&&(u=f.length)}else{if(intCheck(t,2,x.length,"Base"),10==t&&E)return B(p=new A(e),h+p.e+1,_);if(f=String(e),c="number"==typeof e){if(0*e!=0)return n(p,f,c,t);if(p.s=1/e<0?(f=f.slice(1),-1):1,A.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(tooManyDigits+e)}else p.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(i=x.slice(0,t),u=s=0,l=f.length;su){u=l;continue}}else if(!a&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){a=!0,s=-1,u=0;continue}return n(p,String(e),c,t)}c=!1,(u=(f=r(f,t,10,p.s)).indexOf("."))>-1?f=f.replace(".",""):u=f.length}for(s=0;48===f.charCodeAt(s);s++);for(l=f.length;48===f.charCodeAt(--l););if(f=f.slice(s,++l)){if(l-=s,c&&A.DEBUG&&l>15&&(e>MAX_SAFE_INTEGER||e!==mathfloor(e)))throw Error(tooManyDigits+p.s*e);if((u=u-s-1)>g)p.c=p.e=null;else if(u=m)?toExponential(s,a):toFixedPoint(s,a,"0");else if(o=(e=B(new A(e),t,r)).e,u=(s=coeffToString(e.c)).length,1==n||2==n&&(t<=o||o<=v)){for(;uu){if(--t>0)for(s+=".";t--;s+="0");}else if((t+=o-u)>0)for(o+1==u&&(s+=".");t--;s+="0");return e.s<0&&i?"-"+s:s}function O(e,t){for(var r,n=1,i=new A(e[0]);n=10;i/=10,n++);return(r=n+r*LOG_BASE-1)>g?e.c=e.e=null:r=10;u/=10,i++);if((o=t-i)<0)o+=LOG_BASE,a=t,l=(s=f[c=0])/p[i-a-1]%10|0;else if((c=mathceil((o+1)/LOG_BASE))>=f.length){if(!n)break e;for(;f.length<=c;f.push(0));s=l=0,i=1,a=(o%=LOG_BASE)-LOG_BASE+1}else{for(s=u=f[c],i=1;u>=10;u/=10,i++);l=(a=(o%=LOG_BASE)-LOG_BASE+i)<0?0:s/p[i-a-1]%10|0}if(n=n||t<0||null!=f[c+1]||(a<0?s:s%p[i-a-1]),n=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?s/p[i-a]:0:f[c-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,n?(t-=e.e+1,f[0]=p[(LOG_BASE-t%LOG_BASE)%LOG_BASE],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=c,u=1,c--):(f.length=c+1,u=p[LOG_BASE-o],f[c]=a>0?mathfloor(s/p[i-a]%p[a])*u:0),n)for(;;){if(0==c){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,f[0]==BASE&&(f[0]=1));break}if(f[c]+=u,f[c]!=BASE)break;f[c--]=0,u=1}for(o=f.length;0===f[--o];f.pop());}e.e>g?e.c=e.e=null:e.e=m?toExponential(t,r):toFixedPoint(t,r,"0"),e.s<0?"-"+t:t)}return A.clone=clone,A.ROUND_UP=0,A.ROUND_DOWN=1,A.ROUND_CEIL=2,A.ROUND_FLOOR=3,A.ROUND_HALF_UP=4,A.ROUND_HALF_DOWN=5,A.ROUND_HALF_EVEN=6,A.ROUND_HALF_CEIL=7,A.ROUND_HALF_FLOOR=8,A.EUCLID=9,A.config=A.set=function(e){var t,r;if(null!=e){if("object"!=_typeof(e))throw Error(bignumberError+"Object expected: "+e);if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(intCheck(r=e[t],0,MAX,t),h=r),e.hasOwnProperty(t="ROUNDING_MODE")&&(intCheck(r=e[t],0,8,t),_=r),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((r=e[t])&&r.pop?(intCheck(r[0],-MAX,0,t),intCheck(r[1],0,MAX,t),v=r[0],m=r[1]):(intCheck(r,-MAX,MAX,t),v=-(m=r<0?-r:r))),e.hasOwnProperty(t="RANGE"))if((r=e[t])&&r.pop)intCheck(r[0],-MAX,-1,t),intCheck(r[1],1,MAX,t),d=r[0],g=r[1];else{if(intCheck(r,-MAX,MAX,t),!r)throw Error(bignumberError+t+" cannot be zero: "+r);d=-(g=r<0?-r:r)}if(e.hasOwnProperty(t="CRYPTO")){if((r=e[t])!==!!r)throw Error(bignumberError+t+" not true or false: "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw b=!r,Error(bignumberError+"crypto unavailable");b=r}else b=r}if(e.hasOwnProperty(t="MODULO_MODE")&&(intCheck(r=e[t],0,9,t),y=r),e.hasOwnProperty(t="POW_PRECISION")&&(intCheck(r=e[t],0,MAX,t),w=r),e.hasOwnProperty(t="FORMAT")){if("object"!=_typeof(r=e[t]))throw Error(bignumberError+t+" not an object: "+r);S=r}if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(r=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(r))throw Error(bignumberError+t+" invalid: "+r);E="0123456789"==r.slice(0,10),x=r}}return{DECIMAL_PLACES:h,ROUNDING_MODE:_,EXPONENTIAL_AT:[v,m],RANGE:[d,g],CRYPTO:b,MODULO_MODE:y,POW_PRECISION:w,FORMAT:S,ALPHABET:x}},A.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!A.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-MAX&&i<=MAX&&i===mathfloor(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%LOG_BASE)<1&&(t+=LOG_BASE),String(n[0]).length==t){for(t=0;t=BASE||r!==mathfloor(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(bignumberError+"Invalid BigNumber: "+e)},A.maximum=A.max=function(){return O(arguments,f.lt)},A.minimum=A.min=function(){return O(arguments,f.gt)},A.random=(i=9007199254740992,o=Math.random()*i&2097151?function(){return mathfloor(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,a,u=0,s=[],c=new A(p);if(null==e?e=h:intCheck(e,0,MAX),i=mathceil(e/LOG_BASE),b)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));u>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[u]=r[0],t[u+1]=r[1]):(s.push(a%1e14),u+=2);u=i/2}else{if(!crypto.randomBytes)throw b=!1,Error(bignumberError+"crypto unavailable");for(t=crypto.randomBytes(i*=7);u=9e15?crypto.randomBytes(7).copy(t,u):(s.push(a%1e14),u+=7);u=i/7}if(!b)for(;u=10;a/=10,u++);ur-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,a,u){var s,c,l,f,p,v,m,d,g=n.indexOf("."),b=h,y=_;for(g>=0&&(f=w,w=0,n=n.replace(".",""),v=(d=new A(i)).pow(n.length-g),w=f,d.c=r(toFixedPoint(coeffToString(v.c),v.e,"0"),10,o,e),d.e=d.c.length),l=f=(m=r(n,i,o,u?(s=x,e):(s=e,x))).length;0==m[--f];m.pop());if(!m[0])return s.charAt(0);if(g<0?--l:(v.c=m,v.e=l,v.s=a,m=(v=t(v,d,b,y,o)).c,p=v.r,l=v.e),g=m[c=l+b+1],f=o/2,p=p||c<0||null!=m[c+1],p=y<4?(null!=g||p)&&(0==y||y==(v.s<0?3:2)):g>f||g==f&&(4==y||p||6==y&&1&m[c-1]||y==(v.s<0?8:7)),c<1||!m[0])n=p?toFixedPoint(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(m.length=c,p)for(--o;++m[--c]>o;)m[c]=0,c||(++l,m=[1].concat(m));for(f=m.length;!m[--f];);for(g=0,n="";g<=f;n+=s.charAt(m[g++]));n=toFixedPoint(n,l,s.charAt(0))}return n}}(),t=function(){function e(e,t,r){var n,i,o,a,u=0,s=e.length,c=t%SQRT_BASE,l=t/SQRT_BASE|0;for(e=e.slice();s--;)u=((i=c*(o=e[s]%SQRT_BASE)+(n=l*o+(a=e[s]/SQRT_BASE|0)*c)%SQRT_BASE*SQRT_BASE+u)/r|0)+(n/SQRT_BASE|0)+l*a,e[s]=i%r;return u&&(e=[u].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,u){var s,c,l,f,p,h,_,v,m,d,g,b,y,w,S,x,E,N=n.s==i.s?1:-1,O=n.c,k=i.c;if(!(O&&O[0]&&k&&k[0]))return new A(n.s&&i.s&&(O?!k||O[0]!=k[0]:k)?O&&0==O[0]||!k?0*N:N/0:NaN);for(m=(v=new A(N)).c=[],N=o+(c=n.e-i.e)+1,u||(u=BASE,c=bitFloor(n.e/LOG_BASE)-bitFloor(i.e/LOG_BASE),N=N/LOG_BASE|0),l=0;k[l]==(O[l]||0);l++);if(k[l]>(O[l]||0)&&c--,N<0)m.push(1),f=!0;else{for(w=O.length,x=k.length,l=0,N+=2,(p=mathfloor(u/(k[0]+1)))>1&&(k=e(k,p,u),O=e(O,p,u),x=k.length,w=O.length),y=x,g=(d=O.slice(0,x)).length;g=u/2&&S++;do{if(p=0,(s=t(k,d,x,g))<0){if(b=d[0],x!=g&&(b=b*u+(d[1]||0)),(p=mathfloor(b/S))>1)for(p>=u&&(p=u-1),_=(h=e(k,p,u)).length,g=d.length;1==t(h,d,_,g);)p--,r(h,x<_?E:k,_,u),_=h.length,s=1;else 0==p&&(s=p=1),_=(h=k.slice()).length;if(_=10;N/=10,l++);B(v,o+(v.e=l+c*LOG_BASE-1)+1,a,f)}else v.e=c,v.r=+f;return v}}(),a=/^(-?)0([xbo])(?=\w[\w.]*$)/i,u=/^([^.]+)\.$/,s=/^\.([^.]+)$/,c=/^-?(Infinity|NaN)$/,l=/^\s*\+(?=[\w.])|^\s+|\s+$/g,n=function(e,t,r,n){var i,o=r?t:t.replace(l,"");if(c.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(a,(function(e,t,r){return i="x"==(r=r.toLowerCase())?16:"b"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(u,"$1").replace(s,"0.$1")),t!=o))return new A(o,i);if(A.DEBUG)throw Error(bignumberError+"Not a"+(n?" base "+n:"")+" number: "+t);e.s=null}e.c=e.e=null},f.absoluteValue=f.abs=function(){var e=new A(this);return e.s<0&&(e.s=1),e},f.comparedTo=function(e,t){return compare(this,new A(e,t))},f.decimalPlaces=f.dp=function(e,t){var r,n,i,o=this;if(null!=e)return intCheck(e,0,MAX),null==t?t=_:intCheck(t,0,8),B(new A(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},f.dividedBy=f.div=function(e,r){return t(this,new A(e,r),h,_)},f.dividedToIntegerBy=f.idiv=function(e,r){return t(this,new A(e,r),0,1)},f.exponentiatedBy=f.pow=function(e,t){var r,n,i,o,a,u,s,c,l=this;if((e=new A(e)).c&&!e.isInteger())throw Error(bignumberError+"Exponent not an integer: "+T(e));if(null!=t&&(t=new A(t)),a=e.e>14,!l.c||!l.c[0]||1==l.c[0]&&!l.e&&1==l.c.length||!e.c||!e.c[0])return c=new A(Math.pow(+T(l),a?e.s*(2-isOdd(e)):+T(e))),t?c.mod(t):c;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new A(NaN);(n=!u&&l.isInteger()&&t.isInteger())&&(l=l.mod(t))}else{if(e.e>9&&(l.e>0||l.e<-1||(0==l.e?l.c[0]>1||a&&l.c[1]>=24e7:l.c[0]<8e13||a&&l.c[0]<=9999975e7)))return o=l.s<0&&isOdd(e)?-0:0,l.e>-1&&(o=1/o),new A(u?1/o:o);w&&(o=mathceil(w/LOG_BASE+2))}for(a?(r=new A(.5),u&&(e.s=1),s=isOdd(e)):s=(i=Math.abs(+T(e)))%2,c=new A(p);;){if(s){if(!(c=c.times(l)).c)break;o?c.c.length>o&&(c.c.length=o):n&&(c=c.mod(t))}if(i){if(0===(i=mathfloor(i/2)))break;s=i%2}else if(B(e=e.times(r),e.e+1,1),e.e>14)s=isOdd(e);else{if(0===(i=+T(e)))break;s=i%2}l=l.times(l),o?l.c&&l.c.length>o&&(l.c.length=o):n&&(l=l.mod(t))}return n?c:(u&&(c=p.div(c)),t?c.mod(t):o?B(c,w,_,undefined):c)},f.integerValue=function(e){var t=new A(this);return null==e?e=_:intCheck(e,0,8),B(t,t.e+1,e)},f.isEqualTo=f.eq=function(e,t){return 0===compare(this,new A(e,t))},f.isFinite=function(){return!!this.c},f.isGreaterThan=f.gt=function(e,t){return compare(this,new A(e,t))>0},f.isGreaterThanOrEqualTo=f.gte=function(e,t){return 1===(t=compare(this,new A(e,t)))||0===t},f.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},f.isLessThan=f.lt=function(e,t){return compare(this,new A(e,t))<0},f.isLessThanOrEqualTo=f.lte=function(e,t){return-1===(t=compare(this,new A(e,t)))||0===t},f.isNaN=function(){return!this.s},f.isNegative=function(){return this.s<0},f.isPositive=function(){return this.s>0},f.isZero=function(){return!!this.c&&0==this.c[0]},f.minus=function(e,t){var r,n,i,o,a=this,u=a.s;if(t=(e=new A(e,t)).s,!u||!t)return new A(NaN);if(u!=t)return e.s=-t,a.plus(e);var s=a.e/LOG_BASE,c=e.e/LOG_BASE,l=a.c,f=e.c;if(!s||!c){if(!l||!f)return l?(e.s=-t,e):new A(f?a:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new A(l[0]?a:3==_?-0:0)}if(s=bitFloor(s),c=bitFloor(c),l=l.slice(),u=s-c){for((o=u<0)?(u=-u,i=l):(c=s,i=f),i.reverse(),t=u;t--;i.push(0));i.reverse()}else for(n=(o=(u=l.length)<(t=f.length))?u:t,u=t=0;t0)for(;t--;l[r++]=0);for(t=BASE-1;n>u;){if(l[--n]=0;){for(r=0,p=b[i]%m,h=b[i]/m|0,o=i+(a=s);o>i;)r=((c=p*(c=g[--a]%m)+(u=h*c+(l=g[a]/m|0)*p)%m*m+_[o]+r)/v|0)+(u/m|0)+h*l,_[o--]=c%v;_[o]=r}return r?++n:_.splice(0,1),k(e,_,n)},f.negated=function(){var e=new A(this);return e.s=-e.s||null,e},f.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new A(e,t)).s,!i||!t)return new A(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/LOG_BASE,a=e.e/LOG_BASE,u=n.c,s=e.c;if(!o||!a){if(!u||!s)return new A(i/0);if(!u[0]||!s[0])return s[0]?e:new A(u[0]?n:0*i)}if(o=bitFloor(o),a=bitFloor(a),u=u.slice(),i=o-a){for(i>0?(a=o,r=s):(i=-i,r=u),r.reverse();i--;r.push(0));r.reverse()}for((i=u.length)-(t=s.length)<0&&(r=s,s=u,u=r,t=i),i=0;t;)i=(u[--t]=u[t]+s[t]+i)/BASE|0,u[t]=BASE===u[t]?0:u[t]%BASE;return i&&(u=[i].concat(u),++a),k(e,u,a)},f.precision=f.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return intCheck(e,1,MAX),null==t?t=_:intCheck(t,0,8),B(new A(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*LOG_BASE+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},f.shiftedBy=function(e){return intCheck(e,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER),this.times("1e"+e)},f.squareRoot=f.sqrt=function(){var e,r,n,i,o,a=this,u=a.c,s=a.s,c=a.e,l=h+4,f=new A("0.5");if(1!==s||!u||!u[0])return new A(!s||s<0&&(!u||u[0])?NaN:u?a:1/0);if(0==(s=Math.sqrt(+T(a)))||s==1/0?(((r=coeffToString(u)).length+c)%2==0&&(r+="0"),s=Math.sqrt(+r),c=bitFloor((c+1)/2)-(c<0||c%2),n=new A(r=s==1/0?"5e"+c:(r=s.toExponential()).slice(0,r.indexOf("e")+1)+c)):n=new A(s+""),n.c[0])for((s=(c=n.e)+l)<3&&(s=0);;)if(o=n,n=f.times(o.plus(t(a,o,l,1))),coeffToString(o.c).slice(0,s)===(r=coeffToString(n.c)).slice(0,s)){if(n.e0&&_>0){for(o=_%u||u,l=h.substr(0,o);o<_;o+=u)l+=c+h.substr(o,u);s>0&&(l+=c+h.slice(o)),p&&(l="-"+l)}n=f?l+(r.decimalSeparator||"")+((s=+r.fractionGroupSize)?f.replace(new RegExp("\\d{"+s+"}\\B","g"),"$&"+(r.fractionGroupSeparator||"")):f):l}return(r.prefix||"")+n+(r.suffix||"")},f.toFraction=function(e){var r,n,i,o,a,u,s,c,l,f,h,v,m=this,d=m.c;if(null!=e&&(!(s=new A(e)).isInteger()&&(s.c||1!==s.s)||s.lt(p)))throw Error(bignumberError+"Argument "+(s.isInteger()?"out of range: ":"not an integer: ")+T(s));if(!d)return new A(m);for(r=new A(p),l=n=new A(p),i=c=new A(p),v=coeffToString(d),a=r.e=v.length-m.e-1,r.c[0]=POWS_TEN[(u=a%LOG_BASE)<0?LOG_BASE+u:u],e=!e||s.comparedTo(r)>0?a>0?r:l:s,u=g,g=1/0,s=new A(v),c.c[0]=0;f=t(s,r,0,1),1!=(o=n.plus(f.times(i))).comparedTo(e);)n=i,i=o,l=c.plus(f.times(o=l)),c=o,r=s.minus(f.times(o=r)),s=o;return o=t(e.minus(n),i,0,1),c=c.plus(o.times(l)),n=n.plus(o.times(i)),c.s=l.s=m.s,h=t(l,i,a*=2,_).minus(m).abs().comparedTo(t(c,n,a,_).minus(m).abs())<1?[l,i]:[c,n],g=u,h},f.toNumber=function(){return+T(this)},f.toPrecision=function(e,t){return null!=e&&intCheck(e,1,MAX),N(this,e,t,2)},f.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t="Infinity",i<0&&(t="-"+t)):t="NaN":(null==e?t=o<=v||o>=m?toExponential(coeffToString(n.c),o):toFixedPoint(coeffToString(n.c),o,"0"):10===e&&E?t=toFixedPoint(coeffToString((n=B(new A(n),h+o+1,_)).c),n.e,"0"):(intCheck(e,2,x.length,"Base"),t=r(toFixedPoint(coeffToString(n.c),o,"0"),10,e,i,!0)),i<0&&n.c[0]&&(t="-"+t)),t},f.valueOf=f.toJSON=function(){return T(this)},f._isBigNumber=!0,f[Symbol.toStringTag]="BigNumber",f[Symbol.for("nodejs.util.inspect.custom")]=f.valueOf,null!=e&&A.set(e),A}function bitFloor(e){var t=0|e;return e>0||e===t?t:t-1}function coeffToString(e){for(var t,r,n=1,i=e.length,o=e[0]+"";nc^r?1:-1;for(u=(s=i.length)<(c=o.length)?s:c,a=0;ao[a]^r?1:-1;return s==c?0:s>c^r?1:-1}function intCheck(e,t,r,n){if(er||e!==mathfloor(e))throw Error(bignumberError+(n||"Argument")+("number"==typeof e?er?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function isOdd(e){var t=e.c.length-1;return bitFloor(e.e/LOG_BASE)==t&&e.c[t]%2!=0}function toExponential(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function toFixedPoint(e,t,r){var n,i;if(t<0){for(i=r+".";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t=","<=","=","<",">"].includes(e.value))throw new Error("错误的格式化参数:",e.value);n.mantissa_type=e.value}else if("to-number"===t)n.to_number=!0;else if("to-number-string"===t)n.to_number_string=!0;else if("comma"===t)n.thousands=!0;else if("number"===t)n.mantissa=e.value;else if("var"===t)n.mantissa=e.real_value;else if("plus"===t)n.sign=!0;else if("round"===t)n.round=e.value;else if("fraction"===t)n.fraction=!0;else if("scientific"===t)n.scientific=!0;else{if("percent"!==t)throw new Error("错误的fmt Token");n.percent=!0}})),n.to_number)return[+parse_mantissa(r,n.mantissa_type,n.mantissa,n.round),n];if(n.scientific){var i=BigNumber(r).toExponential();return[n.sign&&!i.startsWith("-")?"+"+i:i,n]}if(n.fraction){var o=BigNumber(r).toFraction().map((function(e){return e.toFixed()})).join("/");return[n.sign&&!o.startsWith("-")?"+"+o:o,n]}return n.percent&&(r=BigNumber(r).times(100).toFixed()),null===n.mantissa?r.includes(".")&&(r=r.replace(/0*$/,"")):r=parse_mantissa(r,n.mantissa_type,n.mantissa,n.round),n.thousands&&(r=parse_thousands(r)),n.sign&&(n.to_number=!1,r.startsWith("-")||(r="+"+r)),n.percent&&(r+="%"),[r,n]}function close_important_push(){}function open_important_push(){}function open_debug(){}function close_debug(){}function calc_wrap(e,t){var r={_error:"-"};return["string","number"].includes(_typeof(e))?void 0===t?/[a-zA-Z$_]/.test(e.toString())?function(t){return Array.isArray(t)?t.unshift(r):t=_objectSpread2(_objectSpread2({},r),t),calc(e,t)}:calc(e):(Array.isArray(t)?t.unshift(r):t=_objectSpread2(_objectSpread2({},r),t),calc(e,t)):(Array.isArray(e)?e.unshift(r):e=_objectSpread2(_objectSpread2({},r),e),function(t){return calc(t,e)})}function check_version(){return _check_version.apply(this,arguments)}function _check_version(){return _check_version=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(){var res,code,versions,last_version,larr,varr,script,url;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if("undefined"==typeof process||"node"!==process.release.name){_context.next=19;break}if(!(parseInt(process.versions.node)>=17)){_context.next=17;break}return _context.next=4,promise_queue([fetch("https://cdn.jsdelivr.net/npm/a-calc@latest/a-calc.versions.js"),fetch("https://unpkg.com/a-calc@latest/a-calc.versions.js")]);case 4:return res=_context.sent,_context.next=7,res.text();case 7:code=_context.sent,versions=eval(code),last_version=versions.at(-1),larr=last_version.match(/(\d+)\.(\d+)\.(\d+)/),larr.shift(),larr=larr.map((function(e){return parseInt(e)})),varr=version.match(/(\d+)\.(\d+)\.(\d+)/),varr.shift(),varr=varr.map((function(e){return parseInt(e)})),(larr[0]>varr[0]||larr[0]===varr[0]&&larr[1]>varr[1]||larr[0]===varr[0]&&larr[1]===varr[1]&&larr[2]>varr[2])&&console.warn("a-calc has a new version:",last_version);case 17:_context.next=25;break;case 19:return script=document.createElement("script"),script.onload=function(){var e=a_calc_versions;if(Array.isArray(e)){var t=e.at(-1),r=t.match(/(\d+)\.(\d+)\.(\d+)/);r.shift(),r=r.map((function(e){return parseInt(e)}));var n=version.match(/(\d+)\.(\d+)\.(\d+)/);n.shift(),n=n.map((function(e){return parseInt(e)})),(r[0]>n[0]||r[0]===n[0]&&r[1]>n[1]||r[0]===n[0]&&r[1]===n[1]&&r[2]>n[2])&&console.log("%c↑↑↑ a-calc has a new version: %s ↑↑↑","color: #67C23A;",t)}},_context.next=23,test_urls(["https://cdn.jsdelivr.net/npm/a-calc@latest/a-calc.versions.js","https://unpkg.com/a-calc@latest/a-calc.versions.js"]);case 23:url=_context.sent,url?(script.src=url,document.body.appendChild(script)):script=null;case 25:case"end":return _context.stop()}}),_callee)}))),_check_version.apply(this,arguments)}var operator=new Set(["+","-","*","/","%","**","//"]);function push_token$2(e,t,r){if(Number.isNaN(Number(t)))if("-"===t||"+"===t)0===e.length||"operator"===e.at(-1).type||"("===e.at(-1).value?e.push({type:"number",value:t,real_value:t,has_unit:!1}):e.push({type:"operator",value:t});else if(operator.has(t))e.push({type:"operator",value:t});else if(r._unit&&/^[+-]?\d/.test(t)){var n,i=split_unit_num(t),o=i.num,a=i.unit;if(void 0===a)e.push({type:"number",value:o,real_value:o,has_unit:!1});else r.has_unit=!0,null!==(n=r.unit_str)&&void 0!==n||(r.unit_str=a),e.push({type:"number",value:o,real_value:o,has_unit:!0,unit:a})}else if(var_first_char.includes(t[0])){r.has_var=!0;var u=get_real_value(r.fill_data,t);if(r._unit){var s,c=split_unit_num(u),l=c.num,f=c.unit;if(void 0===f)e.push({type:"var",value:t,real_value:l,has_unit:!1});else r.has_unit=!0,null!==(s=r.unit_str)&&void 0!==s||(r.unit_str=f),e.push({type:"var",value:t,real_value:l,has_unit:!0,unit:f})}else e.push({type:"var",value:t,real_value:u,has_unit:!1})}else{if(!/^[+-]?\d/.test(t))throw new Error("无法识别的标识符:".concat(t));var p=t.indexOf("e");-1!==p&&/^\d+$/.test(t.slice(p+1))&&e.push({type:"number",value:t,real_value:t,has_unit:!1})}else e.push({type:"number",value:t,real_value:t,has_unit:!1})}function tokenizer_space(e,t,r){for(var n,i=0,o=0,a=e.length,u=[],s={has_var:!1,has_unit:!1,unit_str:void 0,_unit:r,fill_data:t};oi&&push_token$2(u,e.slice(i,o),s),i=o+1):"("===n?(u.push({type:state_bracket,value:"("}),i=o+1):")"===n&&(o>i&&push_token$2(u,e.slice(i,o),s),u.push({type:state_bracket,value:")"}),i=o+1),o++;return o>i&&push_token$2(u,e.slice(i,o),s),u.has_var=s.has_var,u.has_unit=s.has_unit,u.unit=s.unit_str,u}function compute(e,t,r){if(void 0===e||void 0===t)throw new Error("无效的操作数对:v1:".concat(e,", v2:").concat(t));switch(r){case"+":return new BigNumber(e).plus(t);case"-":return new BigNumber(e).minus(t);case"*":return new BigNumber(e).times(t);case"/":return new BigNumber(e).div(t);case"%":return new BigNumber(e).mod(t);case"**":return new BigNumber(e).pow(t);case"//":return new BigNumber(e).idiv(t)}}var operator_map$1={"+":0,"-":0,"*":1,"/":1,"%":1,"//":1,"**":2};function eval_tokens(e){if(1===e.length){var t=e[0];if("number"===t.type||"var"===t.type)return t.real_value;throw new Error("错误的表达式:".concat(t.value))}for(var r,n,i=[],o=[],a=0,u=e.length;a=".includes(r))o.state=state_symbol,n.curr++;else if(","===r)n.curr++,push_token$1(a,state_comma,",",n,o);else if(var_char.includes(r))o.state=state_var,n.curr++;else if(number_char.includes(r))o.state=state_number,n.curr++;else if("+"===r)n.curr++,push_token$1(a,state_plus$1,"+",n,o);else if("~"===r)n.curr++,o.state=state_round;else if("%"===r)n.curr++,push_token$1(a,state_percent,"%",n,o);else if("/"===r)n.curr++,push_token$1(a,state_fraction,"/",n,o);else if("!"===r)if(o.state=state_initial,n.curr++,"n"===e[n.curr])n.curr++,push_token$1(a,state_to_number,"!n",n,o);else if("u"===e[n.curr])n.curr++,push_token$1(a,state_to_number_string,"!u",n,o);else{if("e"!==e[n.curr])throw new Error("无法识别的!模式字符:".concat(e[n.curr]));n.curr++,push_token$1(a,state_scientific,"!e",n,o)}else n.curr++,n.prev=n.curr;break;case state_symbol:"="===r&&n.curr++,push_token$1(a,state_symbol,e.slice(n.prev,n.curr),n,o);break;case state_number:number_char.includes(r)?n.curr++:push_token$1(a,state_number,e.slice(n.prev,n.curr),n,o);break;case state_var:var_members_char.includes(r)?n.curr++:push_token$1(a,state_var,e.slice(n.prev,n.curr),n,o);break;case state_round:if(!("56+-".includes(r)&&n.curr-n.prev<2))throw new Error("错误的舍入语法:".concat(e.slice(n.prev,n.curr+1)));n.curr++,push_token$1(a,state_round,e.slice(n.prev,n.curr),n,o);break;default:throw new Error("错误的fmt分词器状态")}return n.prev","=",">=","<="]),rand_set=new Set(["~+","~-","~5","~6"]);function push_token(e,t,r){if(","===t)e.push({type:state_comma,value:","});else if(symbol_set.has(t))e.push({type:state_symbol,value:t});else if(Number.isNaN(Number(t)))if(var_first_char.includes(t[0]))r.has_var=!0,e.push({type:state_var,value:t,real_value:get_real_value(r.fill_data,t)});else if("%"===t)e.push({type:state_percent,value:t});else if("/"===t)e.push({type:state_fraction,value:t});else if("+"===t)e.push({type:state_plus,value:t});else if(rand_set.has(t))e.push({type:state_round,value:t});else if("!n"===t)e.push({type:state_to_number,value:t});else if("!u"===t)e.push({type:state_to_number_string,value:t});else{if("!e"!==t)throw new Error("无法识别的格式化字符: ".concat(t));e.push({type:state_scientific,value:t})}else e.push({type:state_number,value:t})}function fmt_tokenizer_space(e,t){for(var r,n=0,i=e.length,o={fill_data:t,has_var:!1},a=0,u=[];na&&push_token(u,e.slice(a,n),o),a=n+1):"<>=".includes(r)&&("="===e[n+1]?(u.push({type:state_symbol,value:r+"="}),a=1+ ++n):(u.push({type:state_symbol,value:r}),a=n+1)),n++;return a3&&void 0!==arguments[3]?arguments[3]:"-";try{var i;if("number"==typeof e)i=e.toString();else{if(""===e)throw new Error("非法的空计算式");var o=e.split(" ");if(1===o.length){if(i=o[0],var_first_char.includes(i[0])&&(i=get_real_value(r,i)),isNaN(Number(i)))throw new Error("错误的计算式:".concat(e))}else i=eval_tokens_lite(o,r).toFixed()}if("string"==typeof t&&""!==t){var a=fmt_tokenizer(t,r);if(void 0!==a)i=_slicedToArray(format(i,a),1)[0]}if("NaN"===i||"Infinity"===i)throw new Error("计算环节出错");return i}catch(e){return n}}function calc_mini(e,t,r){switch(t){case"+":return BigNumber(e).plus(r).toFixed();case"-":return BigNumber(e).minus(r).toFixed();case"*":return BigNumber(e).times(r).toFixed();case"/":return BigNumber(e).div(r).toFixed();case"%":return BigNumber(e).mod(r).toFixed();case"**":return BigNumber(e).pow(r).toFixed();case"//":return BigNumber(e).idiv(r).toFixed()}}function calc(e,t){var r=find_value(t,"_error");try{var n,i,o,a,u,s=parse_args(e,t),c=s._unit,l=s._mode,f="space"===l||"space-all"===l?tokenizer_space(s.expr,s.fill_data,c):tokenizer(s.expr,s.fill_data,c),p=eval_tokens(f),h=BigNumber.isBigNumber(p)?p:new BigNumber(p);if("space-all"===l?(a=""===s.fmt_expr||void 0===s.fmt_expr?void 0:fmt_tokenizer_space(s.fmt_expr,s.fill_data),u=""===s._fmt||void 0===s._fmt?void 0:fmt_tokenizer_space(s._fmt,s.fill_data)):(a=""===s.fmt_expr||void 0===s.fmt_expr?void 0:fmt_tokenizer(s.fmt_expr,s.fill_data),u=""===s._fmt||void 0===s._fmt?void 0:fmt_tokenizer(s._fmt,s.fill_data)),void 0===a?void 0!==u&&(a=u):void 0!==u&&(a=[].concat(_toConsumableArray(u),_toConsumableArray(a))),void 0===a)h=h.toFixed();else{var _=_slicedToArray(format(h,a),2);h=_[0],o=_[1]}if("Infinity"===h||"NaN"===h||void 0===h)throw new Error("计算错误可能是非法的计算式");return!f.has_unit||null!==(n=o)&&void 0!==n&&n.to_number||null!==(i=o)&&void 0!==i&&i.to_number_string||(h+=f.unit),h}catch(e){if(void 0===r)throw e;return r}}function check_update(){check_version().catch((function(){}))}function print_version(){console.log("%ca-calc:%c ".concat(version," %c=> %curl:%c https://www.npmjs.com/package/a-calc"),"color: #fff;background: #67C23A;padding: 2px 5px;border-radius:4px;font-size: 14px;","color: #67C23A;font-size:14px;","color: #67C23A;font-size:14px;","background: #67C23A;font-size:14px; padding: 2px 5px; border-radius: 4px; color: #fff;","font-size:14px;")}var calc_util={check_update:check_update,print_version:print_version,open_debug:open_debug,close_debug:close_debug,close_important_push:close_important_push,open_important_push:open_important_push},fmt=calc;function plus(e,t){return"number"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number")?new BigNumber(e).plus(t).toNumber():new BigNumber(e).plus(t).toFixed()}function sub(e,t){return"number"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number")?new BigNumber(e).minus(t).toNumber():new BigNumber(e).minus(t).toFixed()}function mul(e,t){return"number"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number")?new BigNumber(e).times(t).toNumber():new BigNumber(e).times(t).toFixed()}function div(e,t){return"number"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number")?new BigNumber(e).div(t).toNumber():new BigNumber(e).div(t).toFixed()}function mod(e,t){return"number"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number")?new BigNumber(e).mod(t).toNumber():new BigNumber(e).mod(t).toFixed()}function pow(e,t){return"number"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number")?new BigNumber(e).pow(t).toNumber():new BigNumber(e).pow(t).toFixed()}function idiv(e,t){return"number"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:"number")?new BigNumber(e).idiv(t).toNumber():new BigNumber(e).idiv(t).toFixed()}exports.calc=calc,exports.calc_lite=calc_lite,exports.calc_mini=calc_mini,exports.calc_util=calc_util,exports.calc_wrap=calc_wrap,exports.div=div,exports.fmt=fmt,exports.idiv=idiv,exports.mod=mod,exports.mul=mul,exports.parse_thousands=parse_thousands,exports.plus=plus,exports.pow=pow,exports.sub=sub,exports.version=version; + +}, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); }) +return __REQUIRE__(1752627705491); +})() +//miniprogram-npm-outsideDeps=[] +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/src/miniprogram_npm/a-calc/index.js.map b/src/miniprogram_npm/a-calc/index.js.map new file mode 100644 index 0000000..0f90d9b --- /dev/null +++ b/src/miniprogram_npm/a-calc/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["index.js"],"names":[],"mappings":";;;;;;;AAAA;AACA","file":"index.js","sourcesContent":["function _iterableToArrayLimit(e,t){var r=null==e?null:\"undefined\"!=typeof Symbol&&e[Symbol.iterator]||e[\"@@iterator\"];if(null!=r){var n,i,o,a,u=[],s=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=o.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(e){c=!0,i=e}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw i}}return u}}function ownKeys(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function _objectSpread2(e){for(var t=1;t=0;--i){var o=this.tryEntries[i],a=o.completion;if(\"root\"===o.tryLoc)return n(\"end\");if(o.tryLoc<=this.prev){var u=r.call(o,\"catchLoc\"),s=r.call(o,\"finallyLoc\");if(u&&s){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,\"finallyLoc\")&&this.prev=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if(\"throw\"===n.type){var i=n.arg;E(r)}return i}}throw new Error(\"illegal catch attempt\")},delegateYield:function(e,t,r){return this.delegate={iterator:N(e),resultName:t,nextLoc:r},\"next\"===this.method&&(this.arg=void 0),f}},e}function _typeof(e){return _typeof=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&\"function\"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?\"symbol\":typeof e},_typeof(e)}function asyncGeneratorStep(e,t,r,n,i,o,a){try{var u=e[o](a),s=u.value}catch(e){return void r(e)}u.done?t(s):Promise.resolve(s).then(n,i)}function _asyncToGenerator(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var o=e.apply(t,r);function a(e){asyncGeneratorStep(o,n,i,a,u,\"next\",e)}function u(e){asyncGeneratorStep(o,n,i,a,u,\"throw\",e)}a(void 0)}))}}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _iterableToArray(e){if(\"undefined\"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e[\"@@iterator\"])return Array.from(e)}function _unsupportedIterableToArray(e,t){if(e){if(\"string\"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return\"Object\"===r&&e.constructor&&(r=e.constructor.name),\"Map\"===r||\"Set\"===r?Array.from(e):\"Arguments\"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re?(a=i.slice(1,i.length),o=(+o+1).toString()):a=i}},\"~5\":function(){if(0!==u){var e=\"<\"===r?n-1:n;a=t.slice(0,e);var i=+t[e];Number.isNaN(i)||i>=5&&(a=(+\"9\".concat(a)+1).toString().slice(1)).length>e&&(a=a.slice(1,a.length),o=(+o+1).toString())}},\"~6\":function(){if(0!==u){var i,s=\"<\"===r?n-1:n,c=+t[s],l=t.slice(+s+1,t.length);l=\"\"===l?0:parseInt(l),i=0===s?+e[e.length-1]:+t[s-1],a=t.slice(0,s),(c>=6||5===c&&l>0||5===c&&i%2!=0)&&(a=(+\"9\".concat(a)+1).toString().slice(1)).length>s&&(a=a.slice(1,a.length),o=(+o+1).toString())}}};return\"<=\"===r?u<=n?a=t.replace(/0*$/,\"\"):(s[i]&&s[i](),a=a.replace(/0+$/,\"\")):\"<\"===r?un&&s[i]&&s[i]():\">=\"===r?u\"===r&&u<=n&&(a=t+\"0\".repeat(n-u+1)),{int_part:o,dec_part:a}}var number_char=\"0123456789\",var_char=\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$\",number_first_char=\"0123456789-+\",var_members_char=\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_$[].'\\\"\",var_first_char=\"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$\",pure_number_var_first_char=\"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_$\",empty_char=\" \\n\\r\\t\",state_initial=\"initial\",state_number=\"number\",state_scientific=\"scientific\",state_operator=\"operator\",state_bracket=\"bracket\",state_var=\"var\",state_symbol=\"symbol\",state_percent=\"percent\",state_round=\"round\",state_plus$1=\"plus\",state_comma=\"comma\",state_fraction=\"fraction\",state_to_number=\"to-number\",state_to_number_string=\"to-number-string\",operator_set=new Set([\"+\",\"-\",\"*\",\"/\",\"%\",\"**\",\"//\"]),isArray=Array.isArray,isArray$1=isArray,freeGlobal=\"object\"==(\"undefined\"==typeof global?\"undefined\":_typeof(global))&&global&&global.Object===Object&&global,freeGlobal$1=freeGlobal,freeSelf=\"object\"==(\"undefined\"==typeof self?\"undefined\":_typeof(self))&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function(\"return this\")(),root$1=root,_Symbol=root$1.Symbol,_Symbol$1=_Symbol,objectProto$4=Object.prototype,hasOwnProperty$3=objectProto$4.hasOwnProperty,nativeObjectToString$1=objectProto$4.toString,symToStringTag$1=_Symbol$1?_Symbol$1.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$3.call(e,symToStringTag$1),r=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var n=!0}catch(e){}var i=nativeObjectToString$1.call(e);return n&&(t?e[symToStringTag$1]=r:delete e[symToStringTag$1]),i}var objectProto$3=Object.prototype,nativeObjectToString=objectProto$3.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag=\"[object Null]\",undefinedTag=\"[object Undefined]\",symToStringTag=_Symbol$1?_Symbol$1.toStringTag:void 0;function baseGetTag(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return null!=e&&\"object\"==_typeof(e)}var symbolTag=\"[object Symbol]\";function isSymbol(e){return\"symbol\"==_typeof(e)||isObjectLike(e)&&baseGetTag(e)==symbolTag}var reIsDeepProp=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,reIsPlainProp=/^\\w*$/;function isKey(e,t){if(isArray$1(e))return!1;var r=_typeof(e);return!(\"number\"!=r&&\"symbol\"!=r&&\"boolean\"!=r&&null!=e&&!isSymbol(e))||(reIsPlainProp.test(e)||!reIsDeepProp.test(e)||null!=t&&e in Object(t))}function isObject(e){var t=_typeof(e);return null!=e&&(\"object\"==t||\"function\"==t)}var asyncTag=\"[object AsyncFunction]\",funcTag=\"[object Function]\",genTag=\"[object GeneratorFunction]\",proxyTag=\"[object Proxy]\";function isFunction(e){if(!isObject(e))return!1;var t=baseGetTag(e);return t==funcTag||t==genTag||t==asyncTag||t==proxyTag}var coreJsData=root$1[\"__core-js_shared__\"],coreJsData$1=coreJsData,maskSrcKey=(uid=/[^.]+$/.exec(coreJsData$1&&coreJsData$1.keys&&coreJsData$1.keys.IE_PROTO||\"\"),uid?\"Symbol(src)_1.\"+uid:\"\"),uid;function isMasked(e){return!!maskSrcKey&&maskSrcKey in e}var funcProto$1=Function.prototype,funcToString$1=funcProto$1.toString;function toSource(e){if(null!=e){try{return funcToString$1.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}var reRegExpChar=/[\\\\^$.*+?()[\\]{}|]/g,reIsHostCtor=/^\\[object .+?Constructor\\]$/,funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto$2.hasOwnProperty,reIsNative=RegExp(\"^\"+funcToString.call(hasOwnProperty$2).replace(reRegExpChar,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\");function baseIsNative(e){return!(!isObject(e)||isMasked(e))&&(isFunction(e)?reIsNative:reIsHostCtor).test(toSource(e))}function getValue(e,t){return null==e?void 0:e[t]}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:void 0}var nativeCreate=getNative(Object,\"create\"),nativeCreate$1=nativeCreate;function hashClear(){this.__data__=nativeCreate$1?nativeCreate$1(null):{},this.size=0}function hashDelete(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var HASH_UNDEFINED$1=\"__lodash_hash_undefined__\",objectProto$1=Object.prototype,hasOwnProperty$1=objectProto$1.hasOwnProperty;function hashGet(e){var t=this.__data__;if(nativeCreate$1){var r=t[e];return r===HASH_UNDEFINED$1?void 0:r}return hasOwnProperty$1.call(t,e)?t[e]:void 0}var objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;function hashHas(e){var t=this.__data__;return nativeCreate$1?void 0!==t[e]:hasOwnProperty.call(t,e)}var HASH_UNDEFINED=\"__lodash_hash_undefined__\";function hashSet(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=nativeCreate$1&&void 0===t?HASH_UNDEFINED:t,this}function Hash(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t-1}function listCacheSet(e,t){var r=this.__data__,n=assocIndexOf(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function ListCache(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t1?null!==(n=null!==(i=get(e[0],t))&&void 0!==i?i:get(e.at(-1),t))&&void 0!==n?n:r:1===e.length&&null!==(o=get(e[0],t))&&void 0!==o?o:r:null!==(a=get(e,t,r))&&void 0!==a?a:r}function parse_mantissa(e,t,r,n){var i=e.split(\".\"),o=i[0],a=1===i.length?\"\":i[1],u=decimal_round(o,a,t,+r,n);return o=u.int_part,\"\"===(a=u.dec_part)?o:\"\".concat(o,\".\").concat(a)}function integer_thousands(e){for(var t=e.length,r=\"\";t>0;)r=e.substring(t-3,t)+(\"\"!==r?\",\":\"\")+r,t-=3;return r}function parse_thousands(e){var t=e.split(\".\"),r=t[0];return\"-\"===r[0]?t[0]=\"-\"+integer_thousands(r.slice(1)):t[0]=integer_thousands(r),t.join(\".\")}function promise_queue(e){return _promise_queue.apply(this,arguments)}function _promise_queue(){return _promise_queue=_asyncToGenerator(_regeneratorRuntime().mark((function e(t){var r,n,i,o=arguments;return _regeneratorRuntime().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=o.length>1&&void 0!==o[1]?o[1]:5e3,n=0;case 2:if(!(n1&&(n.fmt_expr=i[1].trim()),n}function push_token$3(e,t){if(t.curr_state===state_number||t.curr_state===state_scientific){var r=t.expr.slice(t.prev_index,t.cur_index);if(t._unit){var n,i=split_unit_num(r),o=i.num,a=i.unit;if(void 0===a)e.push({type:state_number,value:o,real_value:o,has_unit:!1});else t.has_unit=!0,null!==(n=t.unit_str)&&void 0!==n||(t.unit_str=a),e.push({type:state_number,value:o,real_value:o,has_unit:!0,unit:a})}else e.push({type:state_number,value:r,real_value:r,has_unit:!1})}else if(t.curr_state===state_var){t.has_var=!0;var u=t.expr.slice(t.prev_index,t.cur_index),s=get_real_value(t.fill_data,u);if(t._unit){var c,l=split_unit_num(s),f=l.num,p=l.unit;if(void 0===p)e.push({type:\"var\",value:u,real_value:f,has_unit:!1});else t.has_unit=!0,null!==(c=t.unit_str)&&void 0!==c||(t.unit_str=p),e.push({type:\"var\",value:u,real_value:f,has_unit:!0,unit:p})}else e.push({type:\"var\",value:u,real_value:s,has_unit:!1})}else e.push({type:t.curr_state,value:t.expr.slice(t.prev_index,t.cur_index)});t.curr_state=state_initial,t.prev_index=t.cur_index}function tokenizer(e,t,r){for(var n,i={has_var:!1,has_unit:!1,unit_str:void 0,fill_data:t,cur_index:0,prev_index:0,curr_state:state_initial,expr:e,_unit:r},o=e.length,a=[];i.cur_index-1||\"%\"===n&&number_char.includes(e[i.cur_index-1])&&pure_number_var_first_char.includes(get_next_nonempty_char(e,i.cur_index,o))?push_token$3(a,i):i.cur_index++:push_token$3(a,i);break;case state_operator:var s=e[i.cur_index-1];\"*\"===n&&\"*\"===s?(i.cur_index++,a.push({type:state_operator,value:\"**\"}),i.prev_index=i.cur_index):\"/\"===n&&\"/\"===s?(i.cur_index++,a.push({type:state_operator,value:\"//\"}),i.prev_index=i.cur_index):(a.push({type:state_operator,value:s}),i.prev_index=i.cur_index),i.curr_state=state_initial;break;case state_var:var_members_char.includes(n)?i.cur_index++:push_token$3(a,i);break;case state_scientific:if(number_char.includes(n))i.cur_index++;else if(\"+-\".includes(n)){var c=i.prev_index;\"+-\".includes(e[c])&&(c+=1);var l=e.slice(c,i.cur_index),f=l.at(-1);l.includes(n)||\"e\"!==f?push_token$3(a,i):i.cur_index++}else r&&-1===\"*/+-() \".indexOf(n)?i.cur_index++:push_token$3(a,i);break;default:throw new Error(\"字符扫描状态错误\")}return i.prev_indexg?p.c=p.e=null:e.e=10;s/=10,u++);return void(u>g?p.c=p.e=null:(p.e=u,p.c=[e]))}f=String(e)}else{if(!isNumeric.test(f=String(e)))return n(p,f,c);p.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(u=f.indexOf(\".\"))>-1&&(f=f.replace(\".\",\"\")),(s=f.search(/e/i))>0?(u<0&&(u=s),u+=+f.slice(s+1),f=f.substring(0,s)):u<0&&(u=f.length)}else{if(intCheck(t,2,x.length,\"Base\"),10==t&&E)return B(p=new A(e),h+p.e+1,_);if(f=String(e),c=\"number\"==typeof e){if(0*e!=0)return n(p,f,c,t);if(p.s=1/e<0?(f=f.slice(1),-1):1,A.DEBUG&&f.replace(/^0\\.0*|\\./,\"\").length>15)throw Error(tooManyDigits+e)}else p.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(i=x.slice(0,t),u=s=0,l=f.length;su){u=l;continue}}else if(!a&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){a=!0,s=-1,u=0;continue}return n(p,String(e),c,t)}c=!1,(u=(f=r(f,t,10,p.s)).indexOf(\".\"))>-1?f=f.replace(\".\",\"\"):u=f.length}for(s=0;48===f.charCodeAt(s);s++);for(l=f.length;48===f.charCodeAt(--l););if(f=f.slice(s,++l)){if(l-=s,c&&A.DEBUG&&l>15&&(e>MAX_SAFE_INTEGER||e!==mathfloor(e)))throw Error(tooManyDigits+p.s*e);if((u=u-s-1)>g)p.c=p.e=null;else if(u=m)?toExponential(s,a):toFixedPoint(s,a,\"0\");else if(o=(e=B(new A(e),t,r)).e,u=(s=coeffToString(e.c)).length,1==n||2==n&&(t<=o||o<=v)){for(;uu){if(--t>0)for(s+=\".\";t--;s+=\"0\");}else if((t+=o-u)>0)for(o+1==u&&(s+=\".\");t--;s+=\"0\");return e.s<0&&i?\"-\"+s:s}function O(e,t){for(var r,n=1,i=new A(e[0]);n=10;i/=10,n++);return(r=n+r*LOG_BASE-1)>g?e.c=e.e=null:r=10;u/=10,i++);if((o=t-i)<0)o+=LOG_BASE,a=t,l=(s=f[c=0])/p[i-a-1]%10|0;else if((c=mathceil((o+1)/LOG_BASE))>=f.length){if(!n)break e;for(;f.length<=c;f.push(0));s=l=0,i=1,a=(o%=LOG_BASE)-LOG_BASE+1}else{for(s=u=f[c],i=1;u>=10;u/=10,i++);l=(a=(o%=LOG_BASE)-LOG_BASE+i)<0?0:s/p[i-a-1]%10|0}if(n=n||t<0||null!=f[c+1]||(a<0?s:s%p[i-a-1]),n=r<4?(l||n)&&(0==r||r==(e.s<0?3:2)):l>5||5==l&&(4==r||n||6==r&&(o>0?a>0?s/p[i-a]:0:f[c-1])%10&1||r==(e.s<0?8:7)),t<1||!f[0])return f.length=0,n?(t-=e.e+1,f[0]=p[(LOG_BASE-t%LOG_BASE)%LOG_BASE],e.e=-t||0):f[0]=e.e=0,e;if(0==o?(f.length=c,u=1,c--):(f.length=c+1,u=p[LOG_BASE-o],f[c]=a>0?mathfloor(s/p[i-a]%p[a])*u:0),n)for(;;){if(0==c){for(o=1,a=f[0];a>=10;a/=10,o++);for(a=f[0]+=u,u=1;a>=10;a/=10,u++);o!=u&&(e.e++,f[0]==BASE&&(f[0]=1));break}if(f[c]+=u,f[c]!=BASE)break;f[c--]=0,u=1}for(o=f.length;0===f[--o];f.pop());}e.e>g?e.c=e.e=null:e.e=m?toExponential(t,r):toFixedPoint(t,r,\"0\"),e.s<0?\"-\"+t:t)}return A.clone=clone,A.ROUND_UP=0,A.ROUND_DOWN=1,A.ROUND_CEIL=2,A.ROUND_FLOOR=3,A.ROUND_HALF_UP=4,A.ROUND_HALF_DOWN=5,A.ROUND_HALF_EVEN=6,A.ROUND_HALF_CEIL=7,A.ROUND_HALF_FLOOR=8,A.EUCLID=9,A.config=A.set=function(e){var t,r;if(null!=e){if(\"object\"!=_typeof(e))throw Error(bignumberError+\"Object expected: \"+e);if(e.hasOwnProperty(t=\"DECIMAL_PLACES\")&&(intCheck(r=e[t],0,MAX,t),h=r),e.hasOwnProperty(t=\"ROUNDING_MODE\")&&(intCheck(r=e[t],0,8,t),_=r),e.hasOwnProperty(t=\"EXPONENTIAL_AT\")&&((r=e[t])&&r.pop?(intCheck(r[0],-MAX,0,t),intCheck(r[1],0,MAX,t),v=r[0],m=r[1]):(intCheck(r,-MAX,MAX,t),v=-(m=r<0?-r:r))),e.hasOwnProperty(t=\"RANGE\"))if((r=e[t])&&r.pop)intCheck(r[0],-MAX,-1,t),intCheck(r[1],1,MAX,t),d=r[0],g=r[1];else{if(intCheck(r,-MAX,MAX,t),!r)throw Error(bignumberError+t+\" cannot be zero: \"+r);d=-(g=r<0?-r:r)}if(e.hasOwnProperty(t=\"CRYPTO\")){if((r=e[t])!==!!r)throw Error(bignumberError+t+\" not true or false: \"+r);if(r){if(\"undefined\"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw b=!r,Error(bignumberError+\"crypto unavailable\");b=r}else b=r}if(e.hasOwnProperty(t=\"MODULO_MODE\")&&(intCheck(r=e[t],0,9,t),y=r),e.hasOwnProperty(t=\"POW_PRECISION\")&&(intCheck(r=e[t],0,MAX,t),w=r),e.hasOwnProperty(t=\"FORMAT\")){if(\"object\"!=_typeof(r=e[t]))throw Error(bignumberError+t+\" not an object: \"+r);S=r}if(e.hasOwnProperty(t=\"ALPHABET\")){if(\"string\"!=typeof(r=e[t])||/^.?$|[+\\-.\\s]|(.).*\\1/.test(r))throw Error(bignumberError+t+\" invalid: \"+r);E=\"0123456789\"==r.slice(0,10),x=r}}return{DECIMAL_PLACES:h,ROUNDING_MODE:_,EXPONENTIAL_AT:[v,m],RANGE:[d,g],CRYPTO:b,MODULO_MODE:y,POW_PRECISION:w,FORMAT:S,ALPHABET:x}},A.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!A.DEBUG)return!0;var t,r,n=e.c,i=e.e,o=e.s;e:if(\"[object Array]\"=={}.toString.call(n)){if((1===o||-1===o)&&i>=-MAX&&i<=MAX&&i===mathfloor(i)){if(0===n[0]){if(0===i&&1===n.length)return!0;break e}if((t=(i+1)%LOG_BASE)<1&&(t+=LOG_BASE),String(n[0]).length==t){for(t=0;t=BASE||r!==mathfloor(r))break e;if(0!==r)return!0}}}else if(null===n&&null===i&&(null===o||1===o||-1===o))return!0;throw Error(bignumberError+\"Invalid BigNumber: \"+e)},A.maximum=A.max=function(){return O(arguments,f.lt)},A.minimum=A.min=function(){return O(arguments,f.gt)},A.random=(i=9007199254740992,o=Math.random()*i&2097151?function(){return mathfloor(Math.random()*i)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var t,r,n,i,a,u=0,s=[],c=new A(p);if(null==e?e=h:intCheck(e,0,MAX),i=mathceil(e/LOG_BASE),b)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(i*=2));u>>11))>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),t[u]=r[0],t[u+1]=r[1]):(s.push(a%1e14),u+=2);u=i/2}else{if(!crypto.randomBytes)throw b=!1,Error(bignumberError+\"crypto unavailable\");for(t=crypto.randomBytes(i*=7);u=9e15?crypto.randomBytes(7).copy(t,u):(s.push(a%1e14),u+=7);u=i/7}if(!b)for(;u=10;a/=10,u++);ur-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/r|0,a[i]%=r)}return a.reverse()}return function(n,i,o,a,u){var s,c,l,f,p,v,m,d,g=n.indexOf(\".\"),b=h,y=_;for(g>=0&&(f=w,w=0,n=n.replace(\".\",\"\"),v=(d=new A(i)).pow(n.length-g),w=f,d.c=r(toFixedPoint(coeffToString(v.c),v.e,\"0\"),10,o,e),d.e=d.c.length),l=f=(m=r(n,i,o,u?(s=x,e):(s=e,x))).length;0==m[--f];m.pop());if(!m[0])return s.charAt(0);if(g<0?--l:(v.c=m,v.e=l,v.s=a,m=(v=t(v,d,b,y,o)).c,p=v.r,l=v.e),g=m[c=l+b+1],f=o/2,p=p||c<0||null!=m[c+1],p=y<4?(null!=g||p)&&(0==y||y==(v.s<0?3:2)):g>f||g==f&&(4==y||p||6==y&&1&m[c-1]||y==(v.s<0?8:7)),c<1||!m[0])n=p?toFixedPoint(s.charAt(1),-b,s.charAt(0)):s.charAt(0);else{if(m.length=c,p)for(--o;++m[--c]>o;)m[c]=0,c||(++l,m=[1].concat(m));for(f=m.length;!m[--f];);for(g=0,n=\"\";g<=f;n+=s.charAt(m[g++]));n=toFixedPoint(n,l,s.charAt(0))}return n}}(),t=function(){function e(e,t,r){var n,i,o,a,u=0,s=e.length,c=t%SQRT_BASE,l=t/SQRT_BASE|0;for(e=e.slice();s--;)u=((i=c*(o=e[s]%SQRT_BASE)+(n=l*o+(a=e[s]/SQRT_BASE|0)*c)%SQRT_BASE*SQRT_BASE+u)/r|0)+(n/SQRT_BASE|0)+l*a,e[s]=i%r;return u&&(e=[u].concat(e)),e}function t(e,t,r,n){var i,o;if(r!=n)o=r>n?1:-1;else for(i=o=0;it[i]?1:-1;break}return o}function r(e,t,r,n){for(var i=0;r--;)e[r]-=i,i=e[r]1;e.splice(0,1));}return function(n,i,o,a,u){var s,c,l,f,p,h,_,v,m,d,g,b,y,w,S,x,E,N=n.s==i.s?1:-1,O=n.c,k=i.c;if(!(O&&O[0]&&k&&k[0]))return new A(n.s&&i.s&&(O?!k||O[0]!=k[0]:k)?O&&0==O[0]||!k?0*N:N/0:NaN);for(m=(v=new A(N)).c=[],N=o+(c=n.e-i.e)+1,u||(u=BASE,c=bitFloor(n.e/LOG_BASE)-bitFloor(i.e/LOG_BASE),N=N/LOG_BASE|0),l=0;k[l]==(O[l]||0);l++);if(k[l]>(O[l]||0)&&c--,N<0)m.push(1),f=!0;else{for(w=O.length,x=k.length,l=0,N+=2,(p=mathfloor(u/(k[0]+1)))>1&&(k=e(k,p,u),O=e(O,p,u),x=k.length,w=O.length),y=x,g=(d=O.slice(0,x)).length;g=u/2&&S++;do{if(p=0,(s=t(k,d,x,g))<0){if(b=d[0],x!=g&&(b=b*u+(d[1]||0)),(p=mathfloor(b/S))>1)for(p>=u&&(p=u-1),_=(h=e(k,p,u)).length,g=d.length;1==t(h,d,_,g);)p--,r(h,x<_?E:k,_,u),_=h.length,s=1;else 0==p&&(s=p=1),_=(h=k.slice()).length;if(_=10;N/=10,l++);B(v,o+(v.e=l+c*LOG_BASE-1)+1,a,f)}else v.e=c,v.r=+f;return v}}(),a=/^(-?)0([xbo])(?=\\w[\\w.]*$)/i,u=/^([^.]+)\\.$/,s=/^\\.([^.]+)$/,c=/^-?(Infinity|NaN)$/,l=/^\\s*\\+(?=[\\w.])|^\\s+|\\s+$/g,n=function(e,t,r,n){var i,o=r?t:t.replace(l,\"\");if(c.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!r&&(o=o.replace(a,(function(e,t,r){return i=\"x\"==(r=r.toLowerCase())?16:\"b\"==r?2:8,n&&n!=i?e:t})),n&&(i=n,o=o.replace(u,\"$1\").replace(s,\"0.$1\")),t!=o))return new A(o,i);if(A.DEBUG)throw Error(bignumberError+\"Not a\"+(n?\" base \"+n:\"\")+\" number: \"+t);e.s=null}e.c=e.e=null},f.absoluteValue=f.abs=function(){var e=new A(this);return e.s<0&&(e.s=1),e},f.comparedTo=function(e,t){return compare(this,new A(e,t))},f.decimalPlaces=f.dp=function(e,t){var r,n,i,o=this;if(null!=e)return intCheck(e,0,MAX),null==t?t=_:intCheck(t,0,8),B(new A(o),e+o.e+1,t);if(!(r=o.c))return null;if(n=((i=r.length-1)-bitFloor(this.e/LOG_BASE))*LOG_BASE,i=r[i])for(;i%10==0;i/=10,n--);return n<0&&(n=0),n},f.dividedBy=f.div=function(e,r){return t(this,new A(e,r),h,_)},f.dividedToIntegerBy=f.idiv=function(e,r){return t(this,new A(e,r),0,1)},f.exponentiatedBy=f.pow=function(e,t){var r,n,i,o,a,u,s,c,l=this;if((e=new A(e)).c&&!e.isInteger())throw Error(bignumberError+\"Exponent not an integer: \"+T(e));if(null!=t&&(t=new A(t)),a=e.e>14,!l.c||!l.c[0]||1==l.c[0]&&!l.e&&1==l.c.length||!e.c||!e.c[0])return c=new A(Math.pow(+T(l),a?e.s*(2-isOdd(e)):+T(e))),t?c.mod(t):c;if(u=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new A(NaN);(n=!u&&l.isInteger()&&t.isInteger())&&(l=l.mod(t))}else{if(e.e>9&&(l.e>0||l.e<-1||(0==l.e?l.c[0]>1||a&&l.c[1]>=24e7:l.c[0]<8e13||a&&l.c[0]<=9999975e7)))return o=l.s<0&&isOdd(e)?-0:0,l.e>-1&&(o=1/o),new A(u?1/o:o);w&&(o=mathceil(w/LOG_BASE+2))}for(a?(r=new A(.5),u&&(e.s=1),s=isOdd(e)):s=(i=Math.abs(+T(e)))%2,c=new A(p);;){if(s){if(!(c=c.times(l)).c)break;o?c.c.length>o&&(c.c.length=o):n&&(c=c.mod(t))}if(i){if(0===(i=mathfloor(i/2)))break;s=i%2}else if(B(e=e.times(r),e.e+1,1),e.e>14)s=isOdd(e);else{if(0===(i=+T(e)))break;s=i%2}l=l.times(l),o?l.c&&l.c.length>o&&(l.c.length=o):n&&(l=l.mod(t))}return n?c:(u&&(c=p.div(c)),t?c.mod(t):o?B(c,w,_,undefined):c)},f.integerValue=function(e){var t=new A(this);return null==e?e=_:intCheck(e,0,8),B(t,t.e+1,e)},f.isEqualTo=f.eq=function(e,t){return 0===compare(this,new A(e,t))},f.isFinite=function(){return!!this.c},f.isGreaterThan=f.gt=function(e,t){return compare(this,new A(e,t))>0},f.isGreaterThanOrEqualTo=f.gte=function(e,t){return 1===(t=compare(this,new A(e,t)))||0===t},f.isInteger=function(){return!!this.c&&bitFloor(this.e/LOG_BASE)>this.c.length-2},f.isLessThan=f.lt=function(e,t){return compare(this,new A(e,t))<0},f.isLessThanOrEqualTo=f.lte=function(e,t){return-1===(t=compare(this,new A(e,t)))||0===t},f.isNaN=function(){return!this.s},f.isNegative=function(){return this.s<0},f.isPositive=function(){return this.s>0},f.isZero=function(){return!!this.c&&0==this.c[0]},f.minus=function(e,t){var r,n,i,o,a=this,u=a.s;if(t=(e=new A(e,t)).s,!u||!t)return new A(NaN);if(u!=t)return e.s=-t,a.plus(e);var s=a.e/LOG_BASE,c=e.e/LOG_BASE,l=a.c,f=e.c;if(!s||!c){if(!l||!f)return l?(e.s=-t,e):new A(f?a:NaN);if(!l[0]||!f[0])return f[0]?(e.s=-t,e):new A(l[0]?a:3==_?-0:0)}if(s=bitFloor(s),c=bitFloor(c),l=l.slice(),u=s-c){for((o=u<0)?(u=-u,i=l):(c=s,i=f),i.reverse(),t=u;t--;i.push(0));i.reverse()}else for(n=(o=(u=l.length)<(t=f.length))?u:t,u=t=0;t0)for(;t--;l[r++]=0);for(t=BASE-1;n>u;){if(l[--n]=0;){for(r=0,p=b[i]%m,h=b[i]/m|0,o=i+(a=s);o>i;)r=((c=p*(c=g[--a]%m)+(u=h*c+(l=g[a]/m|0)*p)%m*m+_[o]+r)/v|0)+(u/m|0)+h*l,_[o--]=c%v;_[o]=r}return r?++n:_.splice(0,1),k(e,_,n)},f.negated=function(){var e=new A(this);return e.s=-e.s||null,e},f.plus=function(e,t){var r,n=this,i=n.s;if(t=(e=new A(e,t)).s,!i||!t)return new A(NaN);if(i!=t)return e.s=-t,n.minus(e);var o=n.e/LOG_BASE,a=e.e/LOG_BASE,u=n.c,s=e.c;if(!o||!a){if(!u||!s)return new A(i/0);if(!u[0]||!s[0])return s[0]?e:new A(u[0]?n:0*i)}if(o=bitFloor(o),a=bitFloor(a),u=u.slice(),i=o-a){for(i>0?(a=o,r=s):(i=-i,r=u),r.reverse();i--;r.push(0));r.reverse()}for((i=u.length)-(t=s.length)<0&&(r=s,s=u,u=r,t=i),i=0;t;)i=(u[--t]=u[t]+s[t]+i)/BASE|0,u[t]=BASE===u[t]?0:u[t]%BASE;return i&&(u=[i].concat(u),++a),k(e,u,a)},f.precision=f.sd=function(e,t){var r,n,i,o=this;if(null!=e&&e!==!!e)return intCheck(e,1,MAX),null==t?t=_:intCheck(t,0,8),B(new A(o),e,t);if(!(r=o.c))return null;if(n=(i=r.length-1)*LOG_BASE+1,i=r[i]){for(;i%10==0;i/=10,n--);for(i=r[0];i>=10;i/=10,n++);}return e&&o.e+1>n&&(n=o.e+1),n},f.shiftedBy=function(e){return intCheck(e,-MAX_SAFE_INTEGER,MAX_SAFE_INTEGER),this.times(\"1e\"+e)},f.squareRoot=f.sqrt=function(){var e,r,n,i,o,a=this,u=a.c,s=a.s,c=a.e,l=h+4,f=new A(\"0.5\");if(1!==s||!u||!u[0])return new A(!s||s<0&&(!u||u[0])?NaN:u?a:1/0);if(0==(s=Math.sqrt(+T(a)))||s==1/0?(((r=coeffToString(u)).length+c)%2==0&&(r+=\"0\"),s=Math.sqrt(+r),c=bitFloor((c+1)/2)-(c<0||c%2),n=new A(r=s==1/0?\"5e\"+c:(r=s.toExponential()).slice(0,r.indexOf(\"e\")+1)+c)):n=new A(s+\"\"),n.c[0])for((s=(c=n.e)+l)<3&&(s=0);;)if(o=n,n=f.times(o.plus(t(a,o,l,1))),coeffToString(o.c).slice(0,s)===(r=coeffToString(n.c)).slice(0,s)){if(n.e0&&_>0){for(o=_%u||u,l=h.substr(0,o);o<_;o+=u)l+=c+h.substr(o,u);s>0&&(l+=c+h.slice(o)),p&&(l=\"-\"+l)}n=f?l+(r.decimalSeparator||\"\")+((s=+r.fractionGroupSize)?f.replace(new RegExp(\"\\\\d{\"+s+\"}\\\\B\",\"g\"),\"$&\"+(r.fractionGroupSeparator||\"\")):f):l}return(r.prefix||\"\")+n+(r.suffix||\"\")},f.toFraction=function(e){var r,n,i,o,a,u,s,c,l,f,h,v,m=this,d=m.c;if(null!=e&&(!(s=new A(e)).isInteger()&&(s.c||1!==s.s)||s.lt(p)))throw Error(bignumberError+\"Argument \"+(s.isInteger()?\"out of range: \":\"not an integer: \")+T(s));if(!d)return new A(m);for(r=new A(p),l=n=new A(p),i=c=new A(p),v=coeffToString(d),a=r.e=v.length-m.e-1,r.c[0]=POWS_TEN[(u=a%LOG_BASE)<0?LOG_BASE+u:u],e=!e||s.comparedTo(r)>0?a>0?r:l:s,u=g,g=1/0,s=new A(v),c.c[0]=0;f=t(s,r,0,1),1!=(o=n.plus(f.times(i))).comparedTo(e);)n=i,i=o,l=c.plus(f.times(o=l)),c=o,r=s.minus(f.times(o=r)),s=o;return o=t(e.minus(n),i,0,1),c=c.plus(o.times(l)),n=n.plus(o.times(i)),c.s=l.s=m.s,h=t(l,i,a*=2,_).minus(m).abs().comparedTo(t(c,n,a,_).minus(m).abs())<1?[l,i]:[c,n],g=u,h},f.toNumber=function(){return+T(this)},f.toPrecision=function(e,t){return null!=e&&intCheck(e,1,MAX),N(this,e,t,2)},f.toString=function(e){var t,n=this,i=n.s,o=n.e;return null===o?i?(t=\"Infinity\",i<0&&(t=\"-\"+t)):t=\"NaN\":(null==e?t=o<=v||o>=m?toExponential(coeffToString(n.c),o):toFixedPoint(coeffToString(n.c),o,\"0\"):10===e&&E?t=toFixedPoint(coeffToString((n=B(new A(n),h+o+1,_)).c),n.e,\"0\"):(intCheck(e,2,x.length,\"Base\"),t=r(toFixedPoint(coeffToString(n.c),o,\"0\"),10,e,i,!0)),i<0&&n.c[0]&&(t=\"-\"+t)),t},f.valueOf=f.toJSON=function(){return T(this)},f._isBigNumber=!0,f[Symbol.toStringTag]=\"BigNumber\",f[Symbol.for(\"nodejs.util.inspect.custom\")]=f.valueOf,null!=e&&A.set(e),A}function bitFloor(e){var t=0|e;return e>0||e===t?t:t-1}function coeffToString(e){for(var t,r,n=1,i=e.length,o=e[0]+\"\";nc^r?1:-1;for(u=(s=i.length)<(c=o.length)?s:c,a=0;ao[a]^r?1:-1;return s==c?0:s>c^r?1:-1}function intCheck(e,t,r,n){if(er||e!==mathfloor(e))throw Error(bignumberError+(n||\"Argument\")+(\"number\"==typeof e?er?\" out of range: \":\" not an integer: \":\" not a primitive number: \")+String(e))}function isOdd(e){var t=e.c.length-1;return bitFloor(e.e/LOG_BASE)==t&&e.c[t]%2!=0}function toExponential(e,t){return(e.length>1?e.charAt(0)+\".\"+e.slice(1):e)+(t<0?\"e\":\"e+\")+t}function toFixedPoint(e,t,r){var n,i;if(t<0){for(i=r+\".\";++t;i+=r);e=i+e}else if(++t>(n=e.length)){for(i=r,t-=n;--t;i+=r);e+=i}else t=\",\"<=\",\"=\",\"<\",\">\"].includes(e.value))throw new Error(\"错误的格式化参数:\",e.value);n.mantissa_type=e.value}else if(\"to-number\"===t)n.to_number=!0;else if(\"to-number-string\"===t)n.to_number_string=!0;else if(\"comma\"===t)n.thousands=!0;else if(\"number\"===t)n.mantissa=e.value;else if(\"var\"===t)n.mantissa=e.real_value;else if(\"plus\"===t)n.sign=!0;else if(\"round\"===t)n.round=e.value;else if(\"fraction\"===t)n.fraction=!0;else if(\"scientific\"===t)n.scientific=!0;else{if(\"percent\"!==t)throw new Error(\"错误的fmt Token\");n.percent=!0}})),n.to_number)return[+parse_mantissa(r,n.mantissa_type,n.mantissa,n.round),n];if(n.scientific){var i=BigNumber(r).toExponential();return[n.sign&&!i.startsWith(\"-\")?\"+\"+i:i,n]}if(n.fraction){var o=BigNumber(r).toFraction().map((function(e){return e.toFixed()})).join(\"/\");return[n.sign&&!o.startsWith(\"-\")?\"+\"+o:o,n]}return n.percent&&(r=BigNumber(r).times(100).toFixed()),null===n.mantissa?r.includes(\".\")&&(r=r.replace(/0*$/,\"\")):r=parse_mantissa(r,n.mantissa_type,n.mantissa,n.round),n.thousands&&(r=parse_thousands(r)),n.sign&&(n.to_number=!1,r.startsWith(\"-\")||(r=\"+\"+r)),n.percent&&(r+=\"%\"),[r,n]}function close_important_push(){}function open_important_push(){}function open_debug(){}function close_debug(){}function calc_wrap(e,t){var r={_error:\"-\"};return[\"string\",\"number\"].includes(_typeof(e))?void 0===t?/[a-zA-Z$_]/.test(e.toString())?function(t){return Array.isArray(t)?t.unshift(r):t=_objectSpread2(_objectSpread2({},r),t),calc(e,t)}:calc(e):(Array.isArray(t)?t.unshift(r):t=_objectSpread2(_objectSpread2({},r),t),calc(e,t)):(Array.isArray(e)?e.unshift(r):e=_objectSpread2(_objectSpread2({},r),e),function(t){return calc(t,e)})}function check_version(){return _check_version.apply(this,arguments)}function _check_version(){return _check_version=_asyncToGenerator(_regeneratorRuntime().mark((function _callee(){var res,code,versions,last_version,larr,varr,script,url;return _regeneratorRuntime().wrap((function _callee$(_context){for(;;)switch(_context.prev=_context.next){case 0:if(\"undefined\"==typeof process||\"node\"!==process.release.name){_context.next=19;break}if(!(parseInt(process.versions.node)>=17)){_context.next=17;break}return _context.next=4,promise_queue([fetch(\"https://cdn.jsdelivr.net/npm/a-calc@latest/a-calc.versions.js\"),fetch(\"https://unpkg.com/a-calc@latest/a-calc.versions.js\")]);case 4:return res=_context.sent,_context.next=7,res.text();case 7:code=_context.sent,versions=eval(code),last_version=versions.at(-1),larr=last_version.match(/(\\d+)\\.(\\d+)\\.(\\d+)/),larr.shift(),larr=larr.map((function(e){return parseInt(e)})),varr=version.match(/(\\d+)\\.(\\d+)\\.(\\d+)/),varr.shift(),varr=varr.map((function(e){return parseInt(e)})),(larr[0]>varr[0]||larr[0]===varr[0]&&larr[1]>varr[1]||larr[0]===varr[0]&&larr[1]===varr[1]&&larr[2]>varr[2])&&console.warn(\"a-calc has a new version:\",last_version);case 17:_context.next=25;break;case 19:return script=document.createElement(\"script\"),script.onload=function(){var e=a_calc_versions;if(Array.isArray(e)){var t=e.at(-1),r=t.match(/(\\d+)\\.(\\d+)\\.(\\d+)/);r.shift(),r=r.map((function(e){return parseInt(e)}));var n=version.match(/(\\d+)\\.(\\d+)\\.(\\d+)/);n.shift(),n=n.map((function(e){return parseInt(e)})),(r[0]>n[0]||r[0]===n[0]&&r[1]>n[1]||r[0]===n[0]&&r[1]===n[1]&&r[2]>n[2])&&console.log(\"%c↑↑↑ a-calc has a new version: %s ↑↑↑\",\"color: #67C23A;\",t)}},_context.next=23,test_urls([\"https://cdn.jsdelivr.net/npm/a-calc@latest/a-calc.versions.js\",\"https://unpkg.com/a-calc@latest/a-calc.versions.js\"]);case 23:url=_context.sent,url?(script.src=url,document.body.appendChild(script)):script=null;case 25:case\"end\":return _context.stop()}}),_callee)}))),_check_version.apply(this,arguments)}var operator=new Set([\"+\",\"-\",\"*\",\"/\",\"%\",\"**\",\"//\"]);function push_token$2(e,t,r){if(Number.isNaN(Number(t)))if(\"-\"===t||\"+\"===t)0===e.length||\"operator\"===e.at(-1).type||\"(\"===e.at(-1).value?e.push({type:\"number\",value:t,real_value:t,has_unit:!1}):e.push({type:\"operator\",value:t});else if(operator.has(t))e.push({type:\"operator\",value:t});else if(r._unit&&/^[+-]?\\d/.test(t)){var n,i=split_unit_num(t),o=i.num,a=i.unit;if(void 0===a)e.push({type:\"number\",value:o,real_value:o,has_unit:!1});else r.has_unit=!0,null!==(n=r.unit_str)&&void 0!==n||(r.unit_str=a),e.push({type:\"number\",value:o,real_value:o,has_unit:!0,unit:a})}else if(var_first_char.includes(t[0])){r.has_var=!0;var u=get_real_value(r.fill_data,t);if(r._unit){var s,c=split_unit_num(u),l=c.num,f=c.unit;if(void 0===f)e.push({type:\"var\",value:t,real_value:l,has_unit:!1});else r.has_unit=!0,null!==(s=r.unit_str)&&void 0!==s||(r.unit_str=f),e.push({type:\"var\",value:t,real_value:l,has_unit:!0,unit:f})}else e.push({type:\"var\",value:t,real_value:u,has_unit:!1})}else{if(!/^[+-]?\\d/.test(t))throw new Error(\"无法识别的标识符:\".concat(t));var p=t.indexOf(\"e\");-1!==p&&/^\\d+$/.test(t.slice(p+1))&&e.push({type:\"number\",value:t,real_value:t,has_unit:!1})}else e.push({type:\"number\",value:t,real_value:t,has_unit:!1})}function tokenizer_space(e,t,r){for(var n,i=0,o=0,a=e.length,u=[],s={has_var:!1,has_unit:!1,unit_str:void 0,_unit:r,fill_data:t};oi&&push_token$2(u,e.slice(i,o),s),i=o+1):\"(\"===n?(u.push({type:state_bracket,value:\"(\"}),i=o+1):\")\"===n&&(o>i&&push_token$2(u,e.slice(i,o),s),u.push({type:state_bracket,value:\")\"}),i=o+1),o++;return o>i&&push_token$2(u,e.slice(i,o),s),u.has_var=s.has_var,u.has_unit=s.has_unit,u.unit=s.unit_str,u}function compute(e,t,r){if(void 0===e||void 0===t)throw new Error(\"无效的操作数对:v1:\".concat(e,\", v2:\").concat(t));switch(r){case\"+\":return new BigNumber(e).plus(t);case\"-\":return new BigNumber(e).minus(t);case\"*\":return new BigNumber(e).times(t);case\"/\":return new BigNumber(e).div(t);case\"%\":return new BigNumber(e).mod(t);case\"**\":return new BigNumber(e).pow(t);case\"//\":return new BigNumber(e).idiv(t)}}var operator_map$1={\"+\":0,\"-\":0,\"*\":1,\"/\":1,\"%\":1,\"//\":1,\"**\":2};function eval_tokens(e){if(1===e.length){var t=e[0];if(\"number\"===t.type||\"var\"===t.type)return t.real_value;throw new Error(\"错误的表达式:\".concat(t.value))}for(var r,n,i=[],o=[],a=0,u=e.length;a=\".includes(r))o.state=state_symbol,n.curr++;else if(\",\"===r)n.curr++,push_token$1(a,state_comma,\",\",n,o);else if(var_char.includes(r))o.state=state_var,n.curr++;else if(number_char.includes(r))o.state=state_number,n.curr++;else if(\"+\"===r)n.curr++,push_token$1(a,state_plus$1,\"+\",n,o);else if(\"~\"===r)n.curr++,o.state=state_round;else if(\"%\"===r)n.curr++,push_token$1(a,state_percent,\"%\",n,o);else if(\"/\"===r)n.curr++,push_token$1(a,state_fraction,\"/\",n,o);else if(\"!\"===r)if(o.state=state_initial,n.curr++,\"n\"===e[n.curr])n.curr++,push_token$1(a,state_to_number,\"!n\",n,o);else if(\"u\"===e[n.curr])n.curr++,push_token$1(a,state_to_number_string,\"!u\",n,o);else{if(\"e\"!==e[n.curr])throw new Error(\"无法识别的!模式字符:\".concat(e[n.curr]));n.curr++,push_token$1(a,state_scientific,\"!e\",n,o)}else n.curr++,n.prev=n.curr;break;case state_symbol:\"=\"===r&&n.curr++,push_token$1(a,state_symbol,e.slice(n.prev,n.curr),n,o);break;case state_number:number_char.includes(r)?n.curr++:push_token$1(a,state_number,e.slice(n.prev,n.curr),n,o);break;case state_var:var_members_char.includes(r)?n.curr++:push_token$1(a,state_var,e.slice(n.prev,n.curr),n,o);break;case state_round:if(!(\"56+-\".includes(r)&&n.curr-n.prev<2))throw new Error(\"错误的舍入语法:\".concat(e.slice(n.prev,n.curr+1)));n.curr++,push_token$1(a,state_round,e.slice(n.prev,n.curr),n,o);break;default:throw new Error(\"错误的fmt分词器状态\")}return n.prev\",\"=\",\">=\",\"<=\"]),rand_set=new Set([\"~+\",\"~-\",\"~5\",\"~6\"]);function push_token(e,t,r){if(\",\"===t)e.push({type:state_comma,value:\",\"});else if(symbol_set.has(t))e.push({type:state_symbol,value:t});else if(Number.isNaN(Number(t)))if(var_first_char.includes(t[0]))r.has_var=!0,e.push({type:state_var,value:t,real_value:get_real_value(r.fill_data,t)});else if(\"%\"===t)e.push({type:state_percent,value:t});else if(\"/\"===t)e.push({type:state_fraction,value:t});else if(\"+\"===t)e.push({type:state_plus,value:t});else if(rand_set.has(t))e.push({type:state_round,value:t});else if(\"!n\"===t)e.push({type:state_to_number,value:t});else if(\"!u\"===t)e.push({type:state_to_number_string,value:t});else{if(\"!e\"!==t)throw new Error(\"无法识别的格式化字符: \".concat(t));e.push({type:state_scientific,value:t})}else e.push({type:state_number,value:t})}function fmt_tokenizer_space(e,t){for(var r,n=0,i=e.length,o={fill_data:t,has_var:!1},a=0,u=[];na&&push_token(u,e.slice(a,n),o),a=n+1):\"<>=\".includes(r)&&(\"=\"===e[n+1]?(u.push({type:state_symbol,value:r+\"=\"}),a=1+ ++n):(u.push({type:state_symbol,value:r}),a=n+1)),n++;return a3&&void 0!==arguments[3]?arguments[3]:\"-\";try{var i;if(\"number\"==typeof e)i=e.toString();else{if(\"\"===e)throw new Error(\"非法的空计算式\");var o=e.split(\" \");if(1===o.length){if(i=o[0],var_first_char.includes(i[0])&&(i=get_real_value(r,i)),isNaN(Number(i)))throw new Error(\"错误的计算式:\".concat(e))}else i=eval_tokens_lite(o,r).toFixed()}if(\"string\"==typeof t&&\"\"!==t){var a=fmt_tokenizer(t,r);if(void 0!==a)i=_slicedToArray(format(i,a),1)[0]}if(\"NaN\"===i||\"Infinity\"===i)throw new Error(\"计算环节出错\");return i}catch(e){return n}}function calc_mini(e,t,r){switch(t){case\"+\":return BigNumber(e).plus(r).toFixed();case\"-\":return BigNumber(e).minus(r).toFixed();case\"*\":return BigNumber(e).times(r).toFixed();case\"/\":return BigNumber(e).div(r).toFixed();case\"%\":return BigNumber(e).mod(r).toFixed();case\"**\":return BigNumber(e).pow(r).toFixed();case\"//\":return BigNumber(e).idiv(r).toFixed()}}function calc(e,t){var r=find_value(t,\"_error\");try{var n,i,o,a,u,s=parse_args(e,t),c=s._unit,l=s._mode,f=\"space\"===l||\"space-all\"===l?tokenizer_space(s.expr,s.fill_data,c):tokenizer(s.expr,s.fill_data,c),p=eval_tokens(f),h=BigNumber.isBigNumber(p)?p:new BigNumber(p);if(\"space-all\"===l?(a=\"\"===s.fmt_expr||void 0===s.fmt_expr?void 0:fmt_tokenizer_space(s.fmt_expr,s.fill_data),u=\"\"===s._fmt||void 0===s._fmt?void 0:fmt_tokenizer_space(s._fmt,s.fill_data)):(a=\"\"===s.fmt_expr||void 0===s.fmt_expr?void 0:fmt_tokenizer(s.fmt_expr,s.fill_data),u=\"\"===s._fmt||void 0===s._fmt?void 0:fmt_tokenizer(s._fmt,s.fill_data)),void 0===a?void 0!==u&&(a=u):void 0!==u&&(a=[].concat(_toConsumableArray(u),_toConsumableArray(a))),void 0===a)h=h.toFixed();else{var _=_slicedToArray(format(h,a),2);h=_[0],o=_[1]}if(\"Infinity\"===h||\"NaN\"===h||void 0===h)throw new Error(\"计算错误可能是非法的计算式\");return!f.has_unit||null!==(n=o)&&void 0!==n&&n.to_number||null!==(i=o)&&void 0!==i&&i.to_number_string||(h+=f.unit),h}catch(e){if(void 0===r)throw e;return r}}function check_update(){check_version().catch((function(){}))}function print_version(){console.log(\"%ca-calc:%c \".concat(version,\" %c=> %curl:%c https://www.npmjs.com/package/a-calc\"),\"color: #fff;background: #67C23A;padding: 2px 5px;border-radius:4px;font-size: 14px;\",\"color: #67C23A;font-size:14px;\",\"color: #67C23A;font-size:14px;\",\"background: #67C23A;font-size:14px; padding: 2px 5px; border-radius: 4px; color: #fff;\",\"font-size:14px;\")}var calc_util={check_update:check_update,print_version:print_version,open_debug:open_debug,close_debug:close_debug,close_important_push:close_important_push,open_important_push:open_important_push},fmt=calc;function plus(e,t){return\"number\"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"number\")?new BigNumber(e).plus(t).toNumber():new BigNumber(e).plus(t).toFixed()}function sub(e,t){return\"number\"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"number\")?new BigNumber(e).minus(t).toNumber():new BigNumber(e).minus(t).toFixed()}function mul(e,t){return\"number\"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"number\")?new BigNumber(e).times(t).toNumber():new BigNumber(e).times(t).toFixed()}function div(e,t){return\"number\"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"number\")?new BigNumber(e).div(t).toNumber():new BigNumber(e).div(t).toFixed()}function mod(e,t){return\"number\"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"number\")?new BigNumber(e).mod(t).toNumber():new BigNumber(e).mod(t).toFixed()}function pow(e,t){return\"number\"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"number\")?new BigNumber(e).pow(t).toNumber():new BigNumber(e).pow(t).toFixed()}function idiv(e,t){return\"number\"===(arguments.length>2&&void 0!==arguments[2]?arguments[2]:\"number\")?new BigNumber(e).idiv(t).toNumber():new BigNumber(e).idiv(t).toFixed()}exports.calc=calc,exports.calc_lite=calc_lite,exports.calc_mini=calc_mini,exports.calc_util=calc_util,exports.calc_wrap=calc_wrap,exports.div=div,exports.fmt=fmt,exports.idiv=idiv,exports.mod=mod,exports.mul=mul,exports.parse_thousands=parse_thousands,exports.plus=plus,exports.pow=pow,exports.sub=sub,exports.version=version;\n"]} \ No newline at end of file diff --git a/src/miniprogram_npm/dayjs/index.js b/src/miniprogram_npm/dayjs/index.js index 23e416f..cc03afd 100644 --- a/src/miniprogram_npm/dayjs/index.js +++ b/src/miniprogram_npm/dayjs/index.js @@ -4,10 +4,10 @@ var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexport var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; }; var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } }; var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; }; -__DEFINE__(1748338798565, function(require, module, exports) { +__DEFINE__(1752627705492, function(require, module, exports) { !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",c="month",f="quarter",h="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return"["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)() +const app = getApp() Page({ data: { - active: 1, + injectionFeel: '', + injectionRemark: '', + }, + onLoad() { + app.waitLogin().then(() => { + this.getDetail() + }) + }, + getDetail() { + wx.ajax({ + method: 'GET', + url: '?r=wtx/treatment/get-injection-feel', + data: {}, + }).then((res) => { + this.setData({ + ...res, + }) + }) }, - onLoad() {}, handleSelect(e) { const { active } = e.currentTarget.dataset this.setData({ - active, + injectionFeel: active, }) }, + handleSubmit() { + const { injectionFeel, injectionRemark } = this.data + if (!injectionFeel && !injectionRemark) { + wx.showToast({ + title: '请选择注射感受或者填写备注', + icon: 'none', + }) + return + } + wx.ajax({ + method: 'POST', + url: '?r=wtx/treatment/save-injection-feel', + data: { + injectionFeel, + injectionRemark, + }, + }).then((res) => { + this.handleBack() + }) + }, + handleBack() { + wx.navigateBack() + }, }) export {} diff --git a/src/patient/pages/bbmRemark/index.wxml b/src/patient/pages/bbmRemark/index.wxml index 9032209..97ace72 100644 --- a/src/patient/pages/bbmRemark/index.wxml +++ b/src/patient/pages/bbmRemark/index.wxml @@ -3,16 +3,16 @@ 整体治疗过程感受 - + - + - + @@ -21,13 +21,14 @@ 整体治疗过程备注 - 取消 - 提交 + 取消 + 提交 diff --git a/src/patient/pages/bbmReport/index.ts b/src/patient/pages/bbmReport/index.ts index 067b6bb..814ffbb 100644 --- a/src/patient/pages/bbmReport/index.ts +++ b/src/patient/pages/bbmReport/index.ts @@ -1,8 +1,82 @@ -const _app = getApp(); +const app = getApp() +import { calc, fmt } from 'a-calc' Page({ - data: {}, - onLoad() {}, -}); + data: { + injectionDate: '', + injectionWeight: '', + + injectionDrugs: '', + injectionNum: '', + }, + onLoad() { + app.waitLogin().then(() => { + this.getDetail() + }) + }, + handleWeight(e) { + const value = e.detail.value + if (value) { + const injectionDrugs = calc(`${value} * 1.25 | =0 ~+`) + const injectionNum = calc(`${value} * 1.25 / 2 | =0 ~+`) + this.setData({ + injectionDrugs, + injectionNum, + }) + } + }, + handleChangeDate(e) { + const value = e.detail.value + wx.ajax({ + method: 'POST', + url: '?r=wtx/treatment/save-injection-date', + data: { + injectionDate: value, + }, + }).then((res) => { + console.log('res: ', res) + }) + }, + getDetail() { + wx.ajax({ + method: 'GET', + url: '?r=wtx/treatment/get-injection-info', + data: {}, + }).then((res) => { + this.setData({ + ...res, + }) + }) + }, + handleBack() { + wx.navigateBack() + }, + handleSubmit() { + const { injectionDate, injectionWeight } = this.data + if (!injectionDate) { + wx.showToast({ + title: '请选择输注时间', + icon: 'none', + }) + return + } + if (!injectionWeight) { + wx.showToast({ + title: '请输入体重', + icon: 'none', + }) + return + } + wx.ajax({ + method: 'POST', + url: '?r=wtx/treatment/save-injection-info', + data: { + injectionWeight, + }, + }).then(() => { + wx.navigateBack() + }) + }, +}) export {} diff --git a/src/patient/pages/bbmReport/index.wxml b/src/patient/pages/bbmReport/index.wxml index 7aa8747..d2c21dd 100644 --- a/src/patient/pages/bbmReport/index.wxml +++ b/src/patient/pages/bbmReport/index.wxml @@ -5,19 +5,27 @@ 输注时间 - + - + {{injectionDate}} - 使用剂量 + 体重 - + KG @@ -29,7 +37,15 @@ 用药体积 - + ml @@ -38,14 +54,22 @@ 预计瓶数 - + - 取消 - 提交 + 取消 + 提交 diff --git a/src/patient/pages/course/index.scss b/src/patient/pages/course/index.scss index 2c20cfb..f6f4549 100644 --- a/src/patient/pages/course/index.scss +++ b/src/patient/pages/course/index.scss @@ -101,6 +101,13 @@ font-size: 32rpx; color: rgba(1, 1, 5, 1); font-weight: bold; + display: flex; + align-items: center; + .feel { + margin: -20rpx 0; + width: 96rpx; + height: 96rpx; + } } .hostipl-name { margin-top: 4rpx; diff --git a/src/patient/pages/course/index.ts b/src/patient/pages/course/index.ts index a3bd562..05b8208 100644 --- a/src/patient/pages/course/index.ts +++ b/src/patient/pages/course/index.ts @@ -18,12 +18,19 @@ Page({ periodInfo3: {} as any, periodInfo4: {} as any, }, + onLoad(options) { + if (options.current) { + this.setData({ + current: Number(options.current), + }) + } + }, onShow() { app.waitLogin({ type: 1 }).then(() => { - this.getPeriodInfo(1, 'periodInfo1') + this.getPeriodInfo(this.data.current + 1, `periodInfo${this.data.current + 1}`) }) }, - getPeriodInfo(period: 1 | 2 | 3 | 4, key: string) { + getPeriodInfo(period: number, key: string) { wx.ajax({ method: 'GET', url: '?r=wtx/treatment/get-period-info', @@ -40,6 +47,7 @@ Page({ this.setData({ current: e.detail.current, }) + this.getPeriodInfo(e.detail.current + 1, `periodInfo${this.data.current + 1}`) }, handleSelectHostipal() { wx.navigateTo({ @@ -59,16 +67,25 @@ Page({ }) }, handleTCenter() { - this.setData({ - popupShow: true, - popupType: 'TCenter', - popupParams: {}, + wx.ajax({ + method: 'GET', + url: '?r=wtx/common/get-treatment-center-list', + data: {}, + }).then((res) => { + this.setData({ + popupShow: true, + popupType: 'TCenter', + popupParams: { + list: res, + }, + }) }) }, - handlePreDiagnosisReport() { - const { periodInfo1 } = this.data + handlePreDiagnosisReport(e: any) { + const { period } = e.currentTarget.dataset + const { examId } = this.data[`periodInfo${period}`] wx.navigateTo({ - url: `/patient/pages/preDiagnosisReport/index?examid=${periodInfo1.examId}&period=1`, + url: `/patient/pages/preDiagnosisReport/index?examid=${examId}&period=${period}`, }) }, handleAavReport() { @@ -91,9 +108,10 @@ Page({ url: '/patient/pages/injectDate/index', }) }, - handleInhibitorsManage() { + handleInhibitorsManage(e) { + const { period } = e.currentTarget.dataset wx.navigateTo({ - url: '/patient/pages/inhibitorsManageList/index', + url: `/patient/pages/inhibitorsManageList/index?period=${period}`, }) }, handleFollowPlan() { @@ -122,22 +140,31 @@ Page({ }) }, handlePopupOk(e) { - const { type, status } = e.detail - if (type) { - this.setData({ - popupShow: true, - popupType: type, - popupParams: { - status: status || '', + const { popupType } = this.data + const { id } = e.detail + if (popupType === 'TCenter') { + wx.ajax({ + method: 'POST', + url: '?r=wtx/treatment/save-t-hospital', + data: { + hospitalId: id, }, + }).then(() => { + this.setData({ + popupShow: true, + popupType: 'TCenterEnd', + popupParams: { + close: true, + }, + }) }) - return } - this.setData({ - popupShow: false, - }) }, handlePopupCancel() { + const { popupType } = this.data + if (popupType === 'TCenterEnd') { + this.getPeriodInfo(this.data.current + 1, `periodInfo${this.data.current + 1}`) + } this.setData({ popupShow: false, }) diff --git a/src/patient/pages/course/index.wxml b/src/patient/pages/course/index.wxml index 8c9902d..c57cd03 100644 --- a/src/patient/pages/course/index.wxml +++ b/src/patient/pages/course/index.wxml @@ -68,7 +68,7 @@ - + - - + + 1.治疗中心 - 中国医学科学院血液病院 + {{periodInfo2.hospitalName}} - + - + + @@ -185,25 +194,36 @@ - - + + 1.录入您的注射日 - 2025年6月15日 + + {{periodInfo3.injectionDate}} + - + - + + @@ -214,9 +234,9 @@ - + 已记录 - 2 + {{periodInfo3.immuneCount}} @@ -225,7 +245,12 @@ - + + @@ -236,20 +261,42 @@ - 已完成 + 已完成 - + + - 4.此次输注结果如何? + + 4.此次输注结果如何? + + + + diff --git a/src/patient/pages/index/index.ts b/src/patient/pages/index/index.ts index b5c9ce1..e89eb1b 100644 --- a/src/patient/pages/index/index.ts +++ b/src/patient/pages/index/index.ts @@ -154,8 +154,9 @@ Page({ }) }, handleCourse() { + const { progress } = this.data wx.navigateTo({ - url: '/patient/pages/course/index', + url: `/patient/pages/course/index?current=${progress}`, }) }, handleColtStat() { diff --git a/src/patient/pages/inhibitorsManage/index.ts b/src/patient/pages/inhibitorsManage/index.ts index cc7bb90..b2e10c0 100644 --- a/src/patient/pages/inhibitorsManage/index.ts +++ b/src/patient/pages/inhibitorsManage/index.ts @@ -1,11 +1,20 @@ -const _app = getApp() +const app = getApp() Page({ data: { - popupShow: true, + popupShow: false, popupType: 'inhibitors', popupParams: {}, + recordId: '', + period: '', + recordDate: '', + drugId: '', + drugName: '', + type: '', + dosage: '', + dosageUnit: '', + unitRange: [ { id: '1', @@ -17,12 +26,73 @@ Page({ }, ], }, - onLoad() {}, + onLoad(options) { + console.log('DEBUGPRINT[71]: index.ts:29: options=', options) + this.setData({ + period: options.period, + }) + app.waitLogin({ type: 1 }).then(() => { + this.getDict() + if (options.id) { + this.getDetail(options.id) + } + }) + }, + getDict() { + wx.ajax({ + method: 'GET', + url: '?r=wtx/treatment/get-dict', + data: {}, + }).then((res) => { + console.log('res: ', res) + }) + }, + getDetail(id: string) { + wx.ajax({ + method: 'GET', + url: '?r=wtx/immune/get-detail', + data: { recordId: id }, + }).then((res) => { + this.setData({ + ...res, + }) + }) + }, + handleDrug() { + console.log(111) + this.setData({ + popupShow: true, + popupType: 'inhibitors', + popupParams: { + close: true, + list: [], + }, + }) + }, handlePopupOk() { this.setData({ popupShow: false, }) }, + handlePopupCancel() { + this.setData({ + popupShow: false, + }) + }, + handleSubmit() {}, + handleDel() { + const { recordId } = this.data + wx.ajax({ + method: 'GET', + url: '?r=wtx/immune/del', + data: { recordId }, + }).then(() => { + this.handleBack() + }) + }, + handleBack() { + wx.navigateBack() + }, }) export {} diff --git a/src/patient/pages/inhibitorsManage/index.wxml b/src/patient/pages/inhibitorsManage/index.wxml index 59d4240..025faf1 100644 --- a/src/patient/pages/inhibitorsManage/index.wxml +++ b/src/patient/pages/inhibitorsManage/index.wxml @@ -1,14 +1,14 @@ - + 药物名称 - + - + {{drugName}} - + @@ -24,8 +24,14 @@ 使用剂量 - - + + mg/天 @@ -37,9 +43,9 @@ 用药时间 - + - + {{recordDate}} @@ -47,8 +53,9 @@ - 取消 - 提交 + 删除 + 取消 + 提交 diff --git a/src/patient/pages/inhibitorsManageList/index.ts b/src/patient/pages/inhibitorsManageList/index.ts index 217422d..8417636 100644 --- a/src/patient/pages/inhibitorsManageList/index.ts +++ b/src/patient/pages/inhibitorsManageList/index.ts @@ -1,17 +1,63 @@ -const _app = getApp() +const app = getApp() Page({ - data: {}, - onLoad() {}, - handleEdit(e) { - const {id} = e.currentTarget.dataset; + data: { + period: '', + + list: [] as any[], + total: 0, + pagination: { + page: 1, + pages: 1, + count: 1, + }, + }, + onLoad(options) { + this.setData({ + period: options.period, + }) + }, + onShow() { + app.waitLogin().then(() => { + this.getList() + }) + }, + getList(newPage = 1) { + wx.ajax({ + method: 'GET', + url: '?r=wtx/immune/get-list', + data: { + page: newPage, + }, + }).then((res) => { + const list = res.page === 1 ? res.list : [...this.data.list, ...res.list] + this.setData({ + total: res.count, + list, + pagination: { + page: res.page, + pages: res.pages, + count: res.count, + }, + }) + }) + }, + onReachBottom() { + const { page, pages } = this.data.pagination + if (pages > page) { + this.getList(page + 1) + } + }, + handleEdit(e: any) { + const { id, period } = e.currentTarget.dataset wx.navigateTo({ - url: `/patient/pages/inhibitorsManage/index?id=${id}`, + url: `/patient/pages/inhibitorsManage/index?id=${id}&peroid=${period}`, }) }, handleAdd() { + const { period } = this.data wx.navigateTo({ - url: '/patient/pages/inhibitorsManage/index', + url: `/patient/pages/inhibitorsManage/index?period=${period}`, }) }, }) diff --git a/src/patient/pages/inhibitorsManageList/index.wxml b/src/patient/pages/inhibitorsManageList/index.wxml index 6e4614f..a6c6169 100644 --- a/src/patient/pages/inhibitorsManageList/index.wxml +++ b/src/patient/pages/inhibitorsManageList/index.wxml @@ -1,33 +1,40 @@ - - - 您还没有记录信息哦~ - 录入我的免疫制剂信息 - - + 已用药 - 2 + {{total}} - + 用药时间 - 2025-06-13 + {{item.recordDate}} 药物名称 - 2025-06-13 + {{item.drugName}} 用药方式 - 2025-06-13 + {{item.typeName}} 用药剂量 - 2025-06-13 + {{item.dosage}}{{item.dosageUnitName}} + + + + 您还没有记录信息哦~ + 录入我的免疫制剂信息 + diff --git a/src/patient/pages/injectDate/index.ts b/src/patient/pages/injectDate/index.ts index 6fa7c0c..450d8ec 100644 --- a/src/patient/pages/injectDate/index.ts +++ b/src/patient/pages/injectDate/index.ts @@ -1,3 +1,5 @@ +import dayjs from 'dayjs' + const licia = require('miniprogram-licia') const app = getApp() @@ -19,63 +21,56 @@ Page({ }, endGif: false, - gifPath: '', + gifPath: `${app.globalData.imageUrl}gif2.gif?t=${app.globalData.Timestamp}`, + + injectionDate: '', + injectionDateName: '', }, onLoad() { this.loadGifImage() - app.waitLogin({type:1}).then(() => { - this.setArea() + app.waitLogin({ type: 1 }).then(() => { + this.getDetail() }) }, - setArea() { - // const calendar = this.selectComponent('#calendar').calendar - // calendar.chooseDateArea(['2025-06-10', '2025-06-20']) - }, - - takeoverTap() { - this.setData({ - endGif: true, + getDetail() { + wx.ajax({ + method: 'GET', + url: '?r=wtx/treatment/get-injection-date', + data: {}, + }).then((res) => { + if (res.injectionDate) { + const [year, month, date] = dayjs(res.injectionDate).format('YYYY-MM-DD').split('-') + const calendar = this.selectComponent('#calendar').calendar + calendar.setSelectedDates([ + { + year, + month, + date, + }, + ]) + this.setData({ + injectionDate: res.injectionDate, + injectionDateName: dayjs(res.injectionDate).format('YYYY年MM月DD日 ddd'), + }) + } }) }, - setCalendarTodos({ bleedDate = [], injectionDate = [] }: { bleedDate: any[]; injectionDate: string[] }) { + takeoverTap(e) { + const { year, month, date } = e.detail + const injectionDate = dayjs(`${year}-${month}-${date}`).format('YYYY-MM-DD') + const injectionDateName = dayjs(`${year}-${month}-${date}`).format('YYYY年MM月DD日 ddd') const calendar = this.selectComponent('#calendar').calendar - const dates: any[] = [] - const intersectDate = licia.intersect(bleedDate, injectionDate) - const filterAdlDate = bleedDate.filter((item) => !intersectDate.includes(item)) - const filterMedication = injectionDate.filter((item) => !intersectDate.includes(item)) - - filterAdlDate.forEach((Date: string) => { - dates.push({ - year: Date.split('-')[0], - month: Date.split('-')[1], - date: Date.split('-')[2], - color: ['#FB787F'], - }) - }) - filterMedication.forEach((Date: string) => { - dates.push({ - year: Date.split('-')[0], - month: Date.split('-')[1], - date: Date.split('-')[2], - color: ['#0030AE'], - }) - }) - intersectDate.forEach((Date: string) => { - dates.push({ - year: Date.split('-')[0], - month: Date.split('-')[1], - date: Date.split('-')[2], - color: ['#FB787F', '#0030AE'], - }) - }) - calendar.setTodos({ - // 待办点标记设置 - pos: 'bottom', // 待办点标记位置 ['top', 'bottom'] - dotColor: 'purple', // 待办点标记颜色 - circle: false, // 待办圆圈标记设置(如圆圈标记已签到日期),该设置与点标记设置互斥 - showLunar: true, - showLabelAlways: true, // 点击时是否显示待办事项(圆点/文字),在 circle 为 true 及当日历配置 showLunar 为 true 时,此配置失效 - dates, + calendar.cancelSelectedDates() + calendar.setSelectedDates([ + { + year, + month, + date, + }, + ]) + this.setData({ + injectionDate, + injectionDateName, }) }, loadGifImage() { @@ -97,14 +92,35 @@ Page({ }) }, }) - // wx.getImageInfo({ - // src: `${app.globalData.imageUrl}gif2.gif?t=${app.globalData.Timestamp}`, - // success: (res) => { - // this.setData({ - // gifPath: res.path, - // }) - // }, - // }) + }, + handleBack() { + wx.navigateBack() + }, + handleSubmit() { + const { injectionDate } = this.data + + if (!injectionDate) { + wx.showToast({ + title: '请选择注射日期', + icon: 'none', + }) + return + } + + wx.ajax({ + method: 'POST', + url: '?r=wtx/treatment/save-injection-date', + data: { + injectionDate, + }, + }).then(() => { + this.setData({ + endGif: true, + }) + setTimeout(() => { + wx.navigateBack() + }, 3000) + }) }, }) diff --git a/src/patient/pages/injectDate/index.wxml b/src/patient/pages/injectDate/index.wxml index 0c8797a..9609f5c 100644 --- a/src/patient/pages/injectDate/index.wxml +++ b/src/patient/pages/injectDate/index.wxml @@ -10,14 +10,14 @@ > - + 您的注射日是 - 2025年6月4日 周三 + {{injectionDateName}} - 取消 - 提交 + 取消 + 提交 diff --git a/src/patient/pages/preDiagnosisReport/index.ts b/src/patient/pages/preDiagnosisReport/index.ts index 13f28fa..fe39101 100644 --- a/src/patient/pages/preDiagnosisReport/index.ts +++ b/src/patient/pages/preDiagnosisReport/index.ts @@ -209,8 +209,55 @@ Page({ setFile(e: any) { console.log('DEBUGPRINT[63]: index.ts:189: e=', e) const { type, key } = e.currentTarget.dataset + const { examId, period } = this.data const detail = e.detail || [] - detail.forEach((item: any) => {}) + let apiArr: any[] = [] + const fileList = this.data[key] || [] + detail.forEach((item: any) => { + const params: any = { + examId, + period, + type, + fileType: item.fileType, + name: item.name, + url: item.url, + videoUrl: item.videoUrl, + duration: item.duration, + } + fileList.push(params) + apiArr.push(this.saveAttachment(params)) + }) + this.setData({ + [key]: fileList, + }) + Promise.all(apiArr).then((res) => { + console.log(res) + }) + }, + saveAttachment(params: any) { + return wx.ajax({ + method: 'POST', + url: '?r=wtx/treatment/save-attachment', + data: params, + }) + }, + delFile(e: any) { + const { key } = e.currentTarget.dataset + const { index, item } = e.detail + if (item.attachmentId) { + wx.ajax({ + method: 'POST', + url: '?r=wtx/treatment/del-attachment', + data: { + attachmentId: item.attachmentId, + }, + }) + } + const fileList = this.data[key] + const newFileList = fileList.filter((_, i) => i !== index) + this.setData({ + [key]: newFileList, + }) }, }) diff --git a/src/patient/pages/preDiagnosisReport/index.wxml b/src/patient/pages/preDiagnosisReport/index.wxml index c13ffb3..9d5fb2b 100644 --- a/src/patient/pages/preDiagnosisReport/index.wxml +++ b/src/patient/pages/preDiagnosisReport/index.wxml @@ -56,6 +56,7 @@ 请上传您的检查报告 - + @@ -177,7 +185,14 @@ 请上传您的检查报告 - + @@ -219,7 +234,14 @@ 可上传您的抑制物检查结果 - + @@ -275,7 +297,14 @@ 请上传乙型肝炎检查报告 - + @@ -331,7 +360,14 @@ 请上传丙型肝炎检查报告 - + @@ -375,7 +411,14 @@ 填提交您的HIV检测报告 - + @@ -417,7 +460,14 @@ 填提交您的AFP 检测报告 - + @@ -461,7 +511,14 @@ 填提交您的AAV检测报告 - + @@ -498,7 +555,14 @@ > 填提交您的检测报告 - + diff --git a/src/patient/pages/userInfo/index.ts b/src/patient/pages/userInfo/index.ts index 54e02cf..dcd9db0 100644 --- a/src/patient/pages/userInfo/index.ts +++ b/src/patient/pages/userInfo/index.ts @@ -1,3 +1,5 @@ +import dayjs from 'dayjs' + const app = getApp() Page({ @@ -10,12 +12,14 @@ Page({ provinceName: '', cityName: '', + end: dayjs().format('YYYY-MM-DD'), + PatientTel: '', userInfo: {}, }, onShow() { - app.waitLogin({type:1}).then(() => { + app.waitLogin({ type: 1 }).then(() => { app.getUserInfo(1).then((userInfo) => { this.setData({ name: userInfo.PatientName, diff --git a/src/patient/pages/userInfo/index.wxml b/src/patient/pages/userInfo/index.wxml index 36233f5..2b1862a 100644 --- a/src/patient/pages/userInfo/index.wxml +++ b/src/patient/pages/userInfo/index.wxml @@ -16,7 +16,7 @@ {{userInfo.RelationType == 1 ? '' : '亲友'}}出生年月 - + {{birthMonth}}