From 99fab3893fa34478aef79a576c86e53faff24245 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Thu, 27 Nov 2025 10:32:58 +0800 Subject: [PATCH] 251127 --- invest/assets/401.1762932289438.css | 1 - invest/assets/401.1762932289438.js | 1 - invest/assets/Depart.1762932289438.css | 1 - invest/assets/Depart.1762932289438.js | 1 - invest/assets/DepartMaping.1762932289438.js | 1 - invest/assets/Dict.1762932289438.css | 1 - invest/assets/Dict.1762932289438.js | 1 - .../HandleResultMaping.1762932289438.js | 1 - invest/assets/Holiday.1762932289438.css | 1 - invest/assets/Holiday.1762932289438.js | 1 - invest/assets/Home.1762932289438.css | 1 - invest/assets/Home.1762932289438.js | 1 - invest/assets/Information.1762932289438.css | 1 - invest/assets/Information.1762932289438.js | 1 - invest/assets/Ledger.1762932289438.css | 1 - invest/assets/Ledger.1762932289438.js | 242 ----- invest/assets/Login.1762932289438.css | 1 - invest/assets/Login.1762932289438.js | 1 - invest/assets/Menu.1762932289438.css | 1 - invest/assets/Menu.1762932289438.js | 1 - invest/assets/Operating.1762932289438.css | 1 - invest/assets/Operating.1762932289438.js | 1 - invest/assets/Police.1762932289438.css | 1 - invest/assets/Police.1762932289438.js | 1 - invest/assets/ProblemMaping.1762932289438.js | 1 - invest/assets/Role.1762932289438.js | 1 - invest/assets/Support.1762932289438.css | 1 - invest/assets/Support.1762932289438.js | 1 - invest/assets/User.1762932289438.js | 1 - invest/assets/VideoConfig.1762932289438.css | 1 - invest/assets/VideoConfig.1762932289438.js | 1 - invest/assets/af-Cp38c8Xu.1762932289438.js | 1 - invest/assets/as-BRA2d3pp.1762932289438.js | 1 - invest/assets/badge.1762932289438.css | 1 - invest/assets/be-DuPPDo85.1762932289438.js | 1 - invest/assets/bg-CREWvG4t.1762932289438.js | 1 - invest/assets/bn-D2KtSTkr.1762932289438.js | 1 - invest/assets/ca-4YYrF7D4.1762932289438.js | 1 - invest/assets/card.1762932289438.css | 1 - invest/assets/card.1762932289438.js | 1 - invest/assets/catch.1762932289438.js | 1 - invest/assets/col.1762932289438.css | 1 - invest/assets/col.1762932289438.js | 1 - invest/assets/compileTable.1762932289438.js | 1 - .../assets/controlPrice-1.1762932289438.css | 1 - invest/assets/controlPrice-1.1762932289438.js | 1 - invest/assets/controlPrice.1762932289438.js | 1 - invest/assets/cop-C8rmq-mf.1762932289438.js | 1 - invest/assets/cs-D-GFbZkE.1762932289438.js | 1 - invest/assets/cu-B6XjYaXV.1762932289438.js | 1 - invest/assets/cy-Dz9q6g42.1762932289438.js | 1 - invest/assets/da-C6piIYvN.1762932289438.js | 1 - invest/assets/date-picker.1762932289438.css | 1 - invest/assets/date-picker.1762932289438.js | 1 - invest/assets/dayjs.min.1762932289438.js | 1 - .../assets/de-1901-BlrbOJIy.1762932289438.js | 1 - .../assets/de-1996-DJBaU2Ij.1762932289438.js | 1 - .../de-ch-1901-CD9ndUrR.1762932289438.js | 1 - .../depart-tree-select.1762932289438.js | 1 - invest/assets/depart.17629322894382.js | 1 - invest/assets/detail.1762932289438.js | 1 - invest/assets/dict.17629322894382.js | 1 - invest/assets/dictEnums.1762932289438.js | 1 - invest/assets/divider.1762932289438.css | 1 - invest/assets/divider.1762932289438.js | 1 - invest/assets/echarts.1762932289438.js | 58 -- invest/assets/edit.1762932289438.css | 1 - invest/assets/edit.1762932289438.js | 1 - .../el-monoton-C7Dj3t8L.1762932289438.js | 1 - .../el-polyton-3hQ3_5V8.1762932289438.js | 1 - invest/assets/en-gb-BJlV3ZpD.1762932289438.js | 1 - invest/assets/es-DVBhSqkX.1762932289438.js | 1 - invest/assets/et-Db4qA7uM.1762932289438.js | 1 - invest/assets/eu-Cks5q4oj.1762932289438.js | 1 - invest/assets/fi-CloSDd5R.1762932289438.js | 1 - invest/assets/finish.1762932289438.js | 1 - invest/assets/flow.1762932289438.js | 1 - invest/assets/flowEnums.1762932289438.js | 1 - invest/assets/form-item.1762932289438.css | 1 - invest/assets/form-item.1762932289438.js | 12 - invest/assets/fr-B1BYHADY.1762932289438.js | 1 - invest/assets/fur-CBBh0qht.1762932289438.js | 1 - invest/assets/ga-BcR3t3dJ.1762932289438.js | 1 - invest/assets/gl-BBvFm_J1.1762932289438.js | 1 - invest/assets/grc-C45HXf-r.1762932289438.js | 1 - invest/assets/gu-wLi0mXrk.1762932289438.js | 1 - invest/assets/header.1762932289438.css | 1 - invest/assets/hi-0oXXR9W5.1762932289438.js | 1 - invest/assets/hr-qQvmVP7S.1762932289438.js | 1 - invest/assets/hsb-Cfm_aA_B.1762932289438.js | 1 - invest/assets/hu-DX3GX0Md.1762932289438.js | 1 - invest/assets/hy-CQNr6JSB.1762932289438.js | 1 - invest/assets/ia-C6a-e-Dj.1762932289438.js | 1 - invest/assets/id-Dz9P_puV.1762932289438.js | 1 - invest/assets/index.1762932289438.css | 1 - invest/assets/index.1762932289438.js | 42 - invest/assets/index.176293228943810.js | 230 ----- invest/assets/index.176293228943811.js | 1 - invest/assets/index.176293228943812.js | 1 - invest/assets/index.176293228943813.js | 1 - invest/assets/index.176293228943814.js | 1 - invest/assets/index.17629322894382.css | 1 - invest/assets/index.17629322894382.js | 1 - invest/assets/index.17629322894383.js | 1 - invest/assets/index.17629322894384.js | 1 - invest/assets/index.17629322894385.js | 1 - invest/assets/index.17629322894386.js | 1 - invest/assets/index.17629322894387.js | 1 - invest/assets/index.17629322894388.js | 1 - invest/assets/index.17629322894389.js | 1 - invest/assets/input.1762932289438.css | 1 - invest/assets/is-i5pSEnjg.1762932289438.js | 1 - invest/assets/it-DW0whi0u.1762932289438.js | 1 - invest/assets/ka-BLB-V1lz.1762932289438.js | 1 - invest/assets/kmr-B-KiPlp3.1762932289438.js | 1 - invest/assets/kn-DO8F4Tga.1762932289438.js | 1 - invest/assets/la-DHKd_s9q.1762932289438.js | 1 - .../la-x-classic-DfZknpxy.1762932289438.js | 1 - .../la-x-liturgic-DTe6oXWw.1762932289438.js | 1 - invest/assets/list.1762932289438.css | 1 - invest/assets/list.1762932289438.js | 1 - invest/assets/loading.1762932289438.css | 1 - invest/assets/lt-DtlA9rsC.1762932289438.js | 1 - invest/assets/lv-DXaKRahI.1762932289438.js | 1 - invest/assets/main.1762932289438.css | 1 - invest/assets/main.1762932289438.js | 1 - invest/assets/menu.17629322894382.js | 1 - invest/assets/ml-BGEScgvb.1762932289438.js | 1 - .../assets/mn-cyrl-BhdxkmdX.1762932289438.js | 1 - .../mn-cyrl-x-lmc-BGezHEbR.1762932289438.js | 1 - invest/assets/mr-DEKWXvtC.1762932289438.js | 1 - .../assets/mul-ethi-BJCO9BlO.1762932289438.js | 1 - invest/assets/nb-DXDxUDDo.1762932289438.js | 1 - invest/assets/nl-DVAPWIGp.1762932289438.js | 1 - invest/assets/nn-U4EJzxc1.1762932289438.js | 1 - invest/assets/no-CYxBnhIW.1762932289438.js | 1 - invest/assets/oc-DsUOXMQD.1762932289438.js | 1 - invest/assets/or-CKqO0QN6.1762932289438.js | 1 - invest/assets/overlay.1762932289438.css | 1 - invest/assets/overlay.1762932289438.js | 1 - invest/assets/pa-C289aRic.1762932289438.js | 1 - invest/assets/pagination.1762932289438.css | 1 - invest/assets/pagination.1762932289438.js | 1 - invest/assets/pi-BCynSWdr.1762932289438.js | 1 - invest/assets/pl-Dc8CHLY1.1762932289438.js | 1 - invest/assets/pms-D7eF7JvK.1762932289438.js | 1 - invest/assets/police.17629322894382.js | 1 - invest/assets/popper.1762932289438.css | 1 - invest/assets/popper.1762932289438.js | 1 - invest/assets/progress.1762932289438.css | 1 - invest/assets/progress.1762932289438.js | 6 - invest/assets/pt-BIKGx1hO.1762932289438.js | 1 - invest/assets/radio.1762932289438.css | 1 - invest/assets/radio.1762932289438.js | 1 - invest/assets/reject.1762932289438.js | 1 - invest/assets/reportDetail.1762932289438.js | 1 - invest/assets/reportProject.1762932289438.css | 1 - invest/assets/reportProject.1762932289438.js | 1 - invest/assets/rm-CtXRfXwR.1762932289438.js | 1 - invest/assets/ro-Dgc3hCQP.1762932289438.js | 1 - invest/assets/role.17629322894382.js | 1 - invest/assets/ru-CfO_VOSH.1762932289438.js | 1 - invest/assets/sa-Ci_yq_nB.1762932289438.js | 1 - invest/assets/select.1762932289438.css | 1 - invest/assets/select.1762932289438.js | 1 - .../assets/sh-cyrl-B2Lh5Alp.1762932289438.js | 1 - .../assets/sh-latn-B7Pprjwx.1762932289438.js | 1 - invest/assets/sk-CertwDVR.1762932289438.js | 1 - invest/assets/sl-BDe1PmyZ.1762932289438.js | 1 - .../assets/sr-cyrl-Dw0eEBrg.1762932289438.js | 1 - invest/assets/sv-BVAzsIUi.1762932289438.js | 1 - invest/assets/switch.1762932289438.css | 1 - invest/assets/switch.1762932289438.js | 1 - invest/assets/ta-Cai0wUPn.1762932289438.js | 1 - invest/assets/table-column.1762932289438.css | 1 - invest/assets/table-column.1762932289438.js | 14 - invest/assets/tag.1762932289438.css | 1 - invest/assets/tag.1762932289438.js | 1 - invest/assets/te-DKbqLYh4.1762932289438.js | 1 - invest/assets/text.1762932289438.css | 1 - invest/assets/text.1762932289438.js | 1 - invest/assets/th-DJ6gR5Ug.1762932289438.js | 1 - invest/assets/tk-DNRkC-pL.1762932289438.js | 1 - invest/assets/tr-BRmPg68h.1762932289438.js | 1 - invest/assets/tree-select.1762932289438.css | 1 - invest/assets/tree-select.1762932289438.js | 1 - invest/assets/uk-BS0jT5id.1762932289438.js | 1 - invest/assets/upload.1762932289438.js | 1 - invest/assets/vue.1762932289438.js | 26 - .../assets/warningCompile.1762932289438.css | 1 - invest/assets/warningCompile.1762932289438.js | 1 - invest/assets/work.1762932289438.css | 1 - invest/assets/work.1762932289438.js | 1 - .../zh-latn-pinyin-UC2Ykr4P.1762932289438.js | 1 - invest/decoder.js | 1 - invest/decoder.wasm | Bin 1226828 -> 0 bytes invest/favicon.png | Bin 55334 -> 0 bytes invest/imgs/401.gif | Bin 164227 -> 0 bytes invest/imgs/datav/1.png | Bin 230438 -> 0 bytes invest/imgs/datav/2.jpg | Bin 57438 -> 0 bytes invest/imgs/datav/3.jpeg | Bin 117983 -> 0 bytes invest/imgs/datav/base.png | Bin 2184 -> 0 bytes invest/imgs/datav/base_active.png | Bin 2554 -> 0 bytes invest/imgs/datav/bg-1.png | Bin 81841 -> 0 bytes invest/imgs/datav/jwpy.png | Bin 976665 -> 0 bytes invest/imgs/datav/lmgz.png | Bin 274944 -> 0 bytes invest/imgs/datav/sub1.png | Bin 601104 -> 0 bytes invest/imgs/datav/sub2.png | Bin 534785 -> 0 bytes invest/imgs/lmgz/1.png | Bin 407037 -> 0 bytes invest/imgs/login.png | Bin 41149 -> 0 bytes invest/imgs/login_header.png | Bin 61641 -> 0 bytes invest/imgs/personal.svg | 1 - invest/imgs/pic.png | Bin 145192 -> 0 bytes invest/imgs/police.png | Bin 3324 -> 0 bytes invest/imgs/support.png | Bin 39069 -> 0 bytes invest/imgs/video/1.jpg | Bin 278973 -> 0 bytes invest/imgs/video/2.jpg | Bin 257913 -> 0 bytes invest/imgs/video/3.jpg | Bin 104167 -> 0 bytes invest/imgs/video/4.jpg | Bin 98325 -> 0 bytes invest/imgs/video/5.jpg | Bin 179916 -> 0 bytes invest/imgs/video/地址.txt | 14 - invest/index.html | 77 -- invest/jessibuca.js | 1 - invest/js/authen.js | 246 ----- invest/js/liveplayer-lib.min.js | 1 - invest/js/pnxclient.js | 873 ------------------ invest/logo.png | Bin 38136 -> 0 bytes 227 files changed, 2030 deletions(-) delete mode 100644 invest/assets/401.1762932289438.css delete mode 100644 invest/assets/401.1762932289438.js delete mode 100644 invest/assets/Depart.1762932289438.css delete mode 100644 invest/assets/Depart.1762932289438.js delete mode 100644 invest/assets/DepartMaping.1762932289438.js delete mode 100644 invest/assets/Dict.1762932289438.css delete mode 100644 invest/assets/Dict.1762932289438.js delete mode 100644 invest/assets/HandleResultMaping.1762932289438.js delete mode 100644 invest/assets/Holiday.1762932289438.css delete mode 100644 invest/assets/Holiday.1762932289438.js delete mode 100644 invest/assets/Home.1762932289438.css delete mode 100644 invest/assets/Home.1762932289438.js delete mode 100644 invest/assets/Information.1762932289438.css delete mode 100644 invest/assets/Information.1762932289438.js delete mode 100644 invest/assets/Ledger.1762932289438.css delete mode 100644 invest/assets/Ledger.1762932289438.js delete mode 100644 invest/assets/Login.1762932289438.css delete mode 100644 invest/assets/Login.1762932289438.js delete mode 100644 invest/assets/Menu.1762932289438.css delete mode 100644 invest/assets/Menu.1762932289438.js delete mode 100644 invest/assets/Operating.1762932289438.css delete mode 100644 invest/assets/Operating.1762932289438.js delete mode 100644 invest/assets/Police.1762932289438.css delete mode 100644 invest/assets/Police.1762932289438.js delete mode 100644 invest/assets/ProblemMaping.1762932289438.js delete mode 100644 invest/assets/Role.1762932289438.js delete mode 100644 invest/assets/Support.1762932289438.css delete mode 100644 invest/assets/Support.1762932289438.js delete mode 100644 invest/assets/User.1762932289438.js delete mode 100644 invest/assets/VideoConfig.1762932289438.css delete mode 100644 invest/assets/VideoConfig.1762932289438.js delete mode 100644 invest/assets/af-Cp38c8Xu.1762932289438.js delete mode 100644 invest/assets/as-BRA2d3pp.1762932289438.js delete mode 100644 invest/assets/badge.1762932289438.css delete mode 100644 invest/assets/be-DuPPDo85.1762932289438.js delete mode 100644 invest/assets/bg-CREWvG4t.1762932289438.js delete mode 100644 invest/assets/bn-D2KtSTkr.1762932289438.js delete mode 100644 invest/assets/ca-4YYrF7D4.1762932289438.js delete mode 100644 invest/assets/card.1762932289438.css delete mode 100644 invest/assets/card.1762932289438.js delete mode 100644 invest/assets/catch.1762932289438.js delete mode 100644 invest/assets/col.1762932289438.css delete mode 100644 invest/assets/col.1762932289438.js delete mode 100644 invest/assets/compileTable.1762932289438.js delete mode 100644 invest/assets/controlPrice-1.1762932289438.css delete mode 100644 invest/assets/controlPrice-1.1762932289438.js delete mode 100644 invest/assets/controlPrice.1762932289438.js delete mode 100644 invest/assets/cop-C8rmq-mf.1762932289438.js delete mode 100644 invest/assets/cs-D-GFbZkE.1762932289438.js delete mode 100644 invest/assets/cu-B6XjYaXV.1762932289438.js delete mode 100644 invest/assets/cy-Dz9q6g42.1762932289438.js delete mode 100644 invest/assets/da-C6piIYvN.1762932289438.js delete mode 100644 invest/assets/date-picker.1762932289438.css delete mode 100644 invest/assets/date-picker.1762932289438.js delete mode 100644 invest/assets/dayjs.min.1762932289438.js delete mode 100644 invest/assets/de-1901-BlrbOJIy.1762932289438.js delete mode 100644 invest/assets/de-1996-DJBaU2Ij.1762932289438.js delete mode 100644 invest/assets/de-ch-1901-CD9ndUrR.1762932289438.js delete mode 100644 invest/assets/depart-tree-select.1762932289438.js delete mode 100644 invest/assets/depart.17629322894382.js delete mode 100644 invest/assets/detail.1762932289438.js delete mode 100644 invest/assets/dict.17629322894382.js delete mode 100644 invest/assets/dictEnums.1762932289438.js delete mode 100644 invest/assets/divider.1762932289438.css delete mode 100644 invest/assets/divider.1762932289438.js delete mode 100644 invest/assets/echarts.1762932289438.js delete mode 100644 invest/assets/edit.1762932289438.css delete mode 100644 invest/assets/edit.1762932289438.js delete mode 100644 invest/assets/el-monoton-C7Dj3t8L.1762932289438.js delete mode 100644 invest/assets/el-polyton-3hQ3_5V8.1762932289438.js delete mode 100644 invest/assets/en-gb-BJlV3ZpD.1762932289438.js delete mode 100644 invest/assets/es-DVBhSqkX.1762932289438.js delete mode 100644 invest/assets/et-Db4qA7uM.1762932289438.js delete mode 100644 invest/assets/eu-Cks5q4oj.1762932289438.js delete mode 100644 invest/assets/fi-CloSDd5R.1762932289438.js delete mode 100644 invest/assets/finish.1762932289438.js delete mode 100644 invest/assets/flow.1762932289438.js delete mode 100644 invest/assets/flowEnums.1762932289438.js delete mode 100644 invest/assets/form-item.1762932289438.css delete mode 100644 invest/assets/form-item.1762932289438.js delete mode 100644 invest/assets/fr-B1BYHADY.1762932289438.js delete mode 100644 invest/assets/fur-CBBh0qht.1762932289438.js delete mode 100644 invest/assets/ga-BcR3t3dJ.1762932289438.js delete mode 100644 invest/assets/gl-BBvFm_J1.1762932289438.js delete mode 100644 invest/assets/grc-C45HXf-r.1762932289438.js delete mode 100644 invest/assets/gu-wLi0mXrk.1762932289438.js delete mode 100644 invest/assets/header.1762932289438.css delete mode 100644 invest/assets/hi-0oXXR9W5.1762932289438.js delete mode 100644 invest/assets/hr-qQvmVP7S.1762932289438.js delete mode 100644 invest/assets/hsb-Cfm_aA_B.1762932289438.js delete mode 100644 invest/assets/hu-DX3GX0Md.1762932289438.js delete mode 100644 invest/assets/hy-CQNr6JSB.1762932289438.js delete mode 100644 invest/assets/ia-C6a-e-Dj.1762932289438.js delete mode 100644 invest/assets/id-Dz9P_puV.1762932289438.js delete mode 100644 invest/assets/index.1762932289438.css delete mode 100644 invest/assets/index.1762932289438.js delete mode 100644 invest/assets/index.176293228943810.js delete mode 100644 invest/assets/index.176293228943811.js delete mode 100644 invest/assets/index.176293228943812.js delete mode 100644 invest/assets/index.176293228943813.js delete mode 100644 invest/assets/index.176293228943814.js delete mode 100644 invest/assets/index.17629322894382.css delete mode 100644 invest/assets/index.17629322894382.js delete mode 100644 invest/assets/index.17629322894383.js delete mode 100644 invest/assets/index.17629322894384.js delete mode 100644 invest/assets/index.17629322894385.js delete mode 100644 invest/assets/index.17629322894386.js delete mode 100644 invest/assets/index.17629322894387.js delete mode 100644 invest/assets/index.17629322894388.js delete mode 100644 invest/assets/index.17629322894389.js delete mode 100644 invest/assets/input.1762932289438.css delete mode 100644 invest/assets/is-i5pSEnjg.1762932289438.js delete mode 100644 invest/assets/it-DW0whi0u.1762932289438.js delete mode 100644 invest/assets/ka-BLB-V1lz.1762932289438.js delete mode 100644 invest/assets/kmr-B-KiPlp3.1762932289438.js delete mode 100644 invest/assets/kn-DO8F4Tga.1762932289438.js delete mode 100644 invest/assets/la-DHKd_s9q.1762932289438.js delete mode 100644 invest/assets/la-x-classic-DfZknpxy.1762932289438.js delete mode 100644 invest/assets/la-x-liturgic-DTe6oXWw.1762932289438.js delete mode 100644 invest/assets/list.1762932289438.css delete mode 100644 invest/assets/list.1762932289438.js delete mode 100644 invest/assets/loading.1762932289438.css delete mode 100644 invest/assets/lt-DtlA9rsC.1762932289438.js delete mode 100644 invest/assets/lv-DXaKRahI.1762932289438.js delete mode 100644 invest/assets/main.1762932289438.css delete mode 100644 invest/assets/main.1762932289438.js delete mode 100644 invest/assets/menu.17629322894382.js delete mode 100644 invest/assets/ml-BGEScgvb.1762932289438.js delete mode 100644 invest/assets/mn-cyrl-BhdxkmdX.1762932289438.js delete mode 100644 invest/assets/mn-cyrl-x-lmc-BGezHEbR.1762932289438.js delete mode 100644 invest/assets/mr-DEKWXvtC.1762932289438.js delete mode 100644 invest/assets/mul-ethi-BJCO9BlO.1762932289438.js delete mode 100644 invest/assets/nb-DXDxUDDo.1762932289438.js delete mode 100644 invest/assets/nl-DVAPWIGp.1762932289438.js delete mode 100644 invest/assets/nn-U4EJzxc1.1762932289438.js delete mode 100644 invest/assets/no-CYxBnhIW.1762932289438.js delete mode 100644 invest/assets/oc-DsUOXMQD.1762932289438.js delete mode 100644 invest/assets/or-CKqO0QN6.1762932289438.js delete mode 100644 invest/assets/overlay.1762932289438.css delete mode 100644 invest/assets/overlay.1762932289438.js delete mode 100644 invest/assets/pa-C289aRic.1762932289438.js delete mode 100644 invest/assets/pagination.1762932289438.css delete mode 100644 invest/assets/pagination.1762932289438.js delete mode 100644 invest/assets/pi-BCynSWdr.1762932289438.js delete mode 100644 invest/assets/pl-Dc8CHLY1.1762932289438.js delete mode 100644 invest/assets/pms-D7eF7JvK.1762932289438.js delete mode 100644 invest/assets/police.17629322894382.js delete mode 100644 invest/assets/popper.1762932289438.css delete mode 100644 invest/assets/popper.1762932289438.js delete mode 100644 invest/assets/progress.1762932289438.css delete mode 100644 invest/assets/progress.1762932289438.js delete mode 100644 invest/assets/pt-BIKGx1hO.1762932289438.js delete mode 100644 invest/assets/radio.1762932289438.css delete mode 100644 invest/assets/radio.1762932289438.js delete mode 100644 invest/assets/reject.1762932289438.js delete mode 100644 invest/assets/reportDetail.1762932289438.js delete mode 100644 invest/assets/reportProject.1762932289438.css delete mode 100644 invest/assets/reportProject.1762932289438.js delete mode 100644 invest/assets/rm-CtXRfXwR.1762932289438.js delete mode 100644 invest/assets/ro-Dgc3hCQP.1762932289438.js delete mode 100644 invest/assets/role.17629322894382.js delete mode 100644 invest/assets/ru-CfO_VOSH.1762932289438.js delete mode 100644 invest/assets/sa-Ci_yq_nB.1762932289438.js delete mode 100644 invest/assets/select.1762932289438.css delete mode 100644 invest/assets/select.1762932289438.js delete mode 100644 invest/assets/sh-cyrl-B2Lh5Alp.1762932289438.js delete mode 100644 invest/assets/sh-latn-B7Pprjwx.1762932289438.js delete mode 100644 invest/assets/sk-CertwDVR.1762932289438.js delete mode 100644 invest/assets/sl-BDe1PmyZ.1762932289438.js delete mode 100644 invest/assets/sr-cyrl-Dw0eEBrg.1762932289438.js delete mode 100644 invest/assets/sv-BVAzsIUi.1762932289438.js delete mode 100644 invest/assets/switch.1762932289438.css delete mode 100644 invest/assets/switch.1762932289438.js delete mode 100644 invest/assets/ta-Cai0wUPn.1762932289438.js delete mode 100644 invest/assets/table-column.1762932289438.css delete mode 100644 invest/assets/table-column.1762932289438.js delete mode 100644 invest/assets/tag.1762932289438.css delete mode 100644 invest/assets/tag.1762932289438.js delete mode 100644 invest/assets/te-DKbqLYh4.1762932289438.js delete mode 100644 invest/assets/text.1762932289438.css delete mode 100644 invest/assets/text.1762932289438.js delete mode 100644 invest/assets/th-DJ6gR5Ug.1762932289438.js delete mode 100644 invest/assets/tk-DNRkC-pL.1762932289438.js delete mode 100644 invest/assets/tr-BRmPg68h.1762932289438.js delete mode 100644 invest/assets/tree-select.1762932289438.css delete mode 100644 invest/assets/tree-select.1762932289438.js delete mode 100644 invest/assets/uk-BS0jT5id.1762932289438.js delete mode 100644 invest/assets/upload.1762932289438.js delete mode 100644 invest/assets/vue.1762932289438.js delete mode 100644 invest/assets/warningCompile.1762932289438.css delete mode 100644 invest/assets/warningCompile.1762932289438.js delete mode 100644 invest/assets/work.1762932289438.css delete mode 100644 invest/assets/work.1762932289438.js delete mode 100644 invest/assets/zh-latn-pinyin-UC2Ykr4P.1762932289438.js delete mode 100644 invest/decoder.js delete mode 100644 invest/decoder.wasm delete mode 100644 invest/favicon.png delete mode 100644 invest/imgs/401.gif delete mode 100644 invest/imgs/datav/1.png delete mode 100644 invest/imgs/datav/2.jpg delete mode 100644 invest/imgs/datav/3.jpeg delete mode 100644 invest/imgs/datav/base.png delete mode 100644 invest/imgs/datav/base_active.png delete mode 100644 invest/imgs/datav/bg-1.png delete mode 100644 invest/imgs/datav/jwpy.png delete mode 100644 invest/imgs/datav/lmgz.png delete mode 100644 invest/imgs/datav/sub1.png delete mode 100644 invest/imgs/datav/sub2.png delete mode 100644 invest/imgs/lmgz/1.png delete mode 100644 invest/imgs/login.png delete mode 100644 invest/imgs/login_header.png delete mode 100644 invest/imgs/personal.svg delete mode 100644 invest/imgs/pic.png delete mode 100644 invest/imgs/police.png delete mode 100644 invest/imgs/support.png delete mode 100644 invest/imgs/video/1.jpg delete mode 100644 invest/imgs/video/2.jpg delete mode 100644 invest/imgs/video/3.jpg delete mode 100644 invest/imgs/video/4.jpg delete mode 100644 invest/imgs/video/5.jpg delete mode 100644 invest/imgs/video/地址.txt delete mode 100644 invest/index.html delete mode 100644 invest/jessibuca.js delete mode 100644 invest/js/authen.js delete mode 100644 invest/js/liveplayer-lib.min.js delete mode 100644 invest/js/pnxclient.js delete mode 100644 invest/logo.png diff --git a/invest/assets/401.1762932289438.css b/invest/assets/401.1762932289438.css deleted file mode 100644 index a4fb38a..0000000 --- a/invest/assets/401.1762932289438.css +++ /dev/null @@ -1 +0,0 @@ -.container[data-v-e5d658e8]{width:4.16667rem;margin:auto;margin-top:10vh} diff --git a/invest/assets/401.1762932289438.js b/invest/assets/401.1762932289438.js deleted file mode 100644 index 4fcc5ca..0000000 --- a/invest/assets/401.1762932289438.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as p,c as i,A as m}from"./index.1762932289438.js";import{E as u,a as d}from"./col.1762932289438.js";import{aa as c,l as f,o as g,J as t,H as s,q as e,V as x}from"./vue.1762932289438.js";import"./echarts.1762932289438.js";const k="/invest/imgs/401.gif",E={class:"container"},b={__name:"401",setup(B){const a=c();function l(){m(),a.push("/login")}return(V,o)=>{const r=i,n=u,_=d;return g(),f("div",E,[t(_,null,{default:s(()=>[t(n,{span:12},{default:s(()=>[o[1]||(o[1]=e("h1",{style:{"margin-top":"160px","margin-bottom":"30px"}},"您没有权限!",-1)),o[2]||(o[2]=e("p",{class:"mb-20"},"如有疑问,请联系系统管理员",-1)),o[3]||(o[3]=e("p",{class:"mb-8"},"可选择",-1)),t(r,{type:"primary",link:"",onClick:l},{default:s(()=>o[0]||(o[0]=[x("返回登录",-1)])),_:1,__:[0]})]),_:1,__:[1,2,3]}),t(n,{span:12},{default:s(()=>o[4]||(o[4]=[e("img",{src:k},null,-1)])),_:1,__:[4]})]),_:1})])}}},N=p(b,[["__scopeId","data-v-e5d658e8"]]);export{N as default}; diff --git a/invest/assets/Depart.1762932289438.css b/invest/assets/Depart.1762932289438.css deleted file mode 100644 index 79742e7..0000000 --- a/invest/assets/Depart.1762932289438.css +++ /dev/null @@ -1 +0,0 @@ -.upload-action[data-v-811c15b5]{width:1.19792rem;height:.67708rem;background:#0000000a;border-radius:.04167rem;border:.00521rem solid rgba(0,0,0,.15)}.depart-img[data-v-811c15b5]{width:1.19792rem;height:.67708rem} diff --git a/invest/assets/Depart.1762932289438.js b/invest/assets/Depart.1762932289438.js deleted file mode 100644 index bd4ad1c..0000000 --- a/invest/assets/Depart.1762932289438.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as le,S as V,b as te,c as ae,t as oe,E as ne,v as de,D as re,F as H,z}from"./index.1762932289438.js";import{E as se}from"./overlay.1762932289438.js";import{E as ue}from"./switch.1762932289438.js";import"./progress.1762932289438.js";import{_ as ie}from"./depart-tree-select.1762932289438.js";import{E as pe}from"./pagination.1762932289438.js";import{E as me}from"./tag.1762932289438.js";import"./select.1762932289438.js";import"./popper.1762932289438.js";/* empty css */import{E as _e,a as fe}from"./form-item.1762932289438.js";import{a as ce,E as ve}from"./col.1762932289438.js";import{a as be,E as ge}from"./table-column.1762932289438.js";import{d as G,l as Ee,a as Ve,b as ke,u as ye}from"./depart.17629322894382.js";import{E as we}from"./index.176293228943811.js";import{r as c,s as Ne,ai as Ce,l as B,o as s,q as m,J as l,P as w,G as _,H as t,V as u,u as a,e as J,D as ze,F as De}from"./vue.1762932289438.js";import"./echarts.1762932289438.js";import"./text.1762932289438.js";import"./tree-select.1762932289438.js";import"./catch.1762932289438.js";import"./dict.17629322894382.js";const Ue={class:"container"},xe={class:"mb-10"},Ae={class:"table-container"},Be={class:"mb-20"},Se={class:"flex end"},Te={class:"table-container"},$e={class:"flex end mt-8"},Le=["src"],Pe={key:1,class:"flex v-center center column upload-action"},qe={class:"flex end"},Fe={__name:"Depart",setup(Ie){const S=c([]),D=c("tree"),i=c({size:10,current:1});function U(){G({}).then(d=>{S.value=d})}const T=c([]),$=c(0);function b(){Ee(i.value).then(d=>{T.value=d.records,$.value=d.total})}function M(){i.value={current:1,size:10},b()}Ne(()=>{U(),b()});function L(d,e,N){G({pid:d.id}).then(p=>{N(p)})}const k=c("add"),n=c({status:V.ENABLE}),P=c(null),g=c(!1);function j(){g.value=!0,k.value==="edit"&&(n.value={}),k.value="add"}function q(d){g.value=!0,n.value={...d},k.value="edit"}async function F(d){await z.confirm(`确定要删除 ${d.shortName}?`),await Ve(d.id),z.msgSuccess("删除成功"),U(),b()}async function K(){await P.value.validate(),k.value==="add"?(await ke(n.value),n.value={status:V.ENABLE}):await ye(n.value),g.value=!1,U(),b(),z.msgSuccess("操作成功")}function O(d,e){if(d.code!==200){z.msgError("上传失败");return}n.value.img=d.data.filePath}return(d,e)=>{const N=te,p=ae,r=ge,C=me,I=be,R=oe,E=ne,f=fe,v=ve,x=ce,h=_e,Q=pe,W=de,X=ie,Y=we,Z=ue,ee=se,y=Ce("perms");return s(),B(De,null,[m("div",Ue,[m("header",null,[m("div",xe,[w((s(),_(p,{type:"primary",onClick:j},{icon:t(()=>[l(N,{name:"el-icon-Plus"})]),default:t(()=>[e[14]||(e[14]=u(" 新增机构",-1))]),_:1,__:[14]})),[[y,["depart:add"]]])])]),l(W,{modelValue:a(D),"onUpdate:modelValue":e[5]||(e[5]=o=>J(D)?D.value=o:null)},{default:t(()=>[l(R,{label:"树",name:"tree"},{default:t(()=>[m("div",Ae,[l(I,{data:a(S),"row-key":"id",lazy:"",load:L},{default:t(()=>[l(r,{label:"机构简称",prop:"shortName"}),l(r,{label:"机构全称",prop:"name","show-overflow-tooltip":""}),l(r,{label:"编码",prop:"code"}),l(r,{label:"排序",prop:"orderNo",width:"80"}),l(r,{label:"最后更新时间",prop:"updatedAt",width:"200"}),l(r,{label:"状态",width:"100",align:"center"},{default:t(({row:o})=>[o.status===a(V).ENABLE?(s(),_(C,{key:0,type:"success"},{default:t(()=>e[15]||(e[15]=[u("启用",-1)])),_:1,__:[15]})):(s(),_(C,{key:1,type:"danger",effect:"dark"},{default:t(()=>e[16]||(e[16]=[u("禁用",-1)])),_:1,__:[16]}))]),_:1}),l(r,{label:"操作",width:"160"},{default:t(({row:o})=>[w((s(),_(p,{type:"primary",link:"",onClick:A=>q(o)},{default:t(()=>e[17]||(e[17]=[u("编辑",-1)])),_:2,__:[17]},1032,["onClick"])),[[y,["depart:add"]]]),w((s(),_(p,{type:"danger",link:"",onClick:A=>F(o)},{default:t(()=>e[18]||(e[18]=[u("删除",-1)])),_:2,__:[18]},1032,["onClick"])),[[y,["depart:add"]]])]),_:1})]),_:1},8,["data"])])]),_:1}),l(R,{label:"列表",name:"list"},{default:t(()=>[m("header",Be,[l(h,{"label-width":114},{default:t(()=>[l(x,null,{default:t(()=>[l(v,{span:6},{default:t(()=>[l(f,{label:"机构简称"},{default:t(()=>[l(E,{placeholder:"请输入机构简称",modelValue:a(i).shortName,"onUpdate:modelValue":e[0]||(e[0]=o=>a(i).shortName=o),clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),l(v,{span:6},{default:t(()=>[l(f,{label:"机构全称"},{default:t(()=>[l(E,{placeholder:"请输入机构全称",modelValue:a(i).name,"onUpdate:modelValue":e[1]||(e[1]=o=>a(i).name=o),clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),l(v,{span:6},{default:t(()=>[l(f,{label:"机构编码"},{default:t(()=>[l(E,{placeholder:"请输入机构编码",modelValue:a(i).code,"onUpdate:modelValue":e[2]||(e[2]=o=>a(i).code=o),clearable:""},null,8,["modelValue"])]),_:1})]),_:1}),l(v,{span:6},{default:t(()=>[m("div",Se,[l(p,{type:"primary",onClick:b},{default:t(()=>e[19]||(e[19]=[u("查询",-1)])),_:1,__:[19]}),l(p,{onClick:M},{default:t(()=>e[20]||(e[20]=[u("重置",-1)])),_:1,__:[20]})])]),_:1})]),_:1})]),_:1})]),m("div",Te,[l(I,{data:a(T),"row-key":"id",load:L},{default:t(()=>[l(r,{label:"机构简称",prop:"shortName"}),l(r,{label:"机构全称",prop:"name","show-overflow-tooltip":""}),l(r,{label:"编码",prop:"code"}),l(r,{label:"排序",prop:"orderNo",width:"80"}),l(r,{label:"最后更新时间",prop:"updatedAt",width:"200"}),l(r,{label:"状态",width:"100",align:"center"},{default:t(({row:o})=>[o.status===a(V).ENABLE?(s(),_(C,{key:0,type:"success"},{default:t(()=>e[21]||(e[21]=[u("启用",-1)])),_:1,__:[21]})):(s(),_(C,{key:1,type:"danger",effect:"dark"},{default:t(()=>e[22]||(e[22]=[u("禁用",-1)])),_:1,__:[22]}))]),_:1}),l(r,{label:"操作",width:"160"},{default:t(({row:o})=>[w((s(),_(p,{type:"primary",link:"",onClick:A=>q(o)},{default:t(()=>e[23]||(e[23]=[u("编辑",-1)])),_:2,__:[23]},1032,["onClick"])),[[y,["depart:add"]]]),w((s(),_(p,{type:"danger",link:"",onClick:A=>F(o)},{default:t(()=>e[24]||(e[24]=[u("删除",-1)])),_:2,__:[24]},1032,["onClick"])),[[y,["depart:add"]]])]),_:1})]),_:1},8,["data"])]),m("div",$e,[l(Q,{onSizeChange:b,onCurrentChange:b,"page-sizes":[10,20,50],"page-size":a(i).size,"onUpdate:pageSize":e[3]||(e[3]=o=>a(i).size=o),"current-page":a(i).current,"onUpdate:currentPage":e[4]||(e[4]=o=>a(i).current=o),layout:"total, sizes, prev, pager, next",total:a($)},null,8,["page-size","current-page","total"])])]),_:1})]),_:1},8,["modelValue"])]),l(ee,{title:a(k)==="add"?"新增机构":"编辑机构",modelValue:a(g),"onUpdate:modelValue":e[13]||(e[13]=o=>J(g)?g.value=o:null),width:"700"},{default:t(()=>[l(h,{model:a(n),"label-width":120,ref_key:"fomrRef",ref:P},{default:t(()=>[l(x,{gutter:20},{default:t(()=>[l(v,{span:15},{default:t(()=>[a(n).id!=="12630"?(s(),_(f,{key:0,label:"上级机构",prop:"pid",rules:{required:!0,message:"请选择上级机构",trigger:["change"]}},{default:t(()=>[l(X,{modelValue:a(n).pid,"onUpdate:modelValue":e[6]||(e[6]=o=>a(n).pid=o)},null,8,["modelValue"])]),_:1})):ze("",!0),l(f,{label:"机构全称",prop:"name",rules:{required:!0,message:"请输入机构全称",trigger:["blur"]}},{default:t(()=>[l(E,{placeholder:"请输入",modelValue:a(n).name,"onUpdate:modelValue":e[7]||(e[7]=o=>a(n).name=o)},null,8,["modelValue"])]),_:1}),l(f,{label:"机构简称",prop:"shortName",rules:{required:!0,message:"请输入机构简称",trigger:["blur"]}},{default:t(()=>[l(E,{placeholder:"请输入",modelValue:a(n).shortName,"onUpdate:modelValue":e[8]||(e[8]=o=>a(n).shortName=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(v,{span:9},{default:t(()=>[l(Y,{action:`${a(H)}/file/upload`,headers:{Authorization:a(re)()},"show-file-list":!1,onSuccess:O,accept:"image/*"},{default:t(()=>[a(n).img?(s(),B("img",{key:0,src:`${a(H)}/file/stream/${a(n).img}`,class:"depart-img"},null,8,Le)):(s(),B("div",Pe,[l(N,{size:16,name:"el-icon-Plus"}),e[25]||(e[25]=m("span",null,"上传照片",-1))]))]),_:1},8,["action","headers"])]),_:1})]),_:1}),l(x,null,{default:t(()=>[l(v,{span:12},{default:t(()=>[l(f,{label:"机构编码",prop:"code",rules:{required:!0,message:"请输入机构编码",trigger:["blur"]}},{default:t(()=>[l(E,{placeholder:"机构编码 430",modelValue:a(n).code,"onUpdate:modelValue":e[9]||(e[9]=o=>a(n).code=o)},null,8,["modelValue"])]),_:1})]),_:1}),l(v,{span:12},{default:t(()=>[l(f,{label:"排序",prop:"orderNo"},{default:t(()=>[l(E,{placeholder:"机构排序号,数字越小越靠前",modelValue:a(n).orderNo,"onUpdate:modelValue":e[10]||(e[10]=o=>a(n).orderNo=o),type:"number"},null,8,["modelValue"]),e[26]||(e[26]=m("p",null,"机构排序号,数字越小越靠前",-1))]),_:1,__:[26]})]),_:1})]),_:1}),l(f,{label:"状态",prop:"status",rules:{required:!0,message:"请选择状态",trigger:["blur"]}},{default:t(()=>[l(Z,{modelValue:a(n).status,"onUpdate:modelValue":e[11]||(e[11]=o=>a(n).status=o),"inline-prompt":"","active-text":"启用","inactive-text":"禁用","active-value":a(V).ENABLE,"inactive-value":a(V).DISABLE},null,8,["modelValue","active-value","inactive-value"])]),_:1})]),_:1},8,["model"]),m("footer",qe,[l(p,{onClick:e[12]||(e[12]=o=>g.value=!1)},{default:t(()=>e[27]||(e[27]=[u("取消",-1)])),_:1,__:[27]}),l(p,{type:"primary",onClick:K},{default:t(()=>e[28]||(e[28]=[u("确定",-1)])),_:1,__:[28]})])]),_:1},8,["title","modelValue"])],64)}}},rl=le(Fe,[["__scopeId","data-v-811c15b5"]]);export{rl as default}; diff --git a/invest/assets/DepartMaping.1762932289438.js b/invest/assets/DepartMaping.1762932289438.js deleted file mode 100644 index 78ac35c..0000000 --- a/invest/assets/DepartMaping.1762932289438.js +++ /dev/null @@ -1 +0,0 @@ -import{B as E,t as ae,v as oe,E as ne,b as re,c as se,M as ue,x as de,z}from"./index.1762932289438.js";/* empty css */import{E as ie}from"./overlay.1762932289438.js";import{E as pe,a as me}from"./form-item.1762932289438.js";import{E as _e}from"./pagination.1762932289438.js";import"./tag.1762932289438.js";import{E as ce,a as fe}from"./select.1762932289438.js";import"./popper.1762932289438.js";/* empty css */import{E as ve,a as ge}from"./table-column.1762932289438.js";/* empty css */import{E as be,a as Ve}from"./col.1762932289438.js";import{_ as xe}from"./depart-tree-select.1762932289438.js";import{u as ye}from"./catch.1762932289438.js";import{r as i,t as we,s as Ee,l as c,o as d,q as s,J as t,P as ke,H as o,F as I,ab as R,u as a,G as S,e as A,L as Ce,V as g,D as U}from"./vue.1762932289438.js";import"./echarts.1762932289438.js";import"./text.1762932289438.js";import"./tree-select.1762932289438.js";import"./dict.17629322894382.js";import"./depart.17629322894382.js";function G(_,D){return E.get({url:"/depart/maping/"+_,query:D})}function Me(_){return E.post({url:"/depart/maping",body:_})}function ze(_){return E.put({url:"/depart/maping",body:_})}function Ie(_){return E.del({url:"/depart/maping/"+_})}const Se={class:"container"},Ue={class:"form-row flex"},De={class:"text-center"},Ne={class:"flex wrap query-box"},qe={class:"form-row flex"},Te={class:"flex wrap query-box"},Be={style:{width:"280px"}},he={class:"flex between mt-20 mb-26"},Le={key:1},$e={class:"table-container"},Pe={key:0},Fe={key:1},Re={key:2},Ae={class:"flex end mt-8"},Ge={class:"flex end mt-40"},il={__name:"DepartMaping",setup(_){const N=ye().getDicts(["departMappingSource"]),u=i("情指行"),n=i({current:1,size:10,activeMaping:"all"}),q=i([]),T=i(0),k=i(!0),C=i(0);function p(){k.value=!0,G(u.value,n.value).then(m=>{q.value=m.records,T.value=m.total,k.value=!1}),G(u.value,{activeMaping:"noMaping"}).then(m=>{C.value=m.total})}function H(){n.value={current:1,size:10,activeMaping:"all"},p()}we(u,()=>{p()}),Ee(()=>{p()});const f=i(!1),V=i("add"),r=i({}),B=i();function J(){r.value={source:u.value},f.value=!0,V.value="add"}function O(m){r.value={...m},r.value.source=u.value,f.value=!0,V.value="edit"}async function j(m){await z.confirm("确定要删除该数据?"),await Ie(m.id),p(),z.msgSuccess("删除成功")}async function K(){await B.value.validate(),V.value==="add"?await Me(r.value):await ze(r.value),f.value=!1,r.value={source:u.value},p(),z.msgSuccess("操作成功")}return(m,e)=>{const M=ae,h=oe,x=ne,L=be,$=xe,y=fe,P=ce,Q=Ve,F=re,v=se,W=ue,b=ve,X=ge,Y=_e,w=me,Z=pe,ee=ie,le=de;return d(),c(I,null,[s("div",Se,[t(h,{modelValue:a(u),"onUpdate:modelValue":e[0]||(e[0]=l=>A(u)?u.value=l:null),type:"card"},{default:o(()=>[(d(!0),c(I,null,R(a(N).departMappingSource,l=>(d(),S(M,{key:l,label:l.dictLabel,name:l.dictValue},null,8,["label","name"]))),128))]),_:1},8,["modelValue"]),s("header",null,[t(Q,null,{default:o(()=>[t(L,{span:12},{default:o(()=>[s("div",Ue,[s("label",De,Ce(a(u)),1),s("div",Ne,[t(x,{placeholder:"单位编码",modelValue:a(n).externalId,"onUpdate:modelValue":e[1]||(e[1]=l=>a(n).externalId=l),clearable:"",style:{width:"200px"}},null,8,["modelValue"]),t(x,{placeholder:"单位名称",modelValue:a(n).externalName,"onUpdate:modelValue":e[2]||(e[2]=l=>a(n).externalName=l),clearable:"",style:{width:"200px"}},null,8,["modelValue"])])])]),_:1}),t(L,{span:12},{default:o(()=>[s("div",qe,[e[14]||(e[14]=s("label",{class:"text-center"},"数字督察",-1)),s("div",Te,[s("div",Be,[t($,{modelValue:a(n).internalId,"onUpdate:modelValue":e[3]||(e[3]=l=>a(n).internalId=l),placeholder:"请选择机构"},null,8,["modelValue"])]),t(P,{style:{width:"200px"},placeholder:"单位层级",modelValue:a(n).level,"onUpdate:modelValue":e[4]||(e[4]=l=>a(n).level=l)},{default:o(()=>[t(y,{value:"2",label:"二级单位"}),t(y,{value:"3",label:"三级单位"}),t(y,{value:"4",label:"四级单位"})]),_:1},8,["modelValue"])])])]),_:1})]),_:1}),s("div",he,[t(v,{type:"primary",onClick:J},{icon:o(()=>[t(F,{name:"el-icon-Plus"})]),default:o(()=>[e[15]||(e[15]=g(" 新增",-1))]),_:1,__:[15]}),s("div",null,[t(v,{type:"primary",onClick:p},{icon:o(()=>[t(F,{name:"el-icon-Search"})]),default:o(()=>[e[16]||(e[16]=g(" 查询",-1))]),_:1,__:[16]}),t(v,{onClick:H},{default:o(()=>e[17]||(e[17]=[g("重置",-1)])),_:1,__:[17]})])])]),e[21]||(e[21]=s("p",null,null,-1)),t(h,{modelValue:a(n).activeMaping,"onUpdate:modelValue":e[5]||(e[5]=l=>a(n).activeMaping=l),onTabChange:p},{default:o(()=>[t(M,{label:"全部",name:"all"}),t(M,{label:"未映射",name:"noMaping"},{label:o(()=>[a(C)>0?(d(),S(W,{key:0,value:a(C)},{default:o(()=>e[18]||(e[18]=[s("span",null,"未映射",-1)])),_:1,__:[18]},8,["value"])):(d(),c("span",Le,"未映射"))]),_:1})]),_:1},8,["modelValue"]),ke((d(),c("div",$e,[t(X,{data:a(q)},{default:o(()=>[t(b,{label:`${a(u)}单位编码`,prop:"externalId",width:"150"},null,8,["label"]),t(b,{label:`${a(u)}单位名称`,prop:"externalName"},null,8,["label"]),t(b,{label:"数字督察单位",prop:"internalName"}),t(b,{label:"单位层级",prop:"level",width:"100",align:"center"},{default:o(({row:l})=>[l.level===2?(d(),c("span",Pe,"二级单位")):U("",!0),l.level===3?(d(),c("span",Fe,"三级单位")):U("",!0),l.level===4?(d(),c("span",Re,"四级单位")):U("",!0)]),_:1}),t(b,{label:"最后修改时间",prop:"updateTime",width:"160"}),t(b,{label:"操作",width:"160"},{default:o(({row:l})=>[t(v,{type:"primary",link:"",onClick:te=>O(l)},{default:o(()=>e[19]||(e[19]=[g("编辑",-1)])),_:2,__:[19]},1032,["onClick"]),t(v,{type:"danger",link:"",onClick:te=>j(l)},{default:o(()=>e[20]||(e[20]=[g("删除",-1)])),_:2,__:[20]},1032,["onClick"])]),_:1})]),_:1},8,["data"])])),[[le,a(k)]]),s("div",Ae,[t(Y,{onSizeChange:p,onCurrentChange:p,"page-sizes":[10,20,50],"page-size":a(n).size,"onUpdate:pageSize":e[6]||(e[6]=l=>a(n).size=l),"current-page":a(n).current,"onUpdate:currentPage":e[7]||(e[7]=l=>a(n).current=l),layout:"total, sizes, prev, pager, next",total:a(T)},null,8,["page-size","current-page","total"])])]),t(ee,{modelValue:a(f),"onUpdate:modelValue":e[13]||(e[13]=l=>A(f)?f.value=l:null),title:a(V)==="add"?"新增机构映射":"编辑机构映射",width:"600"},{default:o(()=>[t(Z,{"label-width":140,model:a(r),ref_key:"fomrRef",ref:B},{default:o(()=>[t(w,{label:"来源",prop:"source",rules:{required:!0,message:"请选择",trigger:["blur"]}},{default:o(()=>[t(P,{modelValue:a(r).source,"onUpdate:modelValue":e[8]||(e[8]=l=>a(r).source=l),clearable:"",style:{width:"280px"}},{default:o(()=>[(d(!0),c(I,null,R(a(N).departMappingSource,l=>(d(),S(y,{key:l,label:l.dictLabel,value:l.dictValue},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),t(w,{label:"单位编码",prop:"externalId",rules:{required:!0,message:"请输入",trigger:["blur"]}},{default:o(()=>[t(x,{modelValue:a(r).externalId,"onUpdate:modelValue":e[9]||(e[9]=l=>a(r).externalId=l),clearable:"",style:{width:"280px"},placeholder:"请输入"},null,8,["modelValue"])]),_:1}),t(w,{label:"单位名称",prop:"externalName",rules:{required:!0,message:"请输入",trigger:["blur"]}},{default:o(()=>[t(x,{modelValue:a(r).externalName,"onUpdate:modelValue":e[10]||(e[10]=l=>a(r).externalName=l),clearable:"",style:{width:"280px"},placeholder:"请输入"},null,8,["modelValue"])]),_:1}),t(w,{label:"数字督察单位",prop:"internalId"},{default:o(()=>[t($,{modelValue:a(r).internalId,"onUpdate:modelValue":e[11]||(e[11]=l=>a(r).internalId=l),placeholder:"请选择",style:{width:"280px"}},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),s("footer",Ge,[t(v,{onClick:e[12]||(e[12]=l=>f.value=!1),size:"large"},{default:o(()=>e[22]||(e[22]=[g("取消",-1)])),_:1,__:[22]}),t(v,{type:"primary",onClick:K,size:"large"},{default:o(()=>e[23]||(e[23]=[g("确定",-1)])),_:1,__:[23]})])]),_:1},8,["modelValue","title"])],64)}}};export{il as default}; diff --git a/invest/assets/Dict.1762932289438.css b/invest/assets/Dict.1762932289438.css deleted file mode 100644 index b5ffeee..0000000 --- a/invest/assets/Dict.1762932289438.css +++ /dev/null @@ -1 +0,0 @@ -.el-page-header.is-contentful .el-page-header__main{border-top:.00521rem solid var(--el-border-color-light);margin-top:.08333rem}.el-page-header__header{display:flex;align-items:center;justify-content:space-between;line-height:.125rem}.el-page-header__left{display:flex;align-items:center;margin-right:.20833rem;position:relative}.el-page-header__back{display:flex;align-items:center;cursor:pointer}.el-page-header__left .el-divider--vertical{margin:0 .08333rem}.el-page-header__icon{font-size:.08333rem;margin-right:.05208rem;display:flex;align-items:center}.el-page-header__icon .el-icon{font-size:inherit}.el-page-header__title{font-size:.07292rem;font-weight:500}.el-page-header__content{font-size:.09375rem;color:var(--el-text-color-primary)}.el-page-header__breadcrumb{margin-bottom:.08333rem} diff --git a/invest/assets/Dict.1762932289438.js b/invest/assets/Dict.1762932289438.js deleted file mode 100644 index c3cedbe..0000000 --- a/invest/assets/Dict.1762932289438.js +++ /dev/null @@ -1 +0,0 @@ -import{e as pe,N as me,O as fe,k as ce,P as ve,l as _e,G as be,w as ye,E as ge,b as ke,c as Ve,z as R}from"./index.1762932289438.js";import{E as Ce}from"./overlay.1762932289438.js";import{E as Ee}from"./switch.1762932289438.js";import{E as De}from"./divider.1762932289438.js";import{E as we}from"./pagination.1762932289438.js";import{E as Te}from"./tag.1762932289438.js";import"./select.1762932289438.js";import"./popper.1762932289438.js";/* empty css */import{E as $e,a as ze}from"./table-column.1762932289438.js";import{a as Se,E as Ue}from"./form-item.1762932289438.js";import{a as Ne,E as Pe}from"./col.1762932289438.js";import{l as qe,d as Fe,a as He,b as Re,c as Be,u as Ie,e as Le,f as xe}from"./dict.17629322894382.js";import{k as X,l as D,o as m,D as N,q as r,E as g,u as t,m as z,J as l,G as E,H as o,I as Ae,V as s,L as I,r as i,t as Ge,e as W,F as Me}from"./vue.1762932289438.js";import"./echarts.1762932289438.js";const Je=pe({icon:{type:fe,default:()=>me},title:String,content:{type:String,default:""}}),Oe={back:()=>!0},Qe=X({name:"ElPageHeader"}),je=X({...Qe,props:Je,emits:Oe,setup(Y,{emit:P}){const{t:v}=ve(),p=_e("page-header");function y(){P("back")}return(d,q)=>(m(),D("div",{class:g([t(p).b(),{[t(p).m("has-breadcrumb")]:!!d.$slots.breadcrumb,[t(p).m("has-extra")]:!!d.$slots.extra,[t(p).is("contentful")]:!!d.$slots.default}])},[d.$slots.breadcrumb?(m(),D("div",{key:0,class:g(t(p).e("breadcrumb"))},[z(d.$slots,"breadcrumb")],2)):N("v-if",!0),r("div",{class:g(t(p).e("header"))},[r("div",{class:g(t(p).e("left"))},[r("div",{class:g(t(p).e("back")),role:"button",tabindex:"0",onClick:y},[d.icon||d.$slots.icon?(m(),D("div",{key:0,"aria-label":d.title||t(v)("el.pageHeader.title"),class:g(t(p).e("icon"))},[z(d.$slots,"icon",{},()=>[d.icon?(m(),E(t(be),{key:0},{default:o(()=>[(m(),E(Ae(d.icon)))]),_:1})):N("v-if",!0)])],10,["aria-label"])):N("v-if",!0),r("div",{class:g(t(p).e("title"))},[z(d.$slots,"title",{},()=>[s(I(d.title||t(v)("el.pageHeader.title")),1)])],2)],2),l(t(De),{direction:"vertical"}),r("div",{class:g(t(p).e("content"))},[z(d.$slots,"content",{},()=>[s(I(d.content),1)])],2)],2),d.$slots.extra?(m(),D("div",{key:0,class:g(t(p).e("extra"))},[z(d.$slots,"extra")],2)):N("v-if",!0)],2),d.$slots.default?(m(),D("div",{key:1,class:g(t(p).e("main"))},[z(d.$slots,"default")],2)):N("v-if",!0)],2))}});var Ke=ce(je,[["__file","page-header.vue"]]);const We=ye(Ke),Xe={key:0,class:"container"},Ye={class:"mb-25 flex between"},Ze={class:"table-container"},he={class:"flex end mt-8"},el={key:1,class:"container"},ll={class:"mb-25 flex between"},tl={class:"table-container"},al={class:"flex end mt-8"},ol={class:"flex end"},nl={class:"flex end"},Vl={__name:"Dict",setup(Y){const P=i([]),v=i({current:1,size:10}),p=i(0);function y(){qe(v.value).then(n=>{P.value=n.records,p.value=n.total})}y();function d(){v.value={current:1,size:10},y()}const q=i(!1),w=i({});function Z(n){q.value=!0,w.value=n,T()}const L=i([]),x=i(0),S=i({current:1,size:10});function T(){Re(S.value,w.value.dictType).then(n=>{L.value=n.records,x.value=n.total})}const V=i(!1),U=i("add"),f=i({status:"0"}),A=i(null);Ge(U,n=>{n==="add"&&(f.value={status:"0"})});const h={dictName:[{required:!0,message:"请输入字典名称",trigger:["blur","input"]}],dictType:[{required:!0,message:"请输入字典类型",trigger:["blur","input"]}]};function ee(){V.value=!0,U.value="add"}function le(n){V.value=!0,U.value="edit",f.value={...n}}async function te(n){await R.confirm(`确认删除字典 ${n.dictName} ?`),await Fe(n.dictId),y()}function ae(){A.value.validate(n=>{n&&(U.value==="add"?Be(f.value).then(()=>{V.value=!1,f.value={status:"0"},y()}):Ie(f.value).then(()=>{V.value=!1,y()}))})}const C=i(!1),F=i("add"),G=i(null),u=i({status:"0"}),oe={};function ne(){C.value=!0,F.value="add"}function de(){G.value.validate(n=>{n&&(u.value.dictType=w.value.dictType,F.value==="add"?Le(u.value,w.value.dictType).then(()=>{C.value=!1,u.value={status:"0"},T()}):xe(u.value,w.value.dictType).then(()=>{C.value=!1,u.value={status:"0"},T()}),R.msgSuccess("操作成功"))})}function se(n){F.value="edit",u.value=n,C.value=!0}async function ue(n){await R.confirm("确定要删除?"),await He(n,w.value.dictType),R.msgSuccess("删除成功"),T()}return i(null),(n,e)=>{const k=ge,b=Se,M=Pe,ie=Ne,B=Ue,J=ke,_=Ve,c=$e,$=Te,O=ze,Q=we,re=We,j=Ee,K=Ce;return m(),D(Me,null,[t(q)?(m(),D("div",el,[r("header",null,[l(re,{onBack:e[4]||(e[4]=a=>q.value=!1),class:"mb-20"},{content:o(()=>[r("span",null,I(t(w).dictName),1)]),_:1}),r("div",ll,[l(_,{type:"primary",onClick:ne},{icon:o(()=>[l(J,{name:"el-icon-Plus"})]),default:o(()=>[e[28]||(e[28]=s(" 新增字典数据",-1))]),_:1,__:[28]})])]),r("div",tl,[l(O,{data:t(L)},{default:o(()=>[l(c,{label:"字典标签",prop:"dictLabel",width:"200"}),l(c,{label:"字典值",prop:"dictValue",width:"200"}),l(c,{label:"备注",prop:"remark"}),l(c,{label:"是否默认",width:"120",align:"center"},{default:o(({row:a})=>[a.isDefault==="1"?(m(),E($,{key:0},{default:o(()=>e[29]||(e[29]=[s("是",-1)])),_:1,__:[29]})):(m(),E($,{key:1},{default:o(()=>e[30]||(e[30]=[s("否",-1)])),_:1,__:[30]}))]),_:1}),l(c,{label:"状态",width:"120",align:"center"},{default:o(({row:a})=>[a.status==="0"?(m(),E($,{key:0,type:"success"},{default:o(()=>e[31]||(e[31]=[s("正常",-1)])),_:1,__:[31]})):(m(),E($,{key:1,type:"danger"},{default:o(()=>e[32]||(e[32]=[s("禁用",-1)])),_:1,__:[32]}))]),_:1}),l(c,{label:"排序",prop:"dictSort",width:"120"}),l(c,{label:"最后更新时间",prop:"updateTime",width:"200"}),l(c,{label:"操作",width:"200"},{default:o(({row:a})=>[l(_,{type:"primary",link:"",onClick:H=>se(a)},{default:o(()=>e[33]||(e[33]=[s("编辑",-1)])),_:2,__:[33]},1032,["onClick"]),l(_,{type:"danger",link:"",onClick:H=>ue(a.dictCode)},{default:o(()=>e[34]||(e[34]=[s("删除",-1)])),_:2,__:[34]},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),r("div",al,[l(Q,{onSizeChange:T,onCurrentChange:T,"page-sizes":[10,20,50],"page-size":t(S).size,"onUpdate:pageSize":e[5]||(e[5]=a=>t(S).size=a),"current-page":t(S).current,"onUpdate:currentPage":e[6]||(e[6]=a=>t(S).current=a),layout:"total, sizes, prev, pager, next",total:t(x)},null,8,["page-size","current-page","total"])])])):(m(),D("div",Xe,[r("header",null,[l(B,{"label-width":114},{default:o(()=>[l(ie,null,{default:o(()=>[l(M,{span:6},{default:o(()=>[l(b,{label:"字典名称"},{default:o(()=>[l(k,{placeholder:"请输入字典名称",modelValue:t(v).dictName,"onUpdate:modelValue":e[0]||(e[0]=a=>t(v).dictName=a)},null,8,["modelValue"])]),_:1})]),_:1}),l(M,{span:6},{default:o(()=>[l(b,{label:"字典类型"},{default:o(()=>[l(k,{placeholder:"请输入字典类型",modelValue:t(v).dictType,"onUpdate:modelValue":e[1]||(e[1]=a=>t(v).dictType=a)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),r("div",Ye,[l(_,{type:"primary",onClick:ee},{icon:o(()=>[l(J,{name:"el-icon-Plus"})]),default:o(()=>[e[20]||(e[20]=s(" 新增字典",-1))]),_:1,__:[20]}),r("div",null,[l(_,{type:"primary",onClick:y},{default:o(()=>e[21]||(e[21]=[s("查询",-1)])),_:1,__:[21]}),l(_,{onClick:d},{default:o(()=>e[22]||(e[22]=[s("重置",-1)])),_:1,__:[22]})])])]),r("div",Ze,[l(O,{data:t(P)},{default:o(()=>[l(c,{label:"字典名称",prop:"dictName"}),l(c,{label:"字典类型",prop:"dictType"}),l(c,{label:"备注",prop:"remark"}),l(c,{label:"状态"},{default:o(({row:a})=>[a.status==="0"?(m(),E($,{key:0,type:"success"},{default:o(()=>e[23]||(e[23]=[s("正常",-1)])),_:1,__:[23]})):(m(),E($,{key:1,type:"danger"},{default:o(()=>e[24]||(e[24]=[s("禁用",-1)])),_:1,__:[24]}))]),_:1}),l(c,{label:"最后更新时间",prop:"updateTime"}),l(c,{label:"操作"},{default:o(({row:a})=>[l(_,{type:"primary",link:"",onClick:H=>Z(a)},{default:o(()=>e[25]||(e[25]=[s("数据管理",-1)])),_:2,__:[25]},1032,["onClick"]),l(_,{type:"primary",link:"",onClick:H=>le(a)},{default:o(()=>e[26]||(e[26]=[s("编辑",-1)])),_:2,__:[26]},1032,["onClick"]),l(_,{type:"danger",link:"",onClick:H=>te(a)},{default:o(()=>e[27]||(e[27]=[s("删除",-1)])),_:2,__:[27]},1032,["onClick"])]),_:1})]),_:1},8,["data"])]),r("div",he,[l(Q,{onSizeChange:y,onCurrentChange:y,"page-sizes":[10,20,50],"page-size":t(v).size,"onUpdate:pageSize":e[2]||(e[2]=a=>t(v).size=a),"current-page":t(v).current,"onUpdate:currentPage":e[3]||(e[3]=a=>t(v).current=a),layout:"total, sizes, prev, pager, next",total:t(p)},null,8,["page-size","current-page","total"])])])),l(K,{modelValue:t(V),"onUpdate:modelValue":e[12]||(e[12]=a=>W(V)?V.value=a:null),title:t(U)==="add"?"新增字典":"编辑字典",width:"600"},{default:o(()=>[l(B,{"label-width":"120",ref_key:"typeFormRef",ref:A,model:t(f),rules:h},{default:o(()=>[l(b,{label:"字典名称",required:""},{default:o(()=>[l(k,{modelValue:t(f).dictName,"onUpdate:modelValue":e[7]||(e[7]=a=>t(f).dictName=a),placeholder:"请输入字典名称",clearable:""},null,8,["modelValue"])]),_:1}),l(b,{label:"字典类型",required:""},{default:o(()=>[l(k,{modelValue:t(f).dictType,"onUpdate:modelValue":e[8]||(e[8]=a=>t(f).dictType=a),placeholder:"请输入字典类型",clearable:""},null,8,["modelValue"])]),_:1}),l(b,{label:"备注"},{default:o(()=>[l(k,{modelValue:t(f).remark,"onUpdate:modelValue":e[9]||(e[9]=a=>t(f).remark=a),placeholder:"请输入备注",clearable:"",type:"textarea"},null,8,["modelValue"])]),_:1}),l(b,{label:"状态",required:""},{default:o(()=>[l(j,{modelValue:t(f).status,"onUpdate:modelValue":e[10]||(e[10]=a=>t(f).status=a),"active-value":"0","inactive-value":"1"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),r("footer",ol,[l(_,{onClick:e[11]||(e[11]=a=>V.value=!1)},{default:o(()=>e[35]||(e[35]=[s("取消",-1)])),_:1,__:[35]}),l(_,{type:"primary",onClick:ae},{default:o(()=>e[36]||(e[36]=[s("确定",-1)])),_:1,__:[36]})])]),_:1},8,["modelValue","title"]),l(K,{modelValue:t(C),"onUpdate:modelValue":e[19]||(e[19]=a=>W(C)?C.value=a:null),title:t(F)==="add"?"新增字典":"编辑字典",width:"600"},{default:o(()=>[l(B,{"label-width":"120",ref_key:"dataFormRef",ref:G,model:t(u),rules:oe},{default:o(()=>[l(b,{label:"字典标签",required:""},{default:o(()=>[l(k,{modelValue:t(u).dictLabel,"onUpdate:modelValue":e[13]||(e[13]=a=>t(u).dictLabel=a),placeholder:"请输入字典标签",clearable:""},null,8,["modelValue"])]),_:1}),l(b,{label:"字典值",required:""},{default:o(()=>[l(k,{modelValue:t(u).dictValue,"onUpdate:modelValue":e[14]||(e[14]=a=>t(u).dictValue=a),placeholder:"请输入字典值",clearable:""},null,8,["modelValue"])]),_:1}),l(b,{label:"备注"},{default:o(()=>[l(k,{modelValue:t(u).remark,"onUpdate:modelValue":e[15]||(e[15]=a=>t(u).remark=a),placeholder:"请输入备注",clearable:"",type:"textarea"},null,8,["modelValue"])]),_:1}),l(b,{label:"排序"},{default:o(()=>[l(k,{modelValue:t(u).dictSort,"onUpdate:modelValue":e[16]||(e[16]=a=>t(u).dictSort=a),placeholder:"请输入序号",clearable:"",type:"number"},null,8,["modelValue"])]),_:1}),l(b,{label:"状态",required:""},{default:o(()=>[l(j,{modelValue:t(u).status,"onUpdate:modelValue":e[17]||(e[17]=a=>t(u).status=a),"active-value":"0","inactive-value":"1"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"]),r("footer",nl,[l(_,{onClick:e[18]||(e[18]=a=>C.value=!1)},{default:o(()=>e[37]||(e[37]=[s("取消",-1)])),_:1,__:[37]}),l(_,{type:"primary",onClick:de},{default:o(()=>e[38]||(e[38]=[s("确定",-1)])),_:1,__:[38]})])]),_:1},8,["modelValue","title"])],64)}}};export{Vl as default}; diff --git a/invest/assets/HandleResultMaping.1762932289438.js b/invest/assets/HandleResultMaping.1762932289438.js deleted file mode 100644 index 60c47eb..0000000 --- a/invest/assets/HandleResultMaping.1762932289438.js +++ /dev/null @@ -1 +0,0 @@ -import{B as C,t as Y,v as Z,E as ee,b as le,c as te,x as ae,z as h}from"./index.1762932289438.js";/* empty css */import{E as ne}from"./overlay.1762932289438.js";import{E as oe,a as ue}from"./form-item.1762932289438.js";import{E as se}from"./pagination.1762932289438.js";import"./tag.1762932289438.js";import{E as re,a as de}from"./select.1762932289438.js";import"./popper.1762932289438.js";/* empty css */import{E as ie,a as pe}from"./table-column.1762932289438.js";import{E as me,a as ce}from"./col.1762932289438.js";import{u as _e}from"./catch.1762932289438.js";import{r as p,t as fe,s as ve,l as f,o as r,q as s,J as t,H as n,F as b,ab as x,u as a,P as be,L as ge,G as E,V as v,D as L,e as xe}from"./vue.1762932289438.js";import"./echarts.1762932289438.js";import"./dict.17629322894382.js";import"./depart.17629322894382.js";function ye(d){return C.get({url:"/handleResultMaping",query:d})}function Ve(d){return C.post({url:"/handleResultMaping",body:d})}function we(d){return C.put({url:"/handleResultMaping",body:d})}function ke(d){return C.del({url:"/handleResultMaping/"+d})}const Ee={class:"container"},Ce={class:"container"},Re={class:"form-row flex"},ze={class:"text-center"},Te={class:"flex wrap query-box"},he={class:"form-row flex"},Me={class:"flex wrap query-box"},Ne={class:"flex between mt-20 mb-26"},Se={class:"table-container"},Ue={class:"flex end mt-8"},qe={class:"flex end mt-40"},Ye={__name:"HandleResultMaping",setup(d){const R=_e().getDicts(["handleResult"]),u=p({current:1,size:10,source:"局长信箱"});fe(()=>u.value.source,()=>{i()});const M=p([]),N=p(0),z=p(!1);function i(){z.value=!0,ye(u.value).then(c=>{M.value=c.records,N.value=c.total,z.value=!1})}function B(){u.value={current:1,size:10},i()}ve(()=>{i()});const m=p(!1),y=p("add"),o=p({}),S=p();function H(){o.value={internalId:""},m.value=!0,y.value="add"}function P(c){o.value={...c},m.value=!0,y.value="edit"}async function F(c){await h.confirm("确定要删除该数据?"),await ke(c.id),i(),h.msgSuccess("删除成功")}async function $(){await S.value.validate(),y.value==="add"?await Ve(o.value):await we(o.value),m.value=!1,o.value={},i(),h.msgSuccess("操作成功")}const U=[{text:"局长信箱",value:"局长信箱"},{text:"12337",value:"12337"}],A=[{text:"第一种形态",value:"第一种形态"},{text:"第二种形态",value:"第二种形态"},{text:"第三种形态",value:"第三种形态"},{text:"第四种形态",value:"第四种形态"}];return(c,l)=>{const G=Y,J=Z,q=ee,I=me,V=de,w=re,O=ce,D=le,_=te,g=ie,j=pe,K=se,k=ue,Q=oe,W=ne,X=ae;return r(),f(b,null,[s("div",Ee,[t(J,{modelValue:a(u).source,"onUpdate:modelValue":l[0]||(l[0]=e=>a(u).source=e),type:"card"},{default:n(()=>[(r(),f(b,null,x(U,e=>t(G,{key:e,label:e.text,name:e.value},null,8,["label","name"])),64))]),_:1},8,["modelValue"]),s("div",Ce,[s("header",null,[t(O,null,{default:n(()=>[t(I,{span:12},{default:n(()=>[s("div",Re,[s("label",ze,ge(a(u).source),1),s("div",Te,[t(q,{placeholder:"处理结果",modelValue:a(u).originId,"onUpdate:modelValue":l[1]||(l[1]=e=>a(u).originId=e),clearable:"",style:{width:"280px"}},null,8,["modelValue"])])])]),_:1}),t(I,{span:12},{default:n(()=>[s("div",he,[l[12]||(l[12]=s("label",{class:"text-center"},"数字督察",-1)),s("div",Me,[t(w,{modelValue:a(u).handleResultCode,"onUpdate:modelValue":l[2]||(l[2]=e=>a(u).handleResultCode=e),style:{width:"280px"},clearable:""},{default:n(()=>[(r(!0),f(b,null,x(a(R).handleResult,e=>(r(),E(V,{key:e.dictCode,value:e.dictValue,label:e.dictLabel},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])])])]),_:1})]),_:1}),s("div",Ne,[t(_,{type:"primary",onClick:H},{icon:n(()=>[t(D,{name:"el-icon-Plus"})]),default:n(()=>[l[13]||(l[13]=v(" 新增",-1))]),_:1,__:[13]}),s("div",null,[t(_,{type:"primary",onClick:i},{icon:n(()=>[t(D,{name:"el-icon-Search"})]),default:n(()=>[l[14]||(l[14]=v(" 查询",-1))]),_:1,__:[14]}),t(_,{onClick:B},{default:n(()=>l[15]||(l[15]=[v("重置",-1)])),_:1,__:[15]})])])]),be((r(),f("div",Se,[t(j,{data:a(M)},{default:n(()=>[a(u).source==="12337"?(r(),E(g,{key:0,label:"处理结论形态",prop:"externalType"})):L("",!0),t(g,{label:"处理结果",prop:"externalName"}),t(g,{label:"数字督察处理结果",prop:"internalName"}),t(g,{label:"最后修改时间",prop:"updateTime",width:"160"}),t(g,{label:"操作",width:"160"},{default:n(({row:e})=>[t(_,{type:"primary",link:"",onClick:T=>P(e)},{default:n(()=>l[16]||(l[16]=[v("编辑",-1)])),_:2,__:[16]},1032,["onClick"]),t(_,{type:"danger",link:"",onClick:T=>F(e)},{default:n(()=>l[17]||(l[17]=[v("删除",-1)])),_:2,__:[17]},1032,["onClick"])]),_:1})]),_:1},8,["data"])])),[[X,a(z)]]),s("div",Ue,[t(K,{onSizeChange:i,onCurrentChange:i,"page-sizes":[10,20,50],"page-size":a(u).size,"onUpdate:pageSize":l[3]||(l[3]=e=>a(u).size=e),"current-page":a(u).current,"onUpdate:currentPage":l[4]||(l[4]=e=>a(u).current=e),layout:"total, sizes, prev, pager, next",total:a(N)},null,8,["page-size","current-page","total"])])])]),t(W,{modelValue:a(m),"onUpdate:modelValue":l[11]||(l[11]=e=>xe(m)?m.value=e:null),title:a(y)==="add"?"新增处理结果映射":"编辑处理结果映射",width:"600"},{default:n(()=>[t(Q,{"label-width":140,model:a(o),ref_key:"fomrRef",ref:S},{default:n(()=>[t(k,{label:"来源",prop:"source",rules:{required:!0,message:"请选择"}},{default:n(()=>[t(w,{modelValue:a(o).source,"onUpdate:modelValue":l[5]||(l[5]=e=>a(o).source=e),clearable:"",style:{width:"280px"}},{default:n(()=>[(r(),f(b,null,x(U,e=>t(V,{key:e,label:e.text,value:e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1}),t(k,{label:"处理结果",prop:"externalName",rules:{required:!0,message:"请输入",trigger:["blur"]}},{default:n(()=>[t(q,{modelValue:a(o).externalName,"onUpdate:modelValue":l[6]||(l[6]=e=>a(o).externalName=e),clearable:"",style:{width:"280px"},placeholder:"请输入"},null,8,["modelValue"])]),_:1}),a(o).source==="12337"?(r(),E(k,{key:0,label:"处理结论形态",prop:"externalType",rules:{required:!0,message:"请选择",trigger:["blur"]}},{default:n(()=>[t(w,{modelValue:a(o).externalType,"onUpdate:modelValue":l[7]||(l[7]=e=>a(o).externalType=e),clearable:"",style:{width:"280px"}},{default:n(()=>[(r(),f(b,null,x(A,e=>t(V,{key:e,label:e.text,value:e.value},null,8,["label","value"])),64))]),_:1},8,["modelValue"])]),_:1})):L("",!0),t(k,{label:"数字督察处理结果",prop:"internalId",rules:{required:!0,message:"请输入",trigger:["blur"]}},{default:n(()=>[t(w,{modelValue:a(o).internalId,"onUpdate:modelValue":l[8]||(l[8]=e=>a(o).internalId=e),onChange:l[9]||(l[9]=e=>{a(o).internalName=a(R).handleResult.find(T=>e===T.dictValue).dictLabel}),style:{width:"280px"},clearable:""},{default:n(()=>[(r(!0),f(b,null,x(a(R).handleResult,e=>(r(),E(V,{key:e.dictCode,value:e.dictValue,label:e.dictLabel},null,8,["value","label"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),s("footer",qe,[t(_,{onClick:l[10]||(l[10]=e=>m.value=!1),size:"large"},{default:n(()=>l[18]||(l[18]=[v("取消",-1)])),_:1,__:[18]}),t(_,{type:"primary",onClick:$,size:"large"},{default:n(()=>l[19]||(l[19]=[v("确定",-1)])),_:1,__:[19]})])]),_:1},8,["modelValue","title"])],64)}}};export{Ye as default}; diff --git a/invest/assets/Holiday.1762932289438.css b/invest/assets/Holiday.1762932289438.css deleted file mode 100644 index a92a52c..0000000 --- a/invest/assets/Holiday.1762932289438.css +++ /dev/null @@ -1 +0,0 @@ -.calendar-month[data-v-bf2bfd17]{background:#fbfcff;box-shadow:inset 0 -.00521rem #e9ebfd;border:.00521rem solid #e9ebfd;margin-bottom:.10417rem;padding:.10417rem}.calendar-month header[data-v-bf2bfd17]{font-size:.09375rem;margin-bottom:.05208rem;font-weight:700}.calendar-cell[data-v-bf2bfd17]{width:14.26%;text-align:center;margin-bottom:.08333rem;font-weight:700}.calendar-cell .cell[data-v-bf2bfd17]{width:.1875rem;height:.1875rem;line-height:.1875rem;border-radius:50%}.calendar-cell.calendar-body .cell[disabled=false][data-v-bf2bfd17]:hover{background-color:#eee;cursor:pointer}.calendar-cell.calendar-body .cell[isHoliday=true][data-v-bf2bfd17]{background-color:#ff5722;color:#fff}.calendar-cell.calendar-body .cell[isHoliday=true][data-v-bf2bfd17]:hover{background-color:#f9825d}.calendar-cell.calendar-cell_week[data-v-bf2bfd17]{color:#777;font-family:SourceHanSansCN,SourceHanSansCN} diff --git a/invest/assets/Holiday.1762932289438.js b/invest/assets/Holiday.1762932289438.js deleted file mode 100644 index 8b4e228..0000000 --- a/invest/assets/Holiday.1762932289438.js +++ /dev/null @@ -1 +0,0 @@ -import{B as H,_ as x,Q as B}from"./index.1762932289438.js";import{E as F,a as V}from"./col.1762932289438.js";import{a as Y,E as q}from"./form-item.1762932289438.js";import{E as C}from"./date-picker.1762932289438.js";/* empty css */import"./popper.1762932289438.js";import{r as h,s as D,t as I,l as s,o as a,q as l,J as r,H as n,e as L,u as i,F as _,ab as u,G as N,L as d}from"./vue.1762932289438.js";import"./echarts.1762932289438.js";import"./dayjs.min.1762932289438.js";import"./index.17629322894389.js";function R(m){return H.get({url:`/holiday/${m}`})}const G={class:"container"},J={class:"calendar-month"},M={class:"calendar-week flex wrap"},P={class:"cell"},Q=["disabled","isHoliday"],S={__name:"Holiday",setup(m){const t=h(B().year()+""),p=h([]);function f(){R(t.value).then(c=>{p.value=c})}return D(()=>{f()}),I(t,()=>{f()}),(c,y)=>{const v=C,k=Y,b=q,E=F,w=V;return a(),s("div",G,[l("header",null,[r(b,{"label-width":120},{default:n(()=>[r(k,{label:"年份"},{default:n(()=>[r(v,{modelValue:i(t),"onUpdate:modelValue":y[0]||(y[0]=e=>L(t)?t.value=e:null),type:"year","value-format":"YYYY",placeholder:"请选择年份","disabled-date":e=>e.getFullYear()<2023},null,8,["modelValue","disabled-date"])]),_:1})]),_:1})]),l("div",null,[r(w,{gutter:20},{default:n(()=>[(a(!0),s(_,null,u(i(p),e=>(a(),N(E,{span:8,key:e.month},{default:n(()=>[l("div",J,[l("header",null,d(i(t))+"年"+d(e.month)+"月",1),l("div",M,[(a(!0),s(_,null,u(c.weeks,o=>(a(),s("div",{class:"calendar-cell calendar-cell_week flex center",key:o},[l("div",P,d(o),1)]))),128)),(a(!0),s(_,null,u(e.days,(o,g)=>(a(),s("div",{class:"calendar-cell flex center calendar-body",key:g},[l("div",{class:"cell",disabled:!o.day,isHoliday:o.flag},d(o.day),9,Q)]))),128))])])]),_:2},1024))),128))]),_:1})])])}}},Z=x(S,[["__scopeId","data-v-bf2bfd17"]]);export{Z as default}; diff --git a/invest/assets/Home.1762932289438.css b/invest/assets/Home.1762932289438.css deleted file mode 100644 index c9755ee..0000000 --- a/invest/assets/Home.1762932289438.css +++ /dev/null @@ -1 +0,0 @@ -.overall-item[data-v-324c7b7f]{background:#f7f8fb;padding:.14583rem 0;border-radius:.07813rem}.overall-item:hover .text[data-v-324c7b7f]{color:var(--primary-color);font-weight:700}.overall-item .number[data-v-324c7b7f]{font-size:.29167rem;font-weight:700;color:#162582}.overall-item .text[data-v-324c7b7f]{font-size:.125rem}.daily-item[data-v-324c7b7f]{width:50%;padding:.0625rem 0}.daily-item:hover span[data-v-324c7b7f]{color:var(--primary-color);font-weight:700}.daily-item .number[data-v-324c7b7f]{font-size:.19792rem;font-weight:700;color:var(--primary-color)}.daily-item span[data-v-324c7b7f]{font-size:.10417rem}.external-links-item[data-v-324c7b7f]{width:2.01042rem;height:.46875rem;line-height:.46875rem;font-size:.125rem;background:linear-gradient(180deg,#e9ebfd,#ebedff);border:.00521rem solid #19257d;color:var(--primary-color)} diff --git a/invest/assets/Home.1762932289438.js b/invest/assets/Home.1762932289438.js deleted file mode 100644 index 45267e7..0000000 --- a/invest/assets/Home.1762932289438.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as o}from"./index.1762932289438.js";import{l as e,o as c}from"./vue.1762932289438.js";import"./echarts.1762932289438.js";const t={},r={class:"container"};function s(n,_){return c(),e("div",r," 111 ")}const m=o(t,[["render",s],["__scopeId","data-v-324c7b7f"]]);export{m as default}; diff --git a/invest/assets/Information.1762932289438.css b/invest/assets/Information.1762932289438.css deleted file mode 100644 index 2d9ed1f..0000000 --- a/invest/assets/Information.1762932289438.css +++ /dev/null @@ -1 +0,0 @@ -.cardBody[data-v-ca133c86]{background-color:#f8f9ff} diff --git a/invest/assets/Information.1762932289438.js b/invest/assets/Information.1762932289438.js deleted file mode 100644 index 8d0fb51..0000000 --- a/invest/assets/Information.1762932289438.js +++ /dev/null @@ -1 +0,0 @@ -import{B as k,_ as le,E as oe,c as te,D as ae,F as U,G as ne,x as se,z as x}from"./index.1762932289438.js";/* empty css */import{r as re}from"./index.176293228943810.js";import{E as ue}from"./overlay.1762932289438.js";import{E as ie,a as de}from"./form-item.1762932289438.js";import{E as me}from"./tag.1762932289438.js";import{E as pe,a as _e}from"./main.1762932289438.js";import{E as fe}from"./pagination.1762932289438.js";import"./select.1762932289438.js";import"./popper.1762932289438.js";/* empty css */import{a as ce,E as ve}from"./table-column.1762932289438.js";import{E as ge}from"./card.1762932289438.js";import"./progress.1762932289438.js";/* empty css */import{a as Ve,E as Ee}from"./col.1762932289438.js";import{E as be}from"./index.176293228943811.js";import{r as i,a8 as ye,l as D,o as P,q as d,J as l,H as a,u as o,V as f,P as xe,L as ke,e as Fe}from"./vue.1762932289438.js";import"./echarts.1762932289438.js";const Ce=_=>k.get({url:"/price",query:_}),we=_=>k.del({url:`/price/${_}`}),ze=_=>k.post({url:"/price/upData",body:_}),Ue={class:"wrap"},De={class:"flex between"},Pe=["href"],Be={class:"table-container"},Ne={class:"flex end mt-8"},Ie={class:"flex end"},Se={__name:"Information",setup(_){const F=i([]),c=i(!1),g=i(!1),n=i({});let m=i({current:1,size:10}),C=i(10),V=i(!1);const B=async()=>{m.value={current:1,size:10},p()},p=async()=>{V.value=!0;const s=await Ce(m.value);console.log("res",s),F.value=s.records,C.value=s.total,V.value=!1},E=i([]);function N(s){if(s.size>=104857600)return x.msgError("文件大小不能超过100MB"),!1;E.value.push({uid:s.uid,percent:0,loading:!0})}function I(s,e,r){if(s.code!==200){x.msgError(s.message),E.value.splice(E.value.indexOf(r[0]),1);return}p()}function S(s,e){x.msgError("上传失败!")}p();const T=async s=>{await we(s.id),p()},w=i({}),$=s=>{g.value=!0,w.value={filePath:s.filePath,name:s.fileName}},R=()=>{g.value=!1},q=async()=>{await ze(n.value),c.value=!1,p()},A=s=>{n.value=s,console.log(n.value),c.value=!0};return(s,e)=>{const r=oe,z=Ee,v=te,H=Ve,L=pe,j=ye("upload-filled"),M=ne,G=be,J=ge,b=ve,O=ce,K=fe,Q=_e,u=de,W=me,X=ie,Y=ue,Z=re,h=se;return P(),D("div",Ue,[d("main",null,[l(L,null,{default:a(()=>[l(H,{gutter:20,style:{"margin-top":"20px"}},{default:a(()=>[l(z,{span:20},{default:a(()=>[l(r,{modelValue:o(m).content,"onUpdate:modelValue":e[0]||(e[0]=t=>o(m).content=t)},null,8,["modelValue"])]),_:1}),l(z,{span:4},{default:a(()=>[l(v,{type:"primary",onClick:p},{default:a(()=>e[15]||(e[15]=[f("搜索",-1)])),_:1,__:[15]}),l(v,{type:"primary",onClick:B},{default:a(()=>e[16]||(e[16]=[f("重置",-1)])),_:1,__:[16]})]),_:1})]),_:1})]),_:1}),l(Q,null,{default:a(()=>[l(J,{"body-style":{"background-color":"#F8F9FF"},style:{"margin-bottom":"10px"}},{default:a(()=>[d("div",De,[d("div",null,[l(G,{action:`${o(U)}/price/import`,headers:{Authorization:o(ae)()},multiple:"","before-upload":N,onSuccess:e[1]||(e[1]=(t,y,ee)=>I(t,y,ee)),onError:S,"show-file-list":!1,accept:"*"},{default:a(()=>[l(M,{class:"el-icon--upload",style:{color:"#1F4DF5"}},{default:a(()=>[l(j)]),_:1}),e[17]||(e[17]=d("div",{class:"el-upload__text",style:{"font-size":"20px",color:"#1F4DF5"}},[d("p",null,"点击或拖拽文件到此区域上传")],-1))]),_:1,__:[17]},8,["action","headers"])]),d("div",null,[d("a",{class:"link",style:{"font-size":"15px"},href:`${o(U)}/templates/政府投资项目价格信息汇总表模板.xlsx`,target:"__blank"},"政府投资项目价格信息汇总表模板下载",8,Pe)])])]),_:1}),xe((P(),D("div",Be,[l(O,{data:o(F)},{default:a(()=>[l(b,{width:"70",type:"index",label:"序号",index:t=>t+1},null,8,["index"]),l(b,{label:"内容",prop:"information"}),l(b,{label:"操作",width:"180"},{default:a(({row:t})=>[l(v,{type:"primary",link:"",onClick:y=>A(t)},{default:a(()=>e[18]||(e[18]=[f("编辑",-1)])),_:2,__:[18]},1032,["onClick"]),l(v,{type:"danger",link:"",onClick:y=>T(t)},{default:a(()=>e[19]||(e[19]=[f("删除",-1)])),_:2,__:[19]},1032,["onClick"])]),_:1})]),_:1},8,["data"])])),[[h,o(V)]]),d("div",Ne,[l(K,{onSizeChange:p,onCurrentChange:p,"page-sizes":[10,20,50],"page-size":o(m).size,"onUpdate:pageSize":e[2]||(e[2]=t=>o(m).size=t),"current-page":o(m).current,"onUpdate:currentPage":e[3]||(e[3]=t=>o(m).current=t),layout:"total, sizes, prev, pager, next",total:o(C)},null,8,["page-size","current-page","total"])])]),_:1}),l(Y,{modelValue:o(c),"onUpdate:modelValue":e[14]||(e[14]=t=>Fe(c)?c.value=t:null),title:"政府投资项目价格信息查看"},{default:a(()=>[l(X,{"label-width":120},{default:a(()=>[l(u,{label:"项目名称"},{default:a(()=>[l(r,{modelValue:o(n).projectName,"onUpdate:modelValue":e[4]||(e[4]=t=>o(n).projectName=t)},null,8,["modelValue"])]),_:1}),l(u,{label:"编码"},{default:a(()=>[l(r,{modelValue:o(n).code,"onUpdate:modelValue":e[5]||(e[5]=t=>o(n).code=t)},null,8,["modelValue"])]),_:1}),l(u,{label:"名称"},{default:a(()=>[l(r,{modelValue:o(n).name,"onUpdate:modelValue":e[6]||(e[6]=t=>o(n).name=t)},null,8,["modelValue"])]),_:1}),l(u,{label:"规格型号"},{default:a(()=>[l(r,{modelValue:o(n).model,"onUpdate:modelValue":e[7]||(e[7]=t=>o(n).model=t)},null,8,["modelValue"])]),_:1}),l(u,{label:"单位"},{default:a(()=>[l(r,{modelValue:o(n).unit,"onUpdate:modelValue":e[8]||(e[8]=t=>o(n).unit=t)},null,8,["modelValue"])]),_:1}),l(u,{label:"单价(元)"},{default:a(()=>[l(r,{type:"number",modelValue:o(n).univalent,"onUpdate:modelValue":e[9]||(e[9]=t=>o(n).univalent=t)},null,8,["modelValue"])]),_:1}),l(u,{label:"总结(元)"},{default:a(()=>[l(r,{type:"number",modelValue:o(n).total,"onUpdate:modelValue":e[10]||(e[10]=t=>o(n).total=t)},null,8,["modelValue"])]),_:1}),l(u,{label:"备注"},{default:a(()=>[l(r,{modelValue:o(n).remark,"onUpdate:modelValue":e[11]||(e[11]=t=>o(n).remark=t)},null,8,["modelValue"])]),_:1}),l(u,{label:"数量"},{default:a(()=>[l(r,{type:"number",modelValue:o(n).amount,"onUpdate:modelValue":e[12]||(e[12]=t=>o(n).amount=t)},null,8,["modelValue"])]),_:1}),l(u,{label:"上传文件"},{default:a(()=>[l(W,{onClick:e[13]||(e[13]=t=>$(o(n)))},{default:a(()=>[f(ke(o(n).fileName),1)]),_:1})]),_:1})]),_:1}),d("div",Ie,[l(v,{type:"primary",onClick:q},{default:a(()=>e[20]||(e[20]=[f("完成",-1)])),_:1,__:[20]})])]),_:1},8,["modelValue"]),l(Z,{preview:o(g),activeFile:o(w),onCloseFile:R},null,8,["preview","activeFile"])])])}}},el=le(Se,[["__scopeId","data-v-ca133c86"]]);export{el as default}; diff --git a/invest/assets/Ledger.1762932289438.css b/invest/assets/Ledger.1762932289438.css deleted file mode 100644 index 9061306..0000000 --- a/invest/assets/Ledger.1762932289438.css +++ /dev/null @@ -1 +0,0 @@ -.univer-avatar{position:relative;overflow:hidden;display:inline-block;color:rgb(var(--bg-color-secondary));text-align:center;white-space:nowrap;vertical-align:middle;background:rgb(var(--grey-200))}.univer-avatar-square{border-radius:var(--border-radius-base)}.univer-avatar-circle{border-radius:50%}.univer-avatar-middle{width:.17708rem;height:.17708rem;line-height:.17708rem}.univer-avatar-small{width:.14583rem;height:.14583rem;line-height:.14583rem}.univer-avatar-image{background:transparent}.univer-avatar-image>img{display:block;width:100%;height:100%}.univer-button{cursor:pointer;-webkit-user-select:none;user-select:none;position:relative;display:inline-block;line-height:1;text-align:center;white-space:nowrap;border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base);transition:all .15s}.univer-button[disabled]{cursor:not-allowed;color:rgb(var(--grey-300))}.univer-button-default{font-weight:400;color:rgb(var(--text-color));background-color:rgb(var(--bg-color-secondary))}.univer-button-default[disabled]:hover{color:rgb(var(--grey-300));border-color:rgb(var(--border-color))}.univer-button-default:hover{color:rgb(var(--primary-color));border-color:rgb(var(--primary-color))}.univer-button-primary{font-weight:500;color:rgb(var(--color-white));background-color:rgb(var(--primary-color));border-color:rgb(var(--primary-color))}.univer-button-primary[disabled]{background-color:rgb(var(--bg-color-secondary));border-color:rgb(var(--border-color))}.univer-button-primary[disabled]:hover{color:rgb(var(--grey-300));background-color:rgb(var(--bg-color-secondary));border-color:rgb(var(--border-color))}.univer-button-primary:hover{color:rgb(var(--color-white));background-color:rgb(var(--primary-color-hover));border-color:rgb(var(--primary-color-hover))}.univer-button-text{color:rgb(var(--text-color));background-color:transparent;border-color:transparent}.univer-button-text[disabled]:hover{background-color:transparent}.univer-button-text:hover{background-color:rgb(var(--bg-color-hover))}.univer-button-link{color:rgb(var(--primary-color));background-color:transparent;border-color:transparent}.univer-button-link[disabled]:hover{background-color:transparent}.univer-button-link:hover{background-color:rgb(var(--bg-color-hover))}.univer-button-small{padding:.03125rem .04167rem;font-size:var(--font-size-sm)}.univer-button-middle{padding:.04167rem .0625rem;font-size:var(--font-size-base)}.univer-button-large{padding:.05208rem .10417rem;font-size:var(--font-size-base)}.univer-button-block{width:100%}.univer-cascader-list{overflow-y:auto;display:flex;height:100%;max-height:1.8125rem;padding:var(--padding-sm);color:rgb(var(--text-color));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base)}.univer-cascader-list-board{overflow:auto;height:100%;margin:0;padding:0;list-style:none}.univer-cascader-list-board:not(:last-child){margin-right:var(--margin-xs);padding-right:var(--padding-sm);border-right:.00521rem solid rgb(var(--border-color))}.univer-cascader-list-board:first-child .univer-cascader-list-item-active{color:rgb(var(--primary-color))}.univer-cascader-list-board:first-child .univer-cascader-list-option{padding:var(--padding-xs) 0}.univer-cascader-list-board:first-child .univer-cascader-list-check-mark{display:none}.univer-cascader-list-board:not(:first-child) .univer-cascader-list-item-active{background-color:rgb(var(--bg-color-hover))}.univer-cascader-list-board:not(:first-child) .univer-cascader-list-option{padding:var(--padding-xs) .14583rem}.univer-cascader-list-item{border-radius:var(--border-radius-base)}.univer-cascader-list-option{cursor:pointer;position:relative;display:block;font-size:var(--font-size-xs)}.univer-cascader-list-check-mark{position:absolute;top:50%;left:var(--margin-xs);transform:translateY(-50%);display:flex;align-items:center;font-size:var(--font-size-lg);color:rgb(var(--primary-color))}.univer-cascader-list-empty{padding-right:.625rem;font-size:var(--font-size-xs);color:rgb(var(--text-color-secondary))}.univer-checkbox{cursor:pointer;display:inline-flex;gap:var(--margin-xs);align-items:center;box-sizing:border-box;font-size:var(--font-size-sm);color:var(--text-color)}.univer-checkbox:hover .univer-checkbox-target-input:checked+.univer-checkbox-target-inner{background-color:rgb(var(--primary-color-hover))}.univer-checkbox:hover .univer-checkbox-target-inner{border-color:rgb(var(--primary-color-hover))}.univer-checkbox-disabled{cursor:not-allowed;color:rgb(var(--grey-300))}.univer-checkbox-disabled .univer-checkbox-target-input:checked+.univer-checkbox-target-inner{background-color:rgb(var(--grey-300))}.univer-checkbox-disabled .univer-checkbox-target-inner{border-color:rgb(var(--grey-300))}.univer-checkbox-disabled:hover .univer-checkbox-target-input:checked+.univer-checkbox-target-inner{background-color:rgb(var(--grey-300))}.univer-checkbox-disabled:hover .univer-checkbox-target-inner{border-color:rgb(var(--grey-300))}.univer-checkbox-disabled.univer-checkbox-indeterminate .univer-checkbox-target-inner{background-color:rgb(var(--grey-300))}.univer-checkbox-indeterminate .univer-checkbox-target-inner{background-color:rgb(var(--primary-color))}.univer-checkbox-indeterminate .univer-checkbox-target-inner:after{top:50%;left:50%;width:calc(100% - .01042rem);height:.01042rem;background-color:rgb(var(--bg-color-secondary));border:none;border-radius:var(--border-radius-base);opacity:1;transform:translate(-50%,-50%)}.univer-checkbox-target{position:relative}.univer-checkbox-target-input{position:absolute;opacity:0}.univer-checkbox-target-input:checked+.univer-checkbox-target-inner{background-color:rgb(var(--primary-color))}.univer-checkbox-target-input:checked+.univer-checkbox-target-inner:after{transform:rotate(45deg) scale(1);opacity:1;border-color:rgb(var(--bg-color-secondary))}.univer-checkbox-target-inner{position:relative;overflow:hidden;display:block;box-sizing:border-box;width:.07292rem;height:.07292rem;border:.00521rem solid rgb(var(--primary-color));border-radius:var(--border-radius-base);transition:all .15s}.univer-checkbox-target-inner:after{content:"";position:absolute;top:calc(50% - .02865rem);left:calc(50% - .01302rem);transform-origin:center center;transform:rotate(45deg) scale(0);display:block;box-sizing:border-box;width:calc(.07292rem / 2.6);height:calc(.07292rem / 1.5);opacity:0;border:.01042rem solid transparent;border-top:0;border-left:0;transition:all .15s}.univer-checkbox-group{display:flex;gap:var(--margin-sm)}.univer-checkbox-group-direction-vertical{flex-direction:column}.univer-color-picker{position:absolute;z-index:1;display:block;width:max-content;min-width:1.20833rem;visibility:visible}.univer-color-picker-hidden{display:none}.univer-color-picker-panel{display:flex;flex-direction:column;width:1.20833rem;background-color:rgb(var(--white-color));border-radius:.04167rem}.univer-color-picker-panel-disabled{cursor:not-allowed}.univer-color-picker-select{margin-bottom:var(--margin-xs)}.univer-color-picker-select .univer-color-picker-palette{overflow:hidden;min-height:.52083rem;border-radius:.02083rem}.univer-color-picker-select .univer-color-picker-palette>.univer-color-picker-gradient{border-top-left-radius:.02604rem}.univer-color-picker-saturation{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit}.univer-color-picker-handler{transform:translateY(-.00521rem);box-sizing:border-box;width:.08333rem;height:.08333rem;border:.01042rem solid #fff;border-radius:50%;box-shadow:0 0 .00521rem .00521rem #0000000f}.univer-color-picker-slider{width:100%}.univer-color-picker-slider .univer-color-picker-palette{height:.04167rem}.univer-color-picker-slider .univer-color-picker-gradient{border-radius:.02083rem}.univer-color-picker-color-blocks{display:grid;grid-template-columns:repeat(10,1fr);grid-template-rows:repeat(9,1fr);gap:var(--margin-xxs);width:1.20833rem;margin-bottom:var(--margin-xs)}.univer-color-picker-color-block{cursor:pointer;position:relative;overflow:hidden;width:.09375rem;height:.09375rem;border-radius:.02083rem}.univer-color-picker-color-block-inner{box-sizing:border-box;width:100%;height:100%;border:.00521rem solid rgb(var(--grey-600));border-radius:.02083rem}.univer-color-picker-slider-container{display:flex;flex-direction:row-reverse;gap:var(--margin-sm)}.univer-color-picker-slider-container .univer-color-picker-slider-group{flex:1}.univer-color-picker-slider-container .univer-color-picker-slider-group-disabled-alpha{display:flex;align-items:center}.univer-color-picker-slider-container .univer-color-picker-slider-group-disabled-alpha .univer-color-picker-slider{margin-bottom:0}.univer-dialog{position:relative;width:3.33333rem;margin:10% auto}.univer-dialog-wrap{position:fixed;z-index:1050;top:0;right:0;bottom:0;left:0;overflow:hidden;outline:0;-webkit-overflow-scrolling:touch}.univer-dialog-title{margin:0;font-size:var(--font-size-lg);font-weight:500}.univer-dialog-title-content{padding:.125rem .14583rem .10417rem;box-sizing:border-box}.univer-dialog-content{pointer-events:all;position:relative;color:rgb(var(--text-color));background-color:rgb(var(--bg-color-secondary));background-clip:padding-box;border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-base)}.univer-dialog-close{cursor:pointer;position:absolute;top:.125rem;right:.14583rem;padding:0;font-size:var(--font-size-lg);font-weight:500;line-height:1;color:rgb(var(--grey-500));text-decoration:none;opacity:.2;background:transparent;border:0}.univer-dialog-close:hover{text-decoration:none;opacity:1}.univer-dialog-header{box-sizing:border-box;color:rgb(var(--text-color));border-radius:var(--border-radius-lg) var(--border-radius-lg) 0 0}.univer-dialog-body{padding:0 .14583rem .10417rem}.univer-dialog-footer{padding:0 .14583rem .125rem;text-align:right;border-radius:0 0 .02604rem .02604rem}.univer-dialog-zoom-enter,.univer-dialog-zoom-appear{opacity:0;animation-play-state:paused;animation-timing-function:cubic-bezier(.08,.82,.17,1);animation-duration:.3s;animation-fill-mode:both}.univer-dialog-zoom-leave{animation-duration:.3s;animation-fill-mode:both;animation-play-state:paused;animation-timing-function:cubic-bezier(.6,.04,.98,.34)}.univer-dialog-zoom-enter.univer-dialog-zoom-enter-active,.univer-dialog-zoom-appear.univer-dialog-zoom-appear-active{animation-name:univer-dialog-zoom-in;animation-play-state:running}.univer-dialog-zoom-leave.univer-dialog-zoom-leave-active{animation-name:univer-dialog-zoom-out;animation-play-state:running}@keyframes univer-dialog-zoom-in{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes univer-dialog-zoom-out{0%{transform:scale(1)}to{transform:scale(0);opacity:0}}.univer-dialog-mask{position:fixed;z-index:1050;top:0;right:0;bottom:0;left:0;height:100%;background-color:#00000080}.univer-dialog-mask-hidden{display:none}.univer-dialog-fade-enter,.univer-dialog-fade-appear{opacity:0;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both;animation-play-state:paused}.univer-dialog-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both;animation-play-state:paused}.univer-dialog-fade-enter.univer-dialog-fade-enter-active,.univer-dialog-fade-appear.univer-dialog-fade-appear-active{animation-name:univer-dialog-fade-in;animation-play-state:running}.univer-dialog-fade-leave.univer-dialog-fade-leave-active{animation-name:univer-dialog-fade-out;animation-play-state:running}@keyframes univer-dialog-fade-in{0%{opacity:0}to{opacity:1}}@keyframes univer-dialog-fade-out{0%{opacity:1}to{opacity:0}}.univer-dialog-root-draggable{pointer-events:none}.univer-confirm-footer{display:flex;gap:var(--margin-sm);justify-content:flex-end}.univer-date-picker{position:relative;width:1.04167rem;height:.16667rem;border:.00521rem solid rgb(var(--border-color));border-radius:.02083rem;box-sizing:border-box;display:inline-flex}.univer-date-picker-rtl{direction:rtl}.univer-date-picker-invalid{box-shadow:0 0 .01042rem red}.univer-date-picker-panel{display:inline-block;vertical-align:top}.univer-date-picker-panel-focused{border-color:#00f}.univer-date-picker-panel-rtl{direction:rtl}.univer-date-picker-suffix-icon{position:absolute;top:50%;right:0;bottom:0;display:flex;align-items:center;padding:0 .04167rem;color:rgb(var(--text-color-secondary));transform:translateY(-50%);cursor:pointer}.univer-date-picker-decade-panel,.univer-date-picker-year-panel,.univer-date-picker-month-panel,.univer-date-picker-week-panel,.univer-date-picker-date-panel,.univer-date-picker-time-panel{display:flex;flex-direction:column}.univer-date-picker-decade-panel table,.univer-date-picker-year-panel table,.univer-date-picker-month-panel table,.univer-date-picker-week-panel table,.univer-date-picker-date-panel table,.univer-date-picker-time-panel table{text-align:center;border-collapse:collapse}.univer-date-picker-header{margin-bottom:var(--margin-base);display:flex;align-items:center}.univer-date-picker-header>*{flex:none}.univer-date-picker-header-view{height:.08333rem;flex:auto;display:flex;justify-content:center;align-items:center;gap:var(--margin-xs)}.univer-date-picker-header-view>button{padding:0;border:0;background-color:transparent;cursor:pointer}.univer-date-picker-header-super-prev-btn,.univer-date-picker-header-super-next-btn,.univer-date-picker-header-prev-btn,.univer-date-picker-header-next-btn{width:.08333rem;height:.08333rem;padding:0;line-height:.08333rem;font-size:var(--font-size-lg);border:none;background-color:transparent;cursor:pointer}.univer-date-picker-cell{color:#aaa}.univer-date-picker-cell-disabled{opacity:.2}.univer-date-picker-cell-inner{display:inline-block;box-sizing:border-box;width:100%;height:.125rem;margin:0;padding:0;font-size:.0625rem;line-height:.125rem;background:transparent;border:0;border-radius:var(--border-radius-base);outline:none;cursor:pointer;transition:background .3s}.univer-date-picker-cell-in-view{color:#333}.univer-date-picker-cell-in-range>.univer-date-picker-cell-inner{background:#0000ff0d}.univer-date-picker-cell-hover>.univer-date-picker-cell-inner{background:rgb(var(--bg-color))}.univer-date-picker-cell-range-hover-start,.univer-date-picker-cell-range-hover-end,.univer-date-picker-cell-range-hover{position:relative}.univer-date-picker-cell-range-hover-start:after,.univer-date-picker-cell-range-hover-end:after,.univer-date-picker-cell-range-hover:after{position:absolute;top:.01563rem;right:0;bottom:0;left:0;border:.00521rem solid green;border-right:0;border-left:0;content:"";pointer-events:none}.univer-date-picker-cell-range-hover-start:after{border-left:.00521rem solid green!important}.univer-date-picker-cell-range-hover-end:after{border-right:.00521rem solid green!important}.univer-date-picker-cell-today>.univer-date-picker-cell-inner{border:.00521rem solid rgb(var(--primary-color))}.univer-date-picker-cell-range-start>.univer-date-picker-cell-inner,.univer-date-picker-cell-range-end>.univer-date-picker-cell-inner,.univer-date-picker-cell-selected>.univer-date-picker-cell-inner{color:#fff;background:rgb(var(--primary-color))}.univer-date-picker-presets{background:#ccf}.univer-date-picker-presets ul{margin:0;padding:0;list-style:none}.univer-date-picker-now{padding-top:var(--padding-base)}.univer-date-picker-now-btn{font-size:var(--font-size-xs);color:rgb(var(--primary-color));cursor:pointer}.univer-date-picker-footer,.univer-date-picker-picker-footer{margin-top:var(--margin-sm);border-top:.00521rem solid rgb(var(--border-color))}.univer-date-picker-ranges{margin:0;padding:0;overflow:hidden;list-style:none}.univer-date-picker-ranges>li{text-align:center;display:block}.univer-date-picker-ok{float:right}.univer-date-picker-decade-panel .univer-date-picker-content tbody{display:grid;gap:.10417rem}.univer-date-picker-decade-panel .univer-date-picker-cell-inner{width:.40625rem;height:.125rem}.univer-date-picker-year-panel .univer-date-picker-content tbody,.univer-date-picker-month-panel .univer-date-picker-content tbody{display:grid;gap:.10417rem}.univer-date-picker-year-panel .univer-date-picker-cell-inner,.univer-date-picker-month-panel .univer-date-picker-cell-inner{width:.25rem;height:.125rem}.univer-date-picker-week-panel-row:hover .univer-date-picker-cell{background:red}.univer-date-picker-week-panel-row-selected .univer-date-picker-cell{background:#0000ff4d}.univer-date-picker-week-panel-row-range-hover .univer-date-picker-cell{background:#00ff001a}.univer-date-picker-week-panel-row-range-start .univer-date-picker-cell,.univer-date-picker-week-panel-row-range-end .univer-date-picker-cell{background:#00ff004d}.univer-date-picker-week-panel .univer-date-picker-cell,.univer-date-picker-week-panel .univer-date-picker-cell-inner{width:.125rem}.univer-date-picker-week-panel .univer-date-picker-cell-week{color:#999;font-weight:700;font-size:.0625rem}.univer-date-picker-week-panel .univer-date-picker-cell:hover>.univer-date-picker-cell-inner,.univer-date-picker-week-panel .univer-date-picker-cell-selected>.univer-date-picker-cell-inner{background:transparent}.univer-date-picker-date-panel .univer-date-picker-cell-inner{width:.125rem;height:.125rem;font-size:var(--font-size-xs)}.univer-date-picker-time-panel{width:auto}.univer-date-picker-time-panel .univer-date-picker-content{position:relative;display:flex;max-height:1.04167rem}.univer-date-picker-time-panel-column-title{font-size:.07292rem;line-height:.125rem}.univer-date-picker-time-panel-column{flex:auto;width:.26042rem;margin:0;padding:0 0 .9375rem;overflow-x:hidden;overflow-y:hidden;font-size:.0625rem;text-align:left;list-style:none;transition:background .3s}.univer-date-picker-time-panel-column-active{background:#0000ff1a}.univer-date-picker-time-panel-column:hover{overflow-y:auto}.univer-date-picker-time-panel-column>li{width:.26042rem;margin:0;padding:0;cursor:pointer}.univer-date-picker-time-panel-column>li.univer-date-picker-time-panel-cell-disabled{opacity:.5}.univer-date-picker-time-panel-column>li.univer-date-picker-time-panel-cell-selected{background:#0000ff80}.univer-date-picker-time-panel-column>li .univer-date-picker-time-panel-cell-inner{display:block;width:100%;height:.125rem;margin:0;color:#333;line-height:.125rem;text-align:center}.univer-date-picker-panel-rtl .univer-date-picker-time-panel-column>li .univer-date-picker-time-panel-cell-inner{padding:0 .0625rem 0 0;text-align:right}.univer-date-picker-datetime-panel{display:flex}.univer-date-picker-datetime-panel .univer-date-picker-time-panel{border-left:.00521rem solid #999}.univer-date-picker-datetime-panel .univer-date-picker-date-panel,.univer-date-picker-datetime-panel .univer-date-picker-time-panel{transition:opacity .3s}.univer-date-picker-datetime-panel-active .univer-date-picker-date-panel,.univer-date-picker-datetime-panel-active .univer-date-picker-time-panel{opacity:.3}.univer-date-picker-datetime-panel-active .univer-date-picker-date-panel-active,.univer-date-picker-datetime-panel-active .univer-date-picker-time-panel-active{opacity:1}.univer-date-picker-input{position:relative;display:inline-flex;width:100%}.univer-date-picker-rtl .univer-date-picker-input{text-align:right}.univer-date-picker-input-active>input{background:#0000ff0d}.univer-date-picker-input>input{width:100%;padding-left:.0625rem;border:none;border-radius:var(--border-radius-base);box-sizing:border-box}.univer-date-picker-input>input::-moz-placeholder{opacity:1}.univer-date-picker-input>input::placeholder{color:#bfbfbf}.univer-date-picker-input>input:placeholder-shown{text-overflow:ellipsis}.univer-date-picker-input>input:focus{outline:none}.univer-date-picker-input-placeholder>input{color:#bfbfbf}.univer-date-picker-clear{position:absolute;top:.03646rem;right:.04167rem;cursor:pointer}.univer-date-picker-rtl .univer-date-picker-clear{right:auto;left:.02083rem}.univer-date-picker-clear-btn{width:.08333rem;height:.08333rem;text-align:center;line-height:.08333rem;background-color:rgb(var(--grey-500));border-radius:50%;display:block}.univer-date-picker-clear-btn:before{content:"×";position:absolute;top:-.00521rem;left:0;right:0;bottom:0;color:#fff;font-size:.08333rem;line-height:.08333rem}.univer-date-picker-dropdown{position:absolute;pointer-events:none}.univer-date-picker-dropdown-range{padding:.05208rem 0}.univer-date-picker-dropdown-hidden{display:none}.univer-date-picker-dropdown-placement-topLeft .univer-date-picker-range-arrow,.univer-date-picker-dropdown-placement-topRight .univer-date-picker-range-arrow{bottom:.03125rem;transform:rotate(135deg)}.univer-date-picker-dropdown-placement-bottomLeft .univer-date-picker-range-arrow,.univer-date-picker-dropdown-placement-bottomright .univer-date-picker-range-arrow{top:.03125rem;transform:rotate(-45deg)}.univer-date-picker-dropdown .univer-date-picker-range-arrow{position:absolute;left:.05208rem;z-index:1;width:.05208rem;height:.05208rem;margin-left:.05208rem;transition:all .3s}.univer-date-picker-dropdown-rtl.univer-date-picker-dropdown .univer-date-picker-range-arrow{right:.05208rem;left:auto;margin-right:.05208rem;margin-left:0}.univer-date-picker-dropdown .univer-date-picker-range-arrow:before,.univer-date-picker-dropdown .univer-date-picker-range-arrow:after{position:absolute;top:50%;left:50%;box-sizing:border-box;transform:translate(-50%,-50%);content:""}.univer-date-picker-dropdown-rtl.univer-date-picker-dropdown .univer-date-picker-range-arrow:before,.univer-date-picker-dropdown-rtl.univer-date-picker-dropdown .univer-date-picker-range-arrow:after{right:50%;left:auto;transform:translate(50%,-50%)}.univer-date-picker-dropdown .univer-date-picker-range-arrow:before{width:.05208rem;height:.05208rem;border:.02604rem solid blue;border-color:blue blue transparent transparent}.univer-date-picker-dropdown .univer-date-picker-range-arrow:after{width:.04167rem;height:.04167rem;border:.04167rem / 2 solid blue;border-color:rgb(var(--bg-color-secondary)) rgb(var(--bg-color-secondary)) transparent transparent}.univer-date-picker-range{position:relative;display:inline-flex}.univer-date-picker-range-wrapper{display:flex}.univer-date-picker-range .univer-date-picker-active-bar{bottom:0;height:.01563rem;background:green;opacity:0;transition:all .3s;pointer-events:none}.univer-date-picker-range.univer-date-picker-focused .univer-date-picker-active-bar{opacity:1}.univer-date-picker-panel-container{display:inline-block;vertical-align:top;transition:margin .3s;pointer-events:all}.univer-date-picker-panel-layout{padding:var(--padding-lg);background:rgb(var(--bg-color-secondary));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-base);display:flex;flex-wrap:nowrap;align-items:stretch;overflow:hidden}.univer-date-picker-selector{width:100%}.univer-date-picker-selection-overflow{display:flex;flex-wrap:wrap;box-sizing:border-box;width:100%;border:.00521rem solid green}.univer-date-picker-selection-overflow-item{flex:none;max-width:100%}.univer-date-picker-selection-item{border:.00521rem solid blue}.univer-date-picker-multiple-input{width:.05208rem;opacity:.1}.univer-dropdown{position:absolute;z-index:1070;top:-52.07813rem;left:-52.07813rem;display:block}.univer-dropdown-hidden{display:none}.univer-dropdown-slide-up-enter,.univer-dropdown-slide-up-appear{transform-origin:0 0;display:block!important;animation-duration:.15s;animation-fill-mode:both;opacity:0;animation-play-state:paused;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.univer-dropdown-slide-up-leave{transform-origin:0 0;display:block!important;animation-duration:.15s;animation-fill-mode:both;opacity:1;animation-play-state:paused;animation-timing-function:cubic-bezier(.6,.04,.98,.34)}.univer-dropdown-slide-up-enter.univer-dropdown-slide-up-enter-active.univer-dropdown-placement-bottomLeft,.univer-dropdown-slide-up-appear.univer-dropdown-slide-up-appear-active.univer-dropdown-placement-bottomLeft,.univer-dropdown-slide-up-enter.univer-dropdown-slide-up-enter-active.univer-dropdown-placement-bottomCenter,.univer-dropdown-slide-up-appear.univer-dropdown-slide-up-appear-active.univer-dropdown-placement-bottomCenter,.univer-dropdown-slide-up-enter.univer-dropdown-slide-up-enter-active.univer-dropdown-placement-bottomRight,.univer-dropdown-slide-up-appear.univer-dropdown-slide-up-appear-active.univer-dropdown-placement-bottomRight{animation-name:univer-dropdown-slide-up-in;animation-play-state:running}.univer-dropdown-slide-up-enter.univer-dropdown-slide-up-enter-active.univer-dropdown-placement-topLeft,.univer-dropdown-slide-up-appear.univer-dropdown-slide-up-appear-active.univer-dropdown-placement-topLeft,.univer-dropdown-slide-up-enter.univer-dropdown-slide-up-enter-active.univer-dropdown-placement-topCenter,.univer-dropdown-slide-up-appear.univer-dropdown-slide-up-appear-active.univer-dropdown-placement-topCenter,.univer-dropdown-slide-up-enter.univer-dropdown-slide-up-enter-active.univer-dropdown-placement-topRight,.univer-dropdown-slide-up-appear.univer-dropdown-slide-up-appear-active.univer-dropdown-placement-topRight{animation-name:univer-dropdown-slide-down-in;animation-play-state:running}.univer-dropdown-slide-up-leave.univer-dropdown-slide-up-leave-active.univer-dropdown-placement-bottomLeft,.univer-dropdown-slide-up-leave.univer-dropdown-slide-up-leave-active.univer-dropdown-placement-bottomCenter,.univer-dropdown-slide-up-leave.univer-dropdown-slide-up-leave-active.univer-dropdown-placement-bottomRight{animation-name:univer-dropdown-slide-up-out;animation-play-state:running}.univer-dropdown-slide-up-leave.univer-dropdown-slide-up-leave-active.univer-dropdown-placement-topLeft,.univer-dropdown-slide-up-leave.univer-dropdown-slide-up-leave-active.univer-dropdown-placement-topCenter,.univer-dropdown-slide-up-leave.univer-dropdown-slide-up-leave-active.univer-dropdown-placement-topRight{animation-name:univer-dropdown-slide-down-out;animation-play-state:running}@keyframes univer-dropdown-slide-up-in{0%{transform-origin:0% 0%;transform:scaleY(0);opacity:0}to{transform-origin:0% 0%;transform:scaleY(1);opacity:1}}@keyframes univer-dropdown-slide-up-out{0%{transform-origin:0% 0%;transform:scaleY(1);opacity:1}to{transform-origin:0% 0%;transform:scaleY(0);opacity:0}}@keyframes univer-dropdown-slide-down-in{0%{transform-origin:0% 100%;transform:scaleY(0);opacity:0}to{transform-origin:0% 100%;transform:scaleY(1);opacity:1}}@keyframes univer-dropdown-slide-down-out{0%{transform-origin:0% 100%;transform:scaleY(1);opacity:1}to{transform-origin:0% 100%;transform:scaleY(0);opacity:0}}.univer-form-layout{display:flex;flex-direction:column}.univer-form-layout-label{font-size:var(--font-size-sm);min-height:var(--font-size-sm);color:rgba(var(--color-black))}.univer-form-layout-desc{margin-top:var(--margin-xxs);font-size:var(--font-size-xs);color:rgba(var(--grey-500))}.univer-form-layout-content{margin-top:var(--margin-xs);margin-bottom:var(--margin-sm)}.univer-form-layout-content .univer-input-affix-wrapper,.univer-form-layout-content .univer-select{width:100%}.univer-form-layout-content .univer-range-selector{width:100%!important}.univer-form-layout-content-error .univer-input-affix-wrapper{border:.00521rem solid rgba(var(--red-400))}.univer-form-layout-content-error .univer-select-single:not(.univer-select-customize-input) .univer-select-selector{border:.00521rem solid rgba(var(--red-400))}.univer-form-layout-error{color:rgba(var(--red-400));font-size:var(--font-size-sm)}.univer-form-dual-column-layout{display:flex;justify-content:space-between}.univer-form-dual-column-layout .univer-form-layout{flex-grow:1;flex-shrink:1;max-width:calc(50% - .04167rem)}.univer-input{box-sizing:border-box;width:100%;color:rgb(var(--text-color))}.univer-input::selection{color:rgb(var(--color-white));background-color:rgb(var(--primary-color))}.univer-input-affix-wrapper{position:relative;overflow:hidden;box-sizing:border-box;border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base);transition:all .15s}.univer-input-affix-wrapper-small{height:.125rem;display:inline-flex;align-items:center;padding:0 .05208rem;font-size:var(--font-size-sm)}.univer-input-affix-wrapper-middle{height:.14583rem;display:inline-flex;align-items:center;padding:0 .05208rem;font-size:var(--font-size-sm)}.univer-input-affix-wrapper-large{height:.16667rem;display:inline-flex;align-items:center;padding:0 .05208rem;font-size:var(--font-size-sm)}.univer-input-affix-wrapper:hover,.univer-input-affix-wrapper:focus-within{border-color:rgb(var(--primary-color))}.univer-input-affix-wrapper-disabled{cursor:not-allowed;border-color:rgb(var(--border-color))}.univer-input-affix-wrapper-disabled:hover{border-color:rgb(var(--border-color))}.univer-input-affix-wrapper input{padding:0;border:none;outline:none;background-color:rgb(var(--bg-color-secondary))}.univer-input-affix-wrapper input[disabled]{cursor:inherit;color:rgb(var(--grey-200));background-color:rgb(var(--bg-color-secondary))}.univer-input-suffix{position:absolute;top:0;right:.01042rem;display:flex;align-items:center;height:100%;padding:0 var(--padding-sm);background-color:rgb(var(--bg-color-secondary))}.univer-input-not-allow-clear .univer-input-suffix{padding:0}.univer-input-clear-icon{cursor:pointer;display:inline-flex;align-items:center}.univer-input-clear-icon-hidden{display:none}.univer-input-slot-container{position:relative;display:flex}.univer-input-slot-container>span{width:100%}.univer-input-slot{position:absolute;top:0;right:.04167rem;display:inline-flex;height:100%}.univer-input-number{display:inline-block;max-height:100%;height:.17708rem;margin:0;padding:0;font-size:.0625rem;vertical-align:middle;background-color:rgb(var(--bg-color-secondary));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base);transition:all .3s}.univer-input-number-focused,.univer-input-number:hover,.univer-input-number-focused .univer-input-number-handler-up,.univer-input-number:hover .univer-input-number-handler-up,.univer-input-number-focused .univer-input-number-handler-wrap,.univer-input-number:hover .univer-input-number-handler-wrap{border-color:rgb(var(--primary-color))}.univer-input-number-handler{touch-action:none;cursor:pointer;overflow:hidden;display:flex;align-items:center;justify-content:center;flex:1;text-align:center}.univer-input-number-handler-up-inner,.univer-input-number-handler-down-inner{-webkit-user-select:none;user-select:none;color:rgb(var(--text-color))}.univer-input-number-disabled:hover{cursor:not-allowed;border-color:rgb(var(--border-color))}.univer-input-number-disabled:hover .univer-input-number-handler-up,.univer-input-number-disabled:hover .univer-input-number-handler-wrap{border-color:rgb(var(--border-color))}.univer-input-number-input-wrap{overflow:hidden;height:100%}.univer-input-number-input{width:100%;height:100%;padding:0;line-height:.17708rem;color:rgb(var(--text-color));text-align:center;border:0;border-radius:var(--border-radius-base);outline:0;transition:all .15s}.univer-input-number-handler-wrap{float:right;display:flex;flex-direction:column;justify-content:center;width:.10417rem;height:100%;border-left:.00521rem solid rgb(var(--border-color));transition:all .3s}.univer-input-number-handler-up{border-bottom:.00521rem solid rgb(var(--border-color));transition:all .15s}.univer-input-number-handler-up-inner:after{content:"+"}.univer-input-number-handler-down{transition:all .15s}.univer-input-number-handler-down-inner:after{content:"-"}.univer-input-number-handler-down-disabled,.univer-input-number-handler-up-disabled{opacity:.3}.univer-input-number-handler-down-disabled:hover,.univer-input-number-handler-up-disabled:hover{color:#999;border-color:rgb(var(--grey-200))}.univer-input-number-disabled .univer-input-number-input{cursor:not-allowed}.univer-input-number-disabled .univer-input-number-handler{opacity:.3}.univer-input-number-disabled .univer-input-number-handler:hover{color:#999;border-color:rgb(var(--grey-200))}.univer-menu{box-sizing:border-box;margin:0;padding:var(--padding-base);font-size:var(--font-size-xs);list-style:none;background-color:rgb(var(--bg-color-secondary));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base)}.univer-menu-vertical{display:grid;gap:var(--margin-xs)}.univer-menu-hidden,.univer-menu-submenu-hidden{display:none}.univer-menu-item-group:not(:last-child){padding-bottom:var(--padding-sm);border-bottom:.00521rem solid rgb(var(--border-color))}.univer-menu-item-group-list{display:grid;gap:var(--margin-xxs);margin:0;padding:0}.univer-menu-item-group-title{color:rgb(var(--text-color))}.univer-menu-item-active,.univer-menu-submenu-active{background-color:rgb(var(--bg-color-hover))}.univer-menu-item-selected{transform:translateZ(0);background-color:rgb(var(--bg-color-hover))}.univer-menu-submenu-selected{background-color:rgb(var(--bg-color-hover))}.univer-menu>li.univer-menu-submenu{padding:0}.univer-menu-horizontal.univer-menu-sub,.univer-menu-vertical.univer-menu-sub,.univer-menu-vertical-left.univer-menu-sub,.univer-menu-vertical-right.univer-menu-sub{min-width:.83333rem;margin-top:0}.univer-menu-item{display:flex;gap:var(--margin-xs);align-items:center}.univer-menu-item,.univer-menu-submenu{cursor:pointer;position:relative;box-sizing:border-box;min-height:.14583rem;margin:0;padding:var(--padding-xs);white-space:nowrap;list-style:none;border-radius:var(--border-radius-base)}.univer-menu-item.univer-menu-item-disabled,.univer-menu-submenu.univer-menu-item-disabled,.univer-menu-item.univer-menu-submenu-disabled,.univer-menu-submenu.univer-menu-submenu-disabled{color:rgb(var(--grey-200))!important;cursor:not-allowed}.univer-menu-submenu-popup{position:absolute;z-index:1070}.univer-menu-submenu-popup .univer-submenu-title-wrapper{padding-right:.10417rem}.univer-menu-submenu-title{display:flex;align-items:center;justify-content:space-between;height:100%}.univer-menu .univer-menu-submenu-title-more-icon,.univer-menu .univer-menu-item-more-icon{margin-left:var(--margin-xs);font-size:var(--font-size-sm);color:rgb(var(--text-color))}.univer-menu-horizontal{overflow:hidden;white-space:nowrap;border:none;border-bottom:.00521rem solid rgb(var(--border-color));box-shadow:none}.univer-menu-horizontal>.univer-menu-item,.univer-menu-horizontal>.univer-menu-submenu>.univer-menu-submenu-title{padding:.07813rem .10417rem}.univer-menu-horizontal>.univer-menu-submenu,.univer-menu-horizontal>.univer-menu-item{display:inline-block;vertical-align:bottom;border-bottom:.01042rem solid transparent}.univer-menu-vertical>.univer-menu-item,.univer-menu-vertical-left>.univer-menu-item,.univer-menu-vertical-right>.univer-menu-item,.univer-menu-inline>.univer-menu-item,.univer-menu-vertical>.univer-menu-submenu>.univer-menu-submenu-title,.univer-menu-vertical-left>.univer-menu-submenu>.univer-menu-submenu-title,.univer-menu-vertical-right>.univer-menu-submenu>.univer-menu-submenu-title,.univer-menu-inline>.univer-menu-submenu>.univer-menu-submenu-title{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;min-height:.14583rem;padding:var(--padding-xs)}.univer-menu-vertical .univer-menu-submenu-arrow,.univer-menu-vertical-left .univer-menu-submenu-arrow,.univer-menu-vertical-right .univer-menu-submenu-arrow,.univer-menu-inline .univer-menu-submenu-arrow{position:absolute;right:.08333rem;display:inline-block;font-size:inherit;line-height:1.5em;text-align:center;text-transform:none;text-rendering:auto;vertical-align:baseline}.univer-menu-sub.univer-menu-inline{padding:0;border:none;border-radius:0;box-shadow:none}.univer-menu-sub.univer-menu-inline>.univer-menu-item,.univer-menu-sub.univer-menu-inline>.univer-menu-submenu>.univer-menu-submenu-title{padding-top:.04167rem;padding-right:0;padding-bottom:.04167rem}.univer-menu-open-slide-up-enter,.univer-menu-open-slide-up-appear{transform-origin:0 0;animation-duration:.3s;animation-fill-mode:both;opacity:0;animation-play-state:paused;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.univer-menu-open-slide-up-leave{transform-origin:0 0;animation-duration:.3s;animation-fill-mode:both;opacity:1;animation-play-state:paused;animation-timing-function:cubic-bezier(.6,.04,.98,.34)}.univer-menu-open-slide-up-enter.univer-menu-open-slide-up-enter-active,.univer-menu-open-slide-up-appear.univer-menu-open-slide-up-appear-active{animation-name:univer-menu-open-slide-up-in;animation-play-state:running}.univer-menu-open-slide-up-leave.univer-menu-open-slide-up-leave-active{animation-name:univer-menu-open-slide-up-out;animation-play-state:running}@keyframes univer-menu-open-slide-up-in{0%{transform-origin:0% 0%;transform:scaleY(0);opacity:0}to{transform-origin:0% 0%;transform:scaleY(1);opacity:1}}@keyframes univer-menu-open-slide-up-out{0%{transform-origin:0% 0%;transform:scaleY(1);opacity:1}to{transform-origin:0% 0%;transform:scaleY(0);opacity:0}}.univer-menu-open-zoom-enter,.univer-menu-open-zoom-appear{opacity:0;animation-play-state:paused;animation-timing-function:cubic-bezier(.08,.82,.17,1);transform-origin:0 0;animation-duration:.3s;animation-fill-mode:both}.univer-menu-open-zoom-leave{transform-origin:0 0;animation-duration:.3s;animation-fill-mode:both;animation-play-state:paused;animation-timing-function:cubic-bezier(.6,.04,.98,.34)}.univer-menu-open-zoom-enter.univer-menu-open-zoom-enter-active,.univer-menu-open-zoom-appear.univer-menu-open-zoom-appear-active{animation-name:univer-menu-open-zoom-in;animation-play-state:running}.univer-menu-open-zoom-leave.univer-menu-open-zoom-leave-active{animation-name:univer-menu-open-zoom-out;animation-play-state:running}@keyframes univer-menu-open-zoom-in{0%{transform:scale(0);opacity:0}to{transform:scale(1);opacity:1}}@keyframes univer-menu-open-zoom-out{0%{transform:scale(1)}to{transform:scale(0);opacity:0}}.univer-message{position:fixed;z-index:1000;top:var(--margin-sm);left:50%;transform:translate(-50%);display:grid;gap:var(--margin-sm)}.univer-message-item{display:flex;justify-content:center;opacity:0;transition:all .2s cubic-bezier(.1,.7,1,.1)}.univer-message-item.univer-enter-active{transform:translateY(-.10417rem);opacity:0}.univer-message-item.univer-enter-done{transform:translateY(0);opacity:1}.univer-message-item.univer-exit{transform:translateY(-.10417rem);margin-bottom:-.20833rem;opacity:0}.univer-message-item.univer-exit-active{transform:translateY(-.10417rem);opacity:0}.univer-message-icon{display:inline-flex;align-items:center}.univer-message-icon-success{color:rgb(var(--success-color))}.univer-message-icon-info{color:rgb(var(--info-color))}.univer-message-icon-warning{color:rgb(var(--warning-color))}.univer-message-icon-error{color:rgb(var(--error-color))}.univer-message-content{display:inline-flex;gap:var(--margin-xs);align-items:center;padding:var(--padding-base);font-size:var(--font-size-base);background-color:rgb(var(--color-white));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg)}.univer-pager{display:flex;align-items:center;box-sizing:border-box}.univer-pager-left-arrow,.univer-pager-right-arrow{cursor:pointer;-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center;justify-content:center;width:.08333rem;height:.08333rem;font-size:.04167rem;color:rgb(var(--grey-400));border-radius:.02083rem}.univer-pager-left-arrow:hover,.univer-pager-right-arrow:hover{background-color:rgb(var(--grey-50))}.univer-pager-number{margin:0 .02083rem;font-size:.06771rem;color:rgb(var(--text-color))}.univer-popup-fixed{position:fixed;z-index:1000;top:-52.07813rem;left:-52.07813rem}.univer-popup{position:fixed;z-index:1070;top:-52.07813rem;left:-52.07813rem;background-color:rgb(var(--bg-color-secondary));border-radius:.03125rem;overflow:hidden;box-shadow:var(--box-shadow-base)}.univer-popup-enter{transform-origin:0 0;animation-duration:.15s;animation-fill-mode:both;opacity:0;animation-play-state:paused;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.univer-popup-enter-active{animation-name:univer-popup-slide-up-in;animation-play-state:running}.univer-popup-exit{transform-origin:0 0;animation-duration:.15s;animation-fill-mode:both;opacity:1;animation-name:univer-popup-slide-up-out;animation-play-state:running;animation-timing-function:cubic-bezier(.6,.04,.98,.34)}.univer-popup-exit-active{display:none}@keyframes univer-popup-slide-up-in{0%{transform-origin:0 0;transform:scaleY(0);opacity:0}to{transform-origin:0 0;transform:scaleY(1);opacity:1}}@keyframes univer-popup-slide-up-out{0%{transform-origin:0 0;transform:scaleY(1);opacity:1}to{transform-origin:0 0;transform:scaleY(0);opacity:0}}.univer-popup-mask{position:fixed;z-index:1060;top:0;left:0;right:0;bottom:0}.univer-radio{cursor:pointer;display:inline-flex;gap:var(--margin-xs);align-items:center;box-sizing:border-box;font-size:var(--font-size-sm);color:var(--text-color)}.univer-radio:hover .univer-radio-target-input:checked+.univer-radio-target-inner:after{background-color:rgb(var(--primary-color-hover))}.univer-radio:hover .univer-radio-target-inner{border-color:rgb(var(--primary-color-hover))}.univer-radio-disabled{cursor:not-allowed;color:rgb(var(--grey-300))}.univer-radio-disabled .univer-radio-target-input:checked+.univer-radio-target-inner:after{background-color:rgb(var(--grey-300))}.univer-radio-disabled .univer-radio-target-inner{border-color:rgb(var(--grey-300))}.univer-radio-disabled:hover .univer-radio-target-input:checked+.univer-radio-target-inner:after{background-color:rgb(var(--grey-300))}.univer-radio-disabled:hover .univer-radio-target-inner{border-color:rgb(var(--grey-300))}.univer-radio-target{position:relative}.univer-radio-target-input{position:absolute;opacity:0}.univer-radio-target-input:checked+.univer-radio-target-inner:after{transform:scale(1);box-sizing:border-box;opacity:1;background-color:rgb(var(--primary-color))}.univer-radio-target-inner{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:.0625rem;height:.0625rem;border:.00521rem solid rgb(var(--primary-color));border-radius:50%;transition:all .15s}.univer-radio-target-inner:after{content:"";transform-origin:center center;transform:scale(0);display:block;box-sizing:border-box;width:.04167rem;height:.04167rem;opacity:0;background-color:rgb(var(--bg-color-secondary));border-radius:50%;transition:all .15s}.univer-radio-group{display:flex;gap:var(--margin-sm)}.univer-radio-group-direction-vertical{flex-direction:column}.univer-scrollbar-container{position:relative;overflow:hidden;height:100%}.univer-scrollbar-bar{position:absolute;top:0;right:0;width:.04167rem;height:100%}.univer-scrollbar-bar:hover .univer-scrollbar-bar-thumb:not(:active){background-color:rgb(var(--scrollbar-color-hover))}.univer-scrollbar-bar-thumb{position:absolute;width:calc(100% - .01042rem);background-color:rgb(var(--scrollbar-color));border-radius:var(--border-radius-lg)}.univer-scrollbar-bar-thumb:active{background-color:rgb(var(--scrollbar-color-active))}.univer-scrollbar-content{scrollbar-width:none;overflow:auto;box-sizing:border-box;height:100%;padding-right:.04167rem}.univer-scrollbar-content::-webkit-scrollbar{display:none}.univer-select{position:relative;display:inline-block}.univer-select-disabled,.univer-select-disabled input{cursor:not-allowed}.univer-select-disabled .univer-select-selector{opacity:.3}.univer-select-show-arrow.univer-select-loading .univer-select-arrow-icon:after{transform:none;box-sizing:border-box;width:.0625rem;height:.0625rem;margin-top:.02083rem;border:.01042rem solid #999;border-top-color:transparent;border-bottom-color:transparent;border-radius:100%;animation:univer-select-loading-icon .5s infinite}.univer-select .univer-select-selection-placeholder{pointer-events:none;opacity:.4}.univer-select .univer-select-selection-search-input{font-size:var(--font-size-sm);color:rgb(var(--text-color));-webkit-appearance:none;-moz-appearance:none;appearance:none}.univer-select .univer-select-selection-search-input::-webkit-search-cancel-button{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.univer-select-single .univer-select-selector{position:relative;display:flex;box-sizing:border-box;height:.14583rem;padding:0 .05208rem;transition:all .15s}.univer-select-single .univer-select-selector .univer-select-selection-search{width:100%;line-height:0}.univer-select-single .univer-select-selector .univer-select-selection-search-input{width:100%;height:100%}.univer-select-single .univer-select-selector .univer-select-selection-item,.univer-select-single .univer-select-selector .univer-select-selection-placeholder{pointer-events:none;position:absolute;left:0;height:100%;width:100%;padding:0 .09375rem 0 .05208rem;box-sizing:border-box;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:var(--font-size-sm);line-height:.14583rem;display:inline-block;align-items:center}.univer-select-single:not(.univer-select-customize-input) .univer-select-selector{border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base)}.univer-select-single:not(.univer-select-customize-input) .univer-select-selector .univer-select-selection-search-input{width:100%;padding:0;border:none;outline:none}.univer-select-multiple .univer-select-selector{display:flex;flex-wrap:wrap;border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base)}.univer-select-multiple .univer-select-selector .univer-select-selection-item{flex:none;margin-right:.01042rem;padding:0 .04167rem;background:#bbb;border-radius:.02083rem}.univer-select-multiple .univer-select-selector .univer-select-selection-item-disabled{cursor:not-allowed;opacity:.5}.univer-select-multiple .univer-select-selector .univer-select-selection-overflow{display:flex;flex-wrap:wrap;width:100%}.univer-select-multiple .univer-select-selector .univer-select-selection-overflow-item{flex:none;max-width:100%}.univer-select-multiple .univer-select-selector .univer-select-selection-search{position:relative;max-width:100%}.univer-select-multiple .univer-select-selector .univer-select-selection-search-input,.univer-select-multiple .univer-select-selector .univer-select-selection-search-mirror{box-sizing:border-box;padding:var(--padding-xs) var(--padding-sm)}.univer-select-multiple .univer-select-selector .univer-select-selection-search-mirror{position:none;z-index:999;top:0;left:0;white-space:nowrap;visibility:hidden}.univer-select-multiple .univer-select-selector .univer-select-selection-search-input{width:100%;padding:0;border:none;outline:none}.univer-select-borderless:not(.univer-select-customize-input) .univer-select-selector{border-color:transparent}.univer-select-borderless.univer-select-focused .univer-select-selector,.univer-select-borderless.univer-select:hover .univer-select-selector{border-color:transparent!important}.univer-select-allow-clear.univer-select-multiple .univer-select-selector{padding-right:.10417rem}.univer-select-allow-clear .univer-select-clear{position:absolute;top:0;right:.10417rem}.univer-select-show-arrow.univer-select-multiple .univer-select-selector{padding-right:.10417rem}.univer-select-show-arrow .univer-select-arrow{pointer-events:none;position:absolute;top:0;right:var(--margin-sm);display:flex;align-items:center;height:100%;font-size:var(--font-size-xxs);color:rgb(var(--text-color-secondary))}.univer-select-show-arrow .univer-select-arrow-icon:after{content:"";transform:translateY(.02604rem);display:inline-block;width:0;height:0;border:.02604rem solid transparent;border-top-color:#999}.univer-select-focused .univer-select-selector,.univer-select:hover .univer-select-selector{border-color:rgb(var(--primary-color))!important}.univer-select-dropdown{position:absolute;z-index:1070;background:rgb(var(--bg-color-secondary));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-base)}.univer-select-dropdown-hidden{display:none}.univer-select-item{cursor:pointer;padding:var(--padding-sm) var(--padding-base);font-size:var(--font-size-sm)}.univer-select-item-group{padding:0}.univer-select-item-group:not(:first-child){border-top:.00521rem solid rgb(var(--border-color))}.univer-select-item-option{position:relative;transition:all .15s}.univer-select-item-option .univer-select-item-option-state{pointer-events:none;position:absolute;top:.02083rem;right:0}.univer-select-item-option-active{background:#ddd}.univer-select-item-option-disabled{color:#999}.univer-select-item-empty{color:#999;text-align:center}.univer-select-selection__choice-zoom{transition:all .3s}.univer-select-selection__choice-zoom-appear{transform:scale(.5);opacity:0}.univer-select-selection__choice-zoom-appear.univer-select-selection__choice-zoom-appear-active,.univer-select-selection__choice-zoom-leave{transform:scale(1);opacity:1}.univer-select-selection__choice-zoom-leave.univer-select-selection__choice-zoom-leave-active{transform:scale(.5);opacity:0}.univer-select-dropdown-slide-up-enter,.univer-select-dropdown-slide-up-appear{transform-origin:0 0;animation-duration:.3s;animation-fill-mode:both;opacity:0;animation-play-state:paused;animation-timing-function:cubic-bezier(.08,.82,.17,1)}.univer-select-dropdown-slide-up-leave{transform-origin:0 0;animation-duration:.3s;animation-fill-mode:both;opacity:1;animation-play-state:paused;animation-timing-function:cubic-bezier(.6,.04,.98,.34)}.univer-select-dropdown-slide-up-enter.univer-select-dropdown-slide-up-enter-active.univer-select-dropdown-placement-bottomLeft,.univer-select-dropdown-slide-up-appear.univer-select-dropdown-slide-up-appear-active.univer-select-dropdown-placement-bottomLeft,.univer-select-dropdown-slide-up-enter.univer-select-dropdown-slide-up-enter-active.univer-select-dropdown-placement-bottomRight,.univer-select-dropdown-slide-up-appear.univer-select-dropdown-slide-up-appear-active.univer-select-dropdown-placement-bottomRight{animation-name:univer-select-dropdown-slide-up-in;animation-play-state:running}.univer-select-dropdown-slide-up-leave.univer-select-dropdown-slide-up-leave-active.univer-select-dropdown-placement-bottomLeft,.univer-select-dropdown-slide-up-leave.univer-select-dropdown-slide-up-leave-active.univer-select-dropdown-placement-bottomRight{animation-name:univer-select-dropdown-slide-up-out;animation-play-state:running}.univer-select-dropdown-slide-up-enter.univer-select-dropdown-slide-up-enter-active.univer-select-dropdown-placement-topLeft,.univer-select-dropdown-slide-up-appear.univer-select-dropdown-slide-up-appear-active.univer-select-dropdown-placement-topLeft,.univer-select-dropdown-slide-up-enter.univer-select-dropdown-slide-up-enter-active.univer-select-dropdown-placement-topRight,.univer-select-dropdown-slide-up-appear.univer-select-dropdown-slide-up-appear-active.univer-select-dropdown-placement-topRight{animation-name:univer-select-dropdown-slide-down-in;animation-play-state:running}.univer-select-dropdown-slide-up-leave.univer-select-dropdown-slide-up-leave-active.univer-select-dropdown-placement-topLeft,.univer-select-dropdown-slide-up-leave.univer-select-dropdown-slide-up-leave-active.univer-select-dropdown-placement-topRight{animation-name:univer-select-dropdown-slide-down-out;animation-play-state:running}@keyframes univer-select-dropdown-slide-up-in{0%{transform-origin:0% 0%;transform:scaleY(0);opacity:0}to{transform-origin:0% 0%;transform:scaleY(1);opacity:1}}@keyframes univer-select-dropdown-slide-up-out{0%{transform-origin:0% 0%;transform:scaleY(1);opacity:1}to{transform-origin:0% 0%;transform:scaleY(0);opacity:0}}@keyframes univer-select-dropdown-slide-down-in{0%{transform-origin:100% 100%;transform:scaleY(0);opacity:0}to{transform-origin:100% 100%;transform:scaleY(1);opacity:1}}@keyframes univer-select-dropdown-slide-down-out{0%{transform-origin:100% 100%;transform:scaleY(1);opacity:1}to{transform-origin:100% 100%;transform:scaleY(0);opacity:0}}@keyframes univer-select-loading-icon{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.univer-select-list{overflow-y:auto;display:grid;gap:var(--margin-xs);max-height:1.8125rem;margin:0;padding:var(--padding-lg) var(--padding-base);list-style:none;border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base)}.univer-select-list-item{font-size:var(--font-size-sm)}.univer-select-list-item>a{cursor:pointer;position:relative;display:block;padding:var(--padding-xs) .14583rem;border-radius:var(--border-radius-base);transition:all .15s}.univer-select-list-item>a:hover{background-color:rgb(var(--bg-color-hover))}.univer-select-list-item-icon{position:absolute;top:50%;left:var(--margin-xxs);transform:translateY(-50%);display:inline-flex;font-size:var(--font-size-lg);color:rgb(var(--success-color))}.univer-select-list-item-select>a{background-color:rgb(var(--bg-color))}.univer-segmented{display:inline-flex;padding:.01042rem;height:.16667rem;width:100%;border-radius:.03125rem;background-color:rgb(var(--grey-50));box-sizing:border-box}.univer-segmented-group{position:relative;display:flex;align-items:stretch;justify-items:flex-start;width:100%;border-radius:.01042rem}.univer-segmented-item{position:relative;padding:.02083rem .05208rem;border-radius:.02083rem;height:100%;flex:1;flex-grow:1;flex-shrink:1;box-sizing:border-box;color:rgba(var(--color-black));text-align:center;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-size:.06771rem}.univer-segmented-item-selected{background-color:#fff;box-shadow:0 .02083rem .08333rem rgba(var(--color-black),.08);color:rgba(var(--color-black))}.univer-segmented-item:hover,.univer-segmented-item:focus{color:rgba(var(--color-black))}.univer-segmented-item-disabled,.univer-segmented-item-disabled:hover,.univer-segmented-item-disabled:focus{color:#00000040;cursor:not-allowed}.univer-segmented-item-label{z-index:2;line-height:.10417rem}.univer-segmented-item-input{position:absolute;top:0;left:0;width:0;height:0;opacity:0;pointer-events:none}.univer-segmented-disabled .univer-segmented-item,.univer-segmented-disabled .univer-segmented-item:hover,.univer-segmented-disabled .univer-segmented-item:focus,.univer-segmented-disabled .univer-segmented-item:hover:hover,.univer-segmented-disabled .univer-segmented-item:focus:hover,.univer-segmented-disabled .univer-segmented-item:hover:focus,.univer-segmented-disabled .univer-segmented-item:focus:focus{color:#00000040;cursor:not-allowed}.univer-segmented-thumb{background-color:#fff;box-shadow:0 .02083rem .08333rem rgba(var(--color-black),.08);position:absolute;box-sizing:border-box;width:0;height:100%;border-radius:.02083rem;padding:.02083rem 0}.univer-segmented-thumb-motion-appear-active,.univer-segmented-thumb-motion-enter-active{transition:transform .3s cubic-bezier(.645,.045,.355,1),width .3s cubic-bezier(.645,.045,.355,1);will-change:transform,width}.univer-segmented-rtl{direction:rtl}.univer-tooltip{position:absolute;z-index:1080;pointer-events:none;display:block;font-size:var(--font-size-xxs);visibility:visible}.univer-tooltip-no-events{pointer-events:none}.univer-tooltip-hidden{display:none}.univer-tooltip-placement-top{padding:.02083rem 0}.univer-tooltip-placement-right{padding:0 .02083rem}.univer-tooltip-placement-bottom{padding:.02083rem}.univer-tooltip-placement-left{padding:0 .02083rem}.univer-tooltip-placement-top .univer-tooltip-arrow,.univer-tooltip-placement-topLeft .univer-tooltip-arrow,.univer-tooltip-placement-topRight .univer-tooltip-arrow{bottom:0;margin-left:-.02083rem;border-width:.02083rem .02083rem 0;border-top-color:rgb(var(--color-black))}.univer-tooltip-placement-top .univer-tooltip-arrow{left:50%}.univer-tooltip-placement-right .univer-tooltip-arrow{left:0;margin-top:-.02083rem;border-width:.02083rem .02083rem .02083rem 0;border-right-color:rgb(var(--color-black))}.univer-tooltip-placement-right .univer-tooltip-arrow{top:50%}.univer-tooltip-placement-left .univer-tooltip-arrow{right:0;margin-top:-.02083rem;border-width:.02083rem 0 .02083rem .02083rem;border-left-color:rgb(var(--color-black))}.univer-tooltip-placement-left .univer-tooltip-arrow{top:50%}.univer-tooltip-placement-bottom .univer-tooltip-arrow{top:0;margin-left:-.02083rem;border-width:0 .02083rem .02083rem;border-bottom-color:rgb(var(--color-black))}.univer-tooltip-placement-bottom .univer-tooltip-arrow{left:50%}.univer-tooltip-inner{padding:var(--padding-xs) var(--padding-lg);color:rgb(var(--color-white));text-align:left;text-decoration:none;background-color:rgb(var(--color-black));border-radius:var(--border-radius-base)}.univer-tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.univer-slider{-webkit-user-select:none;user-select:none;display:flex;gap:var(--margin-xxs);align-items:center}.univer-slider-disabled{cursor:not-allowed}.univer-slider-disabled .univer-slider-rail{background-color:rgb(var(--grey-300))}.univer-slider-disabled .univer-slider-handle{background-color:rgb(var(--grey-300));box-shadow:none}.univer-slider-disabled .univer-slider-handle:hover{cursor:not-allowed;background-color:rgb(var(--grey-300))}.univer-slider-disabled .univer-slider-reset-point{cursor:not-allowed}.univer-slider-disabled .univer-slider-value:hover{cursor:not-allowed;background-color:rgb(var(--grey-300))}.univer-slider-disabled .univer-slider-value{pointer-events:none;color:rgb(var(--grey-300))}.univer-slider-disabled .univer-slider-value:hover{background-color:transparent}.univer-slider-rail{position:relative;width:.60417rem;height:.01042rem;padding:0 .03125rem;background-color:rgb(var(--text-color-secondary));border-radius:.07813rem}.univer-slider-inner-rail{position:relative;height:.01042rem}.univer-slider-handle{cursor:pointer;position:absolute;top:calc(50% - .03125rem);transform:translate(-50%);width:.0625rem;height:.0625rem;background-color:rgb(var(--color-white));border-radius:50%;box-shadow:0 0 .03125rem #0000001a;transition:background .2s}.univer-slider-handle:hover{background-color:rgb(var(--border-color));box-shadow:none}.univer-slider-reset-point{cursor:pointer;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-sizing:border-box;width:.02083rem;height:.01042rem;background-color:rgb(var(--color-white));border-radius:50%}.univer-slider-value{cursor:pointer;width:.28646rem;height:.14583rem;font-size:var(--font-size-xs);line-height:2;color:rgb(var(--text-color-secondary-darker));text-align:center;border-radius:var(--border-radius-base);transition:all .2s;text-decoration:none}.univer-slider-value:hover{background-color:rgb(var(--border-color));text-decoration:inherit;color:inherit}.univer-slider-value.univer-dropdown-open{background-color:rgb(var(--border-color))}.univer-slider-shortcuts{transform:translate(-.14323rem);display:grid;gap:var(--margin-xxs);align-items:center;box-sizing:border-box;width:.66667rem;padding:var(--padding-sm);font-size:var(--font-size-xs);background-color:rgb(var(--color-white));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-slider-shortcut{cursor:pointer;position:relative;box-sizing:border-box;padding:var(--padding-xs) 0 var(--padding-xs) .1875rem;color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s;text-decoration:none}.univer-slider-shortcut:hover{background-color:rgb(var(--bg-color-hover));color:inherit;text-decoration:inherit}.univer-slider-shortcut-icon{position:absolute;top:0;left:var(--padding-xs);height:100%;color:rgb(var(--success-color));display:flex;align-items:center}.univer-slider-shortcut-active{background-color:rgb(var(--bg-color-hover))}.univer-tree{-webkit-user-select:none;user-select:none;position:relative;color:rgb(var(--text-color))}.univer-tree-icon{position:absolute;top:50%;left:calc(-1 * var(--padding-lg));transform:translateY(-50%) rotate(-90deg);display:flex;align-items:center;justify-content:center;font-size:.04167rem}.univer-tree-icon-expand{transform:translateY(-50%)}.univer-tree-list{margin:0;padding:0;list-style:none}.univer-tree-list .univer-tree-list{overflow:hidden;height:0}.univer-tree-list .univer-tree-list-expand{height:inherit}.univer-tree-list-item{position:relative;padding-left:var(--padding-xl)}.univer-tree-list-item>a{position:relative;display:flex;align-items:center;cursor:pointer}.univer-tree-list-item-content{margin-bottom:.04167rem}.univer-tree-list-item-content-selected{color:rgb(var(--primary-color))}.univer-tree-list-item-content-selected-icon{position:absolute;top:50%;left:calc(-1 * var(--padding-xl));transform:translateY(-50%);display:flex;align-items:center;justify-content:center;font-size:var(--font-size-lg)}.univer-switch-wrapper{height:.08333rem}.univer-switch-wrapper .univer-switch{position:relative;display:inline-block;width:.14583rem;height:.08333rem}.univer-switch-wrapper .univer-switch input{opacity:0}.univer-switch-wrapper .univer-slider{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:rgb(var(--bg-color-hover));transition:background-color .2s;border-radius:.08333rem}.univer-switch-wrapper .univer-slider:before{position:absolute;content:"";height:.0625rem;width:.0625rem;left:.01042rem;bottom:.01042rem;background-color:rgb(var(--color-white));transition:transform .2s;border-radius:50%}.univer-switch-wrapper input:checked+.univer-slider{background-color:rgb(var(--primary-color))}.univer-switch-wrapper input:checked+.univer-slider:before{transform:translate(.0625rem)}.univer-theme{color:rgb(var(--text-color));font-family:Inter,-apple-system,BlinkMacSystemFont,PingFang SC,Hiragino Sans GB,noto sans,Microsoft YaHei,Helvetica Neue,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}.univer-render-canvas::selection{pointer-events:none}.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{position:absolute;width:.10417rem;height:.10417rem}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:.01563rem;bottom:.01563rem;width:.02604rem;height:.02604rem;border-right:.01042rem solid rgba(0,0,0,.4);border-bottom:.01042rem solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-.05208rem;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-.05208rem;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.univer-textarea{position:relative;width:1.45833rem;padding:var(--padding-sm);box-sizing:border-box;border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base);overflow:hidden;transition:all .15s}.univer-textarea:hover,.univer-textarea:focus{border-color:rgb(var(--primary-color));outline:none}.univer-mentions{width:100%}.univer-mentions__control{min-height:.16667rem}.univer-mentions__highlighter{border-radius:.03125rem;background:rgba(var(--color-white));padding:.03125rem .05208rem;font-size:.06771rem!important;line-height:.10417rem!important;max-height:.59375rem}.univer-mentions__highlighter strong{color:rgb(var(--blue-500))}.univer-mentions__highlighter__substring{visibility:inherit!important;color:rgb(var(--color-black))}.univer-mentions__input{width:100%;caret-color:red;background-color:transparent;color:transparent;padding:.03125rem .05208rem;border:.00521rem solid rgb(var(--border-color));border-radius:.03125rem;font-size:.06771rem!important;line-height:.10417rem!important;max-height:.59375rem}.univer-mentions__input:focus{border:.00521rem solid rgb(var(--blue-500));outline:none!important}.univer-mentions__suggestions{border-radius:.04167rem;overflow:hidden;background:rgb(var(--color-white))!important;border:.00521rem solid rgb(var(--grey-200))!important;box-shadow:var(--box-shadow-base)!important;width:100%;box-sizing:border-box;margin-top:.10417rem!important}.univer-mentions__suggestions__list{display:flex;flex-direction:column;padding:.04167rem!important;width:100%;box-sizing:border-box}.univer-mentions__suggestions__item{padding:.02083rem .04167rem;border-radius:.03125rem}.univer-mentions__suggestions__item--focused{background-color:rgb(var(--grey-50))}.univer-ui-plugin-sheets-font-family{overflow:hidden;width:.625rem;font-size:var(--font-size-xs);text-overflow:ellipsis;white-space:nowrap}.univer-ui-plugin-sheets-font-family-item{font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size{width:.14583rem;height:.125rem;font-size:var(--font-size-xs)}.univer-ui-plugin-sheets-font-size-input{height:.125rem;line-height:.125rem;background-color:transparent;border:none}.univer-ui-plugin-sheets-font-size-input input{font-size:var(--font-size-xs);background-color:transparent}.univer-text-editor-container{position:relative;width:100%;height:.15625rem;-webkit-user-select:none;user-select:none;border:.00521rem solid rgb(var(--border-color));transition:all .15s;border-radius:var(--border-radius-base)}.univer-text-editor-container:hover,.univer-text-editor-container:active,.univer-text-editor-container-active,.univer-text-editor-container-active:hover{border:.00521rem solid rgb(var(--hyacinth-500))}.univer-text-editor-container-error,.univer-text-editor-container-error:hover{border:.00521rem solid rgb(var(--red-400))}.univer-text-editor-container-disabled,.univer-text-editor-container-disabled:hover{border-color:rgb(var(--grey-100))}.univer-text-editor-container-placeholder{position:absolute;top:49%;left:.02604rem;transform:translateY(-50%);color:rgb(var(--grey-400));font-size:var(--font-size-xs);pointer-events:none}.univer-text-editor-validation-error{position:absolute;top:-.08333rem;font-size:.05208rem;color:rgb(var(--red-400))}.univer-menu-item-no-hover,.univer-menu-item-no-hover.univer-menu-item-active{background:none}.univer-menu-item-activated{background-color:rgb(var(--bg-color-hover))}.univer-menu-item-content{display:inline-flex;gap:var(--margin-xs);align-items:center}.univer-menu-item-selectable{position:relative;padding-left:var(--padding-xl)}.univer-menu-item-selectable-icon{position:absolute;left:0;display:inline-flex;align-items:center;font-size:var(--font-size-lg)}.univer-menu-item-more-icon{font-size:var(--font-size-sm);color:rgb(var(--text-color))}.univer-progress-bar{width:.83333rem;height:.02083rem;background-color:rgb(var(--border-color));border-radius:var(--border-radius-lg);margin-right:.04167rem}.univer-progress-bar-container{display:flex;align-items:center;margin:0 .04167rem}.univer-progress-bar-inner{height:.02083rem;border-radius:var(--border-radius-lg);transition:width .5s}.univer-progress-bar-close-button{background:none;border:none;font-size:.0625rem;color:rgb(var(--text-color));cursor:pointer;padding:0;margin:0;line-height:1;display:flex;align-items:center}.univer-progress-bar-close-button:hover{color:rgb(var(--text-color-secondary))}.univer-range-selector{overflow:hidden;display:flex;align-items:center;justify-content:space-between;color:rgb(var(--grey-600));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base);width:1.14583rem;height:.14583rem}.univer-range-selector-editor{position:relative;-webkit-user-select:none;user-select:none;width:100%;height:100%;border:0;outline:0}.univer-range-selector-icon{cursor:pointer;display:flex;align-items:center;justify-content:center;width:.125rem;height:.125rem;padding:0;margin-right:.02083rem;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-range-selector-icon:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-range-selector-icon[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-range-selector:hover,.univer-range-selector-active{border-color:rgb(var(--hyacinth-500))}.univer-range-selector-active .univer-range-selector-icon{color:rgb(var(--hyacinth-500))}.univer-range-selector-error{border-color:rgb(var(--red-400))}.univer-range-selector-error .univer-range-selector-icon{color:rgb(var(--red-400))}.univer-range-selector-error:hover{border-color:rgb(var(--red-400))}.univer-range-selector-disabled{border-color:rgb(var(--grey-100))}.univer-range-selector-disabled .univer-range-selector-icon{color:rgb(var(--grey-100))}.univer-range-selector-disabled:hover{border-color:rgb(var(--grey-100))}.univer-range-selector-modal{position:relative;max-height:2.60417rem;overflow:hidden;overflow-y:auto}.univer-range-selector-modal-container{display:flex;flex-direction:row;align-items:center;margin-bottom:.05208rem}.univer-range-selector-modal-container-input{display:inline-block;width:1.45833rem}.univer-range-selector-modal-container-input-active{border-color:rgb(var(--hyacinth-500))}.univer-range-selector-modal-container-button{display:inline-block;text-align:center;width:.14583rem}.univer-range-selector-modal-container-button:hover{cursor:pointer;color:rgb(var(--hyacinth-500))}.univer-range-selector-modal-container-delete-button{margin:auto}.univer-range-selector-modal-add{position:relative;width:1.5625rem;margin-top:.02604rem;text-align:left;color:rgb(var(--hyacinth-500));font-size:var(--font-size-xs)}.univer-range-selector-modal-add .univer-range-selector-modal-add-button{display:flex;align-items:center;justify-content:center}.univer-range-selector-modal-add .univer-range-selector-modal-add-button:hover{cursor:pointer;background-color:rgb(var(--hyacinth-500),.05)}.univer-shortcut-panel-group-title{height:.20833rem;font-size:.06771rem;font-weight:700;line-height:.20833rem}.univer-shortcut-panel-item{display:flex;justify-content:space-between;height:.20833rem;font-size:.06771rem;line-height:.20833rem}.univer-shortcut-panel-item-title{overflow:hidden;flex-grow:1;flex-shrink:1;max-width:1.04167rem;text-overflow:ellipsis;text-wrap:nowrap}.univer-shortcut-panel-item-shortcut{flex-grow:0;flex-shrink:0}.univer-shortcut-panel-item:not(:last-of-type){border-bottom:.00521rem solid rgb(var(--grey-200))}.univer-float-dom-wrapper{z-index:10}.univer-float-dom{overflow:hidden}.univer-toolbar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;min-width:.125rem;height:.125rem;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-toolbar-btn:not([disabled]):hover{background-color:rgb(var(--grey-100))}.univer-toolbar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-btn-active{background-color:rgb(var(--grey-100))}.univer-toolbar-btn-active[disabled]{color:rgba(var(--text-color),.25)}.univer-headerbar{-webkit-user-select:none;user-select:none;position:relative}.univer-headerbar>.univer-header-menu{position:absolute;top:0;right:0;display:flex;box-sizing:border-box;height:100%}.univer-headerbar>.univer-header-menu>div{-webkit-user-select:none;user-select:none;display:inline-flex;align-items:center;height:.14583rem;margin-left:.02083rem;padding:.01042rem .02083rem;text-align:center;border-radius:.02083rem}.univer-headerbar>.univer-header-menu>div:hover{background-color:rgb(var(--grey-300))}.univer-menubar{display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;height:.16667rem}.univer-menubar-item{cursor:pointer;display:block;padding:var(--padding-xs) var(--padding-sm);font-size:var(--font-size-xs);font-weight:400;border-radius:var(--border-radius-base);transition:all .1s ease-in-out}.univer-menubar-item:hover:not(.univer-menubar-item-active){background:rgb(var(--grey-300))}.univer-menubar-item-active{color:rgb(var(--color-white));background:rgb(var(--primary-color))}.univer-toolbar{-webkit-user-select:none;user-select:none;position:relative;display:flex;align-items:center;box-sizing:border-box;height:.16667rem;font-size:var(--font-size-base);color:rgb(var(--text-color));background-color:rgb(var(--bg-color-secondary));border-bottom:.00521rem solid rgb(var(--border-color))}.univer-toolbar-container{padding:0 var(--padding-lg);display:flex;gap:var(--margin-xs);align-items:center;justify-content:center;box-sizing:border-box;height:100%;margin:0 auto;max-width:100%;overflow:hidden}.univer-toolbar-more{max-width:80%}.univer-toolbar-more-container{display:grid;box-sizing:border-box;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-base)}.univer-toolbar-more-container .univer-toolbar-group{flex-wrap:wrap}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child):after{content:initial}.univer-toolbar-more-container .univer-toolbar-group:not(:last-child)>*{margin-bottom:var(--margin-xs)}.univer-toolbar-group{display:flex;gap:var(--margin-xs);align-items:center;flex-shrink:0}.univer-toolbar-group>*{flex-shrink:0}.univer-toolbar-group:not(:last-child,:empty):after{content:"";display:block;width:.00521rem;height:.10417rem;background-color:rgb(var(--border-color));flex-shrink:0}.univer-toolbar-item-select-button{cursor:pointer;position:relative;overflow:hidden;display:flex;gap:var(--margin-xs);align-items:center;height:.125rem;padding-right:.09375rem;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-button-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-label:hover,.univer-toolbar-item-select-button-disabled.univer-toolbar-item-select-button-activated .univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-100))!important}.univer-toolbar-item-select-button-activated,.univer-toolbar-item-select-button:hover,.univer-toolbar-item-select-button:hover .univer-toolbar-item-select-button-label{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select-button-label{position:relative;z-index:1;display:flex;align-items:center;height:100%;padding:0 var(--padding-xs)}.univer-toolbar-item-select-button-label:hover{background-color:rgb(var(--grey-300))!important}.univer-toolbar-item-select-button-arrow{position:absolute;top:0;left:0;display:flex;align-items:center;justify-content:flex-end;box-sizing:border-box;width:100%;height:100%;padding-right:var(--padding-xs);color:rgb(var(--grey-400))}.univer-toolbar-item-select-button-arrow:hover{background-color:rgb(var(--grey-300))}.univer-toolbar-item-select{cursor:pointer;position:relative;display:flex;gap:var(--margin-xs);align-items:center;height:.125rem;padding:0 var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-toolbar-item-select-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-disabled.univer-toolbar-item-select-activated:hover,.univer-toolbar-item-select-activated{background-color:rgb(var(--grey-100))}.univer-toolbar-item-select:hover{background-color:rgb(var(--grey-100));border-radius:var(--border-radius-base)}.univer-toolbar-item-select-arrow{display:flex;align-items:center;height:100%;color:rgb(var(--grey-400))}.univer-toolbar-item-select-arrow-disabled{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated{color:rgba(var(--text-color),.25)}.univer-toolbar-item-select-arrow-disabled.univer-toolbar-item-select-arrow-activated:hover,.univer-toolbar-item-select-arrow-activated{background-color:rgb(var(--grey-100))}.univer-sidebar{position:relative;transform:translate(100%);box-sizing:border-box;width:0;height:100%;color:rgb(var(--text-color));transition:all .15s}.univer-sidebar.univer-sidebar-open{transform:translate(0);width:1.97917rem}.univer-sidebar-container{overflow-y:auto;display:grid;grid-template-rows:auto 1fr auto;box-sizing:border-box;width:100%;height:0;min-height:100%;margin:auto;background-color:rgb(var(--bg-color-secondary));border-bottom:.00521rem solid rgb(var(--border-color));border-left:.00521rem solid rgb(var(--border-color));scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-sidebar-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;height:.22917rem;padding:var(--padding-xl) var(--padding-xl) 0;font-size:var(--font-size-lg);font-weight:500;background:rgb(var(--bg-color-secondary));box-sizing:border-box;z-index:10}.univer-sidebar-header-close{cursor:pointer;color:rgb(var(--text-color-secondary))}.univer-sidebar-body{padding:0 var(--padding-xl);box-sizing:border-box}.univer-sidebar-footer{position:sticky;bottom:0;padding:var(--padding-xl);background:rgb(var(--bg-color-secondary));box-sizing:border-box}.univer-zen-zone{position:absolute;display:none}.univer-zen-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-zen-zone-close{display:none}.univer-global-zone{position:absolute;display:none}.univer-global-zone-open{z-index:100;top:0;left:0;display:block;width:100%;height:100%;background:rgb(var(--bg-color))}.univer-global-zone-close{display:none}.univer-workbench-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-workbench-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-workbench-container-header{position:relative;z-index:10;width:100%}.univer-workbench-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-workbench-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:.00521rem solid rgb(var(--border-color))}.univer-workbench-container-canvas{position:relative;overflow:hidden}.univer-workbench-container-left-sidebar,.univer-workbench-container-sidebar{height:100%}.univer-notification{position:fixed;z-index:1000;display:flex;flex-direction:column;align-items:flex-end;justify-content:center;box-sizing:border-box;margin:var(--margin-xs) 0}.univer-notification-notice{display:flex;gap:var(--margin-xs);justify-content:space-between;width:1.45833rem;padding:var(--padding-lg);font-size:var(--font-size-lg);background-color:rgb(var(--color-white));border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg)}.univer-notification-notice-wrapper{margin:var(--margin-xs) var(--margin-base)}.univer-notification-notice-content{display:inline-flex;gap:var(--margin-xs);align-items:center;align-items:flex-start}.univer-notification-notice-close{cursor:pointer;display:flex;align-items:center;justify-content:center;width:fit-content;height:fit-content;padding:var(--padding-xs);color:rgb(var(--text-color-secondary));border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-notification-notice-close:hover{background-color:rgb(var(--bg-color-hover))}.univer-notification-icon{padding:var(--padding-xs)}.univer-notification-icon-success{color:rgb(var(--success-color))}.univer-notification-icon-info{color:rgb(var(--info-color))}.univer-notification-icon-warning{color:rgb(var(--warning-color))}.univer-notification-icon-error{color:rgb(var(--error-color))}.univer-notification-content-container{display:inline-flex;flex-direction:column;gap:var(--margin-xs);align-items:flex-start;padding-top:var(--padding-xs)}.univer-notification-title{color:rgb(var(--text-color))}.univer-notification-content{color:rgb(var(--text-color-secondary))}.univer-notification-content-ellipsis{overflow:hidden;display:-webkit-box;text-overflow:ellipsis;-webkit-box-orient:vertical}.univer-notification-top,.univer-notification-topLeft,.univer-notification-topRight{top:0}.univer-notification-bottom,.univer-notification-bottomRight,.univer-notification-bottomLeft{bottom:0}.univer-notification-bottomRight,.univer-notification-topRight{right:0}.univer-notification-fade{overflow:hidden;transition:all .3s}.univer-notification-fade-appear-prepare{opacity:0}.univer-notification-fade-appear-start{transform:translate(100%);opacity:0}.univer-notification-fade-appear-active{transform:translate(0);opacity:1}.univer-notification-fade-appear,.univer-notification-fade-enter{opacity:0;animation-play-state:paused;animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both}.univer-notification-fade-leave{animation-duration:.3s;animation-timing-function:cubic-bezier(.55,0,.55,.2);animation-fill-mode:both;animation-play-state:paused}.univer-notification-fade-appear.univer-notification-fade-appear-active,.univer-notification-fade-enter.univer-notification-fade-enter-active{animation-name:univer-notification-fade-in;animation-play-state:running}.univer-notification-fade-leave.univer-notification-fade-leave-active{animation-name:univer-notification-fade-out;animation-play-state:running}@keyframes univer-notification-fade-in{0%{opacity:0}to{opacity:1}}@keyframes univer-notification-fade-out{0%{opacity:1}to{opacity:0}}.univer-app-layout{display:flex;flex-direction:column;height:100%;background-color:rgb(var(--bg-color));min-height:0;position:relative}.univer-app-header{width:100vw}.univer-app-container{position:relative;display:flex;flex:1;flex-direction:column;min-height:0}.univer-app-container-header{position:relative;z-index:10;width:100%}.univer-app-container-wrapper{display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:100%;height:100%;overflow:hidden}.univer-app-container-content{position:relative;overflow:hidden;display:grid;grid-template-rows:auto 1fr;flex:1;background-color:rgb(var(--bg-color-secondary));border-bottom:.00521rem solid rgb(var(--border-color))}.univer-app-container-canvas{position:relative;overflow:hidden}.univer-app-container-left-sidebar,.univer-app-container-sidebar{height:100%}.univer-mobile-menu-container{min-width:.16667rem;max-width:1.04167rem;display:grid;grid-gap:.02083rem;background-color:#000;border-radius:.02083rem;padding:.02083rem .04167rem}.univer-mobile-menu-item{display:flex;flex-direction:column;justify-content:center;align-items:center;border:none;background:none;color:#fff;width:.25rem}.univer-mobile-menu-item>svg{font-size:.09375rem;height:.09375rem;width:.09375rem}.univer-mobile-menu-item>span{width:100%;margin-top:.01042rem;font-size:.06771rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.univer-panel{padding-top:.10417rem;font-size:var(--font-size-sm)}.univer-options-section{margin-top:.05208rem;padding-bottom:.05208rem}.univer-options-form-item{display:block;margin-bottom:.02604rem}.univer-options-input{width:80%;margin-top:.02604rem}.univer-options-margin-setting{display:flex}.univer-doc-list-type-picker{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;padding:var(--padding-sm);width:1.25rem;margin-bottom:-var(--margin-xs)}.univer-doc-list-type-picker-item{width:.375rem;height:.42188rem;border-radius:.02083rem;border:.00521rem solid rgb(var(--border-color));margin-bottom:var(--margin-xs)}.univer-doc-list-type-picker-item:hover,.univer-doc-list-type-picker-item-active{border:.00521rem solid rgb(var(--blue-400))}.univer-doc-count-bar{display:flex;flex:0 0 1.35417rem;justify-content:flex-end}.univer-doc-footer-container{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:0 var(--padding-xl)}.univer-paragraph-setting-icon-list{display:flex;width:100%;padding:.02083rem;align-items:center;gap:.02083rem;justify-content:space-between;border:.00521rem solid var(---Grey-200, #e5e5e5);border-radius:var(--radius-m, 6px)}.univer-paragraph-setting-icon-list-item{padding:.02083rem .07292rem;border-radius:.02083rem;background:none;display:flex;justify-content:center;align-items:center;cursor:pointer}.univer-paragraph-setting-icon-list-item:hover{background:var(--black-6, rgba(30, 34, 43, .06))}.univer-paragraph-setting-icon-list-item.univer-paragraph-setting-icon-list-active{background:var(--black-9, rgba(30, 34, 43, .09))}.univer-paragraph-setting-title{margin-top:var(--margin-base);font-size:.06771rem;color:#1e222b;font-weight:500}.univer-paragraph-setting-label{font-size:.0625rem;margin-top:var(--margin-sm);color:#1e222b;font-weight:400}.univer-paragraph-setting-mt-base{margin-top:var(--margin-base)}.univer-paragraph-setting-flex-col{display:flex;justify-content:space-between;align-items:center}.univer-paragraph-setting-space-line{display:flex;flex-direction:column;gap:.03125rem}.univer-create{padding:.10417rem auto;display:flex;align-content:center;justify-content:space-between}.univer-create-item{display:flex;align-items:center}.univer-create-label{margin-right:.02604rem}.univer-create-input{width:.57292rem}.univer-formula-help-function{-webkit-user-select:none;user-select:none;box-sizing:border-box;width:1.30208rem;margin:0;line-height:.10417rem;list-style:none;background-color:rgb(var(--bg-color-secondary));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base)}.univer-formula-help-function-title{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;padding:var(--padding-base) var(--padding-lg);font-size:var(--font-size-xxs);font-weight:500;color:rgb(var(--text-color));overflow-wrap:anywhere;border-bottom:.00521rem solid rgb(var(--border-color))}.univer-formula-help-function-title-icons{display:flex}.univer-formula-help-function-title-icon{cursor:pointer;display:flex;align-items:center;justify-content:center;width:.125rem;height:.125rem;margin-left:var(--margin-xs);padding:0;font-size:var(--font-size-xs);color:rgb(var(--text-color-secondary));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none;transition:background-color .2s}.univer-formula-help-function-title-icon:hover{background-color:rgb(var(--bg-color-hover))}.univer-formula-help-function-content{overflow-y:auto;box-sizing:border-box;max-height:1.82292rem;padding:0 var(--padding-lg) var(--padding-base) var(--padding-lg)}.univer-formula-help-function-content-inner{margin-top:var(--margin-sm)}.univer-formula-help-function-content-params{margin:var(--margin-xs) 0}.univer-formula-help-function-content-params-title{margin-bottom:var(--margin-xs);font-size:var(--font-size-xs);font-weight:500;color:rgb(var(--text-color))}.univer-formula-help-function-content-params-detail{font-size:var(--font-size-xxs);font-weight:400;white-space:pre-wrap;word-wrap:break-word;color:rgb(var(--text-color-secondary))}.univer-formula-help-function-active{color:rgb(var(--primary-color))}.univer-formula-help-decorator{cursor:pointer;position:fixed;z-index:10;display:flex;align-items:center;justify-content:center;padding:var(--padding-xs)}.univer-formula-help-param,.univer-formula-help-param-prefix,.univer-formula-help-param-item,.univer-formula-help-param-active{z-index:1}.univer-formula-search-function{box-sizing:border-box;width:1.30208rem;max-height:2.08333rem;margin:0;padding:var(--padding-sm);line-height:.10417rem;list-style:none;background-color:rgb(var(--bg-color-secondary));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);outline:none;box-shadow:var(--box-shadow-base);overflow:hidden;overflow-y:auto}.univer-formula-search-function-item{cursor:pointer;box-sizing:border-box;padding:var(--padding-xs) var(--padding-sm);color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s}.univer-formula-search-function-item-name{font-size:var(--font-size-xxs)}.univer-formula-search-function-item-name-light{color:rgb(var(--error-color))}.univer-formula-search-function-item-desc{display:block;font-size:var(--font-size-xxs);color:rgb(var(--grey-500))}.univer-formula-search-function-item-active{background-color:rgb(var(--bg-color-hover))}.univer-formula-more-functions{display:flex;flex-direction:column;justify-content:space-between;height:100%;line-height:.10417rem}.univer-formula-more-functions-operation{display:flex;justify-content:flex-end}.univer-formula-more-functions-operation>button{margin:0 0 var(--margin-lg) var(--margin-base)}.univer-formula-function-params{margin-bottom:var(--margin-xs);font-size:var(--font-size-xxs)}.univer-formula-function-params-title{font-weight:500;color:rgb(var(--text-color-secondary))}.univer-formula-function-params-detail{font-weight:400;color:rgb(var(--text-color))}.univer-formula-input-params-list{overflow-y:auto;height:1.89583rem}.univer-formula-input-params-list-item-name{font-size:var(--font-size-sm)}.univer-formula-input-params-list-item-selector{margin:var(--margin-xxs) 0 var(--margin-xs) 0}.univer-formula-select-function-select{display:flex;gap:10%;align-items:center;justify-content:space-between}.univer-formula-select-function-result{-webkit-user-select:none;user-select:none;overflow-y:auto;box-sizing:border-box;width:100%;max-height:1.89583rem;margin:0;margin-top:var(--margin-xs);padding:var(--padding-base);list-style:none;border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-base);outline:none}.univer-formula-select-function-result-item{cursor:pointer;position:relative;box-sizing:border-box;padding:var(--padding-xs) .14583rem;font-size:var(--font-size-xs);color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s}.univer-formula-select-function-result-item>span{display:block}.univer-formula-select-function-result-item-name-light{color:rgb(var(--error-color))}.univer-formula-select-function-result-item-selected{position:absolute;top:50%;left:.03125rem;transform:translateY(-50%);display:inline-flex;font-size:var(--font-size-lg);color:rgb(var(--success-color))}.univer-formula-select-function-result-item-active{background-color:rgb(var(--bg-color-hover))}.univer-formula-select-function-content{overflow-y:auto;max-height:1.59896rem;margin:var(--margin-xs) 0}.univer-ui-plugin-sheets-border-panel{display:grid;gap:var(--margin-sm)}.univer-ui-plugin-sheets-border-panel-position{display:grid;grid-template-columns:repeat(5,1fr);gap:var(--margin-xxs);box-sizing:border-box;padding-bottom:var(--padding-base);border-bottom:.00521rem solid rgb(var(--border-color))}.univer-ui-plugin-sheets-border-panel-position-item{display:flex;align-items:center;justify-content:center;width:.125rem;height:.125rem;font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-ui-plugin-sheets-border-panel-position-item:hover,.univer-ui-plugin-sheets-border-panel-position-item-active{background-color:rgb(var(--bg-color-hover))}.univer-ui-plugin-sheets-border-panel-styles{display:flex;gap:var(--margin-xs);align-items:center;justify-content:space-around}.univer-ui-plugin-sheets-border-panel-board{box-sizing:border-box;padding:var(--padding-base);background-color:rgb(var(--bg-color-secondary));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-base)}.univer-ui-plugin-sheets-border-panel-button{cursor:pointer;position:relative;display:flex;gap:var(--margin-xs);align-items:center;height:.125rem;padding:0 var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base);transition:all .15s}.univer-ui-plugin-sheets-border-panel-button:hover{background-color:rgb(var(--bg-color-hover))}.univer-ui-plugin-sheets-border-panel-more-icon{color:rgb(var(--grey-400))}.univer-sheets-ui-context-menu-input{display:flex;gap:var(--margin-sm);align-items:center}.univer-sheets-ui-context-menu-input-container{width:.375rem}.univer-sheets-ui-context-menu-input-number{height:.125rem}.univer-defined-name{display:flex;position:relative;transition:height .15s;border-right:.00521rem solid rgb(var(--border-color));height:100%;width:.52083rem;box-sizing:border-box}.univer-defined-name-drop-down{display:flex;align-items:center;justify-content:center;padding:0 var(--padding-xs);cursor:pointer;position:absolute;right:0;height:100%}.univer-defined-name-drop-down:hover{background-color:rgb(var(--grey-50));color:rgb(var(--primary-color))}.univer-defined-name-drop-down-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-defined-name-drop-down-disable:hover{color:rgb(var(--grey-200))}.univer-defined-name-overlay{position:relative;border:.00521rem solid rgb(var(--border-color));width:1.5625rem;background-color:rgb(var(--color-white));transform:translate(-.39063rem)}.univer-defined-name-overlay-container{position:relative;height:100%;max-height:2.08333rem;width:100%;overflow:hidden;overflow-y:auto;scrollbar-color:rgba(var(--scrollbar-color),.7) transparent;scrollbar-gutter:auto;scrollbar-width:thin}.univer-defined-name-overlay-item{display:flex;align-items:center;justify-content:space-between;padding:var(--padding-xs);border-bottom:.00521rem solid rgb(var(--border-color));-webkit-user-select:none;user-select:none;cursor:pointer}.univer-defined-name-overlay-item:hover{background-color:rgb(var(--grey-50))}.univer-defined-name-overlay-item-name{font-size:var(--font-size-md);color:rgb(var(--grey-900));margin:.02604rem 0;overflow:hidden;text-overflow:ellipsis;flex:1}.univer-defined-name-overlay-item-name-for-sheet{font-size:var(--font-size-xxs);color:rgb(var(--grey-400));margin-left:.02604rem;font-weight:400}.univer-defined-name-overlay-item-formula{font-size:var(--font-size-xs);color:rgb(var(--grey-800));margin:.02604rem 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1}.univer-defined-name-overlay-manager{position:absolute;display:flex;flex-direction:column;overflow-y:auto;width:100%;cursor:pointer;overflow:hidden;background-color:rgb(var(--color-white))}.univer-defined-name-overlay-manager:hover{background-color:rgb(var(--grey-50))}.univer-defined-name-overlay-manager-title{font-size:var(--font-size-xs);font-weight:700;margin:var(--margin-xs);margin-bottom:0;color:rgb(var(--grey-800))}.univer-defined-name-overlay-manager-content{font-size:var(--font-size-xxs);margin:var(--margin-xs);color:rgb(var(--grey-500))}.univer-defined-name-container{width:100%;position:relative}.univer-defined-name-container-scroll{width:100%;overflow:hidden;overflow-y:auto;position:absolute}.univer-defined-name-container-addButton{display:flex;align-items:center;justify-content:center;width:100%;height:.20833rem;border-top:.00521rem solid rgb(var(--border-color));border-bottom:.00521rem solid rgb(var(--border-color));font-size:var(--font-size-md);color:rgb(var(--primary-color))}.univer-defined-name-container-addButton:hover{background-color:rgb(var(--grey-50));cursor:pointer}.univer-defined-name-container-addButton-text{margin-left:.02604rem}.univer-defined-name-container-item{position:relative;display:flex;align-items:center;justify-content:space-between;padding:var(--padding-xs);border-bottom:.00521rem solid rgb(var(--border-color));-webkit-user-select:none;user-select:none;cursor:default}.univer-defined-name-container-item-name{font-size:var(--font-size-sm);font-weight:500;color:rgb(var(--color-black));margin:.02604rem 0;max-width:.98958rem;max-height:.52083rem;overflow:hidden}.univer-defined-name-container-item-name-for-sheet{font-size:var(--font-size-xxs);color:rgb(var(--grey-400));margin-left:.02604rem;font-weight:400}.univer-defined-name-container-item-formula-or-refString{font-size:var(--font-size-xs);color:rgb(var(--grey-500));font-weight:400;margin:.02604rem 0;max-height:.52083rem;text-overflow:ellipsis;overflow:hidden}.univer-defined-name-container-item-update{position:absolute;font-size:var(--font-size-xs);color:rgb(var(--primary-color));cursor:pointer;padding:.02083rem;transform:translateY(-50%);border-radius:var(--border-radius-base);right:.3125rem;top:.10417rem}.univer-defined-name-container-item-update:hover{background-color:rgb(var(--hyacinth-50))}.univer-defined-name-container-item-delete{position:absolute;font-size:var(--font-size-xs);color:rgb(var(--error-color));cursor:pointer;padding:.02083rem;right:.10417rem;top:.10417rem;transform:translateY(-50%);border-radius:var(--border-radius-base)}.univer-defined-name-container-item-delete:hover{background-color:rgb(var(--hyacinth-50))}.univer-defined-name-container-item-show{display:none}.univer-defined-name-container-item:hover{background-color:rgb(var(--grey-50))}.univer-defined-name-container-item:hover .univer-defined-name-container-item-show{display:block}.univer-defined-name-input{display:flex;align-items:center;justify-content:left;border-bottom:.00521rem solid rgb(var(--border-color));padding-bottom:.02604rem}.univer-defined-name-input>div{width:100%;margin-top:.02604rem}.univer-defined-name-input-validation{display:flex;align-items:center;justify-content:left;color:rgb(var(--error-color));font-size:var(--font-size-xs)}.univer-defined-name-input-validation>span{margin-right:.01042rem}.univer-defined-name-input-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-count-bar{display:flex;flex:0 0 1.35417rem;justify-content:flex-end}.univer-editor-container{position:absolute;z-index:10;top:1.04167rem;left:.52083rem;display:flex;width:.52083rem;height:.26042rem;border:.00521rem solid rgb(var(--primary-color));box-shadow:none;box-sizing:border-box}.univer-editor-container .univer-editor-input{position:relative;display:flex;width:100%;height:100%}.univer-editor-container .univer-editor-input canvas{position:absolute}.univer-formula-box{display:flex;box-sizing:border-box;height:.14583rem;background:rgb(var(--bg-color-secondary));border-bottom:.00521rem solid rgb(var(--border-color));transition:height .15s}.univer-formula-box .univer-name-ranges{box-sizing:border-box;width:.52083rem;height:100%;position:relative}.univer-formula-box .univer-formula-bar{display:flex;width:100%;height:100%}.univer-formula-box .univer-formula-bar .univer-formula-icon{padding:.03125rem 0}.univer-formula-box .univer-formula-bar .univer-formula-icon-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:.41667rem;height:100%;font-size:var(--font-size-xs);border-right:.00521rem solid rgb(var(--border-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container{display:flex;align-items:center;justify-content:center;padding:var(--padding-xs);font-size:var(--font-size-lg);border-radius:var(--border-radius-base)}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-success.univer-formula-active{cursor:pointer;color:rgb(var(--success-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-success.univer-formula-active:hover{background-color:rgb(var(--grey-50))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-error.univer-formula-active{cursor:pointer;color:rgb(var(--error-color))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-error.univer-formula-active:hover{background-color:rgb(var(--grey-50))}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-fx{cursor:pointer}.univer-formula-box .univer-formula-bar .univer-formula-icon-wrapper .univer-icon-container-fx:hover{background-color:rgb(var(--grey-50))}.univer-formula-box .univer-formula-bar .univer-formula-input{overflow:hidden;display:flex;flex:1;width:100%;padding:0 0 0 .05208rem}.univer-formula-box .univer-formula-bar .univer-formula-input .univer-formula-content{position:relative;width:100%;height:100%;word-wrap:break-word;outline:none}.univer-formula-box .univer-formula-bar .univer-formula-input .univer-arrow-container{cursor:pointer;display:flex;align-items:center;justify-content:center;width:.10417rem;height:100%;font-size:var(--font-size-xs);color:rgb(var(--text-color-secondary))}.univer-formula-box .univer-formula-bar .univer-formula-input .univer-arrow-container-disable{color:rgb(var(--grey-200));cursor:not-allowed}.univer-operate-container{position:absolute;z-index:10;right:0;left:0;width:0;height:0}.univer-auto-fill-popup-menu{display:grid;gap:var(--margin-xxs);align-items:center;box-sizing:border-box;min-width:.66667rem;margin-top:0;margin-bottom:0;padding:var(--padding-sm);font-size:var(--font-size-base);background-color:rgb(var(--bg-color-secondary));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-auto-fill-popup-menu li{list-style:none}.univer-auto-fill-popup-menu-item{cursor:pointer;position:relative;display:flex;align-items:center;box-sizing:border-box;width:.69792rem;height:.14583rem;padding:var(--padding-xs) 0 var(--padding-xs) .1875rem;font-size:.06771rem;font-weight:400;font-style:normal;line-height:.10417rem;color:rgb(var(--black, #35322b));text-align:left;border-radius:.02083rem;border-radius:var(--border-radius-base);transition:background .2s}.univer-auto-fill-popup-menu-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-auto-fill-popup-menu-item-icon{position:absolute;top:50%;left:var(--padding-xs);transform:translateY(-50%);display:flex;align-items:center;justify-content:center}.univer-auto-fill-popup-menu-item-title{padding:var(--padding-xs) var(--padding-xs) var(--padding-xs) 0;vertical-align:middle}.univer-auto-fill-popup-menu-item-hide{color:rgb(var(--text-color-secondary))}.univer-auto-fill-popup-menu-item:hover{background:rgb(var(--grey-100))}.univer-btn-container{display:flex;align-items:center;justify-content:center;padding:.01563rem;background:#fff;border:.00521rem solid rgb(var(--grey-200, #e5e5e5));border-radius:.02083rem}.univer-btn-container:hover,.univer-btn-container.univer-btn-container-expand{background:rgb(var(--grey-100, #f5f5f5))}.univer-sheet-bar{position:relative;display:flex;flex:1 1 0;flex-direction:row;min-width:calc(100% - 3.08333rem);max-width:calc(100% - 1.35417rem);height:100%;background-color:rgb(var(--bg-color-secondary))}.univer-sheet-bar-options{display:flex;flex-direction:row;align-items:center;margin:var(--margin-xxs);transition:display .2s}.univer-sheet-bar-options-divider:after{content:"";display:block;width:.00521rem;height:.08333rem;margin:0 var(--margin-xs);background-color:rgb(var(--grey-400))}.univer-sheet-bar-btn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:.125rem;height:.125rem;padding:0;font-size:var(--font-size-lg);color:rgb(var(--text-color-secondary-darker));background-color:transparent;border:none;border-radius:var(--border-radius-base);outline:none}.univer-sheet-bar-btn:not([disabled]):hover{background-color:rgb(var(--bg-color-hover))}.univer-sheet-bar-btn[disabled]{cursor:not-allowed;color:rgb(var(--grey-200))}.univer-sheet-bar-menu{display:grid;gap:var(--margin-xxs);align-items:center;box-sizing:border-box;padding:var(--padding-sm);background-color:rgb(var(--bg-color-secondary));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-sheet-bar-menu li{list-style:none}.univer-sheet-bar-menu-item{cursor:pointer;position:relative;display:flex;box-sizing:border-box;padding:var(--padding-xs) .125rem;color:rgb(var(--text-color));border-radius:var(--border-radius-base);transition:background .2s}.univer-sheet-bar-menu-item:hover{background-color:rgb(var(--bg-color-hover))}.univer-sheet-bar-menu-item-icon{position:absolute;top:50%;left:var(--margin-xxs);transform:translateY(-50%);color:transparent}.univer-sheet-bar-menu-item-hide .univer-sheet-bar-menu-item-icon{display:flex;align-items:center;justify-content:center;width:.08333rem;height:.08333rem;color:rgb(var(--grey-400))}.univer-sheet-bar-menu-item-select{font-weight:500;color:rgb(var(--primary-color))}.univer-sheet-bar-menu-item-select .univer-sheet-bar-menu-item-icon{display:flex;align-items:center;justify-content:center;width:.08333rem;height:.08333rem;color:rgb(var(--primary-color))}.univer-sheet-bar-menu-item-label{font-size:var(--font-size-xs);font-weight:400;line-height:.10417rem;display:flex;align-items:center}.univer-slide-tab-bar-container{overflow:hidden;max-width:calc(100% - .58333rem)}.univer-slide-tab-bar-container .univer-slide-tab-bar{-webkit-user-select:none;user-select:none;overflow:hidden;display:flex;flex-direction:row;align-items:center;padding:var(--padding-xs) .03125rem;transition:box-shadow .2s}.univer-slide-tab-item{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;flex-direction:row;flex-grow:1;align-items:center;box-sizing:border-box;margin:0 var(--margin-xxs);font-size:var(--font-size-xs);line-height:.08333rem;color:rgb(var(--grey-1000));border-radius:var(--border-radius-base)}.univer-slide-tab-item:not(.univer-slide-tab-active):hover{background-color:rgb(var(--bg-color-hover))}.univer-slide-tab-item .univer-slide-tab-div{box-sizing:border-box;padding:var(--padding-xs) var(--padding-sm);white-space:nowrap;border:.01042rem solid transparent;border-radius:var(--border-radius-base);display:flex;align-items:center}.univer-slide-tab-item .univer-slide-tab-div-edit{cursor:text;outline:none}.univer-slide-tab-item .univer-slide-tab-div-edit::selection{color:rgb(var(--color-white));background-color:rgb(var(--primary-color))}.univer-slide-tab-active{font-weight:700;color:rgb(var(--primary-color));background-color:rgb(var(--bg-color-secondary));box-shadow:0 0 .04167rem #00000014;transition:box-shadow .2s;display:flex;justify-content:center}.univer-slide-tab-item-dropdown{-webkit-user-select:none;user-select:none;min-width:auto!important}.univer-status-bar{display:flex;align-items:center;max-width:1.72917rem}.univer-status-bar.univer-single-mode{max-width:.70833rem}.univer-status-bar-div{width:.00521rem;height:.08333rem;margin-left:.05208rem;background:rgb(var(--grey-400, #ccc))}.univer-statistic-list{display:flex}.univer-statistic-list-column{flex-direction:column}.univer-statistic-list-column .univer-statistic-item{font-size:.0625rem;line-height:140%;color:rgb(var(--grey-500))}.univer-statistic-item{cursor:default;overflow:hidden;display:flex;justify-content:flex-start;max-width:.55208rem;margin-right:.04167rem;font-size:var(--font-size-xxs);font-weight:400;font-style:normal;line-height:.10417rem;color:rgb(var(--grey-900));text-align:center;text-overflow:ellipsis;white-space:nowrap}.univer-statistic-item:hover{color:rgb(var(--color-black))}.univer-statistic-picker{display:grid;gap:var(--margin-sm);align-items:center;box-sizing:border-box;width:1.02083rem;padding:var(--padding-base);font-size:var(--font-size-xs);background-color:rgb(var(--color-white));border:.00521rem solid rgb(var(--border-color));border-radius:var(--border-radius-lg);box-shadow:var(--box-shadow-lg)}.univer-statistic-picker-item{display:flex;align-items:center;justify-content:flex-start}.univer-statistic-more{transform:rotate(90deg);display:flex;align-items:center;justify-content:center;width:.125rem;height:.125rem;font-size:.0625rem;color:rgb(var(--grey-600, #e8e8e8));border-radius:.02083rem}.univer-statistic-more:hover{background:rgb(var(--grey-300, #e8e8e8))}.univer-sheet-container{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;height:.1875rem;padding:0 var(--padding-xl);background-color:rgb(var(--bg-color-secondary))}.univer-cell-alert{box-sizing:border-box;box-shadow:var(--box-shadow-base);padding:var(--padding-sm) var(--padding-base);border-radius:var(--border-radius-lg);color:rgba(var(--color-black));background:rgba(var(--color-white));z-index:100;width:.8125rem}.univer-cell-alert-title{height:.10417rem;font-size:var(--font-size-sm);font-weight:500;display:flex;flex-direction:row;align-items:center;margin-bottom:.03125rem;line-height:.10417rem}.univer-cell-alert-icon{margin-right:.03125rem}.univer-cell-alert-icon-error{color:rgba(var(--red-400))}.univer-cell-alert-icon-info{color:rgba(var(--blue-500))}.univer-cell-alert-icon-warning{color:rgba(var(--gold-400))}.univer-cell-alert-content{font-size:var(--font-size-sm)}.univer-sheet-permission-list-panel-wrapper{margin-top:var(--margin-xs);height:100%}.univer-sheet-permission-list-panel-header{display:flex;padding:var(--padding-sm) 0;height:.15625rem}.univer-sheet-permission-list-panel-header-type{display:flex;flex-direction:column;align-items:center;margin-right:var(--margin-lg);cursor:pointer}.univer-sheet-permission-list-panel-header-type div{height:.125rem;line-height:.125rem}.univer-sheet-permission-list-panel-header-type-bottom{height:.01042rem;width:.125rem;background-color:rgb(var(--blue-500));margin-top:var(--margin-xxs)}.univer-sheet-permission-list-panel-header-select{color:rgb(var(--blue-500));height:.125rem;line-height:.125rem;font-size:var(--font-size-lg);font-weight:500}.univer-sheet-permission-list-item-header-icon{border-radius:var(--border-radius-base);height:.125rem;padding:.02083rem;box-sizing:border-box}.univer-sheet-permission-list-item-header-icon:hover{background-color:rgb(var(--grey-200))}.univer-sheet-permission-list-item{margin-top:var(--margin-sm);border-radius:var(--border-radius-lg);border:.00521rem solid rgb(var(--grey-200));padding:var(--padding-base)}.univer-sheet-permission-list-item:hover{background-color:rgb(var(--grey-50))}.univer-sheet-permission-list-item-header{height:.10417rem;line-height:.10417rem;display:flex;justify-content:space-between}.univer-sheet-permission-list-item-header-name{font-weight:500;max-width:1.04167rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.univer-sheet-permission-list-item-header-operator{display:flex;align-items:center}.univer-sheet-permission-list-item-header-operator div{margin-left:var(--margin-xs)}.univer-sheet-permission-list-item-split{height:.00521rem;background-color:rgb(var(--grey-200));margin:var(--margin-xs) 0}.univer-sheet-permission-list-item-content-edit{display:flex;align-items:center}.univer-sheet-permission-list-item-content-view{display:flex;align-items:center;margin-top:var(--margin-xs)}.univer-sheet-permission-list-item-content-desc{font-size:.0625rem;color:rgb(var(--grey-400));max-width:1.33333rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:var(--margin-xs)}.univer-sheet-permission-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.univer-sheet-permission-list-empty-text{width:1.25rem;word-wrap:break-word;color:rgb(var(--grey-400));font-size:.06771rem}.univer-sheet-permission-list-item-content-title{font-size:.0625rem;height:.08333rem;line-height:.08333rem;flex-grow:1;color:rgb(var(--color-black))}.univer-sheet-permission-list-item-content-sub{font-size:.0625rem;height:.08333rem;line-height:.08333rem;color:rgb(var(--grey-600))}.univer-spin-container{position:relative;width:100%;height:100%}.univer-spin-overlay{position:absolute;top:-.01042rem;left:-.01042rem;right:-.01042rem;bottom:-.01042rem;display:flex;justify-content:center;align-items:center;-webkit-backdrop-filter:blur(.05208rem);backdrop-filter:blur(.05208rem);background-color:#ffffff80;z-index:10}.univer-spinner{width:.20833rem;height:.20833rem;border:.02083rem solid #f3f3f3;border-top:.02083rem solid #3498db;border-radius:50%;animation:univer-spin 2s linear infinite}.univer-content-blur{filter:blur(.01042rem);pointer-events:none}@keyframes univer-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.univer-permission-panel-detail-wrapper{margin-top:.08333rem;height:100%}.univer-radio-group-vertical{display:flex;flex-direction:column;font-weight:400}.univer-sheet-permission-design-person-panel{height:1.5625rem;border:.00521rem solid rgb(var(--grey-200));border-radius:var(--border-radius-lg);padding:var(--padding-base);margin-bottom:var(--margin-xs);display:flex;flex-direction:column}.univer-sheet-permission-design-person-panel-header{display:flex;justify-content:space-between;align-items:center}.univer-sheet-permission-design-person-panel-header-add{cursor:pointer;color:rgb(var(--blue-500))}.univer-sheet-permission-design-person-panel-split{height:.00521rem;background-color:rgb(var(--grey-200));margin:var(--margin-xs) 0}.univer-sheet-permission-design-person-panel-content-item{height:.14583rem;line-height:.14583rem;margin-bottom:var(--margin-sm);display:flex;align-items:center}.univer-sheet-permission-design-person-panel-content-item:last-child{margin-bottom:0}.univer-sheet-permission-design-person-panel-content-item-name{width:.67708rem;color:rgb(var(--color-black));white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-left:.03125rem}.univer-sheet-permission-design-person-panel-content-item-select{width:.46875rem;cursor:pointer}.univer-sheet-permission-design-person-panel .univer-sheet-permission-design-person-panel-content-item-select.univer-select-single:not(.univer-select-customize-input) .univer-select-selector{border:none;padding:0;color:rgb(var(--grey-900))}.univer-sheet-permission-design-person-panel .univer-sheet-permission-design-person-panel-content-item-select.univer-select-show-arrow .univer-select-arrow{right:0}.univer-sheet-permission-design-person-panel-content{flex:1}.univer-sheet-permission-panel-title{font-weight:500}.univer-permission-range-selector{font-weight:400}.univer-permission-range-selector-error,.univer-sheet-permission-panel-name-input-error,.univer-permission-range-selector-error:hover,.univer-sheet-permission-panel-name-input-error:hover{border:.00521rem solid rgb(var(--red-400))}.univer-permission-range-selector-error-text,.univer-sheet-permission-panel-name-input-error-text{height:.10417rem;line-height:.10417rem;color:rgb(var(--red-400));font-size:var(--font-size-xs);font-weight:400}.univer-sheet-permission-panel-footer{display:flex;flex-direction:row-reverse}.univer-sheet-permission-panel-footer-cancel{margin-right:.0625rem}.univer-sheet-permission-panel-add-button{width:100%;display:flex;align-items:center;justify-content:center}.univer-sheet-permission-panel-add-button div{margin-right:.02083rem}.univer-sheet-permission-user-dialog-wrapper{height:1.71354rem;padding:var(--padding-base);box-sizing:content-box}.univer-sheet-permission-user-dialog-search-input{width:1.33333rem;height:.16667rem}.univer-sheet-permission-user-list{height:1.25rem;overflow-y:auto}.univer-sheet-permission-user-list-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.univer-sheet-permission-user-list-empty-text{width:1.25rem;word-wrap:break-word;color:rgb(var(--grey-400));font-size:.06771rem}.univer-sheet-permission-user-item{display:flex;align-items:center;margin:var(--margin-xs) 0;border-radius:.03125rem;padding:var(--padding-xs) var(--padding-sm)}.univer-sheet-permission-user-item:hover{background-color:rgb(var(--grey-50))}.univer-sheet-permission-user-item div{margin-left:.03125rem}.univer-sheet-permission-user-item-name{width:.96875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.univer-sheet-permission-split{height:.00521rem;background-color:rgb(var(--grey-200))}.univer-sheet-permission-user-dialog-footer{height:.1875rem;padding:var(--padding-xs) 0;display:flex;justify-content:flex-end;align-items:center;margin-top:var(--margin-xs);height:.14583rem}.univer-sheet-permission-user-dialog-button{height:.14583rem;line-height:.14583rem;padding:0 var(--padding-base)}.univer-sheet-permission-dialog-wrapper{display:flex;flex-direction:column;padding:.01042rem}.univer-sheet-permission-dialog-split{height:.00521rem;background-color:rgb(var(--grey-200))}.univer-sheet-permission-dialog-item{display:flex;align-items:center;justify-content:space-between;height:.10417rem;line-height:.10417rem;margin:.03125rem 0}.univer-sheet-permission-user-dialog-footer{height:.1875rem;padding:var(--padding-xs) 0;display:flex;justify-content:flex-end;align-items:center;margin-top:var(--margin-xs)}.univer-sheet-permission-user-dialog-footer-confirm{margin-left:var(--margin-sm)}.univer-sheet-permission-user-dialog-button{height:.16667rem;line-height:.16667rem;padding:0 var(--padding-base)}.univer-sheet-permission-alert-dialog{padding:var(--padding-xl) .125rem}.univer-sheet-permission-alert-dialog-title{font-size:var(--font-size-lg);font-weight:500;margin-bottom:var(--margin-base)}.univer-sheet-permission-alert-dialog-button{margin-top:var(--margin-lg);display:flex;justify-content:flex-end}.sheet-permission-user-dialog .univer-dialog-close,.sheet-permission-user-dialog .univer-dialog-header{display:none}.sheet-permission-user-dialog .univer-dialog-body{padding:0}.univer-mobile-sheet-bar-container{width:100%;overflow-x:scroll;height:.16667rem;background-color:rgb(var(--bg-color))}.univer-mobile-sheet-bar-slider{display:flex;flex-wrap:nowrap;align-items:center;height:.16667rem}.univer-mobile-sheet-bar-item{align-items:center;box-sizing:border-box;flex-grow:1;flex-shrink:0;flex-wrap:nowrap;font-size:.0625rem;height:100%;line-height:.14583rem;min-width:.25rem;overflow:hidden;padding:.01042rem .02083rem;text-align:center;white-space:nowrap;border-right:.00521rem solid rgb(var(--border-color));background-color:rgb(var(--bg-color));text-overflow:ellipsis;max-width:.625rem}.univer-mobile-sheet-bar-item.univer-mobile-sheet-bar-item-activated{color:rgb(var(--primary-color));background-color:rgb(var(--bg-color-secondary))}.univer-data-validation-formula{width:100%}.univer-data-validation-formula-and{margin-top:-.02083rem;font-size:var(--font-size-sm);color:rgba(var(--grey-400))}.univer-data-validation-formula-list-item{display:flex;padding-bottom:.01042rem;align-items:center}.univer-data-validation-formula-list-item-icon{font-size:.08333rem;cursor:pointer;margin-left:.02083rem;border-radius:.02083rem}.univer-data-validation-formula-list-item-icon:hover{background:rgba(var(--grey-100))}.univer-data-validation-formula-list-item-drag{cursor:move}.univer-data-validation-formula-list-add{color:#274fee;font-size:.06771rem;font-weight:400;cursor:pointer;display:flex;flex-direction:row;align-items:center;border-radius:.02083rem;padding:.02083rem .04167rem;width:fit-content}.univer-data-validation-formula-list-add svg{margin-right:.02083rem}.univer-data-validation-formula-list-add:hover{background:#274fee0d}.univer-data-validation-formula-color-select{width:.47917rem;margin-left:.02083rem;margin-right:.04167rem}.univer-data-validation-formula-color-select-panel{width:.58333rem;display:flex;flex-direction:row;justify-content:space-between;padding:.0625rem .02083rem .02083rem .0625rem;flex-wrap:wrap;box-sizing:border-box}.univer-data-validation-formula-color-select-panel .univer-data-validation-formula-color-item{margin-bottom:.04167rem;margin-right:.04167rem;box-sizing:border-box;cursor:pointer}.univer-data-validation-formula-color-item{border-radius:.01563rem;border:.00521rem solid rgba(var(--grey-400));width:.08333rem;height:.08333rem;box-sizing:border-box;font-size:.08333rem}.univer-data-validation-options-button{cursor:pointer;margin-bottom:.0625rem;font-size:var(--font-size-sm);color:rgba(var(--color-black));display:flex;align-items:center}.univer-data-validation-options-button-icon{font-size:.04167rem;margin-left:.02083rem}.univer-data-validation-detail-form-item{width:100%}.univer-data-validation-detail-buttons{margin-top:.10417rem;display:flex;flex-direction:row;justify-content:flex-end}.univer-data-validation-detail-button{margin-left:.0625rem}.univer-data-validation-item-container{border-radius:var(--border-radius-base);background-color:rgba(var(--bg-color-secondary));padding:var(--padding-sm);padding-right:.1875rem;margin-left:-.04167rem;margin-right:-.04167rem;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between;cursor:pointer;position:relative;border-radius:.03125rem;width:1.49479rem;overflow:hidden}.univer-data-validation-item-container:hover{background-color:rgba(var(--grey-50))}.univer-data-validation-item-title{font-size:var(--font-size-sm);color:rgba(var(--color-black));line-height:.11458rem;font-weight:500;overflow:hidden;text-overflow:ellipsis}.univer-data-validation-item-content{color:rgba(var(--text-color-secondary));font-size:var(--font-size-xs);line-height:.09375rem;overflow:hidden;text-overflow:ellipsis}.univer-data-validation-item-icon{position:absolute;top:.09896rem;right:.04167rem;width:.10417rem;height:.10417rem;display:flex;justify-content:center;align-items:center;border-radius:.02083rem}.univer-data-validation-item-icon:hover{background:rgba(var(--grey-200))}.univer-data-validation-list-buttons{margin-top:.10417rem;display:flex;flex-direction:row;justify-content:flex-end}.univer-data-validation-list-button{margin-left:.0625rem}.univer-dv-list-dropdown{border-radius:var(--border-radius-lg);border:.00521rem solid rgb(var(--border-color));background:rgba(var(--color-white));box-shadow:var(--box-shadow-base);box-sizing:border-box}.univer-dv-list-dropdown-title{padding:var(--padding-sm) .07292rem;color:rgb(var(--text-color));font-size:.0625rem;line-height:1.5;flex-shrink:0;flex-grow:0}.univer-dv-list-dropdown-list{max-height:1.04167rem}.univer-dv-list-dropdown-list-container{padding:0 var(--padding-sm)}.univer-dv-list-dropdown-selected-icon{width:.08333rem;height:.08333rem;font-size:.08333rem;color:rgba(var(--blue-500));flex-shrink:0;flex-grow:0;margin-left:.0625rem}.univer-dv-list-dropdown-item-container{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:var(--padding-xs) .03125rem;border-radius:.03125rem;margin-top:.02083rem;cursor:pointer}.univer-dv-list-dropdown-item-container:hover{background-color:rgba(var(--grey-50))}.univer-dv-list-dropdown-item{padding:0 .02083rem;font-size:.0625rem;font-style:normal;font-weight:400;line-height:.08333rem;border-radius:.04167rem;height:.08333rem;width:fit-content;flex:0 1 auto;text-overflow:ellipsis;overflow:hidden;color:rgba(var(--color-black));white-space:nowrap}.univer-dv-list-dropdown-split{height:.00521rem;margin:.02083rem 0;background:rgba(var(--grey-200));flex-shrink:0;flex-grow:0}.univer-dv-list-dropdown-edit{padding:0 var(--padding-xs) var(--padding-xs) var(--padding-xs);flex-shrink:0;flex-grow:0}.univer-dv-list-dropdown-edit a{padding:.01563rem .03125rem;font-size:.0625rem;line-height:1.5;cursor:pointer;border-radius:.03125rem;display:block}.univer-dv-list-dropdown-edit a:hover{background:#f5f5f5}.univer-dv-date-dropdown{background:#fff;border-radius:var(--border-radius-base);box-shadow:var(--box-shadow-lg);padding:var(--padding-sm)}.univer-dv-date-dropdown-btns{display:flex;justify-content:flex-end;border-top:.00521rem solid rgb(var(--border-color));padding-top:var(--padding-sm)}.numfmt-panel{overflow-y:auto;display:flex;flex-direction:column;justify-content:space-between;height:100%}.numfmt-panel .group-title{font-size:.08333rem;color:rgba(var(--color-black))}.numfmt-panel .label{font-size:.07813rem;color:rgba(var(--grey-400))}.numfmt-panel .describe{font-size:.06771rem;line-height:.10417rem;color:rgba(var(--grey-600))}.numfmt-panel .preview{height:.1875rem;padding:0 .08333rem;font-size:.07292rem;line-height:.1875rem;color:var(--color-black);border:.00521rem solid rgb(var(--grey-200));border-radius:.02083rem}.numfmt-panel .btn-list{display:flex;justify-content:flex-end}.numfmt-panel .m-r-12{margin-right:.0625rem}.numfmt-panel .m-t-16{margin-top:.08333rem}.numfmt-panel .m-t-14{margin-top:.07292rem}.numfmt-panel .m-t-8{margin-top:.04167rem}.numfmt-panel .m-b-20{margin-bottom:.10417rem}.options{display:flex;justify-content:space-between}.options .w-140{width:.72917rem}.options .w-120{width:.625rem}.univer-custom-format-title{margin-top:.08333rem}.univer-custom-format-input{margin-top:.04167rem;width:100%}.univer-custom-format-history-list{margin-top:.04167rem;padding:.04167rem;border-radius:.04167rem;border:.00521rem solid var(---Grey-200, #e5e5e5);max-height:2.08333rem;overflow:scroll}.univer-custom-format-history-list-item{padding:.03125rem 0;display:flex;gap:.03125rem;align-items:center;cursor:pointer}.univer-custom-format-history-list-item-icon-wrap{width:.08333rem;display:flex;align-items:center;color:#274fee}.univer-custom-format-des{margin-top:.04167rem;color:var(---Grey-600, #7a7a7a);font-size:.0625rem;font-style:normal;font-weight:400;line-height:.08333rem}.more-numfmt-type{display:flex;flex-shrink:0;padding:0 .02083rem;font-size:.06771rem;color:var(--black)}.more-numfmt-type .icon{display:flex;align-items:center;height:auto;padding-left:.04167rem;color:rgb(var(--grey-400))}.more-numfmt-type-options .line{width:100%;height:.00521rem;background-color:rgb(var(--grey-200))}.more-numfmt-type-options .m-t-4{margin-top:.02083rem}.more-numfmt-type-options .option-item{display:flex;align-items:center;justify-content:space-between;height:.14583rem;padding:0 .04167rem;font-size:.06771rem}.more-numfmt-type-options .option-item:hover{background-color:rgb(var(--grey-100));border-radius:var(--border-radius-base)}.more-numfmt-type-options .m-l-26{margin-left:.13542rem}.univer-container[data-v-a5b1c283]{height:100%} diff --git a/invest/assets/Ledger.1762932289438.js b/invest/assets/Ledger.1762932289438.js deleted file mode 100644 index aed9df7..0000000 --- a/invest/assets/Ledger.1762932289438.js +++ /dev/null @@ -1,242 +0,0 @@ -import{g as zue,a as Fn,_ as gGe}from"./index.1762932289438.js";import{_ as Cv,A as mc,B as wu,C as v1,D as pGe,E as que,F as fO,G as vGe,H as _Ge}from"./echarts.1762932289438.js";import{d as gc}from"./dayjs.min.1762932289438.js";import{k as CGe,r as mO,s as SGe,O as bGe,ah as yGe,l as EGe,o as RGe}from"./vue.1762932289438.js";function AGe(t,e){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var Yue={exports:{}},Bi={};/** -* @license React -* react.production.min.js -* -* Copyright (c) Facebook, Inc. and its affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var EC=Symbol.for("react.element"),wGe=Symbol.for("react.portal"),DGe=Symbol.for("react.fragment"),IGe=Symbol.for("react.strict_mode"),PGe=Symbol.for("react.profiler"),MGe=Symbol.for("react.provider"),TGe=Symbol.for("react.context"),LGe=Symbol.for("react.forward_ref"),xGe=Symbol.for("react.suspense"),OGe=Symbol.for("react.memo"),NGe=Symbol.for("react.lazy"),vie=Symbol.iterator;function kGe(t){return t===null||typeof t!="object"?null:(t=vie&&t[vie]||t["@@iterator"],typeof t=="function"?t:null)}var Xue={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Gue=Object.assign,Que={};function y7(t,e,n){this.props=t,this.context=e,this.refs=Que,this.updater=n||Xue}y7.prototype.isReactComponent={};y7.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};y7.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function Kue(){}Kue.prototype=y7.prototype;function mX(t,e,n){this.props=t,this.context=e,this.refs=Que,this.updater=n||Xue}var gX=mX.prototype=new Kue;gX.constructor=mX;Gue(gX,y7.prototype);gX.isPureReactComponent=!0;var _ie=Array.isArray,Zue=Object.prototype.hasOwnProperty,pX={current:null},Jue={key:!0,ref:!0,__self:!0,__source:!0};function ece(t,e,n){var r,i={},a=null,o=null;if(e!=null)for(r in e.ref!==void 0&&(o=e.ref),e.key!==void 0&&(a=""+e.key),e)Zue.call(e,r)&&!Jue.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(10},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},e.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},e.prototype._innerSubscribe=function(n){var r=this,i=this,a=i.hasError,o=i.isStopped,s=i.observers;return a||o?nce:(this.currentObservers=null,s.push(n),new bl(function(){r.currentObservers=null,Sv(s,n)}))},e.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,a=r.thrownError,o=r.isStopped;i?n.error(a):o&&n.complete()},e.prototype.asObservable=function(){var n=new On;return n.source=this,n},e.create=function(n,r){return new Eie(n,r)},e}(On),Eie=function(t){v1(e,t);function e(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return e.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},e.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},e.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},e.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:nce},e}(Zt),Pn=function(t){v1(e,t);function e(n){var r=t.call(this)||this;return r._value=n,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},e.prototype.getValue=function(){var n=this,r=n.hasError,i=n.thrownError,a=n._value;if(r)throw i;return this._throwIfClosed(),a},e.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},e}(Zt),bX={now:function(){return(bX.delegate||Date).now()},delegate:void 0},JGe=function(t){v1(e,t);function e(n,r,i){n===void 0&&(n=1/0),r===void 0&&(r=1/0),i===void 0&&(i=bX);var a=t.call(this)||this;return a._bufferSize=n,a._windowTime=r,a._timestampProvider=i,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=r===1/0,a._bufferSize=Math.max(1,n),a._windowTime=Math.max(1,r),a}return e.prototype.next=function(n){var r=this,i=r.isStopped,a=r._buffer,o=r._infiniteTimeWindow,s=r._timestampProvider,l=r._windowTime;i||(a.push(n),!o&&a.push(s.now()+l)),this._trimBuffer(),t.prototype.next.call(this,n)},e.prototype._subscribe=function(n){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(n),i=this,a=i._infiniteTimeWindow,o=i._buffer,s=o.slice(),l=0;l0?t.prototype.requestAsyncId.call(this,n,r,i):(n.actions.push(this),n._scheduled||(n._scheduled=yie.requestAnimationFrame(function(){return n.flush(void 0)})))},e.prototype.recycleAsyncId=function(n,r,i){var a;if(i===void 0&&(i=0),i!=null?i>0:this.delay>0)return t.prototype.recycleAsyncId.call(this,n,r,i);var o=n.actions;r!=null&&r===n._scheduled&&((a=o[o.length-1])===null||a===void 0?void 0:a.id)!==r&&(yie.cancelAnimationFrame(r),n._scheduled=void 0)},e}(oce),rQe=function(t){v1(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.flush=function(n){this._active=!0;var r;n?r=n.id:(r=this._scheduled,this._scheduled=void 0);var i=this.actions,a;n=n||i.shift();do if(a=n.execute(n.state,n.delay))break;while((n=i[0])&&n.id===r&&i.shift());if(this._active=!1,a){for(;(n=i[0])&&n.id===r&&i.shift();)n.unsubscribe();throw a}},e}(sce),eH=new rQe(nQe),GA=new On(function(t){return t.complete()});function lce(t){return t&&Ca(t.schedule)}function yX(t){return t[t.length-1]}function EX(t){return Ca(yX(t))?t.pop():void 0}function E7(t){return lce(yX(t))?t.pop():void 0}function iQe(t,e){return typeof yX(t)=="number"?t.pop():e}var RX=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function uce(t){return Ca(t==null?void 0:t.then)}function cce(t){return Ca(t[SX])}function dce(t){return Symbol.asyncIterator&&Ca(t==null?void 0:t[Symbol.asyncIterator])}function hce(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function aQe(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var fce=aQe();function mce(t){return Ca(t==null?void 0:t[fce])}function gce(t){return pGe(this,arguments,function(){var n,r,i,a;return que(this,function(o){switch(o.label){case 0:n=t.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,fO(n.read())];case 3:return r=o.sent(),i=r.value,a=r.done,a?[4,fO(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,fO(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function pce(t){return Ca(t==null?void 0:t.getReader)}function yc(t){if(t instanceof On)return t;if(t!=null){if(cce(t))return oQe(t);if(RX(t))return sQe(t);if(uce(t))return lQe(t);if(dce(t))return vce(t);if(mce(t))return uQe(t);if(pce(t))return cQe(t)}throw hce(t)}function oQe(t){return new On(function(e){var n=t[SX]();if(Ca(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function sQe(t){return new On(function(e){for(var n=0;n=0?qd(u,a,f,o,!0):d=!0,f();var m=Ts(u,function(g){var p,v,_=c.slice();try{for(var C=Cv(_),S=C.next();!S.done;S=C.next()){var b=S.value,y=b.buffer;y.push(g),s<=y.length&&h(b)}}catch(A){p={error:A}}finally{try{S&&!S.done&&(v=C.return)&&v.call(C)}finally{if(p)throw p.error}}},function(){for(;c!=null&&c.length;)u.next(c.shift().buffer);m==null||m.unsubscribe(),u.complete(),u.unsubscribe()},void 0,function(){return c=null});l.subscribe(m)})}function Ece(){for(var t=[],e=0;e0&&(c=new p4({next:function(y){return b.next(y)},error:function(y){g=!0,p(),d=vO(v,i,y),b.error(y)},complete:function(){m=!0,p(),d=vO(v,o),b.complete()}}),yc(C).subscribe(c))})(u)}}function vO(t,e){for(var n=[],r=2;re in t?Ace(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,j=(t,e)=>Ace(t,"name",{value:e,configurable:!0}),Xe=(t,e,n)=>YQe(t,typeof e!="symbol"?e+"":e,n);function XQe(t,e){for(var n=0;nr[i],"get")})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}j(XQe,"_mergeNamespaces");function wce(){Dce()}j(wce,"installShims");const Mb=typeof global<"u"?global:typeof self<"u"?self:window;function Dce(){typeof Mb.requestIdleCallback!="function"&&(Mb.requestIdleCallback=j(function(t){const e=Date.now();return setTimeout(j(function(){const n=Math.max(0,50-(Date.now()-e));t({didTimeout:n===0,timeRemaining(){return n}})},"rICCallback"),1)},"shimRIC")),typeof Mb.cancelIdleCallback!="function"&&(Mb.cancelIdleCallback=j(function(t){clearTimeout(t)},"shimCancelRIC"))}j(Dce,"installRequestIdleCallback");function Zu(t,e){const n=t.indexOf(e);return n>-1?(t.splice(n,1),!0):!1}j(Zu,"remove");function GQe(t){const e=new Set,n=[];for(const r of t)e.has(r)||(e.add(r),n.push(r));return n}j(GQe,"dedupe");function Ice(t,e){for(let n=t.length-1;n>-1;n--){const r=t[n];if(e(r,n))return r}return null}j(Ice,"findLast");function QQe(t,e){if(t.length===0)return t;const n=e%t.length;return t.slice(n).concat(t.slice(0,n))}j(QQe,"rotate");function KQe(t,e){const n=new Map;return t.forEach(r=>{const i=e(r);let a=n.get(i);n.has(i)||(a=[],n.set(i,a)),a.push(r)}),n}j(KQe,"groupBy");function ZQe(t){return Array.isArray(t)?t:[t]}j(ZQe,"makeArray");function DX(t){return["true","false"].includes(t.toLowerCase())}j(DX,"isBooleanString");const AC="__INTERNAL_EDITOR__",Yo=`${AC}DOCS_NORMAL`,Ki=`${AC}DOCS_FORMULA_BAR`,IX=`${AC}ZEN_EDITOR`,Sd=`\r -`;function qg(t){return`${AC}${t}`}j(qg,"createInternalEditorID");function oh(t){return t.startsWith(AC)}j(oh,"isInternalEditorID");var PX=Symbol("$$IDENTIFIER_DECORATOR");function Pce(t){return t&&t[PX]===!0}j(Pce,"isIdentifierDecorator");function MX(t){return typeof t=="function"}j(MX,"isCtor");function QA(t){return!!(t&&typeof t.useClass<"u")}j(QA,"isClassDependencyItem");function tH(t){return!!(t&&typeof t.useFactory<"u")}j(tH,"isFactoryDependencyItem");function nH(t){return!!(t&&typeof t.useValue<"u")}j(nH,"isValueDependencyItem");function Mce(t){return!!(t&&typeof t.useExisting<"u")}j(Mce,"isExistingDependencyItem");function rH(t){return!!(t&&typeof t.useAsync<"u")}j(rH,"isAsyncDependencyItem");var Tce=Symbol("AsyncHook");function hE(t){return!!(t&&t.__symbol===Tce)}j(hE,"isAsyncHook");function Iu(t){return typeof t>"u"?"undefined":MX(t)&&!t[PX]?t.name:t.toString()}j(Iu,"prettyPrintIdentifier");var va;(function(t){t.MANY="many",t.OPTIONAL="optional",t.REQUIRED="required"})(va||(va={}));var af;(function(t){t.SELF="self",t.SKIP_SELF="skipSelf"})(af||(af={}));var JQe=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),rl=function(t){JQe(e,t);function e(n){return t.call(this,"[redi]: ".concat(n))||this}return j(e,"RediError"),e}(Error),Lce=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Pie=Symbol("$$TARGET"),iH=Symbol("$$DEPENDENCIES"),eKe=function(t){Lce(e,t);function e(n,r){var i="Could not find dependency registered on the ".concat(n,' (indexed) parameter of the constructor of "').concat(Iu(r),'".');return t.call(this,i)||this}return j(e,"DependencyDescriptorNotFoundError"),e}(rl),xce=function(t){Lce(e,t);function e(n,r){var i='It seems that you register "undefined" as dependency on the '.concat(r+1,' parameter of "').concat(Iu(n),'". Please make sure that there is not cyclic dependency among your TypeScript files, or consider using "forwardRef". For more info please visit our website https://redi.wendell.fun/docs/debug#could-not-find-dependency-registered-on');return t.call(this,i)||this}return j(e,"IdentifierUndefinedError"),e}(rl);function TX(t){var e=t;return e[iH]||[]}j(TX,"getDependencies");function BP(t,e){var n=TX(t),r=n.find(function(i){return i.paramIndex===e});if(!r)throw new eKe(e,t);return r}j(BP,"getDependencyByIndex");function UP(t,e,n,r,i){r===void 0&&(r=va.REQUIRED);var a={paramIndex:n,identifier:e,quantity:r,lookUp:i,withNew:!1};if(typeof e>"u")throw new xce(t,n);var o=t;o[Pie]===o?o[iH].push(a):(o[iH]=[a],o[Pie]=o)}j(UP,"setDependency");var Mie=new Set;function er(t){if(Mie.has(t))throw new rl('Identifier "'.concat(t,'" already exists.'));Mie.add(t);var e=j(function(n,r,i){UP(n,e,i)},"decorator");return e.toString=function(){return t},e[PX]=!0,e}j(er,"createIdentifier");var tKe=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),nKe=function(t){tKe(e,t);function e(n,r,i){var a='Expect "'.concat(r,'" dependency items for id "').concat(Iu(n),'" but get ').concat(i,".");return t.call(this,a)||this}return j(e,"QuantityCheckError"),e}(rl);function LX(t,e,n){if(e===va.OPTIONAL&&n>1||e===va.REQUIRED&&n!==1)throw new nKe(t,e,n)}j(LX,"checkQuantity");function Oce(t,e){return t===va.MANY?e:e[0]}j(Oce,"retrieveQuantity");function Nce(t,e,n){var r=BP(t,e);r.quantity=n}j(Nce,"changeQuantity");function HP(t){return j(function e(n){return this instanceof e?this:function(r,i,a){if(n)UP(r,n,a,t);else{if(t===va.REQUIRED)throw new xce(r,a);Nce(r,a,t)}}},"decoratorFactory")}j(HP,"quantifyDecoratorFactoryProducer");var rKe=HP(va.MANY),_1=HP(va.OPTIONAL),se=HP(va.REQUIRED);function iKe(t){return{unwrap:t}}j(iKe,"forwardRef");function kce(t){return!!t&&typeof t.unwrap=="function"}j(kce,"isForwardRef");function Fce(t){return kce(t)?t.unwrap():t}j(Fce,"normalizeForwardRef");function aH(t){return!!t&&typeof t.dispose=="function"}j(aH,"isDisposable");var Vce=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();function Bce(t){return t.length===1}j(Bce,"isBareClassDependency");var jP=[];function oH(t){jP.push(t)}j(oH,"pushResolvingStack");function sH(){jP.pop()}j(sH,"popupResolvingStack");function Uce(){jP.length=0}j(Uce,"clearResolvingStack");var Tie=function(t){Vce(e,t);function e(n,r,i){var a='Cannot find "'.concat(Iu(r),'" registered by any injector. It is the ').concat(i,'th param of "').concat(Pce(n)?Iu(n):n.name,'".');return t.call(this,a)||this}return j(e,"DependencyNotFoundForModuleError"),e}(rl),fE=function(t){Vce(e,t);function e(n){var r=this,i='Cannot find "'.concat(Iu(n),'" registered by any injector. The stack of dependencies is: "').concat(jP.map(function(a){return Iu(a)}).join(" -> "),'".');return r=t.call(this,i)||this,Uce(),r}return j(e,"DependencyNotFoundError"),e}(rl),aKe=function(){function t(e){var n=this;this.dependencyMap=new Map,this.normalizeDependencies(e).map(function(r){return n.add(r[0],r[1])})}return j(t,"DependencyCollection"),t.prototype.add=function(e,n){typeof n>"u"&&(n={useClass:e,lazy:!1});var r=this.dependencyMap.get(e);typeof r>"u"&&(r=[],this.dependencyMap.set(e,r)),r.push(n)},t.prototype.delete=function(e){this.dependencyMap.delete(e)},t.prototype.get=function(e,n){n===void 0&&(n=va.REQUIRED);var r=this.dependencyMap.get(e);return LX(e,n,r.length),Oce(n,r)},t.prototype.has=function(e){return this.dependencyMap.has(e)},t.prototype.append=function(e){var n=this;this.normalizeDependencies(e).forEach(function(r){return n.add(r[0],r[1])})},t.prototype.dispose=function(){this.dependencyMap.clear()},t.prototype.normalizeDependencies=function(e){return e.map(function(n){var r=n[0],i;return Bce(n)?i={useClass:n[0],lazy:!1}:i=n[1],[r,i]})},t}(),oKe=function(){function t(){this.resolvedDependencies=new Map}return j(t,"ResolvedDependencyCollection"),t.prototype.add=function(e,n){var r=this.resolvedDependencies.get(e);typeof r>"u"&&(r=[],this.resolvedDependencies.set(e,r)),r.push(n)},t.prototype.has=function(e){return this.resolvedDependencies.has(e)},t.prototype.delete=function(e){if(this.resolvedDependencies.has(e)){var n=this.resolvedDependencies.get(e);n.forEach(function(r){return aH(r)?r.dispose():void 0}),this.resolvedDependencies.delete(e)}},t.prototype.get=function(e,n){n===void 0&&(n=va.REQUIRED);var r=this.resolvedDependencies.get(e);if(!r)throw new fE(e);return LX(e,n,r.length),n===va.MANY?r:r[0]},t.prototype.dispose=function(){Array.from(this.resolvedDependencies.values()).forEach(function(e){e.forEach(function(n){return aH(n)?n.dispose():void 0})}),this.resolvedDependencies.clear()},t}();function Hce(t,e,n){var r=BP(t,e);r.lookUp=n}j(Hce,"changeLookup");function xX(t){return j(function e(){return this instanceof e?this:function(n,r,i){Hce(n,i,t)}},"DecoratorFactory")}j(xX,"lookupDecoratorFactoryProducer");var sKe=xX(af.SKIP_SELF),lKe=xX(af.SELF);function jce(t,e,n){var r=BP(t,e);r.withNew=n}j(jce,"changeToSelf");function $ce(t){return j(function e(){return this instanceof e?this:function(n,r,i){jce(n,i,t)}},"DecoratorFactory")}j($ce,"withNewDecoratorFactoryProducer");var uKe=$ce(!0);function OX(t,e){return e===void 0&&(e=0),t?t.map(function(n,r){if(r+=e,!Array.isArray(n))return{paramIndex:r,identifier:n,quantity:va.REQUIRED,withNew:!1};var i=n.slice(0,n.length-1),a=n[n.length-1],o=void 0,s=va.REQUIRED,l=!1;return i.forEach(function(u){if(u instanceof lKe)o=af.SELF;else if(u instanceof sKe)o=af.SKIP_SELF;else if(u instanceof _1)s=va.OPTIONAL;else if(u instanceof rKe)s=va.MANY;else if(u instanceof uKe)l=!0;else throw new rl("unknown dep modifier ".concat(u,"."))}),{paramIndex:r,identifier:a,quantity:s,lookUp:o,withNew:l}}):[]}j(OX,"normalizeFactoryDeps");var lH;(function(){if(typeof requestIdleCallback<"u"&&typeof cancelIdleCallback<"u")lH=j(function(e,n){var r=requestIdleCallback(e,typeof n=="number"?{timeout:n}:void 0),i=!1;return function(){i||(i=!0,cancelIdleCallback(r))}},"runWhenIdle");else{var t=Object.freeze({didTimeout:!0,timeRemaining:j(function(){return 15},"timeRemaining")});lH=j(function(e){var n=setTimeout(function(){return e(t)}),r=!1;return function(){r||(r=!0,clearTimeout(n))}},"runWhenIdle")}})();var cKe=function(){function t(e){var n=this;this.didRun=!1,this.selfExecutor=function(){try{n.value=e()}catch(r){n.error=r}finally{n.didRun=!0}},this.disposeCallback=lH(function(){return n.selfExecutor()})}return j(t,"IdleValue"),t.prototype.hasRun=function(){return this.didRun},t.prototype.dispose=function(){this.disposeCallback()},t.prototype.getValue=function(){if(this.didRun||(this.dispose(),this.selfExecutor()),this.error)throw this.error;return this.value},t}(),R7=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),KA=j(function(){return KA=Object.assign||function(t){for(var e,n=1,r=arguments.length;n-1&&this.parent.children.splice(e,1)}},t.prototype.add=function(e){this._ensureInjectorNotDisposed();var n=e[0],r=e[1];if(this.resolvedDependencyCollection.has(n))throw new Lie(n);typeof r>"u"?this.dependencyCollection.add(n):rH(r)||QA(r)||nH(r)||tH(r)?this.dependencyCollection.add(n,r):this.resolvedDependencyCollection.add(n,r)},t.prototype.replace=function(e){this._ensureInjectorNotDisposed();var n=e[0];if(this.resolvedDependencyCollection.has(n))throw new Lie(n);this.dependencyCollection.delete(n),e.length===1?this.dependencyCollection.add(n):this.dependencyCollection.add(n,e[1])},t.prototype.delete=function(e){if(this._ensureInjectorNotDisposed(),this.resolvedDependencyCollection.has(e))throw new pKe(e);this.dependencyCollection.delete(e)},t.prototype.invoke=function(e){for(var n=this,r=[],i=1;i0?o[0].paramIndex:h.length;if(h.length!==f){console.warn("[redi]: Expect ".concat(f," custom parameter(s) of ").concat(Iu(a)," but get ").concat(h.length,"."));var m=f-h.length;m>0?h=v2(v2([],h,!0),new Array(m).fill(void 0),!0):h=h.slice(0,f)}var g=new(a.bind.apply(a,v2(v2([void 0],h,!1),s,!1)));return(n=e==null?void 0:e.onInstantiation)===null||n===void 0||n.call(e,g),this.markResolutionCompleted(),g},t.prototype._resolveFactory=function(e,n,r){var i;this.markNewResolution(e);for(var a=OX(n.deps),o=[],s=0,l=a;s=dKe)throw new hKe(e)},t.prototype.markResolutionCompleted=function(){this.resolutionOngoing-=1},t.prototype._ensureInjectorNotDisposed=function(){if(this.disposed)throw new fKe},t}();function vKe(t,e,n){n===void 0&&(n=0);var r=OX(e,n);r.forEach(function(i){UP(t,i.identifier,i.paramIndex,i.quantity,i.lookUp)})}j(vKe,"setDependencies");var xie=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof global<"u"&&global,Oie="REDI_GLOBAL_LOCK",_Ke=typeof process<"u"&&process.versions!=null&&process.versions.node!=null;xie[Oie]?_Ke||console.error(`[redi]: You are loading scripts of redi more than once! This may cause undesired behavior in your application. -Maybe your dependencies added redi as its dependency and bundled redi to its dist files. Or you import different versions of redi. -For more info please visit our website: https://redi.wendell.fun/en-US/docs/debug#import-scripts-of-redi-more-than-once`):xie[Oie]=!0;var Nie="REDI_CONTEXT_LOCK",CKe=typeof process<"u"&&process.versions!=null&&process.versions.node!=null,kie=typeof globalThis<"u"&&globalThis||typeof window<"u"&&window||typeof global<"u"&&global;kie[Nie]?CKe||console.error(`[redi]: "RediContext" is already created. You may import "RediContext" from different paths. Use "import { RediContext } from '@wendellhu/redi/react-bindings'; instead."`):kie[Nie]=!0;var $P=E.createContext({injector:null});$P.displayName="RediContext";var Wce=$P.Provider,SKe=$P.Consumer,bKe=function(){var t=j(function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])},t(e,n)},"extendStatics");return function(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function r(){this.constructor=e}j(r,"__"),e.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),yKe=function(t){bKe(e,t);function e(){return t.call(this,"Using dependency injection outside of a RediContext.")||this}return j(e,"HooksNotInRediContextError"),e}(rl);function wC(){var t=E.useContext($P);if(!t.injector)throw new yKe;return t.injector}j(wC,"useInjector");function Ne(t,e,n){var r=wC();return E.useMemo(function(){return r.get(t,e,n)},[t,e,n])}j(Ne,"useDependency");var ZA=j(function(){return ZA=Object.assign||function(t){for(var e,n=1,r=arguments.length;n"u"?t.getValue():e,r=E.useState(n),i=r[0],a=r[1];return E.useEffect(function(){var o=t.subscribe(function(s){return a(s)});return function(){return o.unsubscribe()}},[t]),i}j(qce,"useDependencyValue");function uH(t){return typeof t=="function"?t():t}j(uH,"unwrap");function Xh(t,e,n,r){if(typeof t=="function"&&!r)throw new rl("Expected deps to be provided when observable is a function!");var i=E.useRef(null),a=E.useRef(!1),o=E.useMemo(function(){return t},DKe([],typeof r<"u"?r:[t],!0)),s=E.useState(0);s[0];var l=s[1],u=E.useRef(function(){var c;if(o){var d=uH(o).subscribe(function(h){a.current=!0,c=h});d.unsubscribe()}return c??e}());if(E.useEffect(function(){var c=null;return o&&(i.current=uH(o),c=i.current.subscribe(function(d){u.current=d,l(function(h){return h+1})})),function(){return c==null?void 0:c.unsubscribe()}},[o]),n&&!a.current)throw new Error("Expect `shouldHaveSyncValue` but not getting a sync value!");return u.current}j(Xh,"useObservable");function IKe(t){var e=E.useState(0),n=e[1];E.useEffect(function(){var r=t.subscribe(function(){return n(function(i){return i+1})});return function(){return r.unsubscribe()}},[])}j(IKe,"useUpdateBinder");var cH=new WeakMap;function PKe(t,e){var n=E.useRef(void 0),r=qce(t,e),i=E.useMemo(function(){return E.createContext(r)},[t]),a=E.useCallback(function(o){return Re.createElement(i.Provider,{value:r},o.children)},[t,r]);return n.current!==t&&(n.current&&cH.delete(n.current),n.current=t,cH.set(t,i)),{Provider:a,value:r}}j(PKe,"useDependencyContext");function MKe(t){var e=cH.get(t);if(!e)throw new rl("try to read context value but no ancestor component subscribed it.");return E.useContext(e)}j(MKe,"useDependencyContextValue");function dH(t,e){if(Object.is(t,e))return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;const i=Object.prototype.hasOwnProperty.bind(e);for(let a=0;a{n=a,t.apply(this,i)},e)):(n=a,t.apply(this,i))},"throttled")}j(hH,"throttle");function _s(t){return`sheet_interceptor_${t}`}j(_s,"createInterceptorKey");const NX=j(t=>function(e,n){let r=-1;function i(a,o){if(a<=r)throw new Error("[SheetInterceptorService]: next() called multiple times!");return r=a,a===t.length?o:t[a].handler(o,n,i.bind(null,a+1))}return j(i,"passThrough"),i(0,e)},"composeInterceptors"),Gce=class{constructor(e){Xe(this,"_interceptorsByName",new Map),Xe(this,"_interceptorPoints"),this._interceptorPoints=e}fetchThroughInterceptors(e){const n=e,r=this._interceptorsByName.get(n);return NX(r||[])}intercept(e,n){const r=e;this._interceptorsByName.has(r)||this._interceptorsByName.set(r,[]);const i=this._interceptorsByName.get(r);return i.push(n),this._interceptorsByName.set(r,i.sort((a,o)=>{var s,l;return((s=o.priority)!=null?s:0)-((l=a.priority)!=null?l:0)})),()=>Zu(this._interceptorsByName.get(r),n)}getInterceptPoints(){return this._interceptorPoints}dispose(){this._interceptorsByName.clear()}};j(Gce,"InterceptorManager");let Wf=Gce;const Qce=class{constructor(){Xe(this,"cursor",0)}reset(){return this.cursor=0,this}moveCursor(e){this.cursor+=e}moveCursorTo(e){this.cursor=e}};j(Qce,"MemoryCursor");let bd=Qce;function TKe(t,e){for(const n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}j(TKe,"mixinClass");function Kce(t){return/^-?\d+(\.\d+)?$/.test(t)}j(Kce,"isNumeric");function Zce(t){return Kce(t)?Number(t)<=Number.MAX_SAFE_INTEGER:!1}j(Zce,"isSafeNumeric");const Jce=class e1e{constructor(){Xe(this,"_data",[])}static create(){return new e1e}add(e){this._data.indexOf(e)>-1||this._data.push(e)}delete(e){const n=this._data.indexOf(e);this._data.splice(n,1)}getData(){return this._data}};j(Jce,"Registry");let WP=Jce;const LKe=class t1e{constructor(){Xe(this,"_data",new Map)}static create(){return new t1e}add(e,n){this._data.has(e)||this._data.set(e,n)}delete(e){this._data.delete(e)}getData(){return this._data}};j(LKe,"RegistryAsMap");function zP(t){const e=new MessageChannel;let n=!1;const r=j(()=>{n||t()},"hanlder");return e.port1.onmessage=r,e.port2.postMessage(null),()=>{n=!0,e.port1.close(),e.port2.close()}}j(zP,"requestImmediateMacroTask");async function n1e(t){for(const[e,n]of t.entries())try{if(!await n())return{index:e,result:!1}}catch(r){return{index:e,result:!1,error:r}}return{result:!0,index:-1}}j(n1e,"sequenceAsync");function r1e(t){for(const[e,n]of t.entries())try{if(!n())return{index:e,result:!1}}catch(r){return{index:e,result:!1,error:r}}return{result:!0,index:-1}}j(r1e,"sequence");function xKe(t,e){return e.forEach(n=>t.add(n)),t}j(xKe,"mergeSets");function fH(t){var e=typeof Symbol=="function"&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:j(function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}},"next")};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}j(fH,"__values");function mH(t,e){var n=typeof Symbol=="function"&&t[Symbol.iterator];if(!n)return t;var r=n.call(t),i,a=[],o;try{for(;(e===void 0||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}j(mH,"__read");function gH(t,e,n){if(n||arguments.length===2)for(var r=0,i=e.length,a;rt.unsubscribe(),"dispose")}:typeof t=="function"?{dispose:j(()=>{e||(e=!0,t())},"dispose")}:t:$t(()=>{})}j($t,"toDisposable");function OKe(t){return $t(()=>{t.unsubscribe()})}j(OKe,"fromObservable");const s1e=class{constructor(){Xe(this,"_disposables",new Set)}add(e){const n=$t(e);return this._disposables.add(n),{dispose:j(()=>{n.dispose(),this._disposables.delete(n)},"dispose")}}dispose(){this._disposables.forEach(e=>{e.dispose()}),this._disposables.clear()}};j(s1e,"DisposableCollection");let Gi=s1e;const l1e=class{constructor(){Xe(this,"_disposed",!1),Xe(this,"_collection",new Gi)}disposeWithMe(e){return this._collection.add(e)}ensureNotDisposed(){if(this._disposed)throw new Error("[Disposable]: object is disposed!")}dispose(){this._disposed||(this._disposed=!0,this._collection.dispose())}};j(l1e,"Disposable");let et=l1e;const u1e=class extends et{constructor(){super(...arguments),Xe(this,"dispose$",new Zt)}dispose(){super.dispose(),this.dispose$.next(),this.dispose$.complete()}};j(u1e,"RxDisposable");let Da=u1e;const NKe=class extends et{constructor(e){super(),Xe(this,"_ref",0),this._rootDisposable=e}inc(){if(this._disposed)throw new Error("[RCDisposable]: should not ref to a disposed.");this._ref+=1}dec(){this._ref-=1,this._ref===0&&(this._rootDisposable.dispose(),this.dispose())}};j(NKe,"RCDisposable");const ui=er("univer.context-service"),c1e=class extends et{constructor(){super(...arguments),Xe(this,"_contextChanged$",new Zt),Xe(this,"contextChanged$",this._contextChanged$.asObservable()),Xe(this,"_contextMap",new Map)}dispose(){super.dispose(),this._contextChanged$.complete()}getContextValue(e){var n;return(n=this._contextMap.get(e))!=null?n:!1}setContextValue(e,n){this._contextMap.set(e,n),this._contextChanged$.next({[e]:n})}subscribeContextValue$(e){return new On(n=>{const r=this._contextChanged$.pipe(mo(i=>typeof i[e]<"u")).subscribe(i=>n.next(i[e]));return this._contextMap.has(e)&&n.next(this._contextMap.get(e)),()=>r.unsubscribe()})}};j(c1e,"ContextService");let kKe=c1e;const Ra=er("univer.log"),d1e=class extends et{constructor(){super(...arguments),Xe(this,"_logLevel",3)}debug(...e){this._logLevel>=4&&this._log(console.debug,...e)}log(...e){this._logLevel>=3&&this._log(console.log,...e)}warn(...e){this._logLevel>=2&&this._log(console.warn,...e)}error(...e){this._logLevel>=1&&this._log(console.error,...e)}setLogLevel(e){this._logLevel=e}_log(e,...n){const r=n[0];/^\[(.*?)\]/g.test(r)?e(`\x1B[97;104m${r}\x1B[0m`,...n.slice(1)):e(...n)}};j(d1e,"DesktopLogService");let FKe=d1e;var VKe=Object.defineProperty,BKe=Object.getOwnPropertyDescriptor,UKe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?BKe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&VKe(e,n,i),i},"__decorateClass$8"),Fie=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$7"),Se=(t=>(t[t.COMMAND=0]="COMMAND",t[t.OPERATION=1]="OPERATION",t[t.MUTATION=2]="MUTATION",t))(Se||{});const me=er("anywhere.command-service"),h1e=class{constructor(){Xe(this,"_commands",new Map),Xe(this,"_commandTypes",new Map)}registerCommand(e){if(this._commands.has(e.id))throw new Error(`[CommandRegistry]: command "${e.id}" has been registered before.`);return this._commands.set(e.id,e),this._commandTypes.set(e.id,e.type),$t(()=>{this._commands.delete(e.id),this._commandTypes.delete(e.id)})}hasCommand(e){return this._commands.has(e)}getCommand(e){return this._commands.has(e)?[this._commands.get(e)]:null}getCommandType(e){return this._commandTypes.get(e)}};j(h1e,"CommandRegistry");let HKe=h1e;const qP={id:"nil",type:0,handler:j(()=>!0,"handler")};var CO;let _H=(CO=class extends et{constructor(t,e){super(),Xe(this,"_commandRegistry"),Xe(this,"_beforeCommandExecutionListeners",[]),Xe(this,"_commandExecutedListeners",[]),Xe(this,"_multiCommandDisposables",new Map),Xe(this,"_commandExecutingLevel",0),Xe(this,"_commandExecutionStack",[]),this._injector=t,this._logService=e,this._commandRegistry=new HKe,this._registerCommand(qP)}dispose(){super.dispose(),this._commandExecutedListeners.length=0,this._beforeCommandExecutionListeners.length=0}hasCommand(t){return this._commandRegistry.hasCommand(t)}registerCommand(t){return this._registerCommand(t)}registerMultipleCommand(t){return this._registerMultiCommand(t)}beforeCommandExecuted(t){if(this._beforeCommandExecutionListeners.indexOf(t)===-1)return this._beforeCommandExecutionListeners.push(t),$t(()=>{const e=this._beforeCommandExecutionListeners.indexOf(t);this._beforeCommandExecutionListeners.splice(e,1)});throw new Error("[CommandService]: could not add a listener twice.")}onCommandExecuted(t){if(this._commandExecutedListeners.indexOf(t)===-1)return this._commandExecutedListeners.push(t),$t(()=>{const e=this._commandExecutedListeners.indexOf(t);this._commandExecutedListeners.splice(e,1)});throw new Error("[CommandService]: could not add a listener twice.")}async executeCommand(t,e,n){try{const r=this._commandRegistry.getCommand(t);if(r){const[i]=r,a={id:i.id,type:i.type,params:e},o=this._pushCommandExecutionStack(a);this._beforeCommandExecutionListeners.forEach(l=>l(a,n));const s=await this._execute(i,e,n);return this._commandExecutedListeners.forEach(l=>l(a,n)),o.dispose(),s}throw new Error(`[CommandService]: command "${t}" is not registered.`)}catch(r){if(r instanceof Xce)return!1;throw this._logService.error(r),r}}syncExecuteCommand(t,e,n){var r;try{const i=this._commandRegistry.getCommand(t);if(i){const[a]=i,o={id:a.id,type:a.type,params:e};if(a.type===2){const u=Ice(this._commandExecutionStack,c=>c.type===0);u&&(o.params=(r=o.params)!=null?r:{},o.params.trigger=u.id)}const s=this._pushCommandExecutionStack(o);this._beforeCommandExecutionListeners.forEach(u=>u(o,n));const l=this._syncExecute(a,e,n);return this._commandExecutedListeners.forEach(u=>u(o,n)),s.dispose(),l}throw new Error(`[CommandService]: command "${t}" is not registered.`)}catch(i){throw this._logService.error(i),i}}_pushCommandExecutionStack(t){return this._commandExecutionStack.push(t),$t(()=>Zu(this._commandExecutionStack,t))}_registerCommand(t){return this._commandRegistry.registerCommand(t)}_registerMultiCommand(t){const e=this._commandRegistry.getCommand(t.id);let n;if(e){if(e[0].multi!==!0)throw new Error("Command has registered as a single command.");n=e[0]}else{const i=new Gi;n=new jKe(t.id),i.add(this._commandRegistry.registerCommand(n)),i.add($t(()=>{this._multiCommandDisposables.delete(t.id)})),this._multiCommandDisposables.set(t.id,i)}const r=n.registerImplementation(t);return $t(()=>{var i;r.dispose(),n.hasImplementations()||(i=this._multiCommandDisposables.get(t.id))==null||i.dispose()})}async _execute(t,e,n){this._logService.debug("[CommandService]",`${"|-".repeat(Math.max(this._commandExecutingLevel,0))}executing command "${t.id}"`),this._commandExecutingLevel++;let r;try{r=await this._injector.invoke(t.handler,e,n),this._commandExecutingLevel--}catch(i){throw r=!1,this._commandExecutingLevel=0,i}return r}_syncExecute(t,e,n){this._logService.debug("[CommandService]",`${"|-".repeat(Math.max(0,this._commandExecutingLevel))}executing command "${t.id}".`),this._commandExecutingLevel++;let r;try{if(r=this._injector.invoke(t.handler,e,n),r instanceof Promise)throw new TypeError("[CommandService]: Command handler should not return a promise.");this._commandExecutingLevel--}catch(i){throw r=!1,this._commandExecutingLevel=0,i}return r}},j(CO,"CommandService"),CO);_H=UKe([Fie(0,se(Wn)),Fie(1,Ra)],_H);const f1e=class{constructor(e){Xe(this,"name"),Xe(this,"multi",!0),Xe(this,"type",0),Xe(this,"priority",0),Xe(this,"_implementations",[]),Xe(this,"handler",j(async(n,r)=>{if(!this._implementations.length)return!1;const i=n.get(Ra),a=n.get(ui),o=n.get(Wn);for(const s of this._implementations){const l=s.command.preconditions;if((!l||l&&l(a))&&(i.debug("[MultiCommand]",`executing implementation "${s.command.name}".`),await o.invoke(s.command.handler,r)))return!0}return!1},"handler")),this.id=e,this.name=e}registerImplementation(e){const n={command:e};return this._implementations.push(n),this._implementations.sort((r,i)=>i.command.priority-r.command.priority),$t(()=>{const r=this._implementations.indexOf(n);this._implementations.splice(r,1)})}hasImplementations(){return this._implementations.length>0}};j(f1e,"MultiCommand");let jKe=f1e;function ti(t,e,n){const r=t.map(i=>()=>e.syncExecuteCommand(i.id,i.params,n));return r1e(r)}j(ti,"sequenceExecute");function A7(t,e,n){const r=t.map(i=>()=>e.executeCommand(i.id,i.params,n));return n1e(r)}j(A7,"sequenceExecuteAsync");function $Ke(t){return new On(e=>{const n=t((...r)=>e.next(r));return()=>n==null?void 0:n.dispose()})}j($Ke,"fromCallback");function m1e(t){return j(function(e){return new On(n=>(e.subscribe({next:j(r=>{n.next(r),t(r)&&n.complete()},"next"),complete:j(()=>n.complete(),"complete"),error:j(r=>n.error(r),"error")}),()=>n.unsubscribe()))},"complateAfter")}j(m1e,"takeAfter");function g1e(t,e){let n=0,r=t.length-1;for(;n<=r;){const i=Math.floor((r+n)/2);if(e=t[i-1]))return i;if(e>=t[i])n=i+1;else if(e=0&&o>=n;){if(r=t[o],o===0?i=0:i=t[o-1],e>=i&&e<=r){a=o;break}if(r=t[n],n===0?i=0:i=t[n-1],e>=i&&et[t.length-1]?Number.POSITIVE_INFINITY:(t.length<40||e<=t[20]||e>=t[n-20]?n=p1e(t,e):n=g1e(t,e),n)}j(Nh,"searchArray");function WKe(t){const e=new Blob([t],{type:"text/javascript"});return window.URL.createObjectURL(e)}j(WKe,"codeToBlob");const d6=2,zKe=1;function qKe(t,e){if(e==null||t==null)return!0;const{left:n=0,top:r=0,height:i=0,width:a=0,angle:o=0}=e,{left:s=0,top:l=0,height:u=0,width:c=0,angle:d=0}=t,h=c,f=u,m=a,g=i;return Math.abs(s-n)>d6||Math.abs(l-r)>d6||Math.abs(h-m)>d6||Math.abs(f-g)>d6||Math.abs(d-o)>zKe}j(qKe,"checkIfMove");var Un=(t=>(t[t.NONE=0]="NONE",t[t.THIN=1]="THIN",t[t.HAIR=2]="HAIR",t[t.DOTTED=3]="DOTTED",t[t.DASHED=4]="DASHED",t[t.DASH_DOT=5]="DASH_DOT",t[t.DASH_DOT_DOT=6]="DASH_DOT_DOT",t[t.DOUBLE=7]="DOUBLE",t[t.MEDIUM=8]="MEDIUM",t[t.MEDIUM_DASHED=9]="MEDIUM_DASHED",t[t.MEDIUM_DASH_DOT=10]="MEDIUM_DASH_DOT",t[t.MEDIUM_DASH_DOT_DOT=11]="MEDIUM_DASH_DOT_DOT",t[t.SLANT_DASH_DOT=12]="SLANT_DASH_DOT",t[t.THICK=13]="THICK",t))(Un||{}),Wo=(t=>(t.TOP="top",t.BOTTOM="bottom",t.LEFT="left",t.RIGHT="right",t.NONE="none",t.ALL="all",t.OUTSIDE="outside",t.INSIDE="inside",t.HORIZONTAL="horizontal",t.VERTICAL="vertical",t.TLBR="tlbr",t.TLBC_TLMR="tlbc_tlmr",t.TLBR_TLBC_TLMR="tlbr_tlbc_tlmr",t.BLTR="bl_tr",t.MLTR_BCTR="mltr_bctr",t))(Wo||{}),F1=(t=>(t[t.UNSUPPORTED=0]="UNSUPPORTED",t[t.RGB=1]="RGB",t[t.HEX=2]="HEX",t[t.THEME=3]="THEME",t))(F1||{}),ts=(t=>(t[t.COLUMNS=0]="COLUMNS",t[t.ROWS=1]="ROWS",t))(ts||{}),ut=(t=>(t[t.UP=0]="UP",t[t.RIGHT=1]="RIGHT",t[t.DOWN=2]="DOWN",t[t.LEFT=3]="LEFT",t))(ut||{});function kX(t){switch(t){case 3:return 1;case 1:return 3;case 0:return 2;case 2:return 0}}j(kX,"getReverseDirection");var pf=(t=>(t.EN_US="enUS",t.ZH_CN="zhCN",t.RU_RU="ruRU",t.ZH_TW="zhTW",t.VI_VN="viVN",t))(pf||{}),JA=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LEFT_TO_RIGHT=1]="LEFT_TO_RIGHT",t[t.RIGHT_TO_LEFT=2]="RIGHT_TO_LEFT",t))(JA||{}),Fc=(t=>(t[t.DASH=0]="DASH",t[t.DASH_DOT_DOT_HEAVY=1]="DASH_DOT_DOT_HEAVY",t[t.DASH_DOT_HEAVY=2]="DASH_DOT_HEAVY",t[t.DASHED_HEAVY=3]="DASHED_HEAVY",t[t.DASH_LONG=4]="DASH_LONG",t[t.DASH_LONG_HEAVY=5]="DASH_LONG_HEAVY",t[t.DOT_DASH=6]="DOT_DASH",t[t.DOT_DOT_DASH=7]="DOT_DOT_DASH",t[t.DOTTED=8]="DOTTED",t[t.DOTTED_HEAVY=9]="DOTTED_HEAVY",t[t.DOUBLE=10]="DOUBLE",t[t.NONE=11]="NONE",t[t.SINGLE=12]="SINGLE",t[t.THICK=13]="THICK",t[t.WAVE=14]="WAVE",t[t.WAVY_DOUBLE=15]="WAVY_DOUBLE",t[t.WAVY_HEAVY=16]="WAVY_HEAVY",t[t.WORDS=17]="WORDS",t))(Fc||{}),dr=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.LEFT=1]="LEFT",t[t.CENTER=2]="CENTER",t[t.RIGHT=3]="RIGHT",t[t.JUSTIFIED=4]="JUSTIFIED",t[t.BOTH=5]="BOTH",t[t.DISTRIBUTED=6]="DISTRIBUTED",t))(dr||{}),ea=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.TOP=1]="TOP",t[t.MIDDLE=2]="MIDDLE",t[t.BOTTOM=3]="BOTTOM",t))(ea||{}),Li=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.OVERFLOW=1]="OVERFLOW",t[t.CLIP=2]="CLIP",t[t.WRAP=3]="WRAP",t))(Li||{}),Vm=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ITALIC=1]="ITALIC",t))(Vm||{}),Bm=(t=>(t[t.NORMAL=0]="NORMAL",t[t.BOLD=1]="BOLD",t))(Bm||{}),ca=(t=>(t[t.NORMAL=1]="NORMAL",t[t.SUBSCRIPT=2]="SUBSCRIPT",t[t.SUPERSCRIPT=3]="SUPERSCRIPT",t))(ca||{}),at=(t=>(t[t.FALSE=0]="FALSE",t[t.TRUE=1]="TRUE",t))(at||{}),rr=(t=>(t[t.STRING=1]="STRING",t[t.NUMBER=2]="NUMBER",t[t.BOOLEAN=3]="BOOLEAN",t[t.FORCE_STRING=4]="FORCE_STRING",t))(rr||{}),au=(t=>(t[t.DARK1=0]="DARK1",t[t.LIGHT1=1]="LIGHT1",t[t.DARK2=2]="DARK2",t[t.LIGHT2=3]="LIGHT2",t[t.ACCENT1=4]="ACCENT1",t[t.ACCENT2=5]="ACCENT2",t[t.ACCENT3=6]="ACCENT3",t[t.ACCENT4=7]="ACCENT4",t[t.ACCENT5=8]="ACCENT5",t[t.ACCENT6=9]="ACCENT6",t[t.HYPERLINK=10]="HYPERLINK",t[t.FOLLOWED_HYPERLINK=11]="FOLLOWED_HYPERLINK",t))(au||{}),FX=(t=>(t.OFFICE="Office",t.OFFICE_2007_2010="Office 2007-2010",t.GRAYSCALE="Grayscale",t.BLUE_WARM="Blue Warm",t.BLUE="Blue",t.BLUE_II="Blue II",t.BLUE_GREEN="Blue Green",t.GREEN="Green",t.GREEN_YELLOW="Green Yellow",t.YELLOW="Yellow",t.YELLOW_ORANGE="Yellow Orange",t.ORANGE="Orange",t.ORANGE_RED="Orange Red",t.RED_ORANGE="Red Orange",t.RED="Red",t.RED_VIOLET="Red Violet",t.VIOLET="Violet",t.VIOLET_II="Violet II",t.MEDIAN="Median",t.PAPER="Paper",t.MARQUEE="Marquee",t.SLIPSTREAM="Slipstream",t.Aspect="Aspect",t))(FX||{}),CH=(t=>(t[t.LEFT=0]="LEFT",t[t.RIGHT=1]="RIGHT",t))(CH||{});const YKe="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let XKe=j(t=>crypto.getRandomValues(new Uint8Array(t)),"random"),GKe=j((t,e,n)=>{let r=(2<{let o="";for(;;){let s=n(i),l=i;for(;l--;)if(o+=t[s[l]&r]||"",o.length===a)return o}}},"customRandom"),QKe=j((t,e=21)=>GKe(t,e,XKe),"customAlphabet"),KKe=j((t=21)=>{let e="",n=crypto.getRandomValues(new Uint8Array(t));for(;t--;)e+=YKe[n[t]&63];return e},"nanoid");var cs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function VX(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}j(VX,"getDefaultExportFromCjs");var ew={exports:{}};ew.exports;(function(t,e){var n=200,r="__lodash_hash_undefined__",i=800,a=16,o=9007199254740991,s="[object Arguments]",l="[object Array]",u="[object AsyncFunction]",c="[object Boolean]",d="[object Date]",h="[object Error]",f="[object Function]",m="[object GeneratorFunction]",g="[object Map]",p="[object Number]",v="[object Null]",_="[object Object]",C="[object Proxy]",S="[object RegExp]",b="[object Set]",y="[object String]",A="[object Undefined]",w="[object WeakMap]",P="[object ArrayBuffer]",M="[object DataView]",L="[object Float32Array]",k="[object Float64Array]",O="[object Int8Array]",$="[object Int16Array]",B="[object Int32Array]",V="[object Uint8Array]",X="[object Uint8ClampedArray]",z="[object Uint16Array]",F="[object Uint32Array]",H=/[\\^$.*+?()[\]{}|]/g,W=/^\[object .+?Constructor\]$/,K=/^(?:0|[1-9]\d*)$/,G={};G[L]=G[k]=G[O]=G[$]=G[B]=G[V]=G[X]=G[z]=G[F]=!0,G[s]=G[l]=G[P]=G[c]=G[M]=G[d]=G[h]=G[f]=G[g]=G[p]=G[_]=G[S]=G[b]=G[y]=G[w]=!1;var te=typeof cs=="object"&&cs&&cs.Object===Object&&cs,Y=typeof self=="object"&&self&&self.Object===Object&&self,ae=te||Y||Function("return this")(),ie=e&&!e.nodeType&&e,ne=ie&&!0&&t&&!t.nodeType&&t,de=ne&&ne.exports===ie,_e=de&&te.process,Pe=function(){try{var Le=ne&&ne.require&&ne.require("util").types;return Le||_e&&_e.binding&&_e.binding("util")}catch{}}(),De=Pe&&Pe.isTypedArray;function Ee(Le,lt,It){switch(It.length){case 0:return Le.call(lt);case 1:return Le.call(lt,It[0]);case 2:return Le.call(lt,It[0],It[1]);case 3:return Le.call(lt,It[0],It[1],It[2])}return Le.apply(lt,It)}j(Ee,"apply");function ye(Le,lt){for(var It=-1,_r=Array(Le);++It-1}j(zt,"listCacheHas");function Yt(Le,lt){var It=this.__data__,_r=pi(It,Le);return _r<0?(++this.size,It.push([Le,lt])):It[_r][1]=lt,this}j(Yt,"listCacheSet"),Be.prototype.clear=vt,Be.prototype.delete=qt,Be.prototype.get=Lt,Be.prototype.has=zt,Be.prototype.set=Yt;function un(Le){var lt=-1,It=Le==null?0:Le.length;for(this.clear();++lt1?It[Xi-1]:void 0,lo=Xi>2?It[2]:void 0;for($a=Le.length>3&&typeof $a=="function"?(Xi--,$a):void 0,lo&&sr(It[0],It[1],lo)&&($a=Xi<3?void 0:$a,Xi=1),lt=Object(lt);++_r-1&&Le%1==0&&Le0){if(++lt>=i)return arguments[0]}else lt=0;return Le.apply(void 0,arguments)}}j(bs,"shortOut");function Hu(Le){if(Le!=null){try{return _t.call(Le)}catch{}try{return Le+""}catch{}}return""}j(Hu,"toSource");function eu(Le,lt){return Le===lt||Le!==Le&<!==lt}j(eu,"eq");var Rh=is(function(){return arguments}())?is:function(Le){return eo(Le)&&Ye.call(Le,"callee")&&!bt.call(Le,"callee")},I1=Array.isArray;function Ah(Le){return Le!=null&&$n(Le.length)&&!um(Le)}j(Ah,"isArrayLike");function f2(Le){return eo(Le)&&Ah(Le)}j(f2,"isArrayLikeObject");var f3=Ae||gie;function um(Le){if(!Zr(Le))return!1;var lt=Yi(Le);return lt==f||lt==m||lt==u||lt==C}j(um,"isFunction");function $n(Le){return typeof Le=="number"&&Le>-1&&Le%1==0&&Le<=o}j($n,"isLength");function Zr(Le){var lt=typeof Le;return Le!=null&&(lt=="object"||lt=="function")}j(Zr,"isObject");function eo(Le){return Le!=null&&typeof Le=="object"}j(eo,"isObjectLike");function Io(Le){if(!eo(Le)||Yi(Le)!=_)return!1;var lt=tr(Le);if(lt===null)return!0;var It=Ye.call(lt,"constructor")&<.constructor;return typeof It=="function"&&It instanceof It&&_t.call(It)==Ut}j(Io,"isPlainObject");var so=De?Ve(De):oo;function m2(Le){return Ge(Le,g2(Le))}j(m2,"toPlainObject");function g2(Le){return Ah(Le)?Qn(Le):Ss(Le)}j(g2,"keysIn");var Db=Ue(function(Le,lt,It,_r){po(Le,lt,It,_r)});function p2(Le){return function(){return Le}}j(p2,"constant");function cO(Le){return Le}j(cO,"identity");function gie(){return!1}j(gie,"stubFalse"),t.exports=Db})(ew,ew.exports);var ZKe=ew.exports;const JKe=VX(ZKe),eZe=new Set(["ac","ad","ae","aero","af","ag","ai","al","am","ao","aq","ar","arpa","as","asia","at","au","aw","ax","az","ba","bb","bd","be","bf","bg","bh","bi","biz","bj","bm","bn","bo","br","bs","bt","bv","bw","by","bz","ca","cat","cc","cd","cf","cg","ch","ci","ck","cl","cm","cn","co","com","coop","cr","cu","cv","cw","cx","cy","cz","de","dj","dk","dm","do","dz","ec","edu","ee","eg","er","es","et","eu","fi","fj","fk","fm","fo","fr","ga","gb","gd","ge","gf","gg","gh","gi","gl","gm","gn","gov","gp","gq","gr","gs","gt","gu","gw","gy","hk","hm","hn","hr","ht","hu","id","ie","il","im","in","info","int","io","iq","ir","is","it","je","jm","jo","jobs","jp","ke","kg","kh","ki","km","kn","kp","kr","kw","ky","kz","la","lb","lc","li","lk","lr","ls","lt","lu","lv","ly","ma","mc","md","me","mg","mh","mil","mk","ml","mm","mn","mo","mobi","mp","mq","mr","ms","mt","mu","museum","mv","mw","mx","my","mz","na","name","nc","ne","net","nf","ng","ni","nl","no","np","nr","nu","nz","om","onion","org","pa","pe","pf","pg","ph","pk","pl","pm","pn","post","pr","pro","ps","pt","pw","py","qa","re","ro","rs","ru","rw","sa","sb","sc","sd","se","sg","sh","si","sj","sk","sl","sm","sn","so","sr","ss","st","su","sv","sx","sy","sz","tc","td","tel","tf","tg","th","tj","tk","tl","tm","tn","to","tr","tt","tv","tw","tz","ua","ug","uk","us","uy","uz","va","vc","ve","vg","vi","vn","vu","wf","ws","yt","za","zm","zw"]),tZe=new RegExp("^(?:(?:(?:https?|ftp):)?\\/\\/)?(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z0-9\\u00a1-\\uffff][a-z0-9\\u00a1-\\uffff_-]{0,62})?[a-z0-9\\u00a1-\\uffff]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}\\.?))(?::\\d{2,5})?(?:[/?#]\\S*)?$","i");function v1e(t){if(!Number.isNaN(+t))return!1;if(t.startsWith("http://localhost:3002")||t.startsWith("localhost:3002"))return!0;if(tZe.test(t)){if(BX(t))return!0;try{const e=new URL(UX(t)).hostname.split(".").pop();if(e&&eZe.has(e))return!0}catch{return!1}}return!1}j(v1e,"isLegalUrl");function BX(t){return/^[a-zA-Z]+:\/\//.test(t)}j(BX,"hasProtocol");function _1e(t){return/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/.test(t)}j(_1e,"isEmail");function UX(t){return BX(t)?t:_1e(t)?`mailto://${t}`:`https://${t}`}j(UX,"normalizeUrl");const nZe=/^-ms-/,rZe=/-([a-z])/g,cm=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],C1e=class os{static stringAt(e){let n="",r=e;for(;r>=cm.length;)r/=cm.length,r-=1,n+=cm[r%cm.length];const i=e%cm.length;return n+=cm[i],n}static indexAt(e){let n=0;for(let r=0;r-1)return"Linux";if(n){if(e.indexOf("Windows NT 5.0")>-1||e.indexOf("Windows 2000")>-1)return"Windows 2000";if(e.indexOf("Windows NT 5.1")>-1||e.indexOf("Windows XP")>-1)return"Windows XP";if(e.indexOf("Windows NT 5.2")>-1||e.indexOf("Windows 2003")>-1)return"Windows 2003";if(e.indexOf("Windows NT 6.0")>-1||e.indexOf("Windows Vista")>-1)return"Windows Vista";if(e.indexOf("Windows NT 6.1")>-1||e.indexOf("Windows 7")>-1)return"Windows 7";if(e.indexOf("Windows NT 10")>-1||e.indexOf("Windows 10")>-1)return"Windows 10";if(e.indexOf("Windows NT 11")>-1||e.indexOf("Windows 11")>-1)return"Windows 11"}return"Unknown system"}static getBrowserType(){const e=navigator.userAgent,n=e.indexOf("Opera")>-1,r=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1&&!n,i=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1,a=e.indexOf("Edge")>-1,o=e.indexOf("Firefox")>-1,s=e.indexOf("Safari")>-1&&e.indexOf("Chrome")===-1,l=e.indexOf("Chrome")>-1&&e.indexOf("Safari")>-1;if(r){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const u=Number.parseFloat(RegExp.$1);return u===7?"IE7":u===8?"IE8":u===9?"IE9":u===10?"IE10":"0"}return o?"FF":n?"Opera":s?"Safari":l?"Chrome":a?"Edge":i?"IE11":"Unknown browser"}static generateRandomId(e=21,n){return Vl(e,n)}static getClassName(e){return e.constructor.name}static deepMerge(e,...n){n.forEach(o=>o&&a(o));function r(o,s){o.forEach((l,u)=>{var c,d;if(os.isArray(l)){const h=(c=s[u])!=null?c:[];s[u]=h,r(l,h);return}if(os.isObject(l)){const h=(d=s[u])!=null?d:{};s[u]=h,i(l,h);return}s[u]=l})}j(r,"deepArray");function i(o,s){Object.keys(o).forEach(l=>{var u,c;const d=o[l];if(os.isObject(d)){const h=(u=s[l])!=null?u:{};s[l]=h,i(d,h);return}if(os.isArray(d)){const h=(c=s[l])!=null?c:[];s[l]=h,r(d,h);return}s[l]=d})}j(i,"deepObject");function a(o){Object.keys(o).forEach(s=>{var l,u;const c=o[s];if(os.isArray(c)){const d=(l=e[s])!=null?l:[];e[s]=d,r(c,d);return}if(os.isObject(c)){const d=(u=e[s])!=null?u:{};e[s]=d,i(c,d);return}e[s]=c})}return j(a,"deepItem"),e}static numberFixed(e,n){return Number(Number(e).toFixed(n))}static diffValue(e,n){function r(o,s){const l=os.getValueType(o),u=os.getValueType(s);return l!==u?!1:os.isArray(o)?i(o,s):os.isObject(o)?a(o,s):os.isDate(o)?o.getTime()===s.getTime():os.isRegExp(o)?o.toString()===s.toString():o===s}j(r,"diffValue");function i(o,s){if(e.length!==n.length)return!1;for(let l=0,u=o.length;l{n[i]=os.deepClone(r)}),n}if(this.isObject(e)){const n={};return Object.keys(e).forEach(r=>{const i=e[r];n[r]=os.deepClone(i)}),Object.setPrototypeOf(n,Object.getPrototypeOf(e)),n}return e}static getLanguage(){return globalThis.navigator&&(navigator.languages&&navigator.languages[0]||navigator.language)||"en-US"}static getValueType(e){return Object.prototype.toString.apply(e)}static isDefine(e){return e!=null}static isBlank(e){return this.isDefine(e)?this.isString(e)?e.trim()==="":!1:!0}static isBoolean(e){return this.getValueType(e)==="[object Boolean]"}static isPlainObject(e){return this.isDefine(e)?Object.getPrototypeOf(e)===Object.getPrototypeOf({}):!1}static isFunction(e){return this.getValueType(e)==="[object Function]"}static isDate(e){return this.getValueType(e)==="[object Date]"}static isRegExp(e){return this.getValueType(e)==="[object RegExp]"}static isArray(e){return this.getValueType(e)==="[object Array]"}static isString(e){return this.getValueType(e)==="[object String]"}static isNumber(e){return this.getValueType(e)==="[object Number]"}static isStringNumber(e){return!isNaN(Number.parseFloat(e))&&isFinite(e)}static isObject(e){return this.getValueType(e)==="[object Object]"}static isEmptyObject(e){for(const n in e)return!1;return!0}static isMobile(){let e=0,n=0;return document.body.clientWidth&&(e=document.body.clientWidth),document.body.clientHeight&&(n=document.body.clientHeight),this.isAndroid()||this.isIPhone()||this.isTablet()||e<350&&n<500}static isTablet(){return/ipad|android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase())}static isWeChat(){const e=navigator.userAgent.toLowerCase();return String(e.match(/MicroMessenger/i))==="micromessenger"}static isAndroid(){const e=navigator.userAgent;return e.indexOf("Android")>-1||e.indexOf("Linux")>-1}static isIPhone(){return/iPhone/i.test(navigator.userAgent)}static isLegalUrl(e){return v1e(e)}static normalizeUrl(e){return UX(e)}static itCount(e){return n=>{for(let r=0;r0:!1}static capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}static fCamelCase(e,n){return n.toUpperCase()}static camelCase(e){return e.replace(nZe,"ms-").replace(rZe,this.fCamelCase)}static removeNull(e){return this.isObject(e)&&Object.keys(e).forEach(n=>{const r=e[n];r==null?delete e[n]:os.removeNull(r)}),e}static fillTwoDimensionalArray(e,n,r){return new Array(e).fill(r).map(i=>new Array(n).fill(r))}static numToWord(e){let n="";for(;e>0;){let r=e%26;r=r===0?r=26:r,n=String.fromCharCode(96+r)+n,e=(e-r)/26}return n.toLocaleUpperCase()}static ABCatNum(e){if(e==null||e.length===0)return Number.NaN;const n=e.toLowerCase().split(""),r=n.length;let i=0,a=0;for(let o=0;o=0;)n=String.fromCharCode(e%26+97)+n,e=Math.floor(e/26)-1;return n.toUpperCase()}static randSort(e){for(let n=0,r=e.length;n{n[i]={},r.forEach((a,o)=>{n[i][o]=a})}),n}static hasIntersectionBetweenTwoRanges(e,n,r,i){return n>=r&&i>=e}static isStartValidPosition(e){return/^[A-Za-z_]/.test(e)}static isValidParameter(e){const n=/[~!@#$%^&*()+=\-{}\[\]\|:;"'<>,?\/ ]+/.test(e),r=e.length<=255;return!n&&r}static set(e,n,r){const i=n.split("."),a=i.pop();i.forEach(o=>{e[o]||(e[o]={}),e=e[o]}),a&&(e[a]=r)}static clamp(e,n,r){return Math.max(n,Math.min(r,e))}static now(){return performance&&performance.now?performance.now():Date.now()}static mergeWith(e,n,r){return JKe(e,n,r)}};j(C1e,"Tools");let Ie=C1e;function Vl(t=21,e){return e?QKe(e,t)():KKe(t)}j(Vl,"generateRandomId");function mE(t,e,n){const{dataStream:r,textRuns:i=[]}=t;let a=e;const o=[];for(const s of i){const{st:l,ed:u}=s;Ie.hasIntersectionBetweenTwoRanges(e,n,l,u)&&(l>a?(o.push(r.slice(a,l)),o.push(SH(r,{...s,ed:Math.min(u,n)}))):o.push(SH(r,{...s,st:a,ed:Math.min(u,n)}))),a=Math.max(e,Math.min(u,n))}return a!==n&&o.push(r.slice(a,n)),o.join("")}j(mE,"getBodySliceHtml");function S1e(t,e=!0){var n;if(e&&(n=t.paragraphs)!=null&&n.length){const{dataStream:r,paragraphs:i=[]}=t;let a="",o=-1;for(const s of i){const{startIndex:l,paragraphStyle:u={}}=s,{spaceAbove:c,spaceBelow:d,lineSpacing:h}=u,f=[];c!=null&&(typeof c=="number"?f.push(`margin-top: ${c}px`):f.push(`margin-top: ${c.v}px`)),d!=null&&(typeof d=="number"?f.push(`margin-bottom: ${d}px`):f.push(`margin-bottom: ${d.v}px`)),h!=null&&f.push(`line-height: ${h}`),l>o+1?a+=`

${mE(t,o+1,l)}

`:a+=`

`,o=l}return o!==r.length&&(a+=mE(t,o,r.length)),a}else return mE(t,0,t.dataStream.length)}j(S1e,"convertBodyToHtml");function SH(t,e){const{st:n,ed:r,ts:i={}}=e,{ff:a,fs:o,it:s,bl:l,ul:u,st:c,ol:d,bg:h,cl:f,va:m}=i;let g=t.slice(n,r);const p=[];return s===at.TRUE&&(g=`${g}`),m===ca.SUPERSCRIPT?g=`${g}`:m===ca.SUBSCRIPT&&(g=`${g}`),(u==null?void 0:u.s)===at.TRUE&&(g=`${g}`),(c==null?void 0:c.s)===at.TRUE&&(g=`${g}`),l===at.TRUE&&(g=`${g}`),a&&p.push(`font-family: ${a}`),f&&p.push(`color: ${f.rgb}`),o&&p.push(`font-size: ${o}pt`),d&&p.push("text-decoration: overline"),h&&p.push(`background: ${h.rgb}`),p.length?`${g}`:g}j(SH,"covertTextRunToHtml");const iZe={[FX.OFFICE]:{[au.ACCENT1]:"#4472C4",[au.ACCENT2]:"#ED7D31",[au.ACCENT3]:"#A5A5A5",[au.ACCENT4]:"#70AD47",[au.ACCENT5]:"#5B9BD5",[au.ACCENT6]:"#70AD47",[au.DARK1]:"#000000",[au.DARK2]:"#44546A",[au.LIGHT1]:"#FFFFFF",[au.LIGHT2]:"#E7E6E6",[au.HYPERLINK]:"#0563C1",[au.FOLLOWED_HYPERLINK]:"#954F72"}},b1e=class{constructor(){Xe(this,"_themeValue",au.LIGHT1),Xe(this,"_themeColors"),Xe(this,"_themeTint"),Xe(this,"_rgbValue",""),Xe(this,"_colorType"),this._colorType=F1.UNSUPPORTED,this._themeColors=FX.OFFICE,this._themeTint=0}asRgbColor(){return new oZe(this._rgbValue,this)}asThemeColor(){return new sZe(this._themeValue,this._themeTint,this._themeColors,this)}build(){switch(this._colorType){case F1.THEME:return this.asThemeColor();case F1.RGB:return this.asRgbColor();case F1.UNSUPPORTED:throw new Error("unsupported color type")}}setRgbColor(e){return this._colorType=F1.RGB,this._rgbValue=e,this}setThemeColors(e){this._colorType=F1.THEME,this._themeColors=e}setThemeTint(e){this._colorType=F1.THEME,this._themeTint=e}setThemeColor(e){return this._colorType=F1.THEME,this._themeValue=e,this}getColorType(){return this._colorType}};j(b1e,"ColorBuilder");let HX=b1e;const y1e=class E1e{constructor(e){Xe(this,"_builder"),this._builder=e}static rgbColorToHexValue(e){return`#${((1<<24)+(e.getRed()<<16)+(e.getGreen()<<8)+e.getBlue()).toString(16).slice(1)}`}static hexValueToRgbColor(e){e?e.indexOf("#")>-1&&(e=e.substring(1)):e="#000000";const n=+`0x${e[0]}${e[1]}`,r=+`0x${e[2]}${e[3]}`,i=+`0x${e[4]}${e[5]}`;return new HX().setRgbColor(`rgb(${n},${r},${i})`).asRgbColor()}static hexToRgbString(e){const n=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(n,(a,o,s,l)=>o+o+s+s+l+l);const r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);let i=null;if(r){const a=Number.parseInt(r[1],16),o=Number.parseInt(r[2],16),s=Number.parseInt(r[3],16);i=`rgba(${a},${o},${s})`}return i}asRgbColor(){return this._builder.asRgbColor()}asThemeColor(){return this._builder.asThemeColor()}getColorType(){return this._builder.getColorType()}clone(){return new E1e(this._builder)}equals(e){return!1}};j(y1e,"Color");let tw=y1e;const R1e=class{constructor(e){Xe(this,"_saturation",0),Xe(this,"_hue",0),Xe(this,"_lightness",0),Xe(this,"_alpha",0);const n=e.getRed()/255,r=e.getGreen()/255,i=e.getBlue()/255,a=e.getAlpha()/255,o=Math.min(n,Math.min(r,i)),s=Math.max(n,Math.max(r,i)),l=s-o;if(s===o){this._hue=0,this._saturation=0,this._lightness=s;return}this._lightness=(o+s)/2,this._lightness<.5?this._saturation=l/(s+o):this._saturation=l/(2-s-o),n===s&&(this._hue=(r-i)/l),r===s&&(this._hue=2+(i-n)/l),i===s&&(this._hue=4+(n-r)/l),this._hue*=60,this._hue<0&&(this._hue+=360),this._alpha=a}asRgbColor(){const e=new HX;if(this._saturation===0)return e.setRgbColor(`rgba(${this._lightness*255},${this._lightness*255},${this._lightness*255},${this._alpha*255})`),e.asRgbColor();let n;this._lightness<.5?n=this._lightness*(1+this._saturation):n=this._lightness+this._saturation-this._lightness*this._saturation;const r=2*this._lightness-n,i=this._hue/360,a=i+1/3,o=this.setColor(n,r,a),s=this.setColor(n,r,i),l=i-1/3,u=this.setColor(n,r,l);return e.setRgbColor(`rgba(${Math.round(o*255)},${Math.round(s*255)},${Math.round(u*255)},${this._alpha*255})`),e.asRgbColor()}getLightness(){return this._lightness}getHue(){return this._hue}getSaturation(){return this._saturation}getAlpha(){return this._alpha}setColor(e,n,r){r<0&&(r+=1),r>1&&(r-=1);let i;return 6*r<1?i=n+(e-n)*6*r:2*r<1?i=e:3*r<2?i=n+(e-n)*(2/3-r)*6:i=n,i}setLightness(e){this._lightness=e}};j(R1e,"HLSColor");let aZe=R1e;const b5=class Am extends tw{constructor(e,n){super(n),Xe(this,"_cssString"),Xe(this,"_red"),Xe(this,"_green"),Xe(this,"_blue"),Xe(this,"_alpha");let r=e.match(Am.RGBA_EXTRACT);if(r){const i=+r[1],a=+r[2],o=+r[3],s=+r[4];this._cssString=e,this._red=i,this._green=a,this._blue=o,this._alpha=s;return}if(r=e.match(Am.RGB_EXTRACT),r){const i=+r[1],a=+r[2],o=+r[3];this._cssString=e,this._red=i,this._green=a,this._blue=o,this._alpha=1;return}throw new Error("Invalid rgba or rgb color")}asHexString(){return tw.rgbColorToHexValue(this)}getRed(){let e=this._red+Am.RGB_COLOR_AMT;return e>255?e=255:e<0&&(e=0),e}getGreen(){let e=this._green+Am.RGB_COLOR_AMT;return e>255?e=255:e<0&&(e=0),e}getBlue(){let e=this._blue+Am.RGB_COLOR_AMT;return e>255?e=255:e<0&&(e=0),e}getAlpha(){return this._alpha}getColorType(){return F1.RGB}clone(){return new Am(this._cssString,this._builder)}asThemeColor(){throw new Error("rgb color not support to themeColor")}equals(e){return e instanceof Am?e._red===this._red&&e._blue===this._blue&&e._green===this._green&&e._alpha===this._alpha:!1}getCssString(){return this._cssString}};j(b5,"RgbColor"),Xe(b5,"RGB_COLOR_AMT",0),Xe(b5,"RGBA_EXTRACT",new RegExp("\\s*rgba\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d.\\d|\\d\\s*)\\)\\s*")),Xe(b5,"RGB_EXTRACT",new RegExp("\\s*rgb\\s*\\((\\s*\\d+\\s*),(\\s*\\d+\\s*),(\\s*\\d+\\s*)\\)\\s*"));let oZe=b5;const bH=class q3 extends tw{constructor(e,n,r,i){super(i),Xe(this,"_themeColorType"),Xe(this,"_themeTint"),Xe(this,"_themeColors"),this._themeColorType=e,this._themeTint=n,this._themeColors=r}lumValue(e,n){if(e==null)return n;let r;return e<0?r=n*(1+e):r=n*(1-e)+(255-255*(1-e)),r}asRgbColor(){const e=iZe[this._themeColors];if(e==null)throw new Error("not find themeColors type");const n=e[this._themeColorType];if(n==null)throw new Error("not find themeColors value");let r;if(q3._cacheThemeColor.has(this._themeColors)){if(r=q3._cacheThemeColor.get(this._themeColors),r.has(this._themeColorType))return r.get(this._themeColorType)}else r=new Map,q3._cacheThemeColor.set(this._themeColors,r);const i=new aZe(tw.hexValueToRgbColor(n));i.setLightness(this.lumValue(this._themeTint,i.getLightness()*255)/255);const a=i.asRgbColor();return r.set(this._themeColorType,a),a}clone(){return new q3(this._themeColorType,this._themeTint,this._themeColors,this._builder)}equals(e){return e instanceof q3?e._themeColorType===this._themeColorType:!1}getColorType(){return F1.THEME}getThemeColorType(){return this._themeColorType}};j(bH,"ThemeColor"),Xe(bH,"_cacheThemeColor",new Map);let sZe=bH;const Gh={aliceBlue:[240,248,255],antiqueWhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blancheAlmond:[255,235,205],blue:[0,0,255],blueViolet:[138,43,226],brown:[165,42,42],burlyWood:[222,184,135],cadetBlue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornFlowerBlue:[100,149,237],cornSilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkCyan:[0,139,139],darkGoldenrod:[184,132,11],darkGray:[169,169,169],darkGreen:[0,100,0],darkGrey:[169,169,169],darkKhaki:[189,183,107],darkMagenta:[139,0,139],darkOliveGreen:[85,107,47],darkOrange:[255,140,0],darkOrchid:[153,50,204],darkRed:[139,0,0],darkSalmon:[233,150,122],darkSeaGreen:[143,188,143],darkSlateBlue:[72,61,139],darkSlateGray:[47,79,79],darkSlateGrey:[47,79,79],darkTurquoise:[0,206,209],darkViolet:[148,0,211],deepPink:[255,20,147],deepSkyBlue:[0,191,255],dimGray:[105,105,105],dimGrey:[105,105,105],dodgerBlue:[30,144,255],firebrick:[178,34,34],floralWhite:[255,255,240],forestGreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostWhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenYellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotPink:[255,105,180],indianRed:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderBlush:[255,240,245],lawnGreen:[124,252,0],lemonChiffon:[255,250,205],lightblue:[173,216,230],lightCoral:[240,128,128],lightCyan:[224,255,255],lightGoldenrodYellow:[250,250,210],lightGray:[211,211,211],lightGreen:[144,238,144],lightGrey:[211,211,211],lightPink:[255,182,193],lightSalmon:[255,160,122],lightSeaGreen:[32,178,170],lightSkyBlue:[135,206,250],lightSlateGray:[119,136,153],lightSlateGrey:[119,136,153],lightSteelBlue:[176,196,222],lightYellow:[255,255,224],lime:[0,255,0],limeGreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumAquamarine:[102,205,170],mediumBlue:[0,0,205],mediumOrchid:[186,85,211],mediumPurple:[147,112,219],mediumSeaGreen:[60,179,113],mediumSlateBlue:[123,104,238],mediumSpringGreen:[0,250,154],mediumTurquoise:[72,209,204],mediumVioletRed:[199,21,133],midBightBlue:[25,25,112],mintCream:[245,255,250],mistyRose:[255,228,225],moccasin:[255,228,181],navajoWhite:[255,222,173],navy:[0,0,128],oldLace:[253,245,230],olive:[128,128,0],oliveDrab:[107,142,35],orange:[255,165,0],orangeRed:[255,69,0],orchid:[218,112,214],paleGoldenrod:[238,232,170],paleGreen:[152,251,152],paleTurquoise:[175,238,238],paleVioletRed:[219,112,147],papayaWhip:[255,239,213],peachPuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderBlue:[176,224,230],purple:[128,0,128],rebeccaPurple:[102,51,153],red:[255,0,0],rosyBrown:[188,143,143],royalBlue:[65,105,225],saddleBrown:[139,69,19],salmon:[250,128,114],sandyBrown:[244,164,96],seaGreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyBlue:[135,206,235],slateBlue:[106,90,205],slateGray:[119,128,144],slateGrey:[119,128,144],snow:[255,255,250],springGreen:[0,255,127],steelBlue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whiteSmoke:[245,245,245],yellow:[255,255,0],yellowGreen:[154,205,5]},A1e=class Ld{constructor(e){if(Xe(this,"_color"),Xe(this,"_rgbColor"),Xe(this,"_isValid",!1),e==null){this._setNullColor();return}if(e instanceof Ld){this._color={...e._color},this._rgbColor={...e._rgbColor};return}const n=w1e(e);if(n==null){this._setNullColor();return}this._color=n;const r=hZe(this._color);if(r==null){this._setNullColor();return}this._rgbColor=r,this._isValid=!0}static mix(e,n,r){var i,a;r=Math.min(1,Math.max(0,r));const o=new Ld(e).toRgb(),s=new Ld(n).toRgb(),l=(i=o.a)!=null?i:1,u=(a=s.a)!=null?a:1,c={r:(s.r-o.r)*r+o.r,g:(s.g-o.g)*r+o.g,b:(s.b-o.b)*r+o.b,a:(u-l)*r+l};return new Ld(c)}static getContrastRatio(e,n){const r=new Ld(e).getLuminance(),i=new Ld(n).getLuminance();return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}get isValid(){return this._isValid}toRgb(){return this._rgbColor}toRgbString(){const{r:e,g:n,b:r,a:i=1}=this.toRgb(),a=i<1;return`rgb${a?"a":""}(${e},${n},${r}${a?`,${i}`:""})`}toString(){return this.toRgbString()}toHexString(e){const{r:n,g:r,b:i,a=1}=this.toRgb(),o=a<1,s=[Tb(Math.round(n).toString(16)),Tb(Math.round(r).toString(16)),Tb(Math.round(i).toString(16)),Tb(Math.round(a*255).toString(16))];return e&&s[0][0]===s[0][1]&&s[1][0]===s[1][1]&&s[2][0]===s[2][1]&&s[3][0]===s[3][1]?o?`#${s[0][0]}${s[1][0]}${s[2][0]}${s[3][0]}`:`#${s[0][0]}${s[1][0]}${s[2][0]}`:o?`#${s[0]}${s[1]}${s[2]}${s[3]}`:`#${s[0]}${s[1]}${s[2]}`}toHsv(){return pZe(this.toRgb())}toHsl(){return gZe(this.toRgb())}lighten(e=10){const n=this.toHsl();return n.l+=e,n.l=Math.min(Math.max(n.l,0),100),new Ld(n)}darken(e=10){const n=this.toHsl();return n.l-=e,n.l=Math.min(Math.max(n.l,0),100),new Ld(n)}setAlpha(e){return new Ld({...this._rgbColor,a:e})}getLuminance(){let{r:e,g:n,b:r}=this.toRgb();return e=SO(e),n=SO(n),r=SO(r),Number((.2126*e+.7152*n+.0722*r).toFixed(3))}getBrightness(){const{r:e,g:n,b:r}=this.toRgb();return(e*299+n*587+r*114)/1e3}getAlpha(){var e;return(e=this._color.a)!=null?e:1}isDark(){return this.getBrightness()<128}isLight(){return!this.isDark()}_setNullColor(){this._isValid=!1,this._color={r:0,g:0,b:0,a:0},this._rgbColor={r:0,g:0,b:0,a:0}}};j(A1e,"ColorKit");let Zs=A1e;const Tb=j(t=>t.length===1?`0${t}`:t,"pad2"),SO=j(t=>(t/=255,t<=.03928?t/12.92:((t+.055)/1.055)**2.4),"rgbNormalize"),w1e=j(t=>{if(_Ze(t)){if("r"in t){const r={r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)};return t.a!==void 0&&(r.a=t.a),r}if("l"in t){const r={h:Math.round(t.h),s:t.s,l:t.l};return t.a!==void 0&&(r.a=t.a),r}const n={h:Math.round(t.h),s:t.s,v:t.v};return t.a!==void 0&&(n.a=t.a),n}const e=t.trim();if(Gh[e]){const n=Gh[e],r={r:Math.round(n[0]),g:Math.round(n[1]),b:Math.round(n[2])};return r.a=n[3]||1,r}if(e.startsWith("#"))return lZe(e);if(e.startsWith("rgb"))return uZe(e);if(e.startsWith("hsl"))return cZe(e);if(e.startsWith("hsv"))return dZe(e)},"toColor"),lZe=j(t=>{const e=t.substring(1),n=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(n);if(!r||r.length<3)throw new Error(`The color '${t}' is illegal hex color`);r[0].length===1&&(r=r.map(a=>a+a));const i={r:Number.parseInt(r[0],16),g:Number.parseInt(r[1],16),b:Number.parseInt(r[2],16)};return r.length>3&&(i.a=Number.parseInt(r[3],16)/255),i},"hexToColor"),uZe=j(t=>{const e=t.indexOf("(");if(e===-1)throw new Error(`The color '${t}' is illegal rgb color`);const n=t.substring(e+1,t.length-1).split(",");if(n.length<3)throw new Error(`The color '${t}' is illegal rgb color`);const r={r:Number.parseInt(n[0],10),g:Number.parseInt(n[1],10),b:Number.parseInt(n[2],10)};return n.length>3&&(r.a=Number.parseFloat(n[3])),r},"rgbToColor"),cZe=j(t=>{const e=t.indexOf("(");if(e===-1)throw new Error(`The color '${t}' is illegal hsl color`);const n=t.substring(e+1,t.length-1).split(",");if(n.length<3)throw new Error(`The color '${t}' is illegal hsl color`);const r={h:Number.parseInt(n[0],10),s:Number.parseFloat(n[1]),l:Number.parseFloat(n[2])};return n.length>3&&(r.a=Number.parseFloat(n[3])),r},"hslToColor"),dZe=j(t=>{const e=t.indexOf("(");if(e===-1)throw new Error(`The color '${t}' is illegal hsv color`);const n=t.substring(e+1,t.length-1).split(",");if(n.length<3)throw new Error(`The color '${t}' is illegal hsv color`);const r={h:Number.parseInt(n[0],10),s:Number.parseFloat(n[1]),v:Number.parseFloat(n[2])};return n.length>3&&(r.a=Number.parseFloat(n[3])),r},"hsvToColor"),hZe=j(t=>{const e=w1e(t);if(e!=null)return"r"in e?e:"l"in e?fZe(e):mZe(e)},"toRgbColor"),bO=j((t,e,n)=>(n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t),"hue2Rgb"),fZe=j(t=>{let{h:e,s:n,l:r}=t;e/=360,n/=100,r/=100;let i=0,a=0,o=0;if(n===0)i=a=o=r;else{const l=r<.5?r*(1+n):r+n-r*n,u=2*r-l;i=bO(u,l,e+1/3),a=bO(u,l,e),o=bO(u,l,e-1/3)}const s={r:Math.round(i*255),g:Math.round(a*255),b:Math.round(o*255)};return t.a!==void 0&&(s.a=t.a),s},"hsl2Rgb"),mZe=j(t=>{let{h:e,s:n,v:r}=t;e=e/360*6,n/=100,r/=100;const i=Math.floor(e),a=e-i,o=r*(1-n),s=r*(1-a*n),l=r*(1-(1-a)*n),u=i%6,c=[r,s,o,o,l,r][u],d=[l,r,r,s,o,o][u],h=[o,o,l,r,r,s][u],f={r:c*255,g:d*255,b:h*255};return t.a!==void 0&&(f.a=t.a),f},"hsv2Rgb"),gZe=j(t=>{let{r:e,g:n,b:r}=t;e/=255,n/=255,r/=255;const i=Math.max(e,n,r),a=Math.min(e,n,r),o=(i+a)/2;let s,l;if(i===a)s=l=0;else{const c=i-a;switch(l=o>.5?c/(2-i-a):c/(i+a),i){case e:s=(n-r)/c+(n{let{r:e,g:n,b:r}=t;e/=255,n/=255,r/=255;const i=Math.max(e,n,r),a=Math.min(e,n,r);let o;const s=i,l=i-a,u=i===0?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(n-r)/l+(nt==null,"isUndefinedOrNull"),_Ze=j(t=>!vZe(t)&&typeof t=="object","isObject");function CZe(t){const e=/^#(?:[0]{3}|[0]{6})\b/,n=/^rgb\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*\)$/,r=/^rgba\s*\(\s*0+\s*,\s*0+\s*,\s*0+\s*,\s*(1|1\.0*|0?\.\d+)\)$/,i=/^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*\)$/,a=/^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*0%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;return!!(e.test(t)||n.test(t)||r.test(t)||i.test(t)||a.test(t))}j(CZe,"isBlackColor");function yH(t){const e=/^#(?:[Ff]{3}|[Ff]{6})\b/,n=/^rgb\s*\(\s*255\s*,\s*255\s*,\s*255\s*\)$/,r=/^rgba\s*\(\s*255\s*,\s*255\s*,\s*255\s*,\s*(1|1\.0*|0?\.\d+)\)$/,i=/^hsl\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*\)$/,a=/^hsla\s*\(\s*0*\s*,\s*0%*\s*,\s*100%*\s*,\s*(1|1\.0*|0?\.\d+)\)$/;return!!(e.test(t)||n.test(t)||r.test(t)||i.test(t)||a.test(t))}j(yH,"isWhiteColor");var go=(t=>(t[t.COVER=0]="COVER",t[t.REPLACE=1]="REPLACE",t[t.INTERSECTION=2]="INTERSECTION",t))(go||{});function YP(t){return t&&(t.s!==void 0||t.p!==void 0||t.v!==void 0||t.t!==void 0||t.f!==void 0||t.si!==void 0||t.custom!==void 0)}j(YP,"isICellData");function D1e(t){if(t.t!==void 0)return t.t;if(typeof t.v=="string")return rr.STRING;if(typeof t.v=="number")return rr.NUMBER;if(typeof t.v=="boolean")return rr.BOOLEAN}j(D1e,"getCellValueType");function pg(t){if(t==null)return!0;const{v:e,f:n,si:r,p:i,s:a,custom:o}=t;return!(!(e==null||typeof e=="string"&&e.length===0)||n!=null&&n.length>0||r!=null&&r.length>0||i!=null||o!=null)}j(pg,"isNullCell");function SZe(t){return t!=null&&(typeof t=="string"||typeof t=="number"||typeof t=="boolean")}j(SZe,"isCellV");var it=(t=>(t[t.NORMAL=0]="NORMAL",t[t.ROW=1]="ROW",t[t.COLUMN=2]="COLUMN",t[t.ALL=3]="ALL",t))(it||{}),yr=(t=>(t[t.NONE=0]="NONE",t[t.ROW=1]="ROW",t[t.COLUMN=2]="COLUMN",t[t.ALL=3]="ALL",t))(yr||{});function I1e(t){return[t.startRow,t.startColumn,t.endRow,t.endColumn]}j(I1e,"selectionToArray");var Ws=(t=>(t.NONE="none",t.BACKWARD="backward",t.FORWARD="forward",t))(Ws||{}),v4=(t=>(t.RECT="RECT",t.TEXT="TEXT",t))(v4||{});function XP(t,e,n){let r=!1,i=!1,a=t,o=e,s=t,l=e;if(n==null)return{actualRow:t,actualColumn:e,isMergedMainCell:i,isMerged:r,endRow:a,endColumn:o,startRow:s,startColumn:l};for(let u=0;u=c&&t<=d&&e>=h&&e<=f){a=d,o=f,s=c,l=h,r=!0;break}}return{actualRow:t,actualColumn:e,isMergedMainCell:i,isMerged:r,endRow:a,endColumn:o,startRow:s,startColumn:l}}j(XP,"getCellInfoInMergeData");function GP(t){const{actualRow:e,actualColumn:n,isMerged:r,isMergedMainCell:i,mergeInfo:a}=t;let{startY:o,endY:s,startX:l,endX:u}=t,c=e,d=n,h=e,f=n;if(r&&a){const{startRow:m,startColumn:g,endRow:p,endColumn:v,startY:_,endY:C,startX:S,endX:b}=a;c=m,d=g,h=p,f=v,o=_,s=C,l=S,u=b}return i&&(o=a.startY,s=a.endY,l=a.startX,u=a.endX,h=a.endRow,f=a.endColumn),{startRow:c,startColumn:d,endRow:h,endColumn:f,startY:o,endY:s,startX:l,endX:u}}j(GP,"makeCellToSelection");function P1e(t){if(!t)return;const{actualRow:e,actualColumn:n,isMerged:r,isMergedMainCell:i,startRow:a,startColumn:o,endRow:s,endColumn:l}=t;let u=e,c=n,d=e,h=n;return(r||i)&&(u=a,c=o,d=s,h=l),{startRow:u,startColumn:c,endRow:d,endColumn:h}}j(P1e,"makeCellRangeToRangeData");function M1e(t){var e;return!t||(((e=t==null?void 0:t.v)==null?void 0:e.toString())||"").length===0&&!t.p}j(M1e,"isEmptyCell");function EH(t){return M1e(t)&&(t==null?void 0:t.coverable)!==!1}j(EH,"isCellCoverable");function js(t){if(t){if(t.rgb)return t.rgb;if(t.th)return new HX().setThemeColor(t.th).asThemeColor().asRgbColor().getCssString()}return null}j(js,"getColorStyle");function Ar(t){return Ie.isString(t)&&t.substring(0,1)==="="&&t.length>1}j(Ar,"isFormulaString");function Rl(t){return Ie.isString(t)&&t.length>0}j(Rl,"isFormulaId");function RH(t,e=!1){var n;let r="";const i=new Map([["ff",()=>{t.ff&&(r+=`font-family: ${t.ff}; `)}],["fs",()=>{if(t.fs){let o=t.fs;t.va&&(o/=2),r+=`font-size: ${o}pt; `}}],["it",()=>{t.it&&(r+="font-style: italic; ")}],["bl",()=>{t.bl&&(r+="font-weight: bold; ")}],["ul",()=>{var o;(o=t.ul)!=null&&o.s&&(r.indexOf("text-decoration-line")>-1?r=r.replace(/(text-decoration-line:\s*[^;]+)(?=;)/g,(s,l)=>`${l} underline`):r+="text-decoration: underline; ",t.ul.cl&&r.indexOf("text-decoration-color")===-1&&(r+=`text-decoration-color: ${js(t.ul.cl)}; `),t.ul.t&&r.indexOf("text-decoration-style")===-1&&(r+=`text-decoration-style: ${t.ul.t} `))}],["st",()=>{var o;(o=t.st)!=null&&o.s&&(r.indexOf("text-decoration-line")>-1?r=r.replace(/(text-decoration-line:\s*[^;]+)(?=;)/g,(s,l)=>`${l} line-through`):r+="text-decoration-line: line-through; ",t.st.cl&&r.indexOf("text-decoration-color")===-1&&(r+=`text-decoration-color: ${js(t.st.cl)}; `),t.st.t&&r.indexOf("text-decoration-style")===-1&&(r+=`text-decoration-style: ${t.st.t} `))}],["ol",()=>{var o;(o=t.ol)!=null&&o.s&&(r.indexOf("text-decoration-line")>-1?r=r.replace(/(text-decoration-line:\s*[^;]+)(?=;)/g,(s,l)=>`${l} overline`):r+="text-decoration-line: overline; ",t.ol.cl&&r.indexOf("text-decoration-color")===-1&&(r+=`text-decoration-color: ${js(t.ol.cl)}; `),t.ol.t&&r.indexOf("text-decoration-style")===-1&&(r+=`text-decoration-style: ${t.ol.t} `))}],["bg",()=>{t.bg&&(r+=`background: ${js(t.bg)}; `)}],["bd",()=>{var o,s,l,u,c,d,h,f,m,g,p,v;(o=t.bd)!=null&&o.b&&(r+=`border-bottom: ${y5((s=t.bd)==null?void 0:s.b.s)} ${(l=js(t.bd.b.cl))!=null?l:""}; `),(u=t.bd)!=null&&u.t&&(r+=`border-top: ${y5((c=t.bd)==null?void 0:c.t.s)} ${(d=js(t.bd.t.cl))!=null?d:""}; `),(h=t.bd)!=null&&h.r&&(r+=`border-right: ${y5((f=t.bd)==null?void 0:f.r.s)} ${(m=js(t.bd.r.cl))!=null?m:""}; `),(g=t.bd)!=null&&g.l&&(r+=`border-left: ${y5((p=t.bd)==null?void 0:p.l.s)} ${(v=js(t.bd.l.cl))!=null?v:""}; `)}],["cl",()=>{t.cl&&(r+=`color: ${js(t.cl)}; `)}],["va",()=>{t.va===ca.SUBSCRIPT?r+="vertical-align: sub; ":t.va===ca.SUPERSCRIPT&&(r+="vertical-align: super; ")}],["td",()=>{t.td===JA.LEFT_TO_RIGHT?r+="direction: ltr; ":t.td===JA.RIGHT_TO_LEFT&&(r+="direction: rtl; ")}],["tr",()=>{var o,s,l;t.tr&&(r+=`--data-rotate: (${(o=t.tr)==null?void 0:o.a}deg${(s=t.tr)!=null&&s.v?` ,${(l=t.tr)==null?void 0:l.v}`:""});`)}],["ht",()=>{t.ht===dr.LEFT?r+="text-align: left; ":t.ht===dr.RIGHT?r+="text-align: right; ":t.ht===dr.CENTER?r+="text-align: center; ":t.ht===dr.JUSTIFIED&&(r+="text-align: justify; ")}],["vt",()=>{t.vt===ea.BOTTOM?r+="vertical-align: bottom; ":t.vt===ea.TOP?r+="vertical-align: top; ":t.vt===ea.MIDDLE&&(r+="vertical-align: middle; ")}],["tb",()=>{t.tb===Li.CLIP?r+="white-space: nowrap; overflow-x: hidden; ":t.tb===Li.WRAP&&(r+="white-space: normal;")}],["pd",()=>{var o,s,l,u,c,d,h,f;const m=`${(o=t.pd)==null?void 0:o.b}pt`,g=`${(s=t.pd)==null?void 0:s.t}pt`,p=`${(l=t.pd)==null?void 0:l.l}pt`,v=`${(u=t.pd)==null?void 0:u.r}pt`;(c=t.pd)!=null&&c.b&&(r+=`padding-bottom: ${m}; `),(d=t.pd)!=null&&d.t&&(r+=`padding-top: ${g}; `),(h=t.pd)!=null&&h.l&&(r+=`padding-left: ${p}; `),(f=t.pd)!=null&&f.r&&(r+=`padding-right: ${v}; `)}]]),a=["bd","tr","tb"];for(const o in t)e&&a.includes(o)||(n=i.get(o))==null||n();return r}j(RH,"handleStyleToString");function y5(t){let e="";return t===Un.NONE?e="none":t===Un.THIN?e="0.5pt solid":t===Un.HAIR?e="0.5pt double":t===Un.DOTTED?e="0.5pt dotted":t===Un.DASHED||t===Un.DASH_DOT?e="0.5pt dashed":t===Un.DASH_DOT_DOT?e="0.5pt dotted":t===Un.DOUBLE?e="0.5pt double":t===Un.MEDIUM?e="1pt solid":t===Un.MEDIUM_DASHED||t===Un.MEDIUM_DASH_DOT?e="1pt dashed":t===Un.MEDIUM_DASH_DOT_DOT?e="1pt dotted":t===Un.SLANT_DASH_DOT?e="0.5pt dashed":t===Un.THICK&&(e="1.5pt solid"),e}j(y5,"getBorderStyle");function O1(t){let e=0;if(t=t.trim(),t==="none")e=Un.NONE;else if(t==="0.5pt solid")e=Un.THIN;else if(t==="0.5pt double")e=Un.HAIR;else if(t==="0.5pt dotted")e=Un.DOTTED;else if(t==="0.5pt dashed")e=Un.DASHED;else if(t==="1pt solid")e=Un.MEDIUM;else if(t==="1pt dashed")e=Un.MEDIUM_DASHED;else if(t==="1pt dotted")e=Un.MEDIUM_DASH_DOT_DOT;else if(t==="1.5pt solid")e=Un.THICK;else if(!t.includes("none"))e=Un.THIN;else return Un.NONE;return e}j(O1,"getBorderStyleType");function bZe(t,e){let n=t.body;if(e){const{headers:r,footers:i}=t;r!=null&&r[e]?n=r[e].body:i!=null&&i[e]&&(n=i[e].body)}return n}j(bZe,"getDocsUpdateBody");function QP(t,e){const{startRow:n,endRow:r,startColumn:i,endColumn:a,rangeType:o}=t;if(n<0||i<0||r<0||a<0||!(Number.isNaN(n)&&Number.isNaN(r))&&o===it.COLUMN||!(Number.isNaN(i)&&Number.isNaN(a))&&o===it.ROW||o!==it.ROW&&o!==it.COLUMN&&(Number.isNaN(i)||Number.isNaN(n)||Number.isNaN(a)||Number.isNaN(r)))return!1;if(e){const s=e.getRowCount(),l=e.getColumnCount();if(r>=s||a>=l)return!1}return!0}j(QP,"isValidRange");function DC(t,e){return{startRow:t,endRow:t,startColumn:e,endColumn:e}}j(DC,"cellToRange");function jX(t,e){return Object.prototype.toString.call(t)===Object.prototype.toString.call(e)?Object.prototype.toString.call(t)==="[object Object]"||Object.prototype.toString.call(t)==="[object Array]"?Object.keys(t).length!==Object.keys(e).length?!1:Object.keys(t).every(n=>jX(t[n],e[n])):t===e:!1}j(jX,"deepCompare");function T1e(t,e){const n=t.ts||{},r=e.ts||{};return t.sId!==e.sId?!1:jX(n,r)}j(T1e,"isSameStyleTextRun");function L1e(t,e){return e.some(n=>t.indexOf(n)>-1)}j(L1e,"checkForSubstrings");function _4(t,e){let n;function r(...i){const a=this,o=j(function(){n=null,t.apply(a,i)},"later");clearTimeout(n),n=setTimeout(o,e)}return j(r,"run"),Object.defineProperty(r,"cancel",{value:j(()=>{clearTimeout(n)},"value"),enumerable:!1,writable:!1}),r}j(_4,"debounce");function IC(t,e,n,r){if(t>e&&([t,e]=[e,t]),n>r&&([n,r]=[r,n]),ee&&(r=e);const i=r-n+1;let a=[];return t===n?a=[r+1-i,e-i]:e===r?a=[t,n-1]:a=[t,e-i],a}j(IC,"horizontalLineSegmentsSubtraction");function yZe(t){if(t==null)return!1;const e=t.bullet;return(e==null?void 0:e.listId)!=null}j(yZe,"checkParagraphHasBullet");function EZe(t){if(t==null)return!1;const e=t.paragraphStyle;return $X(e)}j(EZe,"checkParagraphHasIndent");function $X(t){var e;return!(t==null||(t.indentStart==null||t.indentStart.v===0)&&t.hanging==null||((e=t.hanging)==null?void 0:e.v)===0)}j($X,"checkParagraphHasIndentByStyle");function WX(t,e,n){return t.slice(0,e)+n+t.slice(e)}j(WX,"insertTextToContent");function zX(t,e,n){return e>n?t:t.slice(0,e)+t.slice(n)}j(zX,"deleteContent");function Kr(t){return t===null||t.toString().replace(/\s/g,"")===""||typeof t=="boolean"?!1:!isNaN(t)}j(Kr,"isRealNum");function x1e(t){let e=0;for(let n=0;n>>0}j(x1e,"hashAlgorithm");const Ta=Symbol("newer"),ss=Symbol("older"),O1e=class{constructor(e){Xe(this,"entry"),this.entry=e}[Symbol.iterator](){return this}next(){const e=this.entry;return e?(this.entry=e[Ta],{done:!1,value:e.key}):{done:!0,value:void 0}}};j(O1e,"KeyIterator");let RZe=O1e;const N1e=class{constructor(e){Xe(this,"entry"),this.entry=e}[Symbol.iterator](){return this}next(){const e=this.entry;return e?(this.entry=e[Ta],{done:!1,value:e.value}):{done:!0,value:void 0}}};j(N1e,"ValueIterator");let AZe=N1e;const k1e=class{constructor(e){Xe(this,"entry"),this.entry=e}[Symbol.iterator](){return this}next(){const e=this.entry;return e?(this.entry=e[Ta],{done:!1,value:[e.key,e.value]}):{done:!0,value:void 0}}};j(k1e,"EntryIterator");let wZe=k1e;var F1e,V1e;V1e=Ta,F1e=ss;const B1e=class{constructor(e,n){Xe(this,"key"),Xe(this,"value"),Xe(this,V1e),Xe(this,F1e),this.key=e,this.value=n,this[Ta]=void 0,this[ss]=void 0}toJSON(){return{key:this.key,value:this.value}}};j(B1e,"Entry");let Vie=B1e;const U1e=class{constructor(...e){if(Xe(this,"_keymap"),Xe(this,"size",0),Xe(this,"limit"),Xe(this,"oldest"),Xe(this,"newest"),Xe(this,"_onShiftListeners",[]),Lb.hasLength(e,1)){if(Lb.isNumber(e[0])){const n=e[0];this._initialize(n,void 0);return}if(Lb.isIterable(e[0])){const n=e[0];this._initialize(0,n);return}return}if(Lb.hasLength(e,2)){const n=e[0],r=e[1];this._initialize(n,r)}}onShift(e){if(this._onShiftListeners.indexOf(e)===-1)return this._onShiftListeners.push(e),$t(()=>Zu(this._onShiftListeners,e));throw new Error("[LRUMap]: the listener has been registered!")}_initialize(e,n){this.oldest=void 0,this.newest=void 0,this.size=0,this.limit=e,this._keymap=new Map,n&&(this.assign(n),e<1&&(this.limit=this.size))}_markEntryAsUsed(e){e!==this.newest&&(e[Ta]&&(e===this.oldest&&(this.oldest=e[Ta]),e[Ta][ss]=e[ss]),e[ss]&&(e[ss][Ta]=e[Ta]),e[Ta]=void 0,e[ss]=this.newest,this.newest&&(this.newest[Ta]=e),this.newest=e)}assign(e){let n,r=this.limit||Number.MAX_VALUE;this._keymap.clear();const i=e[Symbol.iterator]();for(let a=i.next();!a.done;a=i.next()){const o=new Vie(a.value[0],a.value[1]);if(this._keymap.set(o.key,o),n?(n[Ta]=o,o[ss]=n):this.oldest=o,n=o,r--===0)throw new Error("overflow")}this.newest=n,this.size=this._keymap.size}set(e,n){let r=this._keymap.get(e);return r?(r.value=n,this._markEntryAsUsed(r),this):(this._keymap.set(e,r=new Vie(e,n)),this.newest?(this.newest[Ta]=r,r[ss]=this.newest):this.oldest=r,this.newest=r,++this.size,this.size>this.limit&&this.shift(),this)}shift(){const e=this.oldest;if(e)return this.oldest&&this.oldest[Ta]?(this.oldest=this.oldest[Ta],this.oldest[ss]=void 0):(this.oldest=void 0,this.newest=void 0),e[Ta]=e[ss]=void 0,this._keymap.delete(e.key),--this.size,this._onShiftListeners.forEach(n=>n(e)),[e.key,e.value]}get(e){const n=this._keymap.get(e);if(n)return this._markEntryAsUsed(n),n.value}has(e){return this._keymap.has(e)}find(e){const n=this._keymap.get(e);return n?n.value:void 0}delete(e){const n=this._keymap.get(e);if(n)return this._keymap.delete(n.key),n[Ta]&&n[ss]?(n[ss][Ta]=n[Ta],n[Ta][ss]=n[ss]):n[Ta]?(n[Ta][ss]=void 0,this.oldest=n[Ta]):n[ss]?(n[ss][Ta]=void 0,this.newest=n[ss]):this.oldest=this.newest=void 0,this.size--,n.value}clear(){this.oldest=void 0,this.newest=void 0,this.size=0,this._keymap.clear()}keys(){return new RZe(this.oldest)}values(){return new AZe(this.oldest)}entries(){return this[Symbol.iterator]()}[Symbol.iterator](){return new wZe(this.oldest)}forEach(e,n){typeof n!="object"&&(n=this);let r=this.oldest;for(;r;)e.call(n,r.value,r.key,this),r=r[Ta]}toJSON(){const e=new Array(this.size);let n=0,r=this.oldest;for(;r;)e[n++]={key:r.key,value:r.value},r=r[Ta];return e}toString(){let e="",n=this.oldest;for(;n;)e+=`${String(n.key)}:${n.value}`,n=n[Ta],n&&(e+=" < ");return e}};j(U1e,"LRUMap");let Yg=U1e;const H1e=class{static hasLength(e,n){return e.length===n}static getValueType(e){return Object.prototype.toString.apply(e)}static isObject(e){return this.getValueType(e)==="[object Object]"}static isIterable(e){return e[Symbol.iterator]!=null}static isNumber(e){return this.getValueType(e)==="[object Number]"}};j(H1e,"LRUHelper");let Lb=H1e;var j1e={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(typeof self<"u"?self:cs,function(){return function(){var n={d:j(function(ue,ce){for(var pe in ce)n.o(ce,pe)&&!n.o(ue,pe)&&Object.defineProperty(ue,pe,{enumerable:!0,get:ce[pe]})},"d"),o:j(function(ue,ce){return Object.prototype.hasOwnProperty.call(ue,ce)},"o")},r={};n.d(r,{default:j(function(){return bt},"default")});var i={1078:"af",1052:"sq",1118:"am",5121:"ar_DZ",15361:"ar_BH",3073:"ar_EG",2049:"ar_IQ",11265:"ar_JO",13313:"ar_KW",12289:"ar_LB",4097:"ar_LY",6145:"ar_MA",8193:"ar_OM",16385:"ar_QA",1025:"ar_SA",10241:"ar_SY",7169:"ar_TN",14337:"ar_AE",9217:"ar_YE",1067:"hy",1101:"as",2092:"az_AZ",1068:"az_AZ",1069:"eu",1059:"be",2117:"bn",1093:"bn_IN",5146:"bs",1026:"bg",1109:"my",1027:"ca",2052:"zh_CN",3076:"zh_HK",5124:"zh_MO",4100:"zh_SG",1028:"zh_TW",1050:"hr",1029:"cs",1030:"da",1125:"dv",2067:"nl_BE",1043:"nl_NL",1126:"bin",3081:"en_AU",10249:"en_BZ",4105:"en_CA",9225:"en_CB",2057:"en_GB",16393:"en_IN",6153:"en_IE",8201:"en_JM",5129:"en_NZ",13321:"en_PH",7177:"en_ZA",11273:"en_TT",1033:"en_US",12297:"en_ZW",1061:"et",1071:"mk",1080:"fo",1065:"fa",1124:"fil",1035:"fi",2060:"fr_BE",11276:"fr_CM",3084:"fr_CA",9228:"fr_CG",12300:"fr_CI",1036:"fr_FR",5132:"fr_LU",13324:"fr_ML",6156:"fr_MC",14348:"fr_MA",10252:"fr_SN",4108:"fr_CH",7180:"fr",1122:"fy_NL",2108:"gd_IE",1084:"gd",1110:"gl",1079:"ka",3079:"de_AT",1031:"de_DE",5127:"de_LI",4103:"de_LU",2055:"de_CH",1032:"el",1140:"gn",1095:"gu",1279:"en",1037:"he",1081:"hi",1038:"hu",1039:"is",1136:"ig_NG",1057:"id",1040:"it_IT",2064:"it_CH",1041:"ja",1099:"kn",1120:"ks",1087:"kk",1107:"km",1111:"kok",1042:"ko",1088:"ky",1108:"lo",1142:"la",1062:"lv",1063:"lt",2110:"ms_BN",1086:"ms_MY",1100:"ml",1082:"mt",1112:"mni",1153:"mi",1102:"mr",1104:"mn",2128:"mn",1121:"ne",1044:"no_NO",2068:"no_NO",1096:"or",1045:"pl",1046:"pt_BR",2070:"pt_PT",1094:"pa",1047:"rm",2072:"ro_MO",1048:"ro_RO",1049:"ru",2073:"ru_MO",1083:"se",1103:"sa",3098:"sr_SP",2074:"sr_SP",1072:"st",1074:"tn",1113:"sd",1115:"si",1051:"sk",1060:"sl",1143:"so",1070:"sb",11274:"es_AR",16394:"es_BO",13322:"es_CL",9226:"es_CO",5130:"es_CR",7178:"es_DO",12298:"es_EC",17418:"es_SV",4106:"es_GT",18442:"es_HN",2058:"es_MX",19466:"es_NI",6154:"es_PA",15370:"es_PY",10250:"es_PE",20490:"es_PR",1034:"es_ES",14346:"es_UY",8202:"es_VE",1089:"sw",2077:"sv_FI",1053:"sv_SE",1114:"syc",1064:"tg",1097:"ta",1092:"tt",1098:"te",1054:"th",1105:"bo",1073:"ts",1055:"tr",1090:"tk",1058:"uk",1056:"ur",2115:"uz_UZ",1091:"uz_UZ",1075:"ve",1066:"vi",1106:"cy",1076:"xh",1085:"yi",1077:"zu"};const a=/^([a-z\d]+)(?:[_-]([a-z\d]+))?(?:\.([a-z\d]+))?(?:@([a-z\d]+))?$/i,o={},s={group:" ",decimal:".",positive:"+",negative:"-",percent:"%",exponent:"E",nan:"NaN",infinity:"∞",ampm:["AM","PM"],mmmm6:["Muharram","Safar","Rabiʻ I","Rabiʻ II","Jumada I","Jumada II","Rajab","Shaʻban","Ramadan","Shawwal","Dhuʻl-Qiʻdah","Dhuʻl-Hijjah"],mmm6:["Muh.","Saf.","Rab. I","Rab. II","Jum. I","Jum. II","Raj.","Sha.","Ram.","Shaw.","Dhuʻl-Q.","Dhuʻl-H."],mmmm:["January","February","March","April","May","June","July","August","September","October","November","December"],mmm:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dddd:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],ddd:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]};function l(ue){const ce=a.exec(ue);if(!ce)throw new SyntaxError("Malformed locale: ".concat(ue));return{lang:ce[1]+(ce[2]?"_"+ce[2]:""),language:ce[1],territory:ce[2]||"",codeset:ce[3]||"",modifier:ce[4]||""}}j(l,"s");function u(ue){if(typeof ue=="number")return i[65535&ue]||null;const ce=parseInt(ue,16);return isFinite(ce)&&i[65535&ce]?i[65535&ce]||null:a.test(ue)?ue:null}j(u,"o");function c(ue){const ce=u(ue);let pe=null;if(ce){const Ae=l(ce);pe=o[Ae.lang]||o[Ae.language]||null}return pe}j(c,"l");function d(ue){return Object.assign({},s,ue)}j(d,"d");function h(ue,ce){const pe=typeof ce=="object"?ce:l(ce);return o[pe.lang]=d(ue),pe.language===pe.lang||o[pe.language]||(o[pe.language]=d(ue)),o[pe.lang]}j(h,"m");const f=d({group:","});function m(ue,ce){if(typeof ue!="number")return ue;if(ue<0)return-m(-ue,ce);if(ce){const pe=10**(ce||0)||1;return m(ue*pe,0)/pe}return Math.round(ue)}j(m,"c"),f.isDefault=!0,h({group:",",ampm:["上午","下午"],mmmm:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],mmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dddd:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],ddd:["周日","周一","周二","周三","周四","周五","周六"]},"zh_CN"),h({group:",",nan:"非數值",ampm:["上午","下午"],mmmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],mmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dddd:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],ddd:["週日","週一","週二","週三","週四","週五","週六"]},"zh_TW"),h({group:",",ampm:["午前","午後"],mmmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],mmm:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dddd:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],ddd:["日","月","火","水","木","金","土"]},"ja"),h({group:",",ampm:["오전","오후"],mmmm:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],mmm:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dddd:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"],ddd:["일","월","화","수","목","금","토"]},"ko"),h({group:",",ampm:["ก่อนเที่ยง","หลังเที่ยง"],mmmm:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],mmm:["ม.ค.","ก.พ.","มี.ค.","เม.ย.","พ.ค.","มิ.ย.","ก.ค.","ส.ค.","ก.ย.","ต.ค.","พ.ย.","ธ.ค."],dddd:["วันอาทิตย์","วันจันทร์","วันอังคาร","วันพุธ","วันพฤหัสบดี","วันศุกร์","วันเสาร์"],ddd:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."]},"th"),h({decimal:",",ampm:["dop.","odp."],mmmm:["ledna","února","března","dubna","května","června","července","srpna","září","října","listopadu","prosince"],mmm:["led","úno","bře","dub","kvě","čvn","čvc","srp","zář","říj","lis","pro"],dddd:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],ddd:["ne","po","út","st","čt","pá","so"]},"cs"),h({group:".",decimal:",",mmmm:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"],mmm:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],dddd:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],ddd:["søn.","man.","tir.","ons.","tor.","fre.","lør."]},"da"),h({group:".",decimal:",",ampm:["a.m.","p.m."],mmmm:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],mmm:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],dddd:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],ddd:["zo","ma","di","wo","do","vr","za"]},"nl"),h({group:","},"en"),h({decimal:",",nan:"epäluku",ampm:["ap.","ip."],mmmm:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"],mmm:["tammik.","helmik.","maalisk.","huhtik.","toukok.","kesäk.","heinäk.","elok.","syysk.","lokak.","marrask.","jouluk."],dddd:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"],ddd:["su","ma","ti","ke","to","pe","la"]},"fi"),h({group:" ",decimal:",",mmmm:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],mmm:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],dddd:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],ddd:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."]},"fr"),h({group:".",decimal:",",mmmm:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],mmm:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],dddd:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],ddd:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]},"de"),h({group:".",decimal:",",ampm:["π.μ.","μ.μ."],mmmm:["Ιανουαρίου","Φεβρουαρίου","Μαρτίου","Απριλίου","Μαΐου","Ιουνίου","Ιουλίου","Αυγούστου","Σεπτεμβρίου","Οκτωβρίου","Νοεμβρίου","Δεκεμβρίου"],mmm:["Ιαν","Φεβ","Μαρ","Απρ","Μαΐ","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],dddd:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],ddd:["Κυρ","Δευ","Τρί","Τετ","Πέμ","Παρ","Σάβ"]},"el"),h({decimal:",",ampm:["de.","du."],mmmm:["január","február","március","április","május","június","július","augusztus","szeptember","október","november","december"],mmm:["jan.","febr.","márc.","ápr.","máj.","jún.","júl.","aug.","szept.","okt.","nov.","dec."],dddd:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"],ddd:["V","H","K","Sze","Cs","P","Szo"]},"hu"),h({group:".",decimal:",",ampm:["f.h.","e.h."],mmmm:["janúar","febrúar","mars","apríl","maí","júní","júlí","ágúst","september","október","nóvember","desember"],mmm:["jan.","feb.","mar.","apr.","maí","jún.","júl.","ágú.","sep.","okt.","nóv.","des."],dddd:["sunnudagur","mánudagur","þriðjudagur","miðvikudagur","fimmtudagur","föstudagur","laugardagur"],ddd:["sun.","mán.","þri.","mið.","fim.","fös.","lau."]},"is"),h({group:".",decimal:",",mmmm:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],mmm:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agu","Sep","Okt","Nov","Des"],dddd:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"],ddd:["Min","Sen","Sel","Rab","Kam","Jum","Sab"]},"id"),h({group:".",decimal:",",mmmm:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"],mmm:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],dddd:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"],ddd:["dom","lun","mar","mer","gio","ven","sab"]},"it"),h({decimal:",",ampm:["a.m.","p.m."],mmmm:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],mmm:["jan.","feb.","mar.","apr.","mai","jun.","jul.","aug.","sep.","okt.","nov.","des."],dddd:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],ddd:["søn.","man.","tir.","ons.","tor.","fre.","lør."]},"nb"),h({decimal:",",mmmm:["stycznia","lutego","marca","kwietnia","maja","czerwca","lipca","sierpnia","września","października","listopada","grudnia"],mmm:["sty","lut","mar","kwi","maj","cze","lip","sie","wrz","paź","lis","gru"],dddd:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"],ddd:["niedz.","pon.","wt.","śr.","czw.","pt.","sob."]},"pl"),h({group:".",decimal:",",mmmm:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"],mmm:["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],dddd:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"],ddd:["dom.","seg.","ter.","qua.","qui.","sex.","sáb."]},"pt"),h({decimal:",",nan:"не число",mmmm:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"],mmm:["янв.","февр.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],dddd:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],ddd:["вс","пн","вт","ср","чт","пт","сб"]},"ru"),h({decimal:",",mmmm:["januára","februára","marca","apríla","mája","júna","júla","augusta","septembra","októbra","novembra","decembra"],mmm:["jan","feb","mar","apr","máj","jún","júl","aug","sep","okt","nov","dec"],dddd:["nedeľa","pondelok","utorok","streda","štvrtok","piatok","sobota"],ddd:["ne","po","ut","st","št","pi","so"]},"sk"),h({group:".",decimal:",",ampm:["a. m.","p. m."],mmmm:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],mmm:["ene.","feb.","mar.","abr.","may.","jun.","jul.","ago.","sept.","oct.","nov.","dic."],dddd:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],ddd:["dom.","lun.","mar.","mié.","jue.","vie.","sáb."]},"es"),h({decimal:",",ampm:["fm","em"],mmmm:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"],mmm:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],dddd:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"],ddd:["sön","mån","tis","ons","tors","fre","lör"]},"sv"),h({group:".",decimal:",",ampm:["ÖÖ","ÖS"],mmmm:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],mmm:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],dddd:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],ddd:["Paz","Pzt","Sal","Çar","Per","Cum","Cmt"]},"tr");function g(ue,ce,pe){const Ae=ue<0?-1:1,je=10**(ce||2),tt=10**(pe||2);let Qe,nt,we=Math.abs(ue),Ze=0,ht=0,pt=0,Mt=1;if((ue=we)%1==0)nt=[ue*Ae,1];else if(ue<1e-19)nt=[Ae,1e19];else if(ue>1e19)nt=[1e19*Ae,1];else{do if(we=1/(we-Math.floor(we)),Qe=Mt,Mt=Mt*Math.floor(we)+Ze,Ze=Qe,ht=pt,pt=Math.floor(ue*Mt+.5),pt>=je||Mt>=tt)return[Ae*ht,Ze];while(Math.abs(ue-pt/Mt)>=1e-10&&we!==Math.floor(we));nt=[Ae*pt,Mt]}return nt}j(g,"p");const p={overflow:"######",dateErrorThrows:!1,dateErrorNumber:!0,dateSpanLarge:!0,leap1900:!0,nbsp:!0,throws:!0,invalid:"######",locale:"",ignoreTimezone:!1},v=Object.assign({},p);function _(ue){if(ue===null&&(ue=p),ue){for(const ce in ue)if(ce in p){const pe=ue[ce];v[ce]=pe??p[ce]}}return{...v}}j(_,"h");const C={"#":"",0:"0","?":" "},S={"@":"text","-":"minus","+":"plus"},b=["#000","#FFF","#F00","#0F0","#00F","#FF0","#F0F","#0FF","#000","#FFF","#F00","#0F0","#00F","#FF0","#F0F","#0FF","#800","#080","#008","#880","#808","#088","#CCC","#888","#99F","#936","#FFC","#CFF","#606","#F88","#06C","#CCF","#008","#F0F","#FF0","#0FF","#808","#800","#088","#00F","#0CF","#CFF","#CFC","#FF9","#9CF","#F9C","#C9F","#FC9","#36F","#3CC","#9C0","#FC0"],y=["¤","$","£","¥","֏","؋","৳","฿","៛","₡","₦","₩","₪","₫","€","₭","₮","₱","₲","₴","₸","₹","₺","₼","₽","₾","₿"],A=new RegExp("["+y.join("")+"]");function w(ue,ce,pe){return ce[pe+"_max"]=ue.length,ce[pe+"_min"]=ue.replace(/#/g,"").length,ce}j(w,"M");const P={};function M(ue){if(!(ue in P)){const ce=[],pe=ue.replace(/^[#,]+/,"").replace(/[1-9]\d*/g,Ae=>"?".repeat(Ae.length));for(let Ae=0;Ae1||!Be)?pe.scale=.001**we[0].length:pe.dec_fractions||L(we[0],ce)}else{if(we=/^;/.exec(Ae)){tt=!0;break}if(we=/^[@+-]/.exec(Ae))we[0]==="@"&&(pe.text=!0),L({type:S[we[0]]},ce);else if(we=/^(?:\[(h+|m+|s+)\])/i.exec(Ae)){const Be=we[1].toLowerCase(),vt=Be[0],qt={type:"",size:0,date:1,raw:we[0],pad:Be.length};vt==="h"?(qt.size=16,qt.type="hour-elap"):vt==="m"?(qt.size=32,qt.type="min-elap"):(qt.size=64,qt.type="sec-elap"),pe.date=pe.date|qt.size,nt.push(qt),L(qt,ce)}else if(we=/^(?:B2)/i.exec(Ae))ht||(pe.date_system=6);else if(we=/^(?:B1)/i.exec(Ae))ht||(pe.date_system=1);else if(we=/^(?:([hHmMsSyYbBdDegG])\1*)/.exec(Ae)){const Be={type:"",size:0,date:1,raw:we[0]},vt=we[0].toLowerCase(),qt=vt[0];if(vt==="y"||vt==="yy")Be.size=2,Be.type="year-short";else if(qt==="y"||qt==="e")Be.size=2,Be.type="year";else if(vt==="b"||vt==="bb")Be.size=2,Be.type="b-year-short";else if(qt==="b")Be.size=2,Be.type="b-year";else if(vt==="d"||vt==="dd")Be.size=8,Be.type="day",Be.pad=/dd/.test(vt);else if(vt==="ddd")Be.size=8,Be.type="weekday-short";else if(qt==="d")Be.size=8,Be.type="weekday";else if(qt==="h")Be.size=16,Be.type="hour",Be.pad=/hh/i.test(vt);else if(qt==="m"){vt.length===3?(Be.size=4,Be.type="monthname-short"):vt.length===5?(Be.size=4,Be.type="monthname-single"):vt.length>=4&&(Be.size=4,Be.type="monthname");const Lt=nt[nt.length-1];!Be.type&&Lt&&!Lt.used&&80&Lt.size&&(Lt.used=!0,Be.size=32,Be.type="min",Be.pad=/mm/.test(vt)),Be.type||(Be.size=4,Be.type="month",Be.pad=/mm/.test(vt),Be.indeterminate=!0)}else if(qt==="s"){Be.size=64,Be.type="sec",Be.pad=/ss/.test(vt);const Lt=nt[nt.length-1];Lt&&32&Lt.size?Be.used=!0:Lt&&Lt.indeterminate&&(delete Lt.indeterminate,Lt.size=32,Lt.type="min",Be.used=!0)}pe.date=pe.date|Be.size,pe.date_eval=!0,nt.push(Be),L(Be,ce)}else if(we=/^(?:AM\/PM|am\/pm|A\/P)/.exec(Ae))pe.clock=12,pe.date=16|pe.date,pe.date_eval=!0,L({type:"am",short:we[0]==="A/P"},ce);else if(pe.date&&(we=/^\.0{1,3}/i.exec(Ae))){const Be=we[0].length-1,vt=[64,128,256,512][Be];pe.date=pe.date|vt,pe.date_eval=!0,pe.sec_decimals=Math.max(pe.sec_decimals,Be),L({type:"subsec",size:vt,decimals:Be,date:1,raw:we[0]},ce)}else if((we=/^\\(.)/.exec(Ae))||(we=/^"([^"]*?)"/.exec(Ae)))L(we[1],ce);else if(we=/^\[(<[=>]?|>=?|=)\s*(-?[.\d]+)\]/.exec(Ae))pe.condition=[we[1],parseFloat(we[2],10)];else if(we=/^\[\$([^\]]+)\]/.exec(Ae)){const Be=we[1].split("-"),vt=Be.length<2?"":Be[Be.length-1],qt=Be[0];qt&&L(qt,ce);const Lt=u(vt);Lt&&(pe.locale=Lt);const zt=parseInt(vt,16);isFinite(zt)&&16711680&zt&&(zt>>16&255)===6&&(pe.date_system=6),ht=!0}else if(we=/^\[(black|blue|cyan|green|magenta|red|white|yellow|color\s*(\d+))\]/i.exec(Ae))pe.color=we[2]?b[parseInt(we[2],10)]||"#000":we[1].toLowerCase();else if(!(we=/^\[(DBNum1|ENG|HIJ|JPN|TWN)\]/i.exec(Ae))){if(we=/^%/.exec(Ae))pe.scale=100,pe.percent=!0,L("%",ce);else if(we=/^_(\\.|.)/.exec(Ae))L(" ",ce);else if(we=/^\./.exec(Ae))L({type:"point",value:we[0]},ce),pe.dec_fractions=!0,je="frac";else if(we=/^[Ee]([+-]?|(?=[0#?]))/.exec(Ae))pe.exponential=!0,pe.exp_plus=we[1]==="+",je="man",L({type:"exp",plus:we[1]==="+"},ce);else if(!(we=/^\*(\\.|.)/.exec(Ae))){if(we=/^[BENn[]/.exec(Ae))throw new SyntaxError("Unexpected char ".concat(Ae.charAt(0)," in pattern ").concat(ue));Ae[0]==="("&&(pe.parens=!0),we=[Ae[0]],L(we[0],ce)}}}Ze=we[0],Ae=Ae.slice(we?we[0].length:1)}if(pe.pattern=ue.slice(0,ue.length-Ae.length),/^((?:\[[^\]]+\])+)(;|$)/.test(pe.pattern)&&!/^\[(?:h+|m+|s+)\]/.test(pe.pattern)&&L({type:"text"},ce),pe.fractions&&pe.dec_fractions||pe.fractions&&pe.exponential)throw new SyntaxError("Invalid pattern: ".concat(pe.pattern));const pt=pe.int_pattern.join("");if(pe.grouping=pt.indexOf(",")>=0,pe.grouping){const Be=pt.split(","),vt=Be.length;vt===2?(pe.group_pri=Be[1].length,pe.group_sec=pe.group_pri):vt>2&&(pe.group_pri=Be[vt-1].length,pe.group_sec=Be[vt-2].length)}else pe.group_pri=0,pe.group_sec=0;w(pt.replace(/[,]/g,""),pe,"int"),w(pe.frac_pattern.join(""),pe,"frac"),w(pe.man_pattern.join(""),pe,"man");let Mt=pe.num_pattern.join(""),xt=pe.den_pattern.join("");const st=/\?/.test(xt)||/\?/.test(Mt);return xt=xt.replace(/\d/g,st?"?":"#"),st&&(xt=xt.replace(/#$/g,"?")),w(Mt,pe,"num"),w(xt,pe,"den"),st&&(Mt=Mt.replace(/#$/g,"?")),pe.int_padding=M(pe.int_pattern.join("")),pe.man_padding=M(pe.man_pattern.join("")),pe.num_padding=M(Mt),pe.den_padding=M(xt),pe.den_pattern.length&&(pe.denominator=parseInt(pe.den_pattern.join("").replace(/\D/g,""),10)),pe.integer=!!pe.int_pattern.join("").length,pe.fractions&&ce.forEach((Be,vt)=>{const qt=ce[vt+1];Be.type==="string"&&qt&&(qt.type==="num"?Be.rule="num+int":qt.type==="div"?Be.rule="num":qt.type==="den"&&(Be.rule="den"))}),pe}j(k,"z");const O=j(ue=>{const ce=ue.condition;ce&&ce[1]<0&&(ce[0]==="<"||ce[0]==="<="||ce[0]==="=")||ue.tokens.unshift({type:"minus",volatile:!0})},"w");function $(ue){const ce=[];let pe,Ae=!1,je=null,tt=ue,Qe=0,nt=!1,we=0,Ze=0;do{if(nt=k(tt),(nt.date||nt.general)&&(nt.int_pattern.length||nt.frac_pattern.length||nt.scale!==1||nt.text))throw new Error("Illegal format");if(nt.condition&&(Ze++,Ae=!0),nt.text){if(je)throw new Error("Unexpected partition");je=nt}nt.locale&&(pe=u(nt.locale)),ce.push(nt),Qe=tt.charAt(nt.pattern.length)===";"?1:0,tt=tt.slice(nt.pattern.length+Qe),we++}while(Qe&&we<4&&Ze<3);if(Qe)throw new Error("Unexpected partition");if(Ze>2)throw new Error("Unexpected condition");const ht=ce[3];if(ht&&(ht.int_pattern.length||ht.frac_pattern.length||ht.date))throw new Error("Unexpected partition");if(Ae){const pt=ce.length;if(pt===1&&(ce[1]=k("General"),ce[1].generated=!0),pt<3){const Mt=ce[0],xt=ce[1];if(O(Mt),xt.condition)O(xt);else{const st=Mt.condition;(st[0]==="="||st[1]>=0&&(st[0]===">"||st[0]===">="))&&xt.tokens.unshift({type:"minus",volatile:!0})}}else ce.forEach(O)}else{if(ce.length<4&&je)for(let pt=0,Mt=ce.length;pt",0],ce[1].condition=["<",0],ce[2].condition=null}return{pattern:ue,partitions:ce,locale:pe}}j($,"D");const B=Math.floor;function V(ue){if((!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&ue>=0){if(ue===0)return[1900,1,0];if(ue===60)return[1900,2,29];if(ue<60)return[1900,ue<32?1:2,(ue-1)%31+1]}let ce=ue+68569+2415019;const pe=B(4*ce/146097);ce-=B((146097*pe+3)/4);const Ae=B(4e3*(ce+1)/1461001);ce=ce-B(1461*Ae/4)+31;const je=B(80*ce/2447),tt=ce-B(2447*je/80);ce=B(je/11);const Qe=je+2-12*ce;return[0|100*(pe-49)+Ae+ce,0|Qe,0|tt]}j(V,"C");function X(ue){return V(ue+1462)}j(X,"E");function z(ue){if(ue===60)throw new Error("#VALUE!");if(ue<=1)return[1317,8,29];if(ue<60)return[1317,ue<32?9:10,1+(ue-2)%30];const ce=10631/30,pe=.1335;let Ae=ue+466935;const je=B(Ae/10631);Ae-=10631*je;const tt=B((Ae-pe)/ce);Ae-=B(tt*ce+pe);const Qe=B((Ae+28.5001)/29.5);return Qe===13?[30*je+tt,12,30]:[30*je+tt,Qe,Ae-B(29.5001*Qe-29)]}j(z,"A");function F(ue){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,pe=!(arguments.length>2&&arguments[2]!==void 0)||arguments[2];const Ae=B(ue);return ce===6?z(Ae):ce===-1?X(Ae):V(Ae,pe)}j(F,"Y");const H=Math.floor,W=86400;function K(ue,ce){let pe=null;if(Array.isArray(ue)){const[Ae,je,tt,Qe,nt,we]=ue;pe=Date.UTC(Ae,je==null?0:je-1,tt??1,Qe||0,nt||0,we||0)}else if(ue instanceof Date&&(pe=1*ue,!ce||!ce.ignoreTimezone)){const Ae=new Date;Ae.setUTCFullYear(ue.getFullYear(),ue.getMonth(),ue.getDate()),Ae.setUTCHours(ue.getHours(),ue.getMinutes(),ue.getSeconds(),ue.getMilliseconds()),pe=1*Ae}if(pe!=null&&isFinite(pe)){const Ae=pe/864e5;return Ae-(Ae<=-25509?-25568:-25569)}return ue}j(K,"P");function G(ue,ce){let pe=0|ue;const Ae=W*(ue-pe);let je=H(Ae);Ae-je>.9999&&(je+=1,je===W&&(je=0,pe+=1));const tt=je<0?W+je:je,[Qe,nt,we]=F(ue,0,ce&&ce.leap1900),Ze=H(tt/60/60)%60,ht=H(tt/60)%60,pt=H(tt)%60;if(ce&&ce.nativeDate){const Mt=new Date(0);return Mt.setUTCFullYear(Qe,nt-1,we),Mt.setUTCHours(Ze,ht,pt),Mt}return[Qe,nt,we,Ze,ht,pt]}j(G,"I");function te(ue){return!!(ue[0]&&ue[0].percent||ue[1]&&ue[1].percent||ue[2]&&ue[2].percent||ue[3]&&ue[3].percent)}j(te,"O");function Y(ue){return!!(ue[0]&&ue[0].date||ue[1]&&ue[1].date||ue[2]&&ue[2].date||ue[3]&&ue[3].date)}j(Y,"J");function ae(ue){const[ce,pe,Ae,je]=ue;return!(ce&&!ce.generated||pe&&!pe.generated||Ae&&!Ae.generated||!je||!je.text||je.generated)}j(ae,"L");const ie={text:15,datetime:10.8,date:10.8,time:10.8,percent:10.6,currency:10.4,grouped:10.2,scientific:6,number:4,fraction:2,general:0,error:0},ne=[["DMY",1],["DM",2],["MY",3],["MDY",4],["MD",5],["hmsa",6],["hma",7],["hms",8],["hm",9]],de={total:1,sign:0,period:0,int:1,frac:0},_e=j((ue,ce)=>ue.replace(/\./,ce.decimal),"H");function Pe(ue,ce,pe,Ae){const je=0|pe;if(typeof pe=="string")ue.push(pe);else if(pe===je)ue.push(Math.abs(je));else{const tt=Math.abs(pe);let Qe=tt?Math.floor(Math.log10(tt)):0,nt=Qe<0?tt*10**-Qe:tt/10**Qe;nt===10&&(nt=1,Qe++);const we=function(ht){let pt=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];const Mt=Math.abs(ht);if(!Mt)return de;const xt=pt&&ht<0?1:0,st=Math.floor(Mt),Be=Math.floor(Math.log10(Mt)+1);let vt=0,qt=0;if(st!==Mt){vt=1;const Lt=String(m(Be<0?Mt*10**-Be:Mt/10**Be,15));let zt=Lt.length,Yt=!0,un=0;for(;un<=Lt.length;){if(Lt[un]==="."){zt--;break}Lt[un]==="0"&&Yt?zt--:Yt=!1,un++}qt=zt-Be,qt<0&&(qt=0,vt=0)}return{total:xt+Math.max(Be,1)+vt+qt,digits:Math.max(Be,0)+qt,sign:xt,period:vt,int:Math.max(Be,1),frac:qt}}(tt),Ze=j(()=>{const ht=Math.abs(Qe);let pt;pt=nt===1?nt:m(nt,5),ue.push(_e(pt+"",Ae),Ae.exponent,Qe<0?Ae.negative:Ae.positive,ht<10?"0":"",ht)},"o");if(Qe>=-4&&Qe<=-1){const ht=tt.toPrecision(10+Qe).replace(/\.?0+$/,"");ue.push(_e(ht,Ae))}else if(Qe===10){const ht=tt.toFixed(10).slice(0,12).replace(/\.$/,"");ue.push(_e(ht,Ae))}else if(Math.abs(Qe)<=9)if(we.total<=11){const ht=m(tt,9).toFixed(we.frac);ue.push(_e(ht,Ae))}else Qe===9?ue.push(Math.floor(tt)):Qe>=0&&Qe<9?ue.push(m(tt,9-Qe)):Ze();else we.total>=12?Ze():Math.floor(tt)===tt?ue.push(Math.floor(tt)):ue.push(_e(m(tt,9).toFixed(we.frac),Ae))}return ue}j(Pe,"B");const De=86400,Ee={int:"integer",frac:"fraction",man:"mantissa",num:"numerator",den:"denominator"},ye=j(function(ue){let ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;const pe=Math.floor(Math.log10(ue));return ce>1?Math.floor(pe/ce)*ce:pe},"Z");function Ve(ue,ce,pe,Ae){let je="",tt="",Qe="",nt="",we="",Ze=0,ht=0|ue,pt=0,Mt=0,xt=1,st=0,Be=0,vt=0,qt=0,Lt=0,zt=0;const Yt=Ae||f;if(!ce.text&&isFinite(ce.scale)&&ce.scale!==1&&(ue=function(rn){if(rn===0)return rn;const En=Math.ceil(Math.log10(rn<0?-rn:rn)),Ft=10**(16-Math.floor(En));return Math.round(rn*Ft)/Ft}(ue*ce.scale)),ce.exponential){let rn=Math.abs(ue);if(rn){const En=10**-ye(rn,ce.int_max),Ft=m(rn*En,ce.frac_max)/En;Ze=ye(Ft,ce.int_max)}rn/=10**Ze,ue=ue<0?-rn:rn,je+=Math.abs(Ze)}if(ce.integer){const rn=Math.abs(m(ue,ce.fractions?1:ce.frac_max));we+=rn<1?"":Math.floor(rn)}if(ce.grouping){let rn="",En=we.length;for(En>ce.group_pri&&(En-=ce.group_pri,rn=Yt.group+we.slice(En,En+ce.group_pri)+rn);En>ce.group_sec;)En-=ce.group_sec,rn=Yt.group+we.slice(En,En+ce.group_sec)+rn;we=En?we.slice(0,En)+rn:rn}ce.dec_fractions&&(nt=String(m(ue,ce.frac_max)).split(".")[1]||"");let un=!1;if(ce.fractions){const rn=Math.abs(ce.integer?ue%1:ue);if(rn)if(un=!0,isFinite(ce.denominator))Qe+=ce.denominator,tt+=m(rn*ce.denominator),tt==="0"&&(tt="",Qe="",un=!1,we||(we="0"));else{const En=g(rn,ce.integer?ce.num_max:1/0,ce.den_max);tt+=En[0],Qe+=En[1],ce.integer&&tt==="0"&&(we||(we="0"),tt="",Qe="",un=!1)}}if(ce.date){ht=Math.trunc(ue);const rn=De*(ue-ht);if(pt=Math.floor(rn),zt=rn-pt,Math.abs(zt)<1e-6?zt=0:zt>.9999&&(zt=0,pt+=1,pt===De&&(pt=0,ht+=1)),zt){const En=512&ce.date||256&ce.date||128&ce.date;(En===512&&zt>.9995||En===256&&zt>.995||En===128&&zt>.95||!En&&zt>=.5)&&(pt++,zt=0)}if(ht||ce.date_system){const En=F(ue,ce.date_system,pe.leap1900);Mt=En[0],xt=En[1],st=En[2]}if(pt){const En=pt<0?De+pt:pt;Lt=Math.floor(En)%60,qt=Math.floor(En/60)%60,vt=Math.floor(En/60/60)%60}if(Be=(6+ht)%7,ce.date_eval&&(ir=ue,jr=ht+pt/De,pe.dateSpanLarge?ir<-694324||jr>=35830291:ir<0||jr>=2958466)){if(pe.dateErrorThrows)throw new Error("Date out of bounds");return pe.dateErrorNumber?Pe(ue<0?[Yt.negative]:[],0,ue,Yt).join(""):pe.overflow}}var ir,jr;if(ce.int_padding&&(we=ce.int_padding.length===1?we||ce.int_padding:ce.int_padding.substring(0,ce.int_padding.length-we.length)+we),ce.num_padding&&(tt=ce.num_padding.length===1?tt||ce.num_padding:ce.num_padding.substring(0,ce.num_padding.length-tt.length)+tt),ce.den_padding&&(Qe=ce.den_padding.length===1?Qe||ce.den_padding:Qe+ce.den_padding.slice(Qe.length)),ce.man_padding){const rn=ce.exp_plus?"+":"";je=ce.man_padding.length===1?(Ze<0?"-":rn)+(je||ce.man_padding):(Ze<0?"-":rn)+ce.man_padding.slice(0,ce.man_padding.length-je.length)+je}const ln=[];let Nr=0;const mn={int:0,frac:0,man:0,num:0,den:0};for(let rn=0,En=ce.tokens.length;rn0||ce.den_min>0)&&ln.push(Ft.value.replace(/./g,C["?"])):Ft.rule==="num+int"?un&&we?ln.push(Ft.value):ce.den_min>0&&(we||ce.num_min)&&ln.push(Ft.value.replace(/./g,C["?"])):Ft.rule==="den"&&(un?ln.push(Ft.value):(ce.den_min>0||ce.den_min>0)&&ln.push(Ft.value.replace(/./g,C["?"]))):ln.push(Ft.value);else if(Ft.type==="error")ln.push(pe.invalid);else if(Ft.type==="point")ln.push(ce.date?Ft.value:Yt.decimal);else if(Ft.type==="general")Pe(ln,0,ue,Yt);else if(Ft.type==="exp")ln.push(Yt.exponent);else if(Ft.type==="minus")Ft.volatile&&ce.date||Ft.volatile&&(ue>=0||typeof ue!="number")||(Ft.volatile&&!ce.fractions&&(ce.integer||ce.dec_fractions)?(ue<0&&we&&we!=="0"||nt)&&ln.push(Yt.negative):ln.push(Yt.negative));else if(Ft.type==="plus")ln.push(Yt.positive);else if(Ft.type==="text")ln.push(ue);else if(Ft.type==="div")un?ln.push("/"):ce.num_min>0||ce.den_min>0?ln.push(C["?"]):ln.push(C["#"]);else if(Ft.type==="int")if(ce.int_pattern.length===1)ln.push(we);else{const br=Nr?ce.int_pattern.join("").length-mn.int:1/0,Rn=Nr===ce.int_pattern.length-1?0:ce.int_pattern.join("").length-(mn.int+Ft.num.length);ln.push(we.substring(we.length-br,we.length-Rn)),Nr++,mn.int+=Ft.num.length}else if(Ft.type==="frac"){const br=mn.frac;for(let Rn=0;Rn<$r;Rn++)ln.push(nt[Rn+br]||C[Ft.num[Rn]]);mn.frac+=$r}else if(Ft.type in Ee)ce[Ft.type+"_pattern"].length===1?(Ft.type==="int"&&ln.push(we),Ft.type==="frac"&&ln.push(nt),Ft.type==="man"&&ln.push(je),Ft.type==="num"&&ln.push(tt),Ft.type==="den"&&ln.push(Qe)):(ln.push(Ee[Ft.type].slice(mn[Ft.type],mn[Ft.type]+$r)),mn[Ft.type]+=$r);else if(Ft.type==="year")Mt<0&&ln.push(Yt.negative),ln.push(String(Math.abs(Mt)).padStart(4,"0"));else if(Ft.type==="year-short"){const br=Mt%100;ln.push(br<10?"0":"",br)}else if(Ft.type==="month")ln.push(Ft.pad&&xt<10?"0":"",xt);else if(Ft.type==="monthname-single")ce.date_system===6?ln.push(Yt.mmmm6[xt-1].charAt(0)):ln.push(Yt.mmmm[xt-1].charAt(0));else if(Ft.type==="monthname-short")ce.date_system===6?ln.push(Yt.mmm6[xt-1]):ln.push(Yt.mmm[xt-1]);else if(Ft.type==="monthname")ce.date_system===6?ln.push(Yt.mmmm6[xt-1]):ln.push(Yt.mmmm[xt-1]);else if(Ft.type==="weekday-short")ln.push(Yt.ddd[Be]);else if(Ft.type==="weekday")ln.push(Yt.dddd[Be]);else if(Ft.type==="day")ln.push(Ft.pad&&st<10?"0":"",st);else if(Ft.type==="hour"){const br=vt%ce.clock||(ce.clock<24?ce.clock:0);ln.push(Ft.pad&&br<10?"0":"",br)}else if(Ft.type==="min")ln.push(Ft.pad&&qt<10?"0":"",qt);else if(Ft.type==="sec")ln.push(Ft.pad&&Lt<10?"0":"",Lt);else if(Ft.type==="subsec"){ln.push(Yt.decimal);const br=zt.toFixed(ce.sec_decimals);ln.push(br.slice(2,2+Ft.decimals))}else if(Ft.type==="am"){const br=vt<12?0:1;Ft.short&&!Ae?ln.push("AP"[br]):ln.push(Yt.ampm[br])}else if(Ft.type==="hour-elap"){ue<0&&ln.push(Yt.negative);const br=24*ht+Math.floor(Math.abs(pt)/3600);ln.push(String(Math.abs(br)).padStart(Ft.pad,"0"))}else if(Ft.type==="min-elap"){ue<0&&ln.push(Yt.negative);const br=1440*ht+Math.floor(Math.abs(pt)/60);ln.push(String(Math.abs(br)).padStart(Ft.pad,"0"))}else if(Ft.type==="sec-elap"){ue<0&&ln.push(Yt.negative);const br=ht*De+Math.abs(pt);ln.push(String(Math.abs(br)).padStart(Ft.pad,"0"))}else if(Ft.type==="b-year")ln.push(Mt+543);else if(Ft.type==="b-year-short"){const br=(Mt+543)%100;ln.push(br<10?"0":"",br)}}return pe.nbsp?ln.join(""):ln.join("").replace(/\u00a0/g," ")}j(Ve,"K");function ke(ue,ce){for(let pe=0;pe<3;pe++){const Ae=ce[pe];if(Ae){let je;if(Ae.condition){const tt=Ae.condition[0],Qe=Ae.condition[1];tt==="="?je=ue===Qe:tt===">"?je=ue>Qe:tt==="<"?je=ue="?je=ue>=Qe:tt==="<="?je=ue<=Qe:tt==="<>"&&(je=ue!==Qe)}else je=!0;if(je)return Ae}}}j(ke,"q");const Ke=k("@"),$e="black",Fe={};function He(ue,ce){if(ue){const pe=ue[0];ce[pe]=ce[pe]||{},He(ue.slice(1),ce[pe])}else ce.$=!0}j(He,"ee"),["d-F-y","d-F-Y","d-M-y","d-M-Y","F-d-y","F-d-Y","F-j-y","F-j-Y","j-F-y","j-F-Y","j-M-y","j-M-Y","M-d-y","M-d-Y","M-j-y","M-j-Y","m-d-y","m-d-Y","m-j-y","m-j-Y","n-d-y","n-d-Y","n-j-y","n-j-Y","y-F-d","y-F-j","y-M-d","y-M-j","Y-F-d","Y-F-j","Y-M-d","Y-m-d","Y-M-j","Y-m-j","Y-n-d","Y-n-j","j-F","j-M","d-F","d-M","n-d","n-j","n-Y","m-d","m-j","m-Y","M-Y","M-y","F-y","F-Y","Y-M","Y-n","Y-m","Y-F","Y-M"].forEach(ue=>{He(ue,Fe),He(ue+" x",Fe),He(ue+" l",Fe),He(ue+" l x",Fe),He("l "+ue,Fe),He("l "+ue+" x",Fe),He(ue+" D",Fe),He(ue+" D x",Fe),He("D "+ue,Fe),He("D "+ue+" x",Fe)});const ct={jan:1,feb:2,mar:3,apr:4,may:5,jun:6,jul:7,aug:8,sep:9,oct:10,nov:11,dec:12},_t={january:1,february:2,march:3,april:4,june:6,july:7,august:8,september:9,october:10,november:11,december:12},Ye={sunday:"l",monday:"l",tuesday:"l",wednesday:"l",thursday:"l",friday:"l",saturday:"l",sun:"D",mon:"D",tue:"D",wed:"D",thu:"D",fri:"D",sat:"D"},Ot=new Date().getUTCFullYear();function An(ue){const ce=new RegExp("^([\\s+%"+y.join("")+"(-]*)(((?:(?:\\d[\\d,]*)(?:\\.\\d*)?|(?:\\.\\d+)))([eE][+-]?\\d+)?)([\\s%"+y.join("")+")]*)$").exec(ue);if(ce){const[,pe,Ae,je,tt,Qe]=ce;let nt=1,we="",Ze=!1,ht=!1,pt=!1,Mt=!1,xt=!1,st=null,Be=!1,vt=parseFloat(Ae.replace(/,/g,""));if(!isFinite(vt))return null;for(let Lt=0;Lt{const Ae=pe.path||"",je=Object.keys(ce);for(let tt=0;tt=30?+we[0]+1900:+we[0]+2e3;Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,year:Ze,path:Ae+nt})}}else if(nt==="Y"){const we=/^\d\d\d\d\b/.exec(ue);we&&(Qe=Ut(ue.slice(we[0].length),ce[nt],{...pe,year:+we[0],path:Ae+nt}))}else{if(nt!=="x")throw new Error('Unknown date token "'.concat(nt,'"'));{const we=dn(ue);we&&(Qe=Ut("",ce[nt],{...pe,time:we.v,tf:we.z,path:Ae+nt}))}}if(Qe)return Qe}}},"se");function Jt(ue,ce){const pe=Ut(ue.trim(),Fe,{path:""});if(pe){var Ae;if(pe.sep==="."&&pe.path.length===3)return null;const je=+((Ae=pe.year)!==null&&Ae!==void 0?Ae:Ot);if(pe.day||(pe.day=1),!function(nt,we,Ze){if(Ze<1||we<1||we>12)return!1;if(we===2){if(Ze>(nt%4==0&&nt%100!=0||nt%400==0||nt===1900?29:28))return!1}else if((we===4||we===6||we===9||we===11)&&Ze>30||(we===1||we===3||we===5||we===7||we===8||we===10||we===12)&&Ze>31)return!1;return!0}(je,pe.month,pe.day))return null;let tt=-1/0;if(je<1900)return null;je<=1900&&pe.month<=2?tt=25568:je<1e4&&(tt=25569);const Qe=Date.UTC(je,pe.month-1,pe.day)/864e5+tt+(pe.time||0);if(Qe>=0&&Qe<=2958465){const nt=pe._mon[0]==="0"||pe.day[0]==="0"||pe._mon.length===2&&pe.day.length===2,we=pe.path.replace(/[jdlDnmMFyYx-]/g,Ze=>Ze==="j"||Ze==="d"?nt?"dd":"d":Ze==="D"?"ddd":Ze==="l"?"dddd":Ze==="n"||Ze==="m"?nt?"mm":"m":Ze==="M"?"mmm":Ze==="F"?"mmmm":Ze==="y"?"yy":Ze==="x"?pe.tf||"":Ze==="Y"?"yyyy":Ze);return ce&&ce.nativeDate?{v:G(Qe,ce),z:we}:{v:Qe,z:we}}}return null}j(Jt,"oe");function dn(ue){const ce=/^\s*([10]?\d|2[0-4])(?::([0-5]\d|\d))?(?::([0-5]\d|\d))?(\.\d{1,10})?(?:\s*([AP])M?)?\s*$/i.exec(ue);if(ce){const[,pe,Ae,je,tt,Qe]=ce;if(tt&&!je||!Qe&&!Ae&&!je)return null;let nt=1*(pe||0);if(Qe){if(nt>=13)return null;Qe[0]!=="p"&&Qe[0]!=="P"||(nt+=12)}return{v:(60*nt*60+60*(1*(Ae||0))+1*(je||0)+1*(tt||0))/86400,z:(pe.length===2?"hh":"h")+":mm"+(je?":ss":"")+(Qe?" AM/PM":"")}}return null}j(dn,"le");function Sn(ue){return/^\s*true\s*$/i.test(ue)?{v:!0}:/^\s*false\s*$/i.test(ue)?{v:!1}:null}j(Sn,"de");const hn={};function tr(ue,ce){const{pattern:pe,partitions:Ae,locale:je}=ue,tt=j(we=>{const Ze=Object.assign({},_(),ce,we);return je&&(Ze.locale=je),Ze},"i"),Qe=j((we,Ze)=>{const ht=tt(Ze);return function(pt,Mt,xt){const st=c(xt.locale),Be=Mt[3]?Mt[3]:Ke;if(typeof pt=="boolean"&&(pt=pt?"TRUE":"FALSE"),pt==null)return"";if(typeof pt!="number")return Ve(pt,Be,xt,st);if(!isFinite(pt)){const qt=st||f;return isNaN(pt)?qt.nan:(pt<0?qt.negative:"")+qt.infinity}const vt=ke(pt,Mt);return vt?Ve(pt,vt,xt,st):xt.overflow}(K(we,ht),Ae,ht)},"s");Qe.color=(we,Ze)=>function(ht,pt){if(typeof ht!="number"||!isFinite(ht))return(pt[3]?pt[3].color:Ke.color)||$e;const Mt=ke(ht,pt);return Mt&&Mt.color||$e}(K(we,tt(Ze)),Ae);const nt=function(we){var Ze;let ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const[pt,Mt]=we,xt=pt.frac_max,st={type:"general",isDate:Y(we),isText:ae(we),isPercent:te(we),maxDecimals:pt.general?9:xt,scale:(Ze=pt.scale)!==null&&Ze!==void 0?Ze:1,color:0,parentheses:0,grouped:pt.grouping?1:0,_partitions:we},Be=!st.isDate&&!st.isText&&!pt.error&&pt.tokens.some(Yt=>Yt.type==="string"&&(ht?Yt.value===ht:A.test(Yt.value)));let vt="G",qt=xt>=0?Math.min(15,xt):"",Lt="",zt="";if(Mt&&Mt.color&&(zt="-",st.color=1),pt.parens&&(Lt="()",st.parentheses=1),Be)vt="C",st.type="currency";else if(pt.error)st.type="error",st.maxDecimals=0;else if(st.isDate){let Yt=0,un=0,ir="";pt.tokens.forEach(ln=>{const Nr=ln.type;/^(b-)?year/.test(Nr)?(ir+="Y",un++):Nr.startsWith("month")?(ir+="M",un++):/^(week)?day/.test(Nr)?(ir+="D",un++):Nr!=="hour"&&Nr!=="min"&&Nr!=="sec"&&Nr!=="am"||(ir+=Nr[0],Yt++)}),st.type="date",un&&Yt?st.type="datetime":!un&&Yt&&(st.type="time");const jr=ne.find(ln=>ir.startsWith(ln[0]));vt=jr?"D":"G",qt=jr?jr[1]:""}else st.isText?(vt="G",st.type="text",qt="",st.maxDecimals=0):pt.general?(vt="G",st.type="general",qt=""):pt.fractions?(vt="G",st.type="fraction",qt=""):pt.exponential?(vt="S",st.type="scientific"):st.isPercent?(vt="P",st.type="percent"):pt.grouping?(vt=",",st.type="grouped"):(pt.int_max||xt)&&(vt="F",st.type="number");return st.code=vt+qt+zt+Lt,st.level=ie[st.type],Object.freeze(st)}(Ae,(ce||{}).currency)||new SyntaxError;return Qe.info=nt,Qe.dateInfo=function(we){const[Ze]=we;return{year:!!(2&Ze.date),month:!!(4&Ze.date),day:!!(8&Ze.date),hours:!!(16&Ze.date),minutes:!!(32&Ze.date),seconds:!!(64&Ze.date),clockType:Ze.clock===12?12:24}}(Ae),Qe.isPercent=()=>!!nt.isPercent,Qe.isDate=()=>!!nt.isDate,Qe.isText=()=>!!nt.isText,Qe.pattern=pe,ue.error&&(Qe.error=ue.error),Qe.options=tt,Qe.locale=je||ce&&ce.locale||"",Object.freeze(Qe)}j(tr,"ue");function en(ue,ce){ue||(ue="General");let pe=null;return hn[ue]?pe=hn[ue]:(pe=Object.assign({},_(),ce).throws?$(ue):function(Ae){try{return $(Ae)}catch(je){const tt={tokens:[{type:"error"}],error:je.message};return{pattern:Ae,partitions:[tt,tt,tt,tt],error:je.message,locale:null}}}(ue),pe.error||(hn[ue]=pe)),tr(pe,ce)}j(en,"ce"),en.isDate=ue=>en(ue,{throws:!1}).isDate(),en.isPercent=ue=>en(ue,{throws:!1}).isPercent(),en.isText=ue=>en(ue,{throws:!1}).isText(),en.getInfo=(ue,ce)=>en(ue,{...ce,throws:!1}).info,en.getDateInfo=(ue,ce)=>en(ue,{...ce,throws:!1}).dateInfo,en.dateToSerial=K,en.dateFromSerial=G,en.options=_,en.dec2frac=g,en.round=m,en.codeToLocale=i,en.parseLocale=l,en.getLocale=c,en.addLocale=(ue,ce)=>{const pe=l(ce);return delete hn[pe.lang],delete hn[pe.language],h(ue,pe)},en.format=function(ue,ce,pe){let Ae=arguments.length>3&&arguments[3]!==void 0&&arguments[3];const je=pe&&typeof pe=="object"?pe:{locale:pe,throws:!Ae};return en(ue,je)(K(ce,je),je)},en.is_date=en.isDate,en.parseNumber=An,en.parseDate=Jt,en.parseTime=dn,en.parseBool=Sn,en.parseValue=function(ue,ce){var pe,Ae,je;return(pe=(Ae=(je=An(ue))!==null&&je!==void 0?je:Jt(ue,ce))!==null&&Ae!==void 0?Ae:dn(ue))!==null&&pe!==void 0?pe:Sn(ue)};var bt=en;return r=r.default}()})})(j1e);var DZe=j1e.exports,IZe=DZe;const PZe=VX(IZe),Fi=PZe;function Yd(t){let e=0;const n=Object.keys(t);for(const r of n){const i=Number(r);e=Math.max(e,i)}return e+1}j(Yd,"getArrayLength");function Xg(t,e,n){const r=Yd(n),i=n;for(let a=r-1;a>=t;a--)i[a+1]=i[a];i[t]=e}j(Xg,"insertMatrixArray");function yv(t,e,n){const r=Object.keys(n).reduce((i,a)=>Math.max(i,Number.parseInt(a)),0)+1;for(let i=t;i0){const i={};let a=0;for(let o=t;o<=e;o++)r[o]&&(i[a]=r[o],a++);return i}return{}}j(YX,"sliceMatrixArray");function Ev(t,e,n,r){const i=t>n;if(!i&&t+e>n)throw new Error("Invalid move operation");i?$1e(t,e,n,r):W1e(t,e,n,r)}j(Ev,"moveMatrixArray");function $1e(t,e,n,r){const i=r,a=[];for(let o=t;o=n;o--){const s=i[o];i[o+e]=s,s===void 0&&delete i[o+e]}a.forEach((o,s)=>{i[n+s]=o,o===void 0&&delete i[n+s]})}j($1e,"_moveBackward");function W1e(t,e,n,r){const i=r,a=[];for(let o=t;o{i[n+s-e]=o,o===void 0&&delete i[n+s-e]})}j(W1e,"_moveForward");const z1e=class E5{constructor(e={}){Xe(this,"_matrix"),this._setOriginValue(e)}static MakeObjectMatrixSize(e){return new E5({[e-1]:{}})}getMatrix(){return this._matrix}forEach(e){const n=this._matrix,r=Object.keys(n);for(const i of r){const a=Number(i),o=n[a];if(e(a,o)===!1)return this}return this}forRow(e){const n=this._matrix,r=Object.keys(n);for(const i of r){const a=Number(i),o=n[a];if(e(a,Object.keys(o).map(s=>Number(s)))===!1)return this}return this}forValue(e){const n=this._matrix,r=Object.keys(n);for(const i of r){const a=Number(i),o=n[a];if(!o)continue;const s=Object.keys(o);for(const l of s){const u=Number(l),c=o[Number(l)];if(e(a,u,c)===!1)return this}}return this}swapRow(e,n){const r=this._matrix[e],i=this._matrix[n];this._matrix[e]=i,this._matrix[n]=r}getRow(e){return this._matrix[e]}getRowOrCreate(e){let n=this.getRow(e);return n==null&&(n={},this._matrix[e]=n),n}reset(){this._setOriginValue({})}hasValue(){const e=this._matrix,n=Object.keys(e);if(n.length===0)return!1;for(const r of n){const i=Number(r),a=e[i];if(Object.keys(a).length>0)return!0}return!1}getValue(e,n){var r,i;return(i=(r=this._matrix)==null?void 0:r[e])==null?void 0:i[n]}setValue(e,n,r){const i=this.getRowOrCreate(e);i[n]=r}deleteValue(e,n){var r,i;(i=(r=this._matrix)==null?void 0:r[e])==null||delete i[n]}realDeleteValue(e,n){var r,i,a;if((i=(r=this._matrix)==null?void 0:r[e])==null||delete i[n],this.getRow(e)){const o=this.getRow(e);if(o==null)return;Object.keys(o).length===0&&((a=this._matrix)==null||delete a[e])}}setRow(e,n){this._matrix[e]=n}moveRows(e,n,r){Ev(e,n,r,this._matrix)}moveColumns(e,n,r){this.forEach((i,a)=>{Ev(e,n,r,a)})}insertRows(e,n){for(let r=e;r{a&&Xg(r,void 0,a)})}removeRows(e,n){yv(e,n,this._matrix)}removeColumns(e,n){this.forEach((r,i)=>{i&&yv(e,n,i)})}getFragment(e,n,r,i){const a=new E5;let o=0;for(let s=e;s<=n;s++){const l={};let u=0;for(let c=r;c<=i;c++){const d=this.getValue(s,c);l[u]=d,u++}a.setRow(o,l),o++}return a}getSlice(e,n,r,i){const a=new E5;for(let o=e;o<=n;o++)for(let s=r;s<=i;s++){const l=this.getValue(o,s);l&&a.setValue(o,s,Ie.deepClone(l))}return a}getSizeOf(){return Object.keys(this._matrix).length}getLength(){return Yd(this._matrix)}getRange(){const e=this.getLength()-1;let n=0;const r=this.getLength();for(let i=0;in?o:n}}return{startRow:0,startColumn:0,endRow:e,endColumn:n}}toNativeArray(){const e=new Array;return this.forValue((n,r,i)=>{e.push(i)}),e}toArray(){const e=[];return this.forRow((n,r)=>{e[n]==null&&(e[n]=[]),r.forEach(i=>{e[n][i]=this.getValue(n,i)})}),e}toFullArray(){const e=this.getRange(),{endColumn:n,endRow:r}=e,i=[];for(let a=0;a<=r;a++){const o=new Array(n+1).fill(void 0);i.push(o)}return this.forValue((a,o,s)=>{i[a][o]=s}),i}toJSON(){return this._matrix}clone(){const e=JSON.stringify(this._matrix);return JSON.parse(e)}getData(){const e=JSON.stringify(this._matrix);return JSON.parse(e)}getArrayData(){let e=0,n=0,r=!1,i=!1;const a=new E5;return this.forEach((o,s)=>{r||(r=!0,e=o),Object.keys(s).forEach(l=>{const u=Number(l);i?u0&&(e=+a[0],n=+a[a.length-1]);for(const o of a){const s=Object.keys(this._matrix[o]);s.length>0&&(r=Math.min(r,+s[0]),i=Math.max(i,+s[s.length-1]))}return{startRow:e,endRow:n,startColumn:r,endColumn:i}}getDataRange(){let e=0,n=0,r=0,i=-1,a=!1,o=!1;return this.forEach((s,l)=>{if(a||(a=!0,e=s),l==null)return;const u=Yd(l)-1;u>r&&(r=u),Object.keys(l).forEach(c=>{const d=Number(c);o?di&&(i=s)}),{startRow:e,startColumn:n,endRow:i,endColumn:r}}getDiscreteRanges(){const e=[];return this.forEach((n,r)=>{Object.keys(r).forEach(i=>{const a=Number(i);let o=!1;for(const s of e)if(n>=s.startRow&&n<=s.endRow+1&&a>=s.startColumn&&a<=s.endColumn+1){s.endRow=Math.max(n,s.endRow),s.endColumn=Math.max(a,s.endColumn),o=!0;break}o||e.push({startRow:n,endRow:n,startColumn:a,endColumn:a})})}),e}merge(e){this.forValue((n,r)=>{const i=e.getValue(n,r);i!=null&&this.setValue(n,r,i)})}_setOriginValue(e={}){this._matrix=e}};j(z1e,"ObjectMatrix");let Ct=z1e;const ba={ff:"Arial",fs:11,it:at.FALSE,bl:at.FALSE,ul:{s:at.FALSE},st:{s:at.FALSE},ol:{s:at.FALSE},tr:{a:0,v:at.FALSE},td:JA.UNSPECIFIED,cl:{rgb:"#000"},bg:{rgb:"#fff"},ht:dr.UNSPECIFIED,vt:ea.UNSPECIFIED,tb:Li.UNSPECIFIED,pd:{t:0,r:0,b:0,l:0},n:null},MZe={id:"default_slide",title:"defaultSlide",pageSize:{width:300,height:300}};function R5(t,e){const{textRuns:n=[]}=e;let r=0;for(const i of n){const{ts:a={},st:o,ed:s}=i;if(a[t]==null)return at.FALSE;switch(t){case"bl":case"it":{if(a[t]===at.FALSE)return at.FALSE;break}case"ul":case"st":{if(a[t].s===at.FALSE)return at.FALSE;break}default:throw new Error(`unknown style key: ${t} in IStyleBase`)}r+=s-o}return e.dataStream.indexOf(`\r -`)===r?at.TRUE:at.FALSE}j(R5,"isAllFormatInTextRuns");const AH=class wH{constructor(e,n,r){Xe(this,"_range"),Xe(this,"_worksheet"),this._deps=r,this._range=n,this._worksheet=e}static foreach(e,n){const{startRow:r,startColumn:i,endRow:a,endColumn:o}=e;for(let s=r;s<=a;s++)for(let l=i;l<=o;l++)n(s,l)}getRangeData(){return this._range}getValue(){return this.getValues()[0][0]}getValues(){const{startRow:e,endRow:n,startColumn:r,endColumn:i}=this._range,a=[];for(let o=e;o<=n;o++){const s=[];for(let l=r;l<=i;l++)s.push(this.getMatrix().getValue(o,l)||null);a.push(s)}return a}getMatrix(){const{startRow:e,endRow:n,startColumn:r,endColumn:i}=this._range,a=this._worksheet.getCellMatrix(),o=new Ct;for(let s=e;s<=n;s++)for(let l=r;l<=i;l++)o.setValue(s,l,a.getValue(s,l)||null);return o}getMatrixObject(){const{startRow:e,endRow:n,startColumn:r,endColumn:i}=this._range,a=this._worksheet.getCellMatrix(),o=new Ct;for(let s=e;s<=n;s++)for(let l=r;l<=i;l++)o.setValue(s-e,l-r,a.getValue(s,l)||{});return o}getA1Notation(){const{startRow:e,endRow:n,startColumn:r,endColumn:i}=this._range;let a,o;return rn.map(r=>{var i;const a=e.getStyleByCell(r);return((i=a==null?void 0:a.bg)==null?void 0:i.rgb)||ba.bg.rgb}))}getCell(e,n){const{startRow:r,startColumn:i}=this._range,a={startRow:r+e,endRow:r+e,startColumn:i+n,endColumn:i+n};return new wH(this._worksheet,a,this._deps)}getColumn(){return this._range.startColumn}getObjectValue(e={}){return this.getObjectValues(e)[0][0]}getObjectValues(e={}){var n;const{startRow:r,endRow:i,startColumn:a,endColumn:o}=this._range,s=this._worksheet.getCellMatrix().getFragment(r,i,a,o).getData();if(e.isIncludeStyle){const l=this._deps.getStyles();for(let u=0;u<=i-r;u++)for(let c=0;c<=o-a;c++){if(s==null||((n=s==null?void 0:s[u])==null?void 0:n[c])==null)continue;const d=s[u][c].s;d&&(s[u][c].s=l.get(d))}}return s}getFontColor(){return this.getFontColors()[0][0]}getFontColors(){const e=this._deps.getStyles();return this.getValues().map(n=>n.map(r=>{var i;const a=e.getStyleByCell(r);return((i=a==null?void 0:a.cl)==null?void 0:i.rgb)||ba.cl.rgb}))}getFontFamilies(){return this._getStyles("ff")}getFontFamily(){return this.getFontFamilies()[0][0]}getUnderlines(){return this._getStyles("ul")}getUnderline(){var e,n;const{p:r}=(e=this.getValue())!=null?e:{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?R5("ul",r.body)===at.TRUE?{s:at.TRUE}:{s:at.FALSE}:this.getUnderlines()[0][0]}getOverlines(){return this._getStyles("ol")}getOverline(){return this.getOverlines()[0][0]}getStrikeThrough(){var e,n;const{p:r}=(e=this.getValue())!=null?e:{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?R5("st",r.body)===at.TRUE?{s:at.TRUE}:{s:at.FALSE}:this.getStrikeThroughs()[0][0]}getStrikeThroughs(){return this._getStyles("st")}getFontSize(){var e,n;const r=((e=this.getValue())==null?void 0:e.p)||{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?r.body.textRuns.some(i=>{var a;return((a=i==null?void 0:i.ts)==null?void 0:a.fs)!=null})?Math.max(...r.body.textRuns.map(i=>{var a;return((a=i==null?void 0:i.ts)==null?void 0:a.fs)||0})):this.getFontSizes()[0][0]:this.getFontSizes()[0][0]}getFontSizes(){return this._getStyles("fs")}getBorder(){return this.getBorders()[0][0]}getBorders(){return this._getStyles("bd")}getFontStyle(){var e,n;const{p:r}=(e=this.getValue())!=null?e:{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?R5("it",r.body)===at.TRUE?Vm.ITALIC:Vm.NORMAL:this._getFontStyles()[0][0]}_getFontStyles(){return this._getStyles("it")}getFontWeight(){var e,n;const{p:r}=(e=this.getValue())!=null?e:{};return r&&Array.isArray((n=r.body)==null?void 0:n.textRuns)&&r.body.textRuns.length>0?R5("bl",r.body)===at.TRUE?Bm.BOLD:Bm.NORMAL:this._getFontWeights()[0][0]}_getFontWeights(){return this._getStyles("bl")}getGridId(){return this._worksheet.getSheetId()}getHeight(){const{_range:e,_worksheet:n}=this,{startRow:r,endRow:i}=e;let a=0;for(let o=0;o<=i-r;o++){const s=n.getRowHeight(o);a+=s}return a}getHorizontalAlignment(){return this.getHorizontalAlignments()[0][0]}getHorizontalAlignments(){return this._getStyles("ht")}getLastColumn(){return this._range.endColumn}getLastRow(){return this._range.endRow}getNumColumns(){const{startColumn:e,endColumn:n}=this._range;return n-e+1}getNumRows(){const{startRow:e,endRow:n}=this._range;return n-e+1}getRichTextValue(){return this.getRichTextValues()[0][0]}getRichTextValues(){return this.getValues().map(e=>e.map(n=>(n==null?void 0:n.p)||""))}getRowIndex(){return this._range.startRow}getSheet(){return this._worksheet}getTextDirection(){return this.getTextDirections()[0][0]}getTextDirections(){return this._getStyles("td")}getTextRotation(){return this.getTextRotations()[0][0]}getTextRotations(){return this._getStyles("tr")}getTextStyle(){return this.getTextStyles()[0][0]}getTextStyles(){const e=this._deps.getStyles();return this.getValues().map(n=>n.map(r=>e.getStyleByCell(r)))}getVerticalAlignment(){return this.getVerticalAlignments()[0][0]}getVerticalAlignments(){return this._getStyles("vt")}getWidth(){const{_range:e,_worksheet:n}=this,{startColumn:r,endColumn:i}=e;let a=0;for(let o=0;o<=i-r;o++)a+=n.getColumnWidth(o);return a}getWrap(){return this.getWrapStrategy()===Li.WRAP?at.TRUE:at.FALSE}getWrapStrategies(){return this._getStyles("tb")}getWrapStrategy(){return this.getWrapStrategies()[0][0]}forEach(e){wH.foreach(this._range,e)}_getStyles(e){const n=this._deps.getStyles();return this.getValues().map(r=>r.map(i=>{const a=n&&n.getStyleByCell(i);return a&&a[e]||ba[e]}))}};j(AH,"Range"),Xe(AH,"transformRange",j((t,e)=>t.rangeType===it.ALL?{startColumn:0,startRow:0,endColumn:e.getMaxColumns()-1,endRow:e.getMaxRows()-1}:t.rangeType===it.COLUMN?{startRow:0,endRow:e.getMaxRows()-1,startColumn:t.startColumn,endColumn:t.endColumn}:t.rangeType===it.ROW?{startColumn:0,endColumn:e.getMaxColumns()-1,startRow:t.startRow,endRow:t.endRow}:t,"transformRange"));let Gn=AH;function XX(t,e,n,r=!1){let i={...t};const a=i.startAbsoluteRefType||yr.NONE,o=i.endAbsoluteRefType||yr.NONE;return!r&&a===yr.ALL&&o===yr.ALL?i:r||a===yr.NONE&&o===yr.NONE?ft.moveOffset(i,e,n):(a===yr.NONE?i={...i,startRow:i.startRow+n,startColumn:i.startColumn+e}:a===yr.COLUMN?i={...i,startRow:i.startRow+n}:a===yr.ROW&&(i={...i,startColumn:i.startColumn+e}),o===yr.NONE?i={...i,endRow:i.endRow+n,endColumn:i.endColumn+e}:o===yr.COLUMN?i={...i,endRow:i.endRow+n}:o===yr.ROW&&(i={...i,endColumn:i.endColumn+e}),i)}j(XX,"moveRangeByOffset");function q1e(t){const e=new Set,n=new Set;for(const s of t)e.add(s.startColumn),e.add(s.endColumn+1),n.add(s.startRow),n.add(s.endRow+1);const r=Array.from(e).sort((s,l)=>s-l),i=Array.from(n).sort((s,l)=>s-l),a=[];for(let s=0;s=s.startRow&&l.startColumn<=s.endColumn&&l.endColumn>=s.startColumn){o.push({startColumn:Math.max(s.startColumn,l.startColumn),endColumn:Math.min(s.endColumn,l.endColumn),startRow:Math.max(s.startRow,l.startRow),endRow:Math.min(s.endRow,l.endRow)});break}return o}j(q1e,"splitIntoGrid");function Y1e(t){t.sort((r,i)=>r.startRow-i.startRow||r.startColumn-i.startColumn);const e={};for(const r of t)e[r.startRow]||(e[r.startRow]=[]),e[r.startRow].push(r);const n=[];for(const r in e){const i=e[+r];i.sort((o,s)=>o.startColumn-s.startColumn);let a=i[0];for(let o=1;or.startColumn-i.startColumn||r.startRow-i.startRow);const e={};for(const r of t)e[r.startColumn]||(e[r.startColumn]=[]),e[r.startColumn].push(r);const n=[];for(const r in e){const i=e[+r];i.sort((o,s)=>o.startRow-s.startRow);let a=i[0];for(let o=1;o{n.push(...ft.subtract(r,e))}),ft.mergeRanges(n)}j(Q1e,"multiSubtractSingleRange");const q2=class gE{static clone(e){return e.rangeType!==void 0?{startRow:e.startRow,startColumn:e.startColumn,endRow:e.endRow,endColumn:e.endColumn,rangeType:e.rangeType}:{startRow:e.startRow,startColumn:e.startColumn,endRow:e.endRow,endColumn:e.endColumn}}static equals(e,n){return e==null||n==null?!1:e.endRow===n.endRow&&e.endColumn===n.endColumn&&e.startRow===n.startRow&&e.startColumn===n.startColumn&&(e.rangeType===n.rangeType||e.rangeType===void 0&&n.rangeType===it.NORMAL||n.rangeType===void 0&&e.rangeType===it.NORMAL)}static intersects(e,n){if(e.rangeType===it.ROW&&n.rangeType===it.COLUMN||e.rangeType===it.COLUMN&&n.rangeType===it.ROW)return!0;if(e.rangeType===it.ROW&&n.rangeType===it.ROW)return e.startRow<=n.endRow&&e.endRow>=n.startRow;if(e.rangeType===it.COLUMN&&n.rangeType===it.COLUMN)return e.startColumn<=n.endColumn&&e.endColumn>=n.startColumn;const r=Math.floor(Number.MAX_SAFE_INTEGER/10),i=Number.isNaN(e.startRow)?0:e.startRow,a=Number.isNaN(e.endRow)?r:e.endRow,o=Number.isNaN(e.startColumn)?0:e.startColumn,s=Number.isNaN(e.endColumn)?r:e.endColumn,l=Number.isNaN(n.startRow)?0:n.startRow,u=Number.isNaN(n.endRow)?r:n.endRow,c=Number.isNaN(n.startColumn)?0:n.startColumn,d=Number.isNaN(n.endColumn)?r:n.endColumn,h=Math.abs(o+s-c-d),f=Math.abs(o-s)+Math.abs(c-d),m=Math.abs(i+a-l-u),g=Math.abs(i-a)+Math.abs(l-u);return h<=f&&m<=g}static getIntersects(e,n){const r=e.startRow,i=e.endRow,a=e.startColumn,o=e.endColumn,s=n.startRow,l=n.endRow,u=n.startColumn,c=n.endColumn;let d,h,f,m;if(s<=i)s>=r?h=s:h=r;else return null;if(l>=r)l>=i?m=i:m=l;else return null;if(u<=o)u>a?d=u:d=a;else return null;if(c>=a)c>=o?f=o:f=c;else return null;return{startRow:h,endRow:m,startColumn:d,endColumn:f,rangeType:it.NORMAL}}static contains(e,n){return e.startRow<=n.startRow&&e.endRow>=n.endRow&&e.startColumn<=n.startColumn&&e.endColumn>=n.endColumn}static realContain(e,n){return gE.contains(e,n)&&(e.startRown.endRow||e.startColumnn.endColumn)}static union(...e){return e.reduce((n,r)=>({startRow:Math.min(n.startRow,r.startRow),startColumn:Math.min(n.startColumn,r.startColumn),endRow:Math.max(n.endRow,r.endRow),endColumn:Math.max(n.endColumn,r.endColumn),rangeType:it.NORMAL}),e[0])}static realUnion(...e){const n=e.some(a=>a.rangeType===it.COLUMN),r=e.some(a=>a.rangeType===it.ROW),i=gE.union(...e);return{startColumn:r?Number.NaN:i.startColumn,endColumn:r?Number.NaN:i.endColumn,startRow:n?Number.NaN:i.startRow,endRow:n?Number.NaN:i.endRow,rangeType:r?it.ROW:n?it.COLUMN:it.NORMAL}}static subtract(e,n){if(n.startRow>e.endRow||n.endRowe.endColumn||n.endColumn=e.startRow&&r.push({startRow:e.startRow,startColumn:e.startColumn,endRow:n.startRow-1,endColumn:e.endColumn}),n.endRow<=e.endRow&&r.push({startRow:n.endRow+1,startColumn:e.startColumn,endRow:e.endRow,endColumn:e.endColumn});const i=Math.max(e.startRow,n.startRow),a=Math.min(e.endRow,n.endRow);return n.startColumn>=e.startColumn&&r.push({startRow:i,startColumn:e.startColumn,endRow:a,endColumn:n.startColumn-1}),n.endColumn<=e.endColumn&&r.push({startRow:i,startColumn:n.endColumn+1,endRow:a,endColumn:e.endColumn}),r.filter(o=>o.startRow<=o.endRow&&o.startColumn<=o.endColumn)}static mergeRanges(e){return G1e(e)}static subtractMulti(e,n){if(!n.length)return e;let r=e;return n.forEach(i=>{r=Q1e(r,i)}),gE.mergeRanges(r)}static hasIntersectionBetweenTwoRect(e,n){return!(e.left>n.right||e.rightn.bottom||e.bottom({startRow:t.startRow-e.startRow,endRow:t.endRow-t.startRow,startColumn:t.startColumn-e.startColumn,endColumn:t.endColumn-t.startColumn}),"getRelativeRange")),Xe(q2,"getPositionRange",j((t,e,n)=>({...n||{},startRow:n&&[yr.ROW,yr.ALL].includes(n.startAbsoluteRefType||0)?n.startRow:t.startRow+e.startRow,endRow:n&&[yr.ROW,yr.ALL].includes(n.endAbsoluteRefType||0)?n.endRow:t.endRow+t.startRow+e.startRow,startColumn:n&&[yr.COLUMN,yr.ALL].includes(n.startAbsoluteRefType||0)?n.startColumn:t.startColumn+e.startColumn,endColumn:n&&[yr.COLUMN,yr.ALL].includes(n.endAbsoluteRefType||0)?n.endColumn:t.endColumn+t.startColumn+e.startColumn}),"getPositionRange")),Xe(q2,"moveHorizontal",j((t,e=0,n=0)=>({...t,startColumn:t.startColumn+e,endColumn:t.endColumn+e+n}),"moveHorizontal")),Xe(q2,"moveVertical",j((t,e=0,n=0)=>({...t,startRow:t.startRow+e,endRow:t.endRow+e+n}),"moveVertical")),Xe(q2,"moveOffset",j((t,e,n)=>({...t,startRow:t.startRow+n,endRow:t.endRow+n,startColumn:t.startColumn+e,endColumn:t.endColumn+e}),"moveOffset"));let ft=q2;function K1e(t,e){if(t.length===0||t[0].length===0)return null;const n=new Array(t[0].length).fill(0);let r=0,i=null;for(let a=0;ar&&(r=o.area,i={startColumn:o.start,startRow:a-o.height+1,endColumn:o.end,endRow:a})}return i}j(K1e,"maximalRectangle");function Z1e(t){const e=[];let n=0,r={area:0,height:0,start:0,end:0},i=0;for(;i=t[e[e.length-1]])e.push(i++);else{const a=t[e.pop()],o=e.length===0?i:i-e[e.length-1]-1;a*o>n&&(n=a*o,r={area:n,height:a,start:e.length===0?0:e[e.length-1]+1,end:i-1})}for(;e.length>0;){const a=t[e.pop()],o=e.length===0?i:i-e[e.length-1]-1;a*o>n&&(n=a*o,r={area:n,height:a,start:e.length===0?0:e[e.length-1]+1,end:i-1})}return r}j(Z1e,"largestRectangleArea");function J1e(t,e){Gn.foreach(e,(n,r)=>{t[n][r]=void 0})}j(J1e,"resetMatrix");function pc(t,e){const n=t.toFullArray(),r=[];for(;;){const i=K1e(n,e);if(!i)break;r.push(i),J1e(n,i)}return r}j(pc,"queryObjectMatrix");const TZe=class{constructor(e,n){Xe(this,"_values",[]),Xe(this,"_keys",[]),Xe(this,"_keyMaps",new Map),this._values=e,this._keys=n,e.forEach(r=>{this._initKeyMap(r)})}_initKeyMap(e){this._keys.forEach(n=>{const r=e[n],i=this._keyMaps.get(n)||new Map;i.set(r,e),this._keyMaps.set(n,i)})}getValue(e,n){const r=n||this._keys;for(let i=0;i{const a=this._keyMaps.get(i),o=n[i];a==null||a.delete(o)});const r=this._values.findIndex(i=>i===n);this._values.splice(r,1)}}getValues(){return this._values}getKeyMap(e){var n;return[...((n=this._keyMaps.get(e))==null?void 0:n.keys())||[]]}clear(){this._values=[],this._keys=[],this._keyMaps.clear()}};j(TZe,"RefAlias");function nw(t,e,n,r){return{forEach(i){for(let a=t;a<=e;a++)for(let o=n;o<=r;o++)i(a,o)}}}j(nw,"createRowColIter");function LZe(t){if(t==null||t.length===0)return Number.NaN;const e=t.toLowerCase().split(""),n=e.length,r=j(o=>o.charCodeAt(0)-96,"getCharNumber");let i=0,a=0;for(let o=0;o=0;)n=String.fromCharCode(t%e+rw)+n,t=Math.floor(t/e)-1;return n}j(tde,"numberToABC");function nde(t,e){let n="";for(;e>0;)n+=t,e--;return n}j(nde,"repeatStringNumTimes");function GX(t,e=!1){const n=ede-rw+1;let r=xZe;e&&(r=rw);const i=String.fromCharCode(t%n+r),a=Math.floor(t/n)+1;return nde(i,a)}j(GX,"numberToListABC");function Ol(t,e){return t.zIndex>e.zIndex?1:t.zIndex===e.zIndex?0:-1}j(Ol,"sortRules");function DH(t,e){return t.zIndex>e.zIndex?-1:t.zIndex===e.zIndex?0:1}j(DH,"sortRulesByDesc");function K0(t="index",e=1){return(n,r)=>n[t]>r[t]?e:n[t]===r[t]?0:-e}j(K0,"sortRulesFactory");var le=(t=>(t[t.UNIVER_UNKNOWN=0]="UNIVER_UNKNOWN",t[t.UNIVER_DOC=1]="UNIVER_DOC",t[t.UNIVER_SHEET=2]="UNIVER_SHEET",t[t.UNIVER_SLIDE=3]="UNIVER_SLIDE",t[t.UNIVER_PROJECT=4]="UNIVER_PROJECT",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(le||{}),Ud=(t=>(t[t.Reader=0]="Reader",t[t.Editor=1]="Editor",t[t.Owner=2]="Owner",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(Ud||{}),IH=(t=>(t[t.SomeCollaborator=0]="SomeCollaborator",t[t.AllCollaborator=1]="AllCollaborator",t[t.OneSelf=2]="OneSelf",t[t.UNRECOGNIZED=-1]="UNRECOGNIZED",t))(IH||{});const rde=class extends et{};j(rde,"UnitModel");let QX=rde;function ide(t=Ie.generateRandomId(6),e=pf.EN_US,n=""){return{id:t,locale:e,title:n,body:{dataStream:`\r -`,textRuns:[],paragraphs:[{startIndex:0,paragraphStyle:{spaceAbove:{v:5},lineSpacing:1,spaceBelow:{v:0}}}],sectionBreaks:[{startIndex:1}]},documentStyle:{pageSize:{width:793.3333333333334,height:1122.6666666666667},marginTop:50,marginBottom:50,marginRight:40,marginLeft:40,renderConfig:{vertexAngle:0,centerAngle:0}},settings:{}}}j(ide,"getEmptySnapshot$1");var zu={},ade={},KX={};Object.defineProperty(KX,"__esModule",{value:!0});function ode(t,e){if(Array.isArray(e))return!1;for(let n in t)if(!KP(t[n],e[n]))return!1;for(let n in e)if(t[n]===void 0)return!1;return!0}j(ode,"eqObj");function sde(t,e){if(!Array.isArray(e)||t.length!==e.length)return!1;for(let n=0;nf!=null&&typeof f=="object"&&!Array.isArray(f),"isObject"),r=j((f,m)=>typeof f==typeof m?f>m:typeof f=="string"&&typeof m=="number","isGreaterKey");function i(f,m){for(let g in f){const p=g;m.write(p,f[p])}}j(i,"copyAll"),t.isValidPathItem=f=>typeof f=="number"||typeof f=="string"&&f!=="__proto__";const a=class{constructor(m=null){this.parents=[],this.indexes=[],this.lcIdx=-1,this.idx=-1,this.container=m}ascend(){e(this.parents.length===this.indexes.length/2),this.idx===0?this.parents.length?(this.lcIdx=this.indexes.pop(),this.container=this.parents.pop(),this.idx=this.indexes.pop()):(this.lcIdx=0,this.idx=-1):(e(this.idx>0),this.idx--,n(this.container[this.idx])&&this.idx--)}getPath(){const m=[];let g=this.container,p=this.parents.length-1,v=this.idx;for(;v>=0;)m.unshift(g[v]),v===0?(v=this.indexes[p*2],g=this.parents[p--]):v-=n(g[v-1])?2:1;return m}};j(a,"Cursor");let o=a;const s=class lde extends o{get(){return this.container?this.container.slice(this.idx+1):null}getKey(){return e(this.container!=null,"Invalid call to getKey before cursor descended"),this.container[this.idx]}getComponent(){let m;return this.container&&this.container.length>this.idx+1&&n(m=this.container[this.idx+1])?m:null}descendFirst(){let m=this.idx+1;if(!this.container||m>=this.container.length||n(this.container[m])&&m+1>=this.container.length)return!1;n(this.container[m])&&m++;const g=this.container[m];return Array.isArray(g)?(this.indexes.push(this.idx),this.parents.push(this.container),this.indexes.push(m),this.idx=0,this.container=g):this.idx=m,!0}nextSibling(){if(e(this.parents.length===this.indexes.length/2),this.idx>0||this.parents.length===0)return!1;const m=this.indexes[this.indexes.length-1]+1,g=this.parents[this.parents.length-1];return m>=g.length?!1:(e(!isNaN(m)),this.indexes[this.indexes.length-1]=m,this.container=g[m],!0)}_init(m,g,p,v){this.container=m,this.idx=g,this.parents=p.slice(),this.indexes=v.slice()}clone(){const m=new lde;return m._init(this.container,this.idx,this.parents,this.indexes),m}*[Symbol.iterator](){if(this.descendFirst()){do yield this.getKey();while(this.nextSibling());this.ascend()}}traverse(m,g){const p=this.getComponent();p&&g(p,m);for(const v of this)m&&m.descend(v),this.traverse(m,g),m&&m.ascend()}eachPick(m,g){this.traverse(m,(p,v)=>{p.p!=null&&g(p.p,v)})}eachDrop(m,g){this.traverse(m,(p,v)=>{p.d!=null&&g(p.d,v)})}};j(s,"ReadCursor");let l=s;t.ReadCursor=l;const u=class extends o{constructor(m=null){super(m),this.pendingDescent=[],this._op=m}flushDescent(){e(this.parents.length===this.indexes.length/2),this.container===null&&(this._op=this.container=[]);for(let m=0;m-1&&(this.lcIdx=p)}for(this.indexes.push(this.idx),this.parents.push(this.container),this.lcIdx!==-1&&(e(r(g,this.container[this.lcIdx][0])),p=this.lcIdx+1,this.lcIdx=-1);pthis.write(g,p)),this.reset(),this}writeMove(m,g,p=0){return this.writeAtPath(m,"p",p).writeAtPath(g,"d",p)}getPath(){const m=super.getPath();return m.push(...this.pendingDescent),m}};j(u,"WriteCursor");let c=u;t.WriteCursor=c,t.writeCursor=()=>new c,t.readCursor=f=>new l(f);function d(f,m,g){let p,v;v=p=f?f.descendFirst():!1;function _(C){let S;for(;v;){const b=S=f.getKey();if(C!=null){let y=!1;if(m&&typeof b=="number"&&(S=m(b,f.getComponent()),S<0&&(S=~S,y=!0)),r(S,C))return null;if(S===C&&!y)return f}g&&typeof S=="number"&&g(S,f.getComponent()),v=f.nextSibling()}return null}return j(_,"adv"),_.end=()=>{p&&f.ascend()},_}j(d,"advancer"),t.advancer=d;function h(f,m,g){let p,v,_,C;for(p=v=f&&f.descendFirst(),_=C=m&&m.descendFirst();p||_;){let S=p?f.getKey():null,b=_?m.getKey():null;S!==null&&b!==null&&(r(b,S)?b=null:S!==b&&(S=null)),g(S??b,S!=null?f:null,b!=null?m:null),S!=null&&p&&(p=f.nextSibling()),b!=null&&_&&(_=m.nextSibling())}v&&f.ascend(),C&&m.ascend()}j(h,"eachChildOf"),t.eachChildOf=h})(JX);var eG={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.ConflictType=void 0,function(e){e[e.RM_UNEXPECTED_CONTENT=1]="RM_UNEXPECTED_CONTENT",e[e.DROP_COLLISION=2]="DROP_COLLISION",e[e.BLACKHOLE=3]="BLACKHOLE"}(t.ConflictType||(t.ConflictType={}))})(eG);var Bie={},m3={},Uie;function ZP(){return Uie||(Uie=1,Object.defineProperty(m3,"__esModule",{value:!0}),m3.uniToStrPos=m3.strPosToUni=void 0,m3.strPosToUni=(t,e=t.length)=>{let n=0,r=0;for(;r=55296&&i<=57343&&(n++,r++)}if(r!==e)throw Error("Invalid offset - splits unicode bytes");return r-n},m3.uniToStrPos=(t,e)=>{let n=0;for(;e>0;e--){const r=t.charCodeAt(n);n+=r>=55296&&r<=57343?2:1}return n}),m3}j(ZP,"requireUnicount");var Hie={},jie;function aw(){return jie||(jie=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.uniSlice=t.dlen=t.eachOp=void 0;const e=ZP(),n=j(b=>{if(!Array.isArray(b))throw Error("Op must be an array of components");let y=null;for(let A=0;A0))throw Error("Inserts cannot be empty");break;case"number":if(!(w>0))throw Error("Skip components must be >0");if(typeof y=="number")throw Error("Adjacent skip components should be combined");break}y=w}if(typeof y=="number")throw Error("Op has a trailing skip")},"checkOp");function r(b,y){let A=0,w=0;for(let P=0;P{w(y(P,M,L))}),d(A)}j(i,"mapOp");const a=j(b=>b,"id"),o=j(b=>i(b,a),"normalize");t.dlen=b=>typeof b=="number"?b:e.strPosToUni(b);const s=j(b=>y=>{if(!(!y||y.d===0||y.d===""))if(b.length===0)b.push(y);else if(typeof y==typeof b[b.length-1])if(typeof y=="object"){const A=b[b.length-1];A.d=typeof A.d=="string"&&typeof y.d=="string"?A.d+y.d:t.dlen(A.d)+t.dlen(y.d)}else b[b.length-1]+=y;else b.push(y)},"makeAppend"),l=j(b=>typeof b=="number"?b:typeof b=="string"?e.strPosToUni(b):typeof b.d=="number"?b.d:e.strPosToUni(b.d),"componentLength");t.uniSlice=(b,y,A)=>{const w=e.uniToStrPos(b,y),P=A==null?1/0:e.uniToStrPos(b,A);return b.slice(w,P)};const u=j((b,y,A)=>typeof b=="number"?A==null?b-y:Math.min(b,A)-y:t.uniSlice(b,y,A),"dslice"),c=j(b=>{let y=0,A=0;return{take:j((w,P)=>{if(y===b.length)return w===-1?null:w;const M=b[y];let L;if(typeof M=="number")return w===-1||M-A<=w?(L=M-A,++y,A=0,L):(A+=w,w);if(typeof M=="string"){if(w===-1||P==="i"||e.strPosToUni(M.slice(A))<=w)return L=M.slice(A),++y,A=0,L;{const k=A+e.uniToStrPos(M.slice(A),w);return L=M.slice(A,k),A=k,L}}else{if(w===-1||P==="d"||t.dlen(M.d)-A<=w)return L={d:u(M.d,A)},++y,A=0,L;{let k=u(M.d,A,A+w);return A+=w,{d:k}}}},"take"),peek:j(()=>b[y],"peek")}},"makeTake"),d=j(b=>(b.length>0&&typeof b[b.length-1]=="number"&&b.pop(),b),"trim");function h(b,y,A){if(A!=="left"&&A!=="right")throw Error("side ("+A+") must be 'left' or 'right'");n(b),n(y);const w=[],P=s(w),{take:M,peek:L}=c(b);for(let O=0;O0;)V=M(B,"i"),P(V),typeof V!="string"&&(B-=l(V));break;case"string":A==="left"&&typeof L()=="string"&&P(M(-1)),P(e.strPosToUni($));break;case"object":for(B=t.dlen($.d);B>0;)switch(V=M(B,"i"),typeof V){case"number":B-=V;break;case"string":P(V);break;case"object":B-=t.dlen(V.d)}break}}let k;for(;k=M(-1);)P(k);return d(w)}j(h,"transform");function f(b,y){n(b),n(y);const A=[],w=s(A),{take:P}=c(b);for(let L=0;L0;)$=P(O,"d"),w($),typeof $!="object"&&(O-=l($));break;case"string":w(k);break;case"object":O=t.dlen(k.d);let B=0;for(;B{let A=0;for(let w=0;wA;w++){const P=y[w];switch(typeof P){case"number":{A+=P;break}case"string":const M=e.strPosToUni(P);A+=M,b+=M;break;case"object":b-=Math.min(t.dlen(P.d),b-A);break}}return b},"transformPosition"),g=j((b,y)=>typeof b=="number"?m(b,y):b.map(A=>m(A,y)),"transformSelection");function p(b,y,A){return i(b,(w,P)=>typeof w=="object"&&typeof w.d=="number"?{d:A.slice(y,P,P+w.d)}:w)}j(p,"makeInvertible");function v(b){return i(b,y=>{switch(typeof y){case"object":if(typeof y.d=="number")throw Error("Cannot invert text op: Deleted characters missing from operation. makeInvertible must be called first.");return y.d;case"string":return{d:y};case"number":return y}})}j(v,"invert");function _(b){return i(b,y=>typeof y=="object"&&typeof y.d=="string"?{d:e.strPosToUni(y.d)}:y)}j(_,"stripInvertible");function C(b){let y=!0;return r(b,A=>{typeof A=="object"&&typeof A.d=="number"&&(y=!1)}),y}j(C,"isInvertible");function S(b){return{name:"text-unicode",uri:"http://sharejs.org/types/text-unicode",trim:d,normalize:o,checkOp:n,create(y=""){if(typeof y!="string")throw Error("Initial data must be a string");return b.create(y)},apply(y,A){n(A);const w=b.builder(y);for(let P=0;Py.length===0,"isNoop")}}j(S,"makeType"),t.default=S}(Hie)),Hie}j(aw,"requireType");var xb={},$ie;function ude(){if($ie)return xb;$ie=1,Object.defineProperty(xb,"__esModule",{value:!0});const t=aw(),e=ZP();function n(r,i){return{get:r,getLength(){return r().length},insert(a,o,s){const l=e.strPosToUni(r(),a);return i([l,o],s)},remove(a,o,s){const l=e.strPosToUni(r(),a);return i([l,{d:o}],s)},_onOp(a){t.eachOp(a,(o,s,l)=>{switch(typeof o){case"string":this.onInsert&&this.onInsert(l,o);break;case"object":const u=t.dlen(o.d);this.onRemove&&this.onRemove(l,u)}})},onInsert:null,onRemove:null}}return j(n,"api$1"),xb.default=n,n.provides={text:!0},xb}j(ude,"requireApi");var Wie;function cde(){return Wie||(Wie=1,function(t){var e=cs&&cs.__createBinding||(Object.create?function(h,f,m,g){g===void 0&&(g=m),Object.defineProperty(h,g,{enumerable:!0,get:j(function(){return f[m]},"get")})}:function(h,f,m,g){g===void 0&&(g=m),h[g]=f[m]}),n=cs&&cs.__setModuleDefault||(Object.create?function(h,f){Object.defineProperty(h,"default",{enumerable:!0,value:f})}:function(h,f){h.default=f}),r=cs&&cs.__importStar||function(h){if(h&&h.__esModule)return h;var f={};if(h!=null)for(var m in h)Object.hasOwnProperty.call(h,m)&&e(f,h,m);return n(f,h),f},i=cs&&cs.__importDefault||function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(t,"__esModule",{value:!0}),t.type=t.remove=t.insert=void 0;const a=ZP(),o=r(aw()),s=i(ude()),l={create(h){return h},toString(h){return h},builder(h){if(typeof h!="string")throw Error("Invalid document snapshot: "+h);const f=[];return{skip(m){let g=a.uniToStrPos(h,m);if(g>h.length)throw Error("The op is too long for this document");f.push(h.slice(0,g)),h=h.slice(g)},append(m){f.push(m)},del(m){h=h.slice(a.uniToStrPos(h,m))},build(){return f.join("")+h}}},slice:o.uniSlice},u=o.default(l),c=Object.assign(Object.assign({},u),{api:s.default});t.type=c,t.insert=(h,f)=>f.length===0?[]:h===0?[f]:[h,f],t.remove=(h,f)=>o.dlen(f)===0?[]:h===0?[{d:f}]:[h,{d:f}];var d=aw();Object.defineProperty(t,"makeType",{enumerable:!0,get:j(function(){return d.default},"get")})}(Bie)),Bie}j(cde,"requireDist");(function(t){var e=cs&&cs.__importDefault||function(Y){return Y&&Y.__esModule?Y:{default:Y}};Object.defineProperty(t,"__esModule",{value:!0}),t.editOp=t.replaceOp=t.insertOp=t.moveOp=t.removeOp=t.type=void 0;const n=e(KX),r=e(ZX),i=JX,a=eG;function o(Y,ae){if(!Y)throw new Error(ae)}j(o,"assert"),t.type={name:"json1",uri:"http://sharejs.org/types/JSONv1",readCursor:i.readCursor,writeCursor:i.writeCursor,create:j(Y=>Y,"create"),isNoop:j(Y=>Y==null,"isNoop"),setDebug(Y){},registerSubtype:v,checkValidOp:P,normalize:M,apply:L,transformPosition:k,compose:O,tryTransform:F,transform:W,makeInvertible:V,invert:$,invertWithDoc:X,RM_UNEXPECTED_CONTENT:a.ConflictType.RM_UNEXPECTED_CONTENT,DROP_COLLISION:a.ConflictType.DROP_COLLISION,BLACKHOLE:a.ConflictType.BLACKHOLE,transformNoConflict:j((Y,ae,ie)=>te(()=>!0,Y,ae,ie),"transformNoConflict"),typeAllowingConflictsPred:j(Y=>Object.assign(Object.assign({},t.type),{transform:j((ae,ie,ne)=>te(Y,ae,ie,ne),"transform")}),"typeAllowingConflictsPred")};const s=j(Y=>Y?Y.getComponent():null,"getComponent");function l(Y){return Y&&typeof Y=="object"&&!Array.isArray(Y)}j(l,"isObject");const u=j(Y=>Array.isArray(Y)?Y.slice():Y!==null&&typeof Y=="object"?Object.assign({},Y):Y,"shallowClone"),c=j(Y=>Y&&(Y.p!=null||Y.r!==void 0),"hasPick"),d=j(Y=>Y&&(Y.d!=null||Y.i!==void 0),"hasDrop");function h(Y,ae){return o(Y!=null),typeof ae=="number"?(o(Array.isArray(Y),"Invalid key - child is not an array"),(Y=Y.slice()).splice(ae,1)):(o(l(Y),"Invalid key - child is not an object"),delete(Y=Object.assign({},Y))[ae]),Y}j(h,"removeChild");function f(Y,ae,ie){return typeof ae=="number"?(o(Y!=null,"Container is missing for key"),o(Array.isArray(Y),"Cannot use numerical key for object container"),o(Y.length>=ae,"Cannot insert into out of bounds index"),Y.splice(ae,0,ie)):(o(l(Y),"Cannot insert into missing item"),o(Y[ae]===void 0,"Trying to overwrite value at key. Your op needs to remove it first"),Y[ae]=ie),ie}j(f,"insertChildMut"),t.removeOp=(Y,ae=!0)=>i.writeCursor().writeAtPath(Y,"r",ae).get(),t.moveOp=(Y,ae)=>i.writeCursor().writeMove(Y,ae).get(),t.insertOp=(Y,ae)=>i.writeCursor().writeAtPath(Y,"i",ae).get(),t.replaceOp=(Y,ae,ie)=>i.writeCursor().at(Y,ne=>{ne.write("r",ae),ne.write("i",ie)}).get(),t.editOp=(Y,ae,ie,ne=!1)=>i.writeCursor().at(Y,de=>y(de,ae,ie,ne)).get();const m=j((Y,ae)=>Y!=null&&(typeof ae=="number"?Array.isArray(Y):typeof Y=="object"),"isValidKey"),g=j((Y,ae)=>m(Y,ae)?Y[ae]:void 0,"maybeGetChild"),p={};function v(Y){let ae=Y.type?Y.type:Y;ae.name&&(p[ae.name]=ae),ae.uri&&(p[ae.uri]=ae)}j(v,"registerSubtype");const _=j(Y=>{const ae=p[Y];if(ae)return ae;throw Error("Missing type: "+Y)},"typeOrThrow");v(cde());const C=j((Y,ae)=>Y+ae,"add");v({name:"number",apply:C,compose:C,invert:j(Y=>-Y,"invert"),transform:j(Y=>Y,"transform")});const S=j(Y=>Y==null?null:Y.et?_(Y.et):Y.es?p["text-unicode"]:Y.ena!=null?p.number:null,"getEditType"),b=j(Y=>Y.es?Y.es:Y.ena!=null?Y.ena:Y.e,"getEdit"),y=j((Y,ae,ie,ne=!1)=>{const[de,_e]=typeof ae=="string"?[_(ae),ae]:[ae,ae.name];!ne&&de.isNoop&&de.isNoop(ie)||(_e==="number"?Y.write("ena",ie):_e==="text-unicode"?Y.write("es",ie):(Y.write("et",_e),Y.write("e",ie)))},"writeEdit");function A(Y){o(typeof Y=="number"),o(Y>=0),o(Y===(0|Y))}j(A,"checkNonNegInteger");function w(Y){typeof Y=="number"?A(Y):o(typeof Y=="string")}j(w,"checkScalar");function P(Y){if(Y===null)return;const ae=new Set,ie=new Set,ne=j(_e=>{let Pe=!0,De=!1;for(let Ee in _e){const ye=_e[Ee];if(Pe=!1,o(Ee==="p"||Ee==="r"||Ee==="d"||Ee==="i"||Ee==="e"||Ee==="es"||Ee==="ena"||Ee==="et","Invalid component item '"+Ee+"'"),Ee==="p")A(ye),o(!ae.has(ye)),ae.add(ye),o(_e.r===void 0);else if(Ee==="d")A(ye),o(!ie.has(ye)),ie.add(ye),o(_e.i===void 0);else if(Ee==="e"||Ee==="es"||Ee==="ena"){o(!De),De=!0;const Ve=S(_e);o(Ve,"Missing type in edit"),Ve.checkValidOp&&Ve.checkValidOp(b(_e))}}o(!Pe)},"checkComponent"),de=j((_e,Pe,De)=>{if(!Array.isArray(_e))throw Error("Op must be null or a list");if(_e.length===0)throw Error("Empty descent");Pe||w(_e[0]);let Ee=1,ye=0,Ve=0;for(let ke=0;ke<_e.length;ke++){const Ke=_e[ke];if(o(Ke!=null),Array.isArray(Ke)){const $e=de(Ke,!1);if(ye){const Fe=typeof Ve,He=typeof $e;Fe===He?o(Ve<$e,"descent keys are not in order"):o(Fe==="number"&&He==="string")}Ve=$e,ye++,Ee=3}else typeof Ke=="object"?(o(Ee===1,`Prev not scalar - instead ${Ee}`),ne(Ke),Ee=2):(o(Ee!==3),w(Ke),o(i.isValidPathItem(Ke),"Invalid path key"),Ee=1)}return o(ye!==1,"Operation makes multiple descents. Remove some []"),o(Ee===2||Ee===3),_e[0]},"checkDescent");de(Y,!0),o(ae.size===ie.size,"Mismatched picks and drops in op");for(let _e=0;_e{const Pe=S(de);if(Pe){const Ee=b(de);y(_e,Pe,Pe.normalize?Pe.normalize(Ee):Ee)}for(const Ee of["r","p","i","d"])if(de[Ee]!==void 0){const ye=Ee==="p"||Ee==="d"?(De=de[Ee],ie[De]==null&&(ie[De]=ae++),ie[De]):de[Ee];_e.write(Ee,ye)}var De}),ne.get()}j(M,"normalize");function L(Y,ae){if(P(ae),ae===null)return Y;const ie=[];return j(function ne(de,_e){let Pe=de,De=0,Ee={root:de},ye=0,Ve=Ee,ke="root";function Ke(){for(;ye=De;ke--)de=ne(de,_e[ke]);for(--De;De>=0;De--){const ke=_e[De];if(typeof ke!="object"){const Ke=Pe.pop();de=de===g(Ke,ke)?Ke:de===void 0?h(Ke,ke):(ye=ke,Ve=de,(Ee=u(Ee=Ke))[ye]=Ve,Ee)}else c(ke)&&(o(de!==void 0,"Cannot pick up or remove undefined"),ke.p!=null&&(ie[ke.p]=de),de=void 0)}var Ee,ye,Ve;return de},"pick")(Y,ae),ae)}j(L,"apply");function k(Y,ae){Y=Y.slice(),P(ae);const ie=i.readCursor(ae);let ne,de,_e=!1;const Pe=[];for(let Ee=0;;Ee++){const ye=Y[Ee],Ve=ie.getComponent();if(Ve&&(Ve.r!==void 0?_e=!0:Ve.p!=null&&(_e=!1,ne=Ve.p,de=Ee)),Ee>=Y.length)break;let ke=0;const Ke=i.advancer(ie,void 0,(Fe,He)=>{c(He)&&ke++});Pe.unshift(Ke);const $e=Ke(ye);if(typeof ye=="number"&&(Y[Ee]-=ke),!$e)break}if(Pe.forEach(Ee=>Ee.end()),_e)return null;const De=j(()=>{let Ee=0;if(ne!=null){const ye=ie.getPath();Ee=ye.length,Y=ye.concat(Y.slice(de))}for(;Eed(He)?~(Fe-Ke):Fe-Ke,(Fe,He)=>{d(He)&&Ke++})(ye);if(typeof ye=="number"&&(Y[Ee]+=Ke),!$e)break}},"handleDrop");return ne!=null?ie.eachDrop(null,Ee=>{Ee===ne&&De()}):De(),Y}j(k,"transformPosition");function O(Y,ae){if(P(Y),P(ae),Y==null)return ae;if(ae==null)return Y;let ie=0;const ne=i.readCursor(Y),de=i.readCursor(ae),_e=i.writeCursor(),Pe=[],De=[],Ee=[],ye=[],Ve=[],ke=[],Ke=new Set;ne.traverse(null,Fe=>{Fe.p!=null&&(Ee[Fe.p]=ne.clone())}),de.traverse(null,Fe=>{Fe.d!=null&&(ye[Fe.d]=de.clone())});const $e=i.writeCursor();return j(function Fe(He,ct,_t,Ye,Ot,An,Ut,Jt){o(ct||_t);const dn=s(ct),Sn=s(_t),hn=!!Sn&&Sn.r!==void 0,tr=!!dn&&dn.i!==void 0,en=dn?dn.d:null,bt=Sn?Sn.p:null,ue=(An||hn)&&bt==null;if(bt!=null)Ye=ye[bt],Ut=De[bt]=new i.WriteCursor;else if(Sn&&Sn.r!==void 0)Ye=null;else{const Be=s(Ye);Be&&Be.d!=null&&(Ye=null)}const ce=s(Ye);if(en!=null)if(He=Ee[en],Jt=Pe[en]=new i.WriteCursor,ue)An&&!hn&&Jt.write("r",!0);else{const Be=Ve[en]=ie++;Ut.write("d",Be)}else if(dn&&dn.i!==void 0)He=null;else{const Be=s(He);Be&&Be.p!=null&&(He=null)}let pe;tr?(o(Ot===void 0),pe=dn.i):pe=Ot;const Ae=(bt==null?!tr||An||hn:pe===void 0)?null:Ut.getComponent();if(bt!=null){if(!(Ot!==void 0||tr)){const Be=en!=null?Ve[en]:ie++;ke[bt]=Be,Jt.write("p",Be)}}else hn&&(tr||Ot!==void 0||(Sn.r,Jt.write("r",Sn.r)));const je=ue?null:S(dn),tt=S(ce);if((je||tt)&&(je&&je.name,tt&&tt.name),je&&tt){o(je===tt);const Be=b(dn),vt=b(ce),qt=je.compose(Be,vt);y(Ut,je,qt),Ke.add(ce)}else je?y(Ut,je,b(dn)):tt&&(y(Ut,tt,b(ce)),Ke.add(ce));const Qe=typeof pe=="object"&&pe!=null;let nt=!1,we=0,Ze=0,ht=0,pt=0,Mt=0;const xt=i.advancer(Ye,(Be,vt)=>d(vt)?pt-Be-1:Be-pt,(Be,vt)=>{d(vt)&&pt++}),st=i.advancer(He,(Be,vt)=>c(vt)?we-Be-1:Be-we,(Be,vt)=>{c(vt)&&we++});if(i.eachChildOf(ct,_t,(Be,vt,qt)=>{let Lt,zt,Yt=Be,un=Be,ir=Be;if(typeof Be=="number"){let En=Be+ht;zt=xt(En),un=En+pt;let Ft=Be+Ze;Lt=st(Ft),d(s(zt))&&(Lt=null),Yt=Ft+we,ir=Be+Mt,o(Yt>=0,"p1PickKey is negative"),o(un>=0,"p2DropKey is negative");const $r=d(s(vt)),br=c(s(qt));($r||br&&!ue)&&Mt--,$r&&Ze--,br&&ht--}else Lt=st(Be),zt=xt(Be);Jt.descend(Yt),Ut.descend(un);const jr=Qe&&!d(s(vt))?pe[ir]:void 0,ln=Fe(Lt,vt,qt,zt,jr,ue,Ut,Jt);var Nr,mn,rn;Qe&&!ue?jr!==ln&&(nt||(pe=Array.isArray(pe)?pe.slice():Object.assign({},pe),nt=!0),Nr=pe,rn=ln,typeof(mn=ir)=="number"?(o(Array.isArray(Nr)),o(mnFe.get()),De.map(Fe=>Fe.get()),ne.traverse(_e,(Fe,He)=>{const ct=Fe.p;if(ct!=null){const _t=Ve[ct];_t!=null&&He.write("p",_t);const Ye=Pe[ct];Ye&&Ye.get(),Ye&&He.mergeTree(Ye.get())}else Fe.r!==void 0&&He.write("r",Fe.r)}),_e.reset(),_e.get(),de.traverse(_e,(Fe,He)=>{const ct=Fe.d;if(ct!=null){const Ye=ke[ct];Ye!=null&&He.write("d",Ye);const Ot=De[ct];Ot&&He.mergeTree(Ot.get())}else Fe.i!==void 0&&He.write("i",Fe.i);const _t=S(Fe);_t&&!Ke.has(Fe)&&y(He,_t,b(Fe))}),_e.get()}j(O,"compose");function $(Y){if(Y==null)return null;const ae=new i.ReadCursor(Y),ie=new i.WriteCursor;let ne;const de=[],_e=[];return j(function Pe(De,Ee,ye){const Ve=De.getComponent();let ke,Ke=!1;if(Ve){Ve.p!=null&&(Ee.write("d",Ve.p),de[Ve.p]=De.clone()),Ve.r!==void 0&&Ee.write("i",Ve.r),Ve.d!=null&&(Ee.write("p",Ve.d),ye=void 0),Ve.i!==void 0&&(ye=ke=Ve.i);const Fe=S(Ve);Fe&&(ye===void 0?(ne||(ne=new Set),ne.add(Ve)):(b(Ve),ye=Fe.apply(ye,b(Ve)),Ke=!0))}let $e=0;for(const Fe of De){Ee.descend(Fe);const He=typeof Fe=="number"?Fe-$e:Fe,ct=g(ye,He);d(De.getComponent())&&$e++;const _t=Pe(De,Ee,ct);if(ye!==void 0&&_t!==void 0){if(Ke||(Ke=!0,ye=u(ye)),!m(ye,He))throw Error("Cannot modify child - invalid operation");ye[He]=_t}Ee.ascend()}if(ke===void 0)return Ke?ye:void 0;Ee.write("r",ye)},"invertSimple")(ae,ie,void 0),ne&&(ie.reset(),j(function Pe(De,Ee,ye){const Ve=Ee.getComponent();if(Ve){const Fe=Ve.d;if(Fe!=null&&(De=de[Fe],ye=_e[Fe]=i.writeCursor()),ne.has(Ve)){const He=S(Ve);if(!He.invert)throw Error(`Cannot invert subtype ${He.name}`);y(ye,He,He.invert(b(Ve)))}}let ke=0,Ke=0;const $e=i.advancer(De,(Fe,He)=>c(He)?ke-Fe-1:Fe-ke,(Fe,He)=>{c(He)&&ke++});for(const Fe of Ee)if(typeof Fe=="number"){const He=Fe-Ke,ct=$e(He),_t=He+ke;ye.descend(_t),Pe(ct,Ee,ye),d(Ee.getComponent())&&Ke++,ye.ascend()}else ye.descend(Fe),Pe($e(Fe),Ee,ye),ye.ascend();$e.end()},"transformEdits")(ae.clone(),ae,ie),_e.length&&(ie.reset(),ae.traverse(ie,(Pe,De)=>{const Ee=Pe.p;if(Ee!=null){const ye=_e[Ee];ye&&ye.get(),ye&&De.mergeTree(ye.get())}}))),ie.get()}j($,"invert");const B=j((Y,ae)=>Y.some(ie=>typeof ie=="object"&&(Array.isArray(ie)?B(ie,ae):ae(ie))),"anyComponent");function V(Y,ae){if(Y==null||!B(Y,Ee=>{var ye;return Ee.r!==void 0||((ye=S(Ee))===null||ye===void 0?void 0:ye.makeInvertible)!=null}))return Y;const ie=new i.ReadCursor(Y),ne=new i.WriteCursor;let de=!1;const _e=[],Pe=[],De=j((Ee,ye,Ve)=>{const ke=Ee.getComponent();let Ke=!1;if(ke){ke.d!=null&&ye.write("d",ke.d),ke.i!==void 0&&ye.write("i",ke.i);const Fe=ke.p;if(Fe!=null&&(_e[Fe]=Ee.clone(),o(Ve!==void 0,"Operation picks up at an invalid key"),Pe[Fe]=Ve,ye.write("p",ke.p)),ke.r!==void 0&&Ve===void 0)throw Error("Invalid doc / op in makeInvertible: removed item missing from doc");const He=S(ke);He&&(He.makeInvertible?de=!0:y(ye,He,b(ke),!0))}let $e=0;for(const Fe of Ee){ye.descend(Fe);const He=typeof Fe=="number"?Fe-$e:Fe,ct=g(Ve,He),_t=De(Ee,ye,ct);ct!==_t&&(Ke||(Ke=!0,Ve=u(Ve)),_t===void 0?(Ve=h(Ve,He),typeof Fe=="number"&&$e++):Ve[He]=_t),ye.ascend()}return ke&&(ke.r!==void 0?(ye.write("r",r.default(Ve)),Ve=void 0):ke.p!=null&&(Ve=void 0)),Ve},"traversePick");return De(ie,ne,ae),ne.get(),de&&(ne.reset(),j(function Ee(ye,Ve,ke,Ke,$e){const Fe=Ve.getComponent();if(Fe){Fe.i!==void 0?(Ke=Fe.i,$e=!0):Fe.d!=null&&(Ke=Pe[Fe.d],ye=_e[Fe.d],$e=!1,Fe.d);let Ye=S(Fe);if(Ye&&Ye.makeInvertible){const Ot=b(Fe);y(ke,Ye,Ye.makeInvertible(Ot,Ke),!0)}}let He=0,ct=0;const _t=i.advancer(ye,(Ye,Ot)=>c(Ot)?He-Ye-1:Ye-He,(Ye,Ot)=>{c(Ot)&&He++});for(const Ye of Ve)if(typeof Ye=="number"){const Ot=Ye-ct,An=_t(Ot),Ut=Ot+He,Jt=g(Ke,$e?Ot:Ut);ke.descend(Ye),Ee(An,Ve,ke,Jt,$e),d(Ve.getComponent())&&ct++,ke.ascend()}else{const Ot=g(Ke,Ye);ke.descend(Ye),Ee(_t(Ye),Ve,ke,Ot,$e),ke.ascend()}_t.end()},"traverseDrop")(ie.clone(),ie,ne,ae,!1)),ne.get()}j(V,"makeInvertible");function X(Y,ae){return $(V(Y,ae))}j(X,"invertWithDoc");const z=j(Y=>{if(Y==null)return null;const ae=Y.slice();for(let ie=0;iec(qt)?Mt-vt-1:vt-Mt,(vt,qt)=>{c(qt)&&Mt++}),Be=i.advancer(pe);for(const vt of je)if(typeof vt=="number"){const qt=vt-xt,Lt=st(qt);xt+=+ce(Be(qt+Mt),Lt,je,tt,Qe)}else{const qt=st(vt);ce(Be(vt),qt,je,tt,Qe)}return st.end(),Be.end(),Ze},"scanOp2Drop")(Ut,Jt,Jt.clone(),null,null),Ee.map(ce=>ce&&ce.get()),de)return{ok:!1,conflict:de};He.map(ce=>!!ce);const Sn=[];let hn=null;j(function ce(pe,Ae,je,tt,Qe){let nt=!1;const we=s(Ae);if(c(we)){const st=we.p;st!=null?(je=Ee[st],tt=ct[st]=i.writeCursor(),nt=!0,Qe=null):(je=null,Qe=Ae.clone())}else d(s(je))&&(je=null);const Ze=pe.getComponent();if(Ze){const st=Ze.p;st!=null?(Qe&&(Ke[st]=Qe),Sn[st]=Qe||ne===1&&nt?null:tt.getComponent(),_e[st]=pe.clone(),je&&(ke[st]=je.clone())):Ze.r!==void 0&&(Qe||tt.write("r",!0),(Qe||nt)&&(hn==null&&(hn=new Set),hn.add(Ze)))}let ht=0,pt=0;const Mt=i.advancer(Ae,void 0,(st,Be)=>{c(Be)&&ht++}),xt=i.advancer(je,(st,Be)=>d(Be)?~(st-pt):st-pt,(st,Be)=>{d(Be)&&pt++});if(pe)for(const st of pe)if(typeof st=="string"){const Be=Mt(st),vt=xt(st);tt.descend(st),ce(pe,Be,vt,tt,Qe),tt.ascend()}else{const Be=Mt(st),vt=st-ht,qt=c(s(Be))?null:xt(vt),Lt=vt+pt;o(Lt>=0),tt.descend(Lt),ce(pe,Be,qt,tt,Qe),tt.ascend()}Mt.end(),xt.end()},"writeOp1Pick")(Ut,Jt,Jt.clone(),dn,null),dn.reset();let tr=[];if(j(function ce(pe,Ae,je,tt,Qe,nt){o(Ae);const we=Ae.getComponent();let Ze=s(tt),ht=!1;const pt=j((mn,rn,En)=>mn?t.moveOp(mn.getPath(),rn.getPath()):t.insertOp(rn.getPath(),En.i),"insOrMv");if(d(we)){const mn=we.d;mn!=null&&(Pe[mn]=Ae.clone());const rn=mn!=null?Sn[mn]:null;let En=!1;if(we.i!==void 0||mn!=null&&rn){let Ft;Ze&&(Ze.i!==void 0||(Ft=Ze.d)!=null&&!Fe[Ft])&&(En=Ft!=null?mn!=null&&mn===Ye[Ft]:n.default(Ze.i,we.i),En||Ft!=null&&ne!==1&&Ye[Ft]!=null||de==null&&(de={type:a.ConflictType.DROP_COLLISION,op1:pt(mn!=null?_e[mn]:null,Ae,we),op2:pt(Ft!=null?De[Ft]:null,tt,Ze)})),En||(nt?de==null&&(de={type:a.ConflictType.RM_UNEXPECTED_CONTENT,op1:pt(mn!=null?_e[mn]:null,Ae,we),op2:t.removeOp(nt.getPath())}):(mn!=null?(tr[An]=mn,Qe.write("d",rn.p=An++)):Qe.write("i",r.default(we.i)),ht=!0))}else if(mn!=null&&!rn){const Ft=Ke[mn];Ft&&(nt=Ft.clone())}mn!=null?(pe=_e[mn],je=Ve[mn],tt=ke[mn]):we.i!==void 0&&(pe=je=null,En||(tt=null))}else c(s(pe))&&(pe=je=tt=null);const Mt=s(pe),xt=s(je);if(c(xt)){const mn=xt.p;xt.r!==void 0&&(!Mt||Mt.r===void 0)||Fe[mn]?(tt=null,nt=je.clone()):mn!=null&&(tt=Ee[mn],ne!==1&&Ye[mn]!=null||((Qe=_t[mn])||(Qe=_t[mn]=i.writeCursor()),Qe.reset(),nt=null))}else!d(we)&&d(Ze)&&(tt=null);Ze=tt!=null?tt.getComponent():null;const st=S(we);if(st){const mn=b(we);if(nt)de==null&&(de={type:a.ConflictType.RM_UNEXPECTED_CONTENT,op1:t.editOp(Ae.getPath(),st,mn,!0),op2:t.removeOp(nt.getPath())});else{const rn=S(Ze);let En;if(rn){if(st!==rn)throw Error("Transforming incompatible types");const Ft=b(Ze);En=st.transform(mn,Ft,ie)}else En=r.default(mn);y(Qe,st,En)}}let Be=0,vt=0,qt=0,Lt=0,zt=0,Yt=0,un=pe!=null&&pe.descendFirst(),ir=un;const jr=i.advancer(je,void 0,(mn,rn)=>{c(rn)&&qt++});let ln=tt!=null&&tt.descendFirst(),Nr=ln;for(const mn of Ae)if(typeof mn=="number"){let rn;const En=d(Ae.getComponent()),Ft=mn-vt;{let gi;for(;un&&typeof(gi=pe.getKey())=="number";){gi+=Be;const pi=pe.getComponent(),vi=c(pi);if(gi>Ft||gi===Ft&&(!vi||ne===0&&En))break;if(vi){Be--;const qi=pi.p;Ye.includes(qi),pi.d,s(_t[pi.d]),c(s(_t[pi.d])),(pi.r===void 0||hn&&hn.has(pi))&&(qi==null||!Sn[qi]||ne!==1&&Ye.includes(qi))||zt--}un=pe.nextSibling()}rn=un&&gi===Ft?pe:null}const $r=Ft-Be;let br=jr($r);const Rn=$r-qt;let Qn=null;{let gi,pi;for(;ln&&typeof(gi=tt.getKey())=="number";){pi=gi-Lt;const vi=tt.getComponent(),qi=d(vi);if(pi>Rn)break;if(pi===Rn){if(!qi){Qn=tt;break}{if(ne===0&&En){Qn=tt;break}const Yi=br&&c(br.getComponent());if(ne===0&&Yi)break}}if(qi){const Yi=vi.d;Ye[Yi],vi.i===void 0&&(Fe[Yi]||Ye[Yi]!=null&&ne!==1)?(Fe[Yi]||Ye[Yi]!=null&&ne===0)&&(Lt++,Yt--):Lt++}ln=tt.nextSibling()}}const vr=Rn+Lt+zt+Yt;o(vr>=0,"trying to descend to a negative index"),Qe.descend(vr),En&&(rn=br=Qn=null,vt++),ce(rn,Ae,br,Qn,Qe,nt)&&Yt++,Qe.ascend()}else{let rn;for(;un&&(rn=pe.getKey(),typeof rn!="string"||!(rn>mn||rn===mn));)un=pe.nextSibling();const En=un&&rn===mn?pe:null,Ft=jr(mn);let $r;for(;ln&&($r=tt.getKey(),typeof $r!="string"||!($r>mn||$r===mn));)ln=tt.nextSibling();const br=ln&&$r===mn?tt:null;Qe.descend(mn),ce(En,Ae,Ft,br,Qe,nt),Qe.ascend()}return jr.end(),ir&&pe.ascend(),Nr&&tt.ascend(),ht},"writeOp1Drop")(Ut,Ut.clone(),Jt,Jt.clone(),dn,null),de)return{ok:!1,conflict:de};dn.reset();const en=j((ce,pe,Ae)=>ce.traverse(pe,(je,tt)=>{je.d!=null&&Ae(je.d,ce,tt)}),"eachDrop");(Fe.length||ct.length)&&(en(Jt,dn,(ce,pe,Ae)=>{Fe[ce]&&!He[ce]&&Ae.write("r",!0),ct[ce]&&Ae.mergeTree(ct[ce].get())}),dn.reset());const bt=[],ue=[];if((_t.length||Fe.length)&&!de){const ce=i.readCursor(z(dn.get()));if(en(ce,null,(pe,Ae)=>{bt[pe]=Ae.clone()}),_t.forEach(pe=>{pe&&en(i.readCursor(pe.get()),null,(Ae,je)=>{bt[Ae]=je.clone()})}),j(function pe(Ae,je,tt,Qe,nt,we){const Ze=s(je);if(Ze&&c(Ze))if(Ze.p!=null){const Be=Ze.p;bt[Be].getPath(),tt=bt[Be],Qe=ue[Be]=i.writeCursor()}else Ze.r!==void 0&&(tt=null);else d(s(tt))&&(tt=null);const ht=Ae.getComponent();if(ht){let Be;if((Be=ht.d)!=null){const vt=_t[Be];vt&&(vt.get(),Qe.mergeTree(vt.get()),tt=i.readCursor(vt.get()))}}let pt=0,Mt=0;const xt=i.advancer(je,void 0,(Be,vt)=>{c(vt)&&pt--}),st=i.advancer(tt,(Be,vt)=>d(vt)?-(Be-Mt)-1:Be-Mt,(Be,vt)=>{d(vt)&&Mt++});for(const Be of Ae)if(typeof Be=="number"){const vt=xt(Be),qt=Be+pt,Lt=st(qt),zt=qt+Mt;Qe.descend(zt),pe(Ae,vt,Lt,Qe),Qe.ascend()}else Qe.descend(Be),pe(Ae,xt(Be),st(Be),Qe),Qe.ascend();xt.end(),st.end()},"writeHeldOp2Drop")(Jt,ce,ce.clone(),dn),dn.reset(),de)return{ok:!1,conflict:de};if(dn.get(),ue.length){const pe=ue.map(je=>je?je.get():null),Ae=i.readCursor(z(dn.get()));if(en(Ae,dn,(je,tt,Qe)=>{const nt=pe[je];nt&&(Qe.mergeTree(nt),pe[je]=null)}),pe.find(je=>je)){const je=i.writeCursor(),tt=i.writeCursor();let Qe=0,nt=0;pe.forEach(we=>{we!=null&&en(i.readCursor(we),null,Ze=>{const ht=tr[Ze];je.writeMove(_e[ht].getPath(),Pe[ht].getPath(),Qe++);const pt=Ot[ht];pt&&pt.forEach(Mt=>{Fe[Mt]||ne!==1&&Ye[Mt]!=null||tt.writeMove(De[Mt].getPath(),Ee[Mt].getPath(),nt++)})})}),de={type:a.ConflictType.BLACKHOLE,op1:je.get(),op2:tt.get()}}}}return de?{ok:!1,conflict:de}:{ok:!0,result:dn.get()}}j(F,"tryTransform");const H=j(Y=>{const ae=new Error("Transform detected write conflict");throw ae.conflict=Y,ae.type=ae.name="writeConflict",ae},"throwConflictErr");function W(Y,ae,ie){const ne=F(Y,ae,ie);if(ne.ok)return ne.result;H(ne.conflict)}j(W,"transform");const K=j(Y=>{const ae=i.writeCursor();return i.readCursor(Y).traverse(ae,(ie,ne)=>{(d(ie)||S(ie))&&ne.write("r",!0)}),ae.get()},"opThatRemovesDE"),G=j((Y,ae)=>{const{type:ie,op1:ne,op2:de}=Y;switch(ie){case a.ConflictType.DROP_COLLISION:return ae==="left"?[null,K(de)]:[K(ne),null];case a.ConflictType.RM_UNEXPECTED_CONTENT:let _e=!1;return i.readCursor(ne).traverse(null,Pe=>{Pe.r!==void 0&&(_e=!0)}),_e?[null,K(de)]:[K(ne),null];case a.ConflictType.BLACKHOLE:return[K(ne),K(de)];default:throw Error("Unrecognised conflict: "+ie)}},"resolveConflict");function te(Y,ae,ie,ne){let de=null;for(;;){const _e=F(ae,ie,ne);if(_e.ok)return O(de,_e.result);{const{conflict:Pe}=_e;Y(Pe)||H(Pe);const[De,Ee]=G(Pe,ne);ae=O(M(ae),De),ie=O(M(ie),Ee),de=O(de,Ee)}}}j(te,"transformWithConflictsPred")})(ade);(function(t){var e=cs&&cs.__createBinding||(Object.create?function(a,o,s,l){l===void 0&&(l=s),Object.defineProperty(a,l,{enumerable:!0,get:j(function(){return o[s]},"get")})}:function(a,o,s,l){l===void 0&&(l=s),a[l]=o[s]}),n=cs&&cs.__exportStar||function(a,o){for(var s in a)s!=="default"&&!o.hasOwnProperty(s)&&e(o,a,s)};Object.defineProperty(t,"__esModule",{value:!0}),n(ade,t);var r=JX;Object.defineProperty(t,"ReadCursor",{enumerable:!0,get:j(function(){return r.ReadCursor},"get")}),Object.defineProperty(t,"WriteCursor",{enumerable:!0,get:j(function(){return r.WriteCursor},"get")});var i=eG;Object.defineProperty(t,"ConflictType",{enumerable:!0,get:j(function(){return i.ConflictType},"get")})})(zu);var kt=(t=>(t.RETAIN="r",t.INSERT="i",t.DELETE="d",t))(kt||{}),Co=(t=>(t.PARAGRAPH="PARAGRAPH",t.SECTION_BREAK="SECTION_BREAK",t.TABLE="TABLE",t.TABLE_ROW="TABLE_ROW",t.TABLE_CELL="TABLE_CELL",t.CUSTOM_BLOCK="CUSTOM_BLOCK",t))(Co||{}),wt=(t=>(t.PARAGRAPH="\r",t.SECTION_BREAK=` -`,t.TABLE_START="",t.TABLE_ROW_START="\x1B",t.TABLE_CELL_START="",t.TABLE_CELL_END="",t.TABLE_ROW_END="",t.TABLE_END="",t.CUSTOM_RANGE_START="",t.CUSTOM_RANGE_END="",t.COLUMN_BREAK="\v",t.PAGE_BREAK="\f",t.DOCS_END="\0",t.TAB=" ",t.CUSTOM_BLOCK="\b",t.LETTER="",t.SPACE=" ",t))(wt||{});function OZe(t){return`${t}`}j(OZe,"makeCustomRangeStream");var Er=(t=>(t[t.BULLET=0]="BULLET",t[t.NONE=1]="NONE",t[t.DECIMAL=2]="DECIMAL",t[t.DECIMAL_ZERO=3]="DECIMAL_ZERO",t[t.UPPER_LETTER=4]="UPPER_LETTER",t[t.LOWER_LETTER=5]="LOWER_LETTER",t[t.UPPER_ROMAN=6]="UPPER_ROMAN",t[t.LOWER_ROMAN=7]="LOWER_ROMAN",t[t.ORDINAL=8]="ORDINAL",t[t.CARDINAL_TEXT=9]="CARDINAL_TEXT",t[t.ORDINAL_TEXT=10]="ORDINAL_TEXT",t[t.HEX=11]="HEX",t[t.CHICAGO=12]="CHICAGO",t[t.IDEOGRAPH_DIGITAL=13]="IDEOGRAPH_DIGITAL",t[t.JAPANESE_COUNTING=14]="JAPANESE_COUNTING",t[t.AIUEO=15]="AIUEO",t[t.IROHA=16]="IROHA",t[t.DECIMAL_FULL_WIDTH=17]="DECIMAL_FULL_WIDTH",t[t.DECIMAL_HALF_WIDTH=18]="DECIMAL_HALF_WIDTH",t[t.JAPANESE_LEGAL=19]="JAPANESE_LEGAL",t[t.JAPANESE_DIGITAL_TEN_THOUSAND=20]="JAPANESE_DIGITAL_TEN_THOUSAND",t[t.DECIMAL_ENCLOSED_CIRCLE=21]="DECIMAL_ENCLOSED_CIRCLE",t[t.DECIMAL_FULL_WIDTH2=22]="DECIMAL_FULL_WIDTH2",t[t.AIUEO_FULL_WIDTH=23]="AIUEO_FULL_WIDTH",t[t.IROHA_FULL_WIDTH=24]="IROHA_FULL_WIDTH",t[t.GANADA=25]="GANADA",t[t.CHOSUNG=26]="CHOSUNG",t[t.DECIMAL_ENCLOSED_FULLSTOP=27]="DECIMAL_ENCLOSED_FULLSTOP",t[t.DECIMAL_ENCLOSED_PAREN=28]="DECIMAL_ENCLOSED_PAREN",t[t.DECIMAL_ENCLOSED_CIRCLE_CHINESE=29]="DECIMAL_ENCLOSED_CIRCLE_CHINESE",t[t.IDEOGRAPH_ENCLOSED_CIRCLE=30]="IDEOGRAPH_ENCLOSED_CIRCLE",t[t.IDEOGRAPH_TRADITIONAL=31]="IDEOGRAPH_TRADITIONAL",t[t.IDEOGRAPH_ZODIAC=32]="IDEOGRAPH_ZODIAC",t[t.IDEOGRAPH_ZODIAC_TRADITIONAL=33]="IDEOGRAPH_ZODIAC_TRADITIONAL",t[t.TAIWANESE_COUNTING=34]="TAIWANESE_COUNTING",t[t.IDEOGRAPH_LEGAL_TRADITIONAL=35]="IDEOGRAPH_LEGAL_TRADITIONAL",t[t.TAIWANESE_COUNTING_THOUSAND=36]="TAIWANESE_COUNTING_THOUSAND",t[t.TAIWANESE_DIGITAL=37]="TAIWANESE_DIGITAL",t[t.CHINESE_COUNTING=38]="CHINESE_COUNTING",t[t.CHINESE_LEGAL_SIMPLIFIED=39]="CHINESE_LEGAL_SIMPLIFIED",t[t.CHINESE_COUNTING_THOUSAND=40]="CHINESE_COUNTING_THOUSAND",t[t.KOREAN_DIGITAL=41]="KOREAN_DIGITAL",t[t.KOREAN_COUNTING=42]="KOREAN_COUNTING",t[t.KOREAN_LEGAL=43]="KOREAN_LEGAL",t[t.KOREAN_DIGITAL2=44]="KOREAN_DIGITAL2",t[t.VIETNAMESE_COUNTING=45]="VIETNAMESE_COUNTING",t[t.RUSSIAN_LOWER=46]="RUSSIAN_LOWER",t[t.RUSSIAN_UPPER=47]="RUSSIAN_UPPER",t[t.NUMBER_IN_DASH=48]="NUMBER_IN_DASH",t[t.HEBREW1=49]="HEBREW1",t[t.HEBREW2=50]="HEBREW2",t[t.ARABIC_ALPHA=51]="ARABIC_ALPHA",t[t.ARABIC_ABJAD=52]="ARABIC_ABJAD",t[t.HINDI_VOWELS=53]="HINDI_VOWELS",t[t.HINDI_CONSONANTS=54]="HINDI_CONSONANTS",t[t.HINDI_NUMBERS=55]="HINDI_NUMBERS",t[t.HINDI_COUNTING=56]="HINDI_COUNTING",t[t.THAI_LETTERS=57]="THAI_LETTERS",t[t.THAI_NUMBERS=58]="THAI_NUMBERS",t[t.THAI_COUNTING=59]="THAI_COUNTING",t[t.CUSTOM=60]="CUSTOM",t))(Er||{}),wg=(t=>(t[t.BULLET_ALIGNMENT_UNSPECIFIED=0]="BULLET_ALIGNMENT_UNSPECIFIED",t[t.START=1]="START",t[t.CENTER=2]="CENTER",t[t.END=3]="END",t[t.BOTH=4]="BOTH",t))(wg||{}),cd=(t=>(t[t.HYPERLINK=0]="HYPERLINK",t[t.FIELD=1]="FIELD",t[t.SDT=2]="SDT",t[t.BOOKMARK=3]="BOOKMARK",t[t.COMMENT=4]="COMMENT",t[t.CUSTOM=5]="CUSTOM",t[t.MENTION=6]="MENTION",t[t.UNI_FORMULA=7]="UNI_FORMULA",t))(cd||{}),dde=(t=>(t[t.COMMENT=0]="COMMENT",t))(dde||{}),Gg=(t=>(t[t.TRADITIONAL=0]="TRADITIONAL",t[t.MODERN=1]="MODERN",t))(Gg||{}),Zo=(t=>(t[t.DEFAULT=0]="DEFAULT",t[t.LINES=1]="LINES",t[t.LINES_AND_CHARS=2]="LINES_AND_CHARS",t[t.SNAP_TO_CHARS=3]="SNAP_TO_CHARS",t))(Zo||{}),ow=(t=>(t[t.SECTION_TYPE_UNSPECIFIED=0]="SECTION_TYPE_UNSPECIFIED",t[t.CONTINUOUS=1]="CONTINUOUS",t[t.NEXT_PAGE=2]="NEXT_PAGE",t[t.EVEN_PAGE=3]="EVEN_PAGE",t[t.ODD_PAGE=4]="ODD_PAGE",t))(ow||{}),Rv=(t=>(t[t.COLUMN_SEPARATOR_STYLE_UNSPECIFIED=0]="COLUMN_SEPARATOR_STYLE_UNSPECIFIED",t[t.NONE=1]="NONE",t[t.BETWEEN_EACH_COLUMN=2]="BETWEEN_EACH_COLUMN",t))(Rv||{}),o8=(t=>(t[t.BOTH_SIDES=0]="BOTH_SIDES",t[t.LEFT=1]="LEFT",t[t.RIGHT=2]="RIGHT",t[t.LARGEST=3]="LARGEST",t))(o8||{}),Sl=(t=>(t[t.INLINE=0]="INLINE",t[t.WRAP_NONE=1]="WRAP_NONE",t[t.WRAP_POLYGON=2]="WRAP_POLYGON",t[t.WRAP_SQUARE=3]="WRAP_SQUARE",t[t.WRAP_THROUGH=4]="WRAP_THROUGH",t[t.WRAP_TIGHT=5]="WRAP_TIGHT",t[t.WRAP_TOP_AND_BOTTOM=6]="WRAP_TOP_AND_BOTTOM",t))(Sl||{}),rd=(t=>(t[t.AUTO=0]="AUTO",t[t.AT_LEAST=1]="AT_LEAST",t[t.EXACT=2]="EXACT",t))(rd||{}),tG=(t=>(t[t.UNSPECIFIED=0]="UNSPECIFIED",t[t.SPECIFIED=1]="SPECIFIED",t))(tG||{}),s8=(t=>(t[t.START=0]="START",t[t.CENTER=1]="CENTER",t[t.END=2]="END",t))(s8||{}),sw=(t=>(t[t.NONE=0]="NONE",t[t.WRAP=1]="WRAP",t))(sw||{}),hde=(t=>(t[t.AUTO=0]="AUTO",t[t.AT_LEAST=1]="AT_LEAST",t[t.EXACT=2]="EXACT",t))(hde||{}),A5=(t=>(t.NORMAL="normal",t.BOLD="bold",t.ITALIC="italic",t))(A5||{}),no=(t=>(t[t.PAGE=0]="PAGE",t[t.COLUMN=1]="COLUMN",t[t.CHARACTER=2]="CHARACTER",t[t.MARGIN=3]="MARGIN",t[t.INSIDE_MARGIN=4]="INSIDE_MARGIN",t[t.OUTSIDE_MARGIN=5]="OUTSIDE_MARGIN",t[t.LEFT_MARGIN=6]="LEFT_MARGIN",t[t.RIGHT_MARGIN=7]="RIGHT_MARGIN",t))(no||{}),La=(t=>(t[t.PAGE=0]="PAGE",t[t.PARAGRAPH=1]="PARAGRAPH",t[t.LINE=2]="LINE",t[t.MARGIN=3]="MARGIN",t[t.TOP_MARGIN=4]="TOP_MARGIN",t[t.BOTTOM_MARGIN=5]="BOTTOM_MARGIN",t[t.INSIDE_MARGIN=6]="INSIDE_MARGIN",t[t.OUTSIDE_MARGIN=7]="OUTSIDE_MARGIN",t))(La||{}),fde=(t=>(t[t.POINT=0]="POINT",t[t.LINE=1]="LINE",t[t.CHARACTER=2]="CHARACTER",t[t.PIXEL=3]="PIXEL",t[t.PERCENT=4]="PERCENT",t))(fde||{}),wm=(t=>(t[t.CENTER=0]="CENTER",t[t.INSIDE=1]="INSIDE",t[t.LEFT=2]="LEFT",t[t.OUTSIDE=3]="OUTSIDE",t[t.RIGHT=4]="RIGHT",t[t.BOTH=5]="BOTH",t[t.DISTRIBUTE=6]="DISTRIBUTE",t))(wm||{}),Y3=(t=>(t[t.BOTTOM=0]="BOTTOM",t[t.CENTER=1]="CENTER",t[t.INSIDE=2]="INSIDE",t[t.OUTSIDE=3]="OUTSIDE",t[t.TOP=4]="TOP",t))(Y3||{}),JP=(t=>(t[t.PORTRAIT=0]="PORTRAIT",t[t.LANDSCAPE=1]="LANDSCAPE",t))(JP||{}),Na=(t=>(t.BULLET_LIST="BULLET_LIST",t.BULLET_LIST_1="BULLET_LIST_1",t.BULLET_LIST_2="BULLET_LIST_2",t.BULLET_LIST_3="BULLET_LIST_3",t.BULLET_LIST_4="BULLET_LIST_4",t.BULLET_LIST_5="BULLET_LIST_5",t.ORDER_LIST="ORDER_LIST",t.ORDER_LIST_1="ORDER_LIST_1",t.ORDER_LIST_2="ORDER_LIST_2",t.ORDER_LIST_3="ORDER_LIST_3",t.ORDER_LIST_4="ORDER_LIST_4",t.ORDER_LIST_5="ORDER_LIST_5",t.ORDER_LIST_QUICK_2="ORDER_LIST_QUICK_2",t.ORDER_LIST_QUICK_3="ORDER_LIST_QUICK_3",t.ORDER_LIST_QUICK_4="ORDER_LIST_QUICK_4",t.ORDER_LIST_QUICK_5="ORDER_LIST_QUICK_5",t.ORDER_LIST_QUICK_6="ORDER_LIST_QUICK_6",t.CHECK_LIST="CHECK_LIST",t.CHECK_LIST_CHECKED="CHECK_LIST_CHECKED",t))(Na||{});const Ob={"a)":{glyphFormat:"%1)",glyphType:Er.DECIMAL},"1.":{glyphType:Er.DECIMAL},"a.":{glyphFormat:"%1.",glyphType:Er.LOWER_LETTER},"A.":{glyphType:Er.UPPER_LETTER},"i.":{glyphFormat:"%1.",glyphType:Er.LOWER_ROMAN},"I.":{glyphFormat:"%1.",glyphType:Er.UPPER_LETTER}},g3=j(t=>[...t,...t,...t].map((e,n)=>({glyphFormat:` %${n+1}`,glyphSymbol:e,bulletAlignment:wg.START,textStyle:{fs:12},startNumber:0,paragraphProperties:{hanging:{v:21},indentStart:{v:21*n}}})),"bulletListFactory"),p3=j(t=>t.map((e,n)=>({...e,bulletAlignment:wg.START,textStyle:{fs:12},startNumber:0,paragraphProperties:{hanging:{v:21},indentStart:{v:21*n}}})),"orderListFactory"),zie=j((t,e)=>new Array(9).fill(0).map((n,r)=>({glyphFormat:` %${r+1}`,glyphSymbol:t,bulletAlignment:wg.START,textStyle:{fs:16},startNumber:0,paragraphProperties:{hanging:{v:21},indentStart:{v:21*r},textStyle:e}})),"checkListFactory"),Z0={BULLET_LIST:{listType:"BULLET_LIST",nestingLevel:g3(["●","○","■"])},BULLET_LIST_1:{listType:"BULLET_LIST",nestingLevel:g3(["❖","➢","■"])},BULLET_LIST_2:{listType:"BULLET_LIST",nestingLevel:g3(["✔","●","◆"])},BULLET_LIST_3:{listType:"BULLET_LIST",nestingLevel:g3(["■","◆","○"])},BULLET_LIST_4:{listType:"BULLET_LIST",nestingLevel:g3(["✧","○","■"])},BULLET_LIST_5:{listType:"BULLET_LIST",nestingLevel:g3(["➢","○","◆"])},ORDER_LIST:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1.",glyphType:Er.DECIMAL},{glyphFormat:"%2.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%3.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4.",glyphType:Er.DECIMAL},{glyphFormat:"%5.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%6.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7.",glyphType:Er.DECIMAL},{glyphFormat:"%8.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%9.",glyphType:Er.LOWER_ROMAN}])},ORDER_LIST_1:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1)",glyphType:Er.DECIMAL},{glyphFormat:"%2)",glyphType:Er.LOWER_LETTER},{glyphFormat:"%3)",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4)",glyphType:Er.DECIMAL},{glyphFormat:"%5)",glyphType:Er.LOWER_LETTER},{glyphFormat:"%6)",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7)",glyphType:Er.DECIMAL},{glyphFormat:"%8)",glyphType:Er.LOWER_LETTER},{glyphFormat:"%9)",glyphType:Er.LOWER_ROMAN}])},ORDER_LIST_2:{listType:"ORDER_LIST",nestingLevel:p3(["%1.","%1.%2.","%1.%2.%3.","%1.%2.%3.%4.","%1.%2.%3.%4.%5.","%1.%2.%3.%4.%5.%6.","%1.%2.%3.%4.%5.%6.%7."].map(t=>({glyphFormat:t,glyphType:Er.DECIMAL})))},ORDER_LIST_3:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%2.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%3.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%5.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%6.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%8.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%9.",glyphType:Er.LOWER_ROMAN}])},ORDER_LIST_4:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%2.",glyphType:Er.DECIMAL},{glyphFormat:"%3.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%5.",glyphType:Er.DECIMAL},{glyphFormat:"%6.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7.",glyphType:Er.UPPER_LETTER},{glyphFormat:"%8.",glyphType:Er.DECIMAL},{glyphFormat:"%9.",glyphType:Er.LOWER_ROMAN}])},ORDER_LIST_5:{listType:"ORDER_LIST",nestingLevel:p3([{glyphFormat:"%1.",glyphType:Er.DECIMAL_ZERO},{glyphFormat:"%2.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%3.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%4.",glyphType:Er.DECIMAL_ZERO},{glyphFormat:"%5.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%6.",glyphType:Er.LOWER_ROMAN},{glyphFormat:"%7.",glyphType:Er.DECIMAL_ZERO},{glyphFormat:"%8.",glyphType:Er.LOWER_LETTER},{glyphFormat:"%9.",glyphType:Er.LOWER_ROMAN}])},CHECK_LIST:{listType:"CHECK_LIST",nestingLevel:zie("☐")},CHECK_LIST_CHECKED:{listType:"CHECK_LIST_CHECKED",nestingLevel:zie("☑",{st:{s:at.TRUE}})}},Nb=j(t=>{const{glyphFormat:e,glyphType:n}=t,r=Ie.deepClone(Z0.ORDER_LIST);return r.nestingLevel[0].glyphFormat=e,r.nestingLevel[0].glyphType=n,r},"generateOrderList"),NZe={ORDER_LIST_QUICK_2:Nb(Ob["a)"]),ORDER_LIST_QUICK_3:Nb(Ob["a."]),ORDER_LIST_QUICK_4:Nb(Ob["i."]),ORDER_LIST_QUICK_6:Nb(Ob["I."])};Object.assign(Z0,NZe);const yO={"1.":"ORDER_LIST","a)":"ORDER_LIST_QUICK_2","a.":"ORDER_LIST_QUICK_3","i.":"ORDER_LIST_QUICK_4","A.":"ORDER_LIST_3","I.":"ORDER_LIST_QUICK_6","01.":"ORDER_LIST_5"};function PC(t){const e=[];for(const n of t){const{ed:r,ts:i}=n;if(n.sId===void 0&&delete n.sId,Ie.isEmptyObject(i)&&n.sId==null)continue;if(e.length===0){e.push(n);continue}const a=e.pop();T1e(n,a)&&Ie.hasIntersectionBetweenTwoRanges(a.st,a.ed,n.st,n.ed)?e.push({...n,st:a.st,ed:r}):e.push(a,n)}return e}j(PC,"normalizeTextRuns");function nG(t,e,n,r){var i;const{textRuns:a}=t;if(a==null)return;const o=[],s=a.length;let l=!1;const u=(i=e.textRuns)!=null?i:[];if(u.length)for(const c of u)c.st+=r,c.ed+=r;for(let c=0;c=f&&r<=m){if(h&&h.st===h.ed&&r===h.st){o.push(d);continue}if(l)d.st+=n,d.ed+=n,o.push(d);else{l=!0,d.ed+=n;const g=[];if(u.length){const p={...d,st:f,ed:u[0].st};p.ed>p.st&&g.push(p),g.push(...u);const v=u[u.length-1],_={...d,st:v.ed,ed:m+n};_.ed>_.st&&g.push(_)}else g.push(d);o.push(...g)}}else d.st+=n,d.ed+=n,l||(l=!0,o.push(...u)),o.push(d)}l||(l=!0,o.push(...u)),t.textRuns=PC(o)}j(nG,"insertTextRuns");function eM(t,e,n,r){const{paragraphs:i}=t;if(i==null)return;const{paragraphs:a,dataStream:o}=e,s=[];let l=-1;for(let c=0,d=i.length;c=r&&(h.startIndex+=n),l===-1&&f>=r&&(l=c),s.push(h.startIndex)}let u=-1;if(a){for(let c=0,d=a.length;c=r&&(l.startIndex+=n)}const a=e.sectionBreaks;if(a){for(let o=0,s=a.length;o=r&&(l.startIndex+=n)}const a=e.customBlocks;if(a){for(let o=0,s=a.length;or?(l.startIndex+=n,l.endIndex+=n):c>r&&(l.endIndex+=n)}const a=e.tables;if(a){for(let o=0,s=a.length;o=r?(u.startIndex+=n,u.endIndex+=n):d>r-1&&(u.endIndex+=n)}if(i.find(s=>s.startIndex>r&&s.endIndex=u.endIndex)continue;if(t.dataStream[c.startIndex]===wt.CUSTOM_RANGE_START&&t.dataStream[c.endIndex]===wt.CUSTOM_RANGE_END){o.push(u);continue}if(t.dataStream[c.startIndex]===wt.CUSTOM_RANGE_START){c.endIndex=u.endIndex;continue}if(t.dataStream[c.endIndex]===wt.CUSTOM_RANGE_END){c.startIndex=u.startIndex;continue}}o.push(u)}i.push(...o),i.sort(K0("startIndex"))}}j(aG,"insertCustomRanges");function gde(t){t.sort((r,i)=>r.startIndex-i.startIndex);const e=[];let n=t[0];for(let r=1;r=t[r].startIndex?n.endIndex=Math.max(n.endIndex,t[r].endIndex):(e.push(n),n=t[r]);return e.push(n),e}j(gde,"mergeRanges");function pde(t){const e={};for(let n=0,r=t.length;n{const r=e[n],i=gde(r);e[n]=i}),Object.values(e).flat()}j(pde,"mergeDecorations");function oG(t,e,n,r){t.customDecorations||(t.customDecorations=[]);const{customDecorations:i}=t;if(n>0)for(let a=0,o=i.length;a=r?(s.startIndex+=n,s.endIndex+=n):u>r-1&&(s.endIndex+=n)}if(e.customDecorations){const a=[];for(let o=0,s=e.customDecorations.length;ol.st===n&&l.ed===n)){const l=i.find(u=>u.st===n&&u.ed===n);return s.push({...l,st:l.st-n,ed:l.ed-n}),t.textRuns=(r=t.textRuns)==null?void 0:r.filter(u=>u!==l),s}if(i){const l=[];for(let u=0,c=i.length;u=f)if(s.push({...d,st:h-a,ed:f-a}),a===h)d.ed=h;else continue;else h<=a&&f>=o?(s.push({...d,st:a-a,ed:o-a}),d.ed-=e):a>=h&&ah&&o<=f?(s.push({...d,st:h-a,ed:o-a}),d.st=o-e,d.ed-=e):h>=o&&(d.st-=e,d.ed-=e);l.push(d)}t.textRuns=l}return s.length===0&&s.push({st:0,ed:e,ts:{}}),s}j(sG,"deleteTextRuns");function lG(t,e,n){const{paragraphs:r}=t,i=n,a=n+e,o=[];if(r){const s=[];for(let l=0,u=r.length;l=i&&d=a&&(c.startIndex-=e);s.push(c)}t.paragraphs=s}return o}j(lG,"deleteParagraphs");function uG(t,e,n){const{sectionBreaks:r}=t,i=n,a=n+e-1,o=[];if(r){const s=[];for(let l=0,u=r.length;l=i&&d<=a){o.push({...c,startIndex:d-n});continue}else d>a&&(c.startIndex-=e);s.push(c)}t.sectionBreaks=s}return o}j(uG,"deleteSectionBreaks");function cG(t,e,n){const{customBlocks:r}=t,i=n,a=n+e-1,o=[];if(r){const s=[];for(let l=0,u=r.length;l=i&&d<=a){o.push({...c,startIndex:d-n});continue}else d>a&&(c.startIndex-=e);s.push(c)}t.customBlocks=s}return o}j(cG,"deleteCustomBlocks");function dG(t,e,n){const{tables:r}=t,i=n,a=n+e-1,o=[];if(r){const s=[];for(let l=0,u=r.length;l=h){o.push({...c,startIndex:d-n,endIndex:h-n});continue}else if(d<=i&&h>=a){const f=IC(d,h,i,a);if(c.startIndex=f[0],c.endIndex=f[1],c.startIndex===c.endIndex)continue}else a=d){o.push({...c,startIndex:d-n,endIndex:h-n});continue}else if(d<=i&&h>=a){const f=IC(d,h,i,a);c.startIndex=f[0],c.endIndex=f[1]}else a=a&&f<=o){s.push(d);continue}else if(Math.max(a,h)<=Math.min(o,f)){const m=IC(h,f,a,o);d.startIndex=m[0],d.endIndex=m[1]}else ob.st&&r.push(b),r.push({st:Math.max(f,p),ed:Math.min(m,v),ts:S,sId:C}),my.st?y:null}}u();const c=r[r.length-1],d=t[i-1],h=e[a-1];return c&&c.ed!==Math.max(d.ed,h.ed)&&(d.ed>h.ed?r.push(d):r.push(h)),PC(r)}j(mG,"coverTextRuns");function Cde(t,e,n,r,i){const{paragraphs:a}=t,{paragraphs:o}=e;if(a==null||o==null)return;const s=lG(t,n,r);if(i!==go.REPLACE){const l=[];for(const u of o){const{startIndex:c,paragraphStyle:d,bullet:h}=u;let f=[];for(const m of s){const{startIndex:g,paragraphStyle:p,bullet:v}=m;let _,C;if(i===go.COVER?(_={...p,...d},C={listId:"",listType:Na.BULLET_LIST,nestingLevel:0,textStyle:{},...v,...h}):(_={...d,...p},C={listId:"",listType:Na.BULLET_LIST,nestingLevel:0,textStyle:{},...h,...v}),c===g){f.push({startIndex:c,paragraphStyle:_,bullet:C});break}}l.push(...f),f=[]}e.paragraphs=l}return eM(t,e,n,r),s}j(Cde,"updateParagraphs");function Sde(t,e,n,r,i){const{sectionBreaks:a}=t,{sectionBreaks:o}=e;if(a==null||o==null)return;const s=uG(t,n,r);if(i!==go.REPLACE){const l=[];for(const u of o){const{startIndex:c}=u;let d=[];for(const h of s){const{startIndex:f}=h;if(c===f){i===go.COVER?d.push({...h,...u}):d.push({...u,...h});break}}l.push(...d),d=[]}e.sectionBreaks=l}return eM(t,e,n,r),s}j(Sde,"updateSectionBreaks");function bde(t,e,n,r,i){const{customBlocks:a}=t,{customBlocks:o}=e;if(a==null||o==null)return;const s=cG(t,n,r);if(i!==go.REPLACE){const l=[];for(const u of o){const{startIndex:c}=u;let d=[];for(const h of s){const{startIndex:f}=h;if(c===f){i===go.COVER?d.push({...h,...u}):d.push({...u,...h});break}}l.push(...d),d=[]}e.customBlocks=l}return rG(t,e,n,r),s}j(bde,"updateCustomBlocks");function yde(t,e,n,r,i){const{tables:a}=t,{tables:o}=e;if(a==null||o==null)return;const s=dG(t,n,r);if(i!==go.REPLACE){const l=[];for(const u of o){const{startIndex:c,endIndex:d}=u;let h=[];for(const f of s){const{startIndex:m,endIndex:g}=f;if(m>=c&&g<=d){i===go.COVER?h.push({...f,...u}):h.push({...u,...f});break}}l.push(...h),h=[]}e.tables=l}return iG(t,e,n,r),s}j(yde,"updateTables");function Ede(t,e,n,r,i){t.customRanges||(t.customRanges=[]);const{customRanges:a}=t,{customRanges:o}=e;if(a==null||o==null)return;let s=[];return i===go.REPLACE&&(s=hG(t,n,r)),aG(t,e,0,r),s}j(Ede,"updateCustomRanges");function Rde(t,e,n,r,i){t.customDecorations||(t.customDecorations=[]);let a=[];return i===go.REPLACE&&(a=fG(t,n,r,!1)),oG(t,e,0,r),a}j(Rde,"updateCustomDecorations");var lw=(t=>(t[t.copy=0]="copy",t[t.cut=1]="cut",t))(lw||{});function S0(t,e,n,r=!1,i=1){const{dataStream:a,textRuns:o=[],paragraphs:s=[],customBlocks:l=[],tables:u=[]}=t,c={dataStream:a.slice(e,n)},d=[];for(const p of o){const v=Ie.deepClone(p),{st:_,ed:C}=v;Ie.hasIntersectionBetweenTwoRanges(_,C,e,n)&&(e>=_&&e<=C?d.push({...v,st:e,ed:Math.min(n,C)}):n>=_&&n<=C?d.push({...v,st:Math.max(e,_),ed:n}):d.push(v))}d.length?c.textRuns=d.map(p=>{const{st:v,ed:_}=p;return{...p,st:v-e,ed:_-e}}):r&&(c.textRuns=[{st:0,ed:n-e,ts:{}}]);const h=[];for(const p of u){const v=Ie.deepClone(p),{startIndex:_,endIndex:C}=v;_>=e&&C<=n&&h.push({...v,startIndex:_-e,endIndex:C-e})}h.length&&(c.tables=h);const f=[];for(const p of s){const{startIndex:v}=p;v>=e&&v<=n&&f.push(Ie.deepClone(p))}f.length&&(c.paragraphs=f.map(p=>({...p,startIndex:p.startIndex-e}))),i===1&&(c.customDecorations=vG(t,e,n));const{customRanges:m}=pG(t,e,n);c.customRanges=m;const g=[];for(const p of l){const{startIndex:v}=p;v>=e&&v<=n&&g.push(Ie.deepClone(p))}return g.length&&(c.customBlocks=g.map(p=>({...p,startIndex:p.startIndex-e}))),c}j(S0,"getBodySlice");function gG(t){const{dataStream:e,textRuns:n,paragraphs:r,customRanges:i,customDecorations:a,tables:o}=t;let s=0,l=0;i==null||i.forEach(c=>{c.startIndex<0&&(s=Math.max(s,-c.startIndex)),c.endIndex>e.length-1&&(l=Math.max(l,c.endIndex-e.length+1))});const u=`${wt.CUSTOM_RANGE_START.repeat(s)}${e}${wt.CUSTOM_RANGE_END.repeat(l)}`;return n&&(n[0]&&(n[0].st=n[0].st-s),n[n.length-1]&&(n[n.length-1].ed=n[n.length-1].ed+l)),n==null||n.forEach(c=>{c.st+=s,c.ed+=s}),r==null||r.forEach(c=>{c.startIndex+=s}),i==null||i.forEach(c=>{c.startIndex+=s,c.endIndex+=s}),a==null||a.forEach(c=>{c.startIndex+=s,c.endIndex+=l}),o==null||o.forEach(c=>{c.startIndex+=s,c.endIndex+=l}),{...t,dataStream:u,textRuns:n,paragraphs:r,customRanges:i,customDecorations:a,tables:o}}j(gG,"normalizeBody");function pG(t,e,n){const{customRanges:r=[]}=t;let i=0,a=0;const o=r.filter(s=>Math.max(s.startIndex,e)<=Math.min(s.endIndex,n-1)).map(s=>({...s,startIndex:s.startIndex,endIndex:s.endIndex}));if(o.length){o.forEach(s=>{s.startIndexn-1&&(a+=1)});for(let s=0;su.endIndex-l.endIndex);for(let l=0;l({...s,startIndex:s.startIndex-e,endIndex:s.endIndex-e})),leftOffset:i,rightOffset:a}}j(pG,"getCustomRangeSlice");function vG(t,e,n){const{customDecorations:r=[]}=t,i=[];return r.forEach(a=>{if(Math.max(a.startIndex,e)<=Math.min(a.endIndex,n-1)){const o=Ie.deepClone(a);i.push({...o,startIndex:Math.max(o.startIndex-e,0),endIndex:Math.min(o.endIndex,n)-e})}}),i}j(vG,"getCustomDecorationSlice");function PH(t,e,n=go.COVER){if(e.dataStream!=="")throw new Error("Cannot compose other body with non-empty dataStream");const r={dataStream:t.dataStream},{textRuns:i=[],paragraphs:a=[]}=t,{textRuns:o=[],paragraphs:s=[]}=e,l=mG(o,i,n);l.length&&(r.textRuns=l);const u=[];let c=0,d=0;for(;c=i-r?(e=i-r,this._index+=1,this._offset=0):this._offset+=e,n.t===kt.DELETE||n.t===kt.RETAIN&&n.body==null?Ie.deepClone({...n,len:e}):Ie.deepClone({...n,len:e,body:S0(n.body,r,r+e)})}else return{t:kt.RETAIN,len:Number.POSITIVE_INFINITY}}peek(){return this._actions[this._index]}peekLength(){return this._actions[this._index]?this._actions[this._index].len-this._offset:Number.POSITIVE_INFINITY}peekType(){const e=this._actions[this._index];return e?e.t:kt.RETAIN}rest(){if(this.hasNext()){if(this._offset===0)return this._actions.slice(this._index);{const e=this._offset,n=this._index,r=this.next(),i=this._actions.slice(this._index);return this._offset=e,this._index=n,[r].concat(i)}}else return[]}};j(wde,"ActionIterator");let D9=wde;function Dde(t,e,n){const{dataStream:r}=t,i=n,a=n+e,o=sG(t,e,n),s=lG(t,e,n),l=uG(t,e,n),u=cG(t,e,n),c=dG(t,e,n),d=hG(t,e,n),h=fG(t,e,n);let f="";return r&&(t.dataStream=zX(r,i,a),f=r.slice(i,a)),{dataStream:f,textRuns:o,paragraphs:s,sectionBreaks:l,customBlocks:u,tables:c,customRanges:d,customDecorations:h}}j(Dde,"updateAttributeByDelete");function _G(t,e,n,r){t.dataStream=WX(t.dataStream,r,e.dataStream),nG(t,e,n,r),eM(t,e,n,r),mde(t,e,n,r),rG(t,e,n,r),iG(t,e,n,r),aG(t,e,n,r),oG(t,e,n,r)}j(_G,"updateAttributeByInsert");function Ide(t,e,n,r,i=go.COVER){return vde(t,e,n,r,i)}j(Ide,"updateApply");function Pde(t,e,n){return e<=0?{dataStream:""}:Dde(t,e,n)}j(Pde,"deleteApply");function Mde(t,e,n,r){n!==0&&_G(t,e,n,r)}j(Mde,"insertApply");function Tde(t,e){const n=new bd;return n.reset(),e.forEach(r=>{const i=Ie.deepClone(r);switch(i.t){case kt.RETAIN:{const{coverType:a,body:o,len:s}=i;o!=null&&Ide(t,o,s,n.cursor,a),n.moveCursor(s);break}case kt.INSERT:{const{body:a,len:o}=i;Mde(t,a,o,n.cursor),n.moveCursor(o);break}case kt.DELETE:{const{len:a}=i;Pde(t,a,n.cursor);break}default:throw new Error(`Unknown action type for action: ${i}.`)}}),t}j(Tde,"textXApply");function MH(t,e,n){if(t.length===0)return e;e=Ie.deepClone(e),t=Ie.deepClone(t);const r=[],i=e.length,a=t.length;let o=0,s=0,l=null;function u(){return l?(r.push(l),l=null,!0):!1}for(j(u,"pushPendingAndReturnStatus");ob.st&&r.push(),r.push({st:Math.max(f,p),ed:Math.min(m,v),ts:S,sId:C}),my.st?y:null}}u();const c=r[r.length-1],d=e[i-1],h=t[a-1];return c.ed!==Math.max(d.ed,h.ed)&&(d.ed>h.ed?r.push(d):r.push(h)),PC(r)}j(MH,"transformTextRuns");function TH(t,e,n){const r={startIndex:e.startIndex};if(e.paragraphStyle){if(t.paragraphStyle==null)r.paragraphStyle={...e.paragraphStyle};else if(r.paragraphStyle={...e.paragraphStyle},n===1){const i=Object.keys(t.paragraphStyle);for(const a of i)r.paragraphStyle[a]&&delete r.paragraphStyle[a]}}return e.bullet&&(t.bullet==null||n===0)&&(r.bullet={...e.bullet}),r}j(TH,"transformParagraph");function Lde(t,e,n=!1){const{body:r}=t,{body:i}=e;if(r==null||r.dataStream!==""||i==null||i.dataStream!=="")throw new Error("Data stream is not supported in transform.");const a={dataStream:""},{textRuns:o=[],paragraphs:s=[]}=r,{textRuns:l=[],paragraphs:u=[]}=i;let c=[];n?c=MH(o,l,1):c=MH(o,l,0),c.length&&(a.textRuns=c);const d=[];let h=0,f=0;for(;h1){for(const a of e)this.push(a);return this}let n=this._actions.length,r=this._actions[n-1];const i=Ie.deepClone(e[0]);if(i.t===kt.RETAIN&&i.len===0&&i.body==null)return this;if(typeof r=="object"){if(r.t===kt.DELETE&&i.t===kt.DELETE)return r.len+=i.len,this;if(r.t===kt.DELETE&&i.t===kt.INSERT&&(n-=1,r=this._actions[n-1],r==null))return this._actions.unshift(i),this;if(r.t===kt.RETAIN&&i.t===kt.RETAIN&&r.body==null&&i.body==null)return r.len+=i.len,this;if(r.t===kt.INSERT&&LH(r.body)&&i.t===kt.INSERT&&LH(i.body))return r.len+=i.len,r.body.dataStream+=i.body.dataStream,this}return n===this._actions.length?this._actions.push(i):this._actions.splice(n,0,i),this}trimEndUselessRetainAction(){let e=this._actions[this._actions.length-1];for(;e&&e.t===kt.RETAIN&&Ade(e);)this._actions.pop(),e=this._actions[this._actions.length-1];return this}};j(pE,"TextX"),Xe(pE,"id","text-x"),Xe(pE,"uri","https://github.com/dream-num/univer#text-x");let Vi=pE;Object.defineProperty(Vi,"name",{value:"text-x"});const w5=class xde{static registerSubtype(e){var n;e==null||this._subTypes.has(e.name)&&((n=this._subTypes.get(e.name))==null?void 0:n.id)!==Vi.id||(this._subTypes.set(e.name,e),zu.type.registerSubtype(e))}static apply(e,n){if(!zu.type.isNoop(n))return zu.type.apply(e,n)}static compose(e,n){return zu.type.compose(e,n)}static transform(e,n,r){return zu.type.transform(e,n,r)}static transformPosition(e,n,r="right"){return e&&e.length===2&&e[0]==="body"&&e[1].et===Vi.name?Vi.transformPosition(e[1].e,n,r==="left"):n}static invertWithDoc(e,n){return zu.type.invertWithDoc(e,n)}static isNoop(e){return zu.type.isNoop(e)}static getInstance(){return this._instance==null&&(this._instance=new xde),this._instance}removeOp(e,n){return zu.removeOp(e,n)}moveOp(e,n){return zu.moveOp(e,n)}insertOp(e,n){return zu.insertOp(e,n)}replaceOp(e,n,r){return zu.replaceOp(e,n,r)}editOp(e,n=["body"]){return zu.editOp(n,Vi.name,e)}};j(w5,"JSONX"),Xe(w5,"uri","https://github.com/dream-num/univer#json-x"),Xe(w5,"_subTypes",new Map),Xe(w5,"_instance",null);let Ir=w5;Ir.registerSubtype(Vi);const Ode={id:"default_doc",documentStyle:{}},Nde=class extends QX{constructor(e){var n;super(),Xe(this,"type",le.UNIVER_DOC),Xe(this,"_name$",new Pn("")),Xe(this,"name$",this._name$.asObservable()),Xe(this,"snapshot"),this.snapshot={...Ode,...e},this._name$.next((n=this.snapshot.title)!=null?n:"No Title")}getUnitId(){throw new Error("Method not implemented.")}getRev(){var e;return(e=this.snapshot.rev)!=null?e:1}incrementRev(){this.snapshot.rev=this.getRev()+1}setRev(e){this.snapshot.rev=e}setName(e){this.snapshot.title=e,this._name$.next(e)}get drawings(){return this.snapshot.drawings}get documentStyle(){return this.snapshot.documentStyle}get lists(){return this.snapshot.lists}get zoomRatio(){var e;return((e=this.snapshot.settings)==null?void 0:e.zoomRatio)||1}resetDrawing(e,n){this.snapshot.drawings=e,this.snapshot.drawingsOrder=n}getBody(){return this.snapshot.body}getSnapshot(){return this.snapshot}getBulletPresetList(){var e;const n=(e=this.snapshot.lists)!=null?e:{};return{...Z0,...n}}updateDocumentId(e){this.snapshot.id=e}updateDocumentRenderConfig(e){const{documentStyle:n}=this.snapshot;n.renderConfig==null?n.renderConfig=e:n.renderConfig={...n.renderConfig,...e}}updateDocumentStyle(e){this.snapshot.documentStyle==null?this.snapshot.documentStyle=e:this.snapshot.documentStyle={...this.snapshot.documentStyle,...e}}updateDocumentDataMargin(e){const{t:n,l:r,b:i,r:a}=e,{documentStyle:o}=this.snapshot;n!=null&&(o.marginTop=n),r!=null&&(o.marginLeft=r),i!=null&&(o.marginBottom=i),a!=null&&(o.marginRight=a)}updateDocumentDataPageSize(e,n){const{documentStyle:r}=this.snapshot;if(!r.pageSize){e=e??Number.POSITIVE_INFINITY,n=n??Number.POSITIVE_INFINITY,r.pageSize={width:e,height:n};return}e!==void 0&&(r.pageSize.width=e),n!==void 0&&(r.pageSize.height=n)}updateDrawing(e,n){const{drawings:r}=this,{width:i,height:a,left:o,top:s}=n,l=r==null?void 0:r[e];if(!l)return;const u=l.docTransform;u.size.width=i,u.size.height=a,u.positionH.posOffset=o,u.positionV.posOffset=s}setZoomRatio(e=1){this.snapshot.settings==null?this.snapshot.settings={zoomRatio:e}:this.snapshot.settings.zoomRatio=1}};j(Nde,"DocumentDataModelSimple");let kZe=Nde;const kde=class OH extends kZe{constructor(e){var n,r;super(Ie.isEmptyObject(e)?ide():e),Xe(this,"_unitId"),Xe(this,"headerModelMap",new Map),Xe(this,"footerModelMap",new Map);const i=6;this._unitId=(n=this.snapshot.id)!=null?n:Ie.generateRandomId(i),this._initializeHeaderFooterModel(),this._name$.next((r=this.snapshot.title)!=null?r:"")}dispose(){super.dispose(),this.headerModelMap.forEach(e=>{e.dispose()}),this.footerModelMap.forEach(e=>{e.dispose()}),this._name$.complete()}getDrawings(){return this.snapshot.drawings}getDrawingsOrder(){return this.snapshot.drawingsOrder}getCustomRanges(){var e;return(e=this.snapshot.body)==null?void 0:e.customRanges}getCustomDecorations(){var e;return(e=this.snapshot.body)==null?void 0:e.customDecorations}getSettings(){return this.snapshot.settings}reset(e){if(e.id&&e.id!==this._unitId)throw new Error("Cannot reset a document model with a different unit id!");this.snapshot={...Ode,...e},this._initializeHeaderFooterModel()}getSelfOrHeaderFooterModel(e){if(e!=null){if(this.headerModelMap.has(e))return this.headerModelMap.get(e);if(this.footerModelMap.has(e))return this.footerModelMap.get(e)}return this}getUnitId(){return this._unitId}apply(e){if(!Ir.isNoop(e))return this.snapshot=Ir.apply(this.snapshot,e),e!=null&&e.some(n=>Array.isArray(n)&&((n==null?void 0:n[0])==="headers"||(n==null?void 0:n[0])==="footers"))&&(this.headerModelMap.clear(),this.footerModelMap.clear(),this._initializeHeaderFooterModel()),this.snapshot}sliceBody(e,n,r=lw.copy){const i=this.getBody();if(i!=null)return S0(i,e,n,!1,r)}_initializeHeaderFooterModel(){const{headers:e,footers:n}=this.getSnapshot();if(e)for(const r in e){const i=e[r];this.headerModelMap.set(r,new OH(i)),this.headerModelMap.get(r).updateDocumentId(this.getUnitId())}if(n)for(const r in n){const i=n[r];this.footerModelMap.set(r,new OH(i)),this.footerModelMap.get(r).updateDocumentId(this.getUnitId())}}updateDocumentId(e){super.updateDocumentId(e),this._unitId=e}};j(kde,"DocumentDataModel");let sh=kde;function C4(t){return t===wt.CUSTOM_RANGE_END||t===wt.CUSTOM_RANGE_START}j(C4,"isCustomRangeSplitSymbol");function MC(t,e,n,r){return t<=n&&e>=n||t>=n&&t<=r}j(MC,"isIntersecting");function tM(t,e,n,r){const i=r.slice(n.startIndex+1,n.endIndex),a=Math.max(t-(n.startIndex+1),0),o=t+e-1-(n.startIndex+1);if(o<0)return!1;if(a===0&&o>=i.length)return!0;const s=i.slice(0,a)+i.slice(a+e);for(let l=0,u=s.length;lt[1]||(r(t[t.SLIDE=0]="SLIDE",t[t.MASTER=1]="MASTER",t[t.LAYOUT=2]="LAYOUT",t[t.HANDOUT_MASTER=3]="HANDOUT_MASTER",t[t.NOTES_MASTER=4]="NOTES_MASTER",t))(Ude||{});const FZe=[wt.TABLE_START,wt.TABLE_ROW_START,wt.TABLE_CELL_START,wt.TABLE_CELL_END,wt.TABLE_ROW_END,wt.TABLE_END,wt.CUSTOM_RANGE_START,wt.CUSTOM_RANGE_END,wt.CUSTOM_BLOCK],VZe=j(t=>{const e=t.endsWith(`\r -`)?t.slice(0,-2):t;return FZe.reduce((n,r)=>n.replaceAll(r,""),e)},"getPlainText"),BZe=j(t=>{const e=t.replace(/\n/g,"\r"),n=[],r=[];let i=0,a="",o=0;const s=j((u,c=!0)=>{const d=e.slice(i,u);if(Ie.isLegalUrl(d)){const h=Vl(),f=`${wt.CUSTOM_RANGE_START}${d}${wt.CUSTOM_RANGE_END}`,m={startIndex:i+o*2,endIndex:i+o*2+f.length-1,rangeId:h,rangeType:cd.HYPERLINK,properties:{url:t}};r.push(m),a+=f,i=u+1,o++,c&&(a+="\r",n.push({startIndex:u+o*2}))}else a+=e.slice(i,u+1),i=u+1,c&&n.push({startIndex:u+o*2})},"loopParagraph");let l=0;for(let u=0;u"u")return{startOffset:t,endOffset:t,collapsed:!0};if(e!l.wholeEntity||i<=l.startIndex&&a>l.endIndex?!1:SG(i,o?a:a-1,l.startIndex,l.endIndex));return s!=null&&s.length&&s.forEach(l=>{i=Math.min(l.startIndex,i),a=Math.max(l.endIndex+1,a)}),{...t,startOffset:i,endOffset:a,collapsed:i===a}}j(CG,"getDeleteSelection");function jde(t,e){let{startOffset:n,endOffset:r,collapsed:i}=w7(t);if(i){for(;e.dataStream[r]===wt.CUSTOM_RANGE_END;)r+=1,n+=1;for(;e.dataStream[r-1]===wt.CUSTOM_RANGE_START;)r-=1,n-=1;return{...t,startOffset:n,endOffset:r,collapsed:i}}else return{...t,...nM(t,e),collapsed:!1}}j(jde,"getInsertSelection");function $de(t,e){if(t.startOffset===t.endOffset)return null;const n=e.customRanges;if(!n)return w7(t);let{startOffset:r,endOffset:i}=nM(t,e);for(;C4(e.dataStream[r]);){if(e.dataStream[r]===wt.CUSTOM_RANGE_START){const a=n.find(o=>o.startIndex===r);if(!a)throw new Error("No custom-range matched");if(a.endIndex===i-1)return{startOffset:r,endOffset:i,collapsed:!1};if(a.endIndexo.endIndex===i-1);if(!a)throw new Error("No custom-range matched");if(a.startIndex===r)return{startOffset:r,endOffset:i,collapsed:!1};if(a.startIndex>r)break}i-=1}return i<=r?null:{startOffset:r,endOffset:i,collapsed:!1}}j($de,"getSelectionForAddCustomRange");function SG(t,e,n,r){return Math.max(t,n)<=Math.min(e,r)}j(SG,"isSegmentIntersects");function Wde(t,e="",n,r){var i;const{startOffset:a,endOffset:o}=t,s=[],l=a-n,u=o-n,c=r.dataStream,d=(i=r.customRanges)==null?void 0:i.filter(p=>MC(p.startIndex,p.endIndex,a,o)),h=new Set(d==null?void 0:d.filter(p=>tM(a,o-a,p,c))),f=new Set;d==null||d.forEach(p=>{h.has(p)||(p.startIndex-n>=l&&p.startIndex-n<=u&&p.endIndex-n>u&&f.add(p.startIndex),p.endIndex-n>=l&&p.endIndex-n<=u&&p.startIndex0&&s.push({t:kt.RETAIN,len:l,segmentId:e});const m=[...f].sort((p,v)=>p-v);let g=l;return m.forEach(p=>{const v=p-g;v>0&&s.push({t:kt.DELETE,len:v,line:0,segmentId:e}),s.push({t:kt.RETAIN,len:1,segmentId:e}),g=p+1}),gf.rangeId===i);if(!l)return!1;const{startIndex:u,endIndex:c}=l,d=new Vi,h=c-u+1;return u>0&&d.push({t:kt.RETAIN,len:u,segmentId:a}),d.push({t:kt.DELETE,len:1,segmentId:a,line:0}),h-2>0&&d.push({t:kt.RETAIN,len:h-2,segmentId:a}),d.push({t:kt.DELETE,len:1,segmentId:a,line:0}),s&&d.push({body:s,t:kt.INSERT,len:s.dataStream.length,segmentId:a,line:1}),d}j(zde,"deleteCustomRangeTextX");function qde(t){var e,n;const{range:r,rangeId:i,rangeType:a,segmentId:o,wholeEntity:s,properties:l,body:u}=t,c=$de(r,u);if(!c||!u)return!1;const{startOffset:d,endOffset:h}=c,f=(e=u.customRanges)!=null?e:[];let m=0;const g=new Vi,p=j((_,C,S)=>{const b=[];for(let w=0,P=f.length;wC)break}const y=b.map(w=>[w.startIndex,w.endIndex]).flat().sort((w,P)=>w-P),A=y.length?{startOffset:Math.min(y[0],_),endOffset:Math.max(y[y.length-1]+1,C+1)}:{startOffset:_,endOffset:C+1};A.startOffset!==m&&(g.push({t:kt.RETAIN,len:A.startOffset-m,segmentId:o}),m=A.startOffset),g.push({t:kt.INSERT,body:{dataStream:wt.CUSTOM_RANGE_START},len:1,line:0,segmentId:o}),y.forEach(w=>{w!==m&&(g.push({t:kt.RETAIN,len:w-m,segmentId:o}),m=w),g.push({t:kt.DELETE,len:1,line:0,segmentId:o}),m++}),m!==A.endOffset&&(g.push({t:kt.RETAIN,len:A.endOffset-m,segmentId:o}),m=A.endOffset),g.push({t:kt.INSERT,body:{dataStream:wt.CUSTOM_RANGE_END,customRanges:[{rangeId:S?`${i}-${S}`:i,rangeType:a,startIndex:-(A.endOffset-A.startOffset-y.length+1),endIndex:0,wholeEntity:s,properties:{...l}}]},len:1,line:0,segmentId:o})},"addCustomRange"),v=((n=u.paragraphs)!=null?n:[]).filter(_=>_.startIndexd);return Bde([d,h-1],v.map(_=>_.startIndex)).forEach(([_,C],S)=>p(_,C,S)),g}j(qde,"addCustomRangeTextX");function bG(t,e,n="",r=0,i=!0){var a;const{startOffset:o,endOffset:s}=CG(t,e),l=[],{paragraphs:u=[],dataStream:c}=e,d=o-r,h=s-r,f=u==null?void 0:u.find(C=>C.startIndex-r>=d&&C.startIndex-rMC(C.startIndex,C.endIndex,o,s)),g=new Set(m==null?void 0:m.filter(C=>tM(o,s-o,C,c))),p=new Set;if(m==null||m.forEach(C=>{g.has(C)||(C.startIndex-r>=d&&C.startIndex-r<=h&&C.endIndex-r>h&&p.add(C.startIndex),C.endIndex-r>=d&&C.endIndex-r<=h&&C.startIndex0&&l.push({t:kt.RETAIN,len:d,segmentId:n}),i&&f&&f.startIndex-r>d){const C=f.startIndex-r;p.add(C)}const v=[...p].sort((C,S)=>C-S);let _=d;return v.forEach(C=>{const S=C-_;S>0&&l.push({t:kt.DELETE,len:S,line:0,segmentId:n}),l.push({t:kt.RETAIN,len:1,segmentId:n}),_=C+1}),_{var e;const{selection:n,body:r,doc:i}=t,a=n.segmentId,o=(e=i.getSelfOrHeaderFooterModel(a))==null?void 0:e.getBody();if(!o)return!1;const s=new Vi,l=bG(n,o,a);return l.length&&s.push(...l),s.push({t:kt.INSERT,body:r,len:r.dataStream.length,line:0,segmentId:a}),s},"replaceSelectionTextX"),X3=class{};j(X3,"BuildTextUtils"),Xe(X3,"customRange",{add:qde,delete:zde,copyCustomRange:Vde,getCustomRangesInterestsWithRange:Fde,shouldDeleteCustomRange:tM,isIntersecting:MC}),Xe(X3,"selection",{replace:UZe,makeSelection:Hde,normalizeSelection:w7,getDeleteSelection:CG,getInsertSelection:jde,getDeleteActions:Wde,getDeleteExculdeLastLineBreakActions:bG}),Xe(X3,"range",{isIntersects:SG}),Xe(X3,"transform",{getPlainText:VZe,fromPlainText:BZe});let Aa=X3;function HZe(t,e,n){if(e==="")return t;const r={id:"mock-id",body:t,documentStyle:{}},i=new sh(r),a=e.length;let o;for(;(o=i.getBody().dataStream.indexOf(e))>=0;){const l=new Vi,u=Ir.getInstance();if(o>0&&l.retain(o),n.length>0){const c=i.sliceBody(o,o+a),d={dataStream:n};Array.isArray(c==null?void 0:c.textRuns)&&c.textRuns.length&&(d.textRuns=[{...c.textRuns[0],st:0,ed:n.length}]),l.insert(n.length,d)}l.delete(a),i.apply(u.editOp(l.serialize()))}const s=i.getBody();return i.dispose(),s}j(HZe,"replaceInDocumentBody");const Yde=class{constructor(){Xe(this,"skipNextObservers",!1),Xe(this,"lastReturnValue"),Xe(this,"isStopPropagation",!1)}stopPropagation(){this.isStopPropagation=!0}};j(Yde,"EventState");let jZe=Yde;const Xde=class extends Zt{constructor(){super(...arguments),Xe(this,"_sortedObservers",[])}subscribe(){throw new Error("[EventSubject]: please use `subscribeEvent` instead of `subscribe` method for `EventSubject`.")}next(){throw new Error("[EventSubject]: please use `emitEvent` instead of `next` method for `EventSubject`.")}unsubscribe(){super.unsubscribe(),this._sortedObservers.length=0}complete(){super.complete(),this._sortedObservers.length=0}subscribeEvent(e){let n;typeof e=="function"?n={next:j(([i,a])=>e(i,a),"next")}:n=e;const r=super.subscribe(n);return this._sortedObservers.push(n),this._sortedObservers.sort((i,a)=>{var o,s;return((o=i.priority)!=null?o:0)-((s=a.priority)!=null?s:0)}),r.add(()=>this._sortedObservers=this._sortedObservers.filter(i=>i!==n)),r}clearObservers(){this._sortedObservers.forEach(e=>{var n;return(n=e.complete)==null?void 0:n.call(e)}),this._sortedObservers.length=0}emitEvent(e){var n;if(!this.closed){const r=new jZe;r.lastReturnValue=e;for(const i of this._sortedObservers){const a=(n=i.next)==null?void 0:n.call(i,[e,r]);if(r.lastReturnValue=a,r.skipNextObservers)return{handled:!0,lastReturnValue:r.lastReturnValue,stopPropagation:r.isStopPropagation}}return{handled:this._sortedObservers.length>0,lastReturnValue:r.lastReturnValue,stopPropagation:r.isStopPropagation}}throw new Error("[EventSubject]: cannot emit event on a closed subject.")}};j(Xde,"EventSubject");let si=Xde;function vg(t){return new On(e=>{const n=t.subscribeEvent(r=>{e.next(r)});return()=>n.unsubscribe()})}j(vg,"fromEventSubject");const J0=er("core.resource-manager.service");var Vt=(t=>(t[t.Starting=0]="Starting",t[t.Ready=1]="Ready",t[t.Rendered=2]="Rendered",t[t.Steady=3]="Steady",t))(Vt||{});const $Ze={0:"Starting",1:"Ready",2:"Rendered",3:"Steady"},vE=new Map;function yn(t,e){return j(function(n){e2(t,e)},"decorator2")}j(yn,"OnLifecycle");function e2(t,e){vE.has(t)||vE.set(t,[]),vE.get(t).push(e)}j(e2,"runOnLifecycle");const NH={[Ud.Editor]:"Editor",[Ud.Owner]:"Owner",[Ud.Reader]:"Reader",[Ud.UNRECOGNIZED]:"UNRECOGNIZED"},kH=j(t=>t?{userID:`${NH[t]}_${Ie.generateRandomId(8)}`,name:NH[t],avatar:""}:{userID:"",name:"",avatar:"",anonymous:!0,canBindAnonymous:!1},"createDefaultUser"),WZe=j((t,e)=>t.startsWith(NH[e]),"isDevRole");var zZe=Object.defineProperty,qZe=Object.getOwnPropertyDescriptor,YZe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?qZe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&zZe(e,n,i),i},"__decorateClass$7"),EO;let vs=(EO=class{constructor(){Xe(this,"_model",new Map),Xe(this,"_userChange$",new Zt),Xe(this,"userChange$",this._userChange$.asObservable()),Xe(this,"_currentUser$",new Pn(kH())),Xe(this,"currentUser$",this._currentUser$.asObservable())}getCurrentUser(){return this._currentUser$.getValue()}setCurrentUser(t){this.addUser(t),this._currentUser$.next(t)}addUser(t){this._model.set(t.userID,t),this._userChange$.next({type:"add",user:t})}getUser(t,e){const n=this._model.get(t);if(n)return n;e&&e()}delete(t){const e=this.getUser(t);this._model.delete(t),e&&this._userChange$.next({type:"delete",user:e})}clear(){this._model.clear(),this._userChange$.next({type:"clear"})}list(){return Array.from(this._model.values())}},j(EO,"UserManagerService"),EO);vs=YZe([yn(Vt.Starting,vs)],vs);var XZe=Object.defineProperty,GZe=Object.getOwnPropertyDescriptor,QZe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?GZe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&XZe(e,n,i),i},"__decorateClass$6"),qie=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$6"),RO;let FH=(RO=class{constructor(t,e){Xe(this,"_permissionMap",new Map([])),this._resourceManagerService=t,this._userManagerService=e,this._initSnapshot(),this._initDefaultUser()}_initDefaultUser(){const t=this._userManagerService.getCurrentUser();t&&t.userID||this._userManagerService.setCurrentUser(kH(Ud.Owner))}_getRole(t){const e=this._userManagerService.getCurrentUser();return e?WZe(e.userID,t):!1}_initSnapshot(){this._resourceManagerService.registerPluginResource({toJson:j(t=>{const e=[...this._permissionMap.keys()].reduce((n,r)=>{const i=this._permissionMap.get(r);return n[r]=i,n},{});return JSON.stringify(e)},"toJson"),parseJson:j(t=>JSON.parse(t),"parseJson"),pluginName:"SHEET_AuthzIoMockService_PLUGIN",businesses:[le.UNIVER_SHEET,le.UNIVER_DOC,le.UNIVER_SLIDE],onLoad:j((t,e)=>{for(const n in e)this._permissionMap.set(n,e[n])},"onLoad"),onUnLoad:j(()=>{this._permissionMap.clear()},"onUnLoad")})}async create(t){return Vl(8)}async allowed(t){return Promise.resolve([])}async batchAllowed(t){return Promise.resolve([])}async list(t){const e=[];return t.objectIDs.forEach(n=>{const r=this._permissionMap.get(n);if(r){const i={objectID:n,unitID:t.unitID,objectType:r.objectType,name:r.name,shareOn:!1,shareRole:Ud.Owner,shareScope:-1,scope:{read:IH.AllCollaborator,edit:IH.AllCollaborator},creator:kH(Ud.Owner),strategies:[{action:6,role:1},{action:16,role:1},{action:17,role:1},{action:18,role:1},{action:19,role:1},{action:33,role:1},{action:34,role:1},{action:35,role:1},{action:36,role:1},{action:37,role:1},{action:38,role:1},{action:39,role:1},{action:40,role:1}],actions:t.actions.map(a=>({action:a,allowed:this._getRole(Ud.Owner)||this._getRole(Ud.Editor)}))};e.push(i)}}),e}async listCollaborators(){return[]}async listRoles(){return{roles:[],actions:[]}}async deleteCollaborator(){}async update(t){}async updateCollaborator(){}async createCollaborator(){}async putCollaborators(t){}},j(RO,"AuthzIoLocalService"),RO);FH=QZe([qie(0,J0),qie(1,se(vs))],FH);const D7=er("IAuthzIoIoService"),Za=er("univer.config-service"),Gde=class{constructor(){Xe(this,"_config",new Map)}getConfig(e){return this._config.get(e)}setConfig(e,n,r){var i;const{merge:a=!1}=r||{},o=(i=this._config.get(e))!=null?i:{};if(a){this._config.set(e,Ie.deepMerge(o,n));return}this._config.set(e,n)}deleteConfig(e){return this._config.delete(e)}};j(Gde,"ConfigService");let KZe=Gde;const kb="FOCUSING_UNIT",ms="FOCUSING_SHEET",K1="FOCUSING_DOC",Fb="FOCUSING_SLIDE",VH="FOCUSING_EDITOR_BUT_HIDDEN",ha="EDITOR_ACTIVATED",Um="FOCUSING_EDITOR_INPUT_FORMULA",of="FOCUSING_FX_BAR_EDITOR",Pu="FOCUSING_UNIVER_EDITOR",Dg="FOCUSING_EDITOR_INPUT_FORMULA",S4="FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE",I7="FOCUSING_COMMON_DRAWINGS",Yie="FORMULA_EDITOR_ACTIVATED",Qde=class extends et{constructor(){super(...arguments),Xe(this,"_error$",new Zt),Xe(this,"error$",this._error$.asObservable())}dispose(){this._error$.complete()}emit(e){this._error$.next({errorKey:e})}};j(Qde,"ErrorService");let zf=Qde;const ZZe="0.2.15";function Kde(t="",e=pf.ZH_CN,n=""){return{id:t,sheetOrder:[],name:n,appVersion:ZZe,locale:e,styles:{},sheets:{},resources:[]}}j(Kde,"getEmptySnapshot");const Zde=class{constructor(e={}){Xe(this,"_styles"),Xe(this,"_cacheMap",new Yg(1e5)),this._styles=e,this._generateCacheMap()}each(e){return Object.entries(this._styles).forEach(e),this}search(e,n){return this._cacheMap.has(n)?this._cacheMap.get(n):this._getExistingStyleId(e)||"-1"}get(e){return typeof e!="string"?e:(e=String(e),this._styles[e])}add(e,n){const r=Ie.generateRandomId(6);return this._styles[r]=e,this._cacheMap.set(n,r),r}setValue(e){if(e==null)return;const n=JSON.stringify(e),r=this.search(e,n);return r!=="-1"?r:this.add(e,n)}toJSON(){return this._styles}getStyleByCell(e){let n;e&&Ie.isObject(e.s)?n=e.s:n=(e==null?void 0:e.s)&&this.get(e.s);const r=e==null?void 0:e.interceptorStyle;return r?{...n,...r}:n}_generateCacheMap(){const{_styles:e,_cacheMap:n}=this;for(const r in e){const i=JSON.stringify(e[r]);n.set(i,r)}}_getExistingStyleId(e){const{_styles:n}=this;for(const r in n)if(Ie.diffValue(n[r],e))return r;return null}};j(Zde,"Styles");let JZe=Zde;const Jde=class{constructor(e,n){Xe(this,"_columnData",{}),this._config=e,this._columnData=n}getColumnData(){return this._columnData}getColVisible(e){const{_columnData:n}=this,r=n[e];return r?r.hd!==at.TRUE:!0}getHiddenCols(e=0,n=this.getSize()-1){const r=[];let i=!1,a=-1;for(let o=e;o<=n;o++){const s=this.getColVisible(o);i&&s?(i=!1,r.push({rangeType:it.COLUMN,startColumn:a,endColumn:o-1,startRow:0,endRow:0})):!i&&!s&&(i=!0,a=o)}return i&&r.push({startRow:0,endRow:0,startColumn:a,endColumn:n,rangeType:it.COLUMN}),r}getVisibleCols(e=0,n=this.getSize()-1){const r=[];let i=!1,a=-1;for(let o=e;o<=n;o++){const s=this.getColVisible(o);i&&!s?(i=!1,r.push({rangeType:it.COLUMN,startColumn:a,endColumn:o-1,startRow:0,endRow:0})):!i&&s&&(i=!0,a=o)}return i&&r.push({startRow:0,endRow:0,startColumn:a,endColumn:n,rangeType:it.COLUMN}),r}getColumnDatas(e,n){const r={};let i=0;for(let a=e;a{const r=n;typeof t[r]>"u"&&(t[r]=e[r])}),t}j(yG,"mergeWorksheetSnapshotWithDefault");const the=class extends et{constructor(e){super(),Xe(this,"_cellCache",{}),Xe(this,"_rowCache",{}),Xe(this,"_columnCache",{}),Xe(this,"_hasAll",!1),Xe(this,"_allIndex",-1),Xe(this,"_mergeData"),Xe(this,"_rangeMap",new Yg(5e4)),Xe(this,"_skeletonCache",new Yg(5e4)),this._init(e.concat())}_init(e){this._mergeData=e,this._createCache(e)}_clearCache(){this._cellCache={},this._rowCache={},this._columnCache={},this._hasAll=!1,this._allIndex=-1,this._rangeMap.clear(),this._skeletonCache.clear()}_createCache(e){let n=0;for(const r of e){const{rangeType:i}=r;i===it.ROW?this._createRowCache(r,n):i===it.COLUMN?this._createColumnCache(r,n):i===it.ALL?this._createCellAllCache(n):this._createCellCache(r,n),n++}}rebuild(e){this._clearCache(),this._init(e.concat())}_createRowCache(e,n){const{startRow:r,endRow:i}=e;for(let a=r;a<=i;a++){const o=`${a}`;this._rowCache[o]=n}}_createColumnCache(e,n){const{startColumn:r,endColumn:i}=e;for(let a=r;a<=i;a++){const o=`${a}`;this._columnCache[o]=n}}_createCellAllCache(e){this._hasAll=!0,this._allIndex=e}_createCellCache(e,n){for(let r=e.startRow;r<=e.endRow;r++)for(let i=e.startColumn;i<=e.endColumn;i++)this._cellCache[`${r}-${i}`]=n}add(e){this._mergeData.push(e),this._clearCache(),this._createCache(this._mergeData)}remove(e,n){const r=this._getMergeDataIndex(e,n);r!==-1&&(this._mergeData.splice(r,1),this._clearCache(),this._createCache(this._mergeData))}getMergedCell(e,n){const r=this._getMergeDataIndex(e,n);return r!==-1?this._mergeData[r]:null}isRowContainsMergedCell(e){return this._hasAll||!Ie.isEmptyObject(this._columnCache)?!0:this._mergeData.some(n=>n.startRow<=e&&e<=n.endRow)}isColumnContainsMergedCell(e){return this._hasAll||!Ie.isEmptyObject(this._rowCache)?!0:this._mergeData.some(n=>n.startColumn<=e&&e<=n.endColumn)}getMergedCellRange(e,n,r,i){const a=[],o=`${e}-${n}-${r}-${i}`;if(this._rangeMap.has(o))return this._getRangeFromCache(o);let s=0;const l=[];for(const u of this._mergeData||[])ft.intersects(u,{startRow:e,endRow:r,startColumn:n,endColumn:i})&&(a.push({...u}),l.push(s),s++);return this._rangeMap.set(o,l),a}getMergedCellRangeForSkeleton(e,n,r,i){const a=[],o=this._mergeData,s=`${e}-${n}-${r}-${i}`;if(this._skeletonCache.has(s))return this._getSkeletonRangeFromCache(s);const l=[];for(let u=0;u=c&&m<=d&&p>=h&&p<=f){a.push({startRow:c,endRow:d,startColumn:h,endColumn:f}),l.push(u),g=!0;break}if(g)break}}return this._skeletonCache.set(s,l),a}_getRangeFromCache(e){const n=this._rangeMap.get(e)||[],r=[];for(const i of n)r.push({...this._mergeData[i]});return r}_getSkeletonRangeFromCache(e){const n=this._skeletonCache.get(e)||[],r=[];for(const i of n)r.push({...this._mergeData[i]});return r}_getMergeDataIndex(e,n){if(this._hasAll)return this._allIndex;const r=`${e}`,i=`${n}`;if(this._rowCache[r]!==void 0)return this._rowCache[r];if(this._columnCache[i]!==void 0)return this._columnCache[i];const a=`${e}-${n}`;return this._cellCache[a]!==void 0?this._cellCache[a]:-1}getMergeDataSnapshot(){return this._mergeData}dispose(){this._clearCache(),this._mergeData=[]}};j(the,"SpanModel");let oJe=the;const nhe=class extends et{constructor(e){super(),Xe(this,"_cellContentInterceptor",null),Xe(this,"_rowFilteredInterceptor",null),this.getRawCell=e}dispose(){super.dispose(),this._cellContentInterceptor=null,this._rowFilteredInterceptor=null}getCell(e,n){return this._cellContentInterceptor?this._cellContentInterceptor.getCell(e,n):this.getRawCell(e,n)}getRowFiltered(e){var n,r;return(r=(n=this._rowFilteredInterceptor)==null?void 0:n.getRowFiltered(e))!=null?r:!1}registerCellContentInterceptor(e){if(this._cellContentInterceptor)throw new Error("[SheetViewModel]: Interceptor already registered.");return this._cellContentInterceptor=e,$t(()=>this._cellContentInterceptor=null)}registerRowFilteredInterceptor(e){if(this._rowFilteredInterceptor)throw new Error("[SheetViewModel]: Interceptor already registered.");return this._rowFilteredInterceptor=e,$t(()=>this._rowFilteredInterceptor=null)}};j(nhe,"SheetViewModel");let sJe=nhe;const rhe=class ihe{constructor(e,n,r){Xe(this,"_sheetId"),Xe(this,"_snapshot"),Xe(this,"_cellData"),Xe(this,"_rowManager"),Xe(this,"_columnManager"),Xe(this,"_viewModel"),Xe(this,"_spanModel");var i;this.unitId=e,this._styles=r,this._snapshot=yG(n);const{columnData:a,rowData:o,cellData:s}=this._snapshot;this._sheetId=(i=this._snapshot.id)!=null?i:Ie.generateRandomId(6),this._cellData=new Ct(s),this._viewModel=new sJe((l,u)=>this.getCellRaw(l,u)),this._rowManager=new tJe(this._snapshot,this._viewModel,o),this._columnManager=new eJe(this._snapshot,a),this._spanModel=new oJe(this._snapshot.mergeData)}__interceptViewModel(e){e(this._viewModel)}getSnapshot(){return this._snapshot}setMergeData(e){this._snapshot.mergeData=e,this.getSpanModel().rebuild(e)}getSpanModel(){return this._spanModel}getCellMatrix(){return this._cellData}getCellMatrixPrintRange(){const e=this.getCellMatrix(),n=this.getMergeData();let r=-1,i=-1,a=-1,o=-1,s=!1,l=!1;return e.forEach((u,c)=>{Object.keys(c).forEach(d=>{const h=+d,f=e.getValue(u,h),m=f!=null&&f.s?this._styles.get(f.s):null,g=(m==null?void 0:m.bd)&&(m.bd.b||m.bd.l||m.bd.r||m.bd.t||m.bd.bc_tr||m.bd.bl_tr||m.bd.ml_tr||m.bd.tl_bc||m.bd.tl_br||m.bd.tl_mr);(f&&(f.v||f.p)||m!=null&&m.bg||g)&&(s?r=Math.min(r,u):(r=u,s=!0),i=Math.max(i,u),l?a=Math.min(a,h):(l=!0,a=h),o=Math.max(o,h))})}),n.forEach(u=>{s?r=Math.min(r,u.startRow):(r=u.startRow,s=!0),i=Math.max(i,u.endRow),l?a=Math.min(a,u.startColumn):(a=u.startColumn,s=!0),o=Math.max(o,u.endColumn)}),!s||!l?null:{startColumn:a,startRow:r,endColumn:o,endRow:i}}getRowManager(){return this._rowManager}getUnitId(){return this.unitId}getSheetId(){return this._sheetId}getColumnManager(){return this._columnManager}getName(){return this._snapshot.name}clone(){const{_snapshot:e}=this,n=Ie.deepClone(e);return new ihe(this.unitId,n,this._styles)}getMergeData(){return this._spanModel.getMergeDataSnapshot()}getMergedCell(e,n){return this._spanModel.getMergedCell(e,n)}getMergedCellRange(e,n,r,i){return this._spanModel.getMergedCellRange(e,n,r,i)}isRowContainsMergedCell(e){return this._spanModel.isRowContainsMergedCell(e)}isColumnContainsMergedCell(e){return this._spanModel.isColumnContainsMergedCell(e)}getCellInfoInMergeData(e,n){const r=this.getMergedCell(e,n);let i=!1,a=!1,o=e,s=n,l=e,u=n;if(r){const{startRow:c,endRow:d,startColumn:h,endColumn:f}=r;e===c&&n===h?(o=d,s=f,l=c,u=h,a=!0):e>=c&&e<=d&&n>=h&&n<=f&&(o=d,s=f,l=c,u=h,i=!0)}return{actualRow:e,actualColumn:n,isMergedMainCell:a,isMerged:i,endRow:o,endColumn:s,startRow:l,startColumn:u}}getCell(e,n){return e<0||n<0?null:this._viewModel.getCell(e,n)}getCellRaw(e,n){return this.getCellMatrix().getValue(e,n)}getRowFiltered(e){return this._viewModel.getRowFiltered(e)}getMatrixWithMergedCells(e,n,r,i,a=!1){const o=this.getCellMatrix(),s=this._spanModel.getMergedCellRange(e,n,r,i),l=new Ct;return nw(e,r,n,i).forEach((u,c)=>{const d=a?this.getCellRaw(u,c):this.getCell(u,c);d&&l.setValue(u,c,d)}),s.forEach(u=>{const{startColumn:c,startRow:d,endColumn:h,endRow:f}=u;nw(d,f,c,h).forEach((m,g)=>{m===d&&g===c&&l.setValue(m,g,{...o.getValue(m,g),rowSpan:f-d+1,colSpan:h-c+1}),(m!==d||g!==c)&&l.realDeleteValue(m,g)})}),l}getRange(e,n,r,i){return typeof e=="object"?new Gn(this,e,{getStyles:j(()=>this._styles,"getStyles")}):new Gn(this,{startRow:e,startColumn:n,endColumn:i||n,endRow:r||e},{getStyles:j(()=>this._styles,"getStyles")})}getScrollLeftTopFromSnapshot(){return{scrollLeft:this._snapshot.scrollLeft,scrollTop:this._snapshot.scrollTop}}getZoomRatio(){return this._snapshot.zoomRatio||1}getConfig(){return this._snapshot}getFreeze(){return this._snapshot.freeze}getMaxColumns(){const{_snapshot:e}=this,{columnCount:n}=e;return n}getMaxRows(){const{_snapshot:e}=this,{rowCount:n}=e;return n}getRowCount(){return this._snapshot.rowCount}setRowCount(e){this._snapshot.rowCount=e}getColumnCount(){return this._snapshot.columnCount}setColumnCount(e){this._snapshot.columnCount=e}isSheetHidden(){return this._snapshot.hidden}hasHiddenGridlines(){const{_snapshot:e}=this,{showGridlines:n}=e;return n===0}getTabColor(){const{_snapshot:e}=this,{tabColor:n}=e;return n}getColumnWidth(e){return this.getColumnManager().getColumnWidth(e)}getRowHeight(e){return this._viewModel.getRowFiltered(e)?0:this.getRowManager().getRowHeight(e)}isRowFiltered(e){return this._viewModel.getRowFiltered(e)}getRowVisible(e){return!this.isRowFiltered(e)&&this.getRowRawVisible(e)}getRowRawVisible(e){return this.getRowManager().getRowRawVisible(e)}getHiddenRows(e,n){const r=this.getMaxColumns()-1,i=this._rowManager.getHiddenRows(e,n);return i.forEach(a=>a.endColumn=r),i}getColVisible(e){return this._columnManager.getColVisible(e)}getHiddenCols(e,n){const r=this.getMaxRows()-1,i=this._columnManager.getHiddenCols(e,n);return i.forEach(a=>a.endRow=r),i}getVisibleRows(){const e=this.getRowCount();return this._rowManager.getVisibleRows(0,e-1)}getVisibleCols(){const e=this.getColumnCount();return this._columnManager.getVisibleCols(0,e-1)}isRightToLeft(){const{_snapshot:e}=this,{rightToLeft:n}=e;return n}getLastRowWithContent(){return this._cellData.getLength()-1}getLastColumnWithContent(){return this._cellData.getRange().endColumn}cellHasValue(e){return e&&(e.v!==void 0||e.f!==void 0||e.p!==void 0)}iterateByRow(e,n=!0){const{startRow:r,startColumn:i,endRow:a,endColumn:o}=e,s=this;return{[Symbol.iterator]:()=>{let l=r,u=i;return{next(){for(;;){if(u>o&&(l+=1,u=i),l>a)return{done:!0,value:void 0};const c=s.getCell(l,u),d=!c,h=s.getMergedCell(l,u);if(h){if(l!==h.startRow||u!==h.startColumn){u=h.endColumn+1;continue}if(d&&n){u=h.endColumn+1;continue}const f={row:l,col:u,value:c};return f.colSpan=h.endColumn-h.startColumn+1,f.rowSpan=h.endRow-h.startRow+1,u=h.endColumn+1,{done:!1,value:f}}if(d&&n)u+=1;else{const f={row:l,col:u,value:c};return u+=1,{done:!1,value:f}}}}}}}}iterateByColumn(e,n=!0,r=!0){const{startRow:i,startColumn:a,endRow:o,endColumn:s}=e,l=this;return{[Symbol.iterator]:()=>{let u=i,c=a;return{next(){for(;;){if(u>o&&(c+=1,u=i),c>s)return{done:!0,value:void 0};const d=l.getMergedCell(u,c);if(d){const f=u!==d.startRow,m=f||c!==d.startColumn;if(r&&m||!r&&f){u=d.endRow+1;continue}const g=l.getCell(d.startRow,d.startColumn);if(!g&&n){u=d.endRow+1;continue}const p={row:u,col:d.startColumn,value:g};return p.colSpan=d.endColumn-d.startColumn+1,p.rowSpan=d.endRow-d.startRow+1,u=d.endRow+1,{done:!1,value:p}}const h=l.getCell(u,c);if(!h&&n)u+=1;else{const f={row:u,col:c,value:h};return u+=1,{done:!1,value:f}}}}}}}}};j(rhe,"Worksheet");let Gie=rhe;function rM(t){var e,n;if(!t)return"";const r=(n=(e=t.p)==null?void 0:e.body)==null?void 0:n.dataStream;if(r)return Aa.transform.getPlainText(r);const i=t.v;return typeof i=="string"?t.t===rr.BOOLEAN?i.toUpperCase():i.replace(/[\r\n]/g,""):typeof i=="number"?t.t===rr.BOOLEAN?i?"TRUE":"FALSE":i.toString():typeof i=="boolean"?i?"TRUE":"FALSE":""}j(rM,"extractPureTextFromCell");function ahe(t){if(t===null)return"";if(t!=null&&t.p){const e=t==null?void 0:t.p.body;if(e==null)return"";const n=e.dataStream;return Aa.transform.getPlainText(n)}return t==null?void 0:t.v}j(ahe,"getOriginCellValue");var lJe=Object.defineProperty,uJe=Object.getOwnPropertyDescriptor,cJe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?uJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&lJe(e,n,i),i},"__decorateClass$5"),dJe=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$5");function hJe(t,e){return`${t.getUnitId()}|${e.getSheetId()}`}j(hJe,"getWorksheetUID");var AO;let b4=(AO=class extends QX{constructor(t={},e){super(),Xe(this,"type",le.UNIVER_SHEET),Xe(this,"_sheetCreated$",new Zt),Xe(this,"sheetCreated$",this._sheetCreated$.asObservable()),Xe(this,"_sheetDisposed$",new Zt),Xe(this,"sheetDisposed$",this._sheetDisposed$.asObservable()),Xe(this,"_activeSheet$",new Pn(null)),Xe(this,"activeSheet$",this._activeSheet$.asObservable()),Xe(this,"_worksheets"),Xe(this,"_styles"),Xe(this,"_snapshot"),Xe(this,"_unitId"),Xe(this,"_count"),Xe(this,"_name$"),Xe(this,"name$"),this._logService=e;const n=Kde();Ie.isEmptyObject(t)?this._snapshot=n:this._snapshot=Ie.commonExtend(n,t);const{styles:r}=this._snapshot;(this._snapshot.id==null||this._snapshot.id.length===0)&&(this._snapshot.id=Ie.generateRandomId(6)),this._unitId=this._snapshot.id,this._styles=new JZe(r),this._count=1,this._worksheets=new Map,this._name$=new Pn(t.name||""),this.name$=this._name$.asObservable(),this._parseWorksheetSnapshots()}get _activeSheet(){return this._activeSheet$.getValue()}get name(){return this._name$.getValue()}static isIRangeType(t){return typeof t=="string"||"startRow"in t||"row"in t}dispose(){super.dispose(),this._sheetCreated$.complete(),this._sheetDisposed$.complete(),this._activeSheet$.complete(),this._name$.complete()}save(){return Ie.deepClone(this._snapshot)}getSnapshot(){return this._snapshot}getName(){return this._snapshot.name}setName(t){this._name$.next(t),this._snapshot.name=t}getUnitId(){return this._unitId}getRev(){var t;return(t=this._snapshot.rev)!=null?t:1}incrementRev(){this._snapshot.rev=this.getRev()+1}setRev(t){this._snapshot.rev=t}addWorksheet(t,e,n){const{sheets:r,sheetOrder:i}=this._snapshot;if(r[t])return!1;r[t]=n,i.splice(e,0,t);const a=new Gie(this._unitId,n,this._styles);return this._worksheets.set(t,a),this._sheetCreated$.next(a),!0}getSheetOrders(){return this._snapshot.sheetOrder}getWorksheets(){return this._worksheets}getActiveSpreadsheet(){return this}getStyles(){return this._styles}getConfig(){return this._snapshot}getIndexBySheetId(t){const{sheetOrder:e}=this._snapshot;return e.findIndex(n=>n===t)}getActiveSheet(t){if(!this._activeSheet&&typeof t>"u")throw new Error(`[Workbook]: no active Worksheet on Workbook ${this._unitId}!`);return this._activeSheet}ensureActiveSheet(){const t=this._activeSheet;if(t)return t;const e=this._snapshot.sheetOrder;for(let r=0,i=e.length;rthis._worksheets.get(e)===this._activeSheet)}getSheetSize(){return this._snapshot.sheetOrder.length}getSheets(){const{sheetOrder:t}=this._snapshot;return t.map(e=>this._worksheets.get(e))}getSheetsName(){const{sheetOrder:t}=this._snapshot,e=[];return t.forEach(n=>{const r=this._worksheets.get(n);r&&e.push(r.getName())}),e}getSheetIndex(t){const{sheetOrder:e}=this._snapshot;return e.findIndex(n=>t.getSheetId()===n)}getSheetBySheetName(t){const{sheetOrder:e}=this._snapshot,n=e.find(r=>this._worksheets.get(r).getName()===t);return this._worksheets.get(n)}getSheetBySheetId(t){return this._worksheets.get(t)}getSheetByIndex(t){const{sheetOrder:e}=this._snapshot;return this._worksheets.get(e[t])}getHiddenWorksheets(){return this.getSheets().filter(t=>t.getConfig().hidden===at.TRUE).map(t=>t.getConfig().id)}getUnhiddenWorksheets(){return this.getSheets().filter(t=>t.getConfig().hidden!==at.TRUE).map(t=>t.getConfig().id)}load(t){this._snapshot=t}checkSheetName(t){return this.getSheetsName().includes(t)}uniqueSheetName(t="Sheet1"){let e=t;for(;this.checkSheetName(e);)e=t+this._count,this._count++;return e}generateNewSheetName(t){let e=t+this._count;for(;this.checkSheetName(e);)e=t+this._count,this._count++;return e}_parseWorksheetSnapshots(){const{_snapshot:t,_worksheets:e}=this,{sheets:n,sheetOrder:r}=t;if(Ie.isEmptyObject(n)){const i=Ie.generateRandomId();n[i]={id:i}}for(const i in n){const a=n[i],{name:o}=a;a.name=this.uniqueSheetName(o),a.name!==o&&this._logService.debug("[Workbook]",`The worksheet name ${o} is duplicated, we changed it to ${a.name}. Please fix the problem in your snapshot.`);const s=new Gie(this._unitId,a,this._styles);e.set(i,s),r.includes(i)||r.push(i)}this.ensureActiveSheet()}},j(AO,"Workbook"),AO);b4=cJe([dJe(1,Ra)],b4);const ohe=class extends QX{constructor(e){var n;super(),Xe(this,"type",le.UNIVER_SLIDE),Xe(this,"_activePage$",new Pn(null)),Xe(this,"activePage$",this._activePage$.asObservable()),Xe(this,"_name$"),Xe(this,"name$"),Xe(this,"_snapshot"),Xe(this,"_unitId"),this._snapshot={...MZe,...e},this._unitId=(n=this._snapshot.id)!=null?n:Ie.generateRandomId(6),this._name$=new Pn(this._snapshot.title),this.name$=this._name$.asObservable()}get _activePage(){var e,n;const r=this._activePage$.getValue();if(!r){const i=(e=this.getPageOrder())==null?void 0:e[0];return i?(n=this.getPages())==null?void 0:n[i]:null}return r}setName(e){var n;this._snapshot.title=e,this._name$.next(e),this._unitId=(n=this._snapshot.id)!=null?n:Vl(6)}getRev(){return 0}incrementRev(){}setRev(e){}getSnapshot(){return this._snapshot}getUnitId(){return this._unitId}getPages(){var e;return(e=this._snapshot.body)==null?void 0:e.pages}getPageOrder(){var e;return(e=this._snapshot.body)==null?void 0:e.pageOrder}getPage(e){const n=this.getPages();return n==null?void 0:n[e]}getElementsByPage(e){var n;return(n=this.getPage(e))==null?void 0:n.pageElements}getElement(e,n){var r;return(r=this.getElementsByPage(e))==null?void 0:r[n]}getPageSize(){return this._snapshot.pageSize}getBlankPage(){const e=Vl(6);return{id:e,pageType:Ude.SLIDE,zIndex:10,title:e,description:"",pageBackgroundFill:{rgb:"rgb(255,255,255)"},pageElements:{}}}setActivePage(e){this._activePage$.next(e)}getActivePage(){return this._activePage}updatePage(e,n){this._snapshot.body&&(this._snapshot.body.pages[e]=n)}appendPage(e){var n;if(!this._snapshot.body)return;this._snapshot.body.pages[e.id]=e;const r=this._activePage,i=this._snapshot.body.pageOrder.indexOf((n=r==null?void 0:r.id)!=null?n:"");this._snapshot.body.pageOrder.splice(i+1,0,e.id)}};j(ohe,"SlideDataModel");let EG=ohe;var fJe=Object.defineProperty,mJe=Object.getOwnPropertyDescriptor,gJe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?mJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&fJe(e,n,i),i},"__decorateClass$4"),Qie=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$4");const Ce=er("univer.current");var wO;let UH=(wO=class extends et{constructor(t,e){super(),Xe(this,"_unitsByType",new Map),Xe(this,"_createHandler"),Xe(this,"_ctorByType",new Map),Xe(this,"_currentUnits",new Map),Xe(this,"_currentUnits$",new Pn(this._currentUnits)),Xe(this,"currentUnits$",this._currentUnits$.asObservable()),Xe(this,"_unitAdded$",new Zt),Xe(this,"unitAdded$",this._unitAdded$.asObservable()),Xe(this,"_unitDisposed$",new Zt),Xe(this,"unitDisposed$",this._unitDisposed$.asObservable()),Xe(this,"_focused$",new Pn(null)),Xe(this,"focused$",this._focused$.asObservable()),this._injector=t,this._contextService=e}dispose(){super.dispose(),this._focused$.complete()}__setCreateHandler(t){this._createHandler=t}createUnit(t,e,n){return this._createHandler(t,e,this._ctorByType.get(t),n)}registerCtorForType(t,e){return this._ctorByType.set(t,e),{dispose:j(()=>{this._ctorByType.delete(t)},"dispose")}}getCurrentTypeOfUnit$(t){return this.currentUnits$.pipe(pr(e=>{var n;return(n=e.get(t))!=null?n:null}),Hl())}getCurrentUnitForType(t){return this._currentUnits.get(t)}setCurrentUnitForType(t){const e=this._getUnitById(t);if(!e)throw new Error(`[UniverInstanceService]: no document with unitId ${t}!`);this._currentUnits.set(e[1],e[0]),this._currentUnits$.next(this._currentUnits)}getTypeOfUnitAdded$(t){return this._unitAdded$.pipe(mo(e=>e.type===t))}__addUnit(t,e){var n;const r=t.type;this._unitsByType.has(r)||this._unitsByType.set(r,[]);const i=this._unitsByType.get(r),a=t.getUnitId();if(i.findIndex(o=>o.getUnitId()===a)!==-1)throw new Error(`[UniverInstanceService]: cannot create a unit with the same unit id: ${a}.`);i.push(t),this._unitAdded$.next(t),((n=e==null?void 0:e.makeCurrent)==null||n)&&this.setCurrentUnitForType(t.getUnitId())}getTypeOfUnitDisposed$(t){return this.unitDisposed$.pipe(mo(e=>e.type===t))}getUnit(t,e){var n;const r=(n=this._getUnitById(t))==null?void 0:n[0];return e&&(r==null?void 0:r.type)!==e?null:r}getCurrentUniverDocInstance(){return this.getCurrentUnitForType(le.UNIVER_DOC)}getUniverDocInstance(t){return this.getUnit(t,le.UNIVER_DOC)}getUniverSheetInstance(t){return this.getUnit(t,le.UNIVER_SHEET)}getAllUnitsForType(t){var e;return(e=this._unitsByType.get(t))!=null?e:[]}changeDoc(t,e){const n=this.getAllUnitsForType(le.UNIVER_DOC),r=n.find(i=>i.getUnitId()===t);if(r!=null){const i=n.indexOf(r);n.splice(i,1)}this.__addUnit(e)}get focused(){var t;const e=this._focused$.getValue();return e?(t=this._getUnitById(e))==null?void 0:t[0]:null}focusUnit(t){this._focused$.next(t),this.focused instanceof b4?(this._contextService.setContextValue(kb,!0),this._contextService.setContextValue(K1,!1),this._contextService.setContextValue(ms,!0),this._contextService.setContextValue(Fb,!1),this.setCurrentUnitForType(t)):this.focused instanceof sh?(this._contextService.setContextValue(kb,!0),this._contextService.setContextValue(K1,!0),this._contextService.setContextValue(ms,!1),this._contextService.setContextValue(Fb,!1),this.setCurrentUnitForType(t)):this.focused instanceof EG?(this._contextService.setContextValue(kb,!0),this._contextService.setContextValue(K1,!1),this._contextService.setContextValue(ms,!1),this._contextService.setContextValue(Fb,!0),this.setCurrentUnitForType(t)):(this._contextService.setContextValue(kb,!1),this._contextService.setContextValue(K1,!1),this._contextService.setContextValue(ms,!1),this._contextService.setContextValue(Fb,!1))}getFocusedUnit(){return this.focused}getUnitType(t){const e=this._getUnitById(t);return e?e[1]:le.UNRECOGNIZED}disposeUnit(t){const e=this._getUnitById(t);if(!e)return!1;const[n,r]=e,i=this._unitsByType.get(r),a=i.indexOf(n);return i.splice(a,1),this._tryRemoveCurrentUnitForType(t,r),this._tryBlurUnitOnRemoval(t),this._unitDisposed$.next(n),!0}_tryRemoveCurrentUnitForType(t,e){const n=this.getCurrentUnitForType(e);(n==null?void 0:n.getUnitId())===t&&(this._currentUnits.set(e,null),this._currentUnits$.next(this._currentUnits))}_tryBlurUnitOnRemoval(t){var e;((e=this.focused)==null?void 0:e.getUnitId())===t&&this._focused$.next(null)}_getUnitById(t){for(const[e,n]of this._unitsByType){const r=n.find(i=>i.getUnitId()===t);if(r)return[r,e]}}},j(wO,"UniverInstanceService"),wO);UH=gJe([Qie(0,se(Wn)),Qie(1,ui)],UH);var pJe=Object.defineProperty,vJe=Object.getOwnPropertyDescriptor,she=j((t,e,n,r)=>{for(var i=r>1?void 0:r?vJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&pJe(e,n,i),i},"__decorateClass$3"),lhe=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$3"),DO;let b0=(DO=class extends et{constructor(t){super(),Xe(this,"_lifecycle$",new Pn(Vt.Starting)),Xe(this,"lifecycle$",this._lifecycle$.asObservable()),Xe(this,"_lock",!1),this._logService=t,this._reportProgress(Vt.Starting)}get stage(){return this._lifecycle$.getValue()}set stage(t){if(this._lock)throw new Error("[LifecycleService]: cannot set new stage when related logic is all handled!");if(tt===Vt.Steady))}_reportProgress(t){this._logService.debug("[LifecycleService]",`lifecycle progressed to "${$Ze[t]}".`)}},j(DO,"LifecycleService"),DO);b0=she([lhe(0,Ra)],b0);var IO;let cw=(IO=class extends et{constructor(t){super(),Xe(this,"_seenTokens",new Set),this._injector=t}initModulesOnStage(t){var e;(e=vE.get(t))==null||e.forEach(n=>{this._injector.has(n)&&!this._seenTokens.has(n)&&(this._injector.get(n),this._seenTokens.add(n))})}},j(IO,"LifecycleInitializerService"),IO);cw=she([lhe(0,se(Wn))],cw);function RG(t){switch(t){case Vt.Starting:return Hr(Vt.Starting);case Vt.Ready:return Hr(Vt.Starting,Vt.Ready);case Vt.Rendered:return Hr(Vt.Starting,Vt.Ready,Vt.Rendered);default:return Hr(Vt.Starting,Vt.Ready,Vt.Rendered,Vt.Steady)}}j(RG,"getLifecycleStagesAndBefore");const iM=er("ILocalStorageService"),uhe=class extends et{constructor(){super(),Xe(this,"_currentLocale$",new Pn(pf.ZH_CN)),Xe(this,"currentLocale$",this._currentLocale$.asObservable()),Xe(this,"_locales",null),Xe(this,"localeChanged$",new Zt),Xe(this,"t",j((e,...n)=>{if(!this._locales)throw new Error("[LocaleService]: Locale not initialized");const r=e.split("."),i=this.resolveKeyPath(this._locales[this._currentLocale],r);if(typeof i=="string"){let a=i;return n.forEach((o,s)=>{a=a.replace(`{${s}}`,o)}),a}else return e},"t")),this.disposeWithMe($t(()=>this.localeChanged$.complete()))}get _currentLocale(){return this._currentLocale$.value}load(e){var n;this._locales=Ie.deepMerge((n=this._locales)!=null?n:{},e)}setLocale(e){this._currentLocale$.next(e),this.localeChanged$.next()}getLocales(){var e;return(e=this._locales)==null?void 0:e[this._currentLocale]}getCurrentLocale(){return this._currentLocale}resolveKeyPath(e,n){const r=n.shift();if(r&&e&&r in e){const i=e[r];return n.length>0&&(typeof i=="object"||Array.isArray(i))?this.resolveKeyPath(i,n):i}return null}};j(uhe,"LocaleService");let sn=uhe;var mi=(t=>(t.INIT="init",t.FETCHING="fetching",t.DONE="done",t))(mi||{});const Qi=er("univer.permission-service");e2(Vt.Starting,Qi);const che=class extends et{constructor(){super(...arguments),Xe(this,"_permissionPointMap",new Map),Xe(this,"_permissionPointUpdate$",new Zt),Xe(this,"permissionPointUpdate$",this._permissionPointUpdate$.asObservable())}deletePermissionPoint(e){const n=this._permissionPointMap.get(e);n&&(n.complete(),this._permissionPointMap.delete(e))}addPermissionPoint(e){const n=e instanceof Pn,r=n?e.getValue():e;if(!r.id)return!1;if(this._permissionPointMap.get(r.id))throw new Error(`${r.id} PermissionPoint already exists`);return this._permissionPointMap.set(r.id,n?e:new Pn(r)),this._permissionPointUpdate$.next(r),!0}updatePermissionPoint(e,n){const r=this._permissionPointMap.get(e);if(!r)return;const i=r.getValue();i.value=n,i.status=mi.DONE,r.next(i),this._permissionPointUpdate$.next(i)}clearPermissionMap(){this._permissionPointMap.clear()}getPermissionPoint(e){const n=this._permissionPointMap.get(e);if(n)return n.getValue()}getPermissionPoint$(e){const n=this._permissionPointMap.get(e);if(n)return n}composePermission$(e){const n=e.map(r=>{var i;const a=(i=this._permissionPointMap)==null?void 0:i.get(r);if(!a)throw new Error(`[PermissionService]: ${r} permissionPoint does not exist!`);return a.asObservable()});return Sa(n).pipe(pr(r=>r))}composePermission(e){return e.map(n=>{var r;const i=(r=this._permissionPointMap)==null?void 0:r.get(n);if(!i)throw new Error(`[PermissionService]: ${n} permissionPoint does not exist!`);return i.getValue()})}getAllPermissionPoint(){const e=new Map;return this._permissionPointMap.forEach((n,r)=>{e.set(r,n)}),e}};j(che,"PermissionService");let _Je=che;const dhe=Symbol("DependentOn"),_E=class extends et{onStarting(e){}onReady(){}onRendered(){}onSteady(){}getUniverInstanceType(){return this.constructor.type}getPluginName(){return this.constructor.pluginName}};j(_E,"Plugin"),Xe(_E,"pluginName"),Xe(_E,"type",le.UNIVER_UNKNOWN);let Cs=_E;const hhe=class{constructor(){Xe(this,"_plugins",[])}addPlugin(e){this._plugins.push(e)}removePlugins(){const e=this._plugins.slice();return this._plugins.length=0,e}forEachPlugin(e){this._plugins.forEach(e)}};j(hhe,"PluginStore");let CJe=hhe;const fhe=class{constructor(){Xe(this,"_pluginsRegistered",[])}registerPlugin(e,n){this._pluginsRegistered.push({plugin:e,options:n})}getRegisterPlugins(){return this._pluginsRegistered.slice()}removePlugins(){this._pluginsRegistered=[]}};j(fhe,"PluginRegistry");let SJe=fhe;var bJe=Object.defineProperty,yJe=Object.getOwnPropertyDescriptor,mhe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?yJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&bJe(e,n,i),i},"__decorateClass$2"),D5=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$2");const EJe=4;function yd(...t){return function(e){e[dhe]=t}}j(yd,"DependentOn");var PO;let dw=(PO=class{constructor(t){Xe(this,"_pluginHolderForUniver"),Xe(this,"_pluginHoldersForTypes",new Map),Xe(this,"_seenPlugins",new Set),Xe(this,"_flushTimer"),this._injector=t,this._pluginHolderForUniver=this._injector.createInstance(hw,this._checkPluginSeen.bind(this),this._immediateInitPlugin.bind(this)),this._pluginHolderForUniver.start()}dispose(){this._clearFlushTimer();for(const t of this._pluginHoldersForTypes.values())t.dispose();this._pluginHolderForUniver.dispose()}registerPlugin(t,e){this._assertPluginValid(t),this._scheduleInitPlugin();const{type:n}=t;n===le.UNIVER_UNKNOWN?(this._pluginHolderForUniver.register(t,e),this._pluginHolderForUniver.flush()):this._ensurePluginHolderForType(n).register(t,e)}startPluginForType(t){this._ensurePluginHolderForType(t).start()}_ensurePluginHolderForType(t){if(!this._pluginHoldersForTypes.has(t)){const e=this._injector.createInstance(hw,this._checkPluginSeen.bind(this),this._immediateInitPlugin.bind(this));return this._pluginHoldersForTypes.set(t,e),e}return this._pluginHoldersForTypes.get(t)}_immediateInitPlugin(t){this._seenPlugins.add(t.pluginName),this._ensurePluginHolderForType(t.type).immediateInitPlugin(t)}_checkPluginSeen(t){return this._seenPlugins.has(t.pluginName)}_assertPluginValid(t){const{type:e,pluginName:n}=t;if(e===le.UNRECOGNIZED)throw new Error(`[PluginService]: invalid plugin type for ${t.name}. Please assign a "type" to your plugin.`);if(!n)throw new Error(`[PluginService]: no plugin name for ${t.name}. Please assign a "pluginName" to your plugin.`);if(this._seenPlugins.has(n))throw new Error(`[PluginService]: duplicated plugin name for "${n}". Maybe a plugin that dependents on "${n} has already registered it. In that case please register "${n}" before the that plugin.`);this._seenPlugins.add(t.pluginName)}_scheduleInitPlugin(){this._flushTimer===void 0&&(this._flushTimer=setTimeout(()=>{this._pluginHolderForUniver.started||this._pluginHolderForUniver.start(),this._flushPlugins(),this._clearFlushTimer()},EJe))}_clearFlushTimer(){this._flushTimer&&(clearTimeout(this._flushTimer),this._flushTimer=void 0)}_flushPlugins(){this._pluginHolderForUniver.flush();for(const[t,e]of this._pluginHoldersForTypes)e.started&&e.flush()}},j(PO,"PluginService"),PO);dw=mhe([D5(0,se(Wn))],dw);var MO;let hw=(MO=class extends et{constructor(t,e,n,r,i,a){super(),Xe(this,"_started",!1),Xe(this,"_warnedAboutOnStartingDeprecation",!1),Xe(this,"_pluginRegistry",new SJe),Xe(this,"_pluginStore",new CJe),Xe(this,"_awaitingPlugins",[]),this._checkPluginRegistered=t,this._registerPlugin=e,this._logService=n,this._injector=r,this._lifecycleService=i,this._lifecycleInitializerService=a,this.disposeWithMe(this._lifecycleService.lifecycle$.pipe(wX(1)).subscribe(o=>{this._awaitingPlugins.forEach(s=>this._runStage(s,o))}))}get started(){return this._started}dispose(){super.dispose(),this._pluginStore.forEachPlugin(t=>t.dispose()),this._pluginStore.removePlugins(),this._pluginRegistry.removePlugins(),this._awaitingPlugins.length=0}register(t,e){this._pluginRegistry.registerPlugin(t,e)}immediateInitPlugin(t){const e=this._initPlugin(t,void 0);this._pluginsRunLifecycle([e])}start(){this._started||(this._started=!0,this.flush())}flush(){if(!this._started)return;const t=this._pluginRegistry.getRegisterPlugins().map(({plugin:e,options:n})=>this._initPlugin(e,n));t.length&&(this._pluginsRunLifecycle(t),this._pluginRegistry.removePlugins())}_initPlugin(t,e){const n=t[dhe];if(n){const i=j(()=>{const a=n.find(o=>!this._checkPluginRegistered(o));return a?(this._logService.debug("[PluginService]",`Plugin "${t.pluginName}" depends on "${a.pluginName}" which is not registered. Univer will automatically register it with default configuration.`),this._registerPlugin(a,void 0),!0):!1},"exhaustUnregisteredDependents");for(;i(););}const r=this._injector.createInstance(t,e);return this._pluginStore.addPlugin(r),this._logService.debug("[PluginService]",`Plugin "${r.getPluginName()}" registered.`),r}_pluginsRunLifecycle(t){RG(this._lifecycleService.stage).subscribe(e=>this._runStage(t,e)),this._awaitingPlugins.push(t)}_runStage(t,e){t.forEach(n=>{switch(e){case Vt.Starting:n.onStarting.length>0&&n.onStarting!==Cs.prototype.onStarting&&!this._warnedAboutOnStartingDeprecation&&(this._logService.warn("[PluginService]",n.onStarting.length,`Plugin "${n.getPluginName()}" is using deprecated "onStarting" method with arguments. Please use "this._injector" instead.`),this._warnedAboutOnStartingDeprecation=!0),n.onStarting(this._injector);break;case Vt.Ready:n.onReady();break;case Vt.Rendered:n.onRendered();break;case Vt.Steady:n.onSteady();break}}),this._lifecycleInitializerService.initModulesOnStage(e)}},j(MO,"PluginHolder"),MO);hw=mhe([D5(2,Ra),D5(3,se(Wn)),D5(4,se(b0)),D5(5,se(cw))],hw);function Mp(t,e){if(!e)return t;const n=[];for(const r of t){const i=e.find(([a])=>a===r[0]);if(i){if(i[1]===null)continue;n.push([r[0],i[1]])}else n.push(r)}return n}j(Mp,"mergeOverrideWithDependencies");const AG=er("resource-loader-service");e2(Vt.Ready,AG);const ghe=class extends et{constructor(){super(...arguments),Xe(this,"_resourceMap",new Map),Xe(this,"_register$",new Zt),Xe(this,"register$",this._register$.asObservable())}getAllResourceHooks(){return[...this._resourceMap.values()]}getResources(e,n){return n?this.getResourcesByType(e,n):this.getAllResourceHooks().map(r=>{const i=r.toJson(e);return{name:r.pluginName,data:i}})}getResourcesByType(e,n){return this.getAllResourceHooks().filter(r=>r.businesses.includes(n)).map(r=>{const i=r.toJson(e);return{name:r.pluginName,data:i}})}registerPluginResource(e){const n=e.pluginName;if(this._resourceMap.has(n))throw new Error(`the pluginName is registered {${n}}`);return this._resourceMap.set(n,e),this._register$.next(e),$t(()=>this._resourceMap.delete(n))}disposePluginResource(e){this._resourceMap.delete(e)}loadResources(e,n){this.getAllResourceHooks().forEach(r=>{var i;const a=(i=n==null?void 0:n.find(o=>o.name===r.pluginName))==null?void 0:i.data;if(a)try{const o=r.parseJson(a);r.onLoad(e,o)}catch{console.error("LoadResources Error!")}})}unloadResources(e){this.getAllResourceHooks().forEach(n=>{n.onUnLoad(e)})}dispose(){this._register$.complete(),this._resourceMap.clear()}};j(ghe,"ResourceManagerService");let RJe=ghe;const phe=class extends et{constructor(){super(),Xe(this,"_currentTheme"),Xe(this,"_currentTheme$",new Pn({})),Xe(this,"currentTheme$",this._currentTheme$.asObservable()),this.disposeWithMe($t(()=>this._currentTheme$.complete()))}getCurrentTheme(){if(!this._currentTheme)throw new Error("[ThemeService]: current theme is not set!");return this._currentTheme}setTheme(e){this._currentTheme=e,this._currentTheme$.next(e)}};j(phe,"ThemeService");let Ja=phe;var AJe=Object.defineProperty,wJe=Object.getOwnPropertyDescriptor,DJe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?wJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&AJe(e,n,i),i},"__decorateClass$1"),TO=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam$1");const xn=er("univer.undo-redo.service"),IJe=20,vhe=class{dispose(){}async dispatchToHandlers(){return!1}};j(vhe,"MultiImplementationCommand");let _he=vhe;const HH="univer.command.redo",jH="univer.command.undo",TC=new class extends _he{constructor(){super(...arguments),Xe(this,"type",Se.COMMAND),Xe(this,"id",jH)}async handler(t){const e=t.get(xn),n=e.pitchTopUndoElement();if(!n)return!1;const r=t.get(me);return ti(n.undoMutations,r)?(e.popUndoToRedo(),!0):!1}},LC=new class extends _he{constructor(){super(...arguments),Xe(this,"type",Se.COMMAND),Xe(this,"id",HH)}async handler(t){const e=t.get(xn),n=e.pitchTopRedoElement();if(!n)return!1;const r=t.get(me);return ti(n.redoMutations,r)?(e.popRedoToUndo(),!0):!1}};var LO;let $H=(LO=class extends et{constructor(t,e,n){super(),Xe(this,"undoRedoStatus$"),Xe(this,"_undoRedoStatus$",new Pn({undos:0,redos:0})),Xe(this,"_undoStacks",new Map),Xe(this,"_redoStacks",new Map),Xe(this,"_batchingStatus",new Map),this._univerInstanceService=t,this._commandService=e,this._contextService=n,this.undoRedoStatus$=this._undoRedoStatus$.asObservable(),this.disposeWithMe(this._commandService.registerCommand(TC)),this.disposeWithMe(this._commandService.registerCommand(LC)),this.disposeWithMe($t(()=>this._undoRedoStatus$.complete())),this.disposeWithMe($t(this._univerInstanceService.focused$.subscribe(()=>this._updateStatus())))}pushUndoRedo(t){const{unitID:e}=t,n=this._getRedoStack(e,!0),r=this._getUndoStack(e,!0);if(n.length=0,this._batchingStatus.has(t.unitID)){const a=this._batchingStatus.get(t.unitID),o=this._pitchUndoElement(t.unitID);a===0||!o?(i(t),this._batchingStatus.set(t.unitID,1)):this._tryBatchingElements(o,t)}else i(t);function i(a){r.push(a),r.length>IJe&&r.splice(0,1)}j(i,"appendNewItem"),this._updateStatus()}clearUndoRedo(t){const e=this._getRedoStack(t);e&&(e.length=0);const n=this._getUndoStack(t);n&&(n.length=0),this._updateStatus()}pitchTopUndoElement(){const t=this._getFocusedUnitId();return this._pitchUndoElement(t)}pitchTopRedoElement(){const t=this._getFocusedUnitId();return this._pitchRedoElement(t)}_pitchUndoElement(t){const e=this._getUndoStack(t);return e!=null&&e.length?e[e.length-1]:null}_pitchRedoElement(t){const e=this._getRedoStack(t);return e!=null&&e.length?e[e.length-1]:null}popUndoToRedo(){const t=this._getUndoStackForFocused().pop();t&&(this._getRedoStackForFocused().push(t),this._updateStatus())}popRedoToUndo(){const t=this._getRedoStackForFocused().pop();t&&(this._getUndoStackForFocused().push(t),this._updateStatus())}__tempBatchingUndoRedo(t){if(this._batchingStatus.has(t))throw new Error("[LocalUndoRedoService]: cannot batching undo redo twice at the same time!");return this._batchingStatus.set(t,0),$t(()=>this._batchingStatus.delete(t))}_updateStatus(){var t,e;const n=this._getFocusedUnitId(),r=n&&((t=this._undoStacks.get(n))==null?void 0:t.length)||0,i=n&&((e=this._redoStacks.get(n))==null?void 0:e.length)||0;this._undoRedoStatus$.next({undos:r,redos:i})}_getUndoStack(t,e=!1){let n=this._undoStacks.get(t);return!n&&e&&(n=[],this._undoStacks.set(t,n)),n||null}_getRedoStack(t,e=!1){let n=this._redoStacks.get(t);return!n&&e&&(n=[],this._redoStacks.set(t,n)),n||null}_getUndoStackForFocused(){const t=this._getFocusedUnitId();if(!t)throw new Error("No focused univer instance!");return this._getUndoStack(t,!0)}_getRedoStackForFocused(){const t=this._getFocusedUnitId();if(!t)throw new Error("No focused univer instance!");return this._getRedoStack(t,!0)}_tryBatchingElements(t,e){t.redoMutations.push(...e.redoMutations),t.undoMutations.push(...e.undoMutations)}_getFocusedUnitId(){var t,e,n,r;let i="";const a=this._contextService.getContextValue(ms),o=this._contextService.getContextValue(of),s=this._contextService.getContextValue(ha);return a?o?i=Ki:s?i=Yo:i=(e=(t=this._univerInstanceService.getFocusedUnit())==null?void 0:t.getUnitId())!=null?e:"":i=(r=(n=this._univerInstanceService.getFocusedUnit())==null?void 0:n.getUnitId())!=null?r:"",i}},j(LO,"LocalUndoRedoService"),LO);$H=DJe([TO(0,Ce),TO(1,me),TO(2,ui)],$H);function Che(t){return!(t.length===0||t.length>31||t.startsWith("'")||t.endsWith("'")||/[:\\\/\?\*\[\]]/.test(t))}j(Che,"nameCharacterCheck");function PJe(t){return new Promise(e=>setTimeout(e,t))}j(PJe,"awaitTime");const MJe=j((t,e)=>e.length===t.length&&!t.some(n=>e.some(r=>!ft.equals(r,n))),"isRangesEqual"),TJe=j((t,e)=>e.length===t.length&&t.every((n,r)=>{const i=e[r];return i.unitId===n.unitId&&i.sheetId===n.sheetId&&ft.equals(n.range,i.range)}),"isUnitRangesEqual"),She=["script","style","meta","comment","link"];var F6=(t=>(t[t.INFO=0]="INFO",t[t.STOP=1]="STOP",t[t.WARNING=2]="WARNING",t))(F6||{}),Wt=(t=>(t.BETWEEN="between",t.EQUAL="equal",t.GREATER_THAN="greaterThan",t.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",t.LESS_THAN="lessThan",t.LESS_THAN_OR_EQUAL="lessThanOrEqual",t.NOT_BETWEEN="notBetween",t.NOT_EQUAL="notEqual",t))(Wt||{}),kl=(t=>(t[t.TEXT=0]="TEXT",t[t.ARROW=1]="ARROW",t[t.CUSTOM=2]="CUSTOM",t))(kl||{}),q1=(t=>(t.VALID="valid",t.INVALID="invalid",t.VALIDATING="validating",t))(q1||{}),ia=(t=>(t.CUSTOM="custom",t.LIST="list",t.LIST_MULTIPLE="listMultiple",t.NONE="none",t.TEXT_LENGTH="textLength",t.DATE="date",t.TIME="time",t.WHOLE="whole",t.DECIMAL="decimal",t.CHECKBOX="checkbox",t))(ia||{}),LJe=Object.defineProperty,xJe=Object.getOwnPropertyDescriptor,OJe=j((t,e,n,r)=>{for(var i=r>1?void 0:r?xJe(e,n):e,a=t.length-1,o;a>=0;a--)(o=t[a])&&(i=(r?o(e,n,i):o(i))||i);return r&&i&&LJe(e,n,i),i},"__decorateClass"),Kie=j((t,e)=>(n,r)=>e(n,r,t),"__decorateParam"),xO;let WH=(xO=class extends et{constructor(t,e){super(),this._resourceManagerService=t,this._univerInstanceService=e,this._init()}_init(){const t=j(e=>{e.businesses.forEach(n=>{switch(n){case le.UNRECOGNIZED:case le.UNIVER_UNKNOWN:case le.UNIVER_SLIDE:case le.UNIVER_DOC:{this._univerInstanceService.getAllUnitsForType(le.UNIVER_DOC).forEach(r=>{const i=(r.getSnapshot().resources||[]).find(a=>a.name===e.pluginName);if(i)try{const a=e.parseJson(i.data);e.onLoad(r.getUnitId(),a)}catch{console.error(`Load Document{${r.getUnitId()}} Resources{${e.pluginName}} Data Error.`)}});break}case le.UNIVER_SHEET:this._univerInstanceService.getAllUnitsForType(le.UNIVER_SHEET).forEach(r=>{const i=(r.getSnapshot().resources||[]).find(a=>a.name===e.pluginName);if(i)try{const a=e.parseJson(i.data);e.onLoad(r.getUnitId(),a)}catch{console.error(`Load Workbook{${r.getUnitId()}} Resources{${e.pluginName}} Data Error.`)}})}})},"handleHookAdd");this._resourceManagerService.getAllResourceHooks().forEach(e=>t(e)),this.disposeWithMe(this._resourceManagerService.register$.subscribe(e=>t(e))),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_SHEET).subscribe(e=>{this._resourceManagerService.loadResources(e.getUnitId(),e.getSnapshot().resources)})),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitAdded$(le.UNIVER_DOC).subscribe(e=>{const n=e.getUnitId();oh(n)||this._resourceManagerService.loadResources(e.getUnitId(),e.getSnapshot().resources)})),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_SHEET).subscribe(e=>{this._resourceManagerService.unloadResources(e.getUnitId())})),this.disposeWithMe(this._univerInstanceService.getTypeOfUnitDisposed$(le.UNIVER_DOC).subscribe(e=>{this._resourceManagerService.unloadResources(e.getUnitId())}))}saveUnit(t){const e=this._univerInstanceService.getUnit(t);if(!e)return null;const n=this._resourceManagerService.getResources(t,e.type),r=Ie.deepClone(e.getSnapshot());return r.resources=n,r}},j(xO,"ResourceLoaderService"),xO);WH=OJe([Kie(0,se(J0)),Kie(1,se(Ce))],WH);const bhe=class{constructor(e={},n){Xe(this,"_startedTypes",new Set),Xe(this,"_injector");const r=this._injector=yhe(n,e==null?void 0:e.override),{theme:i,locale:a,locales:o,logLevel:s}=e;i&&this._injector.get(Ja).setTheme(i),o&&this._injector.get(sn).load(o),a&&this._injector.get(sn).setLocale(a),s&&this._injector.get(Ra).setLogLevel(s),this._init(r)}get _univerInstanceService(){return this._injector.get(Ce)}get _pluginService(){return this._injector.get(dw)}__getInjector(){return this._injector}dispose(){this._injector.dispose()}setLocale(e){this._injector.get(sn).setLocale(e)}createUnit(e,n){return this._univerInstanceService.createUnit(e,n)}createUniverSheet(e){return this._injector.get(Ra).warn("[Univer]: Univer.createUniverSheet is deprecated, use createUnit instead"),this._univerInstanceService.createUnit(le.UNIVER_SHEET,e)}createUniverDoc(e){return this._injector.get(Ra).warn("[Univer]: Univer.createUniverDoc is deprecated, use createUnit instead"),this._univerInstanceService.createUnit(le.UNIVER_DOC,e)}createUniverSlide(e){return this._injector.get(Ra).warn("[Univer]: Univer.createUniverSlide is deprecated, use createUnit instead"),this._univerInstanceService.createUnit(le.UNIVER_SLIDE,e)}_init(e){this._univerInstanceService.registerCtorForType(le.UNIVER_SHEET,b4),this._univerInstanceService.registerCtorForType(le.UNIVER_DOC,sh),this._univerInstanceService.registerCtorForType(le.UNIVER_SLIDE,EG);const n=e.get(Ce);n.__setCreateHandler((r,i,a,o)=>{if(!this._startedTypes.has(r)){this._pluginService.startPluginForType(r),this._startedTypes.add(r);const l=e.createInstance(a,i);return n.__addUnit(l,o),this._tryProgressToReady(),l}const s=e.createInstance(a,i);return n.__addUnit(s,o),s})}_tryProgressToReady(){this._injector.get(b0).stage>>1,K=z[W];if(0>>1;Wi(Y,H))aei(ie,Y)?(z[W]=ie,z[ae]=H,W=ae):(z[W]=Y,z[te]=H,W=te);else if(aei(ie,H))z[W]=ie,z[ae]=H,W=ae;else break e}}return F}function i(z,F){var H=z.sortIndex-F.sortIndex;return H!==0?H:z.id-F.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;t.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();t.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,d=null,h=3,f=!1,m=!1,g=!1,p=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,_=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function C(z){for(var F=n(u);F!==null;){if(F.callback===null)r(u);else if(F.startTime<=z)r(u),F.sortIndex=F.expirationTime,e(l,F);else break;F=n(u)}}function S(z){if(g=!1,C(z),!m)if(n(l)!==null)m=!0,V(b);else{var F=n(u);F!==null&&X(S,F.startTime-z)}}function b(z,F){m=!1,g&&(g=!1,v(w),w=-1),f=!0;var H=h;try{for(C(F),d=n(l);d!==null&&(!(d.expirationTime>F)||z&&!L());){var W=d.callback;if(typeof W=="function"){d.callback=null,h=d.priorityLevel;var K=W(d.expirationTime<=F);F=t.unstable_now(),typeof K=="function"?d.callback=K:d===n(l)&&r(l),C(F)}else r(l);d=n(l)}if(d!==null)var G=!0;else{var te=n(u);te!==null&&X(S,te.startTime-F),G=!1}return G}finally{d=null,h=H,f=!1}}var y=!1,A=null,w=-1,P=5,M=-1;function L(){return!(t.unstable_now()-Mz||125W?(z.sortIndex=H,e(u,z),n(l)===null&&z===n(u)&&(g?(v(w),w=-1):g=!0,X(S,H-W))):(z.sortIndex=K,e(l,z),m||f||(m=!0,V(b))),z},t.unstable_shouldYield=L,t.unstable_wrapCallback=function(z){var F=h;return function(){var H=h;h=F;try{return z.apply(this,arguments)}finally{h=H}}}})(whe);Ahe.exports=whe;var kJe=Ahe.exports;/** -* @license React -* react-dom.production.min.js -* -* Copyright (c) Facebook, Inc. and its affiliates. -* -* This source code is licensed under the MIT license found in the -* LICENSE file in the root directory of this source tree. -*/var FJe=E,vc=kJe;function _n(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zH=Object.prototype.hasOwnProperty,VJe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Zie={},Jie={};function BJe(t){return zH.call(Jie,t)?!0:zH.call(Zie,t)?!1:VJe.test(t)?Jie[t]=!0:(Zie[t]=!0,!1)}function UJe(t,e,n,r){if(n!==null&&n.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function HJe(t,e,n,r){if(e===null||typeof e>"u"||UJe(t,e,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function Gl(t,e,n,r,i,a,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var Js={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Js[t]=new Gl(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Js[e]=new Gl(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Js[t]=new Gl(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Js[t]=new Gl(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){Js[t]=new Gl(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Js[t]=new Gl(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Js[t]=new Gl(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Js[t]=new Gl(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Js[t]=new Gl(t,5,!1,t.toLowerCase(),null,!1,!1)});var wG=/[\-:]([a-z])/g;function DG(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(wG,DG);Js[e]=new Gl(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(wG,DG);Js[e]=new Gl(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(wG,DG);Js[e]=new Gl(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Js[t]=new Gl(t,1,!1,t.toLowerCase(),null,!1,!1)});Js.xlinkHref=new Gl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Js[t]=new Gl(t,1,!1,t.toLowerCase(),null,!0,!0)});function IG(t,e,n,r){var i=Js.hasOwnProperty(e)?Js[e]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` -`+i[o].replace(" at new "," at ");return t.displayName&&l.includes("")&&(l=l.replace("",t.displayName)),l}while(1<=o&&0<=s);break}}}finally{NO=!1,Error.prepareStackTrace=n}return(t=t?t.displayName||t.name:"")?I5(t):""}function jJe(t){switch(t.tag){case 5:return I5(t.type);case 16:return I5("Lazy");case 13:return I5("Suspense");case 19:return I5("SuspenseList");case 0:case 2:case 15:return t=kO(t.type,!1),t;case 11:return t=kO(t.type.render,!1),t;case 1:return t=kO(t.type,!0),t;default:return""}}function GH(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case f6:return"Fragment";case h6:return"Portal";case qH:return"Profiler";case PG:return"StrictMode";case YH:return"Suspense";case XH:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Phe:return(t.displayName||"Context")+".Consumer";case Ihe:return(t._context.displayName||"Context")+".Provider";case MG:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case TG:return e=t.displayName||null,e!==null?e:GH(t.type)||"Memo";case xm:e=t._payload,t=t._init;try{return GH(t(e))}catch{}}return null}function $Je(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return GH(e);case 8:return e===PG?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function y0(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function The(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function WJe(t){var e=The(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Bb(t){t._valueTracker||(t._valueTracker=WJe(t))}function Lhe(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=The(t)?t.checked?"true":"false":t.value),t=r,t!==n?(e.setValue(t),!0):!1}function fw(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function QH(t,e){var n=e.checked;return Ro({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??t._wrapperState.initialChecked})}function tae(t,e){var n=e.defaultValue==null?"":e.defaultValue,r=e.checked!=null?e.checked:e.defaultChecked;n=y0(e.value!=null?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function xhe(t,e){e=e.checked,e!=null&&IG(t,"checked",e,!1)}function KH(t,e){xhe(t,e);var n=y0(e.value),r=e.type;if(n!=null)r==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if(r==="submit"||r==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?ZH(t,e.type,n):e.hasOwnProperty("defaultValue")&&ZH(t,e.type,y0(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function nae(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!(r!=="submit"&&r!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}n=t.name,n!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,n!==""&&(t.name=n)}function ZH(t,e,n){(e!=="number"||fw(t.ownerDocument)!==t)&&(n==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}var P5=Array.isArray;function V6(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i"+e.valueOf().toString()+"",e=Ub.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function wv(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var l8={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zJe=["Webkit","ms","Moz","O"];Object.keys(l8).forEach(function(t){zJe.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),l8[e]=l8[t]})});function Fhe(t,e,n){return e==null||typeof e=="boolean"||e===""?"":n||typeof e!="number"||e===0||l8.hasOwnProperty(t)&&l8[t]?(""+e).trim():e+"px"}function Vhe(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Fhe(n,e[n],r);n==="float"&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}var qJe=Ro({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tj(t,e){if(e){if(qJe[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(_n(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(_n(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(_n(61))}if(e.style!=null&&typeof e.style!="object")throw Error(_n(62))}}function nj(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var rj=null;function LG(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ij=null,B6=null,U6=null;function aae(t){if(t=NC(t)){if(typeof ij!="function")throw Error(_n(280));var e=t.stateNode;e&&(e=uM(e),ij(t.stateNode,t.type,e))}}function Bhe(t){B6?U6?U6.push(t):U6=[t]:B6=t}function Uhe(){if(B6){var t=B6,e=U6;if(U6=B6=null,aae(t),e)for(t=0;t>>=0,t===0?32:31-(ret(t)/iet|0)|0}var Hb=64,jb=4194304;function M5(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function vw(t,e){var n=t.pendingLanes;if(n===0)return 0;var r=0,i=t.suspendedLanes,a=t.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=M5(s):(a&=o,a!==0&&(r=M5(a)))}else o=n&~i,o!==0?r=M5(o):a!==0&&(r=M5(a));if(r===0)return 0;if(e!==0&&e!==r&&!(e&i)&&(i=r&-r,a=e&-e,i>=a||i===16&&(a&4194240)!==0))return e;if(r&4&&(r|=n&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=r;0n;n++)e.push(t);return e}function xC(t,e,n){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-id(e),t[e]=n}function uet(t,e){var n=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var r=t.eventTimes;for(t=t.expirationTimes;0=c8),mae=" ",gae=!1;function ofe(t,e){switch(t){case"keyup":return Vet.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sfe(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var m6=!1;function Uet(t,e){switch(t){case"compositionend":return sfe(e);case"keypress":return e.which!==32?null:(gae=!0,mae);case"textInput":return t=e.data,t===mae&&gae?null:t;default:return null}}function Het(t,e){if(m6)return t==="compositionend"||!UG&&ofe(t,e)?(t=ife(),SE=FG=Hm=null,m6=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1=e)return{node:n,offset:e-t};t=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Cae(n)}}function dfe(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?dfe(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function hfe(){for(var t=window,e=fw();e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=fw(t.document)}return e}function HG(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function Qet(t){var e=hfe(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&n&&n.ownerDocument&&dfe(n.ownerDocument.documentElement,n)){if(r!==null&&HG(n)){if(e=r.start,t=r.end,t===void 0&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(t=(e=n.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!t.extend&&a>r&&(i=r,r=a,a=i),i=Sae(n,a);var o=Sae(n,r);i&&o&&(t.rangeCount!==1||t.anchorNode!==i.node||t.anchorOffset!==i.offset||t.focusNode!==o.node||t.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(i.node,i.offset),t.removeAllRanges(),a>r?(t.addRange(e),t.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),t.addRange(e)))}}for(e=[],t=n;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,g6=null,cj=null,h8=null,dj=!1;function bae(t,e,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;dj||g6==null||g6!==fw(r)||(r=g6,"selectionStart"in r&&HG(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),h8&&Lv(h8,r)||(h8=r,r=Sw(cj,"onSelect"),0_6||(t.current=vj[_6],vj[_6]=null,_6--)}function Ga(t,e){_6++,vj[_6]=t.current,t.current=e}var E0={},Al=n2(E0),bu=n2(!1),Qg=E0;function E4(t,e){var n=t.type.contextTypes;if(!n)return E0;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=e[a];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=i),i}function yu(t){return t=t.childContextTypes,t!=null}function yw(){ro(bu),ro(Al)}function Iae(t,e,n){if(Al.current!==E0)throw Error(_n(168));Ga(Al,e),Ga(bu,n)}function bfe(t,e,n){var r=t.stateNode;if(e=e.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in e))throw Error(_n(108,$Je(t)||"Unknown",i));return Ro({},n,r)}function Ew(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||E0,Qg=Al.current,Ga(Al,t),Ga(bu,bu.current),!0}function Pae(t,e,n){var r=t.stateNode;if(!r)throw Error(_n(169));n?(t=bfe(t,e,Qg),r.__reactInternalMemoizedMergedChildContext=t,ro(bu),ro(Al),Ga(Al,t)):ro(bu),Ga(bu,n)}var Wh=null,cM=!1,QO=!1;function yfe(t){Wh===null?Wh=[t]:Wh.push(t)}function ltt(t){cM=!0,yfe(t)}function r2(){if(!QO&&Wh!==null){QO=!0;var t=0,e=wa;try{var n=Wh;for(wa=1;t>=o,i-=o,Qh=1<<32-id(e)+i|n<w?(P=A,A=null):P=A.sibling;var M=h(v,A,C[w],S);if(M===null){A===null&&(A=P);break}t&&A&&M.alternate===null&&e(v,A),_=a(M,_,w),y===null?b=M:y.sibling=M,y=M,A=P}if(w===C.length)return n(v,A),ho&&Y2(v,w),b;if(A===null){for(;ww?(P=A,A=null):P=A.sibling;var L=h(v,A,M.value,S);if(L===null){A===null&&(A=P);break}t&&A&&L.alternate===null&&e(v,A),_=a(L,_,w),y===null?b=L:y.sibling=L,y=L,A=P}if(M.done)return n(v,A),ho&&Y2(v,w),b;if(A===null){for(;!M.done;w++,M=C.next())M=d(v,M.value,S),M!==null&&(_=a(M,_,w),y===null?b=M:y.sibling=M,y=M);return ho&&Y2(v,w),b}for(A=r(v,A);!M.done;w++,M=C.next())M=f(A,v,w,M.value,S),M!==null&&(t&&M.alternate!==null&&A.delete(M.key===null?w:M.key),_=a(M,_,w),y===null?b=M:y.sibling=M,y=M);return t&&A.forEach(function(k){return e(v,k)}),ho&&Y2(v,w),b}function p(v,_,C,S){if(typeof C=="object"&&C!==null&&C.type===f6&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case Vb:e:{for(var b=C.key,y=_;y!==null;){if(y.key===b){if(b=C.type,b===f6){if(y.tag===7){n(v,y.sibling),_=i(y,C.props.children),_.return=v,v=_;break e}}else if(y.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===xm&&Lae(b)===y.type){n(v,y.sibling),_=i(y,C.props),_.ref=x9(v,y,C),_.return=v,v=_;break e}n(v,y);break}else e(v,y);y=y.sibling}C.type===f6?(_=Pg(C.props.children,v.mode,S,C.key),_.return=v,v=_):(S=IE(C.type,C.key,C.props,null,v.mode,S),S.ref=x9(v,_,C),S.return=v,v=S)}return o(v);case h6:e:{for(y=C.key;_!==null;){if(_.key===y)if(_.tag===4&&_.stateNode.containerInfo===C.containerInfo&&_.stateNode.implementation===C.implementation){n(v,_.sibling),_=i(_,C.children||[]),_.return=v,v=_;break e}else{n(v,_);break}else e(v,_);_=_.sibling}_=iN(C,v.mode,S),_.return=v,v=_}return o(v);case xm:return y=C._init,p(v,_,y(C._payload),S)}if(P5(C))return m(v,_,C,S);if(I9(C))return g(v,_,C,S);Gb(v,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,_!==null&&_.tag===6?(n(v,_.sibling),_=i(_,C),_.return=v,v=_):(n(v,_),_=rN(C,v.mode,S),_.return=v,v=_),o(v)):n(v,_)}return p}var A4=wfe(!0),Dfe=wfe(!1),ww=n2(null),Dw=null,b6=null,zG=null;function qG(){zG=b6=Dw=null}function YG(t){var e=ww.current;ro(ww),t._currentValue=e}function Sj(t,e,n){for(;t!==null;){var r=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,r!==null&&(r.childLanes|=e)):r!==null&&(r.childLanes&e)!==e&&(r.childLanes|=e),t===n)break;t=t.return}}function j6(t,e){Dw=t,zG=b6=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(fu=!0),t.firstContext=null)}function c1(t){var e=t._currentValue;if(zG!==t)if(t={context:t,memoizedValue:e,next:null},b6===null){if(Dw===null)throw Error(_n(308));b6=t,Dw.dependencies={lanes:0,firstContext:t}}else b6=b6.next=t;return e}var Cg=null;function XG(t){Cg===null?Cg=[t]:Cg.push(t)}function Ife(t,e,n,r){var i=e.interleaved;return i===null?(n.next=n,XG(e)):(n.next=i.next,i.next=n),e.interleaved=n,Cf(t,r)}function Cf(t,e){t.lanes|=e;var n=t.alternate;for(n!==null&&(n.lanes|=e),n=t,t=t.return;t!==null;)t.childLanes|=e,n=t.alternate,n!==null&&(n.childLanes|=e),n=t,t=t.return;return n.tag===3?n.stateNode:null}var Om=!1;function GG(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pfe(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function sf(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function a0(t,e,n){var r=t.updateQueue;if(r===null)return null;if(r=r.shared,ta&2){var i=r.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),r.pending=e,Cf(t,n)}return i=r.interleaved,i===null?(e.next=e,XG(r)):(e.next=i.next,i.next=e),r.interleaved=e,Cf(t,n)}function yE(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194240)!==0)){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,OG(t,n)}}function xae(t,e){var n=t.updateQueue,r=t.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=e:a=a.next=e}else i=a=e;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}function Iw(t,e,n,r){var i=t.updateQueue;Om=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,u=l.next;l.next=null,o===null?a=u:o.next=u,o=l;var c=t.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==o&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;o=0,c=u=l=null,s=a;do{var h=s.lane,f=s.eventTime;if((r&h)===h){c!==null&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=t,g=s;switch(h=e,f=n,g.tag){case 1:if(m=g.payload,typeof m=="function"){d=m.call(f,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(f,d,h):m,h==null)break e;d=Ro({},d,h);break e;case 2:Om=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=f,l=d):c=c.next=f,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(c===null&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,e=i.shared.interleaved,e!==null){i=e;do o|=i.lane,i=i.next;while(i!==e)}else a===null&&(i.shared.lanes=0);Jg|=o,t.lanes=o,t.memoizedState=d}}function Oae(t,e,n){if(t=e.effects,e.effects=null,t!==null)for(e=0;en?n:4,t(!0);var r=ZO.transition;ZO.transition={};try{t(!1),e()}finally{wa=n,ZO.transition=r}}function qfe(){return d1().memoizedState}function htt(t,e,n){var r=s0(t);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yfe(t))Xfe(e,n);else if(n=Ife(t,e,n,r),n!==null){var i=Bl();ad(n,t,r,i),Gfe(n,e,r)}}function ftt(t,e,n){var r=s0(t),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yfe(t))Xfe(e,i);else{var a=t.alternate;if(t.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,dd(s,o)){var l=e.interleaved;l===null?(i.next=i,XG(e)):(i.next=l.next,l.next=i),e.interleaved=i;return}}catch{}finally{}n=Ife(t,e,i,r),n!==null&&(i=Bl(),ad(n,t,r,i),Gfe(n,e,r))}}function Yfe(t){var e=t.alternate;return t===Eo||e!==null&&e===Eo}function Xfe(t,e){f8=Mw=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Gfe(t,e,n){if(n&4194240){var r=e.lanes;r&=t.pendingLanes,n|=r,e.lanes=n,OG(t,n)}}var Tw={readContext:c1,useCallback:ul,useContext:ul,useEffect:ul,useImperativeHandle:ul,useInsertionEffect:ul,useLayoutEffect:ul,useMemo:ul,useReducer:ul,useRef:ul,useState:ul,useDebugValue:ul,useDeferredValue:ul,useTransition:ul,useMutableSource:ul,useSyncExternalStore:ul,useId:ul,unstable_isNewReconciler:!1},mtt={readContext:c1,useCallback:function(t,e){return Od().memoizedState=[t,e===void 0?null:e],t},useContext:c1,useEffect:kae,useImperativeHandle:function(t,e,n){return n=n!=null?n.concat([t]):null,RE(4194308,4,Hfe.bind(null,e,t),n)},useLayoutEffect:function(t,e){return RE(4194308,4,t,e)},useInsertionEffect:function(t,e){return RE(4,2,t,e)},useMemo:function(t,e){var n=Od();return e=e===void 0?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var r=Od();return e=n!==void 0?n(e):e,r.memoizedState=r.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},r.queue=t,t=t.dispatch=htt.bind(null,Eo,t),[r.memoizedState,t]},useRef:function(t){var e=Od();return t={current:t},e.memoizedState=t},useState:Nae,useDebugValue:rQ,useDeferredValue:function(t){return Od().memoizedState=t},useTransition:function(){var t=Nae(!1),e=t[0];return t=dtt.bind(null,t[1]),Od().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,n){var r=Eo,i=Od();if(ho){if(n===void 0)throw Error(_n(407));n=n()}else{if(n=e(),Ps===null)throw Error(_n(349));Zg&30||xfe(r,e,n)}i.memoizedState=n;var a={value:n,getSnapshot:e};return i.queue=a,kae(Nfe.bind(null,r,a,t),[t]),r.flags|=2048,Uv(9,Ofe.bind(null,r,a,n,e),void 0,null),n},useId:function(){var t=Od(),e=Ps.identifierPrefix;if(ho){var n=Kh,r=Qh;n=(r&~(1<<32-id(r)-1)).toString(32)+n,e=":"+e+"R"+n,n=Vv++,0<\/script>",t=t.removeChild(t.firstChild)):typeof r.is=="string"?t=o.createElement(n,{is:r.is}):(t=o.createElement(n),n==="select"&&(o=t,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):t=o.createElementNS(t,n),t[Hd]=e,t[Nv]=r,ame(t,e,!1,!1),e.stateNode=t;e:{switch(o=nj(n,r),n){case"dialog":to("cancel",t),to("close",t),i=r;break;case"iframe":case"object":case"embed":to("load",t),i=r;break;case"video":case"audio":for(i=0;iI4&&(e.flags|=128,r=!0,O9(a,!1),e.lanes=4194304)}else{if(!r)if(t=Pw(o),t!==null){if(e.flags|=128,r=!0,n=t.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),O9(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!ho)return cl(e),null}else 2*Bo()-a.renderingStartTime>I4&&n!==1073741824&&(e.flags|=128,r=!0,O9(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(n=a.last,n!==null?n.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=Bo(),e.sibling=null,n=So.current,Ga(So,r?n&1|2:n&1),e):(cl(e),null);case 22:case 23:return uQ(),r=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==r&&(e.flags|=8192),r&&e.mode&1?Gu&1073741824&&(cl(e),e.subtreeFlags&6&&(e.flags|=8192)):cl(e),null;case 24:return null;case 25:return null}throw Error(_n(156,e.tag))}function ytt(t,e){switch($G(e),e.tag){case 1:return yu(e.type)&&yw(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return w4(),ro(bu),ro(Al),ZG(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return KG(e),null;case 13:if(ro(So),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(_n(340));R4()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ro(So),null;case 4:return w4(),null;case 10:return YG(e.type._context),null;case 22:case 23:return uQ(),null;case 24:return null;default:return null}}var Kb=!1,gl=!1,Ett=typeof WeakSet=="function"?WeakSet:Set,or=null;function y6(t,e){var n=t.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Mo(t,e,r)}else n.current=null}function Pj(t,e,n){try{n()}catch(r){Mo(t,e,r)}}var Yae=!1;function Rtt(t,e){if(hj=_w,t=hfe(),HG(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else e:{n=(n=t.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,u=0,c=0,d=t,h=null;t:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===t)break t;if(h===n&&++u===i&&(s=o),h===a&&++c===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(fj={focusedElem:t,selectionRange:n},_w=!1,or=e;or!==null;)if(e=or,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,or=t;else for(;or!==null;){e=or;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var g=m.memoizedProps,p=m.memoizedState,v=e.stateNode,_=v.getSnapshotBeforeUpdate(e.elementType===e.type?g:V1(e.type,g),p);v.__reactInternalSnapshotBeforeUpdate=_}break;case 3:var C=e.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(_n(163))}}catch(S){Mo(e,e.return,S)}if(t=e.sibling,t!==null){t.return=e.return,or=t;break}or=e.return}return m=Yae,Yae=!1,m}function m8(t,e,n){var r=e.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var a=i.destroy;i.destroy=void 0,a!==void 0&&Pj(e,n,a)}i=i.next}while(i!==r)}}function fM(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var n=e=e.next;do{if((n.tag&t)===t){var r=n.create;n.destroy=r()}n=n.next}while(n!==e)}}function Mj(t){var e=t.ref;if(e!==null){var n=t.stateNode;switch(t.tag){case 5:t=n;break;default:t=n}typeof e=="function"?e(t):e.current=t}}function lme(t){var e=t.alternate;e!==null&&(t.alternate=null,lme(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Hd],delete e[Nv],delete e[pj],delete e[ott],delete e[stt])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function ume(t){return t.tag===5||t.tag===3||t.tag===4}function Xae(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||ume(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Tj(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.nodeType===8?n.parentNode.insertBefore(t,e):n.insertBefore(t,e):(n.nodeType===8?(e=n.parentNode,e.insertBefore(t,n)):(e=n,e.appendChild(t)),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=bw));else if(r!==4&&(t=t.child,t!==null))for(Tj(t,e,n),t=t.sibling;t!==null;)Tj(t,e,n),t=t.sibling}function Lj(t,e,n){var r=t.tag;if(r===5||r===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(r!==4&&(t=t.child,t!==null))for(Lj(t,e,n),t=t.sibling;t!==null;)Lj(t,e,n),t=t.sibling}var Us=null,U1=!1;function dm(t,e,n){for(n=n.child;n!==null;)cme(t,e,n),n=n.sibling}function cme(t,e,n){if(Xd&&typeof Xd.onCommitFiberUnmount=="function")try{Xd.onCommitFiberUnmount(aM,n)}catch{}switch(n.tag){case 5:gl||y6(n,e);case 6:var r=Us,i=U1;Us=null,dm(t,e,n),Us=r,U1=i,Us!==null&&(U1?(t=Us,n=n.stateNode,t.nodeType===8?t.parentNode.removeChild(n):t.removeChild(n)):Us.removeChild(n.stateNode));break;case 18:Us!==null&&(U1?(t=Us,n=n.stateNode,t.nodeType===8?GO(t.parentNode,n):t.nodeType===1&&GO(t,n),Mv(t)):GO(Us,n.stateNode));break;case 4:r=Us,i=U1,Us=n.stateNode.containerInfo,U1=!0,dm(t,e,n),Us=r,U1=i;break;case 0:case 11:case 14:case 15:if(!gl&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Pj(n,e,o),i=i.next}while(i!==r)}dm(t,e,n);break;case 1:if(!gl&&(y6(n,e),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Mo(n,e,s)}dm(t,e,n);break;case 21:dm(t,e,n);break;case 22:n.mode&1?(gl=(r=gl)||n.memoizedState!==null,dm(t,e,n),gl=r):dm(t,e,n);break;default:dm(t,e,n)}}function Gae(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var n=t.stateNode;n===null&&(n=t.stateNode=new Ett),e.forEach(function(r){var i=xtt.bind(null,t,r);n.has(r)||(n.add(r),r.then(i,i))})}}function M1(t,e){var n=e.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=Bo()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*wtt(r/1960))-r,10t?16:t,jm===null)var r=!1;else{if(t=jm,jm=null,Ow=0,ta&6)throw Error(_n(331));var i=ta;for(ta|=4,or=t.current;or!==null;){var a=or,o=a.child;if(or.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lBo()-sQ?Ig(t,0):oQ|=n),Eu(t,e)}function _me(t,e){e===0&&(t.mode&1?(e=jb,jb<<=1,!(jb&130023424)&&(jb=4194304)):e=1);var n=Bl();t=Cf(t,e),t!==null&&(xC(t,e,n),Eu(t,n))}function Ltt(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),_me(t,n)}function xtt(t,e){var n=0;switch(t.tag){case 13:var r=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=t.stateNode;break;default:throw Error(_n(314))}r!==null&&r.delete(e),_me(t,n)}var Cme;Cme=function(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps||bu.current)fu=!0;else{if(!(t.lanes&n)&&!(e.flags&128))return fu=!1,Stt(t,e,n);fu=!!(t.flags&131072)}else fu=!1,ho&&e.flags&1048576&&Efe(e,Aw,e.index);switch(e.lanes=0,e.tag){case 2:var r=e.type;AE(t,e),t=e.pendingProps;var i=E4(e,Al.current);j6(e,n),i=eQ(null,e,r,t,i,n);var a=tQ();return e.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,yu(r)?(a=!0,Ew(e)):a=!1,e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,GG(e),i.updater=hM,e.stateNode=i,i._reactInternals=e,yj(e,r,t,n),e=Aj(null,e,r,!0,a,n)):(e.tag=0,ho&&a&&jG(e),Ll(null,e,i,n),e=e.child),e;case 16:r=e.elementType;e:{switch(AE(t,e),t=e.pendingProps,i=r._init,r=i(r._payload),e.type=r,i=e.tag=Ntt(r),t=V1(r,t),i){case 0:e=Rj(null,e,r,t,n);break e;case 1:e=Wae(null,e,r,t,n);break e;case 11:e=jae(null,e,r,t,n);break e;case 14:e=$ae(null,e,r,V1(r.type,t),n);break e}throw Error(_n(306,r,""))}return e;case 0:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:V1(r,i),Rj(t,e,r,i,n);case 1:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:V1(r,i),Wae(t,e,r,i,n);case 3:e:{if(nme(e),t===null)throw Error(_n(387));r=e.pendingProps,a=e.memoizedState,i=a.element,Pfe(t,e),Iw(e,r,null,n);var o=e.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){i=D4(Error(_n(423)),e),e=zae(t,e,r,n,i);break e}else if(r!==i){i=D4(Error(_n(424)),e),e=zae(t,e,r,n,i);break e}else for(Ju=i0(e.stateNode.containerInfo.firstChild),ac=e,ho=!0,Y1=null,n=Dfe(e,null,r,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(R4(),r===i){e=Sf(t,e,n);break e}Ll(t,e,r,n)}e=e.child}return e;case 5:return Mfe(e),t===null&&Cj(e),r=e.type,i=e.pendingProps,a=t!==null?t.memoizedProps:null,o=i.children,mj(r,i)?o=null:a!==null&&mj(r,a)&&(e.flags|=32),tme(t,e),Ll(t,e,o,n),e.child;case 6:return t===null&&Cj(e),null;case 13:return rme(t,e,n);case 4:return QG(e,e.stateNode.containerInfo),r=e.pendingProps,t===null?e.child=A4(e,null,r,n):Ll(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:V1(r,i),jae(t,e,r,i,n);case 7:return Ll(t,e,e.pendingProps,n),e.child;case 8:return Ll(t,e,e.pendingProps.children,n),e.child;case 12:return Ll(t,e,e.pendingProps.children,n),e.child;case 10:e:{if(r=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=i.value,Ga(ww,r._currentValue),r._currentValue=o,a!==null)if(dd(a.value,o)){if(a.children===i.children&&!bu.current){e=Sf(t,e,n);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=sf(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),Sj(a.return,n,e),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===e.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(_n(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),Sj(o,n,e),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ll(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=e.pendingProps.children,j6(e,n),i=c1(i),r=r(i),e.flags|=1,Ll(t,e,r,n),e.child;case 14:return r=e.type,i=V1(r,e.pendingProps),i=V1(r.type,i),$ae(t,e,r,i,n);case 15:return Jfe(t,e,e.type,e.pendingProps,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:V1(r,i),AE(t,e),e.tag=1,yu(r)?(t=!0,Ew(e)):t=!1,j6(e,n),Qfe(e,r,i),yj(e,r,i,n),Aj(null,e,r,!0,t,n);case 19:return ime(t,e,n);case 22:return eme(t,e,n)}throw Error(_n(156,e.tag))};function Sme(t,e){return Yhe(t,e)}function Ott(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function i1(t,e,n,r){return new Ott(t,e,n,r)}function dQ(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ntt(t){if(typeof t=="function")return dQ(t)?1:0;if(t!=null){if(t=t.$$typeof,t===MG)return 11;if(t===TG)return 14}return 2}function l0(t,e){var n=t.alternate;return n===null?(n=i1(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&14680064,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function IE(t,e,n,r,i,a){var o=2;if(r=t,typeof t=="function")dQ(t)&&(o=1);else if(typeof t=="string")o=5;else e:switch(t){case f6:return Pg(n.children,i,a,e);case PG:o=8,i|=8;break;case qH:return t=i1(12,n,e,i|2),t.elementType=qH,t.lanes=a,t;case YH:return t=i1(13,n,e,i),t.elementType=YH,t.lanes=a,t;case XH:return t=i1(19,n,e,i),t.elementType=XH,t.lanes=a,t;case Mhe:return gM(n,i,a,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Ihe:o=10;break e;case Phe:o=9;break e;case MG:o=11;break e;case TG:o=14;break e;case xm:o=16,r=null;break e}throw Error(_n(130,t==null?t:typeof t,""))}return e=i1(o,n,e,i),e.elementType=t,e.type=r,e.lanes=a,e}function Pg(t,e,n,r){return t=i1(7,t,r,e),t.lanes=n,t}function gM(t,e,n,r){return t=i1(22,t,r,e),t.elementType=Mhe,t.lanes=n,t.stateNode={isHidden:!1},t}function rN(t,e,n){return t=i1(6,t,null,e),t.lanes=n,t}function iN(t,e,n){return e=i1(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ktt(t,e,n,r,i){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=VO(0),this.expirationTimes=VO(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=VO(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function hQ(t,e,n,r,i,a,o,s,l){return t=new ktt(t,e,n,s,l),e===1?(e=1,a===!0&&(e|=8)):e=0,a=i1(3,null,null,e),t.current=a,a.stateNode=t,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},GG(a),t}function Ftt(t,e,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rme)}catch(t){console.error(t)}}Rme(),Rhe.exports=Ec;var bf=Rhe.exports;const ec=zue(bf);var Ame=Object.defineProperty,jtt=(t,e,n)=>e in t?Ame(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,R=(t,e)=>Ame(t,"name",{value:e,configurable:!0}),jv=(t,e,n)=>jtt(t,typeof e!="symbol"?e+"":e,n),xp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}R(xu,"getDefaultExportFromCjs");function wme(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var n=R(function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)},"a");n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(r){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:R(function(){return t[r]},"get")})}),n}R(wme,"getAugmentedNamespace");var Dme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){return function(n,r){var i=r.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var u=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(d){switch(d){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),d==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return d}});return a.bind(this)(c)}}})})(Dme);var Ime=Dme.exports;const $tt=xu(Ime);var Pme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){var n={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=R(function(p){return(p=+p)+(p>68?1900:2e3)},"a"),c=R(function(p){return function(v){this[p]=+v}},"f"),d=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var _=v.match(/([+-]|\d\d)/g),C=60*_[1]+(+_[2]||0);return C===0?0:_[0]==="+"?-C:C}(p)}],h=R(function(p){var v=l[p];return v&&(v.indexOf?v:v.s.concat(v.f))},"u"),f=R(function(p,v){var _,C=l.meridiem;if(C){for(var S=1;S<=24;S+=1)if(p.indexOf(C(S,0,v))>-1){_=S>12;break}}else _=p===(v?"pm":"PM");return _},"d"),m={A:[s,function(p){this.afternoon=f(p,!1)}],a:[s,function(p){this.afternoon=f(p,!0)}],Q:[i,function(p){this.month=3*(p-1)+1}],S:[i,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[a,c("day")],Do:[s,function(p){var v=l.ordinal,_=p.match(/\d+/);if(this.day=_[0],v)for(var C=1;C<=31;C+=1)v(C).replace(/\[|\]/g,"")===p&&(this.day=C)}],w:[o,c("week")],ww:[a,c("week")],M:[o,c("month")],MM:[a,c("month")],MMM:[s,function(p){var v=h("months"),_=(h("monthsShort")||v.map(function(C){return C.slice(0,3)})).indexOf(p)+1;if(_<1)throw new Error;this.month=_%12||_}],MMMM:[s,function(p){var v=h("months").indexOf(p)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,c("year")],YY:[a,function(p){this.year=u(p)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function g(p){var v,_;v=p,_=l&&l.formats;for(var C=(p=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(M,L,k){var O=k&&k.toUpperCase();return L||_[k]||n[k]||_[O].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function($,B,V){return B||V.slice(1)})})).match(r),S=C.length,b=0;b-1)return new Date((z==="X"?1e3:1)*X);var W=g(z)(X),K=W.year,G=W.month,te=W.day,Y=W.hours,ae=W.minutes,ie=W.seconds,ne=W.milliseconds,de=W.zone,_e=W.week,Pe=new Date,De=te||(K||G?1:Pe.getDate()),Ee=K||Pe.getFullYear(),ye=0;K&&!G||(ye=G>0?G-1:Pe.getMonth());var Ve,ke=Y||0,Ke=ae||0,$e=ie||0,Fe=ne||0;return de?new Date(Date.UTC(Ee,ye,De,ke,Ke,$e,Fe+60*de.offset*1e3)):F?new Date(Date.UTC(Ee,ye,De,ke,Ke,$e,Fe)):(Ve=new Date(Ee,ye,De,ke,Ke,$e,Fe),_e&&(Ve=H(Ve).week(_e).toDate()),Ve)}catch{return new Date("")}}(y,P,A,_),this.init(),O&&O!==!0&&(this.$L=this.locale(O).$L),k&&y!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var $=P.length,B=1;B<=$;B+=1){w[1]=P[B-1];var V=_.apply(this,w);if(V.isValid()){this.$d=V.$d,this.$L=V.$L,this.init();break}B===$&&(this.$d=new Date(""))}else S.call(this,b)}}})})(Pme);var Mme=Pme.exports;const Wtt=xu(Mme);var Tme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){return function(n,r,i){var a=r.prototype,o=R(function(d){return d&&(d.indexOf?d:d.s)},"o"),s=R(function(d,h,f,m,g){var p=d.name?d:d.$locale(),v=o(p[h]),_=o(p[f]),C=v||_.map(function(b){return b.slice(0,m)});if(!g)return C;var S=p.weekStart;return C.map(function(b,y){return C[(y+(S||0))%7]})},"u"),l=R(function(){return i.Ls[i.locale()]},"i"),u=R(function(d,h){return d.formats[h]||function(f){return f.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(m,g,p){return g||p.slice(1)})}(d.formats[h.toUpperCase()])},"a"),c=R(function(){var d=this;return{months:R(function(h){return h?h.format("MMMM"):s(d,"months")},"months"),monthsShort:R(function(h){return h?h.format("MMM"):s(d,"monthsShort","months",3)},"monthsShort"),firstDayOfWeek:R(function(){return d.$locale().weekStart||0},"firstDayOfWeek"),weekdays:R(function(h){return h?h.format("dddd"):s(d,"weekdays")},"weekdays"),weekdaysMin:R(function(h){return h?h.format("dd"):s(d,"weekdaysMin","weekdays",2)},"weekdaysMin"),weekdaysShort:R(function(h){return h?h.format("ddd"):s(d,"weekdaysShort","weekdays",3)},"weekdaysShort"),longDateFormat:R(function(h){return u(d.$locale(),h)},"longDateFormat"),meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}},"s");a.localeData=function(){return c.bind(this)()},i.localeData=function(){var d=l();return{firstDayOfWeek:R(function(){return d.weekStart||0},"firstDayOfWeek"),weekdays:R(function(){return i.weekdays()},"weekdays"),weekdaysShort:R(function(){return i.weekdaysShort()},"weekdaysShort"),weekdaysMin:R(function(){return i.weekdaysMin()},"weekdaysMin"),months:R(function(){return i.months()},"months"),monthsShort:R(function(){return i.monthsShort()},"monthsShort"),longDateFormat:R(function(h){return u(d,h)},"longDateFormat"),meridiem:d.meridiem,ordinal:d.ordinal}},i.months=function(){return s(l(),"months")},i.monthsShort=function(){return s(l(),"monthsShort","months",3)},i.weekdays=function(d){return s(l(),"weekdays",null,null,d)},i.weekdaysShort=function(d){return s(l(),"weekdaysShort","weekdays",3,d)},i.weekdaysMin=function(d){return s(l(),"weekdaysMin","weekdays",2,d)}}})})(Tme);var Lme=Tme.exports;const ztt=xu(Lme);var xme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){return function(n,r){r.prototype.weekday=function(i){var a=this.$locale().weekStart||0,o=this.$W,s=(o25){var c=o(this).startOf(r).add(1,r).date(u),d=o(this).endOf(n);if(c.isBefore(d))return 1}var h=o(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),f=this.diff(h,n,!0);return f<0?o(this).startOf("week").week():Math.ceil(f)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(Nme);var kme=Nme.exports;const Ytt=xu(kme);var Fme={exports:{}};(function(t,e){(function(n,r){t.exports=r()})(xp,function(){return function(n,r){r.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})})(Fme);var Vme=Fme.exports;const Xtt=xu(Vme),Gtt="univer-avatar",Qtt="univer-avatar-square",Ktt="univer-avatar-circle",Ztt="univer-avatar-middle",Jtt="univer-avatar-small",ent="univer-avatar-image",_3={avatar:Gtt,avatarSquare:Qtt,avatarCircle:Ktt,avatarMiddle:Ztt,avatarSmall:Jtt,avatarImage:ent};function SM(t){const{children:e,style:n,title:r,alt:i,shape:a="circle",size:o="middle",src:s,fit:l="fill",onError:u,onLoad:c}=t,d=typeof o=="number"?{width:`${o}px`,height:`${o}px`,lineHeight:`${o}px`}:{},h=hr(_3.avatar,{[_3.avatarCircle]:a==="circle",[_3.avatarSquare]:a==="square",[_3.avatarImage]:s,[_3.avatarMiddle]:o==="middle",[_3.avatarSmall]:o==="small"}),f={objectFit:l};return s?Re.createElement("span",{className:h,style:{...d,...n,...f}},Re.createElement("img",{src:s,title:r,alt:i,onError:u,onLoad:c}),e):Re.createElement("span",{className:h,style:{...d,...n}},e)}R(SM,"Avatar");const tnt="univer-button",nnt="univer-button-default",rnt="univer-button-primary",int="univer-button-text",ant="univer-button-link",ont="univer-button-small",snt="univer-button-middle",lnt="univer-button-large",unt="univer-button-block",wh={button:tnt,buttonDefault:nnt,buttonPrimary:rnt,buttonText:int,buttonLink:ant,buttonSmall:ont,buttonMiddle:snt,buttonLarge:lnt,buttonBlock:unt};function fa(t){const{children:e,className:n,style:r,type:i="default",size:a="middle",block:o,htmlType:s,disabled:l=!1,onClick:u,...c}=t,d=hr(wh.button,{[wh.buttonPrimary]:i==="primary",[wh.buttonDefault]:i==="default",[wh.buttonText]:i==="text",[wh.buttonLink]:i==="link",[wh.buttonSmall]:a==="small",[wh.buttonMiddle]:a==="middle",[wh.buttonLarge]:a==="large",[wh.buttonBlock]:o},n);return Re.createElement("button",{className:d,style:r,type:s,onClick:u,disabled:l,...c},e)}R(fa,"Button");var Gc=function(){return Gc=Object.assign||function(t){for(var e,n=1,r=arguments.length;n-1?Gc(Gc({},i),{attrs:Gc(Gc({},i.attrs),{id:i.attrs.id+e.idSuffix})}):i})}):t}R(Ume,"replaceRuntimeIdsInDefs");function Hme(){return Math.random().toString(36).substring(2,8)}R(Hme,"generateShortUuid");Ou.displayName="UniverIcon";var dnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.87598 11.8327C8.87598 11.5013 9.14461 11.2327 9.47598 11.2327H11.476C11.8073 11.2327 12.076 11.5013 12.076 11.8327 12.076 12.164 11.8073 12.4327 11.476 12.4327H9.47598C9.14461 12.4327 8.87598 12.164 8.87598 11.8327zM4.80898 11.2327C4.47761 11.2327 4.20898 11.5013 4.20898 11.8327 4.20898 12.164 4.47761 12.4327 4.80898 12.4327H6.80898C7.14036 12.4327 7.40898 12.164 7.40898 11.8327 7.40898 11.5013 7.14036 11.2327 6.80898 11.2327H4.80898zM8.87598 9.16592C8.87598 8.83455 9.14461 8.56592 9.47598 8.56592H11.476C11.8073 8.56592 12.076 8.83455 12.076 9.16592 12.076 9.49729 11.8073 9.76592 11.476 9.76592H9.47598C9.14461 9.76592 8.87598 9.49729 8.87598 9.16592zM4.80898 8.56592C4.47761 8.56592 4.20898 8.83455 4.20898 9.16592 4.20898 9.49729 4.47761 9.76592 4.80898 9.76592H6.80898C7.14036 9.76592 7.40898 9.49729 7.40898 9.16592 7.40898 8.83455 7.14036 8.56592 6.80898 8.56592H4.80898z"}},{tag:"path",attrs:{fill:"currentColor",d:"M6.00615 1.69985C6.00615 1.36848 5.73752 1.09985 5.40615 1.09985C5.07478 1.09985 4.80615 1.36848 4.80615 1.69985V2.34009H3.64248C2.20654 2.34009 1.04248 3.50415 1.04248 4.94009V12.3C1.04248 13.7359 2.20654 14.9 3.64248 14.9H12.6425C14.0784 14.9 15.2425 13.7359 15.2425 12.3V4.94009C15.2425 3.50415 14.0784 2.34009 12.6425 2.34009H11.4798V1.69985C11.4798 1.36848 11.2112 1.09985 10.8798 1.09985C10.5484 1.09985 10.2798 1.36848 10.2798 1.69985V2.34009H6.00615V1.69985ZM14.0425 5.97021V4.94009C14.0425 4.16689 13.4157 3.54009 12.6425 3.54009H11.4798V4.09985C11.4798 4.43122 11.2112 4.69985 10.8798 4.69985C10.5484 4.69985 10.2798 4.43122 10.2798 4.09985V3.54009H6.00615V4.09985C6.00615 4.43122 5.73752 4.69985 5.40615 4.69985C5.07478 4.69985 4.80615 4.43122 4.80615 4.09985V3.54009H3.64248C2.86928 3.54009 2.24248 4.16689 2.24248 4.94009V5.97021H14.0425ZM2.24248 7.17021H14.0425V12.3C14.0425 13.0731 13.4157 13.7 12.6425 13.7H3.64248C2.86928 13.7 2.24248 13.0732 2.24248 12.3V7.17021Z",fillRule:"evenodd",clipRule:"evenodd"}}]},jme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"calendar-single",ref:e,icon:dnt}))});jme.displayName="CalendarSingle";var hnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M14.1544 3.75557C14.3887 3.98988 14.3887 4.36978 14.1544 4.6041L6.51409 12.2444C6.40157 12.3569 6.24896 12.4201 6.08983 12.4201C5.9307 12.4201 5.77808 12.3569 5.66556 12.2444L1.84541 8.42425C1.6111 8.18993 1.6111 7.81003 1.84541 7.57572C2.07973 7.34141 2.45963 7.34141 2.69394 7.57572L6.08983 10.9716L13.3059 3.75557C13.5402 3.52126 13.9201 3.52126 14.1544 3.75557Z",fillRule:"evenodd",clipRule:"evenodd"}}]},bM=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"check-mark-single",ref:e,icon:hnt}))});bM.displayName="CheckMarkSingle";var fnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M3.71274 2.86421C3.47843 2.6299 3.09853 2.6299 2.86421 2.86421C2.6299 3.09853 2.6299 3.47843 2.86421 3.71274L7.15154 8.00007L2.86421 12.2874C2.6299 12.5217 2.6299 12.9016 2.86421 13.1359C3.09853 13.3702 3.47843 13.3702 3.71274 13.1359L8.00007 8.84859L12.2874 13.1359C12.5217 13.3702 12.9016 13.3702 13.1359 13.1359C13.3702 12.9016 13.3702 12.5217 13.1359 12.2874L8.84859 8.00007L13.1359 3.71274C13.3702 3.47843 13.3702 3.09853 13.1359 2.86421C12.9016 2.6299 12.5217 2.6299 12.2874 2.86421L8.00007 7.15154L3.71274 2.86421Z"}}]},vQ=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"close-single",ref:e,icon:fnt}))});vQ.displayName="CloseSingle";var mnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"mask",attrs:{id:"mask0_371_77",style:{maskType:"alpha"},width:16,height:16,x:0,y:0,maskUnits:"userSpaceOnUse"},children:[{tag:"path",attrs:{fill:"#DCDCDC",d:"M0 0H16V16H0z"}}]},{tag:"g",attrs:{mask:"url(#mask0_371_77)"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.85869 12.9216C8.38445 13.4708 7.61555 13.4708 7.14131 12.9216L0.358114 5.06726C-0.406895 4.18144 0.134916 2.66683 1.2168 2.66683L14.7832 2.66683C15.8651 2.66683 16.4069 4.18144 15.6419 5.06726L8.85869 12.9216Z"}}]}]},$me=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"dropdown-single",ref:e,icon:mnt}))});$me.displayName="DropdownSingle";var gnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM10.3097 5.69014C10.544 5.92445 10.544 6.30435 10.3097 6.53867L8.84843 7.9999L10.3099 9.46137C10.5442 9.69569 10.5442 10.0756 10.3099 10.3099C10.0756 10.5442 9.69569 10.5442 9.46137 10.3099L7.9999 8.84843L6.53842 10.3099C6.30411 10.5442 5.92421 10.5442 5.6899 10.3099C5.45558 10.0756 5.45558 9.69569 5.6899 9.46137L7.15137 7.9999L5.69014 6.53867C5.45583 6.30435 5.45583 5.92445 5.69014 5.69014C5.92445 5.45583 6.30435 5.45583 6.53867 5.69014L7.9999 7.15137L9.46113 5.69014C9.69544 5.45583 10.0753 5.45583 10.3097 5.69014Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Wme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"error-single",ref:e,icon:gnt}))});Wme.displayName="ErrorSingle";var pnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8.6 1.99991C8.60001 1.66854 8.33138 1.39991 8.00001 1.3999C7.66864 1.3999 7.40001 1.66853 7.4 1.9999L7.39996 7.3999H1.9999C1.66853 7.3999 1.3999 7.66853 1.3999 7.9999C1.3999 8.33127 1.66853 8.5999 1.9999 8.5999H7.39995L7.3999 13.9999C7.3999 14.3313 7.66853 14.5999 7.9999 14.5999C8.33127 14.5999 8.5999 14.3313 8.5999 13.9999L8.59995 8.5999H13.9999C14.3313 8.5999 14.5999 8.33127 14.5999 7.9999C14.5999 7.66853 14.3313 7.3999 13.9999 7.3999H8.59996L8.6 1.99991Z"}}]},zme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"increase-single",ref:e,icon:pnt}))});zme.displayName="IncreaseSingle";var vnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"colorChannel1",d:"M8.00695 14.9998C8.00461 14.9999 8.00227 14.9999 7.99993 14.9999C4.13397 14.9999 1 11.8659 1 7.99995C1 4.13624 4.13035 1.00365 7.99321 1.00003C7.9955 1.00001 7.99779 1 8.00008 1C11.866 1 15 4.13397 15 7.99993C15 11.8636 11.8697 14.9961 8.00695 14.9998ZM13.3569 8.01503C13.3568 8.01001 13.3568 8.00499 13.3568 7.99995C13.3568 5.04144 10.9584 2.64309 7.99993 2.64309C5.04645 2.64309 2.65123 5.03327 2.64308 7.98484C2.64317 7.98986 2.64322 7.99489 2.64322 7.99993C2.64322 10.9584 5.04157 13.3568 8.00008 13.3568C10.9536 13.3568 13.3488 10.9666 13.3569 8.01503Z",fillRule:"evenodd",clipRule:"evenodd"}},{tag:"path",attrs:{fill:"currentColor",d:"M7.17852 1.82153C7.17852 1.36781 7.54633 1 8.00005 1C11.866 1 15 4.13397 15 7.99993C15 11.8659 11.866 14.9999 8.00005 14.9999C4.1341 14.9999 1.00012 11.8659 1.00012 7.99993C1.00012 7.54621 1.36793 7.1784 1.82165 7.1784C2.27537 7.1784 2.64318 7.54621 2.64318 7.99993C2.64318 10.9584 5.04153 13.3568 8.00005 13.3568C10.9586 13.3568 13.3569 10.9584 13.3569 7.99993C13.3569 5.04141 10.9586 2.64306 8.00005 2.64306C7.54633 2.64306 7.17852 2.27525 7.17852 1.82153Z",fillRule:"evenodd",clipRule:"evenodd"}}]},qme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"loading",ref:e,icon:vnt}))});qme.displayName="Loading";var _nt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M11.3536 6.14645C11.5488 6.34171 11.5488 6.65829 11.3536 6.85355L8.35355 9.85355C8.15829 10.0488 7.84171 10.0488 7.64645 9.85355L4.64645 6.85355C4.45118 6.65829 4.45118 6.34171 4.64645 6.14645C4.84171 5.95118 5.15829 5.95118 5.35355 6.14645L8 8.79289L10.6464 6.14645C10.8417 5.95118 11.1583 5.95118 11.3536 6.14645Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Yme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"more-down-single",ref:e,icon:_nt}))});Yme.displayName="MoreDownSingle";var Cnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 17 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M10.3536 12.3536C10.1583 12.5488 9.84171 12.5488 9.64645 12.3536L6.64645 9.35355C6.45118 9.15829 6.45118 8.84171 6.64645 8.64645L9.64645 5.64645C9.84171 5.45118 10.1583 5.45118 10.3536 5.64645C10.5488 5.84171 10.5488 6.15829 10.3536 6.35355L7.70711 9L10.3536 11.6464C10.5488 11.8417 10.5488 12.1583 10.3536 12.3536Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Xme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"more-left-single",ref:e,icon:Cnt}))});Xme.displayName="MoreLeftSingle";var Snt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.14645 4.64645C6.34171 4.45118 6.65829 4.45118 6.85355 4.64645L9.85355 7.64645C10.0488 7.84171 10.0488 8.15829 9.85355 8.35355L6.85355 11.3536C6.65829 11.5488 6.34171 11.5488 6.14645 11.3536C5.95118 11.1583 5.95118 10.8417 6.14645 10.6464L8.79289 8L6.14645 5.35355C5.95118 5.15829 5.95118 4.84171 6.14645 4.64645Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Gme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"more-right-single",ref:e,icon:Snt}))});Gme.displayName="MoreRightSingle";var bnt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M1.3999 7.9999C1.3999 7.66853 1.66853 7.3999 1.9999 7.3999H13.9999C14.3313 7.3999 14.5999 7.66853 14.5999 7.9999C14.5999 8.33127 14.3313 8.5999 13.9999 8.5999H1.9999C1.66853 8.5999 1.3999 8.33127 1.3999 7.9999Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Qme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"reduce-single",ref:e,icon:bnt}))});Qme.displayName="ReduceSingle";var ynt={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM11.7245 6.42417C11.9588 6.18985 11.9588 5.80995 11.7245 5.57564C11.4901 5.34132 11.1102 5.34132 10.8759 5.57564L7.3002 9.15137L5.72446 7.57564C5.49014 7.34132 5.11025 7.34132 4.87593 7.57564C4.64162 7.80995 4.64162 8.18985 4.87593 8.42417L6.87593 10.4242C7.11025 10.6585 7.49014 10.6585 7.72446 10.4242L11.7245 6.42417Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Kme=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"success-single",ref:e,icon:ynt}))});Kme.displayName="SuccessSingle";var Ent={tag:"svg",attrs:{fill:"none",viewBox:"0 0 16 16",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M15 8C15 11.866 11.866 15 8 15C4.13401 15 1 11.866 1 8C1 4.13401 4.13401 1 8 1C11.866 1 15 4.13401 15 8ZM8.00008 12.3671C8.46031 12.3671 8.83342 11.994 8.83342 11.5338C8.83342 11.0735 8.46031 10.7004 8.00008 10.7004C7.53985 10.7004 7.16675 11.0735 7.16675 11.5338C7.16675 11.994 7.53985 12.3671 8.00008 12.3671ZM8.5999 4.4335C8.5999 4.10213 8.33127 3.8335 7.9999 3.8335C7.66853 3.8335 7.3999 4.10213 7.3999 4.4335V9.36683C7.3999 9.6982 7.66853 9.96683 7.9999 9.96683C8.33127 9.96683 8.5999 9.6982 8.5999 9.36683V4.4335Z",fillRule:"evenodd",clipRule:"evenodd"}}]},Fj=E.forwardRef(function(t,e){return E.createElement(Ou,Object.assign({},t,{id:"warning-single",ref:e,icon:Ent}))});Fj.displayName="WarningSingle";var Zme={};Object.defineProperty(Zme,"__esModule",{value:!0});var yM=Zme.default=Jme;function Jme(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}R(Jme,"canUseDom$1");const Nu=E.createContext({mountContainer:yM()?document.body:null});function _Q(t){const{children:e,locale:n,mountContainer:r}=t,i=E.useMemo(()=>({locale:n,mountContainer:r}),[n,r]);return Re.createElement(Nu.Provider,{value:i},e)}R(_Q,"ConfigProvider");const Rnt="univer-cascader-list",Ant="univer-cascader-list-board",wnt="univer-cascader-list-item-active",Dnt="univer-cascader-list-option",Int="univer-cascader-list-check-mark",Pnt="univer-cascader-list-item",Mnt="univer-cascader-list-empty",hm={cascaderList:Rnt,cascaderListBoard:Ant,cascaderListItemActive:wnt,cascaderListOption:Dnt,cascaderListCheckMark:Int,cascaderListItem:Pnt,cascaderListEmpty:Mnt};function Tnt(t){const{value:e,options:n=[],onChange:r}=t,{locale:i}=E.useContext(Nu),a=E.useMemo(()=>{const s=[n];return e.forEach((l,u)=>{const c=s[u].find(d=>d.value===l);c!=null&&c.children&&s.push(c.children)}),s},[e]);function o(s,l){if(l===e[s])return;if(e[s+1]){const c=e.slice(0,s+1);c[s]=l,r(c);return}const u=[...e];u[s]=l,r(u)}return R(o,"handleChange"),Re.createElement("section",{className:hm.cascaderList},a.map((s,l)=>s.length?Re.createElement("ul",{key:l,className:hm.cascaderListBoard},s.map(u=>Re.createElement("li",{key:u.value,className:hr(hm.cascaderListItem,{[hm.cascaderListItemActive]:u.value===e[l]})},Re.createElement("a",{className:hm.cascaderListOption,onClick:R(()=>o(l,u.value),"onClick")},Re.createElement("span",{className:hm.cascaderListCheckMark},u.value===e[l]&&Re.createElement(bM,null)),Re.createElement("span",null,u.label))))):Re.createElement("section",{key:l,className:hm.cascaderListEmpty},i==null?void 0:i.CascaderList.empty)),e.length<=0&&Re.createElement("section",{className:hm.cascaderListEmpty},i==null?void 0:i.CascaderList.empty))}R(Tnt,"CascaderList");const Lnt="univer-checkbox",xnt="univer-checkbox-target-input",Ont="univer-checkbox-target-inner",Nnt="univer-checkbox-disabled",knt="univer-checkbox-indeterminate",Fnt="univer-checkbox-target",C3={checkbox:Lnt,checkboxTargetInput:xnt,checkboxTargetInner:Ont,checkboxDisabled:Nnt,checkboxIndeterminate:knt,checkboxTarget:Fnt};function tp(t){const{children:e,className:n,style:r,checked:i=!1,indeterminate:a=!1,value:o,disabled:s=!1,onChange:l,contentClassName:u}=t,c=E.useRef(null);function d(f){var m,g;if(f.stopPropagation(),!(!l||s))if(typeof o<"u")l==null||l(o);else{const p=(g=(m=c==null?void 0:c.current)==null?void 0:m.checked)!=null?g:!1;l==null||l(p)}}R(d,"handleChange");const h=hr(n,C3.checkbox,{[C3.checkboxDisabled]:s,[C3.checkboxIndeterminate]:a&&!i});return Re.createElement("label",{className:h,style:r},Re.createElement("span",{className:C3.checkboxTarget},Re.createElement("input",{ref:c,className:C3.checkboxTargetInput,type:"checkbox",checked:i,disabled:s,onChange:d}),Re.createElement("span",{className:C3.checkboxTargetInner})),Re.createElement("span",{className:u},e))}R(tp,"Checkbox");const Vnt="univer-checkbox-group",Bnt="univer-checkbox-group-direction-vertical",roe={checkboxGroup:Vnt,checkboxGroupDirectionVertical:Bnt};function Unt(t){const{children:e,className:n,style:r,value:i,disabled:a,direction:o="horizontal",onChange:s}=t,l=R(c=>{i.includes(c)?s(i.filter(d=>d!==c)):s([...i,c])},"handleChange"),u=hr(n,roe.checkboxGroup,{[roe.checkboxGroupDirectionVertical]:o==="vertical"});return Re.createElement("div",{className:u,style:r},Re.Children.map(e,(c,d)=>Re.isValidElement(c)?Re.cloneElement(c,{key:d,children:c.props.children,checked:c.props.value?i.includes(c.props.value):!1,disabled:a??c.props.disabled,onChange:l}):c))}R(Unt,"CheckboxGroup");function lf(){return lf=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);nparseFloat(i));for(let i=0;i<3;i+=1)r[i]=e(r[i]||0,n[i]||"",i);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}R(PE,"splitColorStr");const ioe=R((t,e,n)=>n===0?t:t/100,"parseHSVorHSL");function G3(t,e){const n=e||255;return t>n?n:t<0?0:t}R(G3,"limitRange");const h0e=class f0e{constructor(e){Va(this,"isValid",!0),Va(this,"r",0),Va(this,"g",0),Va(this,"b",0),Va(this,"a",1),Va(this,"_h",void 0),Va(this,"_s",void 0),Va(this,"_l",void 0),Va(this,"_v",void 0),Va(this,"_max",void 0),Va(this,"_min",void 0),Va(this,"_brightness",void 0);function n(r){return r[0]in e&&r[1]in e&&r[2]in e}if(R(n,"matchFormat"),e)if(typeof e=="string"){let r=function(a){return i.startsWith(a)};R(r,"matchPrefix");const i=e.trim();/^#?[A-F\d]{3,8}$/i.test(i)?this.fromHexString(i):r("rgb")?this.fromRgbString(i):r("hsl")?this.fromHslString(i):(r("hsv")||r("hsb"))&&this.fromHsvString(i)}else if(e instanceof f0e)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(n("rgb"))this.r=G3(e.r),this.g=G3(e.g),this.b=G3(e.b),this.a=typeof e.a=="number"?G3(e.a,1):1;else if(n("hsl"))this.fromHsl(e);else if(n("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const n=this.toHsv();return n.h=e,this._c(n)}getLuminance(){function e(a){const o=a/255;return o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4)}R(e,"adjustGamma");const n=e(this.r),r=e(this.g),i=e(this.b);return .2126*n+.7152*r+.0722*i}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=ys(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()-e/100;return i<0&&(i=0),this._c({h:n,s:r,l:i,a:this.a})}lighten(e=10){const n=this.getHue(),r=this.getSaturation();let i=this.getLightness()+e/100;return i>1&&(i=1),this._c({h:n,s:r,l:i,a:this.a})}mix(e,n=50){const r=this._c(e),i=n/100,a=R(s=>(r[s]-this[s])*i+this[s],"calc"),o={r:ys(a("r")),g:ys(a("g")),b:ys(a("b")),a:ys(a("a")*100)/100};return this._c(o)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const n=this._c(e),r=this.a+n.a*(1-this.a),i=R(a=>ys((this[a]*this.a+n[a]*n.a*(1-this.a))/r),"calc");return this._c({r:i("r"),g:i("g"),b:i("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const n=(this.r||0).toString(16);e+=n.length===2?n:"0"+n;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const i=(this.b||0).toString(16);if(e+=i.length===2?i:"0"+i,typeof this.a=="number"&&this.a>=0&&this.a<1){const a=ys(this.a*255).toString(16);e+=a.length===2?a:"0"+a}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),n=ys(this.getSaturation()*100),r=ys(this.getLightness()*100);return this.a!==1?`hsla(${e},${n}%,${r}%,${this.a})`:`hsl(${e},${n}%,${r}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,n,r){const i=this.clone();return i[e]=G3(n,r),i}_c(e){return new this.constructor(e)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){const n=e.replace("#","");function r(i,a){return parseInt(n[i]+n[a||i],16)}R(r,"connectNum"),n.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=n[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=n[6]?r(6,7)/255:1)}fromHsl({h:e,s:n,l:r,a:i}){if(this._h=e%360,this._s=n,this._l=r,this.a=typeof i=="number"?i:1,n<=0){const h=ys(r*255);this.r=h,this.g=h,this.b=h}let a=0,o=0,s=0;const l=e/60,u=(1-Math.abs(2*r-1))*n,c=u*(1-Math.abs(l%2-1));l>=0&&l<1?(a=u,o=c):l>=1&&l<2?(a=c,o=u):l>=2&&l<3?(o=u,s=c):l>=3&&l<4?(o=c,s=u):l>=4&&l<5?(a=c,s=u):l>=5&&l<6&&(a=u,s=c);const d=r-u/2;this.r=ys((a+d)*255),this.g=ys((o+d)*255),this.b=ys((s+d)*255)}fromHsv({h:e,s:n,v:r,a:i}){this._h=e%360,this._s=n,this._v=r,this.a=typeof i=="number"?i:1;const a=ys(r*255);if(this.r=a,this.g=a,this.b=a,n<=0)return;const o=e/60,s=Math.floor(o),l=o-s,u=ys(r*(1-n)*255),c=ys(r*(1-n*l)*255),d=ys(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=u;break;case 1:this.r=c,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=c;break;case 4:this.r=d,this.g=u;break;case 5:default:this.g=u,this.b=c;break}}fromHsvString(e){const n=PE(e,ioe);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(e){const n=PE(e,ioe);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(e){const n=PE(e,(r,i)=>i.includes("%")?ys(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};R(h0e,"FastColor");let m0e=h0e;var Hnt=["b"],jnt=["v"],aN=R(function(t){return Math.round(Number(t||0))},"getRoundNumber"),$nt=R(function(t){if(t instanceof m0e)return t;if(t&&lh(t)==="object"&&"h"in t&&"b"in t){var e=t,n=e.b,r=FC(e,Hnt);return Ys(Ys({},r),{},{v:n})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},"convertHsb2Hsv"),P4=function(t){s0e(n,t);var e=c0e(n);function n(r){return i0e(this,n),e.call(this,$nt(r))}return R(n,"Color"),o0e(n,[{key:"toHsbString",value:R(function(){var r=this.toHsb(),i=aN(r.s*100),a=aN(r.b*100),o=aN(r.h),s=r.a,l="hsb(".concat(o,", ").concat(i,"%, ").concat(a,"%)"),u="hsba(".concat(o,", ").concat(i,"%, ").concat(a,"%, ").concat(s.toFixed(s===0?0:2),")");return s===1?l:u},"toHsbString")},{key:"toHsb",value:R(function(){var r=this.toHsv(),i=r.v,a=FC(r,jnt);return Ys(Ys({},a),{},{b:i,a:this.a})},"toHsb")}]),n}(m0e),Wnt="rc-color-picker",W6=R(function(t){return t instanceof P4?t:new P4(t)},"generateColor"),znt=W6("#1677ff"),g0e=R(function(t){var e=t.offset,n=t.targetRef,r=t.containerRef,i=t.color,a=t.type,o=r.current.getBoundingClientRect(),s=o.width,l=o.height,u=n.current.getBoundingClientRect(),c=u.width,d=u.height,h=c/2,f=d/2,m=(e.x+h)/s,g=1-(e.y+f)/l,p=i.toHsb(),v=m,_=(e.x+h)/s*360;if(a)switch(a){case"hue":return W6(Ys(Ys({},p),{},{h:_<=0?0:_}));case"alpha":return W6(Ys(Ys({},p),{},{a:v<=0?0:v}))}return W6({h:p.h,s:m<=0?0:m,b:g>=1?1:g,a:p.a})},"calculateColor"),p0e=R(function(t,e){var n=t.toHsb();switch(e){case"hue":return{x:n.h/360*100,y:50};case"alpha":return{x:t.a*100,y:50};default:return{x:n.s*100,y:(1-n.b)*100}}},"calcOffset"),v0e={exports:{}};/*! - Copyright (c) 2018 Jed Watson. - Licensed under the MIT License (MIT), see - http://jedwatson.github.io/classnames -*/(function(t){(function(){var e={}.hasOwnProperty;function n(){for(var a="",o=0;ot.length)&&(e=t.length);for(var n=0,r=Array(e);n=19;function A0e(t,e){if(el(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(A0e,"toPrimitive$2");function DQ(t){var e=A0e(t,"string");return el(e)=="symbol"?e:e+""}R(DQ,"toPropertyKey$2");function ki(t,e,n){return(e=DQ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(ki,"_defineProperty$c");function Bj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(Bj,"ownKeys$9");function Ui(t){for(var e=1;eRe.createElement(_0e,{key:i,prefixCls:oN.colorPicker,color:i,onClick:R(()=>r(i),"onClick")})))),Re.createElement("section",{onClick:n},Re.createElement(nrt,{prefixCls:oN.colorPicker,disabledAlpha:!0,onChangeComplete:r})))}R(VC,"ColorPicker");function fr(){return fr=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=Array(e);n0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):ort}R(TQ,"getMark");function BC(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}R(BC,"getContainer");function U0e(t){return t==="queue"?"prependQueue":t?"prepend":"append"}R(U0e,"getOrder");function kM(t){return Array.from((Hj.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}R(kM,"findStyles");function LQ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!hd())return null;var n=e.csp,r=e.prepend,i=e.priority,a=i===void 0?0:i,o=U0e(r),s=o==="prependQueue",l=document.createElement("style");l.setAttribute(soe,o),s&&a&&l.setAttribute(loe,"".concat(a)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=t;var u=BC(e),c=u.firstChild;if(r){if(s){var d=(e.styles||kM(u)).filter(function(h){if(!["prepend","prependQueue"].includes(h.getAttribute(soe)))return!1;var f=Number(h.getAttribute(loe)||0);return a>=f});if(d.length)return u.insertBefore(l,d[d.length-1].nextSibling),l}u.insertBefore(l,c)}else u.appendChild(l);return l}R(LQ,"injectCSS");function xQ(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=BC(e);return(e.styles||kM(n)).find(function(r){return r.getAttribute(TQ(e))===t})}R(xQ,"findExistNode");function jw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=xQ(t,e);if(n){var r=BC(e);r.removeChild(n)}}R(jw,"removeCSS");function H0e(t,e){var n=Hj.get(t);if(!n||!Hw(document,n)){var r=LQ("",e),i=r.parentNode;Hj.set(t,i),t.removeChild(r)}}R(H0e,"syncRealContainer");function OQ(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=BC(n),i=kM(r),a=Ui(Ui({},n),{},{styles:i});H0e(r,a);var o=xQ(e,a);if(o){var s,l;if((s=a.csp)!==null&&s!==void 0&&s.nonce&&o.nonce!==((l=a.csp)===null||l===void 0?void 0:l.nonce)){var u;o.nonce=(u=a.csp)===null||u===void 0?void 0:u.nonce}return o.innerHTML!==t&&(o.innerHTML=t),o}var c=LQ(t,a);return c.setAttribute(TQ(a),e),c}R(OQ,"updateCSS");function j0e(t){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=e;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var i,a;if(t){var o=getComputedStyle(t);r.scrollbarColor=o.scrollbarColor,r.scrollbarWidth=o.scrollbarWidth;var s=getComputedStyle(t,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var c=l?"width: ".concat(s.width,";"):"",d=u?"height: ".concat(s.height,";"):"";OQ(` -#`.concat(e,`::-webkit-scrollbar { -`).concat(c,` -`).concat(d,` -}`),e)}catch(m){console.error(m),i=l,a=u}}document.body.appendChild(n);var h=t&&i&&!isNaN(i)?i:n.offsetWidth-n.clientWidth,f=t&&a&&!isNaN(a)?a:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),jw(e),{width:h,height:f}}R(j0e,"measureScrollbarSize");function $0e(t){return typeof document>"u"||!t||!(t instanceof Element)?{width:0,height:0}:j0e(t)}R($0e,"getTargetScrollBarSize");function W0e(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}R(W0e,"isBodyOverflowing");var srt="rc-util-locker-".concat(Date.now()),uoe=0;function z0e(t){var e=!!t,n=E.useState(function(){return uoe+=1,"".concat(srt,"_").concat(uoe)}),r=Ur(n,1),i=r[0];da(function(){if(e){var a=$0e(document.body).width,o=W0e();OQ(` -html body { - overflow-y: hidden; - `.concat(o?"width: calc(100% - ".concat(a,"px);"):"",` -}`),i)}else jw(i);return function(){jw(i)}},[e,i])}R(z0e,"useScrollLocker");var lrt=!1;function q0e(t){return lrt}R(q0e,"inlineMock");var coe=R(function(t){return t===!1?!1:!hd()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},"getPortalContainer2"),NQ=E.forwardRef(function(t,e){var n=t.open,r=t.autoLock,i=t.getContainer;t.debug;var a=t.autoDestroy,o=a===void 0?!0:a,s=t.children,l=E.useState(n),u=Ur(l,2),c=u[0],d=u[1],h=c||n;E.useEffect(function(){(o||n)&&d(n)},[n,o]);var f=E.useState(function(){return coe(i)}),m=Ur(f,2),g=m[0],p=m[1];E.useEffect(function(){var L=coe(i);p(L??null)});var v=B0e(h&&!g),_=Ur(v,2),C=_[0],S=_[1],b=g??C;z0e(r&&n&&hd()&&(b===C||b===document.body));var y=null;if(s&&L7(s)&&e){var A=s;y=A.ref}var w=T7(y,e);if(!h||!hd()||g===void 0)return null;var P=b===!1||q0e(),M=s;return e&&(M=E.cloneElement(s,{ref:w})),E.createElement(V0e.Provider,{value:S},P?M:bf.createPortal(M,b))}),Y0e=E.createContext({});function Ao(t){"@babel/helpers - typeof";return Ao=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ao(t)}R(Ao,"_typeof$2");function X0e(t,e){if(Ao(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(Ao(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}R(X0e,"toPrimitive$1");function kQ(t){var e=X0e(t,"string");return Ao(e)=="symbol"?e:e+""}R(kQ,"toPropertyKey$1");function pn(t,e,n){return(e=kQ(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}R(pn,"_defineProperty$b");function jj(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}R(jj,"ownKeys$8");function Dt(t){for(var e=1;e